Giter VIP home page Giter VIP logo

personal_library_cli's Introduction

Library Management System
This Python script implements a simple Library Management System using SQLite for storing book information. The script provides the following functionality:

Options
Add new book: Allows the user to input details for a new book. If a book with the same name (case-insensitive) already exists, the script prompts the user whether to overwrite the existing record or keep the same.

List books: Displays a list of all books stored in the database, including their ID, name, book number, and the time they were added.

Delete book: Enables the user to delete a book by providing its ID. If the book with the specified ID exists, it is deleted from the database.

Search book: Lets the user search for books by entering a search term (part of the book name). The script retrieves and displays a list of books that match the search criteria.

Usage
Upon running the script, the user is prompted to choose an option by entering a corresponding number. The script then executes the selected option based on the provided functionalities.

Database
The script utilizes SQLite to store book information. The database file is named books.db, and it is automatically created if it doesn't exist.

How to Run
Ensure you have Python installed on your system.
Execute the script, and follow the on-screen instructions to perform various operations.
Requirements
Python 3.x
SQLite (bundled with Python)
Note
This script is a basic implementation and does not include advanced features such as user authentication or error handling. It is intended for educational purposes and can be extended for more complex library management systems.

personal_library_cli's People

Contributors

bryko254 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.