Skip to main content

Small helper library for tour order calculation

Project description

travel_order_lib

Небольшая библиотека для курсового проекта про туристическое агентство.

Она используется при оформлении заявки на тур:

  • проверяет выбранного клиента и тур;
  • проверяет количество человек;
  • считает скидку;
  • считает итоговую стоимость заявки;
  • возвращает подготовленные данные для сохранения.

Пример:

from travel_order_lib import ClientOrderData, TourOrderData, create_order_data

client = ClientOrderData(id=1, full_name="Иванов Сергей Петрович", phone="+7 900 111-22-33")
tour = TourOrderData(id=1, title="Солнечная Анталья", base_price=84500)

order = create_order_data(client=client, tour=tour, people_count=3)
print(order.total_price)

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

frive_travel_order_lib_kursach-0.1.0.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

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

File details

Details for the file frive_travel_order_lib_kursach-0.1.0.tar.gz.

File metadata

File hashes

Hashes for frive_travel_order_lib_kursach-0.1.0.tar.gz
Algorithm Hash digest
SHA256 fe21c79574a7c6b4e858a55f00d231d73069cddc1f9a22906748c1ecfc4dde06
MD5 8f396a86356edde3515e8fb72d11848f
BLAKE2b-256 9638cc2a37e0fb6ad68037424aee09f42584b359f5e6d0445dd03f770867529d

See more details on using hashes here.

File details

Details for the file frive_travel_order_lib_kursach-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for frive_travel_order_lib_kursach-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 23c49c7604c0a2fc9959d6cb2834164df50e240589b4922f3392e8c66dc3d646
MD5 e34bb44c61a6a686b55dc8e1caabb8cb
BLAKE2b-256 9dbd0f078d255c46c008400e2a589a0fa7029f5ac61c8eb00a1905cd5ea361dd

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