Skip to main content

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-categorizer

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

file-categorizer-0.1.2.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

file_categorizer-0.1.2-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file file-categorizer-0.1.2.tar.gz.

File metadata

  • Download URL: file-categorizer-0.1.2.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

Hashes for file-categorizer-0.1.2.tar.gz
Algorithm Hash digest
SHA256 da701d219920c9392dfc565c12aa71a136a86e44f4a511bf0bc6db4120f1488b
MD5 29ce23c02432ecfba6705428df488f58
BLAKE2b-256 abcd7bb1e3a898ed74f5e65f927c0c2834f4cd6b177af63c5c24b88c45bb2bba

See more details on using hashes here.

File details

Details for the file file_categorizer-0.1.2-py3-none-any.whl.

File metadata

File hashes

Hashes for file_categorizer-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 e3a3d9cb73ebc097ab746cf16bc0c99e867401d8b9c346e44ccacd5cd0753947
MD5 e97ee3d02b2b98ae0f2d8186b4f335bd
BLAKE2b-256 85bf3d3436316d4fa3f7d80086d208f6e9e14864ccfd903548fa98107a993782

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page