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

staywiselib_shridharan-0.0.1.tar.gz (1.8 kB view details)

Uploaded Source

Built Distribution

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

staywiselib_shridharan-0.0.1-py3-none-any.whl (2.6 kB view details)

Uploaded Python 3

File details

Details for the file staywiselib_shridharan-0.0.1.tar.gz.

File metadata

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

File hashes

Hashes for staywiselib_shridharan-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3535073ae781b6bbcfa45485f09dfaa3411d4610792ee70053b72b73ca6ba9df
MD5 eb38988dddf9c2f183b5b73216ad1ccb
BLAKE2b-256 9101eb3e6154bcd5a623dedd02913b580e86c77167c44ea4f876c9e0be30c6c4

See more details on using hashes here.

File details

Details for the file staywiselib_shridharan-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for staywiselib_shridharan-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0415e3801edc34339897dcd2a1217f7d319673324f051fa1a355622fd06f3391
MD5 92abacaf044d6dc1181af0f57c6cdcd6
BLAKE2b-256 bf39e4bccb08c0c6efe3a3867866f59d3347bd4714dc9c9a8cbb5ecac2bd62d2

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