Skip to main content

A comprehensive OCPP broker with tag management, message routing, and backend integration

Project description

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 ocpp library 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:

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ocpp_broker-0.3.tar.gz (36.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ocpp_broker-0.3-py3-none-any.whl (34.5 kB view details)

Uploaded Python 3

File details

Details for the file ocpp_broker-0.3.tar.gz.

File metadata

  • Download URL: ocpp_broker-0.3.tar.gz
  • Upload date:
  • Size: 36.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for ocpp_broker-0.3.tar.gz
Algorithm Hash digest
SHA256 7d55517cb6a1dc6c78f1925686cedcfd491d4d410526105c87fe9ce1b2bc9938
MD5 ade83445b3af068ede1d85b0437dd24f
BLAKE2b-256 f1966e787451e9c23e51dd8d8c993acebb582962f880976f91f55d42a141ff64

See more details on using hashes here.

File details

Details for the file ocpp_broker-0.3-py3-none-any.whl.

File metadata

  • Download URL: ocpp_broker-0.3-py3-none-any.whl
  • Upload date:
  • Size: 34.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for ocpp_broker-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 1416f6b09bfcd596109d8b810cad5c260e56a362c8f1f68ba1c26dc7e5093158
MD5 d2734b80fdec8dbfef3b4627716b7e9d
BLAKE2b-256 7a9cc40c0b05555da670be1ca0642b2a65f2ed3bb00a7de04ef594b70ce6763a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page