Skip to main content

A Python script to organize your downloads folder by file extensions and mimetypes.

Project description

Download Organizer ⬇️

A Python script to organize your downloads folder by file extensions and mimetypes.

Installation

Using pipx (recommended ✓)

pipx install dlorg

Manual

  1. Clone the repository:

    git clone https://github.com/at-pyrix/dlorg.git
    cd dlorg
    
  2. Install the dependencies and the CLI tool:

    pipx install .
    

Usage

$ dlorg

Custom Downloads Folder

If your downloads folder is different from the default (~/Downloads), update the folder variable in dlorg.py to the desired path.

Custom category configuration

If you want to manually edit the file category. You can edit the config.json file, whose location can be obtained by the command:

$ dlorg --config

Folder Categories

The script sorts files into the following categories by default:

  • Audio: 8svx, aac, ac3, aiff, amb, au, avr, caf, cdda, cvs, cvsd, cvu, dts, dvms, fap, flac, fssd, gsrt, hcom, htk, ima, ircam, m4a, m4r, maud, mp2, mp3, nist, oga, ogg, opus, paf, prc, pvf, ra, sd2, sln, smp, snd, sndr, sndt, sou, sph, spx, tta, txw, vms, voc, vox, w64, wma, wv
  • Archive: 7z, deb, pkg, rar, rpm, tar.gz, z, zip, tar.bz2, tar.xz, gz, bz2, xz
  • Code: c, class, cpp, cs, css, go, h, htaccess, html, java, js, json, kml, php, pl, py, rb, sql, swift, vb, yaml
  • Documents: csv, djvu, doc, docx, odp, ods, odt, ott, pdf, ppt, rtf, txt, xls, xlsx, md
  • Ebooks: azw3, epub, fb2, lrf, mobi, pdb, snb
  • Images: bmp, cr2, cur, dds, dng, erf, exr, fts, gif, hdr, heic, heif, ico, jfif, jp2, jpe, jpeg, jpg, jps, mng, nef, nrw, orf, pam, pbm, pcd, pcx, pef, pes, pfm, pgm, picon, pict, png, pnm, ppm, psd, raf, ras, rw2, sfw, sgi, svg, tga, tiff, wbmp, webp, wpg, x3f, xbm, xcf, xpm, xwd
  • Programs: apk, bin, jar, msi, exe, appimage, run, sh, fish
  • Videos: 3gp, asf, avi, f4v, flv, hevc, m2ts, m2v, m4v, mjpeg, mkv, mov, mp4, mpeg, mpg, mts, mxf, ogv, rm, swf, ts, vob, webm, wmv
  • Fonts: cff, dfont, otf, pfb, ps, sfd, ttf, woff

[!NOTE] If no category is detected, the script will try relying on MIMEtypes. If it still returns nothing, the file will NOT be moved.

License

This project is licensed under the GNU General Public License v3.0 - see the LICENSE file for details.

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

dlorg-2.2.tar.gz (16.6 kB view details)

Uploaded Source

Built Distribution

dlorg-2.2-py3-none-any.whl (17.2 kB view details)

Uploaded Python 3

File details

Details for the file dlorg-2.2.tar.gz.

File metadata

  • Download URL: dlorg-2.2.tar.gz
  • Upload date:
  • Size: 16.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.10.1-arch1-1

File hashes

Hashes for dlorg-2.2.tar.gz
Algorithm Hash digest
SHA256 d5a018fc7940505bd23e0e9287a772e3a3f6be130ab8e7e7feb96f44879b2f52
MD5 163b2d54deeb40a5ce1a32d5baad7325
BLAKE2b-256 16b5f55f31f08c5d49712d2a71641a7fa4385f4e515526845043f05d15bd070b

See more details on using hashes here.

File details

Details for the file dlorg-2.2-py3-none-any.whl.

File metadata

  • Download URL: dlorg-2.2-py3-none-any.whl
  • Upload date:
  • Size: 17.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.3 CPython/3.12.4 Linux/6.10.1-arch1-1

File hashes

Hashes for dlorg-2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e6652f5d5add718f39fe578955249444f0ff2d5d5c1da73bd9263a64ef8270a5
MD5 ab94884b8b52fcc6154cb9853e3c1a99
BLAKE2b-256 36cdb3b353c7d8c2a5662c37af3ee5b568d872f9980d0fe242bf6b737c7bb1be

See more details on using hashes here.

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