Skip to main content

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)

Release files for tinytoken-sdk 0.1.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tinytoken-sdk 0.1.3
File Size Uploaded
tinytoken_sdk-0.1.3.tar.gz 2.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tinytoken-sdk 0.1.3
File Interpreter ABI Platform
tinytoken_sdk-0.1.3-py3-none-any.whl Python 3 none any Details

Total release size:5.3 kB

Release files / tinytoken_sdk-0.1.3.tar.gz

Download URL tinytoken_sdk-0.1.3.tar.gz
Size 2.6 kB
Tags Source
SHA-256 checksum
How to use checksums
8da4edc5e7a454fb2a584eece5e0ea6cf995b6a715acaf7a734a7eafe5baa77f
BLAKE2b-256 checksum
How to use checksums
608ccc4a810372c3dfc0194b745ced18f4fa0a0fe433482cc583c8c1421acf79
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release files / tinytoken_sdk-0.1.3-py3-none-any.whl

Download URL tinytoken_sdk-0.1.3-py3-none-any.whl
Size 2.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ad24a411790cbc48e74b0d21b92993b7b83dc7b1dc320b760537dc2b67fe1490
BLAKE2b-256 checksum
How to use checksums
ee92f211aac8623af78b99342fbea58aedd68754725773181376f163826cd78b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Release history Release notifications | RSS feed

This release

0.1.3 This release

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page