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 Ad Service from any Python 3.10+ 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, AtheonUnitFetchAndIntegrateModel

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

fetch_and_integrate_payload = AtheonUnitFetchAndIntegrateModel(
    query="How can I write blogs for my website?",
    base_content="insert the llm response generated from your application as the base content",
    # use_user_intent_as_filter=True,
)
result = client.fetch_and_integrate_atheon_unit(fetch_and_integrate_payload)

print(result)

Note: You can enable monetization 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.5.0.tar.gz (55.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.5.0-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: atheon_codex-0.5.0.tar.gz
  • Upload date:
  • Size: 55.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"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.5.0.tar.gz
Algorithm Hash digest
SHA256 6fd5ba9391a697c10b2deb065c6d28e6a7e8e40bb15fe30828782e6d9385ee60
MD5 90c7f928f9634547d91a55ef7fd5f1a7
BLAKE2b-256 a9fb8a1ced5f6305a81ef1581b6ef32ed00cbe1f4ecbb96466d44fb104bea26c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: atheon_codex-0.5.0-py3-none-any.whl
  • Upload date:
  • Size: 10.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.9.9 {"installer":{"name":"uv","version":"0.9.9"},"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.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 28e0327667e7b1bfccc3c98896acd131f5d819aefb79b09951af65dfd7a743c5
MD5 8425fa8a631f07f5070dc16e72d8a961
BLAKE2b-256 b389b2f54d42657d57d01014e2de2592d14e1cf81a22fc78907684b09068e13d

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