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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file staywise_discountlib-0.0.2.tar.gz.
File metadata
- Download URL: staywise_discountlib-0.0.2.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
cb03ce41187b4fdf46cd328137af628972627f5285636afbbd9c8a20968c3065
|
|
| MD5 |
a2bcfe264aa2289746ddcd0361954aff
|
|
| BLAKE2b-256 |
3f7fd1284252447e907f1d958ac3fc282c3abab92fb3778dd2e7840015f6350d
|
File details
Details for the file staywise_discountlib-0.0.2-py3-none-any.whl.
File metadata
- Download URL: staywise_discountlib-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.9.24
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d48c665371bbd5f3194e02b27fae27a967bd892b19640239d125e2cb16c6c25e
|
|
| MD5 |
1e391c1ca860d94021f2b9ef9fd65e32
|
|
| BLAKE2b-256 |
cb3cfd1093a88288a12da0bd79a7cd39774a38584b5b54709e6f2a46a0a1637e
|