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 hashes)
Built Distribution
Close
Hashes for file_grouper-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ed2a76b8e9937c40d21c9c017944b5f299fc4880358514f7bf166846feefa5f7 |
|
MD5 | 32d774d27d00c7fc61389659d8ad8491 |
|
BLAKE2b-256 | ef2d9f2d30f27958dd768778070f93a5d2844725295bbe1694fb971731d787e0 |