{"id":25717391,"url":"https://github.com/ebrizzzz/library_database_management_system","last_synced_at":"2026-04-19T15:31:06.948Z","repository":{"id":277271154,"uuid":"930472156","full_name":"Ebrizzzz/Library_Database_Management_system","owner":"Ebrizzzz","description":"This project is a desktop application built with Python and PyQt5 that interacts with an MSSQL database to manage a library system using SQL and Python.","archived":false,"fork":false,"pushed_at":"2025-02-10T17:32:22.000Z","size":1973,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-25T15:48:01.043Z","etag":null,"topics":["database","pyqt5","python","sql","sqlalchemy"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ebrizzzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-10T17:29:48.000Z","updated_at":"2025-02-10T17:34:06.000Z","dependencies_parsed_at":"2025-02-13T03:39:59.920Z","dependency_job_id":null,"html_url":"https://github.com/Ebrizzzz/Library_Database_Management_system","commit_stats":null,"previous_names":["ebrizzzz/library_database_management_system"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Ebrizzzz/Library_Database_Management_system","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ebrizzzz%2FLibrary_Database_Management_system","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ebrizzzz%2FLibrary_Database_Management_system/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ebrizzzz%2FLibrary_Database_Management_system/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ebrizzzz%2FLibrary_Database_Management_system/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ebrizzzz","download_url":"https://codeload.github.com/Ebrizzzz/Library_Database_Management_system/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ebrizzzz%2FLibrary_Database_Management_system/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32011897,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T20:23:30.271Z","status":"online","status_checked_at":"2026-04-19T02:00:07.110Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["database","pyqt5","python","sql","sqlalchemy"],"created_at":"2025-02-25T15:36:29.584Z","updated_at":"2026-04-19T15:31:06.940Z","avatar_url":"https://github.com/Ebrizzzz.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Library Book Management System\n\n[![Python](https://img.shields.io/badge/Python-3.7+-blue.svg?logo=python\u0026logoColor=white)](https://www.python.org/)\n[![SQLAlchemy](https://img.shields.io/badge/SQLAlchemy-1.4+-orange.svg?logo=sqlalchemy\u0026logoColor=white)](https://www.sqlalchemy.org/)\n[![PyQt5](https://img.shields.io/badge/PyQt5-5.15+-brightgreen.svg?logo=python\u0026logoColor=white)](https://www.riverbankcomputing.com/software/pyqt/)\n[![MSSQL](https://img.shields.io/badge/MSSQL-Server-red.svg?logo=microsoftsqlserver\u0026logoColor=white)](https://www.microsoft.com/en-us/sql-server/)\n\n## Project Overview\n\n\n![](images/c.png)\n\n\nThis project is a desktop application built with Python and PyQt5 that interacts with an MSSQL database to manage a library system.\n\nDetailed report availabe in Report.pdf\n\n\n## Key Features\n\n* **User Authentication:**\n    * Manager and Customer login pages with secure password handling (demonstrates data security awareness).\n    * Customer registration functionality.\n* **Book Management (Manager Side):**\n    * **Find Books:** Search for books by name, genre, author, and publication year.\n    * **Add Book:**  Functionality to add new books to the database.\n    * **Edit Book:**  Modify existing book information.\n    * **View Current Borrowers:**  See which customers currently have a specific book borrowed.\n* **Customer Operations (Customer Side):**\n    * **Find Books:** Search for available books to borrow.\n    * **Borrow Books:**  Borrow books, updating book availability and recording borrowing history.\n    * **Return Books:**  Return borrowed books, updating availability and recording return dates.\n    * **View Borrowed Books:** See a list of currently borrowed books.\n    * **Borrow History:**  View a history of all books borrowed by a customer.\n* **Customer Management (Manager Side):**\n    * **Find Customers:** Search for customers based on various criteria (ID, name, contact info, etc.).\n    * **View Customer Book History:** (Through \"Find Customers\" and then \"Books\" button) - See borrowing history for individual customers.\n* **Manager Management (Manager Side):**\n    * **Add Manager:** Functionality to add new manager accounts.\n* **Data Display:**  Uses PyQt5 `QTableWidget` to display data from the database in a structured and sortable table format.\n* **Error Handling:**  Includes error handling and user feedback through message boxes (e.g., login status, input validation).\n\n\n## Tools Used\n\n* **Python:** Core programming language for the application logic and GUI.\n* **PyQt5:**  Python library for creating the graphical user interface (GUI).\n* **SQLAlchemy:** Python ORM (Object-Relational Mapper) for interacting with the MSSQL database. Provides a Pythonic way to write SQL queries and manage database operations.\n* **MSSQL Server:** Relational database management system used to store library data.\n* **pyodbc:** Python library for connecting to ODBC databases (used for MSSQL connectivity).\n\n\n## Database Setup (MSSQL)\n\nBefore you run the Library Book Management System, you **must** set variables that tell the application how to connect to your MSSQL database using **Trusted Connection (Windows Authentication)**.\n\nYou need to set the following variables in the .env file and **save** the file:\n\n\n*   **`DB_SERVER`**: The address or hostname of your MSSQL Server. This could be:\n    *   `localhost` or `127.0.0.1` if your MSSQL Server is running on your local machine.\n    *   The computer name of your MSSQL Server if it's on your local network (e.g., `DESKTOP-SERVER`).\n    *   The IP address or hostname of your MSSQL Server if it's running remotely or in the cloud.\n*   **`DB_NAME`**: The name of your MSSQL database (e.g., `LibraryDB`).\n\n* **Ensure you have access to an MSSQL Server.**\n* **Create an empty database** that you will use for this application. Note down the database name.\n* **Run the provided `database_schema.sql` script** against your newly created database to create the necessary tables. This script is located in the root of the repository. You can use a tool like SQL Server Management Studio to execute the script.\n* **Install Python Dependencies:**\n    ```bash\n    pip install -r requirements.txt\n    ```\n\n![](images/a.png)\n![](images/b.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febrizzzz%2Flibrary_database_management_system","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Febrizzzz%2Flibrary_database_management_system","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Febrizzzz%2Flibrary_database_management_system/lists"}