{ "info": { "author": "Thomas Basche", "author_email": "thomas.basche@repositpower.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: Apache Software License", "Operating System :: OS Independent", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7" ], "description": "## reposit-python-client\n\n[![Build Status](https://travis-ci.org/RepositPower/reposit-python-client.svg?branch=master)](https://travis-ci.org/RepositPower/reposit-python-client)\n\n\n

\n Python client library to communicate with a Reposit Controller.\n

\n

\n \n

\n\n## Compatibility\n\n- Python 2.7\n- Python 3+ *preferred*\n\n## Installation\n```\npip install reposit\n```\n\n## Quickstart\n\n```\nfrom reposit.auth import RPConnection\nfrom reposit import Controller, Account\n\nuser = RPConnection('username', 'password')\naccount = Account(user)\n\nuser_keys = account.get_user_keys()\n\ncontroller = Controller(user, user_key=user_keys[0])\n\nprint(controller.battery_capacity)\n```\n\n## Data\n| Method | Params | Description | Unit |\n|:-------------:|:-------------|:-------------|---------|\n| `battery_capacity` | - | Get the capacity of the battery | kWh |\n| `battery_min_state_of_charge` | - | Get the minimum state of charge of the battery | Percentage (%)\n| `has_battery` | - | Bool of whether the user has a battery or not| True/False |\n| `has_inverter` | - | Bool of whether the user has an inverter or not| True/False |\n| `get_solar_generation` | | Get a list of solar generation data based on start or end| kW |\n|`latest_solar_generation`|-|Get a list of the latest generation data. Goes back the last 24 hours.| kW |\n| `get_house_consumption` | | Get a list of house consumption values based on start or end| kW|\n|`latest_house_consumption`|-|Get a list of the latest house consumption. Goes back the last 24 hours.| kW|\n| `get_battery_data` | | Get a list of battery data based on start or end| kWh |\n|`latest_battery_data`|-|Get a list of the latest battery data. Goes back the last 24 hours.| kWh |\n| `get_remaining_charge` | | Get a list of the battery's remaining charge values based on start or end. There should be at least a 5 minute gap between start and end timestamps (i.e. 300 seconds)

Note: This can be used to calculate the state of charge with the formula: (remaining_charge / battery_capacity) * 100` | kWh\n| `get_meter_data` | | Get a list of meter data based on start or end. There should be at least a 5 minute gap between start and end timestamps (i.e. 300 seconds) | kW\n|`latest_meter_data`|-|Get a list of the latest meter data. Goes back the last 24 hours.| kW |\n|`feed_in_tariff`|-|Get the feed-in-tariff| Dollars ($) |\n\n## Links\n\n[Reposit Power](https://www.repositpower.com)", "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/RepositPower/reposit-python-client", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "reposit", "package_url": "https://pypi.org/project/reposit/", "platform": "", "project_url": "https://pypi.org/project/reposit/", "project_urls": { "Homepage": "https://github.com/RepositPower/reposit-python-client" }, "release_url": "https://pypi.org/project/reposit/0.4.0/", "requires_dist": null, "requires_python": "", "summary": "A library to communicate with a Reposit Controller", "version": "0.4.0" }, "last_serial": 4734427, "releases": { "0.3": [ { "comment_text": "", "digests": { "md5": "d06031607729807e05a51fc842165f22", "sha256": "bd882ea48a47c45b02d6d6f0a8003b48d1db8a331ef31598c5608090b49357bb" }, "downloads": -1, "filename": "reposit-0.3.tar.gz", "has_sig": false, "md5_digest": "d06031607729807e05a51fc842165f22", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7742, "upload_time": "2018-08-20T22:50:47", "url": "https://files.pythonhosted.org/packages/19/ad/99190d25c503ca74e7cf3c4e4e4111fc2cd01192a57e5f6ab1eca9a8ec3d/reposit-0.3.tar.gz" } ], "0.3.1": [ { "comment_text": "", "digests": { "md5": "8c5575d4a32759444d5b34df223a4d16", "sha256": "896a3882eb04d1ed277c5ef4eee719df3486d1c8ed5379e2fdee5f37c6de26fb" }, "downloads": -1, "filename": "reposit-0.3.1.tar.gz", "has_sig": false, "md5_digest": "8c5575d4a32759444d5b34df223a4d16", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7643, "upload_time": "2018-08-21T00:48:59", "url": "https://files.pythonhosted.org/packages/81/f7/3db105d7fc15114ca4a0bf8539dbd7353dd3c02a6b430be52eb5cc083000/reposit-0.3.1.tar.gz" } ], "0.4.0": [ { "comment_text": "", "digests": { "md5": "ca170891d0cece31ba34cb96894819be", "sha256": "e690c40cea9d0113fdb5013de0bd5fc9197ddca325c34848a689fb48ce1f46e6" }, "downloads": -1, "filename": "reposit-0.4.0.tar.gz", "has_sig": false, "md5_digest": "ca170891d0cece31ba34cb96894819be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7422, "upload_time": "2019-01-24T06:29:29", "url": "https://files.pythonhosted.org/packages/33/7a/de33ff97973d80cfdadcca8f34a83591faf41e206c7eb21f1aab5300ac3a/reposit-0.4.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "ca170891d0cece31ba34cb96894819be", "sha256": "e690c40cea9d0113fdb5013de0bd5fc9197ddca325c34848a689fb48ce1f46e6" }, "downloads": -1, "filename": "reposit-0.4.0.tar.gz", "has_sig": false, "md5_digest": "ca170891d0cece31ba34cb96894819be", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 7422, "upload_time": "2019-01-24T06:29:29", "url": "https://files.pythonhosted.org/packages/33/7a/de33ff97973d80cfdadcca8f34a83591faf41e206c7eb21f1aab5300ac3a/reposit-0.4.0.tar.gz" } ] }