Skip to main content

The Car Rental System is a command-line application that allows users to manage vehicles and customers for a car rental service. It provides functionality for adding, deleting, and searching for cars, as well as managing customer information and renting out cars. The system uses JSON files to store and retrieve data, and it supports both normal cars and electric cars.

Files:

main.py: This file is the entry point of the application. It imports the necessary functions from the menu.py file and contains the main loop that prompts the user for actions.

menu.py: This file contains the menu functions and ASCII art for the different menus. It also imports the database.py file and the necessary classes and functions from it. The menu functions handle user input and perform the corresponding actions based on the choices made.

database.py: This file contains the Database class, which is responsible for handling JSON file operations. It includes functions to load and save car and customer data from and to JSON files. The class also provides utility functions to manipulate car and customer data.

car.py: This file defines the Car and ElectricCar classes, which represent the car objects in the system. The Car class represents a normal car, while the ElectricCar class represents an electric car. Both classes have methods to get and set car attributes and convert car objects to dictionaries.

customer.py: This file defines the Customer class, which represents a customer object in the system. The class has methods to get and set customer attributes and manage the rented car for each customer.

Documentation Guide:

Installation:

Download all the Python files: main.py, menu.py, database.py, car.py, customer.py. Make sure you have Python 3 installed on your system. Usage:

Open a command-line terminal or IDE. Navigate to the directory where the Python files are saved. Run the command "python main.py" to start the Car Rental System.

Main Menu:

After running the program, you will see the main menu with options. Enter "V" to access the vehicle management menu. Enter "C" to access the customer management menu. Enter "X" to close the program. Vehicle Management Menu:

In the vehicle management menu, you can perform the following actions: Enter "S" to show all cars. Enter "A" to add a new car (normal car or electric car). Enter "I" to search for a car by its ID. Enter "D" to delete a car by its ID. Enter "X" to return to the main menu. Customer Management Menu:

In the customer management menu, you can perform the following actions: Enter "S" to show all customers. Enter "A" to add a new customer. Enter "R" to rent out a car to a customer. Enter "C" to check a car back in from a customer. Enter "X" to return to the main menu.

https://www.babelfish.de/ was used for Translation to english

MIT License

Copyright (c) 2023 Yann Schüler

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Metadata

Release files for Auto-Vermietung 0.0.7

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for Auto-Vermietung 0.0.7
File Size Uploaded Provenance Actions
Auto_Vermietung-0.0.7.tar.gz 3.2 kB Without provenance Details for Auto_Vermietung-0.0.7.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for Auto-Vermietung 0.0.7
File Interpreter ABI Platform Actions
Auto_Vermietung-0.0.7-py3-none-any.whl Python 3 none any Details for Auto_Vermietung-0.0.7-py3-none-any.whl

Total release size: 6.1 kB

Release files / Auto_Vermietung-0.0.7.tar.gz

Download URL Auto_Vermietung-0.0.7.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
b5243d056e676eb9479913fc2a04badd23533a431134e5eedda51121ca60edd7
BLAKE2b-256 checksum
How to use checksums
890f176e7d887bf6638fe12d513a6986ff3e473607d9b0bc387a07c303a6165f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Release files / Auto_Vermietung-0.0.7-py3-none-any.whl

Download URL Auto_Vermietung-0.0.7-py3-none-any.whl
Size 2.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
00c557a84a7cce6fbac4f1b528831a62903898692726554a988d3395f3d25504
BLAKE2b-256 checksum
How to use checksums
eeff905c24873b9953440f2e49b78f93c5659c13f490961a493d7bc675978adf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.2

Security for Auto-Vermietung 0.0.7

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.7 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page