Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

work-calendar-ru

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

work-calendar-ru

Russian work calendar

  • 1.1.2
  • PyPI
  • Socket score

Maintainers
1

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

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc