skillfed

lithic

The official Python library for the lithic API

lithic v0.125.0 97.6K downloads/30d#13,142 on PyPI52
Permissive license Apache-2.0 Active released

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 lithic

uv

uv add lithic

poetry

poetry add lithic

Installing 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

Intended Audience :: DevelopersLicense :: OSI Approved :: Apache Software LicenseOperating System :: MacOSOperating System :: Microsoft :: WindowsOperating System :: OS IndependentOperating System :: POSIXOperating System :: POSIX :: LinuxProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.9Topic :: Software Development :: Libraries :: Python ModulesTyping :: Typed

Tags

lithic api client pythonpayment card management sdkasync http client wrapperrest api python librarytyped api clientcard issuance sdkwebhook signature verification
payment-apiasync-supporttype-hints

More Python Modules packages