Skip to main content

A package for validating file paths across different operating systems

Project description

File Path Validator (FPV) 🚀

Welcome to File Path Validator (FPV)! This Python package provides a robust solution for validating file paths across different operating systems, ensuring that your paths are safe and compliant with the respective file system rules. 🖥️✨

Features 🌟

  • Cross-Platform Support: Validates file paths for Windows, macOS, and Linux.
  • User-Friendly Error Messages: Easy-to-understand error messages for non-tech-savvy users.
  • Customizable Validation: Supports various file name restrictions and length limitations.

Installation 📦

To install File Path Validator, clone the repository and install it using pip:

git clone https://github.com/yourusername/File_Path_Validator.git
cd File_Path_Validator/src
pip install -e .

Supported Platforms 🖥️

-- Operating Systems -- Windows macOS Linux (Debian/Ubuntu)

-- Cloud Storage Providers -- Box Dropbox Egnyte OneDrive SharePoint ShareFile

Usage 📖

from FPV import Validator  # Import the Validator class from the FPV package


path = "example/path/with/invalid<>characters"
validator = Validator(path, service_name="windows")

try:
    if validator.check_if_valid():
        print("Path is valid!")
    cleaned_path = validator.get_cleaned_path()
    print(f"Cleaned path: {cleaned_path}")
except ValueError as e:
    print(f"Error: {e}")

Contributing 🤝 We welcome contributions! If you'd like to help improve File Path Validator, please fork the repository and submit a pull request.

Thank you for checking out File Path Validator (FPV)! Happy coding! 🎉

Explanation of Sections

  • Overview: Provides a brief introduction to the project.
  • Features: Highlights the key features of the package.
  • Installation: Offers clear instructions on how to install the package.
  • Usage: Provides an example code snippet to demonstrate how to use the package.
  • Supported Platforms: Lists the operating systems that the package supports.
  • Contributing: Encourages community involvement in the project.
  • License: Mentions the license under which the project is released.
  • Contact: Provides a way for users to reach out for inquiries.

Next Steps

  1. Update the GitHub URL in the installation instructions and contact email as needed.
  2. Add a LICENSE file to your project if you haven't done so already.

If you have any further adjustments or additional sections you'd like to include, let me know!

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-path-validator-1.5.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

file_path_validator-1.5-py3-none-any.whl (31.5 kB view details)

Uploaded Python 3

File details

Details for the file file-path-validator-1.5.tar.gz.

File metadata

  • Download URL: file-path-validator-1.5.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.10

File hashes

Hashes for file-path-validator-1.5.tar.gz
Algorithm Hash digest
SHA256 ab502f98bced8252777309709f22c8e9bd656e27e21849d56527762b80ce8e40
MD5 baa365c800b57eace9347103fdfbbd18
BLAKE2b-256 e5defee74668fe9c20e5d507c49a4f7695132d76a3e3dd2b774eecb2994dadbc

See more details on using hashes here.

File details

Details for the file file_path_validator-1.5-py3-none-any.whl.

File metadata

File hashes

Hashes for file_path_validator-1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 a15c9fe5b7ac7cd4a5db03131c9c33197d707441c615da950fc6363410c38182
MD5 b066fad4f3286659401653c0ed8632c7
BLAKE2b-256 6e378181984700c30c58f69ac536a9130354b0ae000f87792b4b20659dd04a6f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page