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.

Metadata

Release history Release notifications | RSS feed

This release

1.05 This release

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page