Python SDK

Python library for server-side integration

Python SDK

Async-first Python library for server-side integration.

Installation

pip install aethex
# or with poetry
poetry add aethex

Configuration

from aethex import AeThex

client = AeThex(
    project_id="your-project-id",
    api_key="your-api-key"
)

Async Usage

import asyncio
from aethex import AsyncAeThex

async def main():
    client = AsyncAeThex(
        project_id="your-project-id",
        api_key="your-api-key"
    )
    
    user = await client.identity.get_profile()
    print(f"Hello, {user.display_name}")

asyncio.run(main())

Django Integration

# settings.py
AETHEX_PROJECT_ID = "your-project-id"
AETHEX_API_KEY = "your-api-key"

# views.py
from aethex.django import aethex_client

def profile_view(request):
    user = aethex_client.identity.get_user(request.user.aethex_id)
    return render(request, 'profile.html', {'user': user})