A Python package to organize files by type.
Project description
File Organizer Pro
Overview
File Organizer Pro is a Python package designed to organize files in a specified directory by their types, such as images, documents, videos, and more.
Features
- Organizes files by type into subfolders.
- Supports custom rules for file categorization.
- Preview mode to show how files will be organized.
- Recursive organization for subdirectories.
Installation
You can install the package using pip:
pip install file_organizer_pro
Usage
Here is an example of how to use the package:
from file_organizer_pro.utils import get_file_type
print(get_file_type('example.jpg')) # Outputs: Images
To organize files in a directory:
from file_organizer_pro.organizer import organize_files
organize_files('/path/to/directory')
Custom Rules
You can define custom rules for file categorization by modifying the file_types dictionary in utils.py.
organize files in subdirectories as well:
from file_organizer_pro.organizer import organize_files
organize_files('/path/to/directory', recursive=True)
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 file-categorizer-0.1.0.tar.gz.
File metadata
- Download URL: file-categorizer-0.1.0.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3dc6d107b841313ae905f76a3326fbf5d3355741e5c5565582ab7a377fd87dd5
|
|
| MD5 |
474e5e1e1caf7e75bbf81f00e5dc2f79
|
|
| BLAKE2b-256 |
a05f29da43dc54dc5af0be40607e46e04830a447480823f7ee194561fd7a7742
|
File details
Details for the file file_categorizer-0.1.0-py3-none-any.whl.
File metadata
- Download URL: file_categorizer-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.11.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
379e6d9a79fc3363c613c45d0d4a64c724e1c1f5dc4c02d0da042ec91e1b7e23
|
|
| MD5 |
5d812ae2871f5ca6882be26ea200fb2e
|
|
| BLAKE2b-256 |
ef607fe20b65fa1c16cf32be19306cfb57c56db6bb716ad324d2aab71fecc2a5
|