Skip to main content

Help keep your files and folders tidy by file type or date

Project description

Tidyup 🧹

Sweep up your files into organized folders by date and/or extension.

Description

tidyup helps organize messy directories by moving eligible files into a predictable folder structure.

Install

pip install tidyup

Usage

tidyup [-h] [-e] [-d] [-r] [-L DEPTH] directory

Options

  • -e: organize by extension
  • -d: organize by file modified date (year/month)
  • -r, --rearrange: traverse subdirectories recursively
  • -L, --depth: recursion depth (valid only with -r)

Ordering Behavior

Order is preserved:

  • -de => year/month/extension/file
  • -ed => extension/year/month/file

Recursive Behavior

  • -r without -L defaults to depth 2
  • -L without -r is invalid

Exclusion Behavior

By default, tidyup excludes:

  • hidden files (dotfiles)
  • names/suffixes in the internal exclusion list (for example requirements.txt, config.json)
  • files without an extension
  • multi-extension files are grouped by their final suffix (for example archive.tar.gz goes to gz/)

Collision Behavior

  • tidyup never overwrites an existing destination file
  • if a destination filename already exists, that move is skipped and a message is printed
  • when multiple source files would target the same destination in one run, tidyup processes them in a stable path order so the outcome stays deterministic

Examples

# Organize top-level files by extension
tidyup -e /path/to/dir

# Organize top-level files by date
tidyup -d /path/to/dir

# Organize by extension then date
tidyup -ed /path/to/dir

# Organize by date then extension
tidyup -de /path/to/dir

# Recursive organize by date, default depth=2
tidyup -r -d /path/to/dir

# Recursive organize by extension, default depth=2
tidyup -r -e /path/to/dir

# Recursive organize by extension at depth 3
tidyup -r -L 3 -e /path/to/dir

# Recursive organize by date at depth 3
tidyup -r -L 3 -d /path/to/dir

Quality Gate

Run the same baseline checks locally that CI uses before release or publishing:

python3 -m pip install -e .[test] || python3 -m pip install -e . pytest
python3 -m pytest -q
python3 -m tidyup -h

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

tidyup-0.0.4.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tidyup-0.0.4-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file tidyup-0.0.4.tar.gz.

File metadata

  • Download URL: tidyup-0.0.4.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tidyup-0.0.4.tar.gz
Algorithm Hash digest
SHA256 2736f4ee44f5b0e9edecf8671e69dbcc8ed5bfbc28a4f2bcce3a63ec36da209d
MD5 bf6cac673c3885a2e3cc3f6d9656e123
BLAKE2b-256 7400479a9a7c3cec7bda86000bab040f72a290d3381cde02a348bee27c63745b

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidyup-0.0.4.tar.gz:

Publisher: publish-to-pypi.yml on Esturban/tidyup

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file tidyup-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: tidyup-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for tidyup-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 9930d37091d325a62d1b898b373b4cd340c11faf56445b7b8ca241a96b6db864
MD5 bb7106c7d00fc4664d59e36cc5b628ad
BLAKE2b-256 2b816f15e6b3dcf1e2028c538d26e9776c7d4235fcd86c3fb5a0da4a9bbd65f3

See more details on using hashes here.

Provenance

The following attestation bundles were made for tidyup-0.0.4-py3-none-any.whl:

Publisher: publish-to-pypi.yml on Esturban/tidyup

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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