Skip to main content
# 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)
```

Download files

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

Source Distribution

CO2Signal-0.4.2.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file CO2Signal-0.4.2.tar.gz.

File metadata

  • Download URL: CO2Signal-0.4.2.tar.gz
  • Upload date:
  • Size: 1.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.14.0 CPython/3.7.0

File hashes

Hashes for CO2Signal-0.4.2.tar.gz
Algorithm Hash digest
SHA256 f187586e49cb20246b665a06519bac72fe5ed4b2036417023ca66ce8431a36ea
MD5 f85709ff92f48720faf68fc94aab1aac
BLAKE2b-256 389920adbe5f71f41ea2a11429f3fc52f416da0d6361a12b40a57058525d4498

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.4.2 This release

1 file

0.4.1

1 file

0.4

1 file

0.3

1 file

0.2

1 file

0.1

1 file

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