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

todo

依赖库版本号待优化

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.4.tar.gz (1.2 MB view details)

Uploaded Source

Built Distribution

xiaoapi-0.0.4-py3-none-any.whl (1.2 MB view details)

Uploaded Python 3

File details

Details for the file xiaoapi-0.0.4.tar.gz.

File metadata

  • Download URL: xiaoapi-0.0.4.tar.gz
  • Upload date:
  • Size: 1.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.10

File hashes

Hashes for xiaoapi-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a28d32af65af300e7b291bc70340e8341b44a6c740d05299683d05a6926cbd5b
MD5 403f5cecf4bc95a4fb5096827a9b4bec
BLAKE2b-256 6a6c78c657195546185c949a360d7112a770f3bf0c23b4647243e4980654fd30

See more details on using hashes here.

File details

Details for the file xiaoapi-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: xiaoapi-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 1.2 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.10

File hashes

Hashes for xiaoapi-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f60f653e3de00daf747ed9d7c6390f7e3bc1fbd2dfa73140d96e64acc2cc205f
MD5 94f670f685edb628ab98d9ceee0895da
BLAKE2b-256 a332224f610579d1462797c0a8f723e300b1cc06654f38b64b1b6477dcedaeaa

See more details on using hashes here.

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