{"categories":[{"label":"Utilities","url":"https://skillfed.io/packages/category/utilities/5"}],"enrichment":{"capability":"Provides a unified API for shell argument quoting and parsing that works identically on Windows and POSIX systems by wrapping shlex and mslex.","skillfed_tags":["cross-platform","shell-integration","subprocess"],"use_cases":["Build cross-platform CLI tools that safely escape and join command arguments without platform-specific branching","Parse shell command strings consistently on Windows and POSIX in subprocess or shell integration code","Quote file paths and arguments safely when constructing system commands in deployment or automation scripts","Handle mixed str and Path arguments in a single join or quote call without manual conversion","Test shell-quoting logic against both Windows and POSIX rules in the same codebase"],"what_it_does":"oslex is a thin abstraction layer that provides a single, consistent interface for shell argument handling across Windows and POSIX systems. It forwards calls to either the standard library's shlex (on POSIX) or the mslex library (on Windows), so developers can write platform-agnostic code without conditional logic. The three core functions\u2014join(), quote(), and split()\u2014mirror their underlying implementations but automatically select the right one based on the current OS.\n\nThe package is useful when building command-line tools, subprocess wrappers, or any code that constructs or parses shell commands and needs to work correctly on both Windows and Unix-like systems. It accepts Path objects as arguments and converts them transparently, and exposes platform-specific keyword arguments (prefixed ms_ or sh_) for fine-tuning behavior when needed. It also provides _sh and _ms variants to force a specific implementation regardless of platform.","worth_installing":"Yes. It solves a real cross-platform pain point with minimal overhead (one dependency, low friction), active maintenance, no known vulnerabilities, and a permissive license. Install it if you build command-line tools or subprocess wrappers that must work on both Windows and POSIX systems."},"id":"oslex","links":{"html":"https://skillfed.io/packages/oslex","md":"https://skillfed.io/packages/oslex.md","pypi":"https://pypi.org/project/oslex/"},"maintenance":{"status":"active"},"meta":{"latest_release":"2026-05-10","license_spdx":null,"license_treatment":"permissive","name":"oslex","python_support":"supports_current","summary":"OS-independent wrapper for shlex and mslex"},"popularity":{"monthly_downloads":780671,"position":5082,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"2.0.0"}
