Skip to main content

microvms

Python bindings over microvms-core, the client library for AWS Lambda MicroVMs.

pip install microvms

One wheel per platform, built abi3-py39, so a single artifact loads on CPython 3.9 and newer rather than one wheel per interpreter version.

Typed

The wheel ships py.typed and a generated __init__.pyi beside the extension, so a checker reads the surface by the ordinary PEP 561 rules. The stub is generated from the compiled module and compared against it in CI — a stale stub is worse than none, because it leaves a caller confidently wrong with an editor approving a call that raises AttributeError.

The traps are in the types

The constraints the platform enforces at runtime are shapes this package refuses to construct: a raw token cannot be passed where a session is expected, a capability list cannot be widened after the fact, and a dollar amount is never a bare float. Nine planted bypasses each have a test that goes red if the door reopens.

Coding agents in a VM

AgentVm is the L3 layer over the sandbox: an image with Claude Code and/or Codex CLI in it, a launch with egress, a Bedrock bearer token minted in process and installed as a file the agent sources, and one method that hands the agent a task as uid 1000 in /workspace.

vm = microvms.AgentVm(microvms.Region.us_east_1(), [microvms.AgentSpec.codex()])
vm.launch(image_identifier=image_arn, execution_role_arn=role)
vm.install_access()
print(vm.prompt_sync("codex", "Create hello.py that prints hello, run it.").stdout)
vm.terminate()

find_image, image_name, build_artifact, and build_image cover the image, with the S3 upload left to you. installed_agents, install_agent_access, and prompt_agent do the same over a bare Session for a process that holds only the identifier triple.

Reading

License

Apache-2.0

Release files for microvms 0.7.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 microvms 0.7.0
File Size Uploaded
microvms-0.7.0.tar.gz 628.1 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for microvms 0.7.0
File
microvms-0.7.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
microvms-0.7.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.9 abi3 Linux glibc 2.17+ x86-64 Details
microvms-0.7.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
microvms-0.7.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
microvms-0.7.0-cp39-abi3-macosx_10_12_x86_64.whl CPython 3.9 abi3 macOS 10.12+ x86-64 Details

Total release size: 16.0 MB

Release files / microvms-0.7.0.tar.gz

Download URL microvms-0.7.0.tar.gz
Size 628.1 kB
Tags Source
SHA-256 checksum
How to use checksums
79fadc88a961f59cfa2acca58dcf713cec845d17aee776be63f85f86d9f893fe
BLAKE2b-256 checksum
How to use checksums
deee3f85743c46ac10dac638375b6e94c9ce24cd0472f7b633af520ecf603b42
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 Sep 11, 2026.

Transparency log

Release files / microvms-0.7.0-cp39-abi3-win_amd64.whl

Download URL microvms-0.7.0-cp39-abi3-win_amd64.whl
Size 3.1 MB
Tags CPython 3.9 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
1827b43a97708f76afdcf85e071b61200b81ddd2fdf5fab47825e3ba0f3540a6
BLAKE2b-256 checksum
How to use checksums
9298439677f8ca54d5048277fdc17f60e97c27e111f15ec05144fa0a8ba55c45
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 Sep 11, 2026.

Transparency log

Release files / microvms-0.7.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL microvms-0.7.0-cp39-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 3.3 MB
Tags CPython 3.9 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
ff33122522c9ea7bdcefbb7b6f0d05691910a2a31e47e69bb4b9801967de996c
BLAKE2b-256 checksum
How to use checksums
771b2a85b1ce3a2dcb04c03fed42445c3eeaf037e8a347c466b3aef4a13e6e5e
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 Sep 11, 2026.

Transparency log

Release files / microvms-0.7.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL microvms-0.7.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.1 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
acb7866d934f37a3f7de3949dd517f9c2b3272e3383cb5f8fbeca4d4d881ba87
BLAKE2b-256 checksum
How to use checksums
2ece3808e19e473d3e088e4f3de39d0db2824519bd515073cd34719ccd2daa49
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 Sep 11, 2026.

Transparency log

Release files / microvms-0.7.0-cp39-abi3-macosx_11_0_arm64.whl

Download URL microvms-0.7.0-cp39-abi3-macosx_11_0_arm64.whl
Size 2.8 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a20c21cdd2328b8b428e1762d6fab312b9e77c8a69d33a9e9f790319713064a6
BLAKE2b-256 checksum
How to use checksums
4b2b7157e05f9c9bb551d1d6144599009df5af975dd08a721860fdebf1155a6b
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 Sep 11, 2026.

Transparency log

Release files / microvms-0.7.0-cp39-abi3-macosx_10_12_x86_64.whl

Download URL microvms-0.7.0-cp39-abi3-macosx_10_12_x86_64.whl
Size 3.0 MB
Tags CPython 3.9 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
cae4be1e13cb08902cefeb85dbb06bd1f00dc0d9f5cbfb6ea80a5f963a53be05
BLAKE2b-256 checksum
How to use checksums
f264f8e3228f6b4233ff348d2f18901ae1d1d25e8fb46484a77f94aeb184ec7c
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 Sep 11, 2026.

Transparency log

Release history Release notifications | RSS feed

0.8.0

6 release files

This release

0.7.0 This release

6 release files

0.6.0

6 release files

0.5.0

6 release files

0.4.0

6 release files

0.3.0

6 release files

0.2.0

6 release files

0.1.1

6 release files

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