Client¶
The Limitry API client for making requests to the Limitry platform.
Installation¶
pip install limitry
Quick Start¶
from limitry.client import Client
client = Client(api_key="limitry_sk_...")
# Get project info
project = client.project.get()
# Track usage
client.track.usage("customer_123", "api_calls", 1)
Client¶
Main client for interacting with the Limitry API |
|
Configuration for the Limitry SDK client |
Resources¶
Operations for customers. |
|
Operations for events. |
|
Operations for project. |
|
Operations for quotaalerts. |
|
Operations for quotas. |
|
Operations for ratelimits. |
|
Operations for track. |
|
Operations for usage. |
Exceptions¶
Base exception for all Limitry SDK errors |
|
Exception raised when an API request fails |
|
Exception raised when authentication fails (401/403) |
|
Exception raised when a network error occurs |
Pagination¶
Response from a paginated API endpoint |
|
Iterator helper for auto-pagination. |
|
Collect all items from paginated endpoint into a list. |