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.

Source Distribution

textinput-0.2.0.tar.gz (6.4 kB view details)

Uploaded Source

File details

Details for the file textinput-0.2.0.tar.gz.

File metadata

  • Download URL: textinput-0.2.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for textinput-0.2.0.tar.gz
Algorithm Hash digest
SHA256 27796e4c01a01606f86a5b921c068f3c5647c09bd3e90c7ce1c0a4bb4c19b71b
MD5 1e6639965f4cf774dbe974a4ecc81fa0
BLAKE2b-256 f5384bd1617eabd04154b465d6ce4b94e2f47b8168bc1ac7a33c437000bbb3bf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page