Skip to main content

A python API to start, stop and list Fly.io machines

Project description

simt-py-fly-machines

Python checks

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.5.tar.gz (16.1 kB view details)

Uploaded Source

Built Distribution

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

simt_fly_machines-0.2.5-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file simt_fly_machines-0.2.5.tar.gz.

File metadata

  • Download URL: simt_fly_machines-0.2.5.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

Hashes for simt_fly_machines-0.2.5.tar.gz
Algorithm Hash digest
SHA256 40f3f623182cfa8be6394acea2f3a9dd20f3578727d4d851d207c8d3e0269567
MD5 1fb6cda7ce8c8e5c08f77d7d0e88c4b8
BLAKE2b-256 7a42de2affc352f9f798971e1ac1dc7e12a58ddc2ab035330584026e2f395705

See more details on using hashes here.

File details

Details for the file simt_fly_machines-0.2.5-py3-none-any.whl.

File metadata

File hashes

Hashes for simt_fly_machines-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1b30575e42db5b6513550b6cf655fda1a3a75a1a5ae8ec19b66003cc038f16c4
MD5 b64d8cdf66054a51384d5f0e417d7104
BLAKE2b-256 2f27eefc1d1968ec365dd32ac9c3a2ae3447bc809fedfb67af8b3465e5ca13c3

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