Skip to main content

CLI tool to check electricity outage schedules

Project description

Electricity Outage Checker

Release version PyPI Python

CLI tool to check DTEK electricity outage schedules

Installation

Install from PyPI

pip install electricity-outage-checker
outage-checker --help

Install from source

git clone https://github.com/whoisridze/electricity-outage-checker.git
cd electricity-outage-checker
uv sync
uv run outage-checker --help

Usage

# Check outage schedule for an address
outage-checker check "<city>, <street>, <house>"

# Set a default address
outage-checker set-address "<city>, <street>, <house>"

# Check using default address
outage-checker check

# List available cities
outage-checker list-cities

# List streets in a city
outage-checker list-streets "<city>"

# List houses on a street
outage-checker list-houses "<city>" "<street>"

# Show version
outage-checker --version

Development

# Install dev dependencies
uv sync

# Run linter
uv run ruff check .

# Format code
uv run ruff format .
uv run ruff check --fix .

# Run type checker
uv run mypy src/

Project Structure

electricity-outage-checker/
├── src/
│   └── electricity_outage_checker/
│       ├── __init__.py
│       ├── cli.py          # CLI entry point
│       ├── client.py       # DTEK API client
│       ├── config.py       # User configuration
│       ├── models.py       # Data models
│       └── py.typed        # PEP 561 marker
├── pyproject.toml          # Project configuration
└── README.md

License

MIT

Project details


Download files

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

Source Distribution

electricity_outage_checker-1.0.2.tar.gz (30.2 kB view details)

Uploaded Source

Built Distribution

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

electricity_outage_checker-1.0.2-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

Details for the file electricity_outage_checker-1.0.2.tar.gz.

File metadata

File hashes

Hashes for electricity_outage_checker-1.0.2.tar.gz
Algorithm Hash digest
SHA256 ae37e043ae9fbcb4e879141de1f9b197592599253b01aa892efa23d0005b1339
MD5 c0776fe389e4b110d025719bbf21f2b6
BLAKE2b-256 5a9d447aea071aa5e50d1eb3d297d0a77c19a1234a93b22cc260d4db7c381418

See more details on using hashes here.

Provenance

The following attestation bundles were made for electricity_outage_checker-1.0.2.tar.gz:

Publisher: publish.yml on whoisridze/electricity-outage-checker

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

File details

Details for the file electricity_outage_checker-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for electricity_outage_checker-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 51fe41d747d2e512b9b2d2f7a9f88b7489d4d5d3ea16a6940e65531be1431e46
MD5 5520d7f537efb02753f4b11cd8de7b77
BLAKE2b-256 73373e71030d9bc9e2ade953b434ca4e47a576f5077b8755a725f0021c847044

See more details on using hashes here.

Provenance

The following attestation bundles were made for electricity_outage_checker-1.0.2-py3-none-any.whl:

Publisher: publish.yml on whoisridze/electricity-outage-checker

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

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page