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

file-categorizer-0.1.0.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.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

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

Hashes for file-categorizer-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3dc6d107b841313ae905f76a3326fbf5d3355741e5c5565582ab7a377fd87dd5
MD5 474e5e1e1caf7e75bbf81f00e5dc2f79
BLAKE2b-256 a05f29da43dc54dc5af0be40607e46e04830a447480823f7ee194561fd7a7742

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for file_categorizer-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 379e6d9a79fc3363c613c45d0d4a64c724e1c1f5dc4c02d0da042ec91e1b7e23
MD5 5d812ae2871f5ca6882be26ea200fb2e
BLAKE2b-256 ef607fe20b65fa1c16cf32be19306cfb57c56db6bb716ad324d2aab71fecc2a5

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