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.1.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.1-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: file-categorizer-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 fe1789523d42aed6ffbf93f04b90da8f9620ff038c8d386afa908895a1e82d4d
MD5 498a164af3756b5c58d66d932161adb8
BLAKE2b-256 62eb9ed926d9bb94013926c21ac2b66d4154ee40e63d4e6e753495c6e1c11984

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for file_categorizer-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ee2f8d5880c1f048ad5a27797c651701a9f99f81dfa790e0f8e26ce7502e50c
MD5 bc0c8b7ff7631c9191d97be38537ba76
BLAKE2b-256 7272da51956658684a75e52624d651fd7a1161aa1d1b64e3d4806a2e89cdfaca

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