Skip to main content

A CRUD library for Tortoise ORM

Project description

项目简介

本项目是一个基于 Tortoise ORM 的简单 CRUD 应用示例。

安装步骤

  1. 克隆仓库:
    git clone https://github.com/yourusername/crud-tortoise.git
    
  2. 进入项目目录:
    cd crud-tortoise
    
  3. 创建并激活虚拟环境:
    python -m venv venv
    source venv/bin/activate  # 对于 Windows 系统,使用 `venv\Scripts\activate`
    
  4. 安装依赖:
    pip install -r requirements.txt
    

使用说明

  1. 运行数据库迁移:
    aerich init -t app.TORTOISE_ORM
    aerich init-db
    
  2. 启动应用:
    uvicorn app.main:app --reload
    
  3. 打开浏览器访问 http://127.0.0.1:8000 查看应用。

贡献

欢迎提交问题和拉取请求来贡献本项目。

许可证

本项目使用 MIT 许可证。

Project details


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

If you're not sure about the file name format, learn more about wheel file names.

wh_fastapi_crud_tortoise-0.1.1-py3-none-any.whl (45.3 kB view details)

Uploaded Python 3

File details

Details for the file wh_fastapi_crud_tortoise-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for wh_fastapi_crud_tortoise-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ab8465127f63e0a86912ce993039eef796fb6fea156bdc4b5128bbfa9ea77bc0
MD5 8dddcdc332b350f235fbf6801223d9e4
BLAKE2b-256 40408892b2124de7246c9618ad25db013bf1e3d8cf7ebb4a33c5f71a97254df1

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page