A utility to sort files by type and date.
Project description
Sortium
Sortium is a Python utility that automatically organizes files in a directory based on their type (e.g., Images, Documents, Videos, etc.) and optionally by their last modified date.
Table of Contents
Features
- Automatically organizes files into folders by type:
- Images, Documents, Videos, Music, Others
- Optional sorting by last modified date within each category
- Optional flattening of subdirectories into a single level before sorting
Installation
PyPI
To install from PyPI:
pip install sortium
To install from source:
git clone https://github.com/Sarthak-G0yal/Sortium.git
cd Sortium
pip install -e .
Running Tests
To run the test suite with coverage reporting:
pytest src/tests --cov=src/sortium
Refer to the Test Suite README for test structure and guidelines.
Author
Sarthak Goyal Email: sarthakgoyal487@gmail.com
License
This project is licensed under the GNU General Public License v3.0.
Contributing
Contributions are welcome.
To contribute:
- Fork the repository
- Create a new branch (
feature/my-featureorfix/my-fix) - Write tests for your changes
- Commit with clear, conventional messages
- Open a pull request with a description of your changes
Please follow the Conventional Commits specification. Ensure all code is linted and tested before submitting.
Documentation and Issues
This project uses Sphinx for documentation.
-
To build the documentation locally:
cd docs make html
View the generated files at
docs/_build/html/index.html. -
Online documentation: View Documentation
-
For issues and feature requests: Open an issue
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sortium-1.5.0.tar.gz.
File metadata
- Download URL: sortium-1.5.0.tar.gz
- Upload date:
- Size: 22.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
afa27e9746901ad387f2c72fed619661df0e8c4baf20b9f88bceb97ae49ccedd
|
|
| MD5 |
f10e61e4b03fc8a9ac9e609b6c51ac79
|
|
| BLAKE2b-256 |
a8ffdba39d0cd32def3fe680c59a9baf2d8c1dec417cf89331bfdc23fe9c7656
|
Provenance
The following attestation bundles were made for sortium-1.5.0.tar.gz:
Publisher:
release.yaml on Sarthak-G0yal/Sortium
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sortium-1.5.0.tar.gz -
Subject digest:
afa27e9746901ad387f2c72fed619661df0e8c4baf20b9f88bceb97ae49ccedd - Sigstore transparency entry: 243937911
- Sigstore integration time:
-
Permalink:
Sarthak-G0yal/Sortium@586e9e6456a153bcaf932532ec185c02fa8750d6 -
Branch / Tag:
refs/tags/1.5.0 - Owner: https://github.com/Sarthak-G0yal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@586e9e6456a153bcaf932532ec185c02fa8750d6 -
Trigger Event:
push
-
Statement type:
File details
Details for the file sortium-1.5.0-py3-none-any.whl.
File metadata
- Download URL: sortium-1.5.0-py3-none-any.whl
- Upload date:
- Size: 24.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8b9f1b568dbbaa0ae8d56a4b94e450f9fed4423ea635faf9be7c1316caca64ce
|
|
| MD5 |
1e0cc997aca5c134ecc7ea882f39fabd
|
|
| BLAKE2b-256 |
2c192c5677ebbfc69cb6e52f5014e0654f1add12ac9d280bc0b6b5122129e5cf
|
Provenance
The following attestation bundles were made for sortium-1.5.0-py3-none-any.whl:
Publisher:
release.yaml on Sarthak-G0yal/Sortium
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
sortium-1.5.0-py3-none-any.whl -
Subject digest:
8b9f1b568dbbaa0ae8d56a4b94e450f9fed4423ea635faf9be7c1316caca64ce - Sigstore transparency entry: 243937915
- Sigstore integration time:
-
Permalink:
Sarthak-G0yal/Sortium@586e9e6456a153bcaf932532ec185c02fa8750d6 -
Branch / Tag:
refs/tags/1.5.0 - Owner: https://github.com/Sarthak-G0yal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@586e9e6456a153bcaf932532ec185c02fa8750d6 -
Trigger Event:
push
-
Statement type: