Skip to main content

channelstack for Python

The Python SDK of channelstack, a test harness for the apps and agents you build for Slack, GitHub, Linear, Notion, Resend and Gmail. channelstack runs fake versions of those platforms on your machine. Your code scripts the people, your app answers through its real code path, and you check what a person would see.

For tests, use pytest-channelstack, which is built on this SDK.

Install

pip install channelstack

It needs Python 3.12 or later. The SDK doesn't bundle the server. It finds it at CHANNELSTACK_SERVER_BIN, or as channelstack on the PATH: install it with npm i -g channelstack, or download it from the GitHub releases.

Example

import asyncio

from channelstack import connect


async def main() -> None:
    async with await connect(mode="auto") as client:
        async with await client.open_session(name="example") as session:
            slack = await session.slack()
            ana = await slack.create_user(name="Ana")
            channel = await slack.create_channel(participants=[ana, slack.app])

            msg = await ana.say("@my-agent hi", channel=channel)
            reply = await msg.thread.wait_for_reply(from_="my-agent")
            print(reply.text)


if __name__ == "__main__":
    asyncio.run(main())

MIT licensed.

Metadata

Release files for channelstack 0.1.1

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

Source distribution (sdist)

Source distribution for channelstack 0.1.1
File Size Uploaded Provenance Actions
channelstack-0.1.1.tar.gz 48.9 kB Without provenance Details for channelstack-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 86.5 kB

Release files / channelstack-0.1.1.tar.gz

Download URL channelstack-0.1.1.tar.gz
Size 48.9 kB
Tags Source
SHA-256 checksum
How to use checksums
41c21c3c796dbac0cdc4939f3a7767b377ca2a6d9a96c41fd0b6b7f9743ad0dd
BLAKE2b-256 checksum
How to use checksums
79bec88ac62d718086e4b5c23d716e7f5868b8ac335361bee9ee4295d07a37b4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / channelstack-0.1.1-py3-none-any.whl

Download URL channelstack-0.1.1-py3-none-any.whl
Size 37.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
80f8d6cf97565de2dba428aea02601c01f06413cb42d8c409374f3624d1ae1c6
BLAKE2b-256 checksum
How to use checksums
1200a6297b607b53e6ae343a1ac35f175260e3cbccae75f917f9644839ec2cb2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via uv/0.13.1 {"installer":{"name":"uv","version":"0.13.1","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"26.04","id":"resolute","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Security for channelstack 0.1.1

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