turnkey-http
HTTP client for Turnkey API
What it is and what it does
Turnkey HTTP is a Python SDK client that wraps the Turnkey API with auto-generated, typed methods derived from an OpenAPI specification. It handles the mechanics of HTTP communication and request signing through integration with the turnkey-api-key-stamper dependency, so you initialize it once with your API credentials and organization ID, then call typed methods directly on the client object without manually constructing requests or managing signatures.
The package is designed for developers integrating Turnkey's services into Python applications. It requires Python 3.8 or later and depends on requests for HTTP transport, turnkey-api-key-stamper for cryptographic request signing, and turnkey-sdk-types for type definitions. The client code is generated from an OpenAPI schema and should not be edited manually; regeneration is done via a provided script when the schema updates.
Use it for:
- Initialize a Turnkey API client with credentials and make typed method calls like get_whoami() without manually constructing HTTP requests.
- Build a Python application that needs to interact with Turnkey's cryptographic or custody services with full type safety.
- Integrate Turnkey API calls into an existing Python backend where request signing and authentication are handled transparently.
- Develop against a Turnkey API that evolves; regenerate the client from an updated OpenAPI spec to stay in sync with new endpoints.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Turnkey HTTP is an HTTP client for the Turnkey API that provides auto-generated typed methods from an OpenAPI specification, with built-in request signing via API key stamping.
Yes. The package is actively maintained, has low install friction, carries no known vulnerabilities, and is licensed permissively. It is a straightforward choice if you need to call the Turnkey API from Python and want typed, auto-generated methods with built-in request signing. The only caveat is that it is tightly coupled to Turnkey's API, so it is only useful if you are already using Turnkey services.
Install
turnkey-http on PyPI
pip
pip install turnkey-httpuv
uv add turnkey-httppoetry
poetry add turnkey-httpInstalling turnkey-http
Before you install
Low install friction; the package is a pure Python wheel with three runtime dependencies (requests, turnkey-api-key-stamper, turnkey-sdk-types). Maintenance status is active with a recent commit history.
License in practice
Licensed under Apache-2.0 (permissive), so you can use, modify, and distribute the package freely in both open-source and proprietary projects without significant restrictions.
Quickstart
pip install turnkey-http
from turnkey_http import TurnkeyClient
from turnkey_api_key_stamper import ApiKeyStamper, ApiKeyStamperConfig
config = ApiKeyStamperConfig(
api_public_key="your-api-public-key",
api_private_key="your-api-private-key"
)
stamper = ApiKeyStamper(config)
client = TurnkeyClient(
base_url="https://api.turnkey.com",
stamper=stamper,
organization_id="your-org-id"
)
response = client.get_whoami()
print(response)
You must have valid Turnkey API credentials (public and private keys) and an organization ID to initialize the client.
Verify before relying
- Whether the auto-generated client methods cover all current Turnkey API endpoints or if manual additions are sometimes needed.
- Performance characteristics and rate-limiting behavior when making concurrent requests through the client.
Package facts
| License | Apache-2.0 (permissive) |
| Python support | supports the current Python release (>=3.8) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — requests, turnkey-api-key-stamper, turnkey-sdk-types |
| Maintenance | actively maintained — 158 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 75,435/month — #14,715 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: turnkey_http-0.1.0-py3-none-any.whl
Keywords: turnkey, api, http, client, sdk
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
turnkey-api-key-stamperSigns Turnkey API requests with your API key…
permissive · top 15,000 on PyPI
turnkey-sdk-typesProvides generated Pydantic type definitions…
permissive · top 15,000 on PyPI
legit-api-clientA Python client library for interacting with an…
permissive · top 15,000 on PyPI
openresponses-typesProvides Pydantic models for the OpenResponses…
permissive · top 15,000 on PyPI
mastercard-oauth1-signerGenerates OAuth 1.0a-compliant signatures for…
permissive · top 15,000 on PyPI
bravadoBravado generates a dynamic REST client from an…
permissive · top 15,000 on PyPI
openapi-python-clientGenerates type-annotated Python HTTP clients…
permissive · top 5,000 on PyPI
benchling-api-clientA low-level HTTP client for Benchling's API,…
permissive · top 15,000 on PyPI
authentik-clientA Python client library for the authentik…
permissive · top 15,000 on PyPI
aiopenapi3Parses and validates OpenAPI 3 specifications…
permissive · top 15,000 on PyPI