GHGPy
An open source greenhouse gas accounting tool that complies with IPCC 2006 and the GHG Protocol.
https://github.com/iclimate/ghgpy
Category: Emissions
Sub Category: Carbon Intensity and Accounting
Keywords
carbon-dioxide carbon-emissions ghg-data ghg-emissions python3 sustainability
Last synced: about 12 hours ago
JSON representation
Repository metadata
Python library for GHG Inventory
- Host: GitHub
- URL: https://github.com/iclimate/ghgpy
- Owner: iClimate
- License: mit
- Fork: true (bkt92/ghgpy)
- Created: 2024-04-03T13:42:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-18T08:09:20.000Z (11 months ago)
- Last Synced: 2024-10-30T01:34:21.177Z (6 months ago)
- Topics: carbon-dioxide, carbon-emissions, ghg-data, ghg-emissions, python3, sustainability
- Language: Python
- Homepage: https://ghgpy.iclimate.io.vn/
- Size: 4.11 MB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
- Releases: 0
https://github.com/iClimate/ghgpy/blob/main/
# GHGPy (Green House Gas Python) --- ---   
![]()
GHGPy is a Python package for the GHG Inventory. - **Website:** https://iclimate.io.vn - **Our services** https://decarbdirect.com/ - **Documentation:** https://ghgpy.iclimate.io.vn - **Source code:** https://github.com/iClimate/ghgpy - **Contributing:** https://ghgpy.iclimate.io.vn/devdocs/ - **Bug reports:** https://github.com/iClimate/ghgpy/issues --- ## Installation Pip installable package: `pip install ghgpy` [pypi: ghgpy](https://pypi.org/project/ghgpy/) --- ## Requirements / Dependencies Python 3.11 and up --- Call for Contributions ---------------------- The GHGPy project welcomes your expertise and enthusiasm! Examples ---------------------- ## Basic Usage ### Import library ```python # General factory from src.ghgpy.factory import FactoryGeneral # Uncertainty data type from src.ghgpy.datamodel.fuel import UNumber # Database handles from src.ghgpy.datamodel.db import FuelDataHandle, GHGDataHandle, EFDataHandle # Default databases from src.ghgpy.data.fuels import default_fuel_database from src.ghgpy.data.ghg import ghg_gas_data from src.ghgpy.data.efs import s_combustion_energy ``` ### Create a factory ```python # Init the factory class MyFactory = FactoryGeneral(name="Hong Ha Textile", desc = "Textile production for export!") ``` ### Connect to the database ```python MyFactory.connection(FuelDataHandle(default_fuel_database),\ EFDataHandle(s_combustion_energy),\ GHGDataHandle(ghg_gas_data, 'ar6')) ``` ### Add a combussion process in factory ```python MyFactory.add_combustion(name = "Boiler", desc = "Đốt lò hơi") ``` ### Add another combussion process in factory ```python MyFactory.add_combustion(name = "Boiler1", desc = "Đốt lò than bùn") ``` ### Add fuels use in these combussion ```python MyFactory.combustion["Boiler"].add('Diesel_Oil', UNumber(value=1000), 'l') MyFactory.combustion["Boiler"].add('Anthracite', UNumber(value=1000), 'kg') MyFactory.combustion["Boiler1"].add('Lignite', UNumber(value=1000), 'kg') ``` ### Add refrigerant use in factory ```python MyFactory.add_refrigerantuse(name='AC', desc='refrigerant use for AC') ``` ### Add amount of specific type of refrigerant ```python MyFactory.refrigerantuse["AC"].add("R32", UNumber(value=10, uncertainty=0), 'kg') ``` ### Electriciy use in factory ```python MyFactory.add_elecuse(name='Office') ``` ### Electriciy consumption ```python MyFactory.elecuse['Office'].add(name='01', amount=UNumber(value=1), unit='MWh', gef=UNumber(value=0.987), force=True) ``` ### Calculate emission ```python MyFactory.emission(scope=1) ```
Owner metadata
- Name: iClimate
- Login: iClimate
- Email: [email protected]
- Kind: organization
- Description:
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/165917448?v=4
- Repositories: 1
- Last ynced at: 2024-04-03T15:38:26.692Z
- Profile URL: https://github.com/iClimate
GitHub Events
Total
Last Year
Committers metadata
Last synced: 6 days ago
Total Commits: 22
Total Committers: 2
Avg Commits per committer: 11.0
Development Distribution Score (DDS): 0.045
Commits in past year: 16
Committers in past year: 2
Avg Commits per committer in past year: 8.0
Development Distribution Score (DDS) in past year: 0.063
Name | Commits | |
---|---|---|
bkt92 | b****2@y****n | 21 |
Doantruong2212 | 1****2 | 1 |
Committer domains:
- yahoo.com.vn: 1
Issue and Pull Request metadata
Last synced: 1 day ago
Total issues: 0
Total pull requests: 1
Average time to close issues: N/A
Average time to close pull requests: 5 minutes
Total issue authors: 0
Total pull request authors: 1
Average comments per issue: 0
Average comments per pull request: 0.0
Merged pull request: 1
Bot issues: 0
Bot pull requests: 0
Past year issues: 0
Past year pull requests: 1
Past year average time to close issues: N/A
Past year average time to close pull requests: 5 minutes
Past year issue authors: 0
Past year pull request authors: 1
Past year average comments per issue: 0
Past year average comments per pull request: 0.0
Past year merged pull request: 1
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
Top Pull Request Authors
- bkt92 (1)
Top Issue Labels
Top Pull Request Labels
Score: 2.0794415416798357