Skip to main content

filterinput is like fileinput but with a few changes to make it easier to write filters. It holds a few recent values like the last line or last regex match to overcome Python’s lack of assignment in conditionals and to make filter code a little cleaner.

Release history Release notifications | RSS feed

This release

1.05 This release

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page