Skip to main content

No project description provided

Project description

Fly.io Python SDK (Unofficial)

The fly-python-sdk library is an unofficial Python API wrapper for Fly.io's Machines API.

Installation

pip install fly-python-sdk

How to Use

In order to use fly-python-sdk, you'll need to obtain a valid authentication token. To do this, use flyctl's fly auth token command or create a new token in your Fly.io dashboard.

Orgs

Create an App

import asyncio

from fly_python_sdk.fly import Fly

fly = Fly("FLY_API_TOKEN")

asyncio.run(fly.Org("my-org").create_app(app_name="fly-away"))

List Apps

import asyncio

from fly_python_sdk.fly import Fly

fly = Fly("FLY_API_TOKEN")

asyncio.run(fly.Org("my-org").list_apps())

Apps

Delete an App

import asyncio

from fly_python_sdk.fly import Fly

fly = Fly("FLY_API_TOKEN")

asyncio.run(fly.Org("my-org").App("fly-away").delete())

Inspect an App

import asyncio

from fly_python_sdk.fly import Fly

fly = Fly("FLY_API_TOKEN")

asyncio.run(fly.Org("my-org").App("fly-away").inspect())

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

fly_python_sdk-0.3.4.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

fly_python_sdk-0.3.4-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

Details for the file fly_python_sdk-0.3.4.tar.gz.

File metadata

  • Download URL: fly_python_sdk-0.3.4.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/23.0.0

File hashes

Hashes for fly_python_sdk-0.3.4.tar.gz
Algorithm Hash digest
SHA256 06e7e10805ff8c835e5b3e2bcee83e955c3c5f97320d09eb1da3c20d7ab3c613
MD5 9cad1a9d96cc5c2ef4cba23d6dc2d8e1
BLAKE2b-256 809febaf42aa2789304a2f1d8551e144efb54b50d9e1fd074afb3cae3245d3a7

See more details on using hashes here.

File details

Details for the file fly_python_sdk-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: fly_python_sdk-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.5 Darwin/23.0.0

File hashes

Hashes for fly_python_sdk-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 88130de5c9447261027a03bf2a79adefa6d3c65fd757ad20b85d1bcb95756ccc
MD5 bd53c3be4fac86ef118a651da0efb8fd
BLAKE2b-256 4e4865c6ab783c23409f922e0bf64a4a02736790e891771f4e18c4bf68b53d17

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page