Skip to main content

tokenjuice-integrations

Python adapters for tokenjuice, a local tool-output compactor. LangChain tool middleware and FastMCP server/proxy middleware replace eligible successful shell output before model consumption. Failures, unknown exit status, exact file reads, and explicit raw requests pass through. Applications map their own trusted execution records; tool success alone does not establish a shell exit code.

Install

Python 3.11 or newer and tokenjuice CLI 0.10.0 or newer are required. Install the CLI separately with Node.js 22 or newer, and install only the Python extras your application uses:

npm install --global tokenjuice
python -m pip install "tokenjuice-integrations[langchain]"
# Or: python -m pip install "tokenjuice-integrations[fastmcp]"

Keep the CLI on your application's PATH or set TOKENJUICE_BIN to its executable path. On Windows, npm's tokenjuice.cmd shim is resolved from absolute PATH entries. For an npm/release bundle, install its dist/python directory with the same extras instead of a registry name.

Configure

The adapters send captured output to the local tokenjuice compact-shell-result subprocess. They never execute the command string in that payload. Bridge calls disable statistics and preserve the original result on missing executables, invalid responses, inputs over 2 MB, or five-second timeouts. No model service or API key is required. Remove middleware from the application to disable it.

MIT-licensed. Source, issue tracking, and native contract tests are in the tokenjuice repository.

Metadata

Release files for tokenjuice-integrations 0.11.2

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

Source distribution (sdist)

Source distribution for tokenjuice-integrations 0.11.2
File Size Uploaded Provenance Actions
tokenjuice_integrations-0.11.2.tar.gz 7.0 kB With provenance Details for tokenjuice_integrations-0.11.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for tokenjuice-integrations 0.11.2
File Interpreter ABI Platform Actions
tokenjuice_integrations-0.11.2-py3-none-any.whl Python 3 none any Details for tokenjuice_integrations-0.11.2-py3-none-any.whl

Total release size: 15.4 kB

Release files / tokenjuice_integrations-0.11.2.tar.gz

Download URL tokenjuice_integrations-0.11.2.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1603335837967ec03c2f2105948546f57c2a46c9609e483a58fded518b52bde3
BLAKE2b-256 checksum
How to use checksums
3d71e25b0d4ccf6a323833fcf960bf27eef180d47400d2cbbac7dc3eab42d09d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Release files / tokenjuice_integrations-0.11.2-py3-none-any.whl

Download URL tokenjuice_integrations-0.11.2-py3-none-any.whl
Size 8.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
513074642cc3b876c395ad139f2f2ba8ceac8bb12361ccc140c3b2d20cfcc747
BLAKE2b-256 checksum
How to use checksums
b33d6905b43f8a1d360f49d512d82e4934f47fdc2f9a8f9b5c80a225f895b0bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

Security for tokenjuice-integrations 0.11.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for tokenjuice_integrations-0.11.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 18, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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