Skip to main content

First-party Python client for the Tokenbin artifact and directory kernel.

Project description

tokenbin

First-party Python client for the Tokenbin artifact and directory kernel.

Install from PyPI after the first registry release:

python3 -m pip install tokenbin

For a local repo checkout:

python3 -m pip install ./clients/python

Example:

import os

from tokenbin import TokenbinClient

client = TokenbinClient(
    base_url=os.environ["TOKENBIN_URL"],
    token=os.environ.get("TOKENBIN_AUTH_TOKEN") or os.environ["TOKENBIN_API_KEY"],
)

created = client.paste(
    {
        "content": "support draft",
        "directory": "support/zendesk/9981",
        "directory_metadata": {"kind": "comment-draft", "agent": "agent-a"},
    }
)

print(created["id"])

The client is a thin wrapper over Tokenbin's authenticated JSON API and versioned OpenAPI contract. For the full API, MCP, CLI, and deployment docs, see the repository root README.

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

tokenbin-0.1.1.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

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

tokenbin-0.1.1-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file tokenbin-0.1.1.tar.gz.

File metadata

  • Download URL: tokenbin-0.1.1.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tokenbin-0.1.1.tar.gz
Algorithm Hash digest
SHA256 abadda27f6eea11113f9b4ee5a97a184892d3307011a877168075ed06316d2e9
MD5 a18458603c65b12dae146dc661f146ee
BLAKE2b-256 116913492994abbef340d4b022945a9963b7e4c91be8d8525a8f1f8910dbe0dc

See more details on using hashes here.

Provenance

The following attestation bundles were made for tokenbin-0.1.1.tar.gz:

Publisher: publish.yml on Tetra-Research/tokenbin

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

File details

Details for the file tokenbin-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: tokenbin-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for tokenbin-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d0d1996a925b2275a324ac62b083c3fab5c9dde9783c032ac68c2dc6a42b58fb
MD5 c79c5047d9495fb8ade3ab1d935b983b
BLAKE2b-256 ce86e5fad3df5d29e4138a9ec1c193f6296bbbb5ba925a53e318bd9af403b0bc

See more details on using hashes here.

Provenance

The following attestation bundles were made for tokenbin-0.1.1-py3-none-any.whl:

Publisher: publish.yml on Tetra-Research/tokenbin

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