Skip to main content

Fl33t API Client

Project description

The Fl33t API Client is a Python module for interacting with fl33t. It requires Python 3+.

Example usage

Setup a Fl33t client:

from fl33t import Fl33tClient

team_id = '<your-team-id>'
token = '<your-token>'

client = Fl33tClient(team_id, token)

Retrieve all trains/fleets/devices and if there are any upgrades pending:

for train in client.list_trains():
    print(train)
    for fleet in train.fleets():
        print(fleet)
        for device in fleet.devices():
            print(device)
            fw_upgrade = device.upgrade_available()
            if fw_upgrade:
                print(fw_upgrade)

Upload new build to a train:

train_id = '<your-train-id>'
version = '<your-version-id>'
filename = '<full/path/to/your-firmware-file>'

build = client.Build(
    train_id=train_id,
    version=version,
    filename=filename
)

print(build.create())

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
fl33t-0.5.0.tar.gz (11.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page