climenu-1.8.0
توضیحات
Command-line menu system
| ویژگی | مقدار |
|---|---|
| سیستم عامل | POSIX :: Linux |
| نام فایل | climenu-1.8.0 |
| نام | climenu |
| نسخه کتابخانه | 1.8.0 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Timothy McFadden |
| ایمیل نویسنده | tim@timandjamie.com |
| آدرس صفحه اصلی | https://github.com/mtik00/pyclimenu |
| آدرس اینترنتی | https://pypi.org/project/climenu/ |
| مجوز | MIT |
.. image:: https://travis-ci.org/mtik00/pyclimenu.svg?branch=master
:target: https://travis-ci.org/mtik00/pyclimenu
.. image:: https://coveralls.io/repos/github/mtik00/pyclimenu/badge.svg?branch=master
:target: https://coveralls.io/github/mtik00/pyclimenu?branch=master
.. image:: https://img.shields.io/pypi/v/climenu.svg
:target: https://pypi.python.org/pypi/climenu
climenu
=======
This project is used to create *simple* command-line interfaces using
text-based menus.
The interface loosely mimics `click <http://click.pocoo.org>`_ (the use of
decorators to define the interface).
Documentation is hosted `on ReadTheDocs <http://pyclimenu.rtfd.io/>`_; releases
are hosted `on pypi <https://pypi.python.org/pypi/climenu>`_.
----
Example:
.. code-block:: python
from __future__ import print_function
import climenu
@climenu.menu()
def build_release():
'''Build release'''
print("built the release")
@climenu.menu()
def build_package():
'''Build the package'''
print("built the package")
if __name__ == '__main__':
climenu.run()
نحوه نصب
نصب پکیج whl climenu-1.8.0:
pip install climenu-1.8.0.whl
نصب پکیج tar.gz climenu-1.8.0:
pip install climenu-1.8.0.tar.gz