Models, protocols, and tooling for building MajorDom integrations.
Project description
majordom-integration-sdk
Models, protocols, and tooling for building MajorDom integrations.
An integration bridges an external protocol or platform (Matter, Zigbee, HomeKit, a vendor
cloud, …) into the MajorDom language. This SDK is the contract: the schemas, the
AbstractController framework, the device-repository protocol, discovery services, and a
standalone dev runner so you can build and test an integration without a running Hub.
The Hub itself depends on this same package — first-party integrations use no private
shortcut.
Install
pip install majordom-integration-sdk
Requires Python 3.12+.
Also a standalone IoT toolkit
You don't need MajorDom to get value from this package. majordom_integration_sdk.discovery
ships three fully working, standardized device-discovery services you can drop into any
async Python project:
- Zeroconf / mDNS (
ZeroconfDiscoveryService) — browse Bonjour/mDNS services with a clean listener protocol, and — unusually — reliable disappearance tracking: it augments raw zeroconf with an active cache-poll + confirm-evict loop so you get accurate "device went away" events, not just arrivals. - SSDP / UPnP (
SSDPDiscoveryService) — flexible, per-listener configurable search targets and refresh behavior over raw sockets, without dragging in a full UPnP stack. - BLE (
BLEDiscoveryService) — a uniform listener interface over Bleak for advertisement scanning.
All three share one register(listener, …) → cancel shape, run standalone (each module has a
runnable __main__ demo), and are a solid reference for implementing standardized
interfaces over messy IoT protocols even if you never touch MajorDom. The
AbstractController framework and the DeviceRepositoryProtocol + in-memory/SQLite
implementations are equally reusable as a small, typed device-modelling toolkit.
Documentation
Full integration-author docs — models, the controller lifecycle, storing data, discovery, and a worked example — live at docs.majordom.io.
The fastest way to start a new integration is the integration-template repository (Use this template → Create a new repository).
License
See LICENSE. For commercial licensing or partnership inquiries, contact us via parker-industries.org/partnership.
Development
Setup:
poetry install && poetry run poe install
This installs dependencies and the pre-commit hook that runs poe check.
| Task | Description |
|---|---|
poe install |
Install deps and register the pre-commit hook |
poe check |
Full quality pipeline (ruff, ty, pytest, poetry build/check) |
poe check --ci |
Same, plus git diff --exit-code |
Two long-lived branches: develop (integration branch, all work lands here) and master
(protected, released). Releases are cut from develop via Actions → Release; see
ParkerIndustries/workflows for the CI/CD.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file majordom_integration_sdk-0.1.3.tar.gz.
File metadata
- Download URL: majordom_integration_sdk-0.1.3.tar.gz
- Upload date:
- Size: 34.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
07a1c9874d1da51800cc761609671b6c060e1bcf4ee0a77dd07a71051a79040a
|
|
| MD5 |
bff50bc4f046048c5819a1d05f90b2b6
|
|
| BLAKE2b-256 |
feb4b1cdba441c8334e78d5f8fac4c0285599b7b2057bdc521b4e8267fa965c9
|
Provenance
The following attestation bundles were made for majordom_integration_sdk-0.1.3.tar.gz:
Publisher:
release.yml on MajorDom-Systems/integration-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
majordom_integration_sdk-0.1.3.tar.gz -
Subject digest:
07a1c9874d1da51800cc761609671b6c060e1bcf4ee0a77dd07a71051a79040a - Sigstore transparency entry: 2212779114
- Sigstore integration time:
-
Permalink:
MajorDom-Systems/integration-sdk@25212a697b3d5eef9a33c11c41424c7c2bd8cdff -
Branch / Tag:
refs/heads/develop - Owner: https://github.com/MajorDom-Systems
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@25212a697b3d5eef9a33c11c41424c7c2bd8cdff -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file majordom_integration_sdk-0.1.3-py3-none-any.whl.
File metadata
- Download URL: majordom_integration_sdk-0.1.3-py3-none-any.whl
- Upload date:
- Size: 42.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
302193ced0b3aa882dd284faaf80ab9e411d2e87415f086ad4d474d83d2917a5
|
|
| MD5 |
4e6b3d1b4ea67f9316d5950a0e71c4d5
|
|
| BLAKE2b-256 |
1e505083993341804622bacefc19796f40836b5bff7418e846fa220639a60d1e
|
Provenance
The following attestation bundles were made for majordom_integration_sdk-0.1.3-py3-none-any.whl:
Publisher:
release.yml on MajorDom-Systems/integration-sdk
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
majordom_integration_sdk-0.1.3-py3-none-any.whl -
Subject digest:
302193ced0b3aa882dd284faaf80ab9e411d2e87415f086ad4d474d83d2917a5 - Sigstore transparency entry: 2212779163
- Sigstore integration time:
-
Permalink:
MajorDom-Systems/integration-sdk@25212a697b3d5eef9a33c11c41424c7c2bd8cdff -
Branch / Tag:
refs/heads/develop - Owner: https://github.com/MajorDom-Systems
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@25212a697b3d5eef9a33c11c41424c7c2bd8cdff -
Trigger Event:
workflow_dispatch
-
Statement type: