Skip to main content

Python SDK for dispatcher business and proxy APIs

Project description

aiyou-client

Reusable async clients for dispatcher APIs.

Response Model

Low-level verbs such as get(), post(), put(), patch(), delete(), and send() return a transparent ResultResponse wrapper.

The wrapper behaves like httpx.Response for normal access such as status_code, headers, content, text, json(), request, and stream-reading helpers, while also providing convenience methods:

  • with_config(model=..., rc_response=...)
  • json_or_none() / json_or_raise()
  • text_or_none() / text_or_raise()
  • content_or_none() / content_or_raise()
  • rc_result_or_none() / rc_result_or_raise()
  • pydantic_or_none() / pydantic_or_raise()

Use *_or_none() for soft-failure flows and *_or_raise() when the caller expects success. For list payloads, pass model=list[YourModel].

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiyou_client-0.3.0.tar.gz (107.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiyou_client-0.3.0-py3-none-any.whl (90.9 kB view details)

Uploaded Python 3

File details

Details for the file aiyou_client-0.3.0.tar.gz.

File metadata

  • Download URL: aiyou_client-0.3.0.tar.gz
  • Upload date:
  • Size: 107.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for aiyou_client-0.3.0.tar.gz
Algorithm Hash digest
SHA256 74549d3fc382286f0855b9db557f23df98a7d992ad573ac2596deec37d2f7822
MD5 09e4549a1cadf81f673559e863fcc82b
BLAKE2b-256 fc5232f1e5036585d253e14b29f862fae2a8d28ff4b129515fb70d233fd7f06b

See more details on using hashes here.

File details

Details for the file aiyou_client-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: aiyou_client-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 90.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.30 {"installer":{"name":"uv","version":"0.9.30","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for aiyou_client-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 945a0a5e725549b6669d556a5b70f64f35014a8db745eecae2fc9d5b1d7edf77
MD5 4db5696aa7b051b09dd11bca83fc58f6
BLAKE2b-256 8c15bf4b123e3c3bd1387b61dd826e6b8b28564be1a56e90cb2c195e11c8d80e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page