enetpy-1.0.1
توضیحات
Python wrapper for the enet Marktpartner API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | enetpy-1.0.1 |
| نام | enetpy |
| نسخه کتابخانه | 1.0.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Thermondo GmbH |
| ایمیل نویسنده | opensource@thermondo.com |
| آدرس صفحه اصلی | https://github.com/Thermondo/python-enet |
| آدرس اینترنتی | https://pypi.org/project/enetpy/ |
| مجوز | Apache-2 |
# enetpy
Python wrapper for the ene't Marktpartner API
### Setup
Install the package:
```bash
pip install enetpy
```
Make sure to set the authentication token in your production environment.
```bash
export ENET_AUTH_TOKEN='****'
```
#### Testing
The API wrapper comes with a testing stub. To use it set your test environment to:
```bash
export ENET_TESTING_STUB=1
```
### Usage
```python
>>> from enet import api
>>> api.get_gas_grid_operator_for_address(
... zip_code='10115',
... city='Berlin',
... street='Brunnenstr.',
... house_number='153'
... )
GasGridOperator(vnbg_nr=107851, title='NBB Netzgesellschaft Berlin-Brandenburg mbH & Co. KG', email='netzzugang@nbb-netzgesellschaft.de', contact_name='Herr Cornelius Baumann', phone_number='030/81876-1382', fax_number='', gas_type='H-Gas')
```
نحوه نصب
نصب پکیج whl enetpy-1.0.1:
pip install enetpy-1.0.1.whl
نصب پکیج tar.gz enetpy-1.0.1:
pip install enetpy-1.0.1.tar.gz