File sorting program according to the numbers in the file name.
Project description
Table of contents
General Info
This program checks the numeric values at the end of the file names in the folder and sorts the file names from the smallest number to the larger number.
Technologies
Project is created with:
- Python 3.8
Setup
To run this project, install it locally using pip:
$ pip install fsorter
How to use Fsorter
from fsorter import fsorter
test_list = fsorter.filesort('file path',['extensions'])
Example
from fsorter import fsorter
test_list = fsorter.filesort('C://Windows//Users//test_user//Desktop//test_folder',['jpg','png','tiff','pdf','pptx','xlsx'])
Example 2
You can make an example like below to see how it sorts files in console output.
from fsorter import fsorter
dir = 'test'
test = fsorter.fileSort(dir)
for k in test:
print(k)
Note
If the file extensions that need to be sorted into the Fsorter program are not entered as parameters, by default they are ['.jpg', '.png', '.jpeg', '.tif', '.tiff', '.nii', '.JPG', '. JPEG', '.TIFF', '.TIF', '.NII'] extensions sort.
Project details
Release history Release notifications | RSS feed
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 fsorter-2.4.1.tar.gz.
File metadata
- Download URL: fsorter-2.4.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b7f37c89e347442c722c09e1b114c000ff8d9f9c9fc2e515d8cab57c2f07cfb4
|
|
| MD5 |
b11b47f9b5da54fe0b6360e749ffcd56
|
|
| BLAKE2b-256 |
8f1a06147a71eb29aeef67af09d2ff2f1c95cd8797a64bf53c973c4a62bd8a88
|
File details
Details for the file fsorter-2.4.1-py3-none-any.whl.
File metadata
- Download URL: fsorter-2.4.1-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
56e0cc4ec792e6c1b8269b50f92352f07ba1127f373de1fecf886db43994d504
|
|
| MD5 |
210b01052ee0a5c46521b0a058816a02
|
|
| BLAKE2b-256 |
2c9b55faffa5b6ae2e26d687f8e60ff09b387c211014f81ea1ab0f4d1288b323
|