Skip to main content

A Python framework for building high-quality, type-safe API SDKs with comprehensive error handling and retry logic

Project description

Elusion Kit

Elusion Kit Logo

A modern Python framework for building high-quality, type-safe API SDKs with comprehensive error handling and retry logic.

What is Elusion Kit?

Elusion Kit is a framework that provides the infrastructure needed to build professional API SDKs. It handles the common patterns like HTTP clients, authentication, retry logic, error handling, and data validation, so you can focus on implementing your specific API's business logic.

Key Features

  • Type Safe: Full type hints with strict mypy configuration
  • Robust Error Handling: Comprehensive exception hierarchy with detailed context
  • Automatic Retries: Configurable retry strategies with exponential backoff
  • Flexible Authentication: Extensible authentication patterns for any API
  • Modern Python: Built for Python 3.13+ with latest features
  • Well Tested: High test coverage with comprehensive test utilities
  • Developer Friendly: Meaningful naming patterns and clear abstractions

Quick Start

from elusion._core import BaseServiceClient, HTTPClient
from elusion._core.authentication import APIKeyAuthenticator
from elusion._core.configuration import ClientConfiguration, ServiceSettings

class MySDKClient(BaseServiceClient):
    def __init__(self, api_key: str):
        config = ClientConfiguration(timeout=30.0, max_retries=3)
        settings = ServiceSettings(base_url="https://api.example.com")
        authenticator = APIKeyAuthenticator(api_key)

        super().__init__(
            config=config,
            service_settings=settings,
            authenticator=authenticator
        )

    def _get_service_name(self) -> str:
        return "MyAPI"

    def _get_base_url(self) -> str:
        return "https://api.example.com"

# Usage
client = MySDKClient("your-api-key")

Installation

pip install elusion-kit

Documentation

Who Should Use Elusion Kit?

  • SDK Developers: Building client libraries for REST APIs
  • API Providers: Creating official SDKs for your services
  • Enterprise Teams: Standardizing API client patterns across projects
  • Open Source Maintainers: Building high-quality community SDKs

Example SDKs Built with Elusion

Contributing

We welcome contributions! Please see our Contributing Guide for details.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Support

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

elusion_kit-0.0.3.tar.gz (30.5 kB view details)

Uploaded Source

Built Distribution

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

elusion_kit-0.0.3-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file elusion_kit-0.0.3.tar.gz.

File metadata

  • Download URL: elusion_kit-0.0.3.tar.gz
  • Upload date:
  • Size: 30.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for elusion_kit-0.0.3.tar.gz
Algorithm Hash digest
SHA256 46cdd4c5970da851f3d5687095c67ff2fd6ad95bab3de6a6f00156f7b233b03e
MD5 1e7afb78ec0475e880c6fe81554b526a
BLAKE2b-256 117ebe883c751d1e62c7b9f0fddcaafa1f4169fea5676186791e10a4726260dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for elusion_kit-0.0.3.tar.gz:

Publisher: release.yaml on elusionhub/elusion-kit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file elusion_kit-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: elusion_kit-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for elusion_kit-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e361002e0b571faa38523ae39c5d9b053ea7dc6ae806b4e03250cafd8c3e0e5e
MD5 359b141552d441784c5ac66f64600b51
BLAKE2b-256 381d10d83df498f0bca01a85bfd1449f50891bb4912899874fccb7d7acbf7a48

See more details on using hashes here.

Provenance

The following attestation bundles were made for elusion_kit-0.0.3-py3-none-any.whl:

Publisher: release.yaml on elusionhub/elusion-kit

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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