Skip to main content

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/credentials or environment variables)
  • boto3, requests

Optional notebook extras: pip install "spore-host[jupyter]"

License

Apache 2.0 — see LICENSE

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

spore_host-0.1.2.tar.gz (10.5 kB view details)

Uploaded Source

Built Distribution

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

spore_host-0.1.2-py3-none-any.whl (8.7 kB view details)

Uploaded Python 3

File details

Details for the file spore_host-0.1.2.tar.gz.

File metadata

  • Download URL: spore_host-0.1.2.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spore_host-0.1.2.tar.gz
Algorithm Hash digest
SHA256 d8467abaf107a6f1ffa3211c936b8925bbb5ff376cf7363a1a3b098ad45a2d72
MD5 f5cdd8b9cf6e4aa3c13b517ba602c6c2
BLAKE2b-256 bf035ba223af43da3e24d92961cb25f26a1629b42f31ee861b66ddca7f21c230

See more details on using hashes here.

Provenance

The following attestation bundles were made for spore_host-0.1.2.tar.gz:

Publisher: publish-python.yaml on spore-host/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file spore_host-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: spore_host-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for spore_host-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 3711ea11868af83ae4e22d3acf5d864aa26c5fd0011a9d5aa9a0d6d7acc1eb56
MD5 d58f892bd0ce5d2ca9993311f0bb9951
BLAKE2b-256 dd14f304e4abaf1f6776e65b193edbd39e4f3393d5917d58907f3640bcc69993

See more details on using hashes here.

Provenance

The following attestation bundles were made for spore_host-0.1.2-py3-none-any.whl:

Publisher: publish-python.yaml on spore-host/python-sdk

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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