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

Built distribution (wheel)

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

Total release size: 13.0 kB

Release files / tokenjuice_integrations-0.11.0.tar.gz

Download URL tokenjuice_integrations-0.11.0.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3d0161b71ec1398913f0a8410cfdb909b119d7d78c68ed33bea4d4663e280c78
BLAKE2b-256 checksum
How to use checksums
bd1490f2a430a1b5f6316890d0d2e57d43f5cfac9a1e4e51ac269d7b44405924
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 8, 2026.

Transparency log

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

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

Transparency log

Security for tokenjuice-integrations 0.11.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.11.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 8, 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.11.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