Skip to main content

qqflow-sdk

Typed Python client for qqflow-server, a read-only HTTP/SSE service over local QQ NT databases.

Install

pip install qqflow-sdk

Minimal example

import asyncio

from qqflow_sdk import Client


async def main() -> None:
    client = Client(base_url="http://127.0.0.1:5032", token="<token>")
    await client.health()
    sessions = await client.list_all_sessions()
    await client.aclose()

asyncio.run(main())

SyncClient mirrors Client method-for-method and drives its own private event-loop thread.

Generated and handwritten layers

Types are generated; the behavior layer is handwritten. Never edit generated/ — run python scripts/regen.py.

Scope

Source databases stay read-only. sync refreshes the in-memory index; media export writes local copies.

This client mirrors that surface one-to-one.

Targeted media recovery

Restore one unique message with export_media_by_message(talker, platform_message_id, sender, timestamp).

The result provides the actual mediaId, fileName and credential-free relative mediaUrl.

media_bytes tries the existing filename first. After a 404 it exports the target once and fetches the returned handle once.

  • 404: target or original media missing.
  • 409: ambiguous target or registration changed.
  • 422: no supported local media.
  • 405/501: server lacks targeted export; upgrade it before recovery.

I/O and decode errors propagate. No recent-message search is used.

Metadata

Release files for qqflow-sdk 0.11.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 qqflow-sdk 0.11.0
File Size Uploaded Provenance Actions
qqflow_sdk-0.11.0.tar.gz 99.8 kB With provenance Details for qqflow_sdk-0.11.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for qqflow-sdk 0.11.0
File Interpreter ABI Platform Actions
qqflow_sdk-0.11.0-py3-none-any.whl Python 3 none any Details for qqflow_sdk-0.11.0-py3-none-any.whl

Total release size: 232.7 kB

Release files / qqflow_sdk-0.11.0.tar.gz

Download URL qqflow_sdk-0.11.0.tar.gz
Size 99.8 kB
Tags Source
SHA-256 checksum
How to use checksums
883e61e763c77ad6736bf01eebe93df14531246efa9c51f55fad9ce51bdd548d
BLAKE2b-256 checksum
How to use checksums
fd5b2d8d1a2f2fc4497c028deaf863ae139d53f2fb8dc2fce2994b75f379d1a0
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 Nov 15, 2026.

Transparency log

Release files / qqflow_sdk-0.11.0-py3-none-any.whl

Download URL qqflow_sdk-0.11.0-py3-none-any.whl
Size 132.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0068660724aae56fae0023c857dd2b276a8776ed4638b4b27e1c611ca81c5d5b
BLAKE2b-256 checksum
How to use checksums
4a12e4d59077c59765b6d50bdc4c2950e1ac87bc7515086fb4b55e36f37a0fd4
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 Nov 15, 2026.

Transparency log

Security for qqflow-sdk 0.11.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for qqflow_sdk-0.11.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 Nov 15, 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