CO2.py is a Python library for calculating carbon emissions from internet data transfer and checking green hosting status.
- Calculate carbon emissions from data transfer
- Get grid intensity data by country
- Check domains against Green Web Foundation's dataset
Navigate to the root directory of your project (where setup.py is located) and run:
pip install .
This will install your package locally, allowing you to import it in other projects or scripts.
- Grid intensity data: Ember Climate Data Portal
- Green domains: Green Web Foundation API
- Energy consumption model based on peer-reviewed research
- All calculations are estimates based on available data
- Grid intensity data is updated periodically
- Free APIs are used for all external data