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.0.tar.gz
(2.1 kB
view details)
Built Distribution
File details
Details for the file sla_calculator-0.1.0.tar.gz
.
File metadata
- Download URL: sla_calculator-0.1.0.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
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50aa564748b359afad32e6378b75bc595e1ca3cd989715eaad7d95c3ee623907 |
|
MD5 | 0ff1c6ed33ce221d8f7d9e6eed7cab04 |
|
BLAKE2b-256 | 3d92fff2b7f284bf04f7e9f3f76242b9e24dc3b15a4c4c0faa877df68f4d8838 |
File details
Details for the file sla_calculator-0.1.0-py2.py3-none-any.whl
.
File metadata
- Download URL: sla_calculator-0.1.0-py2.py3-none-any.whl
- Upload date:
- Size: 2.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/0.12.17 CPython/2.7.15 Windows/10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a1e4242549832550712d297a67b1e431a6220d97ee39db842a345cd74ae794e |
|
MD5 | acfb65251a5415cbd811f88c63ed0c02 |
|
BLAKE2b-256 | dd9e142d2a70050e3e8c6cdf2206a695acb36d0e4231b1a278b6032c5d66bba8 |