Skip to main content

A command line tool to filter data by using python-like syntax

Project description

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

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

filterx-0.4.1-py3-none-win_amd64.whl (7.7 MB view details)

Uploaded Python 3Windows x86-64

filterx-0.4.1-py3-none-manylinux_2_28_x86_64.whl (8.8 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ x86-64

filterx-0.4.1-py3-none-manylinux_2_28_aarch64.whl (8.3 MB view details)

Uploaded Python 3manylinux: glibc 2.28+ ARM64

filterx-0.4.1-py3-none-macosx_11_0_arm64.whl (7.2 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

filterx-0.4.1-py3-none-macosx_10_12_x86_64.whl (7.9 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file filterx-0.4.1-py3-none-win_amd64.whl.

File metadata

  • Download URL: filterx-0.4.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 7.7 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: maturin/1.9.3

File hashes

Hashes for filterx-0.4.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 58ca02461f2adb70d4e30e088ce4a65edd017e7e37f9305725a631685f51af2e
MD5 6ea8368865bdb2b51d5d9c5fa2f6aa95
BLAKE2b-256 84ebc0617f1941c454c0d4f39eb62350d4518e38abcbf9f3505a8ce90f57388b

See more details on using hashes here.

File details

Details for the file filterx-0.4.1-py3-none-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for filterx-0.4.1-py3-none-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 8deff342d98e0847ec8fbbf85f34134db4d8a347eb5730cac8e2acc52a21fdc6
MD5 eb213776cb99e7e77cb6b1b4506cfb39
BLAKE2b-256 495851b826b46d58e977e24ac846b1b854f03157c0b9175850098c76924c5934

See more details on using hashes here.

File details

Details for the file filterx-0.4.1-py3-none-manylinux_2_28_aarch64.whl.

File metadata

File hashes

Hashes for filterx-0.4.1-py3-none-manylinux_2_28_aarch64.whl
Algorithm Hash digest
SHA256 14d8ebae0ac0d2a90e441884c932112c2448ec294cce76111352608a287cd629
MD5 15f3a1aefd118225d55077c4bb9e7d86
BLAKE2b-256 9341e4c49fcb7fc97734cd20671a92322ee7b1ee784d61df08cff4af21816cd1

See more details on using hashes here.

File details

Details for the file filterx-0.4.1-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for filterx-0.4.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 b351e6eafda79192b26eab52ab4e02d3e51cc9fe2472c93af1fa0e8c1fae8215
MD5 70cd8c1d28855041a5153927e01c2876
BLAKE2b-256 baed840648e0da65f0bd7bbe8c2f3ab546ecb32e030a28bf5363f4fe1df81d69

See more details on using hashes here.

File details

Details for the file filterx-0.4.1-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for filterx-0.4.1-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e8a4e989749ba1541eb758355b75a3aa1d8acea677c11b693cb286833da411e0
MD5 115be70f87fe1c719f9dfe1e3d14f488
BLAKE2b-256 b6714b55f323a9c83ce37181a04a9709891f5d3f87b59395396d7474fbfb49df

See more details on using hashes here.

Supported by

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