Skip to main content

downsweep

Sort a messy Downloads folder into neat folders with one command. Make your own rules. Changed your mind? Undo it.

PyPI License Python

Your Downloads folder is full of PDFs, installers, screenshots and zip files all mixed together. downsweep sorts them into Images, PDFs, Documents, Programs and more in a few seconds, lets you add your own rules, and lets you reverse it if you don't like the result.

See it in action

downsweep preview with a custom rule

Install

pip install downsweep

Quick start

See what would happen first. Nothing is moved:

downsweep --preview

Clean your Downloads folder:

downsweep

Changed your mind? Move everything back:

downsweep --undo

Clean any other folder:

downsweep "C:\path\to\folder"

Your own rules

Want all your PDFs in a folder called Study? Save a rule once and downsweep remembers it:

downsweep --add-rule .pdf Study

See your rules:

downsweep --rules

Forget a rule:

downsweep --remove-rule .pdf

Your rules always win over the built-in sorting, and undo cleans up your custom folders too.

Features

Feature What it does
Preview mode Shows what would move, changes nothing
Custom rules Send any file type to a folder you choose
Undo Moves the last cleanup's files back where they were
Summary Prints how many files went into each folder
Safe by design Never overwrites a file, adds (1), (2) to duplicate names
Download-aware Skips files still downloading, like .crdownload and .part
Zero dependencies Only uses Python's standard library

Folders it creates

Images, Videos, Audio, PDFs, Documents, Archives, Programs, Code and Other, plus any folders from your own rules.

Good to know

  • Undo reverses the last cleanup of a folder only.
  • After a cleanup, a small file called .downsweep_log.json is saved inside the folder. That is how undo remembers what moved. Please don't delete it if you want to undo.
  • Your rules are saved in a small file called .downsweep_rules.json in your home folder, and they apply to every folder you clean.
  • A rule's folder is created inside the folder being cleaned, so use a simple name like Study, not a full path.
  • Only files directly inside the folder are sorted. Existing sub-folders are left alone.

License

MIT

Metadata

Release files for downsweep 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for downsweep 0.3.0
File Size Uploaded
downsweep-0.3.0.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for downsweep 0.3.0
File Interpreter ABI Platform
downsweep-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.4 kB

Release files / downsweep-0.3.0.tar.gz

Download URL downsweep-0.3.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
48cce576e0bbbb405de4c8ac0194470d358e612840211f7fef909320ccaf36f4
BLAKE2b-256 checksum
How to use checksums
064535c1e2227653d7096deb37bee3b77d70c8d738a60c1a45121a5a69570e97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release files / downsweep-0.3.0-py3-none-any.whl

Download URL downsweep-0.3.0-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
89d7de23da57b4e1688d466f47d71649549360a4ab53f761d7ffe94ee4799592
BLAKE2b-256 checksum
How to use checksums
85da3c13fa91992ce62f449a2e62597ef1d39a4e0f8a8210640f4963651007c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.6

Release history Release notifications | RSS feed

0.4.0

2 release files

0.3.1

2 release files

This release

0.3.0 This release

2 release files

0.2.1

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page