Skip to main content

Python SDK for TinyToken API

Project description

TinyToken SDK

Text compression API client.

Install

pip install tinytoken-sdk

Usage

You need an API key to use TinyToken. Get one at https://tinytoken.org.

import tinytoken

# Compress text using the function directly
result = tinytoken.compress("Your text here", "your-api-key")
print(result)

# Or use the class (recommended)
client = tinytoken.TinyToken("your-api-key")
result = client.compress("Your text here")
print(result)

# With optional quality parameter
result = client.compress("Your text here", quality=0.8)
print(result)

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

tinytoken_sdk-0.1.3.tar.gz (2.6 kB view details)

Uploaded Source

Built Distribution

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

tinytoken_sdk-0.1.3-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file tinytoken_sdk-0.1.3.tar.gz.

File metadata

  • Download URL: tinytoken_sdk-0.1.3.tar.gz
  • Upload date:
  • Size: 2.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for tinytoken_sdk-0.1.3.tar.gz
Algorithm Hash digest
SHA256 8da4edc5e7a454fb2a584eece5e0ea6cf995b6a715acaf7a734a7eafe5baa77f
MD5 8426f656b1c808a6d27e899b0ad2aad4
BLAKE2b-256 608ccc4a810372c3dfc0194b745ced18f4fa0a0fe433482cc583c8c1421acf79

See more details on using hashes here.

File details

Details for the file tinytoken_sdk-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: tinytoken_sdk-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for tinytoken_sdk-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 ad24a411790cbc48e74b0d21b92993b7b83dc7b1dc320b760537dc2b67fe1490
MD5 df5931b86ff01c275c69d15fd739071b
BLAKE2b-256 ee92f211aac8623af78b99342fbea58aedd68754725773181376f163826cd78b

See more details on using hashes here.

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