composebus 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- composebus-0.1.0/LICENSE +21 -0
- composebus-0.1.0/PKG-INFO +32 -0
- composebus-0.1.0/README.md +19 -0
- composebus-0.1.0/composebus/__init__.py +13 -0
- composebus-0.1.0/composebus/bus.py +1455 -0
- composebus-0.1.0/composebus/bus_clock.py +250 -0
- composebus-0.1.0/composebus/bus_envelope.py +204 -0
- composebus-0.1.0/composebus/freshness.py +388 -0
- composebus-0.1.0/composebus/module.py +64 -0
- composebus-0.1.0/composebus/namespace.py +509 -0
- composebus-0.1.0/composebus/plugin.py +449 -0
- composebus-0.1.0/composebus/plugins/__init__.py +9 -0
- composebus-0.1.0/composebus/plugins/discovery.py +62 -0
- composebus-0.1.0/composebus/plugins/liveness.py +178 -0
- composebus-0.1.0/composebus/plugins/log.py +104 -0
- composebus-0.1.0/composebus/plugins/state_manager.py +331 -0
- composebus-0.1.0/composebus/plugins/time.py +152 -0
- composebus-0.1.0/composebus/selector.py +48 -0
- composebus-0.1.0/composebus/state_engine.py +245 -0
- composebus-0.1.0/composebus/transforms.py +187 -0
- composebus-0.1.0/composebus/transport.py +730 -0
- composebus-0.1.0/composebus/transport_contract.py +196 -0
- composebus-0.1.0/composebus/transport_local.py +72 -0
- composebus-0.1.0/composebus.egg-info/PKG-INFO +32 -0
- composebus-0.1.0/composebus.egg-info/SOURCES.txt +40 -0
- composebus-0.1.0/composebus.egg-info/dependency_links.txt +1 -0
- composebus-0.1.0/composebus.egg-info/requires.txt +4 -0
- composebus-0.1.0/composebus.egg-info/top_level.txt +1 -0
- composebus-0.1.0/pyproject.toml +24 -0
- composebus-0.1.0/setup.cfg +4 -0
- composebus-0.1.0/tests/test_bus.py +287 -0
- composebus-0.1.0/tests/test_bus_clock.py +317 -0
- composebus-0.1.0/tests/test_bus_concurrent_publish.py +197 -0
- composebus-0.1.0/tests/test_bus_scope_auto_resolve_union.py +210 -0
- composebus-0.1.0/tests/test_closure.py +84 -0
- composebus-0.1.0/tests/test_compound_bindings.py +217 -0
- composebus-0.1.0/tests/test_contents.py +60 -0
- composebus-0.1.0/tests/test_liveness_d1_d2_bringup.py +122 -0
- composebus-0.1.0/tests/test_modal_priority.py +237 -0
- composebus-0.1.0/tests/test_selector.py +45 -0
- composebus-0.1.0/tests/test_state_engines.py +123 -0
- composebus-0.1.0/tests/test_transforms.py +122 -0
composebus-0.1.0/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 David Burnett
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: composebus
|
|
3
|
+
Version: 0.1.0
|
|
4
|
+
Summary: ComposeBus kernel — the bare, transport-agnostic ComposeIO bus
|
|
5
|
+
License: MIT
|
|
6
|
+
Requires-Python: >=3.10
|
|
7
|
+
Description-Content-Type: text/markdown
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Requires-Dist: pydantic>=2.0
|
|
10
|
+
Provides-Extra: test
|
|
11
|
+
Requires-Dist: pytest>=7.0; extra == "test"
|
|
12
|
+
Dynamic: license-file
|
|
13
|
+
|
|
14
|
+
# composebus
|
|
15
|
+
|
|
16
|
+
The ComposeBus kernel: the bare, transport-agnostic ComposeIO bus
|
|
17
|
+
(`ComposeIOBus`, namespaces, state engines, the transport contract, the
|
|
18
|
+
in-process local transport, the plugin contract and the five default plugins a
|
|
19
|
+
bare bus installs). One runtime dependency: `pydantic>=2.0`.
|
|
20
|
+
|
|
21
|
+
```python
|
|
22
|
+
from composebus.bus import ComposeIOBus
|
|
23
|
+
|
|
24
|
+
bus = ComposeIOBus(bus_id="demo")
|
|
25
|
+
bus.start()
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Normative spec: `[SPEC:CXC-COMPOSEBUS-KERNEL]` §7 (the composebus distribution).
|
|
29
|
+
Inside the ComposeIO monorepo every `composeio.<module>` for a moved module is
|
|
30
|
+
the identical module object `composebus.<module>`.
|
|
31
|
+
|
|
32
|
+
Tests: `pip install ./python/composebus[test]` then `pytest python/composebus/tests`.
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# composebus
|
|
2
|
+
|
|
3
|
+
The ComposeBus kernel: the bare, transport-agnostic ComposeIO bus
|
|
4
|
+
(`ComposeIOBus`, namespaces, state engines, the transport contract, the
|
|
5
|
+
in-process local transport, the plugin contract and the five default plugins a
|
|
6
|
+
bare bus installs). One runtime dependency: `pydantic>=2.0`.
|
|
7
|
+
|
|
8
|
+
```python
|
|
9
|
+
from composebus.bus import ComposeIOBus
|
|
10
|
+
|
|
11
|
+
bus = ComposeIOBus(bus_id="demo")
|
|
12
|
+
bus.start()
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Normative spec: `[SPEC:CXC-COMPOSEBUS-KERNEL]` §7 (the composebus distribution).
|
|
16
|
+
Inside the ComposeIO monorepo every `composeio.<module>` for a moved module is
|
|
17
|
+
the identical module object `composebus.<module>`.
|
|
18
|
+
|
|
19
|
+
Tests: `pip install ./python/composebus[test]` then `pytest python/composebus/tests`.
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"""composebus — the ComposeBus kernel ([SPEC:CXC-COMPOSEBUS-KERNEL] §7).
|
|
2
|
+
|
|
3
|
+
The bare, transport-agnostic bus: ``composebus.bus.ComposeIOBus`` plus the
|
|
4
|
+
namespace, state-engine, freshness, clock, selector, transform, envelope,
|
|
5
|
+
transport-contract and plugin-contract modules, and the five default plugins a
|
|
6
|
+
bare bus installs (``composebus.plugins``). Depends on the standard library and
|
|
7
|
+
pydantic only.
|
|
8
|
+
|
|
9
|
+
Importing this package imports nothing else; import the module you need
|
|
10
|
+
(e.g. ``from composebus.bus import ComposeIOBus``).
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
__version__ = "0.1.0"
|