Spotr
Spotr simplifies launching, snapshotting and destroying AWS spot instances.
It’s designed for users wanting to use a spot instance as a development box, and persist the state in between sessions.
Quick Start
First, install the library and set a default region:
$ pip install spotr
Next, set up credentials and region (in e.g. ~/.aws/config):
[default]
aws_access_key_id = YOUR_KEY
aws_secret_access_key = YOUR_SECRET
region=us-west-1
Then, launch an instance using:
$ spotr launch --type p2.xlarge --max-bid .30 --ami ami-4bf20033
When you’re done working, you can save the current state (take a snapshot) using:
$ spotr snapshot
And then to terminate the instance:
$ spotr destroy
Next time you launch an instance, leave out the –ami tag and you’ll restore the most recent snapshot taken with spotr.
$ spotr launch --type p2.xlarge --max-bid .30
You can specify default configurations in ~/.spotr/config:
[config]
max_bid=.30
type=p2.xlarge
Metadata
Release files for spotr 0.0.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| spotr-0.0.15.tar.gz | 6.9 kB | Without provenance | Details for spotr-0.0.15.tar.gz |
Release files / spotr-0.0.15.tar.gz
| Download URL | spotr-0.0.15.tar.gz |
|---|---|
| Size | 6.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
aed9012863cc390cd1e1762743363c1e7dee0f244127aec90bb32984acb8db9d
|
|
BLAKE2b-256 checksum How to use checksums |
b5503decabb37ba765df85a493653b5b9dc0106bf4f829573715d9990749ec88
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.9.1 pkginfo/1.4.1 requests/2.18.4 setuptools/36.6.0 requests-toolbelt/0.8.0 tqdm/4.19.4 CPython/2.7.14
|
Security for spotr 0.0.15
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.