A command line tool to filter data by using python-like syntax
Project description
filterx
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file filterx-0.3.6-py3-none-win_amd64.whl.
File metadata
- Download URL: filterx-0.3.6-py3-none-win_amd64.whl
- Upload date:
- Size: 6.4 MB
- Tags: Python 3, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d45d5c535c9793c0e6d7b6a335bedd7b023ecb374603e72492d2bebb9d66f336
|
|
| MD5 |
5c2d528495804edfeffe4c6e1931da51
|
|
| BLAKE2b-256 |
5b2bd018fd4ab79f8c8d541e226da323773aae6f6d53e41854885ad1885e5dde
|
File details
Details for the file filterx-0.3.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.
File metadata
- Download URL: filterx-0.3.6-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 7.2 MB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
883e205d93fd08d585bd38252e98b8b96bc3e193e6bd90a573221a711dc23cc6
|
|
| MD5 |
fd065092d372954358f8b9568c3af58d
|
|
| BLAKE2b-256 |
61e974ebf0d5efacec94a28055ac489c51dc7072a7d8b5964133ace6563cd543
|
File details
Details for the file filterx-0.3.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.
File metadata
- Download URL: filterx-0.3.6-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 6.7 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6310e80b2abffcfe7523d548bca6d3077bfa5d095f6d3ab833b13b0e9b44e75
|
|
| MD5 |
e7d88b4841dbb2863355d5624e59195b
|
|
| BLAKE2b-256 |
7a16e409e6dc52abd7c5a335dfcd03f835a4b5a5934692bd3c46a8f2934c5ba2
|
File details
Details for the file filterx-0.3.6-py3-none-macosx_11_0_arm64.whl.
File metadata
- Download URL: filterx-0.3.6-py3-none-macosx_11_0_arm64.whl
- Upload date:
- Size: 6.0 MB
- Tags: Python 3, macOS 11.0+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4084ce6878ad0bbbaf555e33955c9ca2b8ad3f5d6e4a0882facf4dd6d8efb554
|
|
| MD5 |
ba5e2e17c48875216b545639f1b98108
|
|
| BLAKE2b-256 |
4a0230aabcdd69b84ad45a3fc9f710c6fffef023e771c13d6ef535b77e0fe691
|
File details
Details for the file filterx-0.3.6-py3-none-macosx_10_12_x86_64.whl.
File metadata
- Download URL: filterx-0.3.6-py3-none-macosx_10_12_x86_64.whl
- Upload date:
- Size: 6.5 MB
- Tags: Python 3, macOS 10.12+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: maturin/1.8.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eba440cb80f7a95699490b94db8c2b29f8079275c78d5b537a07d147b2921207
|
|
| MD5 |
0f54d2e0a9e5a288899ddf9e8c08c92c
|
|
| BLAKE2b-256 |
a21f4ce72430760acf4bc83e2dd47f924d82809f057fa0f61b6b277f4f237bab
|