No project description provided
Project description
Aiotrenergy
Asyncio library for interacting with the Trenergy API.
Installation
pip install aiotrenergy
Usage
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aiotrenergy-0.0.1.tar.gz
(35.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiotrenergy-0.0.1.tar.gz.
File metadata
- Download URL: aiotrenergy-0.0.1.tar.gz
- Upload date:
- Size: 35.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.6 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c6210dae278db060b6a8ac1f8b45ea4946879e35cdf9b1844e270384c8b8ab9d
|
|
| MD5 |
3f9a19ffff0fa83f4155186d5a1497f1
|
|
| BLAKE2b-256 |
dd72024ac4baa8b7e3f91e92af52dd0b6a2c9304ab0cfa896358bc8a1227ede6
|
File details
Details for the file aiotrenergy-0.0.1-py3-none-any.whl.
File metadata
- Download URL: aiotrenergy-0.0.1-py3-none-any.whl
- Upload date:
- Size: 31.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.12.6 Windows/11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a797781beb44ab2ea52e6d026279d95c0c00faa5d1f33aaf27d59449d858e0c
|
|
| MD5 |
3d02f9247bff96c1a438fc2754e6b66c
|
|
| BLAKE2b-256 |
66324e9510aac59f4bbd3ee88015b5422edd2e3937ecb9aedf50bd053e675d44
|