win_wildcard
Expand wildcards in shells of Windows using the dir or the Get-ChildItem command.
Refer the homepage for sample.
Motivation
Python has a glob module that supports posix-spec wildcards, so it is possible to create scripts with wildcards available. However, for the reasons described below, glob's wildcard is not the same as expected on the Windows command line.
The Windows shell leaves wildcard expansion to the command, so there is no standard way to expand wildcards.
Some wildcards of cmd.exe are undocumented.
There have been reports of user confusion due to wildcard specifications varying from command to command.
I thought it would be appropriate to provide a function that calls the dir command or Get-ChildItem command and uses the result of expanding the wildcard.
Such wildcard expansion would allow the user to run the dir or Get-ChildItem command to see what files are specified before executing the script.
Metadata
Release files for win-wildcard 0.5.2
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 | Actions |
|---|---|---|---|---|
| win_wildcard-0.5.2.tar.gz | 4.2 kB | Without provenance | Details for win_wildcard-0.5.2.tar.gz |
Release files / win_wildcard-0.5.2.tar.gz
| Download URL | win_wildcard-0.5.2.tar.gz |
|---|---|
| Size | 4.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4792eeef0b94de9f75cecb3011dc4c99b3544f633871f8749bc7fe134977d1bb
|
|
BLAKE2b-256 checksum How to use checksums |
600971d92fde6e1454064c595c1108455e83f70758506fdcdc77b44b9da9f9f1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.8.10
|
Security for win-wildcard 0.5.2
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.