clout-0.1.9
توضیحات
Command-line Object Utility Tool
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | clout-0.1.9 |
| نام | clout |
| نسخه کتابخانه | 0.1.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Clout contributors |
| ایمیل نویسنده | python-clout@users.noreply.github.com |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/clout/ |
| مجوز | - |
=======================================================
Clout: Command-Line Object Utility Tool
=======================================================
.. start-badges
.. list-table::
:stub-columns: 1
* - docs
- |docs|
* - code
- |github|
* - tests
- | |travis|
| |codecov|
* - package
- | |version|
| |wheel|
| |supported-versions|
| |supported-implementations|
| |commits-since|
.. |docs| image:: https://img.shields.io/readthedocs/clout
:target: https://clout.readthedocs.org
:alt: Documentation Status
.. |travis| image:: https://img.shields.io/travis/com/python-clout/clout/master
:alt: Travis-CI Build Status
:target: https://travis-ci.com/python-clout/clout
.. |version| image:: https://img.shields.io/pypi/v/clout.svg
:alt: PyPI Package latest release
:target: https://pypi.org/pypi/clout
.. |commits-since| image:: https://img.shields.io/github/commits-since/python-clout/clout/v0.1.14.svg
:alt: Commits since latest release
:target: https://github.com/python-clout/clout/compare/v0.1.14...master
.. |wheel| image:: https://img.shields.io/pypi/wheel/clout.svg
:alt: PyPI Wheel
:target: https://pypi.org/pypi/clout
.. |supported-versions| image:: https://img.shields.io/pypi/pyversions/clout.svg
:alt: Supported versions
:target: https://pypi.org/pypi/clout
.. |supported-implementations| image:: https://img.shields.io/pypi/implementation/clout.svg
:alt: Supported implementations
:target: https://pypi.org/pypi/clout
.. |codecov| image:: https://img.shields.io/codecov/c/github/python-clout/clout/master.svg
:alt: Coverage
:target: https://codecov.io/gh/python-clout/clout
.. |github| image:: https://img.shields.io/github/last-commit/python-clout/clout
:alt: Last commit
:target: https://img.shields.io/github/last-commit/python-clout/clout
.. end-badges
..
start-usage
Convert dataclasses into a command-line interface.
Quickstart
---------------
To install, use
.. code-block:: bash
pip install clout
Define some dataclasses and convert them into a command-line interface.
.. code-block:: python
import attr
import click
import clout
@attr.dataclass
class DB:
host: str
port: int
@attr.dataclass
class Config:
db: DB
dry_run: bool
cli = clout.Command(Config)
print(cli.build())
.. code-block:: bash
$ myapp --dry-run db --host example.com --port 9999
Config(db=DB(host='example.com', port=9999), dry_run=True)
..
end-usage
See the full docs for more information: https://clout.readthedocs.io/
نیازمندی
| مقدار | نام |
|---|---|
| - | click |
| >=0.7.3,<0.8.0 | lark-parser |
| >=3.0,<4.0 | marshmallow |
| >=0.4.0,<0.5.0 | typing-inspect |
| >=19.2,<20.0 | glom |
| >=0.3.1,<0.4.0 | inflection |
| >=3.7,<4.0 | typing-extensions |
| >=1.0,<2.0 | importlib_resources |
| >=0.6.0,<0.7.0 | dataclasses |
| >=1.4,<2.0 | appdirs |
| >=19.2.0 | attrs |
| >=2019.11.06 | desert |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.7,<4.0 | Python |
نحوه نصب
نصب پکیج whl clout-0.1.9:
pip install clout-0.1.9.whl
نصب پکیج tar.gz clout-0.1.9:
pip install clout-0.1.9.tar.gz