# GitLabLog **Repository Path**: Alaric_zero/GitLabLog ## Basic Information - **Project Name**: GitLabLog - **Description**: 统计gitlab提交的代码量 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2024-08-14 - **Last Updated**: 2024-08-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # GitLabLog #### 介绍 统计gitlab提交的代码量 #### 软件架构 通过python-gitlab工具插件 #### 安装教程 1. 安装python环境 2. 安装python-gitlab ```bash pip install --upgrade python-gitlab ``` 3.安装eel ```bash pip install eel ``` 4.运行WebMain.py ```bash python WebMain.py #后台运行 nohup python WebMain.py > gitlab.log & ``` #### 使用说明 ##### · start开始函数参数 1. **mode**, a string specifying what browser to use (e.g. `'chrome'`, `'electron'`, `'edge'`, `'custom'`). Can also be `None` or `False` to not open a window. *Default: `'chrome'`* 2. **host**, a string specifying what hostname to use for the Bottle server. *Default: `'localhost'`)* ##### · 运行模式 1. 单机运行 ```bash #安装pyinstall pip install pyinstaller #打包成exe(在根目录) pyinstaller .\main.py (-w 不显示控制台) #会在dist生成main.exe ``` 2. Web运行 ```bash #安装pyinstall pip install pyinstaller #编译打包 python -m eel hello.py web #会在dist生成WebMain.exe ``` ##### · 运行效果 ![image-20211228162046678](http://zhuzhu2106.gitee.io/campus-transaction/16.png)