Skip to main content

A short description of your module

Project description

ModuleX 📁

Python Version PyPI Version

A simple and intuitive Python package for file and folder management operations. ModuleX provides easy-to-use functions for creating, deleting, and managing files and directories with built-in error handling.

✨ Features

  • Create Folders: Easily create new directories with automatic name formatting
  • Delete Folders: Remove directories with safety checks
  • Create Files: Generate text files with custom content
  • Delete Files: Remove files with confirmation and error handling
  • Smart Input Processing: Automatic space-to-underscore conversion
  • Error Handling: Built-in exception handling for robust operations

🚀 Installation

pip install modulex

That's it! No additional dependencies required.

📖 Quick Start

import modulex

# The package provides interactive functions
# Simply call the functions and follow the prompts

# Create a new folder
modulex.createfolder()

# Create a new text file
modulex.createFile()

# Delete a folder
modulex.deletefolder()

# Delete a file
modulex.deleteFile()

🎯 Usage Examples

Creating a Folder

import modulex

modulex.createfolder()
# Prompts: "Enter a name for a new folder: "
# Input: "my project folder"
# Creates: "my_project_folder" directory

Creating a Text File

import modulex

modulex.createFile()
# Prompts for filename (max 20 characters)
# Currently supports .txt files only
# Allows you to add content to the file

Managing Files and Folders

  • All functions include automatic input validation
  • Spaces in names are automatically converted to underscores
  • Built-in checks prevent overwriting existing files/folders
  • Error messages guide you through any issues

📋 Function Reference

Function Description Input Requirements
createfolder() Creates a new directory Folder name (any length)
deletefolder() Removes an existing directory Existing folder name
createFile() Creates a new text file with content Filename (≤20 chars), .txt extension
deleteFile() Removes an existing file Existing filename

⚠️ Important Notes

  • File names are limited to 20 characters maximum
  • Currently supports only .txt file extension
  • Folder and file names with spaces are automatically converted (spaces → underscores)
  • All operations include safety checks to prevent accidental overwrites

🛠️ Requirements

  • Python 3.6 or higher
  • No external dependencies required

🤝 Contributing

We welcome contributions! If you have suggestions for improvements or find any issues, please feel free to reach out through PyPI or create discussions around the package.

📝 License

This project is licensed under the MIT License.

🐛 Issues & Support

If you encounter any issues or have questions about ModuleX, you can:

  • Check the PyPI project page for updates
  • Review the documentation above
  • Contact the maintainer through PyPI

🚧 Roadmap

  • Support for additional file extensions
  • Batch operations for multiple files/folders
  • Configuration file support
  • Enhanced error reporting
  • GUI interface option

Made with ❤️ by BGeorgiev120

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

modulex-1.2.1.tar.gz (39.5 kB view details)

Uploaded Source

Built Distribution

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

modulex-1.2.1-py3-none-any.whl (27.4 kB view details)

Uploaded Python 3

File details

Details for the file modulex-1.2.1.tar.gz.

File metadata

  • Download URL: modulex-1.2.1.tar.gz
  • Upload date:
  • Size: 39.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for modulex-1.2.1.tar.gz
Algorithm Hash digest
SHA256 f92ef59650f40b50bbd99194d62de4b8626f7610abf1f39435d82be05f424f8b
MD5 317135bb05f24441825dc6be7559e118
BLAKE2b-256 dc23f3743b865ada069dbb31be5dd518e4569143bbc14b3d8eab9ea5064a881a

See more details on using hashes here.

File details

Details for the file modulex-1.2.1-py3-none-any.whl.

File metadata

  • Download URL: modulex-1.2.1-py3-none-any.whl
  • Upload date:
  • Size: 27.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for modulex-1.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 be9ebdf28133ee6b31c1038bdbc92e8b1786847d2bad176275c4edbdf3e19cc0
MD5 03031eb030af257f5ff487ea265f20e6
BLAKE2b-256 5231d834b27d16f3aa9a3da23412f8f1da3454a8255cbcc278742a96c6a059d7

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