weflow-sdk
Typed Python client for weflow-server — a headless, read-only HTTP/SSE service over local WeChat 4.x chat databases.
Generated from the server's OpenAPI description (types + request plumbing), with a handwritten behavior layer on top: transport failures folded into a proper error tree, readiness polling, pagination helpers, SSE streaming, and media download helpers.
Install
pip install weflow-sdk
Minimal example
import asyncio
from weflow_sdk import Client
async def main() -> None:
client = Client(base_url="http://127.0.0.1:5033", token="your-token")
await client.health()
sessions = await client.list_all_sessions()
await client.aclose()
asyncio.run(main())
Scope
The server exposes a strictly read-only surface: accounts, sessions, messages, contacts, group members, SNS timelines, media export, and an SSE push stream. This client covers all of it except the SNS timelines — the server has those endpoints, the generated layer does not wrap them yet, so reach for plain HTTP if you need them (the gap is deliberate, not silent: the contract pins the surface this client is tested against). See the server repository for the API reference.
License
MIT
Metadata
Release files for weflow-sdk 0.9.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| weflow_sdk-0.9.0.tar.gz | 90.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| weflow_sdk-0.9.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 219.5 kB
Release files / weflow_sdk-0.9.0.tar.gz
| Download URL | weflow_sdk-0.9.0.tar.gz |
|---|---|
| Size | 90.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1ac8b21d992c9131ac11ee483bfe0332b1b3ddb31e63668705254688e4d976fe
|
|
BLAKE2b-256 checksum How to use checksums |
3110ac87fbc0ee081d3ae5747999bc756f09aeeacb6afdeb900af10d4e6f702b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.
Transparency logRelease files / weflow_sdk-0.9.0-py3-none-any.whl
| Download URL | weflow_sdk-0.9.0-py3-none-any.whl |
|---|---|
| Size | 129.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4540f6286b103a0314b03418f984aafe94ec69ebe9eeffaf99211fbb7817459a
|
|
BLAKE2b-256 checksum How to use checksums |
c01539cd2194a10e28db78b466f05cd67b2615dbf0245359a9ffe1f4c5c3378e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
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.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 11, 2026.
Transparency log