Skip to main content

EU CBAM & Carbon Tax Calculation Engine — Python SDK

PyPI version Python Versions License: MIT Stanza API

EU CBAM Scope 1/2 embedded emissions and EU ETS carbon tax liability calculator across Iron, Steel, Aluminum, Cement, Fertilizers, and Hydrogen.

Official, zero-dependency Python 3.8+ client library for EU CBAM & Carbon Tax Calculation Engine, built on the Stanza Micro-API Network. Intended for enterprise data pipelines, backend verification, and sub-5ms edge compute.


📦 Installation

pip install stanzaapi-cbam-carbon

🚀 Quickstart

import os
from stanzaapi_cbam_carbon import CbamCarbonClient

# Initialize client (api_key optional for local evaluation)
client = CbamCarbonClient(
    api_key=os.getenv("STANZA_API_KEY")
)

# Execute deterministic validation
response = client.parse({"goods_category":"iron_and_steel","production_country":"TR","quantity_tonnes":500})

if response.get("success"):
    print("Verification Success:", response["data"])
else:
    print("Validation Error:", response.get("error"), response.get("code"))

📄 Example Response

{
  "success": true,
  "data": {
    "goods_category": "iron_and_steel",
    "direct_emissions_tco2e": 950,
    "estimated_ets_liability_eur": 71250
  }
}

⚙️ Client Options

Parameter Type Default Description
api_key Optional[str] os.getenv("STANZA_API_KEY") Your Stanza API Key. Required for production quotas.
base_url Optional[str] "https://api.stanzaapi.com/cbam-carbon" Public edge API base URL.
timeout int 15 Request timeout in seconds.

📄 License

MIT © Stanza — Powered by Stanza.

Download files

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

Source Distribution

stanzaapi_cbam_carbon-1.0.0.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

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

stanzaapi_cbam_carbon-1.0.0-py3-none-any.whl (3.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: stanzaapi_cbam_carbon-1.0.0.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.7

File hashes

Hashes for stanzaapi_cbam_carbon-1.0.0.tar.gz
Algorithm Hash digest
SHA256 63eff0860daa27e0fe5b635c11badd714fc49c217bb3293d2a5f6d2e8f9f97cc
MD5 4630b19536aa5320f0a59c49535302c7
BLAKE2b-256 cc3f45dbe183b936a69a33b8eb3b4f6e760c040ee43de5b3fa34ec8479774091

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for stanzaapi_cbam_carbon-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 dfa11add259df8afef6fc8586ac99406364ee38bd559bfd8d149a8deee1074d1
MD5 2b4362eda875cfeba191bea0136e4dd7
BLAKE2b-256 fe28e8f65112515442f9d836cf95ebe037f587ed8cf8fca14cc9861f39f0845a

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 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