Python SDK

Install and start using the Python SDK.

Intro

The Alchemyst AI API v1 documentation SDK provides access to the Alchemyst AI API v1 documentation REST APIs.

v1 API documentation for Alchemyst AI

Installation

To install the SDK from PyPI, with whichever package manager your project uses:

Terminal
pip install alch-apimatic-sdk
Terminal
uv add alch-apimatic-sdk
Terminal
poetry add alch-apimatic-sdk

To install from the SDK source instead, give the tool a path containing a slash — a bare folder name is looked up on PyPI, and resolves to whatever project holds that name there:

Terminal
pip install <path-to-sdk>

Quick Start

Synchronous client

Construct AlchemystAiApiV1DocumentationClient with keyword arguments, and call close() when you are done. Every argument is optional.

Python
from alchemyst_ai_api_v1_documentation import AlchemystAiApiV1DocumentationClient

client = AlchemystAiApiV1DocumentationClient(bearer_auth="YOUR_BEARER_TOKEN")

client.close()

Alternatively, scope it — with AlchemystAiApiV1DocumentationClient(...) as client: closes the pool on exit.

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.

Python
from asyncio import run

from alchemyst_ai_api_v1_documentation import AsyncAlchemystAiApiV1DocumentationClient


async def main() -> None:
    client = AsyncAlchemystAiApiV1DocumentationClient(bearer_auth="YOUR_BEARER_TOKEN")
    await client.aclose()


run(main())

Alternatively, scope it — async with AsyncAlchemystAiApiV1DocumentationClient(...) as client: closes the pool on exit.

On this page