Migrating from pyroscope
Configuration
- The configuration file is located in a new location by default
(
~/.config/pyrosimple/config.toml), and uses a new format. Although the names have remained mostly the same, it is recommended to manually copy settings over to the new format. See the configuration guide for more information.
Common CLI options
- Logging has been overhauled.
--cronis now an alias for--quiet. All logging goes to stderr. --config-dirand--config-filehave been removed. Set thePYRO_CONFenvironment variable use a non-default config file.-Dhas been removed. Use an environment variable to override specific parts of the configuration instead.
rtxmlrpc
-x, --xml, -r, --reprfor XML output is no longer available. See--output <format>for the new options.- REPL
mode no longer triggers automatically with 0 arguments. To enter it,
use the
--replflag.
pyroadmin
pyroadmin has been completely rebuilt. See pyroadmin --help for
available utilities.
rtcontrol
- Multiple actions flags are allowed, and the order in which they are
specified is the order in which they are executed. Previously, only
some combinations were allowed, and order did not matter. See
rtcontrol --helpfor the list of flags which are considered "actions". - The
--annealflag has been removed. Use core Linux utilities (e.g.sortanduniq) instead. - Matching an empty string with a blank value (e.g.
message=) will no longer work as expected. Use an empty quoted string instead: - String matching is now case-sensitive by default. To use
case-insensitive matching, use a regex with the
iflag, e.g.name=/UbUnTu.*/i - Relative times (e.g.
2d3m) are now case-sensitive. - Using
,as an implicitORno longer works. Use an explicitORor a regex instead:
Templating
- Tempita has been replaced with Jinja2. The syntax is similar but not equivalent.
- The string interpolation format style has been removed. Use the Jinja2 template instead.
--exec
- All commands now use the full name. As such, the
:signifier no longer has any effect.# Old rtcontrol // --exec "directory.set={{item.directory}}/{{item.custom_target_folder}}" rtcontrol --exec ":event.download.finished=" loaded=-10i done=100 # New rtcontrol // --exec "d.directory.set={{item.directory}}/{{item.custom_target_folder}}" rtcontrol --exec "event.download.finished=" loaded=-10i done=100
pyrotorque
- All job handlers (the
handler =setting inconfig.toml) have been moved under thepyrosimple.jobsubmodule. Specifically:pyrocore.torrent.watch:QueueManager->pyrosimple.job.queue:QueueManagerpyrocore.torrent.watch:TreeWatch->pyrosimple.job.watch:TreeWatchpyrocore.torrent.jobs:EngineStats->pyrosimple.job.metrics:EngineStats
TreeWatch: Thequeuedsetting no longer has any effect. Use the following configuration to achieve the same effect if desired:
chtor
- The
--no-sslflag has been removed. Manually specifying a non-SSL announce still works as expected.
hashcheck
- This command has been removed. Use
lstor --check-data <path>instead.
rtmv
- This command has been removed. See this discussion
for more information, and a way to run the legacy conversion of the
command. Use
rtcontrolwith the--symlinkflag instead.