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 details)

Uploaded Source

File details

Details for the file Jetski-0.0.4.tar.gz.

File metadata

  • Download URL: Jetski-0.0.4.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for Jetski-0.0.4.tar.gz
Algorithm Hash digest
SHA256 eab5d181fbad4c16029bfe96bec2196177a8fe13d3f796068648c57c6a30e124
MD5 83390c770ac0171d7ed29cf275d776dc
BLAKE2b-256 9770e97adad2edfae9aa990b633b9d2120ccc15a656d053e74ff2c1e76d3d9ca

See more details on using hashes here.

Supported by

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