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 over HTTP/2 with multiplexed connections.
Installation
pip install fastvm
or with uv:
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
API Overview
| Method | Description |
|---|---|
launch() |
Launch a new microVM |
restore() |
Restore a VM from a snapshot |
run() |
Execute a command on a VM |
snapshot() |
Create a point-in-time snapshot |
get() / list() |
Fetch VM state |
remove() |
Delete a VM |
list_snapshots() / remove_snapshot() |
Manage snapshots |
set_firewall() / patch_firewall() |
Configure IPv6 ingress firewall |
quotas() |
Fetch organization quota usage |
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 10 VMs concurrently
License
Apache-2.0
Project details
Release history Release notifications | RSS feed
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.1.tar.gz
(15.8 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
fastvm-0.1.1-py3-none-any.whl
(10.6 kB
view details)
File details
Details for the file fastvm-0.1.1.tar.gz.
File metadata
- Download URL: fastvm-0.1.1.tar.gz
- Upload date:
- Size: 15.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f6fcf8211cb02e42c5de9597e3866170feaed4fe660e477c15290df1e8b25093
|
|
| MD5 |
e0949263eb24fea369ad214f154fc6a2
|
|
| BLAKE2b-256 |
06c2a475f8fdd3f37d4f114c91da81f23fcdf458f922cac67dd916b4acf3f831
|
File details
Details for the file fastvm-0.1.1-py3-none-any.whl.
File metadata
- Download URL: fastvm-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4692ade0612bc02e80bd04e1c85ea42c3d1c743700f514b0abd21d7cad28623c
|
|
| MD5 |
440aed3bd2568dbcdeaac2013cf41d07
|
|
| BLAKE2b-256 |
a2c8b1bf28630fd25e786f4176518df73c76fc7099373eca5028f871646aefb4
|