Skip to main content

Shared transport, auth, error handling and formatting for iApp AI Marketplace clients (https://iapp.co.th)

Project description

iapp-core

Shared internal core for the iApp AI Marketplace Python clients. It is the single source of truth for talking to api.iapp.co.th: base URL, API-key auth, error handling, response formatting, and both a synchronous and an asynchronous HTTP transport.

You normally do not install this directly. It is a dependency of:

  • iapp-ai — the synchronous Python SDK (from iapp_ai import api)
  • iapp-mcp — the iApp AI Marketplace MCP server

What it provides

from iapp_core import (
    API_BASE, IAppAPIError, status_error_message,
    request_sync,            # requests-based, returns requests.Response
    request_async,           # httpx-based (needs the `async` extra), returns httpx.Response
    format_json_response, truncate_blobs,
    save_binary, save_pcm_as_wav,
    resolve_input_file, resolve_output_path, get_api_key,
)

The async transport requires httpx; install it with the extra:

pip install "iapp-core[async]"

The sync transport only needs requests, which is a base dependency.

License

MIT © iApp Technology Co., Ltd.

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

iapp_core-0.1.0.tar.gz (5.1 kB view details)

Uploaded Source

Built Distribution

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

iapp_core-0.1.0-py3-none-any.whl (6.7 kB view details)

Uploaded Python 3

File details

Details for the file iapp_core-0.1.0.tar.gz.

File metadata

  • Download URL: iapp_core-0.1.0.tar.gz
  • Upload date:
  • Size: 5.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for iapp_core-0.1.0.tar.gz
Algorithm Hash digest
SHA256 15303273e429e4f3b7bc3d31f310af946c374b3947fccff080db8b8a8294bb98
MD5 c6fe036e349f1980993954761f2cf207
BLAKE2b-256 1f73d903d70b6d1bcbb7d306978af12bd5fe40cef7a30eb6d13f510ad897157c

See more details on using hashes here.

File details

Details for the file iapp_core-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: iapp_core-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.7.19

File hashes

Hashes for iapp_core-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 19e10b6264ff62ea5238bfa345bc54451a7bae2713bffc6dcb75bf89e0217854
MD5 cb3ef163ef6bd22fed49d766f5d0eb1c
BLAKE2b-256 f30a9799813cede3c6e94529018882267afdb130a37e0938daf63a20a793ff49

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