Socket
Book a DemoInstallSign in
Socket

elusion-kit

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

elusion-kit

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

0.0.4
pipPyPI
Maintainers
1

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

  • Getting Started - Build your first SDK
  • Core Concepts - Understanding the framework
  • Configuration - Client and service configuration
  • Authentication - Authentication patterns
  • HTTP Client - Making requests with retry logic
  • Models - Data models and validation
  • Error Handling - Exception handling patterns
  • Testing - Testing your SDKs
  • Examples - Complete SDK examples
  • API Reference - Detailed API 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

Keywords

api-client

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.