dephell-pythons-0.1.9


توضیحات

Work with python versions
ویژگی مقدار
سیستم عامل -
نام فایل dephell-pythons-0.1.9
نام dephell-pythons
نسخه کتابخانه 0.1.9
نگهدارنده []
ایمیل نگهدارنده []
نویسنده Gram
ایمیل نویسنده mail@orsinium.dev
آدرس صفحه اصلی -
آدرس اینترنتی https://pypi.org/project/dephell-pythons/
مجوز MIT
# Dephell Pythons [![travis](https://travis-ci.org/dephell/dephell_pythons.svg?branch=master)](https://travis-ci.org/dephell/dephell_pythons) [![appveyor](https://ci.appveyor.com/api/projects/status/github/dephell/dephell_pythons?svg=true)](https://ci.appveyor.com/project/orsinium/dephell-pythons) [![MIT License](https://img.shields.io/pypi/l/dephell-pythons.svg)](https://github.com/dephell/dephell_pythons/blob/master/LICENSE) Work with python versions. ## Installation Install from [PyPI](https://pypi.org/project/dephell-pythons/): ```bash python3 -m pip install --user dephell_pythons ``` ## Usage ```python from dephell_pythons import Pythons pythons = Pythons() # get current: python = pythons.get_best() # properties: python.name # 'python3.7' python.path # Path('/usr/local/bin/python3.7') python.version # <Version('3.7.0')> python.lib_paths # [Path('/usr/local/lib/python37.zip'), Path('/usr/local/lib/python3.7'), ...] python.lib_path # Path('/home/gram/.local/lib/python3.7/site-packages') # get by version pythons.get_best('3.5').version # <Version('3.5.2')> # get by name pythons.get_best('python3').version # <Version('3.6.7')> # get by specifier pythons.get_best('<3.7').version # <Version('3.6.7')> # get by path pythons.get_best('/usr/bin/python3.6').version # <Version('3.6.7')> # get all list(pythons) # [Python(...), Python(...), ...] # work not only with installed pythons: Pythons(abstract=True).get_best('>=2.8,<3.5').version # <Version('3.4')> ```


نیازمندی

مقدار نام
- attrs
- dephell-specifier
- packaging


زبان مورد نیاز

مقدار نام
>=3.6 Python


نحوه نصب


نصب پکیج whl dephell-pythons-0.1.9:

    pip install dephell-pythons-0.1.9.whl


نصب پکیج tar.gz dephell-pythons-0.1.9:

    pip install dephell-pythons-0.1.9.tar.gz