DEV Community

Cover image for Starter Level Python Project: Py Book Search
Nafiz Fuad Khan
Nafiz Fuad Khan

Posted on

Starter Level Python Project: Py Book Search

I have finally finished my python book search mini app. This is a command- line application that uses Gutendex API to search for books and show them with some information regarding the book and gives a way to download the book. It took me almost 2 weeks to do it and I used minimal AI related help, did it mostly looking at documentations and examples. This was a big leap for me as it helped clear a lot of python related syntax issues and also gave me a good experience on the file i/o and requests which I used the most for this project and it also strengthened the concepts regarding the data structures of python such as dictionary and lists. Check it out here:

GitHub logo thezenigma / Py-Book-Search

Discover and download public-domain classics from your terminal. Py Book Search queries the Project Gutenberg catalog through Gutendex, returning authors, summaries, languages, and download links — with lightweight user accounts and session tracking.

Py Book Search

A command-line book search system written in Python. Search the Project Gutenberg catalog through the Gutendex API, sign up or log in, and browse book details — all from your terminal.

Features

  • Book search — search the Project Gutenberg catalog by title via the Gutendex API, sorted by popularity.
  • Rich results — each match shows the title, author(s), summary, languages, a plain-text download link, and the download count.
  • User accounts — sign up and log in with a username/password (stored in users.txt).
  • Session tracking — logged-in users get a session ID (stored in sessions.txt) that is validated before searches and cleaned up on logout.
  • Configurable results — limit how many results to return per search (defaults to 5).

Note

Authentication and sessions are implemented with plain-text files for learning purposes only. Do not use real credentials — this is not a secure auth system.

How

Top comments (0)