A command line tool that help to find specific words from a file in any selected file.
Project description
PTWordFinder
"What specific words would you like to read?" Counting words in "Pan Tadeusz" poem
Python version
tested with Python >= 3.10.6
Why
It was started as a project to exercise python language. The code helped to find specific words in a selected file. It became command line tool that help find any word within any file. The files can be selected by command line
how to use
you can installl this cmd tool from pip:.py
pip install PTWordFinder
Usage: ptwordf calculate-words WORDS_INPUT_FILE SEARCHED_FILE
where: WORDS_INPUT_FILE - is path to input file (.txt) that contain searched words SEARCHED_FILE - is path to file that program search for a specific word
Try 'ptwordf --help' for help
examples: ptwordf calculate-words words-list.txt test-file.txt ptwordf calculate-words srcfolder/words-list.csv newfolder/test-file.csv
Features
- lines counter
- a specific word counter
- tracking the script execution time
- support csv files
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 Distribution
Built Distribution
Hashes for PTWordFinder-1.0.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1836d5b13dc2e531ad0410e86dd6946b179570c3e981e577572ce5c1a0d3524f |
|
MD5 | 9bcc682c30f7a457ea3a5b1e00932d47 |
|
BLAKE2b-256 | 135fa36cb65c4704f1447214481318bafacb4c10b7684060e0616f1a27e99c85 |