Skip to main content

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


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.4.tar.gz (1.5 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page