Urgent.News

One page, thousands of outlets. See who else covered it.

Editions

Tech

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…

I recently completed a Python mini app called Py Book Search. This command-line application utilizes the Gutendex API to search for books and display them with relevant information, including a way to download the book. It took me around two weeks to complete this project, relying primarily on documentation and examples, with minimal assistance from AI.

This project proved to be a significant milestone for me, as it helped resolve many Python syntax issues and strengthened my understanding of file I/O, requests, data structures like dictionaries and lists.

Py Book Search queries the Project Gutenberg catalog through the Gutendex API, providing authors, summaries, languages, and download links. The user can discover and download public-domain classics from the terminal. The application queries the Project Gutenberg catalog through the Gutendex API, offering authors, summaries, languages, and download links - all from the comfort of your terminal.

Users can sign up or log in via the terminal, create user accounts, and browse book details. The app stores usernames and passwords in user.txt for simplicity, but it's essential to note that this is not a secure authentication system. Logged-in users receive a session ID stored in sessions.txt, which is validated before each search and cleared upon logout.

The app allows users to configure the number of results displayed per search, with five results as the default. Although the code is available on GitHub (thezenigma/Py-Book-Search), it's crucial to remember that this is a learning project meant for educational purposes only.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

Tuba 0.11 released

Version 0.11 of the Tuba fediverse client has been released. Notable changes in this release include support for Mastodon collections and quotes , ability to create custom thumbnails for attachments…

More from Wednesday 19 August →