Skip to main content

Python SDK for TeaserPaste API - Simple, Typed, and Fun.

Project description

TeaserPaste Python SDK

Official Python SDK for TeaserPaste API. Simple, typed, and ready for the Teaserverse.

Installation

# Using uv (Recommended)
uv add tp-sdk

# Using pip
pip install tp-sdk

Quick Start

import tp

# Initialize with your API Key
api = tp.TeaserPaste("YOUR_API_KEY")

# Create a new paste
note = api.paste(tp.SnippetInput(
    title="Teaserverse Logs", 
    content="System status: All green."
))
print(f"Created: {note.id}")

# Get a paste
data = api.get(note.id)
print(data.content)

API Reference

"One-word" API's.

  • api.paste(input) — Create a new snippet.
  • api.get(id, pwd=None) — Get a snippet.
  • api.edit(id, **kwargs) — Update a snippet.
  • api.kill(id) — Soft delete a snippet.
  • api.live(id) — Restore a deleted snippet.
  • api.fork(id) — Copy a snippet to your account.
  • api.star(id, on=True) — Star (or unstar) a snippet.
  • api.ls(limit=20) — List your snippets.
  • api.user(uid) — List another user's public snippets.
  • api.find(q) — Search snippets.
  • api.me() — Get your account info.

Development

# Install dependencies
uv sync

# Build
uv build

License

MIT

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

tp_sdk-0.1.0.tar.gz (22.8 kB view details)

Uploaded Source

Built Distribution

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

tp_sdk-0.1.0-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tp_sdk-0.1.0.tar.gz
Algorithm Hash digest
SHA256 584a87e5cf2d79cd516fc493fa63f11a805af09a8e4952a015785c74a947fb09
MD5 a1726ddb908655b552cdf77ce54beb4e
BLAKE2b-256 d69469de3d5ddcdb8aad300b2af1c0070d600fa94ed5389077ee4c4ecde16e4a

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on TeaserPaste/tp-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 tp_sdk-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tp_sdk-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 6.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tp_sdk-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 acb728d24412cb48c3071b6c07e49d77c0335d142f74167689648d30e8d53a8b
MD5 a3e6c5b37eb8dd19453f34bc403ac6a5
BLAKE2b-256 eac1a211f4b29f068a67a97983bb4517d6e91ed877a2ab0dd2bce3955fc23263

See more details on using hashes here.

Provenance

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

Publisher: publish.yml on TeaserPaste/tp-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