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.4.tar.gz (45.3 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.4-py3-none-any.whl (40.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ocpp_broker-0.4.tar.gz
  • Upload date:
  • Size: 45.3 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.4.tar.gz
Algorithm Hash digest
SHA256 50f506745ca696c969f92ce00642a3e93a1e98790da8af25bd6088b3ba85fc13
MD5 ee61be94ae50013a9d32d51719d41d85
BLAKE2b-256 a161e5e773c5d8ef4128af7358f3b1e56899080c998a264913ceed54bd31f097

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ocpp_broker-0.4-py3-none-any.whl
  • Upload date:
  • Size: 40.8 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 483333435a39ab68e38c31999e4123e1c543fa83b2346fc4dcab86456d074230
MD5 4a03e45c1ac0264bdd8fdc7f66470c54
BLAKE2b-256 cf5a6a49b96df54ce211d2ad82494bbfecf94d4bd342eb8c1e887d88ff50e5f1

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