{"id":21626709,"url":"https://github.com/rtakland/requestcounter","last_synced_at":"2025-07-17T11:31:36.448Z","repository":{"id":44544321,"uuid":"455148936","full_name":"RTAkland/RequestCounter","owner":"RTAkland","description":"Python 版的访问次数计数器","archived":true,"fork":false,"pushed_at":"2022-10-15T00:13:19.000Z","size":10995,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T20:27:03.828Z","etag":null,"topics":["flask","heroku","python3","web"],"latest_commit_sha":null,"homepage":"https://request-counter-docs.vercel.app/#/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RTAkland.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-03T12:03:44.000Z","updated_at":"2024-03-19T04:20:26.000Z","dependencies_parsed_at":"2023-01-20T02:03:38.987Z","dependency_job_id":null,"html_url":"https://github.com/RTAkland/RequestCounter","commit_stats":null,"previous_names":[],"tags_count":22,"template":false,"template_full_name":null,"purl":"pkg:github/RTAkland/RequestCounter","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RTAkland%2FRequestCounter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RTAkland%2FRequestCounter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RTAkland%2FRequestCounter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RTAkland%2FRequestCounter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RTAkland","download_url":"https://codeload.github.com/RTAkland/RequestCounter/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RTAkland%2FRequestCounter/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265600578,"owners_count":23795719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","heroku","python3","web"],"created_at":"2024-11-25T01:14:06.683Z","updated_at":"2025-07-17T11:31:36.116Z","avatar_url":"https://github.com/RTAkland.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 新的项目仓库 https://github.com/MarkusJoe/Counter\r\n\r\n\u003cp align=\"center\"\u003e\r\n    \u003ca href=\"https://github.com/MarkusJoe/FlaskRequestCounter\"\u003e\r\n        \u003cimg src=\"https://img.shields.io/badge/Python-3.10.x-blue.svg\" alt=\"PythonVersion\"\u003e\r\n        \u003cimg src=\"https://img.shields.io/badge/LINCESE-Apache2.0-orange.svg\" alt=\"LICENSE\"\u003e\r\n        \u003cimg src=\"https://img.shields.io/badge/Falsk-2.0.3-purple\" alt=\"FlaskVersion\"\u003e\r\n    \u003c/a\u003e\r\n\u003c/p\u003e\r\n\r\n\u003cdiv align=\"center\"\u003e\r\n    \u003cimg src=\"https://requestcounters.herokuapp.com/get?name=MarkusJoe\" alt=\"Counter\"\u003e\r\n\u003c/div\u003e\r\n\r\n* 上方的计数器为不更新版本只保留了最基本的功能\r\n\r\n## Python 版访问次数计数器 使用了flask 作为服务端接收请求\r\n\r\n* [文档](https://request-counter-docs.vercel.app/#/)\r\n\r\n### 开源\r\n\r\n- 本项目以[Apache-2.0](./LICENSE)许可开源, 即:\r\n    - 你可以直接使用该项目提供的功能, 无需任何授权\r\n    - 你可以在**注明来源版权信息**的情况下对源代码进行任意分发和修改以及衍生\r\n\r\n## 部署\r\n\r\n\u003e 在部署之前你需要先安装`python3.10.x`以上的版本\r\n\r\n### 已部署好的地址\r\n\r\n* [Click to enter](https://requestcounter.herokuapp.com/count/MarkusJoe)\r\n* 默认主题: `lewd`\r\n\r\n### 部署到Heroku\r\n\r\n1. `fork` 本项目到你的仓库\r\n2. 在[Heroku](https://www.heroku.com/) 注册账号\r\n3. 在[Dashboard](https://dashboard.heroku.com/apps) 新建App\r\n4. 流程: 进入网址 -\u003e 点击右上角`New` -\u003e 点击 `Create new app` -\u003e 输入App名称 -\u003e `Create app` -\u003e 选择`Github` (登陆完成后) -\u003e 点击`Search` -\u003e\r\n   选择你fork的项目并点击`Connect` -\u003e 滑到末尾点击`Deploy branch`(如果你想在仓库更新时自动部署的话可以把`Enable Automatic Deploy`勾选) -\u003e 等待完成\r\n5. App的地址就是 `App名称` + `.herokuapp.com`\r\n\r\n### 部署到本地服务器\r\n\r\n```shell\r\n$ git clone https://github.com/MarkusJoe/RequestCounter.git\r\n$ cd RequestCounter\r\n$ pip3 install -r requirements.txt\r\n```\r\n\r\n### 启动服务\r\n\r\n```shell\r\n$ python3 manage.py or gunicorn manage:app or waitress-serve --port=5000 manage:app\r\n```\r\n\r\n## 调用须知\r\n\r\n- API支持`GET` 和 `POST` 方法请求\r\n- 最大可以计数`10`位数, 超过则重置\r\n- 可以自定义显示位数默认`7`位数最大`10`位\r\n- 可以自己选择更多的主题只需要加上请求参数: `theme` 再加上想要的主题即可\r\n\r\n# 一些信息\r\n\r\n- 使用了Python3.6 的标准库`Sqlite3`进行数据库操作\r\n- 你可以在`api`获取原始数据, 文档地址: [文档](https://markusjoe.github.io/RequestCounter/#/?id=api)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtakland%2Frequestcounter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frtakland%2Frequestcounter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frtakland%2Frequestcounter/lists"}