Skip to main content

An unofficial Xcel Energy® API

Project description

pyxcel: A Simple Python API for Xcel Energy® Data

https://travis-ci.org/bachya/pyxcel.svg?branch=master https://img.shields.io/pypi/v/pyxcel.svg https://img.shields.io/pypi/pyversions/pyxcel.svg https://img.shields.io/pypi/l/pyxcel.svg https://codecov.io/gh/bachya/pyxcel/branch/master/graph/badge.svg https://api.codeclimate.com/v1/badges/71eb642c735e33adcdfc/maintainability https://img.shields.io/badge/SayThanks-!-1EAEDB.svg

pyxcel is a simple Python library for energy data from Xcel Energy®.

This library works by repeating the same HTTP requests performed by users who view the Xcel Energy® website. Because there is no official “API,” this library may stop working at any time.

Installation

$ pip install pyxcel

Usage

import pyxcel

client = pyxcel.Client('username', 'password12345')

# Retrieves the account overview (including energy usage, grades, etc.):
client.get_account_overview()

# Retrieves all billing information for the account
client.get_bills()

# Retrives detailed information for a particular premise:
client.get_usages('PREMISE_ID')

Contributing

  1. Check for open features/bugs or initiate a discussion on one.

  2. Fork the repository.

  3. Install the dev environment: make init.

  4. Enter the virtual environment: pipenv shell

  5. Code your new feature or bug fix.

  6. Write a test that covers your new functionality.

  7. Run tests: make test

  8. Build new docs: make docs

  9. Add yourself to AUTHORS.rst.

  10. Submit a pull request!

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

pyxcel-1.0.0.tar.gz (11.8 kB view details)

Uploaded Source

Built Distribution

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

pyxcel-1.0.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file pyxcel-1.0.0.tar.gz.

File metadata

  • Download URL: pyxcel-1.0.0.tar.gz
  • Upload date:
  • Size: 11.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pyxcel-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5c07044a19442ad8439199f9b09b1758cc6b19ca0dff8422818323b09268f4aa
MD5 1a234da852cb964ae38c50529c7d9901
BLAKE2b-256 73255f07f8c21fdfb17f510ced74fdddc19bbcccc1d1c3b57e6861bb18b8e64f

See more details on using hashes here.

File details

Details for the file pyxcel-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pyxcel-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c49c9a78893dfd8ffb13f7f0aa6ff8452e3807f04742a6f6115c6c8afe4bd4ff
MD5 a2c163ed8c06012f46aac73c54eaeb8b
BLAKE2b-256 32553c5d3089bda9bc1c1c2cedba323ad42e78c005ffebabe822136a1e721e89

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