semvec/pypi-packages huggingface dataset:
smart-energy.goecharger-api 0.3.1
API library for the go-eCharger.
Requires Python: >=3.7
Keywords: goecharger,kfw,api,cloud

# Go-eCharger API

![workflow](https://github.com/openkfw/smartenergy.goecharger-api/actions/workflows/python-ci.yml/badge.svg)
![workflow](https://github.com/openkfw/smartenergy.goecharger-api/actions/workflows/python-publish.yml/badge.svg)
![PyPI version](https://badge.fury.io/py/smart-energy.goecharger-api.svg)

A python API to access the Go-eCharger wallbox. Official Go-eCharger [API documentation](https://github.com/goecharger/go-eCharger-API-v2).

## Installing the library locally

```bash
python3 -m pip install -e .
```

> __This is needed for the first time when working with the library/examples/tests.__

## Example usage

```bash
GOE_API_URL="https://REPLACE_ME.api.v3.go-e.io" GOE_API_TOKEN="REPLACE_ME" python3 examples/simple.py
```

or

```python
from goechargerv2.goecharger import GoeChargerApi

charger = GoeChargerApi('provide_api_url', 'provide_api_token')
# or you can define additional optional parameters
# charger = GoeChargerApi('provide_api_url', 'provide_api_token', timeout=10, wait=True)
 
print(charger.request_status())
```

## Development

## Install required pip packages

```bash
python3 -m pip install -r requirements.txt
pre-commit install -t pre-push
```

### Linting

```bash
pylint tests/*.py src/**/*.py
```

### Unit testing

```bash
pytest

# show logs
pytest -o log_cli=true

# code coverage
pytest --durations=10 --cov-report term-missing --cov=src.goechargerv2 tests
```
smocktools 0.1.3
A package
Requires Python: >=3

# Tools Package

This is a package. You can use

[Github-flavored Markdown](https://github.com/smockgithub/smocktools)

MysqlRepository 是mysql工具类，为了特殊情况下的稳定性要求，进行了链接丢失的重新链接补偿。


本工具支持：
- 因各种原因中断后补偿。
- 支持ssh跳板。
- 支持批量insert（效率比较高）

使用方法：
```
pip install smocktools
```

```
from smocktools import MysqlRepository


r = MysqlRepository("localhost","user","pwd","database name")

r.get("select * from tablename")

```