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 the MCP Python SDK's MCPServer (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-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

Metadata

Release files for bacpypes3 0.1.0

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.1.0
File Size Uploaded Provenance Actions
bacpypes3-0.1.0.tar.gz 279.1 kB Without provenance Details for bacpypes3-0.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 588.2 kB

Release files / bacpypes3-0.1.0.tar.gz

Download URL bacpypes3-0.1.0.tar.gz
Size 279.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9db999a4fbd6c4a7232b70d159e592d81729fb759464859abdd51f49921110fc
BLAKE2b-256 checksum
How to use checksums
74005189a3970b71d9ee66388810636f4e514431ae0d768997159c40497b1daa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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.1.0-py3-none-any.whl

Download URL bacpypes3-0.1.0-py3-none-any.whl
Size 309.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b7418df5587a1f6484f1c9b7551c53292bfcc37b1920fed16ad4cba86d65f155
BLAKE2b-256 checksum
How to use checksums
7fa494bbc7d3b336de8f46b106eb8c1fc975963ee8d9863df8bff3882388fd1b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.7 {"installer":{"name":"uv","version":"0.13.7","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}

Security for bacpypes3 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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