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.6.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.6.tar.gz.
File metadata
- Download URL: simt_fly_machines-0.2.6.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 |
4bd9e955846afb1f0eb0863da3c8374b55c1075a589f6605231548413cc39ec2
|
|
| MD5 |
dee3c2e02ccfc7029ae01c9159848c5f
|
|
| BLAKE2b-256 |
d749855e6d6de8bc574df296738ea8e2fad2d8771244c3087d8dffd1fe34711a
|
File details
Details for the file simt_fly_machines-0.2.6-py3-none-any.whl.
File metadata
- Download URL: simt_fly_machines-0.2.6-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 |
46b68bad4defd316d20fc8b1de00cba1c2700ec5b8a80671646f5071cf275b46
|
|
| MD5 |
7fd83c2611c2a27fd96ad4149eadd3e0
|
|
| BLAKE2b-256 |
be44a47138e5f9c1cfc883fb88f4213c20462fbd3ed215d0ec3fe77ea0dcb6ad
|