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()
  • pydantic_list_or_none() / pydantic_list_or_raise()

Use *_or_none() for soft-failure flows and *_or_raise() when the caller expects success.

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.1.1.tar.gz (12.3 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.1.1-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiyou_client-0.1.1.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for aiyou_client-0.1.1.tar.gz
Algorithm Hash digest
SHA256 22d1c159ffda1ed154ad845a0a123a3262d60b66182f3df4efe5797570be1bfa
MD5 bcdd0b0acc47f4314eb331ea18fc60bc
BLAKE2b-256 87220fec278e657f5abbf7b9ca296398af511e2b7b5120827d30f93c333cc9b8

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiyou_client-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.0 {"installer":{"name":"uv","version":"0.11.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for aiyou_client-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f63cff08ab39187ec93f1a17033a1998d745b0ae33b5cb887badf9e8968e7d2
MD5 4dcc94bd93d66e6bb370ee0f70936f4e
BLAKE2b-256 8ba8c39d7b0ecad8c230ae56a469782b91ebfdaa93f5a6f9be6e721bb6170508

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