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.

Metadata

Release files for stanzaapi-cbam-carbon 1.0.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 stanzaapi-cbam-carbon 1.0.0
File Size Uploaded Provenance Actions
stanzaapi_cbam_carbon-1.0.0.tar.gz 3.9 kB Without provenance Details for stanzaapi_cbam_carbon-1.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for stanzaapi-cbam-carbon 1.0.0
File Interpreter ABI Platform Actions
stanzaapi_cbam_carbon-1.0.0-py3-none-any.whl Python 3 none any Details for stanzaapi_cbam_carbon-1.0.0-py3-none-any.whl

Total release size: 7.7 kB

Release files / stanzaapi_cbam_carbon-1.0.0.tar.gz

Download URL stanzaapi_cbam_carbon-1.0.0.tar.gz
Size 3.9 kB
Tags Source
SHA-256 checksum
How to use checksums
63eff0860daa27e0fe5b635c11badd714fc49c217bb3293d2a5f6d2e8f9f97cc
BLAKE2b-256 checksum
How to use checksums
cc3f45dbe183b936a69a33b8eb3b4f6e760c040ee43de5b3fa34ec8479774091
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Release files / stanzaapi_cbam_carbon-1.0.0-py3-none-any.whl

Download URL stanzaapi_cbam_carbon-1.0.0-py3-none-any.whl
Size 3.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dfa11add259df8afef6fc8586ac99406364ee38bd559bfd8d149a8deee1074d1
BLAKE2b-256 checksum
How to use checksums
fe28e8f65112515442f9d836cf95ebe037f587ed8cf8fca14cc9861f39f0845a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.7

Security for stanzaapi-cbam-carbon 1.0.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

1.0.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