Skip to main content

Python SDK for the Axiom protocol — AeThex identity and platform verification

Project description

aethex-axiom-sdk

Python SDK for the Axiom protocol — AeThex's core identity and multi-platform verification layer.

Installation

pip install aethex-axiom-sdk

Quick Start

import asyncio
from aethex_axiom_sdk import AxiomClient, Platform

async def main():
    async with AxiomClient(token="your-jwt-token") as client:
        # Create an identity
        identity = await client.create_identity("Ada Lovelace")
        print(identity.id)

        # Link a platform handle
        link = await client.link_platform(identity.id, Platform.DISCORD, "ada#0001")

        # Complete verification with OAuth token from Discord
        verified = await client.verify_platform(identity.id, Platform.DISCORD, oauth_token)
        print(verified.verified)  # True

        # Check which platforms are verified
        print(identity.verified_platforms)

        # Protocol health
        status = await client.get_protocol_status()
        print(status.status)  # "operational"

asyncio.run(main())

Supported Platforms

Constant Platform
Platform.DISCORD Discord
Platform.ROBLOX Roblox
Platform.STEAM Steam
Platform.XBOX Xbox
Platform.EPIC Epic Games
Platform.GITHUB GitHub

API Reference

Full documentation: https://docs.aethex.tech/axiom-sdk

AxiomClient

Method Description
get_identity(identity_id) Fetch an identity by UUID
list_identities(platform?, verified_only?, limit?, offset?) List identities with optional filters
create_identity(display_name) Create a new Axiom identity
delete_identity(identity_id) Permanently delete an identity
link_platform(identity_id, platform, handle) Link a platform handle (unverified)
verify_platform(identity_id, platform, token) Complete platform verification
unlink_platform(identity_id, platform) Remove a platform link
get_protocol_status() Get Axiom protocol operational status

Error Handling

from aethex_axiom_sdk.exceptions import (
    AxiomAuthError,
    AxiomNotFoundError,
    AxiomRateLimitError,
    AxiomVerificationError,
)

try:
    await client.verify_platform(identity_id, Platform.DISCORD, token)
except AxiomVerificationError:
    print("Token invalid or expired")
except AxiomNotFoundError:
    print("No pending link for that platform")
except AxiomAuthError:
    print("JWT token invalid or expired")
except AxiomRateLimitError as e:
    print(f"Rate limited — retry in {e.retry_after}s")

Requirements

  • Python 3.10+
  • httpx >= 0.27
  • pydantic >= 2.0

License

See LICENSE.

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

aethex_axiom_sdk-0.1.0.tar.gz (12.0 kB view details)

Uploaded Source

Built Distribution

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

aethex_axiom_sdk-0.1.0-py3-none-any.whl (10.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aethex_axiom_sdk-0.1.0.tar.gz
  • Upload date:
  • Size: 12.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","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 aethex_axiom_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 336736e6df7a037f0d06c3fecb44ff225615c42657b4856acf7552a804f5895b
MD5 cfaa5f625ae1990637a23ce77f24da79
BLAKE2b-256 acc503e91577f156410ce5638aa414a0702bf5c32b66375814ed005f5b0e3e84

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aethex_axiom_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.15 {"installer":{"name":"uv","version":"0.11.15","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 aethex_axiom_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d567dea46608f0dc947e0d20b2111ac2a81954c086cd031f1def935b1561e258
MD5 d6e99c2d10e689a39ba81b5693a6dd5c
BLAKE2b-256 03b5f250dd4e48848220399d741d7673198b5beb377ba63d392962e86bd0d318

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