Skip to main content

API key authentication stamper for Turnkey API

Project description

Turnkey API Key Stamper

Authentication utility for Turnkey API requests. The stamper signs requests with your API key credentials.

Installation

pip install turnkey-api-key-stamper

Usage

from turnkey_api_key_stamper import ApiKeyStamper, ApiKeyStamperConfig
import requests
import json

# Initialize the stamper with your API credentials
config = ApiKeyStamperConfig(
    api_public_key="<Turnkey API Public Key (that starts with 02 or 03)>",
    api_private_key="<Turnkey API Private Key>"
)
stamper = ApiKeyStamper(config)

# Create your request payload
payload = {
    "organizationId": "<your org ID>"
}
payload_str = json.dumps(payload)

# Generate the authentication stamp
stamp = stamper.stamp(payload_str)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

turnkey_api_key_stamper-0.1.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

turnkey_api_key_stamper-0.1.0-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file turnkey_api_key_stamper-0.1.0.tar.gz.

File metadata

  • Download URL: turnkey_api_key_stamper-0.1.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for turnkey_api_key_stamper-0.1.0.tar.gz
Algorithm Hash digest
SHA256 dd06f37476768a6deb5d79f636a330ca2e135fa621bfa3307e7abb0ba57e7f9e
MD5 4fdf9762f7388afb62acaa88f4b5eb78
BLAKE2b-256 a7f1dc83fa347ff03354287a03d9a94f31451e59164e02597aa4688eb705bc01

See more details on using hashes here.

Provenance

The following attestation bundles were made for turnkey_api_key_stamper-0.1.0.tar.gz:

Publisher: validate-and-publish.yml on tkhq/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file turnkey_api_key_stamper-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for turnkey_api_key_stamper-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f39916edb6cfbd8b5174c852fb73bc8962b34ce12480adad5a1f3de629a9b60
MD5 a2d09bb64fc64308c8e8d91c8d88f0e5
BLAKE2b-256 46280f4a318448d5e76acb2c7bc02c9fe253554b6663ea1f1905dbdc36bbe1c3

See more details on using hashes here.

Provenance

The following attestation bundles were made for turnkey_api_key_stamper-0.1.0-py3-none-any.whl:

Publisher: validate-and-publish.yml on tkhq/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page