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-0.1.0.tar.gz (39.1 kB view details)

Uploaded Source

Built Distribution

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

modulex-0.1.0-py3-none-any.whl (27.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for modulex-0.1.0.tar.gz
Algorithm Hash digest
SHA256 b22cdf4d557021905b1623f3f1750803b72f1cb0baf71528dcb76cf1ff3ca9b8
MD5 662ed8da02bfe9323ffc7e8b502c20a4
BLAKE2b-256 c4ae0daf559ca5b17bfcb557d46bd680344d4df701396f49175fdbc986a1ed2f

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for modulex-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 06e4837e925398c0868931141133aed385b612c4f16f229f9285a2947269f63d
MD5 97df65f8fdb55d8ea3b18612e5ab3001
BLAKE2b-256 fc036abc1d0d28f03593cf78872502faafe4da53ca9dd32c404f70101d297f22

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