# 项目简介
本项目是一个基于 Tortoise ORM 的简单 CRUD 应用示例。
# 安装步骤
1. 克隆仓库:
```bash
git clone https://github.com/yourusername/crud-tortoise.git
```
2. 进入项目目录:
```bash
cd crud-tortoise
```
3. 创建并激活虚拟环境:
```bash
python -m venv venv
source venv/bin/activate # 对于 Windows 系统,使用 `venv\Scripts\activate`
```
4. 安装依赖:
```bash
pip install -r requirements.txt
```
# 使用说明
1. 运行数据库迁移:
```bash
aerich init -t app.TORTOISE_ORM
aerich init-db
```
2. 启动应用:
```bash
uvicorn app.main:app --reload
```
3. 打开浏览器访问 `http://127.0.0.1:8000` 查看应用。
# 贡献
欢迎提交问题和拉取请求来贡献本项目。
# 许可证
本项目使用 MIT 许可证。
Raw data
{
"_id": null,
"home_page": "https://github.com/kanbang/fastapi-crud-pro",
"name": "wh-fastapi-crud-tortoise",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": "crud, tortoise-orm, sqlalchemy, database",
"author": "kanbang",
"author_email": "kanbang@163.com",
"download_url": null,
"platform": null,
"description": "# \u9879\u76ee\u7b80\u4ecb\r\n\u672c\u9879\u76ee\u662f\u4e00\u4e2a\u57fa\u4e8e Tortoise ORM \u7684\u7b80\u5355 CRUD \u5e94\u7528\u793a\u4f8b\u3002\r\n\r\n# \u5b89\u88c5\u6b65\u9aa4\r\n1. \u514b\u9686\u4ed3\u5e93\uff1a\r\n ```bash\r\n git clone https://github.com/yourusername/crud-tortoise.git\r\n ```\r\n2. \u8fdb\u5165\u9879\u76ee\u76ee\u5f55\uff1a\r\n ```bash\r\n cd crud-tortoise\r\n ```\r\n3. \u521b\u5efa\u5e76\u6fc0\u6d3b\u865a\u62df\u73af\u5883\uff1a\r\n ```bash\r\n python -m venv venv\r\n source venv/bin/activate # \u5bf9\u4e8e Windows \u7cfb\u7edf\uff0c\u4f7f\u7528 `venv\\Scripts\\activate`\r\n ```\r\n4. \u5b89\u88c5\u4f9d\u8d56\uff1a\r\n ```bash\r\n pip install -r requirements.txt\r\n ```\r\n\r\n# \u4f7f\u7528\u8bf4\u660e\r\n1. \u8fd0\u884c\u6570\u636e\u5e93\u8fc1\u79fb\uff1a\r\n ```bash\r\n aerich init -t app.TORTOISE_ORM\r\n aerich init-db\r\n ```\r\n2. \u542f\u52a8\u5e94\u7528\uff1a\r\n ```bash\r\n uvicorn app.main:app --reload\r\n ```\r\n3. \u6253\u5f00\u6d4f\u89c8\u5668\u8bbf\u95ee `http://127.0.0.1:8000` \u67e5\u770b\u5e94\u7528\u3002\r\n\r\n# \u8d21\u732e\r\n\u6b22\u8fce\u63d0\u4ea4\u95ee\u9898\u548c\u62c9\u53d6\u8bf7\u6c42\u6765\u8d21\u732e\u672c\u9879\u76ee\u3002\r\n\r\n# \u8bb8\u53ef\u8bc1\r\n\u672c\u9879\u76ee\u4f7f\u7528 MIT \u8bb8\u53ef\u8bc1\u3002\r\n",
"bugtrack_url": null,
"license": null,
"summary": "A CRUD library for Tortoise ORM",
"version": "0.1.0",
"project_urls": {
"Bug Reports": "https://github.com/kanbang/fastapi-crud-pro/issues",
"Homepage": "https://github.com/kanbang/fastapi-crud-pro",
"Source": "https://github.com/kanbang/fastapi-crud-pro"
},
"split_keywords": [
"crud",
" tortoise-orm",
" sqlalchemy",
" database"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "c12aad2a154b1d8a4e62b240f82ff7274d8e94cdfd84dbf0169ba9f3d4bcffbe",
"md5": "024d66cdde602ecf51b04c3851e417b4",
"sha256": "e58b4cb21526e3dfe4b05dfc2fa5a58520be8e734d99b886832bf6af5314b345"
},
"downloads": -1,
"filename": "wh_fastapi_crud_tortoise-0.1.0-py3-none-any.whl",
"has_sig": false,
"md5_digest": "024d66cdde602ecf51b04c3851e417b4",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 15369,
"upload_time": "2025-01-12T02:48:55",
"upload_time_iso_8601": "2025-01-12T02:48:55.683942Z",
"url": "https://files.pythonhosted.org/packages/c1/2a/ad2a154b1d8a4e62b240f82ff7274d8e94cdfd84dbf0169ba9f3d4bcffbe/wh_fastapi_crud_tortoise-0.1.0-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-01-12 02:48:55",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "kanbang",
"github_project": "fastapi-crud-pro",
"travis_ci": false,
"coveralls": false,
"github_actions": false,
"lcname": "wh-fastapi-crud-tortoise"
}