Skip to main content

Python SDK for Atheon

Project description

Codex: Python SDK for Atheon

The Atheon Codex Python library provides convenient access to the Atheon Gateway Services from any Python 3.11+ applications. The library includes type definitions for all request params and response fields, and offers both synchronous and asynchronous clients powered by httpx.

Installation

# install from PyPI
pip install atheon-codex

Usage

import os
from atheon_codex import AtheonCodexClient, AtheonUnitCreateModel

client = AtheonCodexClient(
    api_key=os.environ.get("ATHEON_CODEX_API_KEY"),
)

create_payload = AtheonUnitCreateModel(
    query="How can I write blogs for my website?",
    base_content="insert the llm response generated from your application as the base content",
)
result = client.create_atheon_unit(create_payload)

print(result)

Note: You can get your Codex API Key through Atheon Gateway Dashboard under project settings.

While you can provide an api_key keyword argument, we recommend using python-dotenv (or something similar) to add ATHEON_CODEX_API_KEY="My Eon API Key" to your .env file so that your API Key is not stored in source control.

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

atheon_codex-0.6.0.tar.gz (52.0 kB view details)

Uploaded Source

Built Distribution

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

atheon_codex-0.6.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file atheon_codex-0.6.0.tar.gz.

File metadata

  • Download URL: atheon_codex-0.6.0.tar.gz
  • Upload date:
  • Size: 52.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for atheon_codex-0.6.0.tar.gz
Algorithm Hash digest
SHA256 fe51d36576c0e9f187d417fda16e685458744d4db2f117e7cc0e9c214e9daeec
MD5 9d53a8b7a348c6eb23c690c15a54aa5f
BLAKE2b-256 ab78a95c7dae84ff1007f5715b215bdb9e4205ea449428e97b28e66f3e5284e6

See more details on using hashes here.

File details

Details for the file atheon_codex-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: atheon_codex-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for atheon_codex-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b4c1b4f202967a6d84b051bd4a032309e7c4024f1e3fd4d7db82423119adb753
MD5 18b0e95a64bdf607dbf9cd362b7e7324
BLAKE2b-256 ddfdfb1fc14b523a314238c4fd0499f46d84240cf51fcc34ae0eac050a1154af

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