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.1b0.tar.gz (22.7 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.1b0-py3-none-any.whl (25.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ocpp_broker-0.2.1b0.tar.gz
  • Upload date:
  • Size: 22.7 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.1b0.tar.gz
Algorithm Hash digest
SHA256 1f14d4dfc777f100146bd153ee202025a82d901a29a467ea99c5e2c7602d46d2
MD5 0ca503c2806b1cec1a4ec08516b63e80
BLAKE2b-256 64308988dc31553be26ed927c7560ec6fce933fbf73d1b049824af4f612ddd53

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ocpp_broker-0.2.1b0-py3-none-any.whl
  • Upload date:
  • Size: 25.4 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.1b0-py3-none-any.whl
Algorithm Hash digest
SHA256 e41634756fc9d36bbc280544adb6703f914fb039c7be4a377585b6c81fe7eb1d
MD5 c7fc251f5f4fcf6c5f2b04bf7e826611
BLAKE2b-256 e661128b9e1940b53768b2a098faebf4a3ea3a7aa6d7e85b3fbe46654c84a702

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