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. 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.10.0

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.10.0
File Size Uploaded Provenance Actions
tokenjuice_integrations-0.10.0.tar.gz 5.6 kB With provenance Details for tokenjuice_integrations-0.10.0.tar.gz

Built distribution (wheel)

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

Total release size: 13.0 kB

Release files / tokenjuice_integrations-0.10.0.tar.gz

Download URL tokenjuice_integrations-0.10.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
e84fb89830ab09f9828f82f4fe02111bf38b0bc4b2dbd74338666486667ce94e
BLAKE2b-256 checksum
How to use checksums
707f498d8d707d5bd597e3538b142f9db26202da918d2aef03a4347ca782c9b5
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 2, 2026.

Transparency log

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

Download URL tokenjuice_integrations-0.10.0-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6e07362c8988eeb98fd69022d4bbb28b343c1eb58d290ed6ef322314668bbad
BLAKE2b-256 checksum
How to use checksums
d2a4603b93f19393174dc58e45d5300a3de4c5733b7bb0644f432b03c4df7878
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 2, 2026.

Transparency log

Security for tokenjuice-integrations 0.10.0

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.10.0.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 2, 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.

Release history Release notifications | RSS feed

This release

0.10.0 This release

2 release files Full provenance

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