linq-python
The official Python library for the linq-api-v3 API
What it is and what it does
linq-python is an officially maintained Python SDK for the Linq API V3, a REST API for messaging and chat operations. It wraps the Linq API with type-safe request and response models built on Pydantic, offering both synchronous (LinqAPIV3) and asynchronous (AsyncLinqAPIV3) clients powered by httpx. The library handles pagination automatically, includes built-in retry logic for transient failures, and provides detailed error types for different HTTP status codes.
The SDK is designed for Python 3.9+ applications that need to send messages, create chats, or interact with Linq's messaging infrastructure. It supports nested typed parameters, serialization helpers (to_json, to_dict), and optional aiohttp backend for async workloads. All types are exposed for IDE autocomplete and type checking.
Use it for:
- Build a messaging application that sends SMS or chat messages via the Linq API with full type safety and IDE support.
- Integrate Linq chat functionality into an async web service or background job runner using AsyncLinqAPIV3.
- Fetch and iterate through paginated lists of chats without manually handling pagination logic.
- Handle API errors gracefully by catching specific exception types (RateLimitError, AuthenticationError, etc.).
- Use the optional aiohttp backend for high-concurrency scenarios requiring many simultaneous API calls.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
A Python SDK for the Linq API V3 REST API, providing type-safe synchronous and asynchronous clients with automatic pagination and built-in error handling.
Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and offers a clean, type-safe interface to the Linq API. It is suitable for production use if you need to integrate Linq messaging into a Python application. The Apache-2.0 license is permissive and the SDK supports current Python versions (3.9+).
Install
linq-python on PyPI
pip
pip install linq-pythonuv
uv add linq-pythonpoetry
poetry add linq-pythonInstalling linq-python
Before you install
Low friction install with a pure-Python wheel and six standard dependencies. Active maintenance with a recent release and no known vulnerabilities.
License in practice
Apache-2.0 permissive license allows commercial and private use with minimal restrictions; suitable for most projects.
Quickstart
pip install linq-python
import os
from linq import LinqAPIV3
client = LinqAPIV3(
api_key=os.environ.get("LINQ_API_V3_API_KEY"),
)
chat = client.chats.create(
from_="+12052535597",
message={},
to=["+12052532136"],
)
print(chat.chat)
Requires LINQ_API_V3_API_KEY environment variable or explicit api_key parameter to authenticate with the Linq API.
Verify before relying
- Whether the optional aiohttp backend provides measurable concurrency improvements over the default httpx for typical workloads.
- Rate limit and timeout defaults and whether they suit typical messaging or chat API patterns.
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 — 0 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 162,268/month — #10,610 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: linq_python-0.24.1-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
opencode-aiProvides a Python client library for the…
permissive · top 15,000 on PyPI
telnyxProvides a Python client library for the Telnyx…
permissive · top 15,000 on PyPI
composio-clientA Python client library for the Composio REST…
permissive · top 5,000 on PyPI
agentex-clientProvides a typed Python REST client for the…
permissive · top 15,000 on PyPI
groqProvides a Python client library for accessing…
permissive · top 1,000 on PyPI
supermemoryProvides a Python client library for the…
permissive · top 15,000 on PyPI
hiddenlayer-sdkProvides a typed Python client for the…
permissive · top 15,000 on PyPI
letta-clientProvides a Python client library for the Letta…
permissive · top 15,000 on PyPI
cloudflareProvides a Python client library for the…
permissive · top 5,000 on PyPI
steel-sdkProvides a typed Python client for the Steel…
permissive · top 15,000 on PyPI