almasix-conduit
Server-driven reactive components for Almasix.
Import path stays almasix.conduit (namespace package under the core almasix dist).
0.2 ships full-page routes, <conduit:…> tags, and a dual conduit: / wire: + $conduit / $wire vocabulary.
Inspired by Livewire’s architecture — thank you, Caleb — Conduit is its own package for the Almasix/Python world.
pip install 'almasix[conduit]'
# or
pip install almasix-conduit
from almasix.conduit import Component, Conduit, conduit
from almasix.routing import Route
class Counter(Component):
count = 0
def increment(self) -> None:
self.count += 1
def render(self) -> str:
return "conduit.counter"
Route.conduit("/counter", Counter)
<!-- embed anywhere -->
<conduit:counter />
<!-- or -->
@conduit('counter')
<button type="button" conduit:click="increment">+</button>
<span x-text="$conduit.count"></span>
wire:* and $wire still work — use whichever you prefer.
ConduitServiceProvider is discovered automatically via the almasix.providers
entry-point group when this package is installed.
Docs: conduit.almasix.com.
Develop
pip install -e ".[dev]"
ruff check src tests && ruff format --check src tests
pytest -q
Release
Tag vX.Y.Z matching project.version and publish a GitHub Release. The
publish workflow uses PyPI Trusted Publishing (OIDC).
License
Metadata
Release files for almasix-conduit 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| almasix_conduit-0.2.0.tar.gz | 33.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| almasix_conduit-0.2.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 67.3 kB
Release files / almasix_conduit-0.2.0.tar.gz
| Download URL | almasix_conduit-0.2.0.tar.gz |
|---|---|
| Size | 33.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4f72229eb84df5898a68aeb44d0fd85f528439dc7b318dd4c6e868760c3a6b3c
|
|
BLAKE2b-256 checksum How to use checksums |
7e8ddeadacdc8932f3bb957762155f47673d4bf65ffe6351a6d8148fbf1e8d08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency logRelease files / almasix_conduit-0.2.0-py3-none-any.whl
| Download URL | almasix_conduit-0.2.0-py3-none-any.whl |
|---|---|
| Size | 33.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ebc2d4333241a9d6663671e339f5498f58fac2ef4f5e44d93796a76613253009
|
|
BLAKE2b-256 checksum How to use checksums |
df19197b21220b4b547ca7fbf334a9c8de7f452b347564833b3ae9d122eed64e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 16, 2026.
Transparency log