Skip to main content
Help the Python Software Foundation raise $60,000 USD by December 31st!  Building the PSF Q4 Fundraiser

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

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page