Russian work calendar
Project description
Russian work calendar
Description
Simple library for checking current day as a holiday or weekend and current time as a working time or not.
Setup
pip install work_calendar_ru
Import package
from work_calendar_ru import WCR
Using package
wcr = WCR(start_hour=9, start_minutes=0, end_hour=19, end_minutes=30)
Where start_hour
and start_minutes
is a time of the start of working day.
Therefore end_hour
and end_minutes
is a time of the end of working day.
- Work time now
wcr.is_work_time()
- Holiday today
wcr.is_holiday()
- Work day today
wcr.is_work_day()
- Short work day today
wcr.is_short_work_day()
- Work weekend day today
wcr.is_work_weekend()
- Weekend day today
wcr.is_weekend()
License
MIT license
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
Built Distribution
File details
Details for the file work_calendar_ru-1.1.2.tar.gz
.
File metadata
- Download URL: work_calendar_ru-1.1.2.tar.gz
- Upload date:
- Size: 2.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 44d8c1543b004c821bac0d598c55e7a8c093dac85ec6b2f1ecacee16648af54a |
|
MD5 | 46f87a96a2c7018cbc2a7360499f2cb3 |
|
BLAKE2b-256 | bcefab9f48512d81c5970130d46ef0569f9f4845959b6caeb5eb9bfc10a2b9cd |
File details
Details for the file work_calendar_ru-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: work_calendar_ru-1.1.2-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.41.1 CPython/3.7.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bd6dfab311a2bb19200c489405092b7887664d1a4e054c5187bc139aba12cd26 |
|
MD5 | 53378ec9b318d49a0894f349fd85d43d |
|
BLAKE2b-256 | 449d5c5db361c91aa9938faa0bf6e43f397f33128307d780ec7a22d54ff620f3 |