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.2.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.

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

Uploaded Python 3

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

Hashes for staywise_discountlib-0.0.2.tar.gz
Algorithm Hash digest
SHA256 cb03ce41187b4fdf46cd328137af628972627f5285636afbbd9c8a20968c3065
MD5 a2bcfe264aa2289746ddcd0361954aff
BLAKE2b-256 3f7fd1284252447e907f1d958ac3fc282c3abab92fb3778dd2e7840015f6350d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for staywise_discountlib-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d48c665371bbd5f3194e02b27fae27a967bd892b19640239d125e2cb16c6c25e
MD5 1e391c1ca860d94021f2b9ef9fd65e32
BLAKE2b-256 cb3cfd1093a88288a12da0bd79a7cd39774a38584b5b54709e6f2a46a0a1637e

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