Skip to content

VivekYadav-77/secure-library-system

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

4 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“š Library Management System (Python + SQLite)

This is a basic Python CLI-based Library Management System built with SQLite for persistent storage.


πŸš€ Features

  • User Registration and Login (with unique User ID)
  • View all available and borrowed books
  • Borrow books with automatic charge calculation (β‚Ή10/day)
  • Return books with fine calculation (β‚Ή5/day late)
  • Persistent storage using SQLite database
  • Clean and simple CLI interface

βš™οΈ Tech Stack

  • Python 3
  • SQLite3 (built-in Python module)

πŸ“ Usage

  1. Clone the repository

    git clone https://github.com/VivekYadav-77/secure-library-system.git
    cd librarymanagement
  2. Run the script

    python librarymanage.py
  3. Options available:

    • Register as a new user (get a unique User ID)
    • Login using your User ID
    • View available books
    • Borrow and return books
    • Logout or Exit

πŸ”‘ Authentication Highlight

  • Each user is assigned a unique User ID on registration.
  • Borrow and return records are tied to this ID, ensuring proper tracking of books and fines.

πŸ“‚ Database Schema

users

  • id (PK)
  • name

books

  • id (PK)
  • title
  • author
  • available (1 = available, 0 = borrowed)

borrows

  • id (PK)
  • user_id (FK β†’ users.id)
  • book_id (FK β†’ books.id)
  • borrow_date
  • expected_return
  • return_date
  • charges
  • fine

πŸ§‘β€πŸ’» Example Flow

--- Library Management ---
1. Register User
2. Login with User ID
3. Exit

Choose option: 1
Enter your name: Rahul
 Registered successfully! Your User ID is 1

--- User Menu (Rahul) ---
1. View Books
2. Borrow Book
3. Return Book
4. Logout

About

A Python + SQLite Library Management System with user authentication, secure borrow/return tracking, and fine management.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages