Changelog¶
All notable changes to this project are documented in this file.
The format is based on Keep a Changelog, and this project adheres to Calendar Versioning (YYYY.M.PATCH).
[2026.1.9] - 2026-01-09¶
Added¶
- Dual licensing - Project now available under both MIT and EUPL v.1.2 licenses
- OCPI 2.3.0 support - Full implementation including:
- Payments module (CPO and PTP roles)
- Enhanced Locations module with Parking support
- Updated Sessions, CDRs, Tokens, Tariffs, and Commands modules
- New PTP (Payment Terminal Provider) role support
- Comprehensive test coverage - Added 58+ new tests, reaching 83% coverage
- Test suites for v_2_3_0 modules - Complete test coverage for all 2.3.0 modules
Changed¶
- Package rebranding - Renamed from
extrawest_ocpitoocpi-python - Repository migration - Moved to
elumobility/ocpi-python - Improved adapter calls - All adapter methods now explicitly pass version numbers
- Enhanced error handling - Better validation error logging and debugging
Fixed¶
- Pydantic v2 compatibility - Fixed all
Optionalfields to have explicit= Nonedefaults - Deprecation warnings - Replaced all
.dict()calls with.model_dump() - Authentication - Fixed token decoding for OCPI 2.3.0 (non-base64 tokens)
- Schema validation - Fixed multiple schema issues in 2.3.0 modules
[2026.1.8] - 2026-01-08¶
Breaking Changes¶
- Removed Pydantic v1 support - Now requires
pydantic>=2.0.0 - Minimum FastAPI version is now 0.115.0
Changed¶
ocpi/core/compat.py- Simplified to Pydantic v2 onlyocpi/core/config.py- Usespydantic-settingsv2 withSettingsConfigDictocpi/core/data_types.py- All custom types use__get_pydantic_core_schema__pyproject.toml- Updated dependencies:pydantic>=2.0.0,<3.0.0pydantic-settings>=2.0.0fastapi>=0.115.0,<1.0.0httpx>=0.27.0
Removed¶
- Pydantic v1 compatibility code
__get_validators__and__modify_schema__methods (Pydantic v1 style)
Version History¶
| Version | Date | Changes |
|---|---|---|
| 2026.1.9 | 2026-01-09 | OCPI 2.3.0 support, package rebranding, comprehensive tests |
| 2026.1.8 | 2026-01-08 | Pydantic v2 migration, FastAPI 0.115+ support |
Credits¶
This project is based on the excellent work from extrawest/extrawest_ocpi, with significant enhancements and modernizations.