Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

jdjebi/winshlex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

9 Commits

Repository files navigation

Winshlex

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

Installation

In your terminal execute

pip install winshlex

Usage

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']

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

AltStyle によって変換されたページ (->オリジナル) /