一个简单易行的时间跟踪器,用于登录工作时间和自动计算工资。
salary-timetracker的Python项目详细描述
一种方便的工具,带有命令行界面,用于记录工作时间。在 任何时候你都可以看到你花了多少时间在 项目和你从中赚了多少钱。
功能
- 在根目录中创建包含时间成本数据的跟踪文件 项目的git存储库的 瞬间
- 数据保存在 **CSV** 格式。
要求和限制
- git:应用程序只有在您位于git存储库中时才能工作。
- Python 3:应用程序未经测试可在Python 2下工作
安装
pip install salary-timetracker
用法
tt [-h][-s]{log} ... positional arguments: {log} log Create a new timetracker log record with time and comments(optional) optional arguments: -h, --help show this help message and exit -s, --summary Show summary.
tt log [-h] minutes [comments [comments ...]] positional arguments: minutes Time in minutes spent on work. comments Commens on the work done(optional) optional arguments: -h, --help show this help message and exit
可以通过配置文件更改应用程序设置,该文件 应该位于路径:*~/.config/timetracker.conf*以及 要使用以下格式:
[main]# default settingscurrency='USD'hourly_rate=20default_comment='' # comment when adding timedate_format='%d %b %Y'time_format='%H:%M'csv_delimiter=','
示例
显示帮助:
tt -h
您已经工作了2个小时,希望将此记录下来:
tt log 120'I did this'# Data was successfully added
显示摘要:
tt -s
# Hours worked: 2.6 | Salary: 52 USD