Skip to main content

chatom chatom

Chatom

A unified Python frontend for Discord, IRC, Matrix, Slack, Symphony, Telegram, and Zulip.

Build Status codecov License PyPI

Chatom lets application code use one set of users, channels, messages, formatting nodes, interactions, and backend operations. Platform adapters translate that frontend to Discord, IRC, Matrix, Slack, Symphony, Telegram, or Zulip at the edge. The same models also feed cross-platform bridges, pydantic-ai tools, MCP servers, and CSP graphs.

Install

Chatom requires Python 3.11 or newer.

pip install chatom

Install the SDKs for the backends you use:

pip install slack-sdk discord.py matrix-nio symphony-bdk-python python-telegram-bot zulip

Optional integrations are available with chatom[agent] and chatom[mcp].

One message, every backend

from chatom import MessageBuilder

message = (
    MessageBuilder()
    .heading("Deployment status", level=2)
    .paragraph("All checks passed.")
    .bold("Environment: ")
    .text("production")
    .table(
        [["API", "healthy"], ["Workers", "healthy"]],
        headers=["Service", "State"],
    )
    .build()
)

slack_content = message.render_for("slack")
discord_content = message.render_for("discord")
symphony_content = message.render_for("symphony")
telegram_content = message.render_for("telegram")
matrix_content = message.render_for("matrix")
zulip_content = message.render_for("zulip")
irc_content = message.render_for("irc")

Each backend receives its own dialect: mrkdwn for Slack, Markdown for Discord and Zulip, HTML for Symphony and Matrix, Telegram's HTML subset, and plain text for IRC.

Message construction stays unchanged. Only rendering and backend configuration know which platform receives it.

Connected backends share the same lifecycle and operation shape:

await backend.connect()
try:
    channel = await backend.fetch_channel(name="operations")
    await backend.send_message(channel, message.render_for(backend.name))
finally:
    await backend.disconnect()

What the frontend covers

  • Platform-independent models for users, channels, organizations, threads, messages, attachments, embeds, reactions, presence, and interactions
  • Rich text, tables, mentions, embeds, buttons, select menus, and format conversion
  • A common asynchronous backend interface with a synchronous facade
  • Backend capabilities for feature-dependent operations such as reactions, editing, files, presence, and threads
  • Model promotion and demotion between common and backend-specific types
  • Identity mapping and message forwarding between platforms
  • Agent, MCP, and CSP integrations built on the same backend contract
  • In-memory backends for all supported platforms

Documentation

License

Chatom is licensed under the Apache License 2.0.

Metadata

Release files for chatom 0.2.3

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

Source distribution (sdist)

Source distribution for chatom 0.2.3
File Size Uploaded Provenance Actions
chatom-0.2.3.tar.gz 429.2 kB Without provenance Details for chatom-0.2.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for chatom 0.2.3
File Interpreter ABI Platform Actions
chatom-0.2.3-py3-none-any.whl Python 3 none any Details for chatom-0.2.3-py3-none-any.whl

Total release size: 948.1 kB

Release files / chatom-0.2.3.tar.gz

Download URL chatom-0.2.3.tar.gz
Size 429.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0f4bea0a555b8dbcd313377abff38f8175e61a8eed0b0d0171b49e3667a838c8
BLAKE2b-256 checksum
How to use checksums
375befbf0e32e94ac977563879ab4002b90afa113cefc33772edf960a886113c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Release files / chatom-0.2.3-py3-none-any.whl

Download URL chatom-0.2.3-py3-none-any.whl
Size 518.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
72c389db0d116087f64e0a68ced27c5312a72e3e4f65b90916f058f1888fcfed
BLAKE2b-256 checksum
How to use checksums
2af6e14e611661ac6ceca445d35d114d79d1153474dba06045d5b530928317a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.15

Security for chatom 0.2.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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