--- id: bac0 version: "2026.7.25" license: LGPL-3.0 license_treatment: copyleft maintenance: active --- # BAC0 — BACnet Scripting Framework for testing DDC Controls License: copyleft · Maintenance: active · Downloads: 98.0K/mo ## What it is and what it does BAC0 is a Python framework for building automation system (BAS) programmers who need to interact with BACnet devices, particularly DDC (Direct Digital Control) controllers. It wraps BACpypes3 to provide a high-level asynchronous interface for reading device properties, writing values, and browsing BACnet networks over IP. The library is designed for test-driven development of control sequences—allowing you to simulate sensor inputs using the out_of_service property even when hardware is not connected, making it practical for testing controller logic before deployment. The package depends on BACpypes3 for protocol handling, colorama for terminal output, python-dotenv for configuration, pytz for timezone support, and aiosqlite for data operations. It targets Python 3.10 and over and has been actively maintained since 2016, with recent updates indicating ongoing development. Use it for: - Test DDC controller sequences without physical sensors by writing simulated values to inputs. - Automate BACnet device discovery and property inspection across a building network. - Write integration tests for building automation control logic in Python. - Monitor and log BACnet device state changes over time for diagnostics. - Prototype building automation workflows before deploying to production controllers. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. BAC0 is an asynchronous Python scripting framework for interacting with BACnet devices over IP networks, enabling you to read properties, write values, and browse BACnet networks using simple Python commands. Yes, if you work with BACnet devices or building automation systems. The package is actively maintained, has low install friction, carries no known vulnerabilities, and fills a specific niche for BAS programmers. The copyleft license requires you to share modifications but poses no barrier to using it as-is. Not relevant for general Python development outside building automation. ## Install pip install bac0 uv add bac0 poetry add bac0 ## Installing BAC0 Before you install: Low install friction with a pure-wheel distribution. The package is actively maintained with a recent release (19 days old) and steady development activity. Five runtime dependencies are all well-established packages. License in practice: Licensed under LGPL-3.0 (copyleft). Any derivative work or distribution must preserve the copyleft terms and make source code available under the same license. Quickstart: pip install bac0 import bac0 from bac0 import connect # Connect to BACnet network network = connect() Requires Python 3.10 or over. BACnet/IP network access and proper network configuration are prerequisites for actual device communication. Verify before relying: - Whether the package works with Python versions beyond 3.10 or if 3.10 is a hard minimum. - Specific BACnet device compatibility and any firmware version requirements. - Whether aiosqlite is used for local data persistence or only for optional features. ## Package facts - License: LGPL-3.0 (copyleft) - Python support: unspecified - Install friction: low - Maintenance: active - Downloads: 98.0K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags bacnet scripting python, building automation control, ddc controller testing, bacnet device communication, building automation system python, bacnet network browsing, bacnet property read write, bacnet, building-automation, ddc-controls [View on SkillFed](https://skillfed.io/packages/bac0) · [View on PyPI](https://pypi.org/project/bac0/)