carbon footprint of the power consumption by fuel mix. Calculates carbon footprint based on fuel mix and discharge profile at the utility selected. Can create graphs and tabular output for fuel mix based on input file of series of power drawn over a period of time.
Project description
carbon-footprint-calculator
Conda distribution
~/anaconda3/bin/conda install anaconda-client conda-build
~/anaconda3/bin/conda config --set anaconda_upload no
~/anaconda3/bin/conda build . --output
~/anaconda3/bin/anaconda login
~/anaconda3/bin/anaconda upload dist/carbonfootprint-1.1.5.tar.gz
Referneces
- https://docs.anaconda.com/anacondaorg/user-guide/tasks/work-with-packages/
- published package https://anaconda.org/altanai/carbonfootprint
PYppi ditribution
1. Generating distribution archives
First install latest version of PyPA’s build then build . This should generate dist directory:
python3 -m pip install --upgrade build
python3 -m build
2. Uploading the distribution archives
python3 -m pip install --upgrade twine
twine check dist/*
Checking dist/carbon_footprint_calculator-1.1.1-py3-none-any.whl: PASSED
Checking dist/carbon_footprint_calculator-1.1.1.tar.gz: PASSED
Install twine and upload all of the archives under dist to pypi’s test server
python3 -m twine upload --repository testpypi dist/*
or to pyapi
python3 -m twine upload dist/*
3.Installing the package
From pytest
python3 -m pip install --index-url https://test.pypi.org/simple/ --no-deps carbonfootprint
From pyapi
pip3 install carbonfootprint
References :
- List of classifiers - https://pypi.org/classifiers/
- published carbonfootprint package on pyapii https://pypi.org/project/carbonfootprint/
Test Enviornment
Install and Setup Conda
export PATH=$PATH:/home/altanai/anaconda3/bin
Activate virtual env
source energycarbon_env/bin/activate
Run unit tests
python tests/unittests.py
Debugging and Help
Issue1 Adding csv for the datasets
solution refer to https://python-packaging.readthedocs.io/en/latest/non-code-files.html Add the following to dynamic setup.py
include_package_data=True
package_data={'': ['dataset/*']},
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file carbonfootprint-1.2.4.tar.gz
.
File metadata
- Download URL: carbonfootprint-1.2.4.tar.gz
- Upload date:
- Size: 499.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.8.0 tqdm/4.62.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 42de582493f00c9211181f63d31f5a3d5dccd1c2df87ce0091ad4f1597ab2937 |
|
MD5 | 8bf2f179c01c89543e1ea6b138e3e50f |
|
BLAKE2b-256 | e3c97f5296035ecb775274b2e8b77960022757073be546a8643a25a626dc8f45 |
File details
Details for the file carbonfootprint-1.2.4-py3-none-any.whl
.
File metadata
- Download URL: carbonfootprint-1.2.4-py3-none-any.whl
- Upload date:
- Size: 510.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.0.1 pkginfo/1.7.1 requests/2.24.0 requests-toolbelt/0.8.0 tqdm/4.62.2 CPython/3.6.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9e4fd31d5dc961fbdca102cb0bd7f0271e3fb32dc89888847cee4877e26e890e |
|
MD5 | bed13548bbe0c5ca99d71ccd29b1fca9 |
|
BLAKE2b-256 | 9e1ea79d8489a37a8ab17f9d86cabe2fecbd2cd66edd03038bc45b6c3f1736bb |