Skip to main content

mistralai-blokhus

Typed async Python client for Blokhus, Mistral AI's microVM sandbox platform. Commands use HTTP/SSE, files use streamed HTTP, and terminals and port forwarding use WebSockets. Requires Python 3.12 or later.

Install

uv add mistralai-blokhus

The import package is blokhus.

Configure

Set the API endpoint and key with BLOKHUS_API_URL and BLOKHUS_API_KEY (or MISTRAL_API_KEY), or pass ClientConfig(base_url=..., api_key=...). The key is sent as Authorization: Bearer <key>.

Run a command

import asyncio

from blokhus import Sandbox


async def main() -> None:
    async with await Sandbox.create(image="python:3.12-slim") as sandbox:
        result = await sandbox.commands.exec("printf hello")
        print(result.stdout)
        await sandbox.files.write("/tmp/example.txt", "hello")
        print(await sandbox.files.read("/tmp/example.txt"))


asyncio.run(main())

Metadata

Release files for mistralai-blokhus 0.190.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 mistralai-blokhus 0.190.0
File Size Uploaded Provenance Actions
mistralai_blokhus-0.190.0.tar.gz 84.5 kB With provenance Details for mistralai_blokhus-0.190.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mistralai-blokhus 0.190.0
File Interpreter ABI Platform Actions
mistralai_blokhus-0.190.0-py3-none-any.whl Python 3 none any Details for mistralai_blokhus-0.190.0-py3-none-any.whl

Total release size: 183.6 kB

Release files / mistralai_blokhus-0.190.0.tar.gz

Download URL mistralai_blokhus-0.190.0.tar.gz
Size 84.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fac8f223d7ecf89e8803aa236ff9d78ee19127a2570c578cea65faafe8b29fba
BLAKE2b-256 checksum
How to use checksums
ee195e43ede07eb941794eb39bd93355f51d3c54c48393a6d78689d41e4181de
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 4, 2026.

Transparency log

Release files / mistralai_blokhus-0.190.0-py3-none-any.whl

Download URL mistralai_blokhus-0.190.0-py3-none-any.whl
Size 99.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9f2c7e3e314ec5e263443e4d0a9de7c234aa3a1ddcf46c4107ef9eb29aa78534
BLAKE2b-256 checksum
How to use checksums
10bb259d140605044e0038e6acfcf49c004f3d683f1075386ba7295290f757dc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 4, 2026.

Transparency log

Security for mistralai-blokhus 0.190.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 mistralai_blokhus-0.190.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 4, 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