Skip to main content

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/*']},

Metadata

Release files for carbonfootprint 1.2.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for carbonfootprint 1.2.4
File Size Uploaded
carbonfootprint-1.2.4.tar.gz 499.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for carbonfootprint 1.2.4
File Interpreter ABI Platform
carbonfootprint-1.2.4-py3-none-any.whl Python 3 none any Details

Total release size: 1.0 MB

Release files / carbonfootprint-1.2.4.tar.gz

Download URL carbonfootprint-1.2.4.tar.gz
Size 499.7 kB
Tags Source
SHA-256 checksum
How to use checksums
42de582493f00c9211181f63d31f5a3d5dccd1c2df87ce0091ad4f1597ab2937
BLAKE2b-256 checksum
How to use checksums
e3c97f5296035ecb775274b2e8b77960022757073be546a8643a25a626dc8f45
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / carbonfootprint-1.2.4-py3-none-any.whl

Download URL carbonfootprint-1.2.4-py3-none-any.whl
Size 510.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9e4fd31d5dc961fbdca102cb0bd7f0271e3fb32dc89888847cee4877e26e890e
BLAKE2b-256 checksum
How to use checksums
9e1ea79d8489a37a8ab17f9d86cabe2fecbd2cd66edd03038bc45b6c3f1736bb
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

1.2.4 This release

2 release files

1.2.3

2 release files

1.2.1

2 release files

1.2.0

2 release files

1.1.9

2 release files

1.1.8

2 release files

1.1.7

2 release files

1.1.6

2 release files

1.1.5

2 release files

1.1.4

2 release files

1.1.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page