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
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.4.tar.gz
(16.1 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.4.tar.gz.
File metadata
- Download URL: simt_fly_machines-0.2.4.tar.gz
- Upload date:
- Size: 16.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc53d8225b13cbe62963618c3c4916093c2d3d6cb63f0118d9e94eb385a04030
|
|
| MD5 |
bf7515debe408e8c6c03f89481f4613b
|
|
| BLAKE2b-256 |
e76e2e1f54c082c02015ce0510252ad031c97d88be92de13549756c02af2363e
|
File details
Details for the file simt_fly_machines-0.2.4-py3-none-any.whl.
File metadata
- Download URL: simt_fly_machines-0.2.4-py3-none-any.whl
- Upload date:
- Size: 17.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
358cfaaaf69dc35038af31159f255d880e99ed64f85d36bbb4854f06d310b38c
|
|
| MD5 |
52745aa072aea21f8c0bf6eac9da5ae0
|
|
| BLAKE2b-256 |
81814cca9efdbcd203f9d8dc6c7e1640a9482a96f4285de88ad5cc34663f11b0
|