{"id":34063995,"url":"https://github.com/theundefined/enea-outages","last_synced_at":"2025-12-30T08:42:17.977Z","repository":{"id":327063056,"uuid":"1106772138","full_name":"theundefined/enea-outages","owner":"theundefined","description":"**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.","archived":false,"fork":false,"pushed_at":"2025-12-01T21:04:53.000Z","size":55,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-12-04T02:43:42.448Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/theundefined.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-29T22:55:33.000Z","updated_at":"2025-12-01T21:04:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/theundefined/enea-outages","commit_stats":null,"previous_names":["theundefined/enea-outages"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/theundefined/enea-outages","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theundefined%2Fenea-outages","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theundefined%2Fenea-outages/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theundefined%2Fenea-outages/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theundefined%2Fenea-outages/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/theundefined","download_url":"https://codeload.github.com/theundefined/enea-outages/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/theundefined%2Fenea-outages/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27719055,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-12-14T02:00:11.348Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-12-14T06:00:11.943Z","updated_at":"2025-12-14T06:00:12.914Z","avatar_url":"https://github.com/theundefined.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Enea Outages Python Library\n\nA simple Python library to get information about power outages from the Enea Operator website.\n\n## Installation\n\n```bash\npip install enea-outages\n```\n\n## Usage (Python)\n\n```python\nfrom enea_outages.client import EneaOutagesClient\nfrom enea_outages.models import OutageType\n\n# Initialize the synchronous client\nclient = EneaOutagesClient()\n\n# Get a list of available regions\nregions = client.get_available_regions()\nprint(f\"Available regions: {regions}\")\n\n# Get all planned outages for the \"Poznań\" region\nplanned_outages = client.get_outages_for_region(\"Poznań\", outage_type=OutageType.PLANNED)\nprint(f\"Found {len(planned_outages)} planned outages in Poznań.\")\n\n# Get all unplanned outages for a specific address in \"Szczecin\"\nunplanned_outages = client.get_outages_for_address(\n    address=\"Wojska Polskiego\",\n    region=\"Szczecin\",\n    outage_type=OutageType.UNPLANNED\n)\nprint(f\"Found {len(unplanned_outages)} unplanned outages for the address.\")\n\nif unplanned_outages:\n    outage = unplanned_outages[0]\n    print(\n        f\"Example -\u003e Area: {outage.region}, \"\n        f\"Description: {outage.description}, \"\n        f\"End Time: {outage.end_time}\"\n    )\n```\n\n## Usage (CLI)\n\nThe library also provides a command-line interface (CLI) for quick checks.\n\n```bash\n# List all available regions\nenea-outages --list-regions\n\n# Get unplanned outages for a specific region\nenea-outages --region \"Poznań\" --type unplanned\n\n# Get planned outages for a specific address in a region\nenea-outages --region \"Szczecin\" --address \"Wojska Polskiego\" --type planned\n```\n\n---\n\n*This project was developed with the assistance of AI tools (Google Gemini). While the code has been reviewed, please use it with standard caution.*","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheundefined%2Fenea-outages","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftheundefined%2Fenea-outages","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftheundefined%2Fenea-outages/lists"}