Skip to main content

Enea Outages Python Library

A simple Python library to get information about power outages from the Enea Operator website.

Installation

pip install enea-outages

Usage (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.

# 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

enea_outages-0.5.0.tar.gz (12.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

enea_outages-0.5.0-py3-none-any.whl (7.3 kB view details)

Uploaded Python 3

File details

Details for the file enea_outages-0.5.0.tar.gz.

File metadata

  • Download URL: enea_outages-0.5.0.tar.gz
  • Upload date:
  • Size: 12.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for enea_outages-0.5.0.tar.gz
Algorithm Hash digest
SHA256 8ffa578e8589acbc322d99a9befcb667f35b6bcb16fdfcfa0aa3675107862cb7
MD5 c1c19765643c30545647f81b805bb1e8
BLAKE2b-256 bf5fcfcaf4d0de7841c99356ee4a95b0b02cafb67c7edf1a7d095a0365761c2e

See more details on using hashes here.

Provenance

The following attestation bundles were made for enea_outages-0.5.0.tar.gz:

Publisher: ci.yml on theundefined/enea-outages

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file enea_outages-0.5.0-py3-none-any.whl.

File metadata

  • Download URL: enea_outages-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 7.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for enea_outages-0.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 686e47f01de0260aa173d230d99ec5ec1c3ac3e05f88b47118abe3fc32a1640c
MD5 43faed33cdd16063ccca55a210f18d1d
BLAKE2b-256 e18b18e67b33d64496e4eea55bc90f5101f9fabca298d74dc0a43eaaed4c4850

See more details on using hashes here.

Provenance

The following attestation bundles were made for enea_outages-0.5.0-py3-none-any.whl:

Publisher: ci.yml on theundefined/enea-outages

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.5.0 This release

2 files

0.4.0

2 files

0.3.1

2 files

0.3.0

2 files

0.2.1

2 files

0.2.0

2 files

0.1.6

2 files

0.1.5

2 files

0.1.0

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page