Skip to main content

Command-line interface for TheFluxTrain APIs

Project description

thefluxtrain-cli

Command-line interface for TheFluxTrain APIs.

Install

pip install thefluxtrain-cli
# or
uv tool install thefluxtrain-cli

Commands

tft login      # Device-code sign-in via thefluxtrain.com
tft logout     # Clear local credentials and local CLI data
tft sync       # Refresh the CLI command list
tft whoami     # Show logged-in user and API key id
tft commands   # List all available API commands
tft media info # Get video, audio, or image metadata via the API

Quick start

tft login
tft commands
tft whoami

How login works

  1. tft login requests a device code from the API.
  2. Open https://thefluxtrain.com/cli/authorize and sign in if needed.
  3. Enter the code from your terminal and click Authorize CLI.
  4. The CLI stores an API key in ~/.config/thefluxtrain/credentials.json.
  5. The CLI command list is refreshed automatically after login.

Command list refresh

The CLI keeps its command list and help text up to date automatically. Run tft sync to refresh manually, then use tft commands and tft <group> <command> --help to discover what is available.

Media metadata

Probing runs on the render service (MoviePy + ffmpeg):

tft media info --file ./clip.mp4
tft media info --url UPLOAD_URL --output json

Optional env var: THEFLUXTRAIN_RENDER_API (default https://render.thefluxtrain.com, same as frontend VITE_RENDER_API).

Use the data fields (width, height, duration) when building video-editor createAsset apply actions after tft files upload.

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

thefluxtrain_cli-0.1.24.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thefluxtrain_cli-0.1.24-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file thefluxtrain_cli-0.1.24.tar.gz.

File metadata

  • Download URL: thefluxtrain_cli-0.1.24.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for thefluxtrain_cli-0.1.24.tar.gz
Algorithm Hash digest
SHA256 a2016790c82bf24a9ed26c993411c3b5c6dc2322d7556ec7192be514bdb22a64
MD5 f5072622f6c042f1caf6a70fb767b5a7
BLAKE2b-256 f21385ba4f811f19623aec681e2409b9f161c9d2ef660cce98a431a927012878

See more details on using hashes here.

File details

Details for the file thefluxtrain_cli-0.1.24-py3-none-any.whl.

File metadata

  • Download URL: thefluxtrain_cli-0.1.24-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.23 {"installer":{"name":"uv","version":"0.11.23","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

File hashes

Hashes for thefluxtrain_cli-0.1.24-py3-none-any.whl
Algorithm Hash digest
SHA256 6137e58f48fd25d38354cb98f6440837b4e157b099e2622eb5e0728143a14029
MD5 f5137da8fec422493c8df59e2e798b61
BLAKE2b-256 20da0c9d268ca2f4a15a56d8062cf16326aa5adc4d9cb139876b05bff04aeae5

See more details on using hashes here.

Supported by

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