The Limitly Python SDK provides a simple and powerful way to integrate rate limiting into your Python application.Documentation Index
Fetch the complete documentation index at: https://docs.limitly.dev/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Pip
Poetry
Pipenv
Requirements
- Python 3.8 or higher
- requests >= 2.25.0
Basic Setup
Import and initialize the SDK:Configuration Options
The SDK accepts the following configuration options:Your Limitly API key. You can find this in your Limitly dashboard.
The base URL for the Limitly API. Defaults to
https://api.limitly.dev.Request timeout in seconds. Defaults to 30 seconds.
Example Configuration
Environment Variables
For security, store your API key in environment variables:Async Support
The Python SDK supports both synchronous and asynchronous operations:CLI Tool
The SDK includes a command-line interface for testing and management:Development Installation
For development and testing:Type Hints
The SDK includes comprehensive type hints for better IDE support:Next Steps
- Authentication - Learn how to authenticate with the API
- Request Validation - Validate user requests
- Middleware - Use middleware for web frameworks
- API Key Management - Manage API keys for your users

