An open API service indexing awesome lists of open source software.

https://github.com/poly2it/malar

A wrapper for the Mälarenergi API.
https://github.com/poly2it/malar

Last synced: 8 months ago
JSON representation

A wrapper for the Mälarenergi API.

Awesome Lists containing this project

README

          

# Malar
Malar is an asynchronous wrapper for the Mälarenergi API. It can be used for reading
energy pricing data in different energy sectors in Sweden.

## Usage
`./install`

```py
from malar import Api, Sector
import asyncio

async def main():
_, _, price = await Api.Pricing.current(Sector.SE1)
print(f"The energy price in öre/kWh for sector SE1 is {price}")

if __name__ == "__main__":
asyncio.run(main())

```

```
The energy price in öre/kWh for sector SE1 is 41.97
```

---

drawing

This project and its contributors are in no way assoicated with Mälarenergi AB or any of
their associates. Their name is used in this project for attribution and illustrative
purposes, such as clearly displaying the origin of the data available with this API
wrapper.