Welcome to the Hotel Booking project! This repository contains a Python-based application designed to manage hotel bookings efficiently. It provides features to add, manage, and retrieve booking details, making it suitable for small to medium-sized hotels.
- Hotel Booking: Users can check the availability of hotels and book them.
- Spa Package: Option to book a spa package along with the hotel.
- Payment System: Validate and process payments using credit card details.
- PDF Receipt: Automatically generates a PDF receipt for the booking.
- Email Integration: Sends the PDF receipt to the user's email address.
-
Clone the Repository:
git clone https://github.com/Nibir2405/Hotel_booking.git cd Hotel_booking
-
Create a Virtual Environment:
python3 -m venv venv source venv/bin/activate # For Windows: venv\Scripts\activate
-
Install Dependencies:
pip install -r requirements.txt
-
Run the Application:
python app.py
- Open your browser and navigate to
http://localhost:5000
(or the port specified in the project). - Use the interface to manage customer details, bookings, and rooms.
hotel-booking-cli/
│
├── [hotels.csv](http://_vscodecontentref_/0) # Hotel data
├── [cards.csv](http://_vscodecontentref_/1) # Credit card data
├── [card_security.csv](http://_vscodecontentref_/2) # Credit card security data
├── [main.py](http://_vscodecontentref_/3) # Main application script
└── README.md # Project documentation
└── requirements.txt # Project's requirements
Contributions are welcome! If you'd like to contribute, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-branch
). - Commit your changes (
git commit -m 'Add new feature'
). - Push to the branch (
git push origin feature-branch
). - Create a pull request.
This project is licensed under the MIT License.
- Python: Core programming language.
- Pandas: For reading and manipulating CSV files.
- FPDF: For generating PDF receipts.
- smtplib: For sending emails with attachments.
- Add a user-friendly GUI for better interaction.
- Implement a database to replace CSV files for better scalability.
- Add more payment options (e.g., PayPal, Stripe).
- Enhance error handling and logging.
Special thanks to all contributors and users who make this project better!
Feel free to customize it further based on your project's specific details, such as additional features or technologies used. Let me know if you need help with any section!