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
Release history Release notifications | RSS feed
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.2.tar.gz
(7.5 kB
view hashes)
Built Distribution
Close
Hashes for fly_python_sdk-0.3.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1133fc3d7c82566f73c3462e673e05ce0669e71e9106269429394f38fb2ce8ae |
|
MD5 | adfb45c0d28bfe530df5814d6cb6b99f |
|
BLAKE2b-256 | 3d8b5fec832cff6553d4d7425f080360a80ba8ce4b6f0c7f8817b3700102e905 |