Metadata-Version: 2.4
Name: euets-calculator
Version: 1.0.3
Summary: EU ETS, FuelEU Maritime and CII compliance calculator for shipowners
License: MIT
Project-URL: Homepage, https://ingeniat.pro
Project-URL: Documentation, https://ingeniat.pro/eu-ets-calculator/
Project-URL: Source, https://github.com/ingeniat-es/euets-calculator
Keywords: maritime,eu-ets,fueleu,cii,carbon,offshore,engineering
Classifier: Development Status :: 4 - Beta
Classifier: Intended Audience :: Science/Research
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Scientific/Engineering
Requires-Python: >=3.10
Description-Content-Type: text/markdown
License-File: LICENSE
Requires-Dist: click>=8.1
Requires-Dist: pydantic>=2.0
Provides-Extra: test
Requires-Dist: pytest>=7.0; extra == "test"
Requires-Dist: pytest-cov>=4.0; extra == "test"
Provides-Extra: dev
Requires-Dist: click>=8.1; extra == "dev"
Requires-Dist: pydantic>=2.0; extra == "dev"
Requires-Dist: pytest>=7.0; extra == "dev"
Requires-Dist: pytest-cov>=4.0; extra == "dev"
Dynamic: license-file

# 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](https://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

```bash
pip install -e .
```

For an isolated development environment:

```bash
python3 -m venv .venv
source .venv/bin/activate
pip install -e ".[dev]"
```

## Command line

```bash
# 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

```python
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`](docs/QUICK_START.md) — common commands
- [`docs/USER_GUIDE.md`](docs/USER_GUIDE.md) — formulas, parameters and examples
- [`docs/API_REFERENCE.md`](docs/API_REFERENCE.md) — full API reference
- [`docs/OPERATION.md`](docs/OPERATION.md) — operational notes
- [`CHANGELOG.md`](CHANGELOG.md) — version history

## Testing

```bash
python3 -m pytest -q
```

## Citation

If you use this package in research or a published calculation, cite the software via [`CITATION.cff`](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.
