Coder Social home page Coder Social logo

xellossking / code-statistics Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fog-forest/code-statistics

0.0 1.0 0.0 50 KB

统计GitLab所有开发者代码提交情况,支持自动推送钉钉群

License: MIT License

Python 99.71% Shell 0.29%

code-statistics's Introduction

GitLab 开发者代码提交量统计

统计 GitLab 所有开发者代码提交情况,按删除、新增、总计、次数四个维度展示,支持日、月、周三种时间范围,自动将统计结果推送钉钉群

使用说明

  1. 安装需要的支持库 pip install -r requirements.txt

  2. 修改 code_statistics.py 文件 L13-L24 内容以及 day.py、month.py、week.py 三个文件的倒数第二行内容,最后运行即可,这三个文件分别对应 日、月、周三个统计时间范围,需要统计哪个时间就运行哪个脚本

自动运行

Linux 设置 crontab 定时任务即可

50 20 * * 1-6  bash run.sh day.py
00 21 * * 7    bash run.sh week.py
30 10 2 1-12 * bash run.sh month.py

已知问题

  1. 统计人数超过 25 人,Excel模板排版会有问题,因为数据直接由Excel处理的,所以需要拖下表格让他支持更多行

code-statistics's People

Contributors

fog-forest avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.