Skip to main content

A simple Python library to organize files into folders by file type

Project description

Here’s your polished and professional README.md in full Markdown format with ✅ emojis, headings, code blocks, and clarity — ready to upload to GitHub or PyPI:


# Auto-Folderize 🗂️

**Auto-Folderize** is a lightweight and easy-to-use Python library that organizes files in a folder into subfolders based on their file extensions. It supports both **default categorization** and **custom rules**. You can even automatically delete empty folders after organizing.

---

## 📦 Installation

```bash
pip install auto-folderize

🚀 Usage

from auto_folderize import organize, clean

# Organize using default rules
organize(r"D:\test_lib")

# Organize using custom rules
custom_rules = {
    "MyPhotos": ["jpg", "jpeg", "webp"],
    "MyText": ["txt", "md"],
    "Backups": ["zip", "rar"]
}
organize(r"D:\test_lib", rules=custom_rules)

# Clean up empty folders after organizing
clean(r"D:\test_lib")

🧠 Features

  • ✅ Automatically sorts files into categories like images, documents, videos, etc.
  • ✅ Fully customizable rule sets based on your needs
  • ✅ Cleans up leftover empty folders after organization
  • ✅ Easy to integrate and extend for automation scripts

📁 Default Rules (if no custom rules provided)

default_rules = {
    "images": ["jpg", "jpeg", "png", "gif", "bmp"],
    "documents": ["pdf", "docx", "doc", "txt", "pptx", "xlsx"],
    "videos": ["mp4", "mov", "avi", "mkv"],
    "audio": ["mp3", "wav", "aac"],
    "archives": ["zip", "rar", "7z", "tar", "gz"],
    "code": ["py", "js", "java", "c", "cpp", "cs", "html", "css", "json"],
}

👤 Author

Made with 💻 by Sourav Sandilya 📧 Email: youremail@example.com 🌐 GitHub: github.com/yourusername


📄 License

This project is licensed under the MIT License – feel free to use and contribute!


🌟 Contributions Welcome!

Found a bug or have a cool idea? Fork the repo, open an issue, or make a pull request! Let's improve folder organization together.


---

✅ You can now:

- Save this as `README.md`
- Upload it to GitHub with your code
- It’ll also be used for your PyPI page if you add it in `setup.py`

Would you like a matching `setup.py` or `LICENSE` file too?

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

auto_folderize-0.1.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

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

auto_folderize-0.1.0-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file auto_folderize-0.1.0.tar.gz.

File metadata

  • Download URL: auto_folderize-0.1.0.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for auto_folderize-0.1.0.tar.gz
Algorithm Hash digest
SHA256 70d6c5c901ec0b675622c4f5fffb970931e8cce8a545c29c9372142002b8a790
MD5 e44d1edfdec9aeb9fb98fe6a3863acfb
BLAKE2b-256 9494408d1b41d67b48c9455839e1d32785b0bcad4c1c97782dcff51149915fcb

See more details on using hashes here.

File details

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

File metadata

  • Download URL: auto_folderize-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.1

File hashes

Hashes for auto_folderize-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a8c2037ee58f3c1c8dddf562a7b50445178e3b5eff1c4238368145e229fc9777
MD5 3c050a7f2c26dbae5e7bbedc1ff0c3b1
BLAKE2b-256 ee0aa38ffbcc61d0f56794b3390006655fda328ac6fdcea17d61f2ff317c1334

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