Welcome to the Library Management System project! This Python-based application allows you to manage books in a library. You can add new books, view the list of available books, and remove books using a simple menu interface. This system is designed to be intuitive and easy to use, making it perfect for library management tasks.
The Library Management System is a simple console application written in Python. It allows users to:
- Add books to a library.
- List all the books in the library.
- Remove books from the library by their unique ID.
The application stores book data in a text file named books.txt
, which contains information about each book, such as its title, author, release year, and the number of pages.
This system provides the following features:
- Add Book: Allows you to add a new book with details like title, author, release year, and pages.
- List Books: Displays all books currently stored in the library with their ID, title, author, and number of pages.
- Remove Book: Allows you to remove a book by providing its unique ID.
To run this project, you need to have Python 3.x installed on your computer. You can download and install Python from here.
- Clone the repository from GitHub to your local machine:
git clone https://github.com/yasinkrcm/Library-Management-System.git
- Navigate to the project directory:
cd Library-Management-System
- The only requirement is Python 3.x, so ensure that Python is installed and available in your system's PATH.
- Run the program with the following command:
python "Library Management System.py"
Once the program is running, you will see a menu with the following options:
- List Books: View a list of all the books in the library.
- Add Book: Add a new book to the library with its details.
- Remove Book: Remove a book from the library using its ID.
- Quit: Exit the program.
Book title: The Great Gatsby
Book author: F. Scott Fitzgerald
First release year: 1925
How many pages: 218
Book added successfully!
Enter the ID of the book you want to remove: 1
Book with ID '1' removed successfully!
The project has the following file structure:
Library-Management-System/
├── library_management_system.py # Main Python program
├── books.txt # Data file containing books information
└── README.md # Documentation file (this file)
All book data is stored in the books.txt
file. Each book's details are separated by commas in the following order: ID, title, author, release year, and number of pages.
If you want to contribute to this project, feel free to fork the repository and submit pull requests. If you find any issues or have suggestions for new features, please open an issue in the GitHub repository. Contributions are always welcome!
Note: Ensure that you test your changes thoroughly before submitting a pull request.
Thank you for using the Library Management System!