Skip to main content

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

Carbonfootprint Latest PY Release Carbonfootprint Latest Anaconda Release

Carbonfootprint Status License Issues

Twitter Stars

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

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 :

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

carbonfootprint-1.2.4.tar.gz (499.7 kB view hashes)

Uploaded Source

Built Distribution

carbonfootprint-1.2.4-py3-none-any.whl (510.1 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page