tenneteu-py


Nametenneteu-py JSON
Version 0.1.2 PyPI version JSON
download
home_pagehttps://github.com/fboerman/TenneTeu-py
SummaryA python API wrapper for tennet.eu API
upload_time2024-11-04 16:02:42
maintainerNone
docs_urlNone
authorFrank Boerman
requires_pythonNone
licenseMIT
keywords tennet data api energy
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # TenneTeu-py
Python client for the official tennet.eu api. Currently the API is only open for accredited parties, please contact Customer Contact Center (tennetccc@tennet.eu) for access.

## Installation
`python3 -m pip install tenneteu-py`

## Usage
```python
from tenneteu import TenneTeuClient
from secret import apikey
import pandas as pd

client = TenneTeuClient(api_key=apikey)
d_from = pd.Timestamp('2024-01-01', tz='europe/amsterdam')
d_to = pd.Timestamp('2024-01-01 23:59', tz='europe/amsterdam')
# all possible queries listed below, name should be self explanatory
# from, to queries:
df = client.query_balance_delta(d_from=d_from, d_to=d_to)
df = client.query_settlement_prices(d_from=d_from, d_to=d_to)
df = client.query_merit_order_list(d_from=d_from, d_to=d_to)

#returns last 30 minutes like in tennet-py with the old api
df = client.query_current_imbalance() 
```

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fboerman/TenneTeu-py",
    "name": "tenneteu-py",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": "TenneT data api energy",
    "author": "Frank Boerman",
    "author_email": "frank@fboerman.nl",
    "download_url": "https://files.pythonhosted.org/packages/d5/94/5d607ab36b394e2d476842d873422a41260488d0ffda002811f5711f8127/tenneteu_py-0.1.2.tar.gz",
    "platform": null,
    "description": "# TenneTeu-py\nPython client for the official tennet.eu api. Currently the API is only open for accredited parties, please contact Customer Contact Center (tennetccc@tennet.eu) for access.\n\n## Installation\n`python3 -m pip install tenneteu-py`\n\n## Usage\n```python\nfrom tenneteu import TenneTeuClient\nfrom secret import apikey\nimport pandas as pd\n\nclient = TenneTeuClient(api_key=apikey)\nd_from = pd.Timestamp('2024-01-01', tz='europe/amsterdam')\nd_to = pd.Timestamp('2024-01-01 23:59', tz='europe/amsterdam')\n# all possible queries listed below, name should be self explanatory\n# from, to queries:\ndf = client.query_balance_delta(d_from=d_from, d_to=d_to)\ndf = client.query_settlement_prices(d_from=d_from, d_to=d_to)\ndf = client.query_merit_order_list(d_from=d_from, d_to=d_to)\n\n#returns last 30 minutes like in tennet-py with the old api\ndf = client.query_current_imbalance() \n```\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A python API wrapper for tennet.eu API",
    "version": "0.1.2",
    "project_urls": {
        "Homepage": "https://github.com/fboerman/TenneTeu-py"
    },
    "split_keywords": [
        "tennet",
        "data",
        "api",
        "energy"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "cb51ee8c3ea0e71696c314ab05d770f57ae6991d7ec003d41a6a8ccd86f4c28e",
                "md5": "14841fba92307a08de442035c1de5710",
                "sha256": "1fabd8321f0baf42d8173a72ad1c46aa85e95f1943aa0e180b3bf4f40b68932c"
            },
            "downloads": -1,
            "filename": "tenneteu_py-0.1.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "14841fba92307a08de442035c1de5710",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 3717,
            "upload_time": "2024-11-04T16:02:40",
            "upload_time_iso_8601": "2024-11-04T16:02:40.728480Z",
            "url": "https://files.pythonhosted.org/packages/cb/51/ee8c3ea0e71696c314ab05d770f57ae6991d7ec003d41a6a8ccd86f4c28e/tenneteu_py-0.1.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d5945d607ab36b394e2d476842d873422a41260488d0ffda002811f5711f8127",
                "md5": "cf030dfd825ccc2ea6acef0e1cd60b2b",
                "sha256": "70953b0669cbed30b90dcf2522f8c75a828dd7fe960fdd2364b69b97fda8ae9b"
            },
            "downloads": -1,
            "filename": "tenneteu_py-0.1.2.tar.gz",
            "has_sig": false,
            "md5_digest": "cf030dfd825ccc2ea6acef0e1cd60b2b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3566,
            "upload_time": "2024-11-04T16:02:42",
            "upload_time_iso_8601": "2024-11-04T16:02:42.345524Z",
            "url": "https://files.pythonhosted.org/packages/d5/94/5d607ab36b394e2d476842d873422a41260488d0ffda002811f5711f8127/tenneteu_py-0.1.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-11-04 16:02:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fboerman",
    "github_project": "TenneTeu-py",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "tenneteu-py"
}
        
Elapsed time: 2.37154s