Skip to main content

A reusable library for StayWise project with festival, weekend, and long-stay discount logic.

Project description

staywiselib-shridharan

This is a custom Python library used in the StayWise project. It calculates discounts based on festival, weekend, and long-stay pricing.

Example

from staywiselib.pricing import apply_festival_discount

price, discount, reason = apply_festival_discount(1000, event="Diwali")
print(price, discount, reason)

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

staywise_discountlib-0.0.3.tar.gz (2.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

staywise_discountlib-0.0.3-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file staywise_discountlib-0.0.3.tar.gz.

File metadata

  • Download URL: staywise_discountlib-0.0.3.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.24

File hashes

Hashes for staywise_discountlib-0.0.3.tar.gz
Algorithm Hash digest
SHA256 82c4ddf83be2ad1e653679f622aa785edae15f412a2ad5158931aa053afa6f41
MD5 60094f4c934eddaf3c6a6106ec972b45
BLAKE2b-256 7f511a35505d73a77075402cb8deaf9fc9591dd7d0d3e9148248d0310e90a80c

See more details on using hashes here.

File details

Details for the file staywise_discountlib-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for staywise_discountlib-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9d3f2c29e88218b1a3527269b53a4bd37c17b628b8ea6357195e0d4ac9a6a5d8
MD5 29f30354ac12325d5225806e3da3bfbf
BLAKE2b-256 b60562e05fe2bb42f11e0c5d4d00a7f7ef7c1280540919538748cfa41192da19

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