入退出集計プログラム
NFCカードのドアキーアケルンの入退出記録から、勤務日数や勤務時間を集計するプログラムです。
以下の環境で動作確認
- Windows 10 Home, Python 3.4.3
- Ubuntu 16.04.2 LTS, Python 3.5.2
使用方法
akerun-sum.py -i inputfile -o outputfile -d yyyymm [-f n]
引数
-i 入力ファイル名
-o 出力ファイル名
-d 集計期間 yyyymm の形式で指定
-f 出力タイプ 初期値は0
0 出力パターン1
1 出力パターン2
実行例
akerun-sum.py -i input-euc.csv -o output-euc.csv -d 201610
akerun-sum.py -i input-anotherformat.csv -o output-anotherformat.csv -d 201610 -f 1
社員数やレコードの数はリストで管理しているため無制限
想定している入力ファイル
DATE,AKERUN,USER,LOCK,CLIENTのカラムを持つCSVファイル
DATE
日付データ
yyyy/mm/dd hh:mmとyyyy-mm-dd hh:mm:ssの2パターンに対応
昇順にソートされていることが前提
AKERUN
本プログラムでは使用していない
USER
社員名データ
LOCK
- 入室:オフィスに入った
- 退室:オフィスから出た
- 解錠:オフィスに入室したか退室のどちらか
- 施錠:鍵を締めた(本プログラムでは使用していない)
CLIENT
鍵の種類(本プログラムでは使用していない)
出力ファイル
出力ファイルは2パターンあり、引数によって切替可能
文字コードは入力ファイルに合わせる
出力パターン1
Excelファイルで開くことを想定
| 氏名 | 就業日数 | 就業時間 | yyyy/mm/dd入 | yyyy/mm/dd退 | yyyy/mm/dd時 | … |
|---|---|---|---|---|---|---|
| 山田太郎 | 2 | 13.5 | 8:47 | 10:12 | 1.25 | … |
| 山田次郎 | 2 | 20.5 | 8:47 | 20:12 | 11.25 | … |
| : | : | : | : | : | : | : |
出力パターン2
通常のCSVファイル
| 氏名 | 山田太郎 | ||
| 集計期間 | yyyymm | ||
| 就業日数 | 2 | ||
| 就業時間 | 13.5 | ||
| 月日 | 入室時刻 | 退室時刻 | 就業時間 |
| yyyy/mm/dd | 8:47 | 10:12 | 1.25 |
| : | : | : | : |
| 氏名 | 山田次郎 | ||
| 集計期間 | yyyymm | ||
| 就業日数 | 2 | ||
| 就業時間 | 13.5 | ||
| 月日 | 入室時刻 | 退室時刻 | 就業時間 |
| yyyy/mm/dd | 8:47 | 20:12 | 11.25 |
| : | : | : | : |
Metadata
Release files for akerun-sum 1.2.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 | Actions |
|---|---|---|---|---|
| akerun-sum-1.2.2.tar.gz | 29.0 kB | Without provenance | Details for akerun-sum-1.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| akerun_sum-1.2.2-py3-none-any.whl | Python 3 | none | any | Details for akerun_sum-1.2.2-py3-none-any.whl |
Total release size: 58.8 kB
Release files / akerun-sum-1.2.2.tar.gz
| Download URL | akerun-sum-1.2.2.tar.gz |
|---|---|
| Size | 29.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a856360f56810c2b9771b880dd2deecb3bc7e94d85d7669dac9ead2dab827da2
|
|
BLAKE2b-256 checksum How to use checksums |
507b9171a3b9b77ef720fcbcfdb77ce828034dd80d2f0df112ab75c7f32652d6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.2 Linux/5.4.0-48-generic
|
Release files / akerun_sum-1.2.2-py3-none-any.whl
| Download URL | akerun_sum-1.2.2-py3-none-any.whl |
|---|---|
| Size | 29.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8f00de890b947f4e654fb015214134387cee4ae23c1ecebab9570c28b160ac25
|
|
BLAKE2b-256 checksum How to use checksums |
a152d6780e4472f53e5e92bd39d96cbc2bc06878ed3657ec1a1601bf4bf6db33
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.10 CPython/3.8.2 Linux/5.4.0-48-generic
|
Security for akerun-sum 1.2.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.