stdin.size(), stdin.read() functions
Project description
Installation
$ [sudo] pip install stdin
Examples
$ printf "stdin text" | python -c "import stdin;print(stdin.size())"
10
$ echo "stdin text" | python -c "import stdin;print(stdin.size())"
11
python -c "import stdin;print(stdin.read())"
$ echo "stdin text" | python -c "import stdin;print(stdin.read())"
stdin text
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
stdin-2020.12.3.tar.gz
(1.3 kB
view hashes)