Skip to main content

Plynt

Plynt is a modular, framework-agnostic Python library for building external API clients and services.

Plynt focuses on a stable integration foundation:

  • framework-agnostic design
  • sync and async support from one codebase
  • explicit configuration and minimal hidden behavior
  • typed settings and reusable middleware patterns

Installation

Supports Python 3.12-3.15 on Linux. Django/DRF extras require Django 6.1.

pip install plynt

Optional extras:

pip install "plynt[httpx]"       # httpx2 transport
pip install "plynt[salesforce]"  # Salesforce REST connector

Canonical extras matrix

Extra Installs Typical use
httpx httpx2 transport backend Core HTTP transport for sync and async clients
grpc gRPC and protobuf runtimes Async gRPC clients and transports
django Django adapter support + httpx2 Django integration helpers and cache adapters
drf DRF adapter support + Django + httpx2 DRF service mixins and exception mapping patterns
fastapi FastAPI adapter support + httpx2 FastAPI dependency wiring for plynt clients
salesforce HTTP, signing, validation, Avro REST, bulk, AI; combine with grpc for CDC

Install plynt[grpc,salesforce] for experimental CDC support, including vendored Pub/Sub messages and the Avro decoder. Real Salesforce-org validation is still required before production CDC use.

Public API surface

Plynt treats package exports in plynt.base and plynt.http as the main public contract boundaries for core usage.

  • Prefer importing from these package roots instead of internal submodules.
  • Internal module paths may evolve as long as public exports remain compatible.
  • Compatibility and deprecation policy is defined in ADR-0027.

Salesforce connector

plynt[salesforce] ships a ready-to-use Salesforce REST API integration with typed query services, Bulk API 2.0, AI APIs, and sync/async support:

from plynt.connectors.salesforce.auth import SalesforceClientCredentialsAuthMiddleware
from plynt.connectors.salesforce.client import SalesforceAPIClient
from plynt.connectors.salesforce.facade import SalesforceAPIFacade
from plynt.http.transport import HttpxSyncTransport

auth = SalesforceClientCredentialsAuthMiddleware(
    client_id="...",
    client_secret="...",
    token_url="https://login.salesforce.com/services/oauth2/token",
)
transport = HttpxSyncTransport(middlewares=[auth])
client = SalesforceAPIClient(auth=auth, transport=transport)
sf = SalesforceAPIFacade(client)

result = sf.query().query("SELECT Id, Name FROM Account LIMIT 5")
for record in result.records:
    print(record["Name"])

See the Salesforce connector docs for the full guide including JWT Bearer auth, pagination, bulk ingest, and more.

Generic LLM connector

plynt.connectors.llm provides a provider-agnostic contract for:

  • neutral message and completion models,
  • sync and async service parity,
  • streaming chunk parsing helpers,
  • optional tool-calling primitives.

Use it with any API that can map to the generic contract, while keeping provider-specific fields in opaque provider_extensions payloads.

Project Status

Plynt remains in the 0.x release line. Documented APIs follow the compatibility and deprecation policy in ADR-0027. Current capabilities include HTTP, middleware, caching, streaming, Salesforce REST/Bulk/AI, LLM provider adapters, Django/DRF/FastAPI adapters, and async gRPC.

Release acceptance includes distribution and installation checks. Local and CI tests do not replace validation against real external providers. Non-prerelease GitHub releases are published to PyPI through trusted publishing after the build and installed-wheel checks pass.

Documentation

License

MIT

Metadata

Release files for plynt 0.11.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for plynt 0.11.1
File Size Uploaded Provenance Actions
plynt-0.11.1.tar.gz 691.4 kB With provenance Details for plynt-0.11.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for plynt 0.11.1
File Interpreter ABI Platform Actions
plynt-0.11.1-py3-none-any.whl Python 3 none any Details for plynt-0.11.1-py3-none-any.whl

Total release size: 940.8 kB

Release files / plynt-0.11.1.tar.gz

Download URL plynt-0.11.1.tar.gz
Size 691.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e61e1cf96be1ea48c6a1b750ead5b96b636a7e00d953fe15f3f8875fabf5da51
BLAKE2b-256 checksum
How to use checksums
2b5554e5bd66351a619dfc65045405b4794951fd6836aa5017c591135195b3f6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Release files / plynt-0.11.1-py3-none-any.whl

Download URL plynt-0.11.1-py3-none-any.whl
Size 249.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6d5bdcdf4d715ebbe6d7e2aa2a3d3270b7833d83aa3765b68de0af3e7696c5c
BLAKE2b-256 checksum
How to use checksums
9b0f37f8c8dc4a899bd0bc88a5b45e4c548eb524fdb40b27aca2002b8312a0ea
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

Security for plynt 0.11.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for plynt-0.11.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page