Skip to main content

Alternative to python shlex package

Project description


Alternative to shlex for easy split of windows path. Inspired by a stack overflow post.

Python package for multi-platform variant of shlex.split() for command-line splitting. For use with subprocess, for argv injection etc. Using fast REGEX.

Build with: Python 3.7.2


In your terminal execute

pip install -i winshlex 


On windows with shlex

>>> import shlex 

>>> to_split = "C:\Users\samsung\Desktop\Dev2\package-winshlex"

>>> shlex.split()

>>> ['C:UserssamsungDesktopDev2package-winshlex']

On windows with winshlex

>>> import winshlex 

>>> to_split = "C:\Users\samsung\Desktop\Dev2\package-winshlex"

>>> winshlex.split()

>>> ['C:\\Users\\samsung\\Desktop\\Dev2\\package-winshlex']

Project details

Release history Release notifications

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for winshlex, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size winshlex-0.0.1-py3-none-any.whl (3.5 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size winshlex-0.0.1.tar.gz (2.2 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page