Skip to main content

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())

Need synchronous code? SyncClient mirrors Client method-for-method and drives its own private event-loop thread — it neither hijacks nor requires a loop in your thread:

from weflow_sdk import SyncClient

with SyncClient(base_url="http://127.0.0.1:5033", token="your-token") as client:
    client.health()
    sessions = client.list_all_sessions()

watch_* returns a plain iterator with the same reconnect-replay semantics as the async side.

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.10.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for weflow-sdk 0.10.0
File Size Uploaded Provenance
weflow_sdk-0.10.0.tar.gz 96.3 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for weflow-sdk 0.10.0
File Interpreter ABI Platform
weflow_sdk-0.10.0-py3-none-any.whl Python 3 none any Details

Total release size: 230.8 kB

Release files / weflow_sdk-0.10.0.tar.gz

Download URL weflow_sdk-0.10.0.tar.gz
Size 96.3 kB
Tags Source
SHA-256 checksum
How to use checksums
218acf76c031d36974153efaa15569950aa91debdf0e0094adf4a7f062c68a44
BLAKE2b-256 checksum
How to use checksums
83cac38ff12a03a40e15ddf4251347a96f6a6cc37af6a69f54687f7168952402
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 24, 2026.

Transparency log

Release files / weflow_sdk-0.10.0-py3-none-any.whl

Download URL weflow_sdk-0.10.0-py3-none-any.whl
Size 134.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
58b19d6bbc9a0239fb4706a5102ecfbe21e0352e6303ecfb3a6272f397ec49ef
BLAKE2b-256 checksum
How to use checksums
5135efcee55d1021055d3eeec63eec5a2495ac508543b5d1a55747c5fd01795a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 24, 2026.

Transparency log

Security for weflow-sdk 0.10.0

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.

Select from 2 files

Attestation for weflow_sdk-0.10.0.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 24, 2026.

Transparency log

A 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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page