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.
- Host: GitHub
- URL: https://github.com/poly2it/malar
- Owner: poly2it
- License: lgpl-3.0
- Created: 2023-11-02T19:27:07.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2023-12-09T14:12:52.000Z (over 2 years ago)
- Last Synced: 2025-06-03T14:44:49.979Z (about 1 year ago)
- Language: Python
- Size: 20.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```
---

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.