click-stream-0.0.9
توضیحات
Click option type for http/https/file inputs
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | click-stream-0.0.9 |
| نام | click-stream |
| نسخه کتابخانه | 0.0.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Moshe Zada |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/Moshe/click-stream |
| آدرس اینترنتی | https://pypi.org/project/click-stream/ |
| مجوز | - |
click-stream
============
Click option type for http/https/file inputs
Usage
-----
.. code:: python
import click
from click_stream import Stream
@click.command()
@click.option('--in', type=Stream())
def streamcli(inp):
click.echo(inp.read())
Supported inputs
----------------
::
# files
$ cli --in /path/to/file.txt
# stdin
$ echo input from stdin | cli --in -
# HTTP/S
$ cli http://google.com
نحوه نصب
نصب پکیج whl click-stream-0.0.9:
pip install click-stream-0.0.9.whl
نصب پکیج tar.gz click-stream-0.0.9:
pip install click-stream-0.0.9.tar.gz