Skip to content
This repository was archived by the owner on Jan 7, 2026. It is now read-only.

Steffen025/bookbot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#BookBot

BookBot is my first Boot.dev project!

BookBot is a Python project from boot.dev that analyzes text files to provide word and character frequency statistics.

Usage

To run BookBot, use the following command:

uv run main.py <path_to_book.txt>

Functionality

  • Word Count: Outputs the total number of words in the provided text file.
  • Character Frequency: Lists all characters used in the text and their frequency, sorted by usage (most frequent first).

Prerequisites

  • Python 3.x
  • uv for dependency management

Setup

  1. Clone the repository:
    git clone https://github.com/Steffen025/bookbot.git
    cd bookbot
  2. Ensure uv is installed. Follow the instructions here if needed.
  3. Place your text file (e.g., book.txt) in the project directory or provide its path.

Example

uv run main.py books/book.txt

This will output:

  • Total word count
  • A sorted list of characters and their frequencies

About

boot.dev project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages