Alternative to python shlex package
Project description
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']
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file winshlex-0.0.1.tar.gz.
File metadata
- Download URL: winshlex-0.0.1.tar.gz
- Upload date:
- Size: 2.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
716b299f8091aac5b440ec6d15223fc507ccf67874c4ba674c511ee3ea3e1d91
|
|
| MD5 |
f93a6264613782b64625fb6023f09e02
|
|
| BLAKE2b-256 |
130c9a7273b2e6770d7a21dcc67b0ccd21579821ebc41263d62a51b534485e42
|
File details
Details for the file winshlex-0.0.1-py3-none-any.whl.
File metadata
- Download URL: winshlex-0.0.1-py3-none-any.whl
- Upload date:
- Size: 3.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/45.1.0 requests-toolbelt/0.9.1 tqdm/4.42.1 CPython/3.7.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b4cbee5a336c3fe3115bbb04eca53fcd47b1d9565c9ada0ff858b41614fea930
|
|
| MD5 |
6309e1b7f7b43e073e84dd5d7f5ed0b7
|
|
| BLAKE2b-256 |
9aa67b673c4ab99b3ed0fdefee125e746a56c9e1d93e166eadec672fe50e8e32
|