CMD + K

oslex

Community

OS-independent wrapper for shlex and mslex

Installation

To install this package, run one of the following:

Conda
$conda install conda-forge::oslex

Usage Tracking

2.0.0
0.1.3
2 / 8 versions selected
Downloads (Last 6 months): 0

Description

oslex is an OS-independent wrapper for shlex and mslex. Its main purpose is to provide functions similar in functionality to shlex.quote(), shlex.split() and shlex.join() on both Windows and POSIX-compatible platforms.

This goal is achieved by simply forwarding the calls to either shlex (from the standard library) on POSIX-compatible systems, or the excellent mslex library (written by Lawrence D'Anna / @smoofra) on Windows.

In other words, oslex is to shlex/mslex what os-path is to posixpath/ntpath.

About

Summary

OS-independent wrapper for shlex and mslex

Last Updated

May 11, 2026 at 01:51

License

MIT

Supported Platforms

noarch