Skip to main content

streamlined version of stdlib fileinput

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for textinput, version 0.2.0
Filename, size File type Python version Upload date Hashes
Filename, size textinput-0.2.0.tar.gz (6.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page