tokensqueezer-tools
PyPI client for TokenSqueezer — x402-gated LLM token compression.
pip install "tokensqueezer-tools[x402,langchain]"
# also available via monorepo:
# pip install "nodeproxy-tools[tokensqueezer]"
export EVM_PRIVATE_KEY=0x...
from tokensqueezer_tools import TokenSqueezerClient
client = TokenSqueezerClient()
result = client.compress("Long noisy agent feed text…", aggressive=True)
print(result.stats.tokens_saved, result.compressed[:200])
from tokensqueezer_tools.langchain import TokenSqueezerTool
tool = TokenSqueezerTool()
tool.invoke({"text": "Raw RSS firehose blob…"})
Release files for tokensqueezer-tools 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tokensqueezer_tools-0.1.0.tar.gz | 4.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tokensqueezer_tools-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.8 kB
Release files / tokensqueezer_tools-0.1.0.tar.gz
| Download URL | tokensqueezer_tools-0.1.0.tar.gz |
|---|---|
| Size | 4.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fef9177d210620e31b95b898ec657011543ca15e3409ca01f6256397656d1fe1
|
|
BLAKE2b-256 checksum How to use checksums |
c18ff93f11790eb2df3883edd6960f4123532cad04d20e704b0db7bc69240f9f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|
Release files / tokensqueezer_tools-0.1.0-py3-none-any.whl
| Download URL | tokensqueezer_tools-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9bb118e63488650c760db8e514a716f93870d265eb6b5739ab87f4cc9dbf8e99
|
|
BLAKE2b-256 checksum How to use checksums |
4263d52461ddb69c72be84f677b255874cadb33c836885061f6225a7975bed44
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.12
|