Skip to main content

Python wrapper for the enet Marktpartner API

Project description

enetpy

Python wrapper for the ene't Marktpartner API

Setup

Install the package:

pip install enetpy

Make sure to set the authentication token in your production environment.

export ENET_AUTH_TOKEN='****'

Testing

The API wrapper comes with a testing stub. To use it set your test environment to:

export ENET_TESTING_STUB=1

Usage

>>> 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')

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

enetpy-1.0.1.tar.gz (8.9 kB view details)

Uploaded Source

File details

Details for the file enetpy-1.0.1.tar.gz.

File metadata

  • Download URL: enetpy-1.0.1.tar.gz
  • Upload date:
  • Size: 8.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for enetpy-1.0.1.tar.gz
Algorithm Hash digest
SHA256 e5684600e4bf1c5e867bfad531c6b30625fd430d89b7c47ebde769f7843b6937
MD5 4047eb4e5f745bc9e33b21f8eddb737a
BLAKE2b-256 de7222df7e8774f8c4f63907b5148f3e3a06c174876013f6ad6e29f057ef1664

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page