This repository has been archived on 2026-08-27. You can view files and clone it. You cannot open issues or pull requests or push a commit.
T
2022-04-24 21:33:41 +08:00
2022-04-24 21:33:41 +08:00
2022-04-17 13:29:45 +08:00
2022-04-04 13:51:24 +08:00
2022-03-13 10:52:16 +08:00
2022-03-26 08:41:47 +08:00
2022-04-14 22:19:47 +08:00

PythonVersion LICENSE FlaskVersion

Counter
  • 上方的计数器为不更新版本只保留了最基本的功能

Python 版访问次数计数器 使用了flask 作为服务端接收请求

开源

  • 本项目以Apache-2.0许可开源, 即:
    • 你可以直接使用该项目提供的功能, 无需任何授权
    • 你可以在注明来源版权信息的情况下对源代码进行任意分发和修改以及衍生

部署

在部署之前你需要先安装python3.10.x以上的版本

已部署好的地址

部署到Heroku

  1. fork 本项目到你的仓库
  2. Heroku 注册账号
  3. Dashboard 新建App
  4. 流程: 进入网址 -> 点击右上角New -> 点击 Create new app -> 输入App名称 -> Create app -> 选择Github (登陆完成后) -> 点击Search -> 选择你fork的项目并点击Connect -> 滑到末尾点击Deploy branch(如果你想在仓库更新时自动部署的话可以把Enable Automatic Deploy勾选) -> 等待完成
  5. App的地址就是 App名称 + .herokuapp.com

部署到本地服务器

$ git clone https://github.com/MarkusJoe/RequestCounter.git
$ cd RequestCounter
$ pip3 install -r requirements.txt

启动服务

$ python3 manage.py or gunicorn manage:app or waitress-serve --port=5000 manage:app

调用须知

  • API支持GETPOST 方法请求
  • 最大可以计数10位数, 超过则重置
  • 可以自定义显示位数默认7位数最大10
  • 可以自己选择更多的主题只需要加上请求参数: theme 再加上想要的主题即可

一些信息

  • 使用了Python3.6 的标准库Sqlite3进行数据库操作
  • 你可以在api获取原始数据, 文档地址: 文档
S
Description
No description provided
Readme Apache-2.0
11 MiB
1 Watchers 0 Forks
Languages
Python 87.6%
HTML 10.9%
JavaScript 1%
CSS 0.4%