https://github.com/rtakland/moecounter
Python版 moe-counter
https://github.com/rtakland/moecounter
counter fastapi python python3 sqlite stats
Last synced: 6 months ago
JSON representation
Python版 moe-counter
- Host: GitHub
- URL: https://github.com/rtakland/moecounter
- Owner: RTAkland
- License: apache-2.0
- Created: 2022-09-02T12:55:41.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2024-08-29T14:56:08.000Z (over 1 year ago)
- Last Synced: 2025-03-25T09:03:42.172Z (11 months ago)
- Topics: counter, fastapi, python, python3, sqlite, stats
- Language: Python
- Homepage: https://counter.rtast.cn
- Size: 75.2 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Demo

# py 版访问次数计数器
> 翻自 [journey-ad](https://github.com/journey-ad/Moe-counter) 的计数器
# 新特性
* 使用了异步Web框架`FastAPI`来提高效率, 所有代码均为异步操作
* 可以自定义显示图片的数量(长度)
* 支持API接口以便自行开发
* 支持Vercel KV存储
* 支持SQLite存储
# 失去的特性
* 暂未支持`MongoDB`
# 安装 & 运行
```bash
$ pip3 install -r requirements.txt
$ uvicorn src:create_app --factory or
$ sh run.sh or
$ python3 main.py # 两条命令等价
```
# 部署到Vercel
> 部署到Vercel之前请先 `fork` 本仓库, 修改 `.env`
# 开源
- 本项目以[Apache-2.0](./LICENSE)许可开源, 即:
- 你可以直接使用该项目提供的功能, 无需任何授权
- 你可以在**注明来源版权信息**的情况下对源代码进行任意分发和修改以及衍生
## 鸣谢
* [JetBrains](https://www.jetbrains.com/zh-cn/) Open Source 项目提供IDE支持