About
Phable is a modern Python toolkit for working with Project Haystack tagged data, Xeto specs, and Haxall. It provides a simple, Pythonic interface for building automation systems, charging station management systems, and other energy management applications that use Project Haystack semantic data models.
Open source and free - Phable is permissively licensed under the MIT license.
Core Capabilities
Data Types & Serialization
- Full support for Project Haystack kinds (data types)
- Serialize between Python objects and Zinc or JSON formats
- Native Python representations for working with semantic data
Project Haystack Client
- Read
site,equip, andpointentities - Read current values of real-time data points
- Supervisory control of real-time data points
- Read and write history data for data points
Haxall Client
- All Project Haystack client features
- Add, update, and remove operations (commit API)
- Evaluate Axon expressions directly from Python
Xeto
- Type checking and validation of Haystack records against Xeto specifications via Haxall's CLI
Installation
Phable requires Python 3.11 or higher. Install from PyPI:
$ pip install phable
Time zone support: Phable uses the zoneinfo module for IANA time zone support. On systems without time zone data, you'll need to install tzdata:
$ pip install tzdata
Optional dependencies: For DataFrame support, install with your preferred library:
$ pip install "phable[pandas,pyarrow]" # For pandas support
$ pip install "phable[polars]" # For polars support
Breaking Changes
The early focus of this project is to find the best practices for using modern Python with a Haystack server. This may lead to breaking changes in newer Phable versions. After there has been sufficient experience with Phable, we plan to release a stable version 1.0.0.
Learn More
Phable's official website located here has additional documentation and examples for Phable's API.
Metadata
Release files for phable 0.1.30
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| phable-0.1.30.tar.gz | 98.6 kB | Without provenance | Details for phable-0.1.30.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| phable-0.1.30-py3-none-any.whl | Python 3 | none | any | Details for phable-0.1.30-py3-none-any.whl |
Total release size: 140.2 kB
Release files / phable-0.1.30.tar.gz
| Download URL | phable-0.1.30.tar.gz |
|---|---|
| Size | 98.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1eb84c592a9d297747e08a6792d0bfbac7e5edb618dce65c016c4f5522dfb8f5
|
|
BLAKE2b-256 checksum How to use checksums |
807ac19f68fcc93bf3534bf248e2f4f51903bf50bf03d08b71b8dee31c1f1d24
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|
Release files / phable-0.1.30-py3-none-any.whl
| Download URL | phable-0.1.30-py3-none-any.whl |
|---|---|
| Size | 41.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a38899d53cf1be67c4d2bb1e82ebe153b1f6b2736fef1736b88fb30ddad5eca7
|
|
BLAKE2b-256 checksum How to use checksums |
171e8cfb277fefb5d5c75d7901627d7482ce9827fdfc189a212608beb2f62ff8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.9.5
|
Security for phable 0.1.30
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.