chattolib 0.0.149a0__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.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 Felix
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,62 @@
1
+ Metadata-Version: 2.4
2
+ Name: chattolib
3
+ Version: 0.0.149a0
4
+ Summary: Async Python client library for the Chatto webchat GraphQL API
5
+ Author-email: Felix <chatto@f3l1x.it>
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://chat.chatto.run
8
+ Keywords: chatto,graphql,async,webchat,client
9
+ Classifier: Development Status :: 3 - Alpha
10
+ Classifier: Intended Audience :: Developers
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Programming Language :: Python :: 3.11
13
+ Classifier: Programming Language :: Python :: 3.12
14
+ Classifier: Programming Language :: Python :: 3.13
15
+ Classifier: Topic :: Communications :: Chat
16
+ Classifier: Framework :: AsyncIO
17
+ Requires-Python: >=3.11
18
+ Description-Content-Type: text/markdown
19
+ License-File: LICENSE
20
+ Requires-Dist: httpx>=0.27
21
+ Requires-Dist: websockets>=13.0
22
+ Provides-Extra: dev
23
+ Requires-Dist: pytest>=8.0; extra == "dev"
24
+ Requires-Dist: pytest-asyncio>=0.24; extra == "dev"
25
+ Requires-Dist: respx>=0.22; extra == "dev"
26
+ Requires-Dist: ruff>=0.8; extra == "dev"
27
+ Requires-Dist: mypy>=1.13; extra == "dev"
28
+ Dynamic: license-file
29
+
30
+ # chattolib
31
+
32
+ **Unofficial** async Python client library for the [Chatto](https://chat.chatto.run) webchat GraphQL API.
33
+
34
+ > **Pre-alpha** — API may change without notice. Use at your own risk.
35
+
36
+ ## Install
37
+
38
+ ```bash
39
+ pip install chattolib
40
+ ```
41
+
42
+ ## Quick start
43
+
44
+ ```python
45
+ import asyncio
46
+ from chattolib import ChattoClient
47
+
48
+ async def main():
49
+ async with await ChattoClient.login("username", "password") as client:
50
+ me = await client.me()
51
+ print(f"Logged in as {me.display_name}")
52
+
53
+ spaces = await client.spaces()
54
+ for space in spaces:
55
+ print(f" - {space.name}")
56
+
57
+ asyncio.run(main())
58
+ ```
59
+
60
+ ## License
61
+
62
+ MIT
@@ -0,0 +1,33 @@
1
+ # chattolib
2
+
3
+ **Unofficial** async Python client library for the [Chatto](https://chat.chatto.run) webchat GraphQL API.
4
+
5
+ > **Pre-alpha** — API may change without notice. Use at your own risk.
6
+
7
+ ## Install
8
+
9
+ ```bash
10
+ pip install chattolib
11
+ ```
12
+
13
+ ## Quick start
14
+
15
+ ```python
16
+ import asyncio
17
+ from chattolib import ChattoClient
18
+
19
+ async def main():
20
+ async with await ChattoClient.login("username", "password") as client:
21
+ me = await client.me()
22
+ print(f"Logged in as {me.display_name}")
23
+
24
+ spaces = await client.spaces()
25
+ for space in spaces:
26
+ print(f" - {space.name}")
27
+
28
+ asyncio.run(main())
29
+ ```
30
+
31
+ ## License
32
+
33
+ MIT
@@ -0,0 +1,61 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68.0"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "chattolib"
7
+ version = "0.0.149a0"
8
+ description = "Async Python client library for the Chatto webchat GraphQL API"
9
+ requires-python = ">=3.11"
10
+ license = "MIT"
11
+ readme = "README.md"
12
+ authors = [
13
+ { name = "Felix", email = "chatto@f3l1x.it" },
14
+ ]
15
+ keywords = ["chatto", "graphql", "async", "webchat", "client"]
16
+ classifiers = [
17
+ "Development Status :: 3 - Alpha",
18
+ "Intended Audience :: Developers",
19
+ "Programming Language :: Python :: 3",
20
+ "Programming Language :: Python :: 3.11",
21
+ "Programming Language :: Python :: 3.12",
22
+ "Programming Language :: Python :: 3.13",
23
+ "Topic :: Communications :: Chat",
24
+ "Framework :: AsyncIO",
25
+ ]
26
+ dependencies = [
27
+ "httpx>=0.27",
28
+ "websockets>=13.0",
29
+ ]
30
+
31
+ [project.urls]
32
+ Homepage = "https://chat.chatto.run"
33
+
34
+ [project.optional-dependencies]
35
+ dev = [
36
+ "pytest>=8.0",
37
+ "pytest-asyncio>=0.24",
38
+ "respx>=0.22",
39
+ "ruff>=0.8",
40
+ "mypy>=1.13",
41
+ ]
42
+
43
+ [tool.setuptools.packages.find]
44
+ where = ["src"]
45
+
46
+ [tool.pytest.ini_options]
47
+ asyncio_mode = "auto"
48
+ testpaths = ["tests"]
49
+
50
+ [tool.ruff]
51
+ target-version = "py311"
52
+ line-length = 100
53
+
54
+ [tool.ruff.lint]
55
+ select = ["E", "F", "I", "N", "W", "UP"]
56
+
57
+ [tool.mypy]
58
+ python_version = "3.11"
59
+ strict = true
60
+ warn_return_any = true
61
+ warn_unused_configs = true
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,11 @@
1
+ """Async Python client library for the Chatto webchat GraphQL API."""
2
+
3
+ from chattolib.client import ChattoClient
4
+ from chattolib.exceptions import ChattoError, ChattoGraphQLError, ChattoAuthError
5
+
6
+ __all__ = [
7
+ "ChattoClient",
8
+ "ChattoError",
9
+ "ChattoGraphQLError",
10
+ "ChattoAuthError",
11
+ ]