firm-channel
Database-backed publish/subscribe for Python — a pure-Python port of Rails' Solid Cable. No Redis required: messages flow through your existing SQLite, PostgreSQL, or MySQL/MariaDB database.
Part of firm, a port of the Rails 8 Solid stack.
pip install firm-channel
Quickstart
from firm.channel import Channel
ps = Channel(database_url="postgresql://localhost/myapp")
ps.subscribe("room:42", lambda payload: print(payload))
ps.broadcast("room:42", b'{"msg": "hi"}')
Highlights
- Broadcast/subscribe over the database — no extra broker to run
- Polling listener with configurable interval, in the style of Solid Cable
- Automatic message trimming with configurable retention
Docs
MIT licensed. Schema and design derived from Solid Cable (© 37signals, MIT); see NOTICE.
Metadata
Release files for firm-channel 1.0.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 | |
|---|---|---|---|
| firm_channel-1.0.0.tar.gz | 11.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| firm_channel-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 28.6 kB
Release files / firm_channel-1.0.0.tar.gz
| Download URL | firm_channel-1.0.0.tar.gz |
|---|---|
| Size | 11.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c60b6633323abe4dbd7b495eb545e393a8e8a59de592b82d32b7535a5196d0cd
|
|
BLAKE2b-256 checksum How to use checksums |
5f92a4e06532e7ffed937f075e6c49d25604487e66c8e45edb3e5edefde43895
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / firm_channel-1.0.0-py3-none-any.whl
| Download URL | firm_channel-1.0.0-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7e9220b421c9401b72fe765da833eadd0754765b0f596d95eecf972ac4a9ce1d
|
|
BLAKE2b-256 checksum How to use checksums |
f0a661b9780b69d18cbb331f12c59dab70c9543e5c98cbeaafaa6f69abdb9202
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.31 {"installer":{"name":"uv","version":"0.11.31","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|