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.10.tar.gz (1.7 kB view details)

Uploaded Source

File details

Details for the file click-stream-0.0.10.tar.gz.

File metadata

  • Download URL: click-stream-0.0.10.tar.gz
  • Upload date:
  • Size: 1.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: Python-urllib/3.7

File hashes

Hashes for click-stream-0.0.10.tar.gz
Algorithm Hash digest
SHA256 68ee7b5ed1f2602991a1f1fc5ea607669469a6b708d9486aa92e0e0871b3b409
MD5 00ed4883dfe0119f277d6b9ac6ca20a9
BLAKE2b-256 d95bae9c9a7836e5865b7f3ac293c217b633f5e857fc4ef6f588efc768200f78

See more details on using hashes here.

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