{"categories":[{"label":"Libraries","url":"https://skillfed.io/packages/category/software-development-libraries/2"},{"label":"Python Modules","url":"https://skillfed.io/packages/category/software-development-libraries-python-modules/2"},{"label":"Text Processing","url":"https://skillfed.io/packages/category/text-processing"},{"label":"Filesystems","url":"https://skillfed.io/packages/category/system-filesystems"}],"enrichment":{"capability":"Sanitize and validate filenames and file paths by removing or replacing invalid characters, reserved names, and unprintable characters across multiple platforms (Linux, Windows, macOS, POSIX, and universal).","skillfed_tags":["filesystem","input-validation","cross-platform"],"use_cases":["Sanitize user-supplied filenames in web applications or file upload handlers before writing to disk.","Validate file paths in CLI tools using argparse or click to reject invalid input early.","Clean batch-imported filenames from external sources (APIs, databases, archives) for cross-platform compatibility.","Normalize path strings in data pipelines to prevent filesystem errors across development, staging, and production environments.","Check whether a string is a valid filename before attempting file operations to provide clear error messages."],"what_it_does":"pathvalidate is a Python library that cleans and validates filenames and file paths by removing or replacing characters that are invalid, reserved, or unprintable on target platforms. It handles platform-specific rules for Linux, Windows, macOS, POSIX, and universal (cross-platform) contexts, and includes support for multibyte characters. The library provides both standalone functions and integrations with argparse and click for command-line argument validation and sanitization.\n\nYou use it when you need to accept user input or external data as filenames or paths and ensure they will work on your target platform without errors. It removes problematic characters, replaces reserved names (like COM1 on Windows), normalizes whitespace, and strips unprintable characters\u2014all without external dependencies.","worth_installing":"Yes. pathvalidate is a focused, well-maintained library with zero dependencies, permissive licensing, and active development. Install it if you need reliable filename or path validation across platforms; the low friction and clear API make it a straightforward addition to any project handling file I/O."},"id":"pathvalidate","links":{"html":"https://skillfed.io/packages/pathvalidate","md":"https://skillfed.io/packages/pathvalidate.md","pypi":"https://pypi.org/project/pathvalidate/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2025-06-15","license_spdx":null,"license_treatment":"permissive","name":"pathvalidate","python_support":"supports_current","summary":"pathvalidate is a Python library to sanitize/validate a string such as filenames/file-paths/etc."},"popularity":{"monthly_downloads":20577101,"position":1032,"tier":"top_5000"},"security":{"n_vulnerabilities":0},"version":"3.3.1"}
