CO2Signal-0.4.2
توضیحات
A package to access the co2signal API
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | CO2Signal-0.4.2 |
| نام | CO2Signal |
| نسخه کتابخانه | 0.4.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | - |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/danielsjf/CO2Signal |
| آدرس اینترنتی | https://pypi.org/project/CO2Signal/ |
| مجوز | Creative Commons Attribution-Noncommercial-Share Alike license |
# 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)
```
نحوه نصب
نصب پکیج whl CO2Signal-0.4.2:
pip install CO2Signal-0.4.2.whl
نصب پکیج tar.gz CO2Signal-0.4.2:
pip install CO2Signal-0.4.2.tar.gz