GNU General Public License v3.0

项目介绍

frappe/biometric-attendance-sync-tool 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 GNU General Public License v3.0 许可证,目前获得 287 个 Star、307 次 Fork。

仓库全名
frappe/biometric-attendance-sync-tool
开源许可证
GNU General Public License v3.0
Star 数
287
Fork 数
307
未关闭 Issue
39

README 摘要

Biometric Attendance Sync Tool (For ERPNext) Python Scripts to poll your biometric attendance system (BAS) for logs and sync with your ERPNext instance Table of Contents Pre-requisites Usage GUI CLI Setup Specifications) UNIX Windows Setting Up Config Resources License Pre-requisites Python 3.6+ Usage There's two ways you can use this tool. If accessing the CLI is a bit of a pain for you, the GUI has a simple form…

完整内容见 GitHub 原始 README 或本页 。

常见问题

biometric-attendance-sync-tool 用什么语言开发?

主要使用 Python 编写,采用 GNU General Public License v3.0 许可证,目前有 287 个 Star。

biometric-attendance-sync-tool 可以免费商用吗?

仓库标注的许可证为 GNU General Public License v3.0,商用前请先阅读仓库 LICENSE 文件确认授权范围。

如何获取 biometric-attendance-sync-tool 的源码?

可以直接克隆仓库:git clone https://github.com/frappe/biometric-attendance-sync-tool.git,默认分支为 master;安装与运行步骤见仓库 README。

biometric-attendance-sync-tool 最近还在维护吗?

仓库最近一次更新为 2025年5月23日,当前有 39 个未关闭 Issue;Star 数为 287,可作为社区活跃度的参考。

关于

A simple tool for syncing Biometric Attendance data with your ERPNext server

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
926
价值分
264
活跃状态
活跃

语言占比

Python

Release

  • v1.22025年5月23日
  • v1.12025年2月14日
  • v1.02020年5月29日

README

Biometric Attendance Sync Tool (For ERPNext)

Python Scripts to poll your biometric attendance system (BAS) for logs and sync with your ERPNext instance

Table of Contents

Pre-requisites

  • Python 3.6+

Usage

There’s two ways you can use this tool. If accessing the CLI is a bit of a pain for you, the GUI has a simple form to guide you through the process.

Under /releases, for a particular release download the biometric-attendance-sync-tool-[version]-[distribution].zip and unzip it’s contents. Now from the location of the unzipped files, you can go ahead with the CLI or GUI method.

GUI

Run the attendance-sync file from the folder; This should setup all it’s dependencies automatically and start the GUI.

CLI

The erpnext_sync.py file is the “backbone” of this project. Apart from Windows (which has its own wrapper erpnext_sync_win.py), this file can be directly used to set up the sync tool. Further information provided in the /Wiki.

Setup Specifications (For CLI)

  1. Setup dependencies

    cd biometric-attendance-sync-tool
      && python3 -m venv venv
      && source venv/bin/activate
      && pip install -r requirements.txt
    
  2. Setup local_config.py

    Make a copy of and rename local_config.py.template file. Learn More

  3. Run this script using python3 erpnext_sync.py

UNIX

There’s a Wiki for this.

Windows

Installing as a Windows service

  1. Install pywin32 using pip install pywin32
  2. Got to this repository’s Directory
  3. Install the windows service using python erpnext_sync_win.py install
  4. Done
Update the installed windows service
python erpnext_sync_win.py update
Stop the windows service
net stop ERPNextBiometricPushService
To see the status of the service
mmc Services.msc

Setting up config

  • You need to make a copy of local_config.py.template file and rename it to local_config.py
  • Please fill in the relevant sections in this file as per the comments in it.
  • Below are the delineation of the keys contained in local_config.py:
    • ERPNext connection configs:
      • ERPNEXT_API_KEY: The API Key of the ERPNext User

      • ERPNEXT_API_SECRET: The API Secret of the ERPNext User

        Please refer to this link to learn how to generate API key and secret for a user in ERPNext. The ERPNext User who’s API key and secret is used, needs to have at least the following permissions:

        1. Create Permissions for ‘Employee Checkin’ DocType.
        2. Write Permissions for ‘Shift Type’ DocType.
      • ERPNEXT_URL: The web address at which you would access your ERPNext. eg:'https://yourcompany.erpnext.com', 'https://erp.yourcompany.com'

      • ERPNEXT_VERSION: The base version of your ERPNext app. eg: 12, 13, 14

    • This script’s operational configs:
      • PULL_FREQUENCY: The time in minutes after which a pull for punches from the biometric device and push to ERPNext is attempted again.
      • LOGS_DIRECTORY: The Directory in which the logs related to this script’s whereabouts are stored.

        Hint: For most cases you can leave the above two keys unchanged.

      • IMPORT_START_DATE: The date after which the punches are pushed to ERPNext. Expected Format: YYYYMMDD.

        For some cases you would have a lot of old punches in the biometric device. But, you would want to only import punches after certain date. You could set this key appropriately. Also, you can leave this as None if this case does not apply to you.

TODO: fill this section with more info to help Non-Technical Individuals.

To build executable file for GUI

Linux and Windows:

  1. Activate virtual environment.

  2. Navigate to the repository folder (where gui.py located) by

    cd biometric-attendance-sync-tool
    
  3. Run the following commands:

    pip install pyinstaller
    
    python -m PyInstaller --name="attendance-sync" --windowed --onefile gui.py
    
  4. The executable file attendance-sync created inside dist/ folder.

Resources

License

This project is licensed under GNU General Public License v3.0

评论

暂无评论