Skip to main content

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.

Author

Tarid Suwansri

License

MIT

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.4.tar.gz (4.8 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page