Kaynağa Gözat

Add README, MIT license, and PyPI long description

README describes chattolib as unofficial, pre-alpha, with a quick start example.
TheCodemancer 6 ay önce
ebeveyn
işleme
c73577aeac
3 değiştirilmiş dosya ile 55 ekleme ve 0 silme
  1. 21 0
      LICENSE
  2. 33 0
      README.md
  3. 1 0
      pyproject.toml

+ 21 - 0
LICENSE

@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 Felix
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.

+ 33 - 0
README.md

@@ -0,0 +1,33 @@
+# chattolib
+
+**Unofficial** async Python client library for the [Chatto](https://chat.chatto.run) webchat GraphQL API.
+
+> **Pre-alpha** — API may change without notice. Use at your own risk.
+
+## Install
+
+```bash
+pip install chattolib
+```
+
+## Quick start
+
+```python
+import asyncio
+from chattolib import ChattoClient
+
+async def main():
+    async with await ChattoClient.login("username", "password") as client:
+        me = await client.me()
+        print(f"Logged in as {me.display_name}")
+
+        spaces = await client.spaces()
+        for space in spaces:
+            print(f"  - {space.name}")
+
+asyncio.run(main())
+```
+
+## License
+
+MIT

+ 1 - 0
pyproject.toml

@@ -8,6 +8,7 @@ version = "0.1.0"
 description = "Async Python client library for the Chatto webchat GraphQL API"
 requires-python = ">=3.11"
 license = "MIT"
+readme = "README.md"
 authors = [
     { name = "Felix", email = "chatto@f3l1x.it" },
 ]