Typical use is:
import textinput
for line in textinput.lines():
process(line)
This iterates over the lines of all files listed in sys.argv[1:],
defaulting to sys.stdin if the list is empty. If a filename is '-' it
is also replaced by sys.stdin. To specify an alternative list of
filenames, pass it as the argument to input(). A single file name is
also allowed.
import textinput
for line in textinput.lines():
process(line)
This iterates over the lines of all files listed in sys.argv[1:],
defaulting to sys.stdin if the list is empty. If a filename is '-' it
is also replaced by sys.stdin. To specify an alternative list of
filenames, pass it as the argument to input(). A single file name is
also allowed.
Release files for textinput 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| textinput-0.2.0.tar.gz | 6.4 kB | Details |
Release files / textinput-0.2.0.tar.gz
| Download URL | textinput-0.2.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
27796e4c01a01606f86a5b921c068f3c5647c09bd3e90c7ce1c0a4bb4c19b71b
|
|
BLAKE2b-256 checksum How to use checksums |
f5384bd1617eabd04154b465d6ce4b94e2f47b8168bc1ac7a33c437000bbb3bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |