Skip to main content

A package to access the co2signal API

Project description

# CO2Signal
A package to access the co2signal API.

Using this package, you can query the latest CO2 intensity in all the countries or regions, available in https://www.electricitymap.org. The package uses the API available via https://co2signal.com. The intensity can be queried using the code below.

```python
import CO2Signal

token = "get yours from co2signal.com"

# query using the country code
CO2Signal.get_latest_carbon_intensity(token, country_code='BE')

# query using the location
CO2Signal.get_latest_carbon_intensity(token, longitude=50, latitude=5)
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for CO2Signal, version 0.4.2
Filename, size File type Python version Upload date Hashes
Filename, size CO2Signal-0.4.2.tar.gz (1.8 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page