numerator
Script that automatically renames files, so they get equally zero left padded names.
Usage
Imagine you have this folder:
PS C:\test> ls
Directory: C:\test
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 16.12.2022 15:17 0 file-090.jpg
-a--- 16.12.2022 15:17 0 file-1.jpg
-a--- 16.12.2022 15:17 0 file-100.jpg
-a--- 16.12.2022 15:17 0 file-5.jpg
-a--- 16.12.2022 15:17 0 file-80.jpg
-a--- 16.12.2022 15:17 0 info.txt
And you want all files named "file-XXX.jpg" (except for the "info.txt").
Checking possible renames without actual changes:
pip install numerator
cd C:\test
numerator --dry-run
Renaming 6 files to padding 3
"C:\test"
1. Planning to rename 'file-1.jpg' to 'file-001.jpg'
2. Planning to rename 'file-5.jpg' to 'file-005.jpg'
3. Planning to rename 'file-80.jpg' to 'file-080.jpg'
Actual renaming operation:
cd C:\test
numerator
Renaming 6 files to padding 3
"C:\test"
1. Renamed 'file-1.jpg' to 'file-001.jpg'
2. Renamed 'file-5.jpg' to 'file-005.jpg'
3. Renamed 'file-80.jpg' to 'file-080.jpg'
Contents of the folder after execution:
PS C:\test> ls
Directory: C:\test
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a--- 16.12.2022 15:17 0 file-001.jpg
-a--- 16.12.2022 15:17 0 file-005.jpg
-a--- 16.12.2022 15:17 0 file-080.jpg
-a--- 16.12.2022 15:17 0 file-090.jpg
-a--- 16.12.2022 15:17 0 file-100.jpg
-a--- 16.12.2022 15:17 0 info.txt
Metadata
Release files for numerator 1.0.1
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 |
|---|---|---|---|---|
| numerator-1.0.1.tar.gz | 5.7 kB | Without provenance | Details for numerator-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| numerator-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for numerator-1.0.1-py3-none-any.whl |
Total release size: 12.2 kB
Release files / numerator-1.0.1.tar.gz
| Download URL | numerator-1.0.1.tar.gz |
|---|---|
| Size | 5.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
82c9ec0de93745aefc886f6f643378007949d4693185ab7122d3a9450e501df3
|
|
BLAKE2b-256 checksum How to use checksums |
d3f982a7ebbfbc3a382ffd5f3c856257c1af6446b7645f3bba053a4b9fc59b98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Release files / numerator-1.0.1-py3-none-any.whl
| Download URL | numerator-1.0.1-py3-none-any.whl |
|---|---|
| Size | 6.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8a0025dfd1f60c81eebe7ad78746197a594da8603377a7c377c797cb407ebb43
|
|
BLAKE2b-256 checksum How to use checksums |
afcb66bc09e48cb20ca5ad65ab9a5c08619e30bc364d3da91a5b611b7d69da98
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.10.9
|
Security for numerator 1.0.1
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.