Skip to main content

sorta

Get rid of clutter in your directories. Sorta organizes your files by moving them to different folders based on their filetype and extensions.

We tend to download files on our PC's very often and usually this tends to pile up and before you know it, your downloads folder turns into a messy room. Or, you might just like to be organized and have a nice looking desktop. Sorta will take care of this for you by moving your notes, documents, music, images and videos into categorized folders.

It then takes this a step further by creating subfolders that stores files with the same extension.

Installation

$ pip install sorta

Basic Usage

Organizes files in your (documents,desktop, and downloads directories) by their filetypes.

$ sorta

Organize files in a single specified directory by their filetype.

$ sorta -d /path/to/directory

By category

By default, sorta groups your files by their filetype. You can also choose to organize them by categories by using the command line flags '-c' or '--category'. You will have to create your own categories by using the '-ac' or '--addcategory' flags when sorta is first installed. These categories contain keywords or phrases that you would specify (it is best to make them as descriptive as possible so that Sorta can make the correct assignments). If a keyword/phrase was found in a filename, the file will be moved to the corresponding category's folder. Files that did not match any categories will simply be ignored.


Organize your files in (documents,desktop and downloads) by category.

$ sorta -c

Organize your files in a specific directory by category.

$ sorta -d /path/to/directory -c

Allow sorta to run at intervals

Note: In order to run Sorta in the background, you'll have to run a daemon command or your system's equivalent with Sorta along with the specified arguments(see below) as the process. Here is an example of running Sorta indefinitely, allowing it to clean up your directories periodically every 15 minutes. You can stop this by pressing Ctrl+c.

$ sorta -b -i 15

Command Line Arguments

usage: sorta [-h] [-b] [-d] [-i] [-c] [-ac]

Sorta, organize your filesystem. Running sorta without arguments organizes
your files in (documents,desktop, and downloads) by their filetype.

optional arguments:
  -h, --help          show this help message and exit
  -b, --background    Runs sorta indefinitely.
  -d , --directory    The directory you want to run sorta on.
  -i , --interval     How frequently you want sorta to run, in minutes.
  -c, --category      Sort files by category.
  -ac, --addcategory  Add or update an existing category to group files by.

Release files for sorta 0.0.2

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

Source distribution (sdist)

Source distribution for sorta 0.0.2
File Size Uploaded
sorta-0.0.2.tar.gz 6.0 kB Details

Built distribution (wheel)

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

Total release size: 12.5 kB

Release files / sorta-0.0.2.tar.gz

Download URL sorta-0.0.2.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
31b7df81cc8404223d15d9f786e68d67a69a22be18b4b82707897c4bc7d21632
BLAKE2b-256 checksum
How to use checksums
61b7cf1c3f1c5dce09aadf1dd2243b2e206f81c2c8648cb8737fcc064df140be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3

Release files / sorta-0.0.2-py3-none-any.whl

Download URL sorta-0.0.2-py3-none-any.whl
Size 6.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7bb516c181991eb81aa2fba238b37ee4ffdb3b6d9371007dcbff69544950a376
BLAKE2b-256 checksum
How to use checksums
55023a585a591ce68d1edc56506d76d8d00cc8b23137ce9a36dbea34e26147af
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.21.0 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.7.3

Release history Release notifications | RSS feed

This release

0.0.2 This release

2 release files

0.0.1

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