Skip to main content

Async Python SDK for the FastVM microVM platform

Project description

FastVM Python SDK

Async Python SDK for the FastVM microVM platform. Launch, snapshot, restore, and run commands on microVMs with zero-poll status waits over a persistent WebSocket channel.

Installation

uv add fastvm

Quick Start

export FASTVM_API_KEY="your-key"
from fastvm import FastVM

async with FastVM() as client:
    vm = await client.launch(machine="c1m2")
    snapshot = await client.snapshot(vm, name="my-snap")
    restored = await client.restore(snapshot)
    result = await client.run(restored, "echo hello")

    print(result.stdout)  # hello

Documentation

See the FastVM documentation for the full API reference and guides.

Examples

uv run examples/create-vm.py      # launch a VM and run commands
uv run examples/large_fanout.py   # snapshot + restore 25 VMs concurrently

Benchmarks

uv sync
uv run pytest

License

Apache-2.0

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fastvm-0.1.0.tar.gz (10.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastvm-0.1.0-py3-none-any.whl (7.8 kB view details)

Uploaded Python 3

File details

Details for the file fastvm-0.1.0.tar.gz.

File metadata

  • Download URL: fastvm-0.1.0.tar.gz
  • Upload date:
  • Size: 10.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for fastvm-0.1.0.tar.gz
Algorithm Hash digest
SHA256 5294afbabc511a3ef63cb3614b3cb67d5401bdd98e6643563e20cfd680d924eb
MD5 7e50cf8010cda70d90f725109f104966
BLAKE2b-256 325ad784cf85c5e9ebf3ad814adc18a2e8ba978b1d036e1845df012436b5cb74

See more details on using hashes here.

File details

Details for the file fastvm-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: fastvm-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.3

File hashes

Hashes for fastvm-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8e2a280c13ba558d5951a692d521c3114e4f00c4684878fb549294d829b0aba7
MD5 745d1811be3549eebb4c9aaf3d1b364c
BLAKE2b-256 20aabaa7f7c516beb41d0ef7144e656fbacfe46d684145f6c87451f91226e11e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page