fsorter-2.1
توضیحات
File sorting program according to the numbers in the file name.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | fsorter-2.1 |
| نام | fsorter |
| نسخه کتابخانه | 2.1 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Kadir Barut |
| ایمیل نویسنده | kadirrbrtt@gmail.com |
| آدرس صفحه اصلی | https://github.com/kadirrbrtt/fsorter |
| آدرس اینترنتی | https://pypi.org/project/fsorter/ |
| مجوز | MIT |
## Table of contents
* [General Info](#general-info)
* [Technologies](#technologies)
* [Setup](#setup)
* [How to use Fsorter](#how-to-use-Fsorter)
* [Example](#Example)
* [Example 2](#example-2)
* [Note](#Note)
## 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.
نحوه نصب
نصب پکیج whl fsorter-2.1:
pip install fsorter-2.1.whl
نصب پکیج tar.gz fsorter-2.1:
pip install fsorter-2.1.tar.gz