DitchCarbon Python Package
An open-source Python package that allows users to easily call the DitchCarbon API (v1.0) with type hints etc from within Python.
DitchCarbon is an API that provides information on carbon emissions of different energy sources across the globe. With DitchPy, users can easily retrieve information about the carbon emissions of different energy sources and use it in their own projects.
This package is built on top of the requests library and provides a simple interface for making HTTP requests to the DitchCarbon API. The package includes a set of functions that allow users to retrieve data for specific countries, energy sources, and time periods.
To get started, users can simply install it using pip:
pip install DitchCarbon
Usage
Create an instance of the DitchCarbonClient:
carbon_client = DitchCarbonClient(api_key=API_KEY)
Then call one of the DitchCarbonAPIs endpoints:
carbon_client.get_supplier('Nestle', currency='GBP'))
Metadata
Release files for DitchCarbon 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ditchcarbon-0.1.1.tar.gz | 19.1 kB | Without provenance | Details for ditchcarbon-0.1.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ditchcarbon-0.1.1-py3-none-any.whl | Python 3 | none | any | Details for ditchcarbon-0.1.1-py3-none-any.whl |
Total release size: 35.4 kB
Release files / ditchcarbon-0.1.1.tar.gz
| Download URL | ditchcarbon-0.1.1.tar.gz |
|---|---|
| Size | 19.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a9f2daa34cac626ae2c86b74cd6af243253dffd844dcb1b75d5388bca1f27b87
|
|
BLAKE2b-256 checksum How to use checksums |
f0895112706b9469c66acb57a64e3b238fecbce16ddcaa8633343ba7557b6f71
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Release files / ditchcarbon-0.1.1-py3-none-any.whl
| Download URL | ditchcarbon-0.1.1-py3-none-any.whl |
|---|---|
| Size | 16.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f801651e40b3e52d9dbf6ac16efa275f9cc256d4d36585435e591ccdbc58ec5
|
|
BLAKE2b-256 checksum How to use checksums |
f0d6335572fdcf7e85d6d9343a8b4a4f6628332cd77c6bb1b6c1d31d82bee221
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.13
|
Security for DitchCarbon 0.1.1
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.