Socket
Book a DemoInstallSign in
Socket

winshlex

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

winshlex

Alternative to python shlex package

pipPyPI
Version
0.0.1
Maintainers
1

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 -i https://test.pypi.org/simple/ 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']

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts