Skip to main content

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

依赖库版本号待优化

Metadata

Release files for xiaoapi 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for xiaoapi 0.0.4
File Size Uploaded
xiaoapi-0.0.4.tar.gz 1.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for xiaoapi 0.0.4
File Interpreter ABI Platform
xiaoapi-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 2.3 MB

Release files / xiaoapi-0.0.4.tar.gz

Download URL xiaoapi-0.0.4.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
a28d32af65af300e7b291bc70340e8341b44a6c740d05299683d05a6926cbd5b
BLAKE2b-256 checksum
How to use checksums
6a6c78c657195546185c949a360d7112a770f3bf0c23b4647243e4980654fd30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.10

Release files / xiaoapi-0.0.4-py3-none-any.whl

Download URL xiaoapi-0.0.4-py3-none-any.whl
Size 1.2 MB
Tags Python 3
SHA-256 checksum
How to use checksums
f60f653e3de00daf747ed9d7c6390f7e3bc1fbd2dfa73140d96e64acc2cc205f
BLAKE2b-256 checksum
How to use checksums
a332224f610579d1462797c0a8f723e300b1cc06654f38b64b1b6477dcedaeaa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.0.0 CPython/3.10.10

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page