Jetski Rental System by Tarid Suwansri
Project description
Jetski is a Python library for dealing with Jetski Rental System.
Installation
Use the package manager pip to install Jetski.
pip install Jetski
Usage
Start by importing both classes and datetime module.
from Jetski import JetskiRental, Customer
import datetime
Then, create JetskiRental and Customer objects and test example of rent.
shop = JetskiRental(10)
customer = Customer()
jetskis = customer.requestJetski()
customer.rentalBasis = 1
customer.rentalTime = datetime.datetime.now() + datetime.timedelta(hours=-2)
request = customer.returnJetski()
shop.displaystock()
shop.rentJetskiOnHourlyBasis(jetskis)
shop.displaystock()
bill = shop.returnJetski(request)
print(f"Your bill is {bill}.")
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Jetski-0.0.3.tar.gz
(4.7 kB
view hashes)