EU ETS Maritime Compliance Calculator
A Python package and command-line tool for maritime carbon compliance calculations.
Version 1.0.3 · Python ≥ 3.10 · MIT · ingeniat.pro
What it does
| Engine | Regulation | Computes |
|---|---|---|
| EU ETS | Directive 2003/87/EC | Emissions, EUA costs, phase-in |
| FuelEU | Regulation (EU) 2023/1805 | Well-to-wake GHG intensity, compliance balance, penalty |
| CII | IMO MARPOL Annex VI | Rating (A–E) and corrective measures |
| Allocation | BIMCO clauses | Charterparty cost split |
Install
pip install -e .
For an isolated development environment:
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
Command line
# EU ETS
euets-calc ets --imo 9123456 --voyage-id V001 --fuel-type VLSFO \
--quantity 1000 --voyage-type INTRA --phase-in-year 2025 --eua-price 80
# FuelEU
euets-calc fuel-eu --imo 9123456 --voyage-id V001 --fuel-type VLSFO \
--quantity 1000 --compliance-year 2030
# CII
euets-calc cii --imo 9123456 --vessel-type Container --co2 5000 \
--cargo-capacity 10000 --distance 50000 --year 2026
# Charterparty allocation
euets-calc allocate --imo 9123456 --voyage-id V001 --fuel-type VLSFO \
--quantity 1000 --charter-start 2025-01-01 --charter-end 2025-12-31 \
--off-hire-days 5 --clause-type BIMCO_SHORTNM
Full command list: euets-calc --help (9 commands).
Python API
from decimal import Decimal
from euets_calculator.engines.ets_engine import ETSEngine
from euets_calculator.models.fuel import FuelRecord
engine = ETSEngine()
results = engine.compute(
[FuelRecord("9123456", "V001", "VLSFO", Decimal("1000"))],
phase_in_year=2025,
eua_price_eur_per_tCO2=Decimal("80"),
coverage_factor=Decimal("1.0"),
)
for result in results:
print(result.emissions_tCO2, result.computed_cost_eur)
Features
- Decimal precision throughout — no floating-point error in financial quantities
- SHA-256 audit hashes on every computation
- FuelEU exact, unrounded regulatory values for auditability
- BIMCO SHORTNM and SHIPMAN charterparty allocation
- Twelve-plus fuel types with regulatory emission factors
- Correct phase-in schedules and IMO CII rating vectors
- 165 passing tests
Layout
├── pyproject.toml
├── src/euets_calculator/
│ ├── cli.py
│ ├── engines/ # ets, fuelleu, cii, allocation
│ ├── models/ # FuelRecord, Voyage
│ └── schemas/ # ETS and allocation results
├── tests/
├── examples/
└── docs/
Documentation
docs/QUICK_START.md— common commandsdocs/USER_GUIDE.md— formulas, parameters and examplesdocs/API_REFERENCE.md— full API referencedocs/OPERATION.md— operational notesCHANGELOG.md— version history
Testing
python3 -m pytest -q
Citation
If you use this package in research or a published calculation, cite the software via CITATION.cff:
Ingeniat Estudios y Proyectos SL (2026). EU ETS Maritime Compliance Calculator, version 1.0.3. https://github.com/ingeniat-es/euets-calculator
License
MIT — Copyright 2026 Ingeniat Estudios y Proyectos SL.
Metadata
Release files for euets-calculator 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| euets_calculator-1.0.3.tar.gz | 38.9 kB | Without provenance | Details for euets_calculator-1.0.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| euets_calculator-1.0.3-py3-none-any.whl | Python 3 | none | any | Details for euets_calculator-1.0.3-py3-none-any.whl |
Total release size: 67.4 kB
Release files / euets_calculator-1.0.3.tar.gz
| Download URL | euets_calculator-1.0.3.tar.gz |
|---|---|
| Size | 38.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
013b032767e76bebcb4b964900fe6ad4ad40b53aec0eea60715a2db9586766c1
|
|
BLAKE2b-256 checksum How to use checksums |
bef7bf2b61ecc6de77156103bdac0f35bd15203cfc0c6d61f66fca3c5eb044fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Release files / euets_calculator-1.0.3-py3-none-any.whl
| Download URL | euets_calculator-1.0.3-py3-none-any.whl |
|---|---|
| Size | 28.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b98c1bacde56b821570e6e0db76cd0b2d034920cf0734ce993934169ac2c8ce4
|
|
BLAKE2b-256 checksum How to use checksums |
83565bc58addecf541b18527b074e355d372092bd1b9bdc88fa7d695a7cf4558
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.4
|
Security for euets-calculator 1.0.3
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.