Click option type for http/https/file inputs
Project description
Click option type for http/https/file inputs
Usage
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
click-stream-0.0.6.tar.gz
(1.6 kB
view hashes)