Skip to main content

BACpypes3 - Python library for BACnet applications

BACpypes provides a BACnet application layer and network layer written in Python for daemons, scripting, and graphical interfaces. This version is the next generation for Python3.8+, completely overhauled from the Python2.5+ version using async/await methods and asyncio for communications.

MCP (Model Context Protocol) integration

The bacpypes3.mcp module exposes the BACpypes3 CLI commands (whois, read, write, rpm, wirtn, BBMD ops, …) as MCP tools with natural names (who_is, read_property, write_property, read_property_multiple, who_is_router_to_network, …). It has three personalities:

  1. Importable library. Each tool is a plain async function returning JSON-serializable Python values. Inject an Application and call the tools directly.
  2. Stand-alone MCP server. python -m bacpypes3.mcp <BACpypes flags> builds an Application via SimpleArgumentParser and serves the tools over stdio using FastMCP.
  3. Embedded server. A long-running BACnet server can inject its own Application and start mcp.serve_http(...) as a concurrent asyncio task, so an LLM agent can drive it over HTTP without fighting the host application's stdout. See samples/mini-device-mcp.py for the reference pattern.

The mcp and pydantic packages are declared as an optional extra and are only imported when a server is actually built; the tool functions are usable without them:

pip install -e ".[mcp]"      # to run the server

Release files for bacpypes3 0.0.110

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bacpypes3 0.0.110
File Size Uploaded
bacpypes3-0.0.110.tar.gz 248.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bacpypes3 0.0.110
File Interpreter ABI Platform
bacpypes3-0.0.110-py3-none-any.whl Python 3 none any Details

Total release size: 526.1 kB

Release files / bacpypes3-0.0.110.tar.gz

Download URL bacpypes3-0.0.110.tar.gz
Size 248.2 kB
Tags Source
SHA-256 checksum
How to use checksums
fd130ae5844a370a28110011f14aae04654939d325e26ca71147b39bb4cbd942
BLAKE2b-256 checksum
How to use checksums
5813b01d7c4a36e4bdc41167f249cb9f65d3049b332214b761d02d09522b037f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / bacpypes3-0.0.110-py3-none-any.whl

Download URL bacpypes3-0.0.110-py3-none-any.whl
Size 277.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
02abc0c9e7e92d7061727898ba00204ec072f1d451a63c4e7de76015b5b14911
BLAKE2b-256 checksum
How to use checksums
52a3c51884d0c841ffb9150acde9198615d09b89232455b9b62488f0ffa52318
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.33 {"installer":{"name":"uv","version":"0.11.33","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page