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.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| weflow_sdk-0.9.1.tar.gz | 94.6 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| weflow_sdk-0.9.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 228.4 kB
Release files / weflow_sdk-0.9.1.tar.gz
| Download URL | weflow_sdk-0.9.1.tar.gz |
|---|---|
| Size | 94.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9d0c1765656c8df9504485026fae465a34b18769a50c0ae8ea1d2c247765188b
|
|
BLAKE2b-256 checksum How to use checksums |
f855ad6d78743e206a9974d217f6c1a63ee2a812be3fef2fafffd6a926ab7355
|
| 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 18, 2026.
Transparency logRelease files / weflow_sdk-0.9.1-py3-none-any.whl
| Download URL | weflow_sdk-0.9.1-py3-none-any.whl |
|---|---|
| Size | 133.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
efd22b27ea243cf8413fd426d3fd0804fda0f4c62fa54fffe5049c1980696951
|
|
BLAKE2b-256 checksum How to use checksums |
106e8fbc946828b61c1553602b6215b3b6fd701510391ea75509294723725f5e
|
| 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 18, 2026.
Transparency logSecurity for weflow-sdk 0.9.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.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for weflow_sdk-0.9.1.tar.gz
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 18, 2026.
Transparency logA 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.