Skip to main content

CLI tool to check electricity outage schedules

Project description

Electricity Outage Checker

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.1.tar.gz (26.5 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.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for electricity_outage_checker-1.0.1.tar.gz
Algorithm Hash digest
SHA256 66b2b7ae19671fa292d7606fc5e4bc7889f8009d6824f3fbeee02d4408b99395
MD5 2c00cfd2e720d626b13a60b6d83c6b7d
BLAKE2b-256 3982ffd126d650cc220013d2ac8c133ebf7d5cb4b3d3729d5f4fcac729681537

See more details on using hashes here.

Provenance

The following attestation bundles were made for electricity_outage_checker-1.0.1.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.1-py3-none-any.whl.

File metadata

File hashes

Hashes for electricity_outage_checker-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f19a06d80ad577ae08f055cecf344e015a427e10fcfaf7ec38462dad9ffd5c71
MD5 c65c666bc9eea58ae6271131a10cd019
BLAKE2b-256 24e5d8cb3e86c34799c6c57b20bd65b1409e18e41ab089583a70501ef170cf28

See more details on using hashes here.

Provenance

The following attestation bundles were made for electricity_outage_checker-1.0.1-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