# xiaoapi
基于FastAPI封装的快速开发框架
## 安装xiaoapi
```
pip install xiaoapi
```
## 创建项目
创建项目目录及项目文件
`python -m xiaoapi.admin create-project --name project_name`
如果项目路径已存在,并且在项目路径下,可直接使用以下命令创建项目文件
`python -m xiaoapi.admin create-project-files`
创建项目后,会新增一下目录结构:
```
.
├── application
│ ├── __init__.py
│ ├── routes.py # 主路由配置文件
│ ├── settings.py # 项目配置文件
└── manage.py # 命令管理器,使用"python manage.py --help"查看全部命令
```
## 启动服务
```
python manage.py run-server
```
## demo演示
- https://github.com/xiaojinlii/xiaoapi-demo
## todo
依赖库版本号待优化
Raw data
{
"_id": null,
"home_page": null,
"name": "xiaoapi",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.8",
"maintainer_email": null,
"keywords": "xiaoapi, fastapi, web-framework",
"author": null,
"author_email": "xiaojinli <553555614@qq.com>",
"download_url": "https://files.pythonhosted.org/packages/6a/6c/78c657195546185c949a360d7112a770f3bf0c23b4647243e4980654fd30/xiaoapi-0.0.4.tar.gz",
"platform": null,
"description": "# xiaoapi\r\n\u57fa\u4e8eFastAPI\u5c01\u88c5\u7684\u5feb\u901f\u5f00\u53d1\u6846\u67b6\r\n\r\n\r\n## \u5b89\u88c5xiaoapi\r\n```\r\npip install xiaoapi\r\n```\r\n\r\n\r\n## \u521b\u5efa\u9879\u76ee\r\n\u521b\u5efa\u9879\u76ee\u76ee\u5f55\u53ca\u9879\u76ee\u6587\u4ef6\r\n`python -m xiaoapi.admin create-project --name project_name`\r\n\r\n\u5982\u679c\u9879\u76ee\u8def\u5f84\u5df2\u5b58\u5728\uff0c\u5e76\u4e14\u5728\u9879\u76ee\u8def\u5f84\u4e0b\uff0c\u53ef\u76f4\u63a5\u4f7f\u7528\u4ee5\u4e0b\u547d\u4ee4\u521b\u5efa\u9879\u76ee\u6587\u4ef6\r\n`python -m xiaoapi.admin create-project-files`\r\n\r\n\u521b\u5efa\u9879\u76ee\u540e\uff0c\u4f1a\u65b0\u589e\u4e00\u4e0b\u76ee\u5f55\u7ed3\u6784\uff1a\r\n```\r\n.\r\n\u251c\u2500\u2500 application\r\n\u2502 \u251c\u2500\u2500 __init__.py\r\n\u2502 \u251c\u2500\u2500 routes.py # \u4e3b\u8def\u7531\u914d\u7f6e\u6587\u4ef6\r\n\u2502 \u251c\u2500\u2500 settings.py # \u9879\u76ee\u914d\u7f6e\u6587\u4ef6\r\n\u2514\u2500\u2500 manage.py # \u547d\u4ee4\u7ba1\u7406\u5668\uff0c\u4f7f\u7528\"python manage.py --help\"\u67e5\u770b\u5168\u90e8\u547d\u4ee4\r\n```\r\n\r\n\r\n## \u542f\u52a8\u670d\u52a1\r\n```\r\npython manage.py run-server\r\n```\r\n\r\n\r\n## demo\u6f14\u793a\r\n- https://github.com/xiaojinlii/xiaoapi-demo\r\n\r\n## todo\r\n\u4f9d\u8d56\u5e93\u7248\u672c\u53f7\u5f85\u4f18\u5316\r\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "A fastapi framework for web development",
"version": "0.0.4",
"project_urls": {
"Documentation": "https://github.com/xiaojinlii/xiaoapi/blob/main/README.md",
"Source": "https://github.com/xiaojinlii/xiaoapi"
},
"split_keywords": [
"xiaoapi",
" fastapi",
" web-framework"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "a332224f610579d1462797c0a8f723e300b1cc06654f38b64b1b6477dcedaeaa",
"md5": "94f670f685edb628ab98d9ceee0895da",
"sha256": "f60f653e3de00daf747ed9d7c6390f7e3bc1fbd2dfa73140d96e64acc2cc205f"
},
"downloads": -1,
"filename": "xiaoapi-0.0.4-py3-none-any.whl",
"has_sig": false,
"md5_digest": "94f670f685edb628ab98d9ceee0895da",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.8",
"size": 1162358,
"upload_time": "2024-08-28T08:51:36",
"upload_time_iso_8601": "2024-08-28T08:51:36.813035Z",
"url": "https://files.pythonhosted.org/packages/a3/32/224f610579d1462797c0a8f723e300b1cc06654f38b64b1b6477dcedaeaa/xiaoapi-0.0.4-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "6a6c78c657195546185c949a360d7112a770f3bf0c23b4647243e4980654fd30",
"md5": "403f5cecf4bc95a4fb5096827a9b4bec",
"sha256": "a28d32af65af300e7b291bc70340e8341b44a6c740d05299683d05a6926cbd5b"
},
"downloads": -1,
"filename": "xiaoapi-0.0.4.tar.gz",
"has_sig": false,
"md5_digest": "403f5cecf4bc95a4fb5096827a9b4bec",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.8",
"size": 1165947,
"upload_time": "2024-08-28T08:52:28",
"upload_time_iso_8601": "2024-08-28T08:52:28.121684Z",
"url": "https://files.pythonhosted.org/packages/6a/6c/78c657195546185c949a360d7112a770f3bf0c23b4647243e4980654fd30/xiaoapi-0.0.4.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-08-28 08:52:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "xiaojinlii",
"github_project": "xiaoapi",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"requirements": [
{
"name": "fastapi",
"specs": [
[
"==",
"0.110.0"
]
]
},
{
"name": "uvicorn",
"specs": [
[
"==",
"0.25.0"
]
]
},
{
"name": "typer",
"specs": [
[
"==",
"0.10.0"
]
]
},
{
"name": "loguru",
"specs": [
[
"==",
"0.7.2"
]
]
},
{
"name": "orjson",
"specs": [
[
"==",
"3.9.15"
]
]
},
{
"name": "SQLAlchemy",
"specs": [
[
"==",
"2.0.25"
]
]
},
{
"name": "asyncmy",
"specs": [
[
"==",
"0.2.9"
]
]
},
{
"name": "aiosqlite",
"specs": [
[
"==",
"0.20.0"
]
]
}
],
"lcname": "xiaoapi"
}