Giter Club home page Giter Club logo

codingstatistic's Introduction

本项目主要是做公司内部代码统计使用,这是初级版本,后续有时间迭代

运用Flask框架

1、用户登录注册

使用UUID加密

2、数据库连接池

    creator=pymysql,    #连接数据库模块
    maxconnections=6,   #链接池允许的最大链接数,0和None表示连接数
    mincached=2,        #初始化时,连接池中至少创建的空闲链接,0表示不连接
    maxcached=5,        #连接池中最多限制的链接,0和NONE表示不限制
    maxshared=3,        #链接池中最多共享的链接数量,0和None表示全部共享,PS: 无用,因为pymysql和MySQLdb等模块的 threadsafety都为1,所有值无论设置为多少,_maxcached永远为0,所以永远是所有链接都共享。
    blocking=True,      #连接池中如果没有可以链接后,是否阻塞等待。TRUE等待,FALSE不等待
    maxusage=None,      #一个链接最多被重复使用的次数,None表示无限制
    setsession=[],      #开始会话前执行的命令列表如:["set datestyle to ...", "set time zone ..."]
    ping=0,             # ping MySQL服务端,检查是否服务可用。# 如:0 = None = never, 1 = default = whenever it is requested, 2 = when a cursor is created, 4 = when a query is executed, 7 = always

3、文件上传

使用_unpack_zipfile解压

4、代码统计计算

5、代码统计可视化

Image Image Image

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.