dephell-markers 1.0.1
pip install dephell-markers==1.0.1
Newer version available (1.0.3)
Released:
Work with environment markers (PEP-496)
Navigation
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Gram
- Tags dephell, markers, packaging, versioning
- Requires: Python >=3.5
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
Project description
Work with environment markers (PEP-496).
Installation
Install from PyPI:
python3 -m pip install --user dephell_markers
Usage
from dephell_markers import Markers
m = Markers('os_name == "posix" and python_version >= "2.7"')
m.get_version(name='python_version')
# '>=2.7'
m.get_string(name='os_name')
# 'posix'
Markers('python_version >= "2.4" or python_version <= "2.7"').get_version(name='python_version')
'<=2.7 || >=2.4'
Markers('python_version >= "2.4" or python_version <= "2.7"').python_version
# RangeSpecifier(<=2.7 || >=2.4)
# Nothing better than lie:
Markers('python_version == "2.4" or os_name == "linux"').get_version(name='python_version')
# None
Project details
Unverified details
These details have not been verified by PyPIProject links
Meta
- License: MIT License (MIT)
- Author: Gram
- Tags dephell, markers, packaging, versioning
- Requires: Python >=3.5
Classifiers
- Development Status
- Environment
- Intended Audience
- License
- Operating System
- Programming Language
- Topic
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
File details
Details for the file dephell_markers-1.0.1.tar.gz
.
File metadata
- Download URL: dephell_markers-1.0.1.tar.gz
- Upload date:
- Size: 17.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a9fcf0a4acb59e9fe261d3304a25f33b4b743598f83825888ab0359b75e5e96f |
|
MD5 | 057c1bacbb0a0e281d90de05554502df |
|
BLAKE2b-256 | 02b1a250f60b7b0ebf4792089074e47dc676b3f9cb1b2a07619fa0d591191366 |
File details
Details for the file dephell_markers-1.0.1-py3-none-any.whl
.
File metadata
- Download URL: dephell_markers-1.0.1-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.20.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 83e184896ccf2e96a1df4857bf90bd2d831d9bd93e8efbedc9e2523766702e22 |
|
MD5 | 6ecae8ffb83d7a73a90c3045d109cab0 |
|
BLAKE2b-256 | f0b75681155c5d1e7ad9d8898aa02ea798ba44013c16c5b7fe306f331cb73c5d |