Skip to main content

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)

Source distribution for DitchCarbon 0.1.1
File Size Uploaded
ditchcarbon-0.1.1.tar.gz 19.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for DitchCarbon 0.1.1
File Interpreter ABI Platform
ditchcarbon-0.1.1-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files

0.1.0

2 release files

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