Skip to main content

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


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)

Uploaded Source

Built Distribution

file_grouper-0.1.2-py3-none-any.whl (3.8 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page