Skip to main content

The electricity_usage package provides a scheduler which will kick off processes only when there is a surplus in local energy production.

Project description

Welcome to electricity_usage

License: MIT GitHub Workflow Status Documentation Status codecov

The electricity_usage package provides a scheduler which will kick off processes only when there is a surplus in local energy production. For more information see the usage documentation.

Installation

The Python package electricity_usage can be installed by cloning the git repository and installing it using pip install.

pip install electricity_usage

To fully utilize this package, you also need a subscription to Electricity Maps, available here <https://api-portal.electricitymaps.com/>.
Upon subscription, you'll receive an authentication token. This token is used to access additional electricity production and consumption data for specific locations from Electricity Maps.
We incorporate the token using an optional parameter --em_auth_token, in our start command.
Please note that the majority of locations do not require an authentication token.
More information about Electricity Maps can be found in :ref:api-ref.

Development installation

If you want to contribute to the development of electricity_usage, we recommend the following editable installation from this repository:

git clone https://github.com/weyandtim/electricity_usage
cd electricity_usage
python -m pip install --editable .[tests]

Having done so, the test suite can be run using pytest:

python -m pytest

Contributing

This project was done as a software practical by Tim Weyand and Nemo Glade, under supervision of Dominic Kempf.

If you wish to contribute to electricity_usage open an issue in the issue tracker of the GitHub project.

Acknowledgments

This repository was set up using the SSC Cookiecutter for Python Packages. The project relies on data from Electricity Maps.

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_usage-0.1.1.tar.gz (18.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_usage-0.1.1-py3-none-any.whl (17.1 kB view details)

Uploaded Python 3

File details

Details for the file electricity_usage-0.1.1.tar.gz.

File metadata

  • Download URL: electricity_usage-0.1.1.tar.gz
  • Upload date:
  • Size: 18.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.12

File hashes

Hashes for electricity_usage-0.1.1.tar.gz
Algorithm Hash digest
SHA256 282e2e925ab904cd911426e94610c093de8270baaefe77b56346d78ca97e445b
MD5 0935de1008809f7eaf6c22e9c60106a7
BLAKE2b-256 7f6b5c618175a5642c3ea807bf296040804096f109a7e520858ebf11186fe4f7

See more details on using hashes here.

File details

Details for the file electricity_usage-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for electricity_usage-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 47e019c03438a7c15b72d305cd30b3a2c93ae21abf4d212b6cab1572e133c11d
MD5 894243d6242f0bff57c6543e46a9bba7
BLAKE2b-256 3c89d338046fcee92a9f8b17ffe81f374c13e96e5d7a347e6ff363b8868cd7c3

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