Introducing "DitchCarbon", an open-source Python package that allows users to easily call the DitchCarbon API using HTTP requests.
Project description
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'))
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
Built Distribution
Hashes for ditchcarbon-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 47f4b3e720f2ad7c536adfd007f84d585019f78a1d7ec544863d63e28ac5a0ee |
|
MD5 | f171564ad24cbf253a9529222bf60934 |
|
BLAKE2b-256 | 46c7cc79cb7b29469dee64e12a9c4a8f0946be6ede2f4297ce15ab8124621469 |