Skip to main content

A python module that will calculate the sla time based on working hours and holidays.

Project description

SLA Calculator

Installation

pip install sla-calculator

Usage

To use this calculator, you must provide a starting time, the open time for business, the closing time for business, the country whose holidays you observe, and the sla time in hours. The function will then take into account all holidays and weekends as none working hours, and return a pendulum object of the time the sla needs to be met by.

from sla_calculator import SLA_Calculator

sla_calc = SLA_Calculator()

sla_time = sla_calc.calculate(start_time="2019-12-10T01:02:03Z",
                              open_hour=9,
                              close_hour=17,
                              country_name="US",
                              sla_in_hours=4)

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

sla-calculator-0.1.1.tar.gz (2.1 kB view details)

Uploaded Source

Built Distribution

sla_calculator-0.1.1-py2.py3-none-any.whl (2.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file sla-calculator-0.1.1.tar.gz.

File metadata

  • Download URL: sla-calculator-0.1.1.tar.gz
  • Upload date:
  • Size: 2.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/0.12.17 CPython/2.7.15 Windows/10

File hashes

Hashes for sla-calculator-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8fb61fbcea7fb639521f67057c480173b89e4537e3511053f8d051454c9a15a0
MD5 b17c684af91d4efd70043ee071dbe5fc
BLAKE2b-256 90a4daf96cbff72f0b32883b8e5377c1235418b40bd603a2dcb83bd51668d81b

See more details on using hashes here.

File details

Details for the file sla_calculator-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for sla_calculator-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 8c61528cb55af83b844712efc7ba108a089c8c7de4d4b96034167d25ae54ea92
MD5 ad7f31991c6b5ac17987079d1b367e6a
BLAKE2b-256 f34d11a04569d6048a60ae7bf1684c8db5bae4abd1771edf12a9dfc97a9132e6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page