Skip to main content

pycaruna

PyPI version

Basic Python implementation for interfacing with Caruna Plus (sometimes called Caruna+). It supports only basic methods, but enough to extract electricity usage data for further processing.

Supported features:

  • Get user profile information
  • Get metering points ("assets")
  • Get consumption data (daily/hourly)

Usage

The project is published on PyPI: https://pypi.org/project/pycaruna/ . You can use this package by adding the following to your requirements.txt:

pycaruna

The examples/ directory has example Python programs illustrating how to use the library.

The resources/ directory has examples of API response structures.

Caveats

  • During daylight savings time changes, the API may return a duplicate datapoint (same timestamp in two consecutive data points). See https://github.com/Jalle19/pycaruna/issues/7 for more details.
  • The authentication procedure requires a lot of HTTP requests to be sent back and forth, so the process is relatively slow. It's best to store and reuse the token produced by it instead of doing the authentication process all over again all the time.
  • caruna-influxdb - a collection of scripts for ingesting your Caruna data into InfluxDB

Credits

https://github.com/kimmolinna/pycaruna

License

MIT

Metadata

Release files for pycaruna 1.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pycaruna 1.0.3
File Size Uploaded Provenance Actions
pycaruna-1.0.3.tar.gz 4.9 kB Without provenance Details for pycaruna-1.0.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for pycaruna 1.0.3
File Interpreter ABI Platform Actions
pycaruna-1.0.3-py3-none-any.whl Python 3 none any Details for pycaruna-1.0.3-py3-none-any.whl

Total release size: 10.8 kB

Release files / pycaruna-1.0.3.tar.gz

Download URL pycaruna-1.0.3.tar.gz
Size 4.9 kB
Tags Source
SHA-256 checksum
How to use checksums
84c390b0ee3387761020484db98b904907de9d434c2913144f29c602f65a2f15
BLAKE2b-256 checksum
How to use checksums
f8895601acadf58bf141f2702416b029ad985529a17032528c1641cb03c29eff
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Release files / pycaruna-1.0.3-py3-none-any.whl

Download URL pycaruna-1.0.3-py3-none-any.whl
Size 5.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef9515d651e85bf2ff72efe60e7ec3585e3bf2ae8747331a039c219e03f8e8c8
BLAKE2b-256 checksum
How to use checksums
d9508e513b09655e5e039e4f11b332156cc7b4f58fa57ced854cc7b4ba969196
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.7

Security for pycaruna 1.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page