Globber
Globber is a Python library for matching file names against
glob patterns. In contrast to other glob-matching libraries,
it matches arbitrary strings and doesn't require the matched
names to be existing files. In addition, it supports the
globstar ** operator to match an arbitrary number of path
components.
I have been working with Git repositories, specifically trying to process files classified as source. Picking the source files is much easier with globstar expressions, and since old files might no longer exist on the file system, the matching cannot be based on actual files. I couldn't find anything that had support for both, so I wrote this library.
Patterns
The syntax of a pattern is a sequence of components, separated
by slashes /. Each component may include the following
special characters:
| Character | Meaning |
|---|---|
| ? | Match any single character (not a path separator) |
| * | Match any sequence of characters, possibly empty (except path separators) |
| ** | Must appear alone inside a component. Match any sequence of components, possibly empty |
| \ | Match the following character literally. This is intended to escape the special characters |
Contributing
I may occasionally keep working on this library if I have a need for new functionality, but for the moment it is good enough for my current needs. If you're using it, and find bugs or want some new functionality, you're welcome to open an issue. Pull requests are also appreciated but not necessary to get your concerns heard.
License
Globber is licensed under the Apache Software License, version 2.0. See the LICENSE file for precise license terms and conditions.
Metadata
Release files for globber 0.2.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 | Actions |
|---|---|---|---|---|
| globber-0.2.1.tar.gz | 3.4 kB | Without provenance | Details for globber-0.2.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| globber-0.2.1-py3-none-any.whl | Python 3 | none | any | Details for globber-0.2.1-py3-none-any.whl |
Total release size: 11.4 kB
Release files / globber-0.2.1.tar.gz
| Download URL | globber-0.2.1.tar.gz |
|---|---|
| Size | 3.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
99720aab0939283d5919405b170f07990e47333c9481faa0a14926e62e56ef70
|
|
BLAKE2b-256 checksum How to use checksums |
af5a283ad589a290ddd46a69cbb101989bd83bb152f204ccce83e89ac05d9caf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.5.6
|
Release files / globber-0.2.1-py3-none-any.whl
| Download URL | globber-0.2.1-py3-none-any.whl |
|---|---|
| Size | 8.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2d17220096bf50f34134eed81c068d343fe7bd96ed8306fb2a5ac6315070cbe9
|
|
BLAKE2b-256 checksum How to use checksums |
6c743bb9839012ddfb814868f28c1ceb69d63d4c53bcc2df313d81769ec0e119
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.15.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/42.0.2 requests-toolbelt/0.9.1 tqdm/4.40.0 CPython/3.5.6
|
Security for globber 0.2.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.