skillfed

turnkey-http

HTTP client for Turnkey API

turnkey-http v0.1.0 75.4K downloads/30d#14,715 on PyPI0
Permissive license Apache-2.0 Active released

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

uv

uv add turnkey-http

poetry

poetry add turnkey-http

Installing 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

Intended Audience :: DevelopersProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9

Tags

turnkey api clienthttp client with request signingopenapi generated sdkapi key stamper integrationtyped api methodsturnkey sdk http
api-clientrequest-signingopenapi-generated

More WWW/HTTP packages