Skip to main content

Carbon footprint calculator library for small businesses

Project description

CarbonCalc

A Python library for calculating carbon footprints of small businesses. Provides emission factor databases, calculators for different emission categories (electricity, transportation, waste, etc.), and report generation utilities based on the GHG Protocol.

Installation

pip install carboncalc

Usage

from carboncalc import CarbonCalculator, EmissionFactorDB, EmissionRecord, EmissionCategory

calc = CarbonCalculator()
record = EmissionRecord(
    category=EmissionCategory.ELECTRICITY,
    quantity=1000,
    unit="kwh",
    date="2026-01-15",
    description="January office electricity"
)
result = calc.calculate_single(record)
print(f"CO2: {result.co2_kg} kg")

Features

  • Emission factor database based on EPA/DEFRA data
  • Support for 7 emission categories across all 3 GHG Protocol scopes
  • Batch calculation and period comparison
  • Report generation with recommendations
  • Monthly trend analysis and intensity metrics

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

carboncalc-1.0.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

carboncalc-1.0.0-py3-none-any.whl (10.3 kB view details)

Uploaded Python 3

File details

Details for the file carboncalc-1.0.0.tar.gz.

File metadata

  • Download URL: carboncalc-1.0.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for carboncalc-1.0.0.tar.gz
Algorithm Hash digest
SHA256 760fa79f3c9468605f93f61ab314f5b540720934d33ad7b005d542f90ba3c11c
MD5 5de72f47cf264c65dcacb45467b330ed
BLAKE2b-256 308abe07e9b7b6926eff6157d5a16f2c0afd6bd28c377908e92fb1336e10cb7b

See more details on using hashes here.

File details

Details for the file carboncalc-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: carboncalc-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for carboncalc-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a6e40ded367476b4b1a26096255cfcb53dee453ecbc9006367ff80318d60e1c9
MD5 c6b6fc169c95741b9f7c9d06cfcfaf84
BLAKE2b-256 7eb9804ee7fd37f73040449b6cfa5c161288c23057ce7779366a9b474c9106ea

See more details on using hashes here.

Supported by

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