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

limitry.client.Client

Main client for interacting with the Limitry API

limitry.client.ClientConfig

Configuration for the Limitry SDK client

Resources

limitry.client.Customers

Operations for customers.

limitry.client.Events

Operations for events.

limitry.client.Project

Operations for project.

limitry.client.QuotaAlerts

Operations for quotaalerts.

limitry.client.Quotas

Operations for quotas.

limitry.client.RateLimits

Operations for ratelimits.

limitry.client.Track

Operations for track.

limitry.client.Usage

Operations for usage.

Exceptions

limitry.client.LimitryError

Base exception for all Limitry SDK errors

limitry.client.APIError

Exception raised when an API request fails

limitry.client.AuthenticationError

Exception raised when authentication fails (401/403)

limitry.client.NetworkError

Exception raised when a network error occurs

Pagination

limitry.client.PaginatedResponse

Response from a paginated API endpoint

limitry.client.paginate_all

Iterator helper for auto-pagination.

limitry.client.collect_all

Collect all items from paginated endpoint into a list.