Verification that attendances comply with german rules. Also provide an integration to the api of FactorialHR
Project description
FactorialHR work time verification
This script verifies attendances whether they comply with german law. In particular, the following rules are verified:
- Whether the work time is longer than 6 hours without a break of 30 min
- Whether the work time is longer than 9 hours without a break of 45 min
- Whether the work time is longer than 10 hours without a break of 11 hours
It also provides a way to fetch the attendances of all employees from FactorialHR using a company api-key.
Disclaimer
I do not guarantee that this package complies with german law all the time. Changes may occur anytime. Use at your own risk.
Errors where the time attended is 1 min above the limit are ignored, because factorial's automated time tracking is not precises enough.
Usage
- Install the tool with
pip install fwtv
- Run tool with
factorial-working-time
Preconditions
Preconditions errors are syntactical errors like an attendance that starts and end and the same time, or if a clock_in
or clock_out
parameter is missing.
Contributing
Feel free to contribute! Please fork this repository, install the development dependencies with pip install -e ".[dev]"
and create pull request.
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 fwtv-2.3.1.tar.gz
.
File metadata
- Download URL: fwtv-2.3.1.tar.gz
- Upload date:
- Size: 21.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e4347158358846822ee91e780d608061336f754c8707a0f6b46eb5242cb8e261 |
|
MD5 | e66b9e9e78d484f18279141d08e3038d |
|
BLAKE2b-256 | 72ebdec6996b1bf689c599d09bd3031bc736e8594555f209bec15930ad205d1a |
File details
Details for the file fwtv-2.3.1-py3-none-any.whl
.
File metadata
- Download URL: fwtv-2.3.1-py3-none-any.whl
- Upload date:
- Size: 23.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.11.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 892e49091d3d43193962fc8c3c89d13a6238efa4db77cea26e4afff0672d81b1 |
|
MD5 | bb0614eabff5bb4a57485906cc99b8ed |
|
BLAKE2b-256 | 9483a7bae0e30fdd48cedc0ffa0f370910de3bf54a0d530fcaa05656cdddabb4 |