FastAPI Flask Proxy

v1.0.0

FastAPI + Flask 混合部署最佳实践。解决路由定义、API 代理等常见问题。适用于需要同时运行 FastAPI API 和 Flask 前端的场景。

0· 72·0 current·0 all-time
MIT-0
Download zip
LicenseMIT-0 · Free to use, modify, and redistribute. No attribution required.
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
medium confidence
Purpose & Capability
Name/description match the instructions: the SKILL.md explains mixing FastAPI and Flask, routing issues, proxy patterns, startup scripts and docker-compose. Small incoherence: the examples rely on Python packages (uvicorn, requests, SQLAlchemy) but the skill only declares python3 as a required binary and does not declare these dependencies.
Instruction Scope
Instructions stay within the stated scope (routing, proxying, startup, deletion/cascade patterns). They show concrete code for a Flask->FastAPI proxy, process startup/cleanup, and Docker Compose. Note: the proxy examples drop most headers (only sets Content-Type) which affects cookies/auth and error propagation; the doc also references an external/internal project path (wphu@gpu506.aibee.cn:...) that is outside the skill's immediate scope and should be reviewed before use.
Install Mechanism
No install spec (instruction-only) — lowest install risk. Nothing is downloaded or written to disk by the skill itself.
Credentials
The skill declares no required environment variables or credentials, which is proportionate. However the examples expect certain runtime packages and environment values (e.g., FASTAPI_URL in the docker-compose example) that are not declared. Also the referenced related-project path suggests ties to an internal resource — this is not a credential request but is unexpected.
Persistence & Privilege
The skill does not request persistent presence (always: false) and does not attempt to modify other skills or system-wide settings.
Assessment
This is primarily a how-to guide (no code files or installers). Before using: ensure your Python environment has the packages used in the examples (uvicorn, requests, SQLAlchemy) or adapt the examples to your dependency management; review and test the proxy code carefully (it strips headers and may remove cookies or auth headers unintentionally); verify the docker-compose network and FASTAPI_URL env usage in your deployment; and check the 'Related project' reference (wphu@gpu506...) — it points to an external/internal resource and may be irrelevant or unintended. If you need to run this in production, consider a more robust proxy (preserve headers, forward status codes and auth), add explicit dependency installation, and run inside an isolated environment or container.

Like a lobster shell, security has layers — review code before you run it.

latestvk972t8rqpf075e7dmsyv20bbm983yjpt

License

MIT-0
Free to use, modify, and redistribute. No attribution required.

Runtime requirements

🔀 Clawdis
Any binpython3

Comments