Skip to main content

Build Status

入退出集計プログラム

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:mmyyyy-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
: : : :

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

akerun-sum-1.2.2.tar.gz (29.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

akerun_sum-1.2.2-py3-none-any.whl (29.9 kB view details)

Uploaded Python 3

File details

Details for the file akerun-sum-1.2.2.tar.gz.

File metadata

  • Download URL: akerun-sum-1.2.2.tar.gz
  • Upload date:
  • Size: 29.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.2 Linux/5.4.0-48-generic

File hashes

Hashes for akerun-sum-1.2.2.tar.gz
Algorithm Hash digest
SHA256 a856360f56810c2b9771b880dd2deecb3bc7e94d85d7669dac9ead2dab827da2
MD5 f34c764799666cc03710dd488d6e4bb1
BLAKE2b-256 507b9171a3b9b77ef720fcbcfdb77ce828034dd80d2f0df112ab75c7f32652d6

See more details on using hashes here.

File details

Details for the file akerun_sum-1.2.2-py3-none-any.whl.

File metadata

  • Download URL: akerun_sum-1.2.2-py3-none-any.whl
  • Upload date:
  • Size: 29.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.0.10 CPython/3.8.2 Linux/5.4.0-48-generic

File hashes

Hashes for akerun_sum-1.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 8f00de890b947f4e654fb015214134387cee4ae23c1ecebab9570c28b160ac25
MD5 0905dc7165864cdc86e50b0121af6276
BLAKE2b-256 a152d6780e4472f53e5e92bd39d96cbc2bc06878ed3657ec1a1601bf4bf6db33

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.2.2 This release

2 files

1.2.1

2 files

1.2.0

2 files

1.1

1 file

1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page