Group file based on file name pattern defined by regex.
Project description
Usage
I use this script to group beestar maths worksheet
pipx install file-grouper
group_file --no-dryrun --key_regex "(grade_03_.*)_\d\d" --group_no 1 --dst_root grade3_group\ grade3\*
Setup Dev Environment
First clone this repo then change to the repo directory.
Then run following command:
pip install poetry
poetry install # Create virtual environement, install all dependencies for the project
poetry shell # activate the virtual environment
pre-commit install # to ensure automatically formatting, linting, type checking and testing before every commit
If you want to run unit test manually, just activate virtual environment and run:
pytest
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
file_grouper-0.1.2.tar.gz
(3.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file file_grouper-0.1.2.tar.gz.
File metadata
- Download URL: file_grouper-0.1.2.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.7.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
711cb131464bf4b923370b5f19bc06742a6a26e11b3d65b982d3a0997a41e278
|
|
| MD5 |
4a058208692749bebbdd210422bed13f
|
|
| BLAKE2b-256 |
7e4c692e716e986436188c8dbccc3a5e145f31c61dfad5fa3ceb07fb8f3048e2
|
File details
Details for the file file_grouper-0.1.2-py3-none-any.whl.
File metadata
- Download URL: file_grouper-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.12 CPython/3.7.5 Windows/10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ed2a76b8e9937c40d21c9c017944b5f299fc4880358514f7bf166846feefa5f7
|
|
| MD5 |
32d774d27d00c7fc61389659d8ad8491
|
|
| BLAKE2b-256 |
ef2d9f2d30f27958dd768778070f93a5d2844725295bbe1694fb971731d787e0
|