mirror of
https://github.com/rnvm9wjdtj-bot/myaps_api.git
synced 2026-06-02 05:54:40 +00:00
441966a9c6d33570b7327026e877547d42f5ed65
- 新增i18n框架和3个语言包(405个翻译条目/语言) - 修改监控模块3个HTML页面和JS添加国际化支持 - 支持浏览器语言自动检测、localStorage持久化、热切换 - 修复定时任务显示模板字符串语法错误 影响范围: - static/lib/i18n/: 新增i18n框架和语言包 - static/monitor/: 监控模块全面国际化 - 11 files changed, +2481/-502 lines
MyAPS FastAPI Project
A simple FastAPI project template with a Python virtual environment.
Project Structure
myaps_fastapi/
├── venv/ # Python virtual environment
├── main.py # Main FastAPI application
├── requirements.txt # Project dependencies
├── .gitignore # Git ignore file
└── README.md # Project documentation
Getting Started
1. Activate the Virtual Environment
Windows:
venv\Scripts\activate
macOS/Linux:
source venv/bin/activate
2. Install Dependencies
pip install -r requirements.txt
3. Run the FastAPI Server
uvicorn main:app --reload
4. Access the API
- Open your browser and go to http://127.0.0.1:8000
- Swagger UI documentation: http://127.0.0.1:8000/docs
- ReDoc documentation: http://127.0.0.1:8000/redoc
API Endpoints
GET /- Root endpoint with welcome messageGET /api/info- Project information
Features
- FastAPI framework for high-performance API development
- Automatic interactive API documentation
- Python virtual environment for dependency isolation
- Git integration with proper ignore rules
Requirements
- Python 3.7+","}}}
Description
Languages
JavaScript
59.5%
Python
33.5%
HTML
3.7%
CSS
1.1%
Shell
0.8%
Other
1.4%