Skip to main content
Join the official 2019 Python Developers SurveyStart the survey!

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.

Files for click-stream, version 0.0.10
Filename, size File type Python version Upload date Hashes
Filename, size click-stream-0.0.10.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page