upsies.uis.tui.commands

CLI subcommands

A command provides a jobs property that returns a sequence of JobBase instances.

It is important that the jobs are only instantiated once and the jobs property doesn’t create new jobs every time it is accessed. The easiest way to achieve this is with the functools.cached_property() decorator.

CLI arguments are available as args and configuration files as config. These should be used to create arguments for jobs.

The docstrings of CommandBase subclasses are used as the description in the --help output.

Modules

base

Abstract base class for commands

bdinfo

Print bdinfo output

mediainfo

Print mediainfo output

poster

Find, download and re-upload poster for movie, series or season

release_name

Generate properly formatted release name

scene

Searching for and verifying scene release

screenshots

Create screenshots from video file and optionally upload them

set

Change or show configuration file options

submit

Generate all required metadata and upload to tracker

torrent

Commands related to torrent files

upload_images

Upload images to image hosting service

webdb

Search online database like IMDb to get an ID

Functions

upsies.uis.tui.commands.run(args)[source]

Instantiate CommandBase

This is just a thin wrapper around run() that ensures all commands are registered first.

Parameters:

args – CLI arguments