OCPP Broker
A comprehensive OCPP 1.6 broker built on the upstream ocpp Python library, providing bi-directional message routing, tag management, and multi-backend support.
Features
- ✅ OCPP 1.6 Compliant - Powered by the upstream
ocpplibrary for spec-compliant parsing and validation - ✅ Multi-Backend Support - Relay messages to upstream backends with leader/follower logic
- ✅ Broker-as-Backend Mode - Handle OCPP commands locally without external backends
- ✅ Tag Management - Comprehensive tag authorization with REST API
- ✅ Multi-Organization - Support multiple organizations with isolated configurations
- ✅ Session Management - Clean session lifecycle with automatic cleanup
Quick Start
Installation
pip install ocpp-broker
Basic Usage
# Start the broker server
ocpp-broker-server
# Or with custom config
ocpp-broker-server -c /path/to/config.yaml
Configuration
Create a config.yaml file:
broker:
host: 0.0.0.0
port: 8765
organizations:
- name: "MyOrg"
connect_to_backend: false # Broker acts as backend
tag_management:
enabled: true
tags:
- id_tag: "USER001"
status: "Accepted"
tag_type: "RFID"
Documentation
For complete documentation, see the docs/ directory:
- Installation Guide
- Quick Start
- Configuration Guide
- Architecture Overview
- Tag Management
- API Reference
Development
# Install with dev dependencies
pip install -e .[tests]
# Run tests
pytest
# Build package
python -m build
License
MIT License - see LICENSE file for details.
Links
Metadata
Release files for ocpp-broker 0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ocpp_broker-0.4.tar.gz | 45.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ocpp_broker-0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 86.1 kB
Release files / ocpp_broker-0.4.tar.gz
| Download URL | ocpp_broker-0.4.tar.gz |
|---|---|
| Size | 45.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
50f506745ca696c969f92ce00642a3e93a1e98790da8af25bd6088b3ba85fc13
|
|
BLAKE2b-256 checksum How to use checksums |
a161e5e773c5d8ef4128af7358f3b1e56899080c998a264913ceed54bd31f097
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|
Release files / ocpp_broker-0.4-py3-none-any.whl
| Download URL | ocpp_broker-0.4-py3-none-any.whl |
|---|---|
| Size | 40.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
483333435a39ab68e38c31999e4123e1c543fa83b2346fc4dcab86456d074230
|
|
BLAKE2b-256 checksum How to use checksums |
cf5a6a49b96df54ce211d2ad82494bbfecf94d4bd342eb8c1e887d88ff50e5f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.12
|