SporeStack API library and CLI for launching servers with Monero or Bitcoin
Project description
Python 3 library and CLI for SporeStack .onion
Requirements
- Python 3.7-3.11 (or maybe newer)
Installation
pip install sporestack(Runpip install 'sporestack[cli]'if you wish to use the CLI features and not just the Python library.)- Recommended: Create a virtual environment, first, and use it inside there.
- Something else to consider: Installing rich (
pip install rich) in the same virtual environment will make--help-style output prettier.
Running without installing
- Make sure
pipxis installed. pipx run 'sporestack[cli]'- Make sure you're on the latest stable version comparing
sporestack versionwith git tags in this repository, or releases on PyPI.
Usage
sporestack token create --dollars 20 --currency xmr # Can use btc as well.sporestack token listsporestack token infosporestack server launch --hostname SomeHostname --operating-system debian-11 --days 1 # Will use ~/.ssh/id_rsa.pub as your SSH key, by default(You may also want to consider passing--regionto have a non-random region. This will use the "primary" token by default, which is the default when you runsporestack token create.)sporestack server stop --hostname SomeHostnamesporestack server stop --machine-id ss_m_... # Or use --machine-id to be more pedantic.sporestack server start --hostname SomeHostnamesporestack server autorenew-enable --hostname SomeHostnamesporestack server autorenew-disable --hostname SomeHostnamesporestack server listsporestack server delete --hostname SomeHostnamesporestack server remove --hostname SomeHostname # If expired
Notes
- If you want to communicate with SporeStack APIs using Tor, set this environment variable:
SPORESTACK_USE_TOR_ENDPOINT=1
Developing
pipenv install --deploy --devpipenv run make test(If you don't havemake, usealmake)pipenv run make formatto format files and apply ruff fixes.
Licence
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
sporestack-10.6.3.tar.gz
(45.5 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
File details
Details for the file sporestack-10.6.3.tar.gz.
File metadata
- Download URL: sporestack-10.6.3.tar.gz
- Upload date:
- Size: 45.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
508f0f0bdc24065e573a527c45b4fff1ddf87547f8b09b6e06339dac53482b79
|
|
| MD5 |
aa5677fb8ed085f043e540761ab22aa7
|
|
| BLAKE2b-256 |
f55563bae36f6765562f85cb117bf8e7fc2bfe5ec9a945b2f9bfc37b18f76f7e
|
File details
Details for the file sporestack-10.6.3-py3-none-any.whl.
File metadata
- Download URL: sporestack-10.6.3-py3-none-any.whl
- Upload date:
- Size: 19.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
75051b0b2ec8f9a2231f7dd6672ac2d271497d535abbe7ba7b0f9a37edd792a3
|
|
| MD5 |
cc6311bf0b0567a346039b099161a39d
|
|
| BLAKE2b-256 |
3aa48bfc75571c14f8281805c7e05502b3a08c776f918a96385473998379939e
|