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
Metadata
Release files for work-calendar-ru 1.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| work_calendar_ru-1.1.2.tar.gz | 2.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| work_calendar_ru-1.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.0 kB
Release files / work_calendar_ru-1.1.2.tar.gz
| Download URL | work_calendar_ru-1.1.2.tar.gz |
|---|---|
| Size | 2.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
44d8c1543b004c821bac0d598c55e7a8c093dac85ec6b2f1ecacee16648af54a
|
|
BLAKE2b-256 checksum How to use checksums |
bcefab9f48512d81c5970130d46ef0569f9f4845959b6caeb5eb9bfc10a2b9cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / work_calendar_ru-1.1.2-py3-none-any.whl
| Download URL | work_calendar_ru-1.1.2-py3-none-any.whl |
|---|---|
| Size | 4.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
bd6dfab311a2bb19200c489405092b7887664d1a4e054c5187bc139aba12cd26
|
|
BLAKE2b-256 checksum How to use checksums |
449d5c5db361c91aa9938faa0bf6e43f397f33128307d780ec7a22d54ff620f3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for work-calendar-ru 1.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.