Skip to main content

A fastapi framework for web development

Project description

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演示

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

xiaoapi-0.0.3.tar.gz (1.2 MB view hashes)

Uploaded Source

Built Distribution

xiaoapi-0.0.3-py3-none-any.whl (1.2 MB view hashes)

Uploaded Python 3

Supported by

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