A CRUD library for Tortoise ORM
Project description
项目简介
本项目是一个基于 Tortoise ORM 的简单 CRUD 应用示例。
安装步骤
- 克隆仓库:
git clone https://github.com/yourusername/crud-tortoise.git
- 进入项目目录:
cd crud-tortoise
- 创建并激活虚拟环境:
python -m venv venv source venv/bin/activate # 对于 Windows 系统,使用 `venv\Scripts\activate`
- 安装依赖:
pip install -r requirements.txt
使用说明
- 运行数据库迁移:
aerich init -t app.TORTOISE_ORM aerich init-db
- 启动应用:
uvicorn app.main:app --reload
- 打开浏览器访问
http://127.0.0.1:8000查看应用。
贡献
欢迎提交问题和拉取请求来贡献本项目。
许可证
本项目使用 MIT 许可证。
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wh_fastapi_crud_tortoise-0.1.1-py3-none-any.whl.
File metadata
- Download URL: wh_fastapi_crud_tortoise-0.1.1-py3-none-any.whl
- Upload date:
- Size: 45.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.10.10
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ab8465127f63e0a86912ce993039eef796fb6fea156bdc4b5128bbfa9ea77bc0
|
|
| MD5 |
8dddcdc332b350f235fbf6801223d9e4
|
|
| BLAKE2b-256 |
40408892b2124de7246c9618ad25db013bf1e3d8cf7ebb4a33c5f71a97254df1
|