Library management using python & MySQL

Overview

Library management using python & MySQL


Dev/Editor: Pavan Ananth Sharma & MK Akash

Introduction:

This is an intermediate project which is a user-friendly library management system that allows you to:

  • Add book with details
  • Delete books
  • View listed books
  • Issue books to students/anyone
  • Return books

Output:


Dependencies:

  • tkinter
  • pillow
  • pymysql
  • MySQL should be instaled

Code to download dependencies:

pip install tk
pip install pillow
pip install pymysql

Note: we need to install tk which is tkinter and pillow which is PIL, so dont worry and install these dependencies using the above code.


IMPORTANT STEP

  • Make sure you have installed MySQL for your OS, if not follow this video : https://www.youtube.com/watch?v=N3B3OonC2AU&t=343s Not sponcered
  • Follow the above video carefully and we recommend to use the password as root
  • After you have successfully installed and tested now you will need to run a few commands before running the main.py
  • Open MySQL 8.0(or any version) Command Line Client using windows key and searching it if you use windows
  • Enter the password in this case we use root
  • then we run show databases; to show the existing databases
  • We add our data based which we will call db code for it : create database db;
  • Then we run : create table books(bid varchar(20) primary key, title varchar(30), author varchar(30), status varchar(30));
  • Last but not the least we enter: create table books_issued(bid varchar(20) primary key, issuedto varchar(30));
  • So basically we created 2 tables inside a database named db with multiple access elements
  • Now to enter into the database you have created use teh code: use db;
  • Now to ckeck the tables you have created you can say ener : show tablesl;
  • To see the elements inside the tables (for example books) code: select * from books;
  • Similarly to use the elements insie the table books_issued run the code: select * from books_issued;

Usecase / run:

if you want to run the code you will need to run : main.py
  • If you have followed all the steps correctly as soon as you run main.py the UI will popup then as as soon as you add a book by filling the information(case sensitive), you can now get to the CLI of MYSql and run: select * from books; and this will display if you have added any book into the database.
  • Similarly after you have deleted any book you can run the same code to verify if it has been deleted from the database system.
  • When you issue a book then if you want to check who have you given it to enter the code: select * fom books_issued; to find the name and book ID (bid).
  • After you have created a book and then issued it to anyone you can see the status of the book change by again going into the books_issued table for that we use the code: select * from books; if you have followed you shouold see the change in the status of the book(if Avail before now it would have updated to issued).
  • If you have got all of them then congratulations you have done an amazing job

Wallet: 0x592eF244F8924be9F3F8803f8d639392f465Ac51

Instagram: pavan_ananth


You might also like...
Simple but maybe too simple config management through python data classes. We use it for machine learning.

👩‍✈️ Coqpit Simple, light-weight and no dependency config handling through python data classes with to/from JSON serialization/deserialization. Curre

Student Management System Built With Python
Student Management System Built With Python

Student-Management-System Group Members 19BCE183 - Patel Sarthak 19BCE195 - Patel Jinil 19BCE220 - Rana Yash Project Description In our project Studen

 🗽 Like yarn outdated/upgrade, but for pip. Upgrade all your pip packages and automate your Python Dependency Management.
🗽 Like yarn outdated/upgrade, but for pip. Upgrade all your pip packages and automate your Python Dependency Management.

pipupgrade The missing command for pip Table of Contents Features Quick Start Usage Basic Usage Docker Environment Variables FAQ License Features Upda

Python Service for MISP Feed Management

Python Service for MISP Feed Management This set of scripts is designed to offer better reliability and more control over the fetching of feeds into M

This is a simple bank management system based on Python.

Python Bank Management This is a simple bank management system based on Python. It's able to do basic operations of simple bank management. Outcome: W

A student information management system in Python
A student information management system in Python

Student-information-management-system 本项目是一个学生信息管理系统,这个项目是用Python语言实现的,也实现了图形化界面的显示,同时也实现了管理员端,学生端两个登陆入口,同时底层使用的是Redis做的数据持久化。 This project is a stude

A Company Management System For Python

campany-management Getting started To make it easy for you to get started with GitLab, here's a list of recommended next steps. Already a pro? Just ed

Student Result Management System Project in tkinter created based on python, tkinter, and SQLITE3 Database
Student Result Management System Project in tkinter created based on python, tkinter, and SQLITE3 Database

Student-Result-Management-System This Student Result Management System Project in tkinter created based on python, tkinter, and SQLITE3 Database. The

Web UI for your scripts with execution management

Script-server is a Web UI for scripts. As an administrator, you add your existing scripts into Script server and other users would be ab

Owner
Pavan Ananth Sharma
Ethereum 2.0
Pavan Ananth Sharma
A basic DIY-project made using Python and MySQL

Banking-Using-Python-MySQL This is a basic DIY-project made using Python and MySQL. Pre-Requisite needed:-->> MySQL command Line:- creating a database

ABHISHEK 0 Jul 3, 2022
Password manager using MySQL and Python 3.10.2

Password Manager Password manager using MySQL and Python 3.10.2 Installation Install my-project with github git clone https://github.com/AyaanSiddiq

null 1 Feb 18, 2022
An example using debezium and mysql with docker-compose

debezium-mysql An example using debezium and mysql with docker-compose The docker compose starts the Zookeeper, Kafka, Mysql and Debezium Connect. Aft

Horácio Dias Baptista Neto 4 May 21, 2022
An example of Connecting a MySQL Database with Python Code

An example of Connecting a MySQL Database with Python Code And How to install Table of contents General info Technologies Setup General info In this p

Mohammad Hosseinzadeh 1 Nov 23, 2021
An example of Connecting a MySQL Database with Python Code

An example of Connecting And Query Data a MySQL Database with Python Code And How to install Table of contents General info Technologies Setup General

Mohammad Hosseinzadeh 1 Nov 23, 2021
This is a menu driven Railway Reservation Project which is mainly based on the python-mysql connectivity.

Online-Railway-Reservation-System This is a menu driven Railway Reservation Project which is mainly based on the python-mysql connectivity. The projec

Ananya Gupta 1 Jan 9, 2022
Registro Online (100% Python-Mysql)

Registro elettronico scritto in python, utilizzando database Mysql e Collegando Registro elettronico scritto in PHP

Sergiy Grimoldi 1 Dec 20, 2021
Simple Crud Python vs MySQL

Simple Crud Python vs MySQL The idea came when I was studying MySQ... A desire to create a python program that can give access to a "localhost" databa

Lucas 1 Jan 21, 2022
Бэкапалка таблиц mysql 8 через брокер сообщений nats

nats-mysql-tables-backup Бэкап таблиц mysql 8 через брокер сообщений nats (проверено и работает в ubuntu 20.04, при наличии python 3.8) ПРИМЕРЫ: Ниже

Constantine 1 Dec 13, 2021
Datargsing is a data management and manipulation Python library

Datargsing What is It? Datargsing is a data management and manipulation Python library which is currently in deving Why this library is good? This Pyt

CHOSSY Lucas 10 Oct 24, 2022