Skip to main content

SporeStack API and CLI for launching servers with Monero or Bitcoin

Project description

Python 3 library and CLI for SporeStack .onion

Changelog

Requirements

  • Python 3.7-3.11 (or maybe newer)

Installation

  • pip install sporestack
  • 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 pipx is installed.
  • pipx run sporestack
  • Make sure you're on the latest stable version comparing sporestack version with git tags in this repository, or releases on PyPI.

Usage

  • sporestack token create --dollars 20 --currency xmr # Can use btc as well.
  • sporestack token list
  • sporestack token balance
  • sporestack server launch 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 --region to have a non-random region. This will use the "primary" token by default, which is the default when you run sporestack token create.)
  • sporestack server stop SomeHostname
  • sporestack server start SomeHostname
  • sporestack server list
  • sporestack server remove 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 --dev
  • pipenv run make test (If you don't have make, use almake)
  • pipenv run make format to format files and apply ruff fixes.

Licence

Unlicense/Public domain

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

sporestack-10.1.2.tar.gz (37.3 kB view details)

Uploaded Source

Built Distribution

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

sporestack-10.1.2-py3-none-any.whl (16.3 kB view details)

Uploaded Python 3

File details

Details for the file sporestack-10.1.2.tar.gz.

File metadata

  • Download URL: sporestack-10.1.2.tar.gz
  • Upload date:
  • Size: 37.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for sporestack-10.1.2.tar.gz
Algorithm Hash digest
SHA256 c9c80a177c0f52bddf7bff85fed829defc514c48ae6e3168d849f414d114c2f1
MD5 37548ee8f3550b6fda8e614234c6dd0e
BLAKE2b-256 5c755e942a6d6bfaa5aa1e685077de69bf0b2c3b061f5a3c230f2c0ab8e3b2eb

See more details on using hashes here.

File details

Details for the file sporestack-10.1.2-py3-none-any.whl.

File metadata

  • Download URL: sporestack-10.1.2-py3-none-any.whl
  • Upload date:
  • Size: 16.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.2

File hashes

Hashes for sporestack-10.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 08d7968f2685eee09a70e0b6fcf0946634f1d9b4381be5a9a7df57bc69508b61
MD5 a84db9fa94fb0fe6e33c1937ff0fd420
BLAKE2b-256 87a0864aa4574c4298b1d06ce58e1136f2ca6a8987373fc45ff58221aca5f63f

See more details on using hashes here.

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