Skip to main content

nitro-intercom

Publish/subscribe channels for Python services, backed by the same Rust core the Nitro framework uses internally.

Installation

pip install nitro-intercom

Python 3.13 or newer. The distribution is named nitro-intercom; the package it installs is nitro_intercom, which is what you import. The wheel carries the compiled core, so there is nothing to build. Redis is what it connects to, not something it installs.

Install this only if you are not running on Nitro. Nitro projects should import nitro.intercom, which reaches the same core in-process and takes its configuration from the project's settings object instead of a separate config surface.

Connecting

from nitro_intercom import Intercom

intercom = await Intercom.connect("redis://localhost:6379", prefix="myapp")

prefix keeps several applications apart on one server. capacity and expiry apply to queued channels.

Two ways to deliver

publish / subscribe is push delivery. A subscriber connected now gets the message immediately; one that is not never learns of it.

reached: int = await intercom.publish("room:42", {"event": "joined", "user": "ada"})

listener = await intercom.subscribe("room:42")
async for message in listener:
    print(message)
await listener.close()

send / receive is a bounded queue. A message waits until it is read or the channel expires, and the oldest is discarded once the channel is full.

await intercom.send("jobs", {"task": "resize", "id": 7})

message = await intercom.receive("jobs")        # None when empty

reader = await intercom.reader("jobs")
message = await reader.receive(timeout=30)      # waits; 0 waits indefinitely

Groups

A group is a named set of channels, so a message can be addressed to "everyone in room 42" without the sender knowing who that is.

await intercom.group_add("room:42", channel)
await intercom.group_discard("room:42", channel)

members: list[str] = await intercom.group_channels("room:42")

await intercom.group_publish("room:42", {"event": "started"})   # to those listening
await intercom.group_send("room:42", {"event": "started"})      # queued for each

What crosses the wire

None, bool, int, float, str, bytes, list, tuple and dict, encoded as MessagePack so a service written in another language can read them. Tuples arrive as lists. Anything else is refused rather than coerced, because guessing would mean the receiver gets something the sender did not mean to send.

License

Licensed under either of Apache License, Version 2.0 or the MIT license, at your option.

Metadata

Release files for nitro-intercom 0.3.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for nitro-intercom 0.3.2
File Size Uploaded Provenance Actions
nitro_intercom-0.3.2.tar.gz 43.9 kB With provenance Details for nitro_intercom-0.3.2.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for nitro-intercom 0.3.2
File Actions
nitro_intercom-0.3.2-cp313-abi3-win_amd64.whl CPython 3.13 abi3 Windows x86-64 Details for nitro_intercom-0.3.2-cp313-abi3-win_amd64.whl
nitro_intercom-0.3.2-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.13 abi3 Linux glibc 2.17+ x86-64 Details for nitro_intercom-0.3.2-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
nitro_intercom-0.3.2-cp313-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl CPython 3.13 abi3 Linux glibc 2.17+ ARM64 Details for nitro_intercom-0.3.2-cp313-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
nitro_intercom-0.3.2-cp313-abi3-macosx_11_0_arm64.whl CPython 3.13 abi3 macOS 11.0+ ARM64 Details for nitro_intercom-0.3.2-cp313-abi3-macosx_11_0_arm64.whl

Total release size: 4.2 MB

Release files / nitro_intercom-0.3.2.tar.gz

Download URL nitro_intercom-0.3.2.tar.gz
Size 43.9 kB
Tags Source
SHA-256 checksum
How to use checksums
f48572a8d1ec7783ae0f7181efbc91c5a3c01fe41c95fe0e4cda5118e91c0ae2
BLAKE2b-256 checksum
How to use checksums
93664579f22229729f78c215a34881951544dd2a78742e15d76f565d7837841d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

Release files / nitro_intercom-0.3.2-cp313-abi3-win_amd64.whl

Download URL nitro_intercom-0.3.2-cp313-abi3-win_amd64.whl
Size 1.0 MB
Tags CPython 3.13 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
c88be85de37d82de11f9ec53ac5188289eb907736ba0ad3d3f0aca1239ad5d23
BLAKE2b-256 checksum
How to use checksums
d7b07c2343ab09c914cbaaf680f4c38c77c51c28cf3187e3f6e13ac5c93618d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

Release files / nitro_intercom-0.3.2-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL nitro_intercom-0.3.2-cp313-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 1.1 MB
Tags CPython 3.13 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
cdf80b903eddbdbe389858b99f8eeb1d9f159321605e839bb07acb61e31c04ff
BLAKE2b-256 checksum
How to use checksums
97240cc3a304d857ee22eed17a6fbb12c372fbeb723c5d0749c8312c10cb41b8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

Release files / nitro_intercom-0.3.2-cp313-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl

Download URL nitro_intercom-0.3.2-cp313-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.whl
Size 1.1 MB
Tags CPython 3.13 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
8d5ea948c4a9dd32dfab5bcc726a09e3ede90eb82ffe2bf4d9f93f681023ce3b
BLAKE2b-256 checksum
How to use checksums
44b8c5fdcdb0a4e592028242b0d4e468a209bbbfd04df43b05be02e638abdb48
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

Release files / nitro_intercom-0.3.2-cp313-abi3-macosx_11_0_arm64.whl

Download URL nitro_intercom-0.3.2-cp313-abi3-macosx_11_0_arm64.whl
Size 994.4 kB
Tags CPython 3.13 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
def77dbae1c9fe118854bc86e35c1cac63c13600eb614c3737c98f5e6b73adb7
BLAKE2b-256 checksum
How to use checksums
db63a292ea7752710c198b3e965a45efbf15035afa6e20e4ba6ab7fc6e8682e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Nov 4, 2026.

Transparency log

Security for nitro-intercom 0.3.2

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.

Full provenance

All 5 files in this release have been uploaded with provenance metadata.

Select from 5 files

Attestation for nitro_intercom-0.3.2.tar.gz

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 Nov 4, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page