A python API to start, stop and list Fly.io machines
Project description
simt-py-fly-machines
A python API to start, stop and list Fly.io machines using the Machines REST API.
Local Development
> python3 -m venv .venv
> source .venv/bin/activate
(.venv)> pip install -U pip setuptools
(.venv)> pip install poetry
(.venv)> poetry install
Publish
Use account damonrand and publishing to test-pypi for now.
poetry publish --build -r test-pypi
Local Testing CLI (Fire)
Locally fire is available to invoke the API from CLI.
Example invocation:
# List machines
python -m simt_fly_machines.cli list mediators-hmce
# Create new machine
python -m simt_fly_machines.cli \
create \
mediators-hmce \
simt-emlite:0.9.4 \
'["simt_emlite.orchestrate.mediators"]' \
--name "mediator-100.79.244.203" \
--env_vars '{"EMLITE_HOST": "100.79.244.203"}' \
--metadata '{"meter_id": "a4d636c3-9b13-4261-89ab-c018e86120e8"}'
# Destroy machine
python -m simt_fly_machines.cli destroy mediators-hmce d8dd67ea074138
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
simt_fly_machines-0.2.1.tar.gz
(15.9 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 simt_fly_machines-0.2.1.tar.gz.
File metadata
- Download URL: simt_fly_machines-0.2.1.tar.gz
- Upload date:
- Size: 15.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e4f6b4df912b94126489f86fdb89c08e70e36a6626255d97c9b8e2f23e6d88c1
|
|
| MD5 |
a8837803f7876b6d8a0d29565aad5bb1
|
|
| BLAKE2b-256 |
3ac9fdeb11f954d700e435fbd141a8f948aeabc2447a4b8e856cbcff564caa90
|
File details
Details for the file simt_fly_machines-0.2.1-py3-none-any.whl.
File metadata
- Download URL: simt_fly_machines-0.2.1-py3-none-any.whl
- Upload date:
- Size: 17.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f8bcb51dd143b906d8ab5b719210ed43c66ee7c7f4a198916cb053c34abc9af0
|
|
| MD5 |
cf41b06b465bedcaa8ef1d05184eea72
|
|
| BLAKE2b-256 |
856504c1f23c80a6058579d9c059e2561de4f457e5daf1e8b1bcf5d323d476a7
|