Package: co2eq
co2eqestimates the CO2 emissions associated to air flights.
It is currently focused on a single meeting or a serie of meetings like a conference that happens multiple times a year for example.
CO2 emissions can be estimated according to the flying distance between each attendee and the meeting place (distance mode).
However, CO2 emissions are highly dependent on the number of legs of a given flight itineraries.
The originality ofco2eqis that for each participant,co2eqderive an effective flight and estimates the CO2 emissions considering each of these legs (flight mode).co2eqplots the repartitions of CO2 emissions according to any criteria associated to each attendee.While the focus is on C02co2eqalso performs more standard representations of attendance in number of participants (attendee mode).A detailed description ofco2eqcan be found here:Daniel MigaultCO2eq: "Estimating Meetings' Air Flight CO2 Equivalent Emissions - An Illustrative Example with IETF meetings", Show me the numbers: Workshop on Analyzing IETF Data (AID), 2021.https://www.iab.org/wp-content/IAB-uploads/2021/11/Migault.pdf.A example of the outputs ofco2eqoutputs can be found on theco2eqweb sitehttps://mglt.github.io/co2eq/,
where CO2 emissions have been computed for theIETFmeetings and theICANN.InstallationInstallation of co2eq can be done using pippip install co2eqor directly from githubgit clone https://github.com/mglt/co2eq
cd co2eq # 
python3 -m build && pip3 install --force-reinstall  dist/co2eq-0.0.2.tar.gzThe development of co2eq have lead to the data of the country_info package to be updated. Before this modification being released in the country_info release, the updated version of country_info can be installed as follows:git clone https://github.com/mglt/countryinfo
cd country_info
python3 setup.py installTo compute the CO2 using GO Climate service, the climate neutral package needs to be installed.git clone https://github.com/codeboten/climate_neutral
cd climate_neutral
sudo python3 install setup.py

``
If other classes than 'economy' are used, an advanced use of co2eq may also require an updated version of climate neutralgit clonehttps://github.com/mglt/climate_neutralcd climate_neutral
sudo python3 install setup.py# Configuring and using co2eq

The example directory contains examples on how to use co2eq.

In general, you will need a configuration object commonly designated as `conf`. 
It is recommended to generated it by completeing the conf_template.py file which contains the following dictionary:CONF = {The directory where air flights, or CO2 emissions for a given air flightrequested to GO Climate are stored after it has been requested.The main purpose if to prevent co2eq to resolve the same request multiple time'CACHE_DIR' : "",co2eq retrieves flight offers to estimate a real flight and uses the AMADEUS API:https://developers.amadeus.com/get-started/get-started-with-amadeus-apis-334You need to register and request and an API Key and an API Secret for theFlight Offers Search service.'AMADEUS_ID' : "",
'AMADEUS_SECRET' : "",To compute the CO2 emissions associated a flight a request is sent to GO ClimatePlease go throughhttps://api.goclimate.com/docsto get an account.'GOCLIMATE_SECRET' : "" ,
'NOMINATIM_ID' : "",where logs are stored. We suggest you perform tail -f your_log_fileto monitor what can possibly go wrong.'log' : './co2eq.log',Directory where all outputs are stored'OUTPUT_DIR' : "",CityDB specific parametersISO3166_REPRESENTATIVE_CITY enable to indicate a specificrepresentative city for that country.This is usually useful when the capital is not the mainrepresentative city or when no flight can be retrieved fromthat country'ISO3166_REPRESENTATIVE_CITY' : { }
}