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 mcp.server.mcpserver.MCPServer (renamed from FastMCP in the mcp 2.x SDK; BACpypes3 requires mcp>=2).
  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-with-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.108

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.108
File Size Uploaded
bacpypes3-0.0.108.tar.gz 247.4 kB Details

Built distribution (wheel)

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

Total release size: 524.9 kB

Release files / bacpypes3-0.0.108.tar.gz

Download URL bacpypes3-0.0.108.tar.gz
Size 247.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9a3d0e4b42af17e918aaeb6f29c54619465fbd776526dcf534c68f370ec9c081
BLAKE2b-256 checksum
How to use checksums
a47061cfae4c377759d67a5a0005cb4e0267cf73b3418f38315eb845a4867e03
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.108-py3-none-any.whl

Download URL bacpypes3-0.0.108-py3-none-any.whl
Size 277.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a1f7c622853bc2fb3e6b03fa36a12c74486a33ec978f0fda610387634459988a
BLAKE2b-256 checksum
How to use checksums
8a162ad7e3b7463a280446e5262b9aa3221d7c3f11a95b98d6ee607a1cf27071
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