batchlink
Batch link files without modifying original files.
Why
To solve the problem - Is there a way to rename files from a torrent and still be able to seed? If you are serving BT files on a media server like Jellyfin, you may want this.
Features
- A CLI to easily batch link, rename, copy files.
- An extensible library.
Installation
Besides package managers, you can also use self-contained executables for Linux, macOS and Windows from Releases.
Examples
Create example files:
mkdir -p a b && touch a/0.log a/1.log a/1.txt a/2.txt
Create hard links in b/ pointing to all files in a/ with original file names:
$ batchlink -S a -d b '*' '{path}'
Create hard link b/0.log to a/0.log
Create hard link b/1.log to a/1.log
Create hard link b/1.txt to a/1.txt
Create hard link b/2.txt to a/2.txt
Only create links for log files:
$ batchlink -S a -d b '*.log' '{path}'
Create hard link b/0.log to a/0.log
Create hard link b/1.log to a/1.log
And rename to one-based numbering file names:
$ batchlink -S a -d b '*.log' '{num}.log'
Create hard link b/1.log to a/0.log
Create hard link b/2.log to a/1.log
Format replacement values:
$ batchlink -S a -d b '*.log' '{num:02}.log'
Create hard link b/01.log to a/0.log
Create hard link b/02.log to a/1.log
Absolute symbolic link, relative symbolic link, rename, copy:
batchlink -s -S a -d b '*.log' '{num:02}.log'
batchlink -sR -S a -d b '*.log' '{num:02}.log'
batchlink -r -S a -d b '*.log' '{num:02}.log'
batchlink -c -S a -d b '*.log' '{num:02}.log'
Metadata
Release files for batchlink 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| batchlink-1.1.0.tar.gz | 6.6 kB | Without provenance | Details for batchlink-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| batchlink-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for batchlink-1.1.0-py3-none-any.whl |
Total release size: 14.3 kB
Release files / batchlink-1.1.0.tar.gz
| Download URL | batchlink-1.1.0.tar.gz |
|---|---|
| Size | 6.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3df7396e5b4c095cdba8d06dcfd91c4de405f6139b5063e7ab87f8942c2fe8e5
|
|
BLAKE2b-256 checksum How to use checksums |
f67976005e1f32f8fbc0cb9d38f012ebb5e9f7b16d6466b9ac35973ecc19d0b5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.20.1 CPython/3.10.12 Linux/6.5.0-1025-azure
|
Release files / batchlink-1.1.0-py3-none-any.whl
| Download URL | batchlink-1.1.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
972e56e510371cf6a69d6d68511615d4faad7cbe3778eb6800926c888e71c8dc
|
|
BLAKE2b-256 checksum How to use checksums |
09d47c5acd297d33196b16e3d59c2351d09686926f27a316eec87ba877677303
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
pdm/2.20.1 CPython/3.10.12 Linux/6.5.0-1025-azure
|
Security for batchlink 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.