markerlib
Compile or interpret PEP 345 environment markers.
Usage:
>>> import markerlib
>>> marker = markerlib.compile("os.name == 'posix'")
>>> marker(environment=markerlib.default_environment(),
override={'os.name':'posix'})
True
>>> marker(environment=markerlib.default_environment(),
override={'os.name':'nt'})
False
The implementation uses the ast to compile environment markers as Python statements with a limited set of allowed node types.
0.6.0
Allow _ where . was previously used (‘os.name’ -> ‘os_name’)
0.5.2
Restore ‘as_function’ bw/compat synonym for ‘compile’
0.5.1
Include ‘empty marker’ heuristic in markerlib itself
0.5
One final release until it’s just a part of distribute
0.4
Cache compiled marker functions with weakref.WeakValueDictionary
Rename markerlib.as_function to markerlib.compile
0.3
Might work on Python 2.5 (includes needed parts of the ast module from Python 2.6+)
Include 100% test coverage, tox config file
0.1
Initial version
Metadata
Release files for markerlib 0.6.0
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 |
|---|---|---|---|---|
| markerlib-0.6.0.tar.gz | 3.8 kB | Without provenance | Details for markerlib-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| markerlib-0.6.0-py27-none-any.whl | Python 2.7 | none | any | Details for markerlib-0.6.0-py27-none-any.whl |
Total release size: 8.6 kB
Release files / markerlib-0.6.0.tar.gz
| Download URL | markerlib-0.6.0.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2fdb3939441f5bf4f090b1979a34f84a11d33eed6c0e3995de88ae5c06b6e3ae
|
|
BLAKE2b-256 checksum How to use checksums |
d1bace29589707d8679b648517d936a2f08e3e18143d49822339d3cc35819c92
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / markerlib-0.6.0-py27-none-any.whl
| Download URL | markerlib-0.6.0-py27-none-any.whl |
|---|---|
| Size | 4.8 kB |
| Tags | Python 2.7 |
|
SHA-256 checksum How to use checksums |
fd234e1dc3bb0929fa8c7c608c6a39151e637026ae817a91ee8c2c5e48e63754
|
|
BLAKE2b-256 checksum How to use checksums |
b95aec9ed58ef44d33e6cf50c9c6c8edba07623ca7ce57e9423caef9ff0e8851
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for markerlib 0.6.0
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.