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']
Metadata
Release files for winshlex 0.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| winshlex-0.0.1.tar.gz | 2.2 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| winshlex-0.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / winshlex-0.0.1.tar.gz
| Download URL | winshlex-0.0.1.tar.gz |
|---|---|
| Size | 2.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
716b299f8091aac5b440ec6d15223fc507ccf67874c4ba674c511ee3ea3e1d91
|
|
BLAKE2b-256 checksum How to use checksums |
130c9a7273b2e6770d7a21dcc67b0ccd21579821ebc41263d62a51b534485e42
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / winshlex-0.0.1-py3-none-any.whl
| Download URL | winshlex-0.0.1-py3-none-any.whl |
|---|---|
| Size | 3.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b4cbee5a336c3fe3115bbb04eca53fcd47b1d9565c9ada0ff858b41614fea930
|
|
BLAKE2b-256 checksum How to use checksums |
9aa67b673c4ab99b3ed0fdefee125e746a56c9e1d93e166eadec672fe50e8e32
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for winshlex 0.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.