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
Abstract base class for commands |
|
Print |
|
Print |
|
Find, download and re-upload poster for movie, series or season |
|
Generate properly formatted release name |
|
Searching for and verifying scene release |
|
Create screenshots from video file and optionally upload them |
|
Change or show configuration file options |
|
Generate all required metadata and upload to tracker |
|
Commands related to torrent files |
|
Upload images to image hosting service |
|
Search online database like IMDb to get an ID |
Functions
- upsies.uis.tui.commands.run(args)[source]
Instantiate
CommandBaseThis is just a thin wrapper around
run()that ensures all commands are registered first.- Parameters:
args – CLI arguments