channelstack 0.0.0.dev0__tar.gz → 0.1.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- channelstack-0.1.1/.gitignore +17 -0
- channelstack-0.1.1/LICENSE +21 -0
- channelstack-0.1.1/PKG-INFO +69 -0
- channelstack-0.1.1/README.md +44 -0
- channelstack-0.1.1/channelstack/__init__.py +4 -0
- channelstack-0.1.1/channelstack/generated/__init__.py +3392 -0
- channelstack-0.1.1/channelstack/py.typed +0 -0
- channelstack-0.1.1/channelstack/runtime/__init__.py +0 -0
- channelstack-0.1.1/channelstack/runtime/client.py +100 -0
- channelstack-0.1.1/channelstack/runtime/credentials.py +25 -0
- channelstack-0.1.1/channelstack/runtime/duration.py +21 -0
- channelstack-0.1.1/channelstack/runtime/files.py +77 -0
- channelstack-0.1.1/channelstack/runtime/launcher.py +144 -0
- channelstack-0.1.1/channelstack/runtime/transport.py +108 -0
- channelstack-0.1.1/channelstack/runtime/wait.py +232 -0
- channelstack-0.1.1/pyproject.toml +63 -0
- channelstack-0.1.1/tests/test_runtime.py +189 -0
- channelstack-0.1.1/uv.lock +290 -0
- channelstack-0.0.0.dev0/PKG-INFO +0 -12
- channelstack-0.0.0.dev0/README.md +0 -3
- channelstack-0.0.0.dev0/pyproject.toml +0 -12
- channelstack-0.0.0.dev0/src/channelstack/__init__.py +0 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Christian Bromann
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
Metadata-Version: 2.5
|
|
2
|
+
Name: channelstack
|
|
3
|
+
Version: 0.1.1
|
|
4
|
+
Summary: Test the apps and agents you build for Slack, GitHub, Linear, Notion, Resend and Gmail: the channelstack Python SDK.
|
|
5
|
+
Project-URL: Homepage, https://channelstack.dev
|
|
6
|
+
Project-URL: Documentation, https://channelstack.dev/docs
|
|
7
|
+
Project-URL: Repository, https://github.com/christian-bromann/channelstack
|
|
8
|
+
Project-URL: Issues, https://github.com/christian-bromann/channelstack/issues
|
|
9
|
+
Project-URL: Changelog, https://github.com/christian-bromann/channelstack/blob/main/CHANGELOG.md
|
|
10
|
+
License-Expression: MIT
|
|
11
|
+
License-File: LICENSE
|
|
12
|
+
Keywords: agents,email,fake,github,linear,notion,slack,test-harness,testing
|
|
13
|
+
Classifier: Development Status :: 3 - Alpha
|
|
14
|
+
Classifier: Intended Audience :: Developers
|
|
15
|
+
Classifier: Operating System :: OS Independent
|
|
16
|
+
Classifier: Programming Language :: Python :: 3
|
|
17
|
+
Classifier: Programming Language :: Python :: 3 :: Only
|
|
18
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
19
|
+
Classifier: Programming Language :: Python :: 3.13
|
|
20
|
+
Classifier: Topic :: Software Development :: Testing
|
|
21
|
+
Classifier: Typing :: Typed
|
|
22
|
+
Requires-Python: >=3.12
|
|
23
|
+
Requires-Dist: httpx<1,>=0.28.1
|
|
24
|
+
Description-Content-Type: text/markdown
|
|
25
|
+
|
|
26
|
+
# channelstack for Python
|
|
27
|
+
|
|
28
|
+
The Python SDK of [channelstack](https://channelstack.dev), 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.
|
|
29
|
+
|
|
30
|
+
For tests, use [pytest-channelstack](https://pypi.org/project/pytest-channelstack/), which is built on this SDK.
|
|
31
|
+
|
|
32
|
+
## Install
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
pip install channelstack
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
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](https://github.com/christian-bromann/channelstack/releases).
|
|
39
|
+
|
|
40
|
+
## Example
|
|
41
|
+
|
|
42
|
+
```python
|
|
43
|
+
import asyncio
|
|
44
|
+
|
|
45
|
+
from channelstack import connect
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
async def main() -> None:
|
|
49
|
+
async with await connect(mode="auto") as client:
|
|
50
|
+
async with await client.open_session(name="example") as session:
|
|
51
|
+
slack = await session.slack()
|
|
52
|
+
ana = await slack.create_user(name="Ana")
|
|
53
|
+
channel = await slack.create_channel(participants=[ana, slack.app])
|
|
54
|
+
|
|
55
|
+
msg = await ana.say("@my-agent hi", channel=channel)
|
|
56
|
+
reply = await msg.thread.wait_for_reply(from_="my-agent")
|
|
57
|
+
print(reply.text)
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
if __name__ == "__main__":
|
|
61
|
+
asyncio.run(main())
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
## Links
|
|
65
|
+
|
|
66
|
+
- [Documentation](https://channelstack.dev/docs), and [the SDKs](https://channelstack.dev/docs/reference/sdks)
|
|
67
|
+
- [Source, issues and changelog](https://github.com/christian-bromann/channelstack)
|
|
68
|
+
|
|
69
|
+
MIT licensed.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# channelstack for Python
|
|
2
|
+
|
|
3
|
+
The Python SDK of [channelstack](https://channelstack.dev), 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.
|
|
4
|
+
|
|
5
|
+
For tests, use [pytest-channelstack](https://pypi.org/project/pytest-channelstack/), which is built on this SDK.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
pip install channelstack
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
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](https://github.com/christian-bromann/channelstack/releases).
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```python
|
|
18
|
+
import asyncio
|
|
19
|
+
|
|
20
|
+
from channelstack import connect
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
async def main() -> None:
|
|
24
|
+
async with await connect(mode="auto") as client:
|
|
25
|
+
async with await client.open_session(name="example") as session:
|
|
26
|
+
slack = await session.slack()
|
|
27
|
+
ana = await slack.create_user(name="Ana")
|
|
28
|
+
channel = await slack.create_channel(participants=[ana, slack.app])
|
|
29
|
+
|
|
30
|
+
msg = await ana.say("@my-agent hi", channel=channel)
|
|
31
|
+
reply = await msg.thread.wait_for_reply(from_="my-agent")
|
|
32
|
+
print(reply.text)
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
if __name__ == "__main__":
|
|
36
|
+
asyncio.run(main())
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Links
|
|
40
|
+
|
|
41
|
+
- [Documentation](https://channelstack.dev/docs), and [the SDKs](https://channelstack.dev/docs/reference/sdks)
|
|
42
|
+
- [Source, issues and changelog](https://github.com/christian-bromann/channelstack)
|
|
43
|
+
|
|
44
|
+
MIT licensed.
|