skillfed

benchling-api-client

Autogenerated Python client from OpenAPI Python Client generator

benchling-api-client v2.0.440 291.5K downloads/30d#7,970 on PyPI
Permissive license Apache-2.0 Active released

What it is and what it does

benchling-api-client is a low-level Python HTTP client autogenerated from Benchling's OpenAPI specification. It provides direct, type-hinted access to Benchling's REST API endpoints, with built-in retry logic via backoff and request handling through httpx. The package is actively maintained and supports Python 3.9 through 3.13.

However, the package's own documentation explicitly recommends using the higher-level benchling-sdk instead, which wraps this client with additional scaffolding to simplify common workflows. Use this package directly only if you need low-level API control, are integrating with a specific endpoint not well-covered by the SDK, or prefer working with the raw OpenAPI-generated interface.

Use it for:

  • Direct access to Benchling API endpoints when the higher-level SDK does not expose the operation you need.
  • Building custom integrations that require fine-grained control over request/response handling and retry logic.
  • Prototyping or testing new Benchling API features before they are wrapped by the SDK.
  • Automating laboratory workflows by querying or updating resources (experiments, samples, sequences) via Benchling's API.
  • Integrating Benchling data into Python data pipelines or analysis scripts.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

A low-level HTTP client for Benchling's API, autogenerated from OpenAPI definitions and offering direct access to Benchling endpoints.

Yes, but with a caveat: install this only if you are building a direct API integration and the benchling-sdk does not meet your needs. The package is actively maintained, has low install friction, and carries no known vulnerabilities. However, Benchling's own recommendation to use the higher-level SDK suggests this is a lower-level tool; start with the SDK unless you have a specific reason to work at the raw API level.

Install

benchling-api-client on PyPI

pip

pip install benchling-api-client

uv

uv add benchling-api-client

poetry

poetry add benchling-api-client

Installing benchling-api-client

Before you install

Low install friction with a pure-Python wheel distribution. Actively maintained with a release 15 days old. Six runtime dependencies are all well-established packages (attrs, backoff, httpx, dataclasses-json, python-dateutil, typing-extensions), suggesting a stable, lightweight dependency chain.

License in practice

Apache-2.0 is permissive; you can use this package in commercial and proprietary projects without restriction, though you must include a copy of the license and note any modifications you make.

Quickstart

pip install benchling-api-client

from benchling_api_client import AuthenticatedClient
from benchling_api_client.api.some_endpoint import get_resource

client = AuthenticatedClient(base_url="https://api.benchling.com", token="your_token")
result = get_resource.sync(client=client)

Requires Python 3.9 or later. You must have a valid Benchling API token and know the endpoint module path for the resource you want to access.

Verify before relying

  • Whether this package is actively maintained by Benchling or community-driven; the description recommends the benchling-sdk instead.
  • Specific endpoint coverage and whether all Benchling API operations are available in this version.
  • Performance characteristics and rate-limiting behavior when used at scale.

Package facts

License Apache-2.0 (permissive)
Python support supports the current Python release (<4.0,>=3.9)
Install friction low — pure-Python wheel
Runtime dependencies 6 — attrs, backoff, dataclasses-json, httpx, python-dateutil, typing-extensions
Maintenance actively maintained — 15 days since the last release
First released
Downloads 291,509/month — #7,970 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: benchling_api_client-2.0.440-py3-none-any.whl

License :: OSI Approved :: Apache Software LicenseProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.9

Tags

benchling api clientbenchling rest api pythonopenapi python clientbenchling laboratory apibenchling http clientapi client generationbenchling endpoint access
api-clientbenchlingopenapi-generated

More WWW/HTTP packages