Skip to main content

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)

Source distribution for click-stream 0.0.10
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

Release history Release notifications | RSS feed

This release

0.0.10 This release

1 release file

0.0.9

1 release file

0.0.8

1 release file

0.0.7

1 release file

0.0.6

1 release file

0.0.5

1 release file

0.0.4

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page