Skip to main content

Organize files in folders by type

Project description

🗂️ bd_fileorganizer

bd_fileorganizer is a simple yet powerful Python utility that helps you clean up cluttered folders by automatically moving files into categorized subfolders like images/, documents/, archives/, and more — all based on file extensions.

It’s perfect for tidying up your Downloads, Desktop, or project folders with just one command.


📦 HOW TO USE:

** In Your terminal: If mac python3 , if windows python

  • pip install bd-fileorganizer
  • from bd_fileorganizer.organizer import organize_folder
  • organize_folder("give your folder path with different files")

** In Your ipynb file:

  • pip install bd-fileorganizer
  • from bd_fileorganizer.organizer import organize_folder
  • organize_folder("give your folder path with different files")

📦 Features

  • 📁 Automatically sorts files into categories
  • 🧠 Smart extension detection (.jpgimages, .pdfdocuments, etc.)
  • 🧪 Dry-run mode to preview changes
  • 🐍 Easy-to-use Python API and CLI interface
  • ✅ Beginner-friendly code and customizable

🚀 Installation

Install from source:

pip install bd-fileorganizer

📌 Available on PyPI! https://pypi.org/project/bd-fileorganizer/


🖥️ CLI Usage

fileorganizer /path/to/folder

Dry-run (preview only):

fileorganizer /path/to/folder --dry

🐍 Python API

from bd_fileorganizer.organizer import organize_folder

organize_folder("/Users/you/Downloads")

🧪 Running Tests

pytest

🗃️ Folder Structure Example

Before:

Downloads/
├── photo.jpg
├── report.pdf
├── backup.zip

After:

Downloads/
├── images/
│   └── photo.jpg
├── documents/
│   └── report.pdf
├── archives/
│   └── backup.zip

🔧 Extension Mapping

Category Extensions
images/ .jpg, .jpeg, .png, .gif
documents/ .pdf, .docx, .txt
archives/ .zip, .tar, .gz, .rar
videos/ .mp4, .mov, .mkv
audio/ .mp3, .wav
others/ Everything else

📄 License

Licensed under the GNU License


🤝 Contributing

Contributions, feature ideas, and bug reports are welcome! Feel free to open an issue or a pull request.


👤 Authors

Bhuvan GitHub: @bhuvan0808 GitHub: @devaagulla


🧹 Make your folders smarter, not messier — with bd-fileorganizer 🗂️

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

bd_fileorganizer-0.0.5.tar.gz (14.9 kB view details)

Uploaded Source

Built Distribution

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

bd_fileorganizer-0.0.5-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file bd_fileorganizer-0.0.5.tar.gz.

File metadata

  • Download URL: bd_fileorganizer-0.0.5.tar.gz
  • Upload date:
  • Size: 14.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.5

File hashes

Hashes for bd_fileorganizer-0.0.5.tar.gz
Algorithm Hash digest
SHA256 cdc47f7ca66ed6c28d2e2b98e80d3038e60a26640c4d920c97de34ae0ea60c1d
MD5 8a9a86e95e6cf6c63d9220bdcfac76c3
BLAKE2b-256 3fbf0dc791dd3e68e177672c00d19b38c88577386286d1e1f1a8ed7a03a797bd

See more details on using hashes here.

File details

Details for the file bd_fileorganizer-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for bd_fileorganizer-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f8a951a6b62fae7b7c06d704b6eeb598e3cb34a54abeb56d6aef29625e5f7966
MD5 1d89b570779ec1abbbc04c052cecac19
BLAKE2b-256 1323b943a2ed0f1b1cdf9e5910fabd7bb78b34aa7cf42f20a012b8285026112f

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