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.2.0.tar.gz (24.6 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.2.0-py3-none-any.whl (22.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiyou_client-0.2.0.tar.gz
  • Upload date:
  • Size: 24.6 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.2.0.tar.gz
Algorithm Hash digest
SHA256 5a9a7ef53412bf67576f05a064ace477af6ba7c1c2ac6c56049e5224d81db211
MD5 cb817cd01fc6e0317701e8116451e747
BLAKE2b-256 9d1764d08709936ba191a8444490b222fd6adf64a2a6165c0249a19084e980f9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiyou_client-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 22.3 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.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6fb8321adc565c2d38ab9c0ee4c6682bf3e12278ea083917963887ec92d5b584
MD5 24ff0ea90e2039eadb8b78b5e1d052e1
BLAKE2b-256 cdcf49bc697df13fcbc1b39dcf1a581f749db8d162c16fe9004d13356af0f412

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