Skip to main content

Fl33t API Client

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

Metadata

Release files for fl33t 0.6.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fl33t 0.6.2
File Size Uploaded Provenance
fl33t-0.6.2.tar.gz 14.7 kB Without provenance Details

Release files / fl33t-0.6.2.tar.gz

Download URL fl33t-0.6.2.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
10dc1c95b2b8e6c73878927024af6aeae69437606f895c8ff61f539aaaad2c15
BLAKE2b-256 checksum
How to use checksums
8d9abe0bca6a8130f30b40401f8b4dc0e04bf3d7b4bfd66015957619ab747464
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.3

Security for fl33t 0.6.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page