Python client for the Octopus Energy RESTful API
Project description
Octopus Energy Python API Client Library
A Client library for accessing the Octopus Energy APIs
Installation
octopus-energy
can be installed from PyPI using pip:
pip install octopus-energy
Code
The code is available in the octopus-energy repository on GitHub
Features
- Get energy consumption from SMETS1 and SMETS2 electricity and gas meters.
Quickstart
You can obtain your API token and meter information from the Octopus Energy Developer Dashboard.
from octopus_energy import OctopusEnergyClient, MeterType
api_token="sk_live_your-token"
mprn = "your-mprn"
serial_number = "your-meter-serial-number"
client = OctopusEnergyClient(api_token)
consumption = client.get_gas_consumption_v1(mprn, serial_number, MeterType.SMETS1_GAS)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
octopus-energy-0.1.1.tar.gz
(5.0 kB
view hashes)
Built Distribution
Close
Hashes for octopus_energy-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0c0e2ce76a16e7d3076281b01873479efe20a5e2829e448149c53d9833089d9b |
|
MD5 | 30820942bab65d7796a15d245629b20d |
|
BLAKE2b-256 | 4b27549666c4eacbc52fea6e335003e84c7f443d5b662e260ec206cd74a84f0d |