Torf

Latest version: v4.2.6

Safety actively analyzes 628924 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 6 of 10

2.1.0

- Keep piece size smaller for large torrents and use more pieces to
compensate.
- Implement your own piece size calculation of arbitrary complexity by simply
overloading Torrent.calculate_piece_size().

2.0

- Support for default arguments and special profiles in ~/.config/torf/config
or any file specified by --config or -f.
- Use \e[0E instead of \e[1` to clear the line when showing progress.
(marcelpaulo)
- If output is not a TTY, "Progress ..." lines are not cleared but followed by
a newline character and the rest of the line is parsable like the other
output.
- Long or multiline torrent file comments are now properly indented.
- --exclude patterns are now matched against each directory/file name in a
path instead of just the file name.
- Torrent file and magnet link are now both created by default, and the
--magnet option was replaced by --nomagnet and --notorrent.
- In the output 'Magnet URI' was shortened to 'Magnet', 'Torrent File' was
shortened to 'Torrent' and 'Creation Date' was shortened to 'Created'.
- The default for --date was changed from 'today' to 'now'.

2.0.0

- Use proper version number scheme
- Raise PieceSizeError if 'piece_size' is set to a number that isn't a power
of two

1.5

- New methods read_stream() and write_stream() to import/export a torrent from
any file-like object

1.4

- New method: calculate_piece_size()
- Piece size is now automatically calculated when path is set instead of
calculating it on demand when requested
- Setting piece size to a non-number now raises ValueError instead of
RuntimeError
- Exclude patterns are now matched against every part of a file's path, not
just the last part (i.e. the file name)
- Setting torrent.path to '.' or '..' now sets the correct name
- Torrent instances are equal (==) if their metainfo is equal
- Torrent instances are hashable
- Torrent instances can be copied with the copy() method or the copy module
from the standard library

1.3

- Fix 'filepaths' attribute when setting a custom name

Page 6 of 10

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.