https://github.com/mooore-digital/csv_filter
A command-line interface, providing the ability to mutate data in a CSV file.
https://github.com/mooore-digital/csv_filter
csv filter marissen python
Last synced: about 1 year ago
JSON representation
A command-line interface, providing the ability to mutate data in a CSV file.
- Host: GitHub
- URL: https://github.com/mooore-digital/csv_filter
- Owner: mooore-digital
- License: mit
- Created: 2018-03-07T23:13:59.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-11-27T13:22:47.000Z (over 6 years ago)
- Last Synced: 2025-01-29T11:46:16.050Z (about 1 year ago)
- Topics: csv, filter, marissen, python
- Language: Python
- Size: 7.81 KB
- Stars: 1
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# CSV Filter (alpha)
Written in python, this program is a command-line interface, providing the ability to mutate data in a CSV file when spreadsheet applications lack functionality.
## Usage
For now, calling the program looks a bit rough, but it gets the job done.
You can call the program this way:
`python csv_filter/__init__.py`
- **--file/-f**: Specify file to filter
- **--deduplicate/-d** (optional): Specify deduplication column
- **--filter** (optional): Specify filter column and regex pattern
- **--filter_inverse** (optional): Inverse filter matches
- **--ignore_case/-i** (optional): Enable case insensitivity
- **--verbose/-v** (optional): Enable verbose output
## Examples
#### Deduplicating rows based on a column uniqueness
`python csv_filter/__init__.py --file export.csv --deduplicate=email -i -v`
#### Filter rows based on a regex
`python csv_filter/__init__.py --file export.csv --filter "_address_country_id=(NL|BE)" -i -v`
## Issue reporting/contributing
This program is in it's very early stages. If you encounter problems or have suggestions, please create a ticket or a pull request.