Skip to main content

Carbonize

github-tests-badge github-mypy-badge codecov-badge pypi-badge pypi-versions license-badge

Getting started 🛫

from carbonize import Footprint

fp = Footprint()
fp.add_flight(a="BRU", b="BIO", two_way=True)
fp.add_train(distance=100)
print(fp.co2e)  # in kg

### Update the underlying data 📦

The Pickle files in the data folder can be updated using the bin/update_data.py file.

poetry install --sync && python bin/update_data.py

Run the tests 🧪

poetry run pytest --cov=carbonize --cov-report=term

Style guide 📖

Tab size is 4 spaces. Keep lines under 120 characters. Feeling iffy? Run ruff before you commit:

poetry run ruff format . && poetry run ruff check carbonize

Metadata

Release files for carbonize 0.1.0

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

Source distribution (sdist)

Source distribution for carbonize 0.1.0
File Size Uploaded Provenance
carbonize-0.1.0.tar.gz 153.2 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 311.2 kB

Release files / carbonize-0.1.0.tar.gz

Download URL carbonize-0.1.0.tar.gz
Size 153.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0af7ac7f1191010a7b0efda47429a424fc08a591fcbe9046970ff6c9489da839
BLAKE2b-256 checksum
How to use checksums
aa3aee3b4359c0bd9f85e31c4569383d56ed276a3a1686f8f273e472b43a29a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.9 Darwin/24.3.0

Release files / carbonize-0.1.0-py3-none-any.whl

Download URL carbonize-0.1.0-py3-none-any.whl
Size 158.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a735c5e9316f91746f969049db4637dedf0ea549fede94dea8a3081913f60a5c
BLAKE2b-256 checksum
How to use checksums
7e84e5c36d940a1e77215331d4a4298cfa07b36257362d39c77b11f693cc3d45
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.1.1 CPython/3.12.9 Darwin/24.3.0

Security for carbonize 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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