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.80.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| mistralai_blokhus-0.80.2.tar.gz | 84.2 kB | With provenance | Details for mistralai_blokhus-0.80.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| mistralai_blokhus-0.80.2-py3-none-any.whl | Python 3 | none | any | Details for mistralai_blokhus-0.80.2-py3-none-any.whl |
Total release size: 182.8 kB
Release files / mistralai_blokhus-0.80.2.tar.gz
| Download URL | mistralai_blokhus-0.80.2.tar.gz |
|---|---|
| Size | 84.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f5a9540d289b9468be7bdeab84d52da905e40b4705740f738f3ae897f170cb6
|
|
BLAKE2b-256 checksum How to use checksums |
d6614d78ac1c34d7c79521a4433e13da547d8ac9a30b7b828f34e3bb6dc23dbb
|
| 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 3, 2026.
Transparency logRelease files / mistralai_blokhus-0.80.2-py3-none-any.whl
| Download URL | mistralai_blokhus-0.80.2-py3-none-any.whl |
|---|---|
| Size | 98.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
04590894d49324e1680a331dfd5104469f27c7337c6f0731f8c6b8e0a8d0be5f
|
|
BLAKE2b-256 checksum How to use checksums |
c413afa147770302d224206ee48d26016ffbbd9572039a3cc4e25a398edbcab2
|
| 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 3, 2026.
Transparency logSecurity for mistralai-blokhus 0.80.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.
Attestation for mistralai_blokhus-0.80.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 3, 2026.
Transparency logA 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.