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)
```
Metadata
Release files for CO2Signal 0.4.2
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 |
|---|---|---|---|---|
| CO2Signal-0.4.2.tar.gz | 1.8 kB | Without provenance | Details for CO2Signal-0.4.2.tar.gz |
Release files / CO2Signal-0.4.2.tar.gz
| Download URL | CO2Signal-0.4.2.tar.gz |
|---|---|
| Size | 1.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f187586e49cb20246b665a06519bac72fe5ed4b2036417023ca66ce8431a36ea
|
|
BLAKE2b-256 checksum How to use checksums |
389920adbe5f71f41ea2a11429f3fc52f416da0d6361a12b40a57058525d4498
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for CO2Signal 0.4.2
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.