dephell-markers-1.0.3
توضیحات
Work with environment markers (PEP-496)
| ویژگی | مقدار |
|---|---|
| سیستم عامل | Unix |
| نام فایل | dephell-markers-1.0.3 |
| نام | dephell-markers |
| نسخه کتابخانه | 1.0.3 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Gram |
| ایمیل نویسنده | master_fess@mail.ru |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/dephell-markers/ |
| مجوز | MIT |
Dephell Markers
===============
.. image:: https://travis-ci.org/dephell/dephell_markers.svg?branch=master
:target: https://travis-ci.org/dephell/dephell_markers
:alt: travis
.. image:: https://ci.appveyor.com/api/projects/status/github/dephell/dephell_markers?svg=true
:target: https://ci.appveyor.com/project/orsinium/dephell-markers
:alt: appveyor
.. image:: https://img.shields.io/pypi/l/dephell-markers.svg
:target: https://github.com/dephell/dephell_markers/blob/master/LICENSE
:alt: MIT License
Work with environment markers (PEP-496).
Installation
------------
Install from `PyPI <https://pypi.org/project/dephell-markers/>`_\ :
.. code-block:: bash
python3 -m pip install --user dephell_markers
Usage
-----
.. code-block:: python
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
نیازمندی
| مقدار | نام |
|---|---|
| - | attrs |
| - | dephell-specifier |
| - | packaging |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.5 | Python |
نحوه نصب
نصب پکیج whl dephell-markers-1.0.3:
pip install dephell-markers-1.0.3.whl
نصب پکیج tar.gz dephell-markers-1.0.3:
pip install dephell-markers-1.0.3.tar.gz