tremcf 0.9.6.1__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of tremcf might be problematic. Click here for more details.

@@ -0,0 +1,429 @@
1
+ Metadata-Version: 2.3
2
+ Name: tremcf
3
+ Version: 0.9.6.1
4
+ Summary: Console client for the Transmission BitTorrent daemon
5
+ License: GPL-3.0-or-later
6
+ Requires-Dist: pyperclip ; extra == 'clipboard'
7
+ Requires-Dist: geoip2 ; extra == 'geoip'
8
+ Requires-Python: >=3.10
9
+ Project-URL: Homepage, https://github.com/tremc/tremc
10
+ Project-URL: Repository, https://github.com/tremc/tremc
11
+ Provides-Extra: clipboard
12
+ Provides-Extra: geoip
13
+ Description-Content-Type: text/markdown
14
+
15
+ ## About
16
+
17
+ A console client for the BitTorrent client
18
+ [Transmission](http://www.transmissionbt.com/ "Transmission Homepage").
19
+
20
+ `tremc` is the python3 fork of [transmission-remote-cli](https://github.com/fagga/transmission-remote-cli).
21
+
22
+ ## Requirements
23
+
24
+ Python 3.2
25
+
26
+ ### Optional Modules
27
+
28
+ - python-GeoIP or python-GeoIP2: Guess which country peers come from.
29
+ - [python-pyperclip](https://pypi.org/project/pyperclip/): Copy magnet links to the system clipboard. You will also need either xclip on Linux or pbcopy on OS X for this to work.
30
+
31
+ ## Usage
32
+
33
+ ### Connection information
34
+
35
+ Authentication and host/port can be set via command line with one
36
+ of these patterns:
37
+
38
+ `$ tremc -c homeserver`
39
+
40
+ `$ tremc -c homeserver:1234`
41
+
42
+ `$ tremc -c johndoe:secretbirthday@homeserver`
43
+
44
+ `$ tremc -c johndoe:secretbirthday@homeserver:1234`
45
+
46
+ You can write this (and other) stuff into a configuration file:
47
+
48
+ `$ tremc -c johndoe:secretbirthday@homeserver:1234 --create-config`
49
+
50
+ No configuration file is created automatically. You must create it with the
51
+ `--create-config` option.
52
+
53
+ If you don't like the default configuration file path
54
+ ~/.config/tremc/settings.cfg, change it:
55
+
56
+ `$ tremc -f ~/.tremc --create-config`
57
+
58
+ ### Command line options
59
+ * **`--version`**
60
+ Show version number and exit
61
+
62
+ * **`-h --help`**
63
+ Show usage information and a list of options
64
+
65
+ * **`-s --ssl`**
66
+ Use SSL to connect to the server.
67
+
68
+ Default: don't use SSL
69
+
70
+ * **`--create-config`**
71
+ Create configuration file with default values.
72
+
73
+ *NOTE:* A config file won't be created unless you provide this option at
74
+ least once.
75
+ * **`-f CONFIGFILE --config=CONFIGFILE`**
76
+ Set path to configuration file. If not creating a config file, and CONFIGFILE
77
+ does not exist (and contains no slashes), the config directory is also
78
+ searched for CONFIGFILE or CONFIGFILE.cfg.
79
+
80
+ Default: ~/.config/tremc/settings.cfg
81
+
82
+ * **`-l, --list-actions`**
83
+ List available actions for key mapping.
84
+
85
+ * **`-k, --list-keys`**
86
+ List key names for key mapping.
87
+
88
+ * **`-n --netrc`**
89
+ Get authentication info from ~/.netrc.
90
+
91
+ * **`-X, --skip-version-check, --permissive`**
92
+ Proceed even if the running transmission daemon seems incompatible, or the terminal is too small.
93
+
94
+ * **`-p PROFILE --profile PROFILE`**
95
+ Select profile to use.
96
+
97
+ * **`-r --reverse-dns`**
98
+ Toggle display of reverse DNS of peers addresses.
99
+
100
+ Default: off, but may be set in the config file.
101
+
102
+ * **`-d [LOGFILE] --debug [LOGFILE]`**
103
+ Enable debugging messages to stderr, or to LOGFILE if provided.
104
+
105
+ ### Main user interface
106
+
107
+ `tremc` has two display modes: torrents list view and torrent details view.
108
+ In details view there are five tabs: overview, files, peers, trackers and chunks.
109
+
110
+ In list view, as well as in the files and trackers one item may be focused.
111
+ In list view and the files tab, a set of items may also be selected.
112
+
113
+ `tremc` is controlled by the keyboard. In the following list of key bindings case matters and ^ is used for the Control key.
114
+
115
+ #### Keys that work in both modes:
116
+ * Vertical movement keys:
117
+ * Up, k, ^p : move one line up
118
+ * Down, k, ^n : move one line down
119
+ * PageUp, ^b : move one screen up
120
+ * PageDown, ^f : move one screen down
121
+ * Home, g : move to top
122
+ * End, G : move to bottom
123
+
124
+ In list view, files tab and trackers tab, the focused item is moved, and the display scrolled to keep the focused item viewable.
125
+
126
+ In the other tabs, only the display is scrolled if there is more than one screen to display.
127
+
128
+ * ?, F1 : Display help window
129
+ * ^w : Quit `tremc` immediately
130
+ * X : Send the quit command to the daemon
131
+ * S : Show session statistics
132
+ * O : Show `tremc` information and options
133
+ * M : Copy magnet link to clipboard (if the pyperclip module is available)
134
+ * B : Set labels (labels require transmission 3.0 or later) +
135
+ * b : Add label +
136
+ * ^l : Remove label +
137
+ * F : Rename focused file (or torrent, if no file is focused)
138
+ * N : Start torrent now +
139
+ * p : Pause/unpause torrent +
140
+ * P : Pause/unpause all torrents
141
+ * n : Reannounce torrent +
142
+ * v, y : Verify torrent +
143
+ * \- : Decrease torrent priority +
144
+ * \+ : Increase torrent priority +
145
+ * \* : Toggle torrent's honors session limits flag +
146
+ * D : Modify torrent download bandwidth limit +
147
+ * U : Modify torrent upload bandwidth limit +
148
+ * d : Modify global download bandwidth limit
149
+ * u : Modify global upload bandwidth limit
150
+ * L : Set seed ratio of torrent +
151
+ * m : Move torrent to another directory +
152
+ * R, Shift+Del : Remove torrent and delete its data
153
+ * ` : Open menu of actions with not keyboard bindings
154
+
155
+ An action marked with + acts on:
156
+ * Viewed torrent in details mode
157
+ * Selected torrents in list mode
158
+ * Focused torrent in list mode if no torrents are selected
159
+
160
+ #### Torrent details mode keys
161
+ * Esc : Unfocus file if a file is focused, otherwise return to torrents list mode
162
+ * q, Backspace : Return to torrents list mode
163
+ * Enter : View file
164
+ * | : Enter command to view file
165
+ * x : Show file information window
166
+ * J : Move to next directory in file list
167
+ * K : Move to previous directory in file list
168
+ * Space : Select/unselect file and move to next file
169
+ * a : In files tab: select/unselect all files. In trackers tab: add a tracker to torrent
170
+ * A : Select/unselect all files in directory
171
+ * V : Visually select files
172
+ * , : Select files matching text
173
+ * < : Select files matching regular expression
174
+ * i : Invert selection
175
+ * C : Rename torrent directory containing focused file. Will not rename top directory.
176
+ * r, Del : Remove tracker
177
+ * Tab : Move to next tab
178
+ * Shift-Tab : Move to previous tab
179
+ * Right,l : Increase priority of focused or selected files. Move to next tab if no file is selected or focused.
180
+ * Left,h : Decrease priority of focused or selected files. Move to previous tab if no file is selected or focused.
181
+ * o : Move to overview tab
182
+ * f : Move to files tab
183
+ * e : Move to peers tab
184
+ * t : Move to trackers tab
185
+ * c : Move to chunks tab
186
+ * / : Search for files matching pattern
187
+ * . : Search for files matching regular expression
188
+ * s : File sort menu
189
+
190
+ #### Torrents list mode keys
191
+ * q : Quit `tremc`
192
+ * Esc : Unfocus torrent
193
+ * Enter, Right, l : Enter torrent details mode for current torrent
194
+ * o : Server options dialog
195
+ * Space : Select/unselect torrent and move to next torrent
196
+ * A : Select/unselect all torrents
197
+ * , : Select torrents matching text
198
+ * < : Select torrents matching regular expression
199
+ * i : Invert selection
200
+ * s : Torrent sort order menu
201
+ * f : Torrent filter menu
202
+ * T : Add torrent filter
203
+ * I : Edit torrent filters
204
+ * ~ : Invert filters action
205
+ * t : Toggle turtle mode
206
+ * J : Move torrent down in queue
207
+ * K : Move torrent up in queue
208
+ * r, Del : Remove torrent, keeping data +
209
+ * ^r : Remove selected torrents, keeping data
210
+ * e : Profile selection menu
211
+ * C : Change between 1,2,3 lines per torrent modes
212
+ * a : Add torrent dialog
213
+ * ^a : Add torrent (in paused mode) dialog
214
+ * / : Search for torrents matching pattern
215
+ * . : Search for torrents matching regular expression
216
+
217
+ ### Dialog windows
218
+ Various dialog windows can be opened While using the program. At any time, ^w quits the program.
219
+
220
+ In all text input dialogs, edit text with Left, Right, Home, End, Backspace, Del.
221
+ * Information windows (session statistics, key bindings):
222
+ * Escape closes the windows
223
+ * Space shows next page if there is more to display.
224
+ * Confirmation windows
225
+
226
+ Press y/n to accept or cancel. Left/Right/Tab/Shift-Tab move highlight, Enter accepts highlighted choice.
227
+ * Options window
228
+
229
+ Select option to modify by pressing the highlighted letter. Esc to close window.
230
+ * Numeric input
231
+
232
+ Use numeric keys (and period for non integer values).
233
+
234
+ Use Left/h (Right/l) to decrease (increase) the number by 10.
235
+
236
+ Use Down/j (Up/k) to decrease (increase) the number by 100.
237
+
238
+ For setting seed ratios, the small step is 0.1 (instead of 10) and the large step is 1 (instead of 100).
239
+ * Search window: Enter pattern or regular expression to search. Search happens while typing. If none found, the input line shows this by changing color. Keys:
240
+ * Esc closes the window.
241
+ * Tab completes typed pattern by searched items (files/torrents).
242
+ * Up/Down cycle through history.
243
+ * Enter moves focus to next match.
244
+ * ^r moves focus to previous match.
245
+ * Selection window: Enter pattern or regular expression to search. Then
246
+ * Esc closes the window without modifying selection.
247
+ * Tab completes typed pattern by searched items (files/torrents).
248
+ * Up/Down cycle through history.
249
+ * Enter selects matching files/torrents.
250
+ * ^r adds matching files/torrents to selection.
251
+ * ^t selects matching files/torrents only from currently selected.
252
+ * Sort menu
253
+
254
+ Select sorting key by pressing the highlighted letter, or moving the selection with Up/Down and pressing Enter. Pressing the capital letter or pressing Backspace after highlighting the desired option select reversed filter (satisfied if the condition is not met).
255
+
256
+ Selecting reverse reverses the current sorting order.
257
+
258
+ Pressing Esc leaves sort order unchanged.
259
+ * Filter menu
260
+
261
+ Select filter by pressing the highlighted letter, or moving the selection with Up/Down and pressing Enter. Pressing the capital letter or pressing Backspace after highlighting the desired option select reversed filter (satisfied if the condition is not met).
262
+
263
+ Some filters open further window to enter or select the filter parameter.
264
+
265
+ Selecting reverse reverses the current sorting order.
266
+
267
+ Pressing Esc leaves filter unchanged.
268
+ * Filters lists edit
269
+
270
+ Filtering is done by a list of sublists of filters. For an item to satisfy the list, it has to satisfies all filters in at least one sublist (DNF).
271
+
272
+ Move the cursor by using the arrow keys, d to remove marked filter, f to edit marked filter (including empty one).
273
+
274
+ Enter to accept modified list, Esc to leave window without modifying list of filters.
275
+
276
+
277
+ ## Configuration file
278
+ By default the configuration file is called settings.cfg in the XDG configuration directory for `tremc`. With default XDG configuration, this will be `~/.config/tremc/settings.cfg`.
279
+
280
+ The configuration file is in .ini format (section names in square brackets, key = value, comments start with # or ;).
281
+
282
+ The following sections are read:
283
+
284
+ * [Connection]
285
+
286
+ Keys are username, password, host, port, path, ssl (boolean).
287
+ * [Sorting]
288
+
289
+ The key 'order' determines torrents sort order. Possible values are: name, addedDate, percentDone, seeders, leechers, sizeWhenDone, status, uploadedEver, rateUpload, rateDownload, uploadRatio, peersConnected, downloadDir, mainTrackerDomain. prefix with `:` for reverse order.
290
+ * [Filtering]
291
+
292
+ Keys are invert (boolean) and filter with possible values: uploading, downloading, active, paused, seeding, incomplete, verifying, private, isolated, tracker, regex, location, selected, honors, label. The filters tracker, regex, location, label need a parameter. The parameter is provided by using `#=` as a delimiter, see [Profile] section for an example.
293
+ * [Misc]
294
+
295
+ Keys are
296
+ * lines_per_torrent, value between 1 and 3.
297
+ * torrentname_is_progressbar (boolean).
298
+ * file_viewer, name of program to run for viewing a file.
299
+
300
+ The string %%s is replaced by the file name.
301
+ * file_open_in_terminal (boolean).
302
+ * rdns (boolean), the value True enables showing the reverse DNS of connected peers. This requires the `threading` module.
303
+ * geoip2_database, The location of the Python-GeoIP2 database file. If this key does not exist, or does not point to a file, the database is also searched for in some commonly used locations.
304
+ * cancel, List of keys that act as cancel key in dialog windows. Printable characters are allowed, but act as cancel key only when not entering text.
305
+
306
+ Default is Escape, Break and q.
307
+ * x_selection, on Linux, set to `primary` to copy magnet links to S selection instead of the clipboard. Default is `clipboard`.
308
+ * save_conf when enabled `tremc` save the config file on exit. Default: False.
309
+ * [Colors]
310
+
311
+ Allows for setting (some of) the interface colors.
312
+
313
+ The format of a color is `<element> = [<base>,][fg:<color>,][bg:<color>,][a:<attr>]`,
314
+ where
315
+ - `<base>` is another element that was already defined. Its color is
316
+ copied to `<element>`, modified the by `<fb>`, `<bg>`, `<attr>`.
317
+ - Each `<color>` is one of the eight curses colors, or `default`.
318
+ - `<attr>` is a string of characters from 'rbikdu' for reverse, bold, italic, blink, dim, underlind.
319
+ Each character may be prefixed by `\*` or `-`.
320
+ Unprefixed sets the attribute, `-` resets it, and `\*` toggles.
321
+
322
+ Allowed elements are 'title_seed', 'title_download', 'title_idle', 'title_verify', 'title_paused', 'title_paused_done', 'title_error',
323
+ 'title_seed_incomp', 'title_download_incomp', 'title_idle_incomp', 'title_verify_incomp', 'title_paused_incomp', 'title_paused_done_incomp',
324
+ 'title_error_incomp', 'download_rate', 'upload_rate', 'eta+ratio', 'filter_status', 'sort_status', 'multi_filter_status', 'dialog',
325
+ 'dialog_important', 'dialog_text', 'dialog_text_important', 'menu_focused', 'file_prio_high', 'file_prio_normal', 'file_prio_low',
326
+ 'file_prio_off', 'top_line', 'bottom_line', 'chunk_have', 'chunk_dont_have'.
327
+
328
+ Names for elements in torrent list may also be prefixed by `st_` for
329
+ the attributes of the element when selected. The default is reversed. Names
330
+ for elements in file list may bu suffixes by _f, _s, or _f_s, for focused,
331
+ selected, or focused and selected.
332
+
333
+ Note that what the colors mean actually depends on the terminal. In some
334
+ cases 'white' is darker then the white that the terminal displays, and
335
+ similarly, 'black' is lighter. Setting 'default' selects the respective
336
+ background or foreground color of the terminal.
337
+
338
+ The top and bottom status lines (filter_status, multi_filter_status) and the dialog window
339
+ (dialog, dialog_important) are displayed using inverse mode, so the fg and bg
340
+ are exchanged.
341
+ * [Profiles]
342
+
343
+ The key is `profile<name>`. The value is `<filters>#=<sort>`
344
+
345
+ `<sort>` is the name of the torrent sort order, preceded by : for reversed order.
346
+
347
+ `<filters>` is `<filters.1> #& ... #& <filters.n>` (the separators are space, hash, ampersand, space)
348
+
349
+ Each <filters.i> is of the format `<filter.1>#=<param.1>#=...#=<filter.k>#=<param.k>`
350
+
351
+ `<filter.j>` is the name of a torrent filter, preceded by : for inverted. `<param.j>` is the parameter of the filter if needed, it is ignored otherwise. `<param.j>` may be empty, but the separators must appear.
352
+
353
+ A torrent satisfies a list of filters if for at least one of the `<filters.i>`, it satisfies each `<filter.j>`.
354
+
355
+ For example:
356
+
357
+ `profilet1 = tracker#=torrent.ubuntu.com#=name`
358
+
359
+ `profilexyz = tracker#=torrent.ubuntu.com#=incomplete#= #& :regex#=ubuntu#=sizeWhenDone`
360
+
361
+ The profile `t1` shows only torrents with tracker torrent.ubuntu.com, sorted by name.
362
+ The profile `xyz` shows torrents which are either with tracker torrent.ubuntu.com and incomplete, or with a name that does not contain the string ubuntu (case insensitive). The torrents are sorted by size.
363
+ * [CommonKeys], [DetailsKeys], [ListKeys]
364
+
365
+ Map keys to actions. ListKeys section is for keys pressed in torrent list display, DetailsKeys for torrent details display, and CommonKeys for both.
366
+
367
+ The format is key = action.
368
+
369
+ A list of action is available by running `tremc -l`.
370
+
371
+ Key names are: letters (case sensitive), a_ for ^a, etc. Symbols (comma, semicolon, etc.) are denoted by their name. See list by running `tremc -k`.
372
+
373
+ ## Calling transmission-remote
374
+
375
+ tremc forwards all arguments after '--' to transmission-remote.
376
+ This is useful if your daemon requires authentication or doesn't listen on the
377
+ default localhost:9091.
378
+ tremc reads HOST:PORT and authentication from the config file and forwards them
379
+ to transmission-remote, along with your arguments.
380
+
381
+ Some examples:
382
+
383
+ `$ tremc -- -l`
384
+
385
+ `$ tremc -- -t 2 -i`
386
+
387
+ `$ tremc -- -as`
388
+
389
+
390
+ ### Add torrents
391
+
392
+ If you provide only one command line argument and it doesn't start with '-',
393
+ it is treated as a torrent file/URL and submitted to the daemon via
394
+ transmission-remote. This is useful because you can instruct Firefox to open
395
+ torrent files with tremc.
396
+
397
+ `$ tremc http://link/to/file.torrent`
398
+
399
+ `$ tremc path/to/some/torrent-file`
400
+
401
+ ## Installing
402
+
403
+ `tremc` does not need installation. The only file necessary is the file `tremc` itself.
404
+
405
+ To run the latest git version run something like:
406
+ ```
407
+ $ wget https://github.com/tremc/tremc/raw/refs/heads/master/tremc
408
+ $ python ./tremc
409
+ ```
410
+
411
+ In order to be able to run it by the simple command `tremc`, you may want to copy it to some directory $PATH, and fix the first line to ensure it points to a python3 interpreter.
412
+
413
+ ## Screenshots
414
+
415
+ ![Main window - full](screenshots/screenshot-mainfull-v1.3.png)
416
+
417
+ ![Main window - compact](screenshots/screenshot-maincompact-v1.3.png)
418
+
419
+ ![Details window](screenshots/tremc-details-20171214.png)
420
+
421
+
422
+ ## Copyright
423
+
424
+ Released under the GPLv3 license, see [COPYING](COPYING) for details.
425
+
426
+ ## Contact
427
+
428
+ Feel free to request new features or provide bug reports.
429
+ https://github.com/tremc/tremc