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

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

Built distribution (wheel)

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

Total release size: 13.0 kB

Release files / tokenjuice_integrations-0.11.1.tar.gz

Download URL tokenjuice_integrations-0.11.1.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
38e4310de7159ebb2a36c98652c00643312302075122c9a8f8e4e1dd88ac0265
BLAKE2b-256 checksum
How to use checksums
dc50c0524c3bad85c79d51e5c6f26485c5cefb6c11fc01c527d0ac8a74f7140a
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.1-py3-none-any.whl

Download URL tokenjuice_integrations-0.11.1-py3-none-any.whl
Size 7.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8031ca04bc72c7d84bb153e2696deb586efb2cb34b34551bbcf2b02fa07e38a0
BLAKE2b-256 checksum
How to use checksums
6a20cfa2fa53529978427c27b35145d259155e7b857bf9b998280d62d47099f8
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.1

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