SporeStack API library and CLI for launching servers with Monero or Bitcoin
Project description
Python 3 library and CLI for SporeStack (SporeStack Tor Hidden Service)
Requirements
- Python 3.8-3.11 (and likely newer)
Running without installing
- Make sure pipx is installed.
pipx run 'sporestack[cli]'
Installation with pipx
- Make sure pipx is installed.
pipx install 'sporestack[cli]'
Traditional installation
- Recommended: Create and activate a virtual environment, first.
pip install sporestack
(Runpip install 'sporestack[cli]'
if you wish to use the command linesporestack
functionality and not just the Python library.)
Usage Examples
- Recommended: Make sure you're on the latest stable version comparing
sporestack version
with git tags in this repository, or releases on PyPI. sporestack token create --dollars 20 --currency xmr
sporestack token list
sporestack token info
sporestack server launch --hostname SomeHostname --operating-system debian-12 --days 1 # Will use ~/.ssh/id_rsa.pub as your SSH key, by default
(You may also want to consider passing--region
to 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 SomeHostname
sporestack server stop --machine-id ss_m_... # Or use --machine-id to be more pedantic.
sporestack server start --hostname SomeHostname
sporestack server autorenew-enable --hostname SomeHostname
sporestack server autorenew-disable --hostname SomeHostname
sporestack server list
sporestack server delete --hostname SomeHostname
Notes
- If you want to communicate with the SporeStack API using Tor, set this environment variable:
SPORESTACK_USE_TOR_ENDPOINT=1
. Verify which endpoint is in use withsporestack api-endpoint
.
Developing
pipenv install --deploy --dev
pipenv run make test
pipenv run make format
to 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-14.0.0.tar.gz
(51.6 kB
view details)
Built Distribution
File details
Details for the file sporestack-14.0.0.tar.gz
.
File metadata
- Download URL: sporestack-14.0.0.tar.gz
- Upload date:
- Size: 51.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 46fa1b8a75e1c935e15bbcf41e40f81d681e01feaad1e941d77f596dc832a1ae |
|
MD5 | 6fc80ac5288f978b83606f3f04410d2d |
|
BLAKE2b-256 | c96adc9c71f0de6a5fd0e8b65e616c761d4445eae7d3a85d0b24199c679c4657 |
File details
Details for the file sporestack-14.0.0-py3-none-any.whl
.
File metadata
- Download URL: sporestack-14.0.0-py3-none-any.whl
- Upload date:
- Size: 21.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b86f8b38668aa8668bd7c900242713bdc3e7cdedc4fd865872e0984b995aa68 |
|
MD5 | 89bcc4578d45a2f82557eac184049df3 |
|
BLAKE2b-256 | e25a60f7e21fabf5190cf38bc1f4da349ae20da742e0d5f0d30bb67fec683eb5 |