Skip to content

CLI Text Analyzer: A Python tool to analyze text files, built for my PCAP certification portfolio. Counts lines, chars, words, unique words, and searches keywords (case-insensitive). Cleans non-alphabetic chars (e.g., "test." β†’ "test").

License

Notifications You must be signed in to change notification settings

bryanlokhim/CLI_Text_Analyzer_Tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

9 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ Text File Analyzer

Climber scaling a steep cliff

Python License Status

A lightweight Python CLI tool to analyze text files with ease. Built to count lines, characters, words, unique words, and search for keywords, this project showcases clean code, error handling, and command-line argument parsing using Python's argparse module. Perfect for developers, data analysts, or anyone curious about text file insights!

πŸš€ Why I Built This

I created this tool to explore file I/O, text processing, and CLI development in Python while solving a practical problem: quickly extracting meaningful stats from text files. Whether you're analyzing logs, manuscripts, or datasets, this tool delivers fast, reliable results with a user-friendly interface.

✨ Features

  • Line Count: Total number of lines in the file.
  • Character Count: Total characters (excluding newlines).
  • Word Count: Total words (punctuation removed).
  • Unique Words: Case-insensitive count of unique words.
  • Keyword Search: Find occurrences of a specific word (case-insensitive).
  • Robust Error Handling: Gracefully handles missing files and unexpected errors.

πŸ› οΈ Tech Stack

  • Python 3.x: Core programming language.
  • argparse: For parsing command-line arguments.
  • File I/O: Reading and processing text files.
  • String Manipulation: Cleaning and analyzing text data.

πŸ“¦ Installation

  1. Clone the repository:
    git clone https://github.com/bryanlokhim/text-file-analyzer.git

About

CLI Text Analyzer: A Python tool to analyze text files, built for my PCAP certification portfolio. Counts lines, chars, words, unique words, and searches keywords (case-insensitive). Cleans non-alphabetic chars (e.g., "test." β†’ "test").

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages