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

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.0.tar.gz (15.9 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.0-py3-none-any.whl (17.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

Hashes for simt_fly_machines-0.2.0.tar.gz
Algorithm Hash digest
SHA256 57b3e46c0a5ad337dbf134f67d7af96d362f83b5cdcd73dfbfd2a1c15cfc3d94
MD5 962268aa1d662d36da23098750bc746b
BLAKE2b-256 3ca9d73935c6de68e1f07ab354efdb3e743345ce51c69c81f57ea8207c61cad5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simt_fly_machines-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a834e4efaa4c9426020f84edad61f54cfea5c1ac93ca03779deb3774a965cc97
MD5 431c64143084c88b2735abfbc8e934a9
BLAKE2b-256 a278aad4f0393fb6ec20058c5ab395ad2028e16854ede0435a1ccd23270c7e43

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