skillfed

linq-python

The official Python library for the linq-api-v3 API

linq-python v0.24.1 162.3K downloads/30d#10,610 on PyPI0
Permissive license Apache-2.0 Active released

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-python

uv

uv add linq-python

poetry

poetry add linq-python

Installing 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

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

linq api python clientrest api sdk pythonasync http client librarytyped api wrappermessaging api pythonpydantic rest client
rest-api-clientasync-supporttype-safe

More Python Modules packages