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.2.1.tar.gz (31.0 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.2.1-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ocpp_broker-0.2.1.tar.gz
  • Upload date:
  • Size: 31.0 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.2.1.tar.gz
Algorithm Hash digest
SHA256 fbc5fcacb3279f0ad5a77c7c7fdd9b337d91a627d3e9b2dd35f96db98ec619a8
MD5 458e1e45b92a390c4a24b3a7eaebebea
BLAKE2b-256 7b8236260d524eca5e471e7d59fac58ca8cafb1c52f85e66db389a47aea0d289

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ocpp_broker-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 29.6 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.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d8ca5c10b61baaae8da9a26d3f0d957af0fd706d65e6ed9b619ed74da0098f1b
MD5 f5531c37e328e5f3ca2468a5ba46190b
BLAKE2b-256 deaddaed5831c624bd3dd11a595fc333a54496ef5e2a8d7dda1e31a1620e7c0e

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