Python SDK for spore.host — ephemeral EC2 compute for researchers
Project description
spore-host
Python SDK for spore.host — ephemeral EC2 compute for researchers.
pip install spore-host
Quick start
import spore
# Find instances
results = spore.truffle.find("amd epyc genoa", region="us-east-1")
for r in results:
print(r.instance_type, f"${r.on_demand_price:.4f}/hr")
# Check Spot prices
prices = spore.truffle.spot("c8a.2xlarge", region="us-east-1")
cheapest = min(prices, key=lambda p: p.spot_price)
# Manage running instances
instances = spore.spawn.list()
inst = spore.spawn.status("sim-run-42")
inst.extend("2h") # push the TTL deadline forward
inst.wait("terminated", on_status=lambda i: print(i.state))
Works in Jupyter notebooks, marimo, and plain Python scripts.
Documentation
Full documentation at docs.spore.host/guides/python-sdk
Requirements
- Python 3.9+
- AWS credentials configured (
~/.aws/credentialsor environment variables) boto3,requests
Optional notebook extras: pip install "spore-host[jupyter]"
License
Apache 2.0 — see LICENSE
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
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
File details
Details for the file spore_host-0.1.0.tar.gz.
File metadata
- Download URL: spore_host-0.1.0.tar.gz
- Upload date:
- Size: 10.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
638a544031eb7b157094ef40be1968c3de3f44a117e0e2287f17f22bdf3002a5
|
|
| MD5 |
535de64fda6bd21920be2abb0cacaa77
|
|
| BLAKE2b-256 |
c9594db5eb940482b0884f90a6c6b87b90aec1d511b82925b72269582291fbec
|
Provenance
The following attestation bundles were made for spore_host-0.1.0.tar.gz:
Publisher:
publish-python.yaml on scttfrdmn/spore-host
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spore_host-0.1.0.tar.gz -
Subject digest:
638a544031eb7b157094ef40be1968c3de3f44a117e0e2287f17f22bdf3002a5 - Sigstore transparency entry: 1414709694
- Sigstore integration time:
-
Permalink:
scttfrdmn/spore-host@f710c4f2b1e705a1897e7252e4e54103e2453526 -
Branch / Tag:
refs/tags/python-v0.1.0 - Owner: https://github.com/scttfrdmn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yaml@f710c4f2b1e705a1897e7252e4e54103e2453526 -
Trigger Event:
push
-
Statement type:
File details
Details for the file spore_host-0.1.0-py3-none-any.whl.
File metadata
- Download URL: spore_host-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9f96b41569c4650e84ad489e9d11628bdd0c7418f9f5f5ea9bfb4339601064fe
|
|
| MD5 |
a432bec1d5329c807dc87a62e8233844
|
|
| BLAKE2b-256 |
c8cdbf78688645aa28bcc732e42a6cfc80ef60b0d357bdc2efa39f11ef894d32
|
Provenance
The following attestation bundles were made for spore_host-0.1.0-py3-none-any.whl:
Publisher:
publish-python.yaml on scttfrdmn/spore-host
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spore_host-0.1.0-py3-none-any.whl -
Subject digest:
9f96b41569c4650e84ad489e9d11628bdd0c7418f9f5f5ea9bfb4339601064fe - Sigstore transparency entry: 1414709857
- Sigstore integration time:
-
Permalink:
scttfrdmn/spore-host@f710c4f2b1e705a1897e7252e4e54103e2453526 -
Branch / Tag:
refs/tags/python-v0.1.0 - Owner: https://github.com/scttfrdmn
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-python.yaml@f710c4f2b1e705a1897e7252e4e54103e2453526 -
Trigger Event:
push
-
Statement type: