Skip to main content

Simple library to calculate insurance premium

Project description

Premium Calculator Library

This is a simple package to calculate insurance premium. This library puporse is to use on master's project, its puporse is to demostrate that I learned how to deploy a library and use on my CA project.

Features

  • Calculate premiums
  • Default base rate of 10%

Instalation

pip install premium-calculator-bv

Usage

Here is an example of how to use the PremiumCalculator class:

from premium_calculator_pkg.premium_calculator import PremiumCalculator

# Initialize the calculator
calculator = PremiumCalculator()

collection_type = 'Vintage Pokemon'
risk_factor = calculator.calculate_risk_factor(collection_type)
if risk_factor is not None:
    premium2 = calculator.calculate_premium(1000, risk_factor)
    print(f"The calculated premium for {collection_type} is: {premium2}")
else:
    print(f"Could not calculate premium for {collection_type} due to invalid risk factor.")

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

premium_calculator_bv-0.0.3.tar.gz (2.9 kB view details)

Uploaded Source

Built Distribution

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

premium_calculator_bv-0.0.3-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for premium_calculator_bv-0.0.3.tar.gz
Algorithm Hash digest
SHA256 68c258c81ffa3600a42f0279018fb8efe9b25a9d9111bb62da55d0e3f2e7b1c0
MD5 09d5d42ea4fd0d159b12bad9b5fe7f2f
BLAKE2b-256 5a0f8c5268a4e88a8ed16e2a69a6f78a63ff7c2543a954814d4b25e0d8e4a266

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for premium_calculator_bv-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 cd08f2be550296b4b39513932342f4e6a6a79c2b0b411b13c7ea9cc1735951b7
MD5 41f48582712499c7b50bb1b9686d11e4
BLAKE2b-256 9d6d31db8d0663d9aba1dc3bc9a1ccbd25d6a0500351993cd359d5ec95f730bb

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