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
Metadata
Release files for click-stream 0.0.10
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| click-stream-0.0.10.tar.gz | 1.7 kB | Details |
Release files / click-stream-0.0.10.tar.gz
| Download URL | click-stream-0.0.10.tar.gz |
|---|---|
| Size | 1.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
68ee7b5ed1f2602991a1f1fc5ea607669469a6b708d9486aa92e0e0871b3b409
|
|
BLAKE2b-256 checksum How to use checksums |
d95bae9c9a7836e5865b7f3ac293c217b633f5e857fc4ef6f588efc768200f78
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
Python-urllib/3.7
|