EU CBAM & Carbon Tax Calculation Engine — Python SDK
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.
- 🌐 Live Web Playground: Test your inputs online
- 📚 API Documentation: View full schema on Stanza
- ⚡ Platform Overview: Explore the Stanza Developer Network
📦 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. |
🔗 Useful Links
- EU CBAM & Carbon Tax Calculation Engine Interactive Sandbox
- Stanza Developer Directory
- Source Code & Issue Tracker
📄 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
63eff0860daa27e0fe5b635c11badd714fc49c217bb3293d2a5f6d2e8f9f97cc
|
|
| MD5 |
4630b19536aa5320f0a59c49535302c7
|
|
| BLAKE2b-256 |
cc3f45dbe183b936a69a33b8eb3b4f6e760c040ee43de5b3fa34ec8479774091
|
File details
Details for the file stanzaapi_cbam_carbon-1.0.0-py3-none-any.whl.
File metadata
- Download URL: stanzaapi_cbam_carbon-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dfa11add259df8afef6fc8586ac99406364ee38bd559bfd8d149a8deee1074d1
|
|
| MD5 |
2b4362eda875cfeba191bea0136e4dd7
|
|
| BLAKE2b-256 |
fe28e8f65112515442f9d836cf95ebe037f587ed8cf8fca14cc9861f39f0845a
|