Skip to content

πŸ“š A Python bot that summarizes book data, built to practice Python fundamentals and file handling.

Notifications You must be signed in to change notification settings

heinrichb/bootdotdev_bookbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š BookBot (Python)

This repository contains the BookBot project, developed as part of the Boot.dev course. The goal of this project is to create a Python-based CLI tool that analyzes text files, reinforcing core programming and text-processing concepts.

πŸš€ Features

  • Word Count: Calculate the total number of words in a text file.
  • Character Analysis: Identify and count unique characters and their occurrences.
  • Text Insights: Provide meaningful statistics about the text, such as word frequency.
  • File Handling: Efficiently read and process text files.
  • Customizable Analysis: Easily extend the functionality for deeper text analysis.

πŸ› οΈ Technologies Used

  • Python: Core programming language for development.
  • File I/O: Reading and writing files in Python.
  • CLI Design: Simple and intuitive command-line interface.
  • Unit Testing: Ensuring reliability with Python's unittest framework.

πŸ“š What I Learned

  • Parsing and analyzing text files programmatically.
  • Using Python’s built-in libraries for efficient file and string manipulation.
  • Designing user-friendly CLI tools.
  • Writing clean and maintainable Python code.
  • Implementing and running unit tests to ensure functionality.

πŸ§ͺ Testing

Unit tests were written to validate:

  • Accurate word and character counts.
  • Proper handling of empty or malformed files.
  • Correct text statistics and analysis results.

Run tests with:

python -m unittest discover tests

🌟 Why This Project?

The BookBot project was built to strengthen my Python development skills by:

  • Practicing text processing and data analysis.
  • Building a functional CLI tool with real-world applications.
  • Learning to write robust and reusable code.

πŸ“‚ Project Structure

β”œβ”€β”€ bookbot/         # Core logic of the application
β”œβ”€β”€ cmd/             # Command-line interface
β”œβ”€β”€ tests/           # Unit tests
└── README.md        # Project documentation

πŸ”— Related Resources


Feel free to explore, test, and contribute to this project! πŸš€

About

πŸ“š A Python bot that summarizes book data, built to practice Python fundamentals and file handling.

Topics

Resources

Stars

Watchers

Forks