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
Release history Release notifications | RSS feed
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)
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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 68ee7b5ed1f2602991a1f1fc5ea607669469a6b708d9486aa92e0e0871b3b409 |
|
MD5 | 00ed4883dfe0119f277d6b9ac6ca20a9 |
|
BLAKE2b-256 | d95bae9c9a7836e5865b7f3ac293c217b633f5e857fc4ef6f588efc768200f78 |