日历管理您的工时。
ManHourCalendar的Python项目详细描述
检查和安排工作的简单月历 工时。(主要针对日本)
这是一个cli工具,就像我的第一个python项目一样,是为了处理 以我每月的工时计算。
用法
像这样使用它的简单方法:
# Initialize your Job file first. # It will also update the Japanese holidays schedule at the first time. $ mhcalendar -J ... # Check out the man-hour schedule of current month. $ mhcalendar # Check in your man-hour of first day. # Ensure that you will check in everyday. $ mhcalendar -c 8# Check out your schedule again to confirm your next day's work hours. $ mhcalendar # Schedule your day off or on duty days anytime before it comes. # For example, make date of 9, 10 and 11 as dayoff, and go to work at 13th. $ mhcalendar --dayoff -- 91011 -13 # Remember to Update your schedule by calling this $ mhcalendar
有关详细信息,您可以通过命令查看:
$ mhcalendar -h
也可以通过python脚本运行它,请参阅以下文件:
安装
这个程序是用python3编写的,您需要安装python3并 pip3安装之前。
pip3 install ManHourCalendar
关于数据
简单来说,我们这次没有使用数据库,所有的数据都只是缓存在 此文件夹作为文件:
~/.mhcalendar/ # or your user dir in Windows such as C:\Users\username\.mhcalendar\
假日日程从以下站点获取:
供_____!