lithic
The official Python library for the lithic API
What it is and what it does
Lithic is the official Python SDK for the Lithic card issuance and payment API. It wraps the REST API with full type annotations, offering both synchronous and asynchronous clients powered by httpx. The library handles authentication via environment variables, provides auto-paginating iterators for list operations, and includes webhook parsing and signature verification.
The package is designed for developers building payment and card management features. It includes typed request parameters and Pydantic response models, supports nested parameters as TypedDicts, and offers helper methods for serialization. An optional aiohttp backend is available for improved async concurrency, and webhook verification requires the optional standardwebhooks package.
Use it for:
- Create and manage single-use or physical payment cards programmatically in a sandbox or production environment.
- Iterate through paginated card lists automatically without manually handling page cursors or successive requests.
- Parse and verify incoming webhook events from Lithic with signature validation for event-driven workflows.
- Build async-first payment applications using AsyncLithic with optional aiohttp for high-concurrency scenarios.
- Integrate card issuance into web frameworks with full type hints for IDE autocomplete and type checking.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a typed Python client for the Lithic REST API, supporting both synchronous and asynchronous card management and payment operations with automatic pagination and webhook handling.
Yes. This is the official Lithic SDK with active maintenance, low install friction, permissive licensing, no known vulnerabilities, and solid popularity. Install it if you need to integrate Lithic's card issuance or payment API into a Python application.
Install
lithic on PyPI
pip
pip install lithicuv
uv add lithicpoetry
poetry add lithicInstalling lithic
Before you install
Low friction installation with standard dependencies. Actively maintained with recent releases; repository shows consistent activity and no archived status.
License in practice
Apache-2.0 permissive license allows commercial use, modification, and distribution with minimal restrictions—suitable for most projects.
Quickstart
pip install lithic
import os
from lithic import Lithic
client = Lithic(api_key=os.environ.get("LITHIC_API_KEY"), environment="sandbox")
card = client.cards.create(type="SINGLE_USE")
print(card.token)
Requires Python 3.9 or later and a valid Lithic API key set via LITHIC_API_KEY environment variable.
Verify before relying
- Whether the MCP Server integration is production-ready or still experimental.
- Performance characteristics when handling high-volume pagination across large result sets.
- Whether aiohttp backend provides measurable concurrency improvement for typical workloads.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.9) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 6 — anyio, distro, httpx, pydantic, sniffio, typing-extensions |
| Maintenance | actively maintained — 79 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 97,609/month — #13,142 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: lithic-0.125.0-py3-none-any.whl
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
hiddenlayer-sdkProvides a typed Python client for the…
permissive · top 15,000 on PyPI
modern-treasuryProvides a typed Python client library for the…
permissive · top 15,000 on PyPI
dodopaymentsProvides a Python client library for the Dodo…
permissive · top 15,000 on PyPI
agentex-clientProvides a typed Python REST client for the…
permissive · top 15,000 on PyPI
svixSvix is a Python client library for the Svix…
permissive · top 5,000 on PyPI
llama-api-clientProvides a typed Python client for the Llama…
permissive · top 15,000 on PyPI
telnyxProvides a Python client library for the Telnyx…
permissive · top 15,000 on PyPI
orb-billingA Python client library for the Orb billing…
permissive · top 5,000 on PyPI
composio-clientA Python client library for the Composio REST…
permissive · top 5,000 on PyPI
opencode-aiProvides a Python client library for the…
permissive · top 15,000 on PyPI