aioelpris-0.2.0
توضیحات
An aio library to retrieve some Nordic countries current electricity price.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | aioelpris-0.2.0 |
| نام | aioelpris |
| نسخه کتابخانه | 0.2.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Alejandro González Pérez |
| ایمیل نویسنده | 8874974+dansmachina@users.noreply.github.com |
| آدرس صفحه اصلی | https://github.com/dansmachina/aioelpris |
| آدرس اینترنتی | https://pypi.org/project/aioelpris/ |
| مجوز | Apache License |
# aioelpris
An aio library to retrieve current electricity price in (some parts) of the Nordics. Current supported regions are:
- `DK1`: Denmark/west of the Great Belt
- `DK2`: Denmark/east of the Great Belt
- `NO2`: Norway/Kristiansand
- `SE3`: Sweden/Stockholm
- `SE4`: Sweden/Malmö
Prices are returned in DKK and EUR currencies.
## Basic example
```python
import asyncio
from aiohttp import ClientSession
from aioelpris import ElPris
from aioelpris.core.models import Price
async def example() -> Price:
async with ClientSession() as session:
pris = ElPris(session=session, price_area="SE3")
price: Price = await pris.get_current_price()
print(price.SpotPriceDKK)
return price
asyncio.run(example())
```
## Data sources
[Energi Data Service](https://www.energidataservice.dk/tso-electricity/Elspotprices).
نیازمندی
| مقدار | نام |
|---|---|
| >=3.8.1,<4.0.0 | aiohttp |
| >=1.9.1,<2.0.0 | pydantic |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.9,<4.0 | Python |
نحوه نصب
نصب پکیج whl aioelpris-0.2.0:
pip install aioelpris-0.2.0.whl
نصب پکیج tar.gz aioelpris-0.2.0:
pip install aioelpris-0.2.0.tar.gz