https://github.com/theundefined/enea-outages
**Enea Outages** to lekka biblioteka Pythona stworzona do łatwego pobierania informacji o bieżących i planowanych awariach dostaw energii elektrycznej od operatora Enea. Dzięki niej możesz w prosty sposób monitorować status zasilania w wybranych regionach lub dla konkretnych adresów.
https://github.com/theundefined/enea-outages
Last synced: 6 months ago
JSON representation
**Enea Outages** to lekka biblioteka Pythona stworzona do łatwego pobierania informacji o bieżących i planowanych awariach dostaw energii elektrycznej od operatora Enea. Dzięki niej możesz w prosty sposób monitorować status zasilania w wybranych regionach lub dla konkretnych adresów.
- Host: GitHub
- URL: https://github.com/theundefined/enea-outages
- Owner: theundefined
- License: mit
- Created: 2025-11-29T22:55:33.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-12-01T21:04:53.000Z (7 months ago)
- Last Synced: 2025-12-04T02:43:42.448Z (7 months ago)
- Language: Python
- Homepage:
- Size: 53.7 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Enea Outages Python Library
A simple Python library to get information about power outages from the Enea Operator website.
## Installation
```bash
pip install enea-outages
```
## Usage (Python)
```python
from enea_outages.client import EneaOutagesClient
from enea_outages.models import OutageType
# Initialize the synchronous client
client = EneaOutagesClient()
# Get a list of available regions
regions = client.get_available_regions()
print(f"Available regions: {regions}")
# Get all planned outages for the "Poznań" region
planned_outages = client.get_outages_for_region("Poznań", outage_type=OutageType.PLANNED)
print(f"Found {len(planned_outages)} planned outages in Poznań.")
# Get all unplanned outages for a specific address in "Szczecin"
unplanned_outages = client.get_outages_for_address(
address="Wojska Polskiego",
region="Szczecin",
outage_type=OutageType.UNPLANNED
)
print(f"Found {len(unplanned_outages)} unplanned outages for the address.")
if unplanned_outages:
outage = unplanned_outages[0]
print(
f"Example -> Area: {outage.region}, "
f"Description: {outage.description}, "
f"End Time: {outage.end_time}"
)
```
## Usage (CLI)
The library also provides a command-line interface (CLI) for quick checks.
```bash
# List all available regions
enea-outages --list-regions
# Get unplanned outages for a specific region
enea-outages --region "Poznań" --type unplanned
# Get planned outages for a specific address in a region
enea-outages --region "Szczecin" --address "Wojska Polskiego" --type planned
```
---
*This project was developed with the assistance of AI tools (Google Gemini). While the code has been reviewed, please use it with standard caution.*