Skip to main content

Wrapper for PECO Outage API

Project description

PECO Outage API

A library for interacting with the PECO outage map to gain the numbers from it.

Interacting with the API is simple.

from peco import get_outage_count, get_outage_totals

# How many customers are affected by an outage in Bucks county?
print(get_outage_count('BUCKS')["customers_out"])

# What is the total outage count for the entire region?
print(get_outage_totals()["outage_count"])

# What is the percentage of customers that are affected by an outage?
print(get_outage_totals()["percent_customers_out"])

Note: The percent_customers_out key does not go below 5%. It will show up as 4.999999 instead. Make sure to take this into account when using the API.

The counties that are available are:

  • BUCKS
  • CHESTER
  • DELAWARE
  • MONTGOMERY
  • PHILADELPHIA
  • YORK

The values you can access are:

  • customers_out
  • percent_customers_out
  • outage_count
  • customers_served

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

peco-0.0.17.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

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

peco-0.0.17-py3-none-any.whl (3.8 kB view details)

Uploaded Python 3

File details

Details for the file peco-0.0.17.tar.gz.

File metadata

  • Download URL: peco-0.0.17.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.8.0 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for peco-0.0.17.tar.gz
Algorithm Hash digest
SHA256 acfde9f6c2a4acfe9b07c144ca93fbb5ba4d77641bf54c47bd8a2b02525fab5b
MD5 a9b2073838432b4f05ef7a42fa39cb0b
BLAKE2b-256 8d654eef369e207d866f46ade1beffb451ba5c842cf4f0efbc7a9bcacc8f714d

See more details on using hashes here.

File details

Details for the file peco-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: peco-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 3.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.1 pkginfo/1.8.2 requests/2.21.0 requests-toolbelt/0.8.0 tqdm/4.62.3 CPython/3.7.3

File hashes

Hashes for peco-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 c4f00fd6d1634e378ec5be34796b91e951bd5f41e72705d2136b4bc7a4f02a65
MD5 6721ca6179d47fde95f0494d188789b4
BLAKE2b-256 857c877ef3455dee916f4857a18d109cc7b07f36dc6605e4ea1b897c66402186

See more details on using hashes here.

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