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.3.3-py3-none-win_amd64.whl (6.3 MB view details)

Uploaded Python 3Windows x86-64

filterx-0.3.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (7.1 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

filterx-0.3.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

filterx-0.3.3-py3-none-macosx_11_0_arm64.whl (8.0 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

filterx-0.3.3-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.3.3-py3-none-win_amd64.whl.

File metadata

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

File hashes

Hashes for filterx-0.3.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 8680f487a73fda407ed498702b56c83c600fd13c8e982a34bc5189b64173cefa
MD5 4820c0e9eb3e1ffa4fd446437daffdd2
BLAKE2b-256 4bd5528d928d4161d8d0bc329f066f33cb2886e4e9e3ab826ad50f1fc91a2bf9

See more details on using hashes here.

File details

Details for the file filterx-0.3.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for filterx-0.3.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 5c342b50edc29718a810149bf82b089bac364e1ba1463adcaaea4027eb242d23
MD5 3d454a763b37d91c78cf1e4783ad5184
BLAKE2b-256 2691a3393973efe5730377a3216be89254f69bdb64a98fe8bfa57662bced4665

See more details on using hashes here.

File details

Details for the file filterx-0.3.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for filterx-0.3.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 da0a6753e1d8e7cecadac1b7d111e0020f4ef81ac36087ee388c0a9de64081e0
MD5 980e558b9d0150e4790f14c75ec1b1be
BLAKE2b-256 8a64ffd55af7b22fe69f7f1f14747e11ef321274dad923156f125738c44eaa90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for filterx-0.3.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 02d4954003e78004ab88c954bb63afcb86f37a039885113630e354a3dbffed83
MD5 40e7d14ea84b55754ff5465fde8d0af3
BLAKE2b-256 77157b1a737cd979373cd9b1094ac7fa3af76467cee6678abe785f741de3777a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for filterx-0.3.3-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7ee14acbdc2af2ca2cb95bf864b30474178ba692256ed643ffaafb1bc8193aec
MD5 9ba9a66e9f54d969830d03e75aac8a23
BLAKE2b-256 b5571c74deb6a4efa976e6eca19e7ce0643b1512df4347d9ddc628ac2b060dee

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