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.8.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.8.0
File Size Uploaded
microvms-0.8.0.tar.gz 632.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for microvms 0.8.0
File
microvms-0.8.0-cp39-abi3-win_amd64.whl CPython 3.9 abi3 Windows x86-64 Details
microvms-0.8.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.8.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl CPython 3.9 abi3 Linux glibc 2.17+ ARM64 Details
microvms-0.8.0-cp39-abi3-macosx_11_0_arm64.whl CPython 3.9 abi3 macOS 11.0+ ARM64 Details
microvms-0.8.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.8.0.tar.gz

Download URL microvms-0.8.0.tar.gz
Size 632.6 kB
Tags Source
SHA-256 checksum
How to use checksums
f95178764d7eb4d95e53adae10be17c953e7bb3ea86b79b9853ec0260468f16c
BLAKE2b-256 checksum
How to use checksums
cfbbdff9bf258f7e0a87120a9568233fc11b233325a05cca5fe8d0d58c999607
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 12, 2026.

Transparency log

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

Download URL microvms-0.8.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
48fcb2fca89d6bf1d9acf943aee1135498fd252644b8a6d73e221737067e8d80
BLAKE2b-256 checksum
How to use checksums
9c60f9aad883b227fa1f00f79b98000cf0152651e963a5f2469257d470db7afe
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 12, 2026.

Transparency log

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

Download URL microvms-0.8.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
851a78d53377b6595c0b1d4e0b2e151193fc8b550f4ece13d88f160b9899cf19
BLAKE2b-256 checksum
How to use checksums
1305bd98920724953246660047bdb5ebe7ae5afad3d72a872988c97c5126517c
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 12, 2026.

Transparency log

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

Download URL microvms-0.8.0-cp39-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 3.2 MB
Tags CPython 3.9 Linux glibc 2.17+ ARM64 abi3
SHA-256 checksum
How to use checksums
ae97aeab51f2561e6bfa0768117aaeddad9f355c3a798038f586a883c75b11e7
BLAKE2b-256 checksum
How to use checksums
2c93d3dae1ecd55e96e3176f610acba467efde2442a26824fd1452bd160508bc
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 12, 2026.

Transparency log

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

Download URL microvms-0.8.0-cp39-abi3-macosx_11_0_arm64.whl
Size 2.9 MB
Tags CPython 3.9 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
60ff2d9da42d736650c02507ba285ed4016929df2adcffd8cc1430028a462516
BLAKE2b-256 checksum
How to use checksums
f6285575c0ff62db27c6c76e2935f3ddae2623666a114a0c36d62eb2adae47ba
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 12, 2026.

Transparency log

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

Download URL microvms-0.8.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
104aa6ad6131bd6248a9a0411cd142805dfb7e82450d6834c5f8fffd74a8199e
BLAKE2b-256 checksum
How to use checksums
a587d8369924307c97e003ab3891b7d5130c2cbfd960e0a538fc6c5f8c1b3fea
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 12, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.8.0 This release

6 release files

0.7.0

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