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

Uploaded Python 3Windows x86-64

filterx-0.3.4-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.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.6 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

filterx-0.3.4-py3-none-macosx_11_0_arm64.whl (5.9 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

filterx-0.3.4-py3-none-macosx_10_12_x86_64.whl (6.4 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: filterx-0.3.4-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.1

File hashes

Hashes for filterx-0.3.4-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 8176e04f7d16484c7f0335e6a7959d769dab6652aff2826b6459bfe62b527630
MD5 273924afde241100701dd08167582788
BLAKE2b-256 ccf6e62e676abb6be6a81f9db13455dbd7c551ff642ef509755f65fde2e543fe

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for filterx-0.3.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7637a3a947e23be5706309121e4cc51a353583fdd7d7a911fd7e3ab82bd87014
MD5 9b03eddaf12aae186ffe862882a89a43
BLAKE2b-256 9ffcba10b7d3a1f9d7e2a960a8fe102b9137fbf7ef7c9bc5cd1cbf2e4744faf2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for filterx-0.3.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 19f3f5d2ec55265839a5fd18ee89bfc6cf7dbdf94751f7287c19a0e0a077d137
MD5 6a1b4dbcbb80a36aeb12ce95067fd415
BLAKE2b-256 f617e2f914b2a4bd32087b3688c46ec1c7c4f5b881072302751ee900a05d6189

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for filterx-0.3.4-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 caebb0556c76e5e5ae1db527fc5c3aea76e79ffd23770a36aef3f4c88aea51d1
MD5 c9f14ab88b5aabf14ba833dbca84453e
BLAKE2b-256 17889122330e35386f726a1e105cc75083ccb2aac325ec531d2b1f1d854670ed

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for filterx-0.3.4-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 7e3c52688a5b5b095bd4547765ebb6913d5e9358bccc669f7767ada55663a9c2
MD5 1e206db08604dba495cd7cf66cc8c04a
BLAKE2b-256 2dc0b79f3d6effb517cd1304907fdde2bc3465e9135eee5aac7e9fdc160f2618

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