Skip to main content

A command line tool that help to find specific words from a file in any selected file.

Project description

Build Tests Status Coverage Status Flake8 Status

“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:

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PTWordFinder-1.0.12.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

PTWordFinder-1.0.12-py3-none-any.whl (5.4 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page