{ "info": { "author": "Alex Piskun", "author_email": "piskun.aleksey@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Statnett API Client\n\nClient presents methods for reading real-time Nordic power balance data provided \nby the Norwegian Transmission System Operator ([statnett.no](https://www.statnett.no/)). \n\nThe full list of topics accessible via Statnett REST API can be seen [here](http://driftsdata.statnett.no/restapi).\n\nClient supports reading of the following topics:\n\n* [Nordic Power Balance](https://www.statnett.no/en/for-stakeholders-in-the-power-industry/data-from-the-power-system/#nordic-power-balance)\n* [Nordic Power Flow](https://www.statnett.no/en/for-stakeholders-in-the-power-industry/data-from-the-power-system/#nordic-power-flow)\n* [Grid Frequency](https://www.statnett.no/en/for-stakeholders-in-the-power-industry/data-from-the-power-system/#nordic-power-balance)\n\n## Installation\n\nTo install the Client, simply use pip:\n\n```\n$ pip install statnett_api_client\n``` \n\n## Basic Usage\n\n```python\nfrom statnett_api_client import get_flow, get_balance, get_frequency\n\n# read power flow \nflow = get_flow(fmt='pandas')\n\n# read balance data\nbalance = get_balance(fmt='pandas')\n\n# read grid frequency\nfreq = get_frequency(fmt='pandas')\n```\n\n## Getting topics in a loop\n\nYou can use `get_topic` method for iterating over different topics. \n\n```python\nfrom statnett_api_client import get_topic\n\nfor topic in ['flow', 'balance', 'frequency']:\n data = get_topic(topic, fmt='pandas')\n```\n\n## Parameters\n\nYou can specify format of returned object using `fmt` parameter. \n\n```python\n# this will return flow in json format \nflow = get_flow(fmt='json')\n# this will return pandas dataframe\nflow = get_flow(fmt='pandas')\n```\n\nSpecify `date2index` if you want to add dates to dataframe index.\n\n```python\nbalance = get_balance(fmt='pandas', date2index=True)\n```\n\nBy default, the time is in UTC. To add a column with Central European Time (CET), \nyou need to specify `time_cet` parameter.\n\n```python\nfreq = get_frequency(fmt='pandas', date2index=True, time_cet=True)\n```\n\nSometimes it can be useful to add `hour` column to result dataframe. It can be achieved by \nspecifying `add_hour` parameter. If `time_cet` is True, then two columns are added, \n`hour_utc` and `hour_cet`. \n\n```python\nflow = get_flow(fmt='pandas', time_cet=True, add_hour=True)\n```\n\nTo get frequency data for time period, you need to scecify `date_from` parameter. Supports only for \n`frequency` topic.\n\n```python\nfreq = get_frequency(fmt='pandas', date_from='2019-06-07 21:30')\n```\n\n## License\n\nThe Client is released under [MIT License](https://github.com/viktorsapozhok/statnett-api-client/blob/master/LICENSE). \n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/viktorsapozhok/statnett-api-client", "keywords": "Statnett,API,Nordic power flow,Nordic power balance", "license": "", "maintainer": "", "maintainer_email": "", "name": "statnett-api-client", "package_url": "https://pypi.org/project/statnett-api-client/", "platform": "", "project_url": "https://pypi.org/project/statnett-api-client/", "project_urls": { "Homepage": "https://github.com/viktorsapozhok/statnett-api-client" }, "release_url": "https://pypi.org/project/statnett-api-client/0.1.5/", "requires_dist": [ "requests", "pandas (>=0.24.0)" ], "requires_python": ">=3.6", "summary": "Statnett API Client", "version": "0.1.5" }, "last_serial": 5386477, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "59ae5bdb4007e06883cd1fb48240991a", "sha256": "3220baa080e0ab57e4404db36fb237f60f0c5e2423a61185017947ce3f9a155a" }, "downloads": -1, "filename": "statnett_api_client-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "59ae5bdb4007e06883cd1fb48240991a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 5810, "upload_time": "2019-05-14T10:30:28", "url": "https://files.pythonhosted.org/packages/ba/20/b3d1bf1e269d822b6c841265568c0ee0be499a150f2f0690155060765896/statnett_api_client-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "5dd8e6670b639d8bf51d92896aed27dc", "sha256": "c8f734d147428a5de30ac019eedfcc21f00ed88e2d35950ad372d41d1b4bb350" }, "downloads": -1, "filename": "statnett-api-client-0.1.0.tar.gz", "has_sig": false, "md5_digest": "5dd8e6670b639d8bf51d92896aed27dc", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4181, "upload_time": "2019-05-14T10:30:30", "url": "https://files.pythonhosted.org/packages/ba/83/e08b9523bf1250edaeab85923c11d2c1ff07a8bdfadb76b7349792677023/statnett-api-client-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "5b6f8a2e1cdb09a6d727bb3197f5f045", "sha256": "880f4c6fe5c4baea16ec309a9a80a231478372cb89ac9ce3276a96cc3b261042" }, "downloads": -1, "filename": "statnett_api_client-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "5b6f8a2e1cdb09a6d727bb3197f5f045", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6142, "upload_time": "2019-05-21T11:36:25", "url": "https://files.pythonhosted.org/packages/d6/26/fd3e7d43770fb5cfcf6f76becde010fb19f85b87a7da67f6e0f6e995e81e/statnett_api_client-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "386bdf9edcb70180d283e42362f74327", "sha256": "607077728bcc7e39002c73787879e3136f932abde0834e6a24f44d6d5ccc8099" }, "downloads": -1, "filename": "statnett-api-client-0.1.1.tar.gz", "has_sig": false, "md5_digest": "386bdf9edcb70180d283e42362f74327", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4250, "upload_time": "2019-05-21T11:36:27", "url": "https://files.pythonhosted.org/packages/8c/02/8c0b909e9f61058adefa85dd1d3ac8c9be42a2105aecf2c36731ca2b2d5d/statnett-api-client-0.1.1.tar.gz" } ], "0.1.2": [ { "comment_text": "", "digests": { "md5": "1a7c90cf47835f8636c80b705ea3417a", "sha256": "8798c30ed017ff55a107ff562698770a0bd1fae5b29108d34331d3a4307e7488" }, "downloads": -1, "filename": "statnett_api_client-0.1.2-py3-none-any.whl", "has_sig": false, "md5_digest": "1a7c90cf47835f8636c80b705ea3417a", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6065, "upload_time": "2019-05-23T09:55:38", "url": "https://files.pythonhosted.org/packages/35/f8/9baebcc06ce55a3e39a844287697532dc257bfdbdcbf2146b91f88a1b5e6/statnett_api_client-0.1.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d7e901e8785d6a1e7895db0810ce44e4", "sha256": "5d64aa7aa663e6a176a8106a2deb24a844bf2658ed5133c893a316c121ade459" }, "downloads": -1, "filename": "statnett-api-client-0.1.2.tar.gz", "has_sig": false, "md5_digest": "d7e901e8785d6a1e7895db0810ce44e4", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4512, "upload_time": "2019-05-23T09:55:40", "url": "https://files.pythonhosted.org/packages/2d/c3/dceb7acca497c8e9edd3148c7a8d1559b591780dfc5140dce0698965a217/statnett-api-client-0.1.2.tar.gz" } ], "0.1.3": [ { "comment_text": "", "digests": { "md5": "4c2e58fbd247cd4612760b7d3ca3abc4", "sha256": "bf055ecaf6e120f1ac716543205973b6a63a47ada418ca47d7b2043aad66ac46" }, "downloads": -1, "filename": "statnett_api_client-0.1.3-py3-none-any.whl", "has_sig": false, "md5_digest": "4c2e58fbd247cd4612760b7d3ca3abc4", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6743, "upload_time": "2019-06-11T08:03:25", "url": "https://files.pythonhosted.org/packages/99/c8/a5fcdd85bf0207e8cfaec2c0241de76ea4a99ac57472cdae8394a5f5d512/statnett_api_client-0.1.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "dc6720c534853e51ad69a8d976c63486", "sha256": "60d3bf147e5f1c77aa6513eeb7b11a54f1ce731056a7f046452a16d59e8a1bca" }, "downloads": -1, "filename": "statnett-api-client-0.1.3.tar.gz", "has_sig": false, "md5_digest": "dc6720c534853e51ad69a8d976c63486", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4839, "upload_time": "2019-06-11T08:03:27", "url": "https://files.pythonhosted.org/packages/3a/32/dfd6a7080beba8f4e84400fde1280538ae26d2bf42d2350befc3f636ac15/statnett-api-client-0.1.3.tar.gz" } ], "0.1.4": [ { "comment_text": "", "digests": { "md5": "d3f2d5ca5c1a788a1d269deca8335200", "sha256": "e816a8f0faee0f9dd1b85b01a3473a869b1bc5644d857be992adda588421da75" }, "downloads": -1, "filename": "statnett_api_client-0.1.4-py3-none-any.whl", "has_sig": false, "md5_digest": "d3f2d5ca5c1a788a1d269deca8335200", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6854, "upload_time": "2019-06-11T08:53:38", "url": "https://files.pythonhosted.org/packages/30/98/0fbf4c63ef6401db2f0cce9b713d9a5f898afd776df1f820efebafc0c6ee/statnett_api_client-0.1.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ae7d62ab4d2fccec45b1a428040a4faa", "sha256": "39c0aeab82d61519909fa77ddd675da933f31910cc72d209354a37750b490326" }, "downloads": -1, "filename": "statnett-api-client-0.1.4.tar.gz", "has_sig": false, "md5_digest": "ae7d62ab4d2fccec45b1a428040a4faa", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4968, "upload_time": "2019-06-11T08:53:40", "url": "https://files.pythonhosted.org/packages/3a/f2/b0873ba6f38ead6760d7b9f67cbf18c776eac1d2f4f66a28b89794a15085/statnett-api-client-0.1.4.tar.gz" } ], "0.1.5": [ { "comment_text": "", "digests": { "md5": "216859c5ea6efdefedd609fbe36ee62b", "sha256": "26526efe59f64692c567d156057c77bf5322b493487018d569b745237f0e2061" }, "downloads": -1, "filename": "statnett_api_client-0.1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "216859c5ea6efdefedd609fbe36ee62b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6855, "upload_time": "2019-06-11T13:05:33", "url": "https://files.pythonhosted.org/packages/4d/4a/4fea4895f8456b18946379cd40cf32a9315f6c6cf398ca0e51aef1305d75/statnett_api_client-0.1.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "16d4924fdd516ecb29c712a6ad181148", "sha256": "4102063d839cb9356953a228bdc72ea2879fb0e88f557c31029f539bbae1a7a5" }, "downloads": -1, "filename": "statnett-api-client-0.1.5.tar.gz", "has_sig": false, "md5_digest": "16d4924fdd516ecb29c712a6ad181148", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4970, "upload_time": "2019-06-11T13:05:35", "url": "https://files.pythonhosted.org/packages/98/49/b5294f3e9776050afb753bf94f363f028e6d3860fe2d9c81e89d55cf5b28/statnett-api-client-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "216859c5ea6efdefedd609fbe36ee62b", "sha256": "26526efe59f64692c567d156057c77bf5322b493487018d569b745237f0e2061" }, "downloads": -1, "filename": "statnett_api_client-0.1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "216859c5ea6efdefedd609fbe36ee62b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 6855, "upload_time": "2019-06-11T13:05:33", "url": "https://files.pythonhosted.org/packages/4d/4a/4fea4895f8456b18946379cd40cf32a9315f6c6cf398ca0e51aef1305d75/statnett_api_client-0.1.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "16d4924fdd516ecb29c712a6ad181148", "sha256": "4102063d839cb9356953a228bdc72ea2879fb0e88f557c31029f539bbae1a7a5" }, "downloads": -1, "filename": "statnett-api-client-0.1.5.tar.gz", "has_sig": false, "md5_digest": "16d4924fdd516ecb29c712a6ad181148", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 4970, "upload_time": "2019-06-11T13:05:35", "url": "https://files.pythonhosted.org/packages/98/49/b5294f3e9776050afb753bf94f363f028e6d3860fe2d9c81e89d55cf5b28/statnett-api-client-0.1.5.tar.gz" } ] }