{"id":20282514,"url":"https://github.com/chao921125/python-fastapi","last_synced_at":"2026-02-13T20:02:46.490Z","repository":{"id":248376786,"uuid":"822668081","full_name":"chao921125/python-fastapi","owner":"chao921125","description":"python web服务框架，学习","archived":false,"fork":false,"pushed_at":"2025-03-01T15:08:31.000Z","size":916,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-11T08:40:07.958Z","etag":null,"topics":["fastapi","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chao921125.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-07-01T15:14:21.000Z","updated_at":"2025-03-01T15:08:35.000Z","dependencies_parsed_at":"2025-03-01T16:20:13.568Z","dependency_job_id":"c6c3bd97-b003-42c2-8802-da21ef525662","html_url":"https://github.com/chao921125/python-fastapi","commit_stats":null,"previous_names":["chao921125/python-fastapi"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chao921125/python-fastapi","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chao921125%2Fpython-fastapi","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chao921125%2Fpython-fastapi/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chao921125%2Fpython-fastapi/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chao921125%2Fpython-fastapi/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chao921125","download_url":"https://codeload.github.com/chao921125/python-fastapi/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chao921125%2Fpython-fastapi/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29416040,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-13T06:24:03.484Z","status":"ssl_error","status_checked_at":"2026-02-13T06:23:12.830Z","response_time":78,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["fastapi","python"],"created_at":"2024-11-14T14:09:56.761Z","updated_at":"2026-02-13T20:02:46.462Z","avatar_url":"https://github.com/chao921125.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"```shell\n# conda\n\n# 全环境 生成\npip3 freeze \u003e requirements.txt\n# 根据项目 生成\npip3 install pipreqs\npipreqs ./ --encoding=utf-8 --force\n# 安装\npip3 install -r requirements.txt\n\n# 运行\nuvicorn main:app --host 127.0.0.1 --port 8000 --reload\nuvicorn main:app --host 0.0.0.0 --port 80\n\n# 后台运行\nnohup uvicorn main:app --host 0.0.0.0 --port 8000 \u0026\nps aux | grep uvicorn\nkill \u003cPID\u003e\n\n# API DOCpi\n/docs\n\n# dev\npip install \"fastapi[all]\"\npip3 install \"fastapi[all]\"\n\n# prod\npip install fastapi\npip3 install fastapi\n\npip install \"uvicorn[standard]\"\npip3 install \"uvicorn[standard]\"\n\nuvicorn main:app --reload\n```\n```text\n# 请求类型\n@app.get()\n@app.post()\n@app.put()\n@app.delete()\n@app.options()\n@app.head()\n@app.patch()\n@app.trace()\n# 路由，同路由命名下，动态参数路由应当在最后\n@app.post(\"/\")\n@app.post(\"/url\")\n@app.post(\"/url/{id}\")\n# None 可选参数下的默认值，不写默认值则必传\n@app.post(\"/url/\")\n```\n\n|                                                                         |\n|-------------------------------------------------------------------------|\n| [三方库](https://github.com/vinta/awesome-python)                          |\n| [算法](https://github.com/TheAlgorithms/Python)                           |\n| [算法](https://github.com/tensorflow/tensorflow)                          |\n| [系统设计](https://github.com/donnemartin/system-design-primer/tree/master) |\n\n###### book\nFastAPI Web开发入门、进阶与实战\nPython FastAPI Web开发从入门到项目实战\n利用FastAPI构建Python微服务\n\nhttps://fastapi.tiangolo.com/zh/reference/fastapi\nhttps://github.com/fastapi/full-stack-fastapi-template/blob/master/backend/app/main.py\n\nhttps://gitee.com/xiaozhong1988/fastapi_tutorial\n\n| https://github.com/mjhea0/awesome-fastapi                                                                        |\n|------------------------------------------------------------------------------------------------------------------|\n| [full-stack-fastapi-template](https://github.com/fastapi/full-stack-fastapi-template)                            |\n| [ai jina](https://github.com/jina-ai/jina)                                                                       |\n| [fastapi-amis-admin](https://github.com/amisadmin/fastapi-amis-admin/tree/master)                                |\n| [kinit](https://github.com/vvandk/kinit/tree/master)                                                             |\n| [dash-fastapi-admin](https://gitee.com/insistence2022/dash-fastapi-admin/tree/master/dash-fastapi-backend)       |\n| []()                                                                                                             |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchao921125%2Fpython-fastapi","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchao921125%2Fpython-fastapi","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchao921125%2Fpython-fastapi/lists"}