-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
347ca41
commit af7b161
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Tutorial | ||
|
||
The co2calculator package is available via pip: | ||
|
||
```python | ||
pip install co2calculator | ||
``` | ||
|
||
For a simple and basic emission calculation, import the calculation function and define some emission cause: | ||
|
||
```python | ||
|
||
from co2calculator import calculate_trip | ||
from co2calculator.enums import TransportationMode | ||
|
||
co2e = calculate_trip(distance=200,transportation_mode=TransportationMode.CAR) | ||
``` |