Skip to content
Myr

Added inout example

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent bdf4ddf · Browse files · 2 files+28 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+28 added−0 removed

  • other:+28 added−0 removed

2 files+28 added−0 removed

added:examples/inout/inout.py+13 added
1import click234@click.command()5@click.argument('input', type=click.File('rb'))6@click.argument('output', type=click.File('wb'))7def cli(input, output):8 while True:9 chunk = input.read(1024)10 if not chunk:11 break12 output.write(chunk)13 output.flush()
added:examples/inout/setup.py+15 added
1from setuptools import setup23setup(4 name='inout',5 version='0.1',6 py_modules=['inout'],7 include_package_data=True,8 install_requires=[9 'Click',10 ],11 entry_points='''12 [console_scripts]13 inout=inout:cli14 ''',15)