Skip to main content

A tool to help calculate the number of service days between two dates given a service schedule.

Project description

service-days

A tool to help calculate the number of service days between two dates given a service schedule.

PyPI - Version PyPI - Python Version


Table of Contents

Concepts

There are many libraries that will find the number work days between two dates, but what if you don't work Monday to Friday? What if your schedule is Monday, Thursday, Saturday?

This library calls that 3 day work schedule "service days"; as in, there are 3 "service days" in a given week.

It will calculate the number of service days between two dates given a service schedule.

service-days is a library that will calculate the number of service days between two dates

Tools

Add Days Given a date and a service schedule, add x number of days to get to the next service day.

Days in Period Given a start date and an end date, calculate the number of service days in that period.

Convert JSON formatted text list, to list of days Given a JSON formatted list of days, convert it to a list of days.

e.g.

'["Mon", "Tue"]'

Installation

pip install service-days

License

service-days is distributed under the terms of the MIT license.

Miscellany

This is my first attempt at using hatch to manage a Python project. I'm not sure if I'm doing it right, but I'm trying. If you have any suggestions, please let me know. Thanks!

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

service_days-0.0.5.tar.gz (8.4 kB view details)

Uploaded Source

Built Distribution

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

service_days-0.0.5-py3-none-any.whl (4.7 kB view details)

Uploaded Python 3

File details

Details for the file service_days-0.0.5.tar.gz.

File metadata

  • Download URL: service_days-0.0.5.tar.gz
  • Upload date:
  • Size: 8.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for service_days-0.0.5.tar.gz
Algorithm Hash digest
SHA256 6583c1798a32bdfd7c54b18528f1cae163c62b4665d85452deb5f98823a9d7f1
MD5 9851968f331e2a1aecde6fae85d2f861
BLAKE2b-256 ac7acb4fbd7076af4d03ecc0982074a934ec4c9d112e4024cfbbc11abccb3955

See more details on using hashes here.

File details

Details for the file service_days-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: service_days-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 4.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-httpx/0.23.3

File hashes

Hashes for service_days-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 fc7d15772e2ebd0692f6602c3b69d9f23fc877f498541cb95c8be8c69cabf73d
MD5 fd15d9a91b718ee45c064603dabcb565
BLAKE2b-256 34c1d326c50f2383a5f4785589c40eb63f2249828cfe09705ddfa41c37cc6caa

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