aiotrenergy


Nameaiotrenergy JSON
Version 0.0.5 PyPI version JSON
download
home_pageNone
SummaryAsync python wrapper for tr.energy api
upload_time2025-02-06 21:29:45
maintainerNone
docs_urlNone
authordrforse
requires_python<4.0,>=3.10
licenseNone
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Aiotrenergy
Asyncio library for interacting with the [Trenergy](https://tr.energy/) API.


## Installation
`pip install aiotrenergy`


## Usage
```python
from aiotrenergy import TrenergyClient
from aiotrenergy.enums import ConsumptionType


client = TrenergyClient("your_api_key", "https://nile-core.tr.energy/api/consumers")  # default url is https://core.tr.energy/api/

# Show account information
account = await client.account.show()
print(account)

# Transit wallets usage (https://tr.energy/ru/consumers/faq//#faq10)
consumer_create_response = await client.consumers.create(
    15,
    "TY3dRk4eQ75dCrW7tUcCzggU9rnz4V111",
    False,
    ConsumptionType.STATIC,
    200000,
    "test"
)
await client.consumers.activate(consumer_create_response.data.id)
```

## To do
### Fixes
client.consumers.toggle_auto_renewal returns 422 with no error message... (on params -> True, [54])
### Tests
### Docs

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "aiotrenergy",
    "maintainer": null,
    "docs_url": null,
    "requires_python": "<4.0,>=3.10",
    "maintainer_email": null,
    "keywords": null,
    "author": "drforse",
    "author_email": "george.lifeslice@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/98/8a/08ffecf68bf1a48e75e7c162d738cb994946d4ccc59c7c37464a769a9f76/aiotrenergy-0.0.5.tar.gz",
    "platform": null,
    "description": "# Aiotrenergy\nAsyncio library for interacting with the [Trenergy](https://tr.energy/) API.\n\n\n## Installation\n`pip install aiotrenergy`\n\n\n## Usage\n```python\nfrom aiotrenergy import TrenergyClient\nfrom aiotrenergy.enums import ConsumptionType\n\n\nclient = TrenergyClient(\"your_api_key\", \"https://nile-core.tr.energy/api/consumers\")  # default url is https://core.tr.energy/api/\n\n# Show account information\naccount = await client.account.show()\nprint(account)\n\n# Transit wallets usage (https://tr.energy/ru/consumers/faq//#faq10)\nconsumer_create_response = await client.consumers.create(\n    15,\n    \"TY3dRk4eQ75dCrW7tUcCzggU9rnz4V111\",\n    False,\n    ConsumptionType.STATIC,\n    200000,\n    \"test\"\n)\nawait client.consumers.activate(consumer_create_response.data.id)\n```\n\n## To do\n### Fixes\nclient.consumers.toggle_auto_renewal returns 422 with no error message... (on params -> True, [54])\n### Tests\n### Docs\n",
    "bugtrack_url": null,
    "license": null,
    "summary": "Async python wrapper for tr.energy api",
    "version": "0.0.5",
    "project_urls": {
        "homepage": "https://github.com/drforse/aiotrenergy",
        "repository": "https://github.com/drforse/aiotrenergy"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "02e4ebe95de48213bd8cfcfb79a9f002aa97d3571245bc902c57469a4cd0a553",
                "md5": "b12c4c81681de72cd56e928381f787ab",
                "sha256": "e3b08e50a2921eaf418f00cc9a433708ca37e6722b19b04a421d8b2397f70e5b"
            },
            "downloads": -1,
            "filename": "aiotrenergy-0.0.5-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "b12c4c81681de72cd56e928381f787ab",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": "<4.0,>=3.10",
            "size": 32077,
            "upload_time": "2025-02-06T21:29:43",
            "upload_time_iso_8601": "2025-02-06T21:29:43.493941Z",
            "url": "https://files.pythonhosted.org/packages/02/e4/ebe95de48213bd8cfcfb79a9f002aa97d3571245bc902c57469a4cd0a553/aiotrenergy-0.0.5-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "988a08ffecf68bf1a48e75e7c162d738cb994946d4ccc59c7c37464a769a9f76",
                "md5": "1cff723999f2c70d7e910b5722ec3a9b",
                "sha256": "39167ba55e59ffbbf2c913a1738ce7416ad8bca027227014fb959e8bc24f5fbe"
            },
            "downloads": -1,
            "filename": "aiotrenergy-0.0.5.tar.gz",
            "has_sig": false,
            "md5_digest": "1cff723999f2c70d7e910b5722ec3a9b",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": "<4.0,>=3.10",
            "size": 12725,
            "upload_time": "2025-02-06T21:29:45",
            "upload_time_iso_8601": "2025-02-06T21:29:45.198873Z",
            "url": "https://files.pythonhosted.org/packages/98/8a/08ffecf68bf1a48e75e7c162d738cb994946d4ccc59c7c37464a769a9f76/aiotrenergy-0.0.5.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-06 21:29:45",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "drforse",
    "github_project": "aiotrenergy",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "aiotrenergy"
}
        
Elapsed time: 0.58407s