Skip to content

bwhli/fly-python-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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())

About

A Python SDK for interacting with the Fly.io API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages