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

Uploaded Python 3Windows x86-64

filterx-0.3.5-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.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (6.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

filterx-0.3.5-py3-none-macosx_11_0_arm64.whl (5.8 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

filterx-0.3.5-py3-none-macosx_10_12_x86_64.whl (6.5 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: filterx-0.3.5-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.5-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 436c8f05710b86e9f73e03d3b3b34d5102588b68b30682137d1810f0a8fd2a19
MD5 0d887dd52e42634d183c899462615b48
BLAKE2b-256 add888c98fc9b9fdc13fe18a804dea23cde5bdd59148e8544396672f1d57f711

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for filterx-0.3.5-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 af4ed43d7983a96dcf58ccb15033de0a853e0f920ea960268880532ebe438f6d
MD5 024f9d9eda9acd8f62b6c7cf9fcb8a46
BLAKE2b-256 f2c6a3ae1415cc9ab6c5b5e2e65a6854aeefc34d4733da347f790ca5b7b59718

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for filterx-0.3.5-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 38f7d7339b86222fb1814bacf3c806823b1fbed8c1f36ed57aa790d988bdc128
MD5 ed88d24da0a3a8beed3c6a1372de8035
BLAKE2b-256 33312214f4386dae6cf969b59729a62501b1ea4051b19b9cfc8ace38c4f0aa5d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for filterx-0.3.5-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 62cb3d8f0cb793b998c68ff0cf71bd2b70bf6545b5db2e69a32eff1b2f136004
MD5 20e9a129b51a5e970fa2341c423dc121
BLAKE2b-256 f0df0b0912c513cde60eed64720b853049a1a546ba5ea68e839aa254515e387c

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for filterx-0.3.5-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 bdaee3ba9d1ad1310ad66f49eb9cf5d090c27829675bad32ee0d5deeaa13cb88
MD5 aa47cf98c1fa5e8c33299f1dd644ebf2
BLAKE2b-256 662ac44b86c6b70e87d3c0a50239f811f3e6d5845c36f4b8e9af6fe7f92529f3

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