A utility to sort files by type and date.
Project description
🗂️ Sortium
A Python utility to automatically sort files in a folder by their type (e.g., Images, Documents, Videos, etc.) and their last modified date.
📚 Table of Contents
🚀 Features
-
✅ Automatically organizes files into folders based on type:
- Images, Documents, Videos, Music, Others
-
📅 Optionally sort files by last modified date within each category
-
📁 Optionally flatten subdirectories into a single level before sorting
🛠️ Installation
📦 PyPI
Install the package from PyPI:
pip install sortium
Alternatively, install from source:
# Clone the repository
git clone https://github.com/Sarthak-G0yal/Sortium.git
cd Sortium
# Install in editable mode
pip install -e .
🧪 Run Tests
To run unit tests with coverage:
pytest src/tests --cov
👤 Author
Sarthak Goyal 📧 sarthakgoyal487@gmail.com
📄 License
This project is licensed under the GNU General Public License v3.0.
🤝 Contributing
Contributions are welcome and appreciated! 🎉
To contribute:
- Fork the repository
- Create a new branch (
feature/my-featureorfix/my-fix) - Write tests for your changes
- Commit with clear and conventional messages
- Open a pull request and describe your changes
✅ Please follow Conventional Commits and ensure your code is linted and tested before submitting.
📚 Documentation & Issues
This project uses Sphinx for documentation.
- 📖 Documentation: After running
make html, view the docs at_build/html/index.html - 🐛 Issues / 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.4.2.tar.gz.
File metadata
- Download URL: sortium-1.4.2.tar.gz
- Upload date:
- Size: 19.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
09bc3e78c9098f7e41716dc735ca75eae78b58e706bd39f09cc511346cbafd1c
|
|
| MD5 |
789e460225a2fe36095bda78a7ec906b
|
|
| BLAKE2b-256 |
c2ed45d219459cf3f076ddfac196888631c18990dc9026cbabb0acadf442127f
|
Provenance
The following attestation bundles were made for sortium-1.4.2.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.4.2.tar.gz -
Subject digest:
09bc3e78c9098f7e41716dc735ca75eae78b58e706bd39f09cc511346cbafd1c - Sigstore transparency entry: 232823254
- Sigstore integration time:
-
Permalink:
Sarthak-G0yal/Sortium@e6785ec385040f35c1c46fa87ca229df6d59dcda -
Branch / Tag:
refs/tags/1.4.2 - Owner: https://github.com/Sarthak-G0yal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@e6785ec385040f35c1c46fa87ca229df6d59dcda -
Trigger Event:
push
-
Statement type:
File details
Details for the file sortium-1.4.2-py3-none-any.whl.
File metadata
- Download URL: sortium-1.4.2-py3-none-any.whl
- Upload date:
- Size: 20.7 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 |
5c972571d4ffc606a12b3d42786f0cf6adb37c33683189fd3e7dd37c5b7af482
|
|
| MD5 |
4e0a3599157dbcec9b2690bba91879a0
|
|
| BLAKE2b-256 |
40b9d7857077aa81125b7240343e1cf03fe8a6db6c2b9ba9ce56f114b495afd5
|
Provenance
The following attestation bundles were made for sortium-1.4.2-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.4.2-py3-none-any.whl -
Subject digest:
5c972571d4ffc606a12b3d42786f0cf6adb37c33683189fd3e7dd37c5b7af482 - Sigstore transparency entry: 232823257
- Sigstore integration time:
-
Permalink:
Sarthak-G0yal/Sortium@e6785ec385040f35c1c46fa87ca229df6d59dcda -
Branch / Tag:
refs/tags/1.4.2 - Owner: https://github.com/Sarthak-G0yal
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yaml@e6785ec385040f35c1c46fa87ca229df6d59dcda -
Trigger Event:
push
-
Statement type: