Alchemyst AI API v1 documentation SDK
The Alchemyst AI API v1 documentation SDK for Python provides access to the Alchemyst AI API v1 documentation REST APIs from Python applications.
v1 API documentation for Alchemyst AI
Installation
Install the Python SDK from PyPI, with whichever package manager your project uses:
pip install alch-apimatic-sdk
uv add alch-apimatic-sdk
poetry add alch-apimatic-sdk
Quick Start
Synchronous client
Construct AlchemystAiApiV1DocumentationClient with keyword arguments, and call close() when you are done. Every argument is optional; the full list is in the SDK map.
from alchemyst_ai_api_v1_documentation import AlchemystAiApiV1DocumentationClient
client = AlchemystAiApiV1DocumentationClient(bearer_auth="YOUR_BEARER_TOKEN")
# TODO: call endpoints here -- see api-reference.md
client.close()
Alternatively, scope it -- with AlchemystAiApiV1DocumentationClient(...) as client: closes the pool on exit; see Best Practices.
Client is exported as an alias of AlchemystAiApiV1DocumentationClient, so from alchemyst_ai_api_v1_documentation import Client also works.
The SDK accepts every model-typed input in two interchangeable spellings, both type-checked: the typed model, or a plain dict with the same keys -- the OrDict and Model | ModelDict unions in the SDK map. Pick whichever suits the call site: the dict form needs no import, while the model form adds a keyword-checked constructor and editor completion.
Asynchronous client
AsyncAlchemystAiApiV1DocumentationClient mirrors AlchemystAiApiV1DocumentationClient with identical method names, and every endpoint method is a coroutine. It takes the same arguments, with some differences -- for example, the transport argument is custom_async_http_client.
from asyncio import run
from alchemyst_ai_api_v1_documentation import AsyncAlchemystAiApiV1DocumentationClient
async def main() -> None:
client = AsyncAlchemystAiApiV1DocumentationClient(bearer_auth="YOUR_BEARER_TOKEN")
# TODO: call endpoints here, awaiting each -- see api-reference.md
await client.aclose()
run(main())
Alternatively, scope it -- async with AsyncAlchemystAiApiV1DocumentationClient(...) as client: closes the pool on exit. Only the async spelling is aclose, matching httpx; see Best Practices.
AsyncClient is the exported alias. Each client accepts only its own transport argument; passing the other's is a TypeError at runtime and an error under mypy.
Usage
Two generated references cover the SDK; each answers a different question:
| Reference | For |
|---|---|
| API Reference | Usage guidance for a single parsed operation: client.<group>.<operation>(...) returns the typed payload and raises ApiError on any non-2xx, with .error the typed error body, or RawError for a status the operation does not document. |
| Raw API Reference | The same for the raw variant: client.<group>.with_raw_response.<operation>(...) returns ApiResult[T, E] and never raises for an API error. |
Both API references carry every one of the 18 operations, with a sync and an async sample and a parameter table each.
SDK map
This SDK ships a generated SDK map -- sdk-map.md -- a deterministic, lookup-oriented table of contents of the SDK's Python surface, generated by APIMatic alongside this SDK.
Consult the map before scanning or grepping the source: it answers call-level contract questions by lookup, and for anything it does not carry -- model shapes, enum values, an endpoint's route or behavioural prose -- it names the one source file to read. How to read the map itself, including the SDK-wide defaults its rows rely on, is stated at the top of sdk-map.md.
Best Practices
Match the disposal to the client's lifetime: an application-lifetime client is closed once at shutdown with close() / aclose(); where the lifetime fits a block, with AlchemystAiApiV1DocumentationClient() as client: / async with AsyncAlchemystAiApiV1DocumentationClient() as client: releases it automatically. Both are idempotent, but a closed client is not reusable: the next call raises. The client closes whatever transport it holds, including one you supplied via custom_http_client / custom_async_http_client; if you intend to reuse your own transport across clients, don't hand its lifetime to a with block.
License
This SDK is distributed under the MIT License.
Support
Refer to the API reference for detailed information on available operations with code samples.
Release files for alch-apimatic-sdk 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| alch_apimatic_sdk-0.0.1.tar.gz | 116.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| alch_apimatic_sdk-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 312.2 kB
Release files / alch_apimatic_sdk-0.0.1.tar.gz
| Download URL | alch_apimatic_sdk-0.0.1.tar.gz |
|---|---|
| Size | 116.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18ee17423ce8662fadd75db4bddf247b2be34028082457f43a71f54016f9a6b2
|
|
BLAKE2b-256 checksum How to use checksums |
a955610d003abfbffd36ea913a1ca4aee3ee40d1893f24fddcb6f4ce1d094be6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.13.15 Linux/6.1.158.2-microsoft-standard
|
Release files / alch_apimatic_sdk-0.0.1-py3-none-any.whl
| Download URL | alch_apimatic_sdk-0.0.1-py3-none-any.whl |
|---|---|
| Size | 195.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bb179ea9ea0aa137a2e44911f0a47e8ef49c5e9454777697372ef509bdfe3d2c
|
|
BLAKE2b-256 checksum How to use checksums |
93d54f94091b44ea7e81b0867462f64f6ee1ca0f97f89017fffd774b4f612218
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/2.5.1 CPython/3.13.15 Linux/6.1.158.2-microsoft-standard
|