Skip to main content

filterx

filterx logo

pypi Github Release PyPI Downloads

A fast command-line tool to filter lines by column-based expression.

Features

  • 🚀 Filter lines by column-based expression
  • 🎨 Support multiple input formats e.g. vcf/sam/fasta/fastq/gff/bed/csv/tsv
  • 🎉 Cross-platform support
  • 📦 Easy to install
  • 📚 Rich documentations

Installation

Using pip or cargo to install filterx:

pip install filterx
cargo install filterx

Download the latest release from releases.

Quick Start

example.csv
id,name,city,phone,gender
1,Alice,New York,123456,F
2,Bob,Los Angeles,234567,M
3,Charlie,Chicago,345678,M
4,David,Houston,456789,M
5,Eve,Phoenix,567890,F
6,Frank,Philadelphia,678901,M
7,Grace,San Antonio,789012,F
8,Heidi,San Diego,890123,F
9,Ivan,Dallas,901234,M
10,Judy,San Jose,012345,F
11,Kevin,New York,123456,M
12,Linda,Los Angeles,234567,F
13,Michael,Chicago,345678,M
14,Nancy,Houston,456789,F
15,Oliver,Phoenix,567890,M
filterx c example.csv -e "city in ('New York', 'Los Angeles')" -e "gender == 'F'" -e "select(name, id)"

Output:

name,id
Alice,1
Linda,12

Documentation

filterx has a built-in help system, you can use filterx info --list to list all available built-in functions, and use filterx info <command> to get help for a specific function.

Star History

Star History Chart

Metadata

Release files for filterx 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for filterx 0.4.1
File Actions
filterx-0.4.1-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for filterx-0.4.1-py3-none-win_amd64.whl
filterx-0.4.1-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for filterx-0.4.1-py3-none-manylinux_2_28_x86_64.whl
filterx-0.4.1-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for filterx-0.4.1-py3-none-manylinux_2_28_aarch64.whl
filterx-0.4.1-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for filterx-0.4.1-py3-none-macosx_11_0_arm64.whl
filterx-0.4.1-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details for filterx-0.4.1-py3-none-macosx_10_12_x86_64.whl

Total release size: 40.0 MB

Release files / filterx-0.4.1-py3-none-win_amd64.whl

Download URL filterx-0.4.1-py3-none-win_amd64.whl
Size 7.7 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
58ca02461f2adb70d4e30e088ce4a65edd017e7e37f9305725a631685f51af2e
BLAKE2b-256 checksum
How to use checksums
84ebc0617f1941c454c0d4f39eb62350d4518e38abcbf9f3505a8ce90f57388b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / filterx-0.4.1-py3-none-manylinux_2_28_x86_64.whl

Download URL filterx-0.4.1-py3-none-manylinux_2_28_x86_64.whl
Size 8.8 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
8deff342d98e0847ec8fbbf85f34134db4d8a347eb5730cac8e2acc52a21fdc6
BLAKE2b-256 checksum
How to use checksums
495851b826b46d58e977e24ac846b1b854f03157c0b9175850098c76924c5934
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / filterx-0.4.1-py3-none-manylinux_2_28_aarch64.whl

Download URL filterx-0.4.1-py3-none-manylinux_2_28_aarch64.whl
Size 8.3 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
14d8ebae0ac0d2a90e441884c932112c2448ec294cce76111352608a287cd629
BLAKE2b-256 checksum
How to use checksums
9341e4c49fcb7fc97734cd20671a92322ee7b1ee784d61df08cff4af21816cd1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / filterx-0.4.1-py3-none-macosx_11_0_arm64.whl

Download URL filterx-0.4.1-py3-none-macosx_11_0_arm64.whl
Size 7.2 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b351e6eafda79192b26eab52ab4e02d3e51cc9fe2472c93af1fa0e8c1fae8215
BLAKE2b-256 checksum
How to use checksums
baed840648e0da65f0bd7bbe8c2f3ab546ecb32e030a28bf5363f4fe1df81d69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Release files / filterx-0.4.1-py3-none-macosx_10_12_x86_64.whl

Download URL filterx-0.4.1-py3-none-macosx_10_12_x86_64.whl
Size 7.9 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e8a4e989749ba1541eb758355b75a3aa1d8acea677c11b693cb286833da411e0
BLAKE2b-256 checksum
How to use checksums
b6714b55f323a9c83ce37181a04a9709891f5d3f87b59395396d7474fbfb49df
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via maturin/1.9.3

Security for filterx 0.4.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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