Seatools Server Uvicorn
Project description
seatools uvicorn 启动器
使用指南
- 安装,
poetry add seatools-server-uvicorn - 假设
xxx.boot模块存在start的启动ioc函数
from seatools.ioc import run
def start():
run('xxx', './config')
命令行启动uvicorn xxx.boot:start xxx.fastapi.app:app, 其他参数与官方uvicorn一致, 在uvicorn基础上增加了一个ioc_app的参数, 需要指明ioc应用启动的函数
3. 程序直接调用
from xxx.boot import start
from seatools.ioc.server import uvicorn
def main():
uvicorn.run(start, 'xxx.fastapi.app:app')
if __name__ == '__main__':
main()
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 Distribution
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 seatools_server_uvicorn-1.0.0.tar.gz.
File metadata
- Download URL: seatools_server_uvicorn-1.0.0.tar.gz
- Upload date:
- Size: 7.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f2f31fa2177a8839e14d855c705d3e6fa29ed0ec59b552ec8df472767920074d
|
|
| MD5 |
89496f5f88db7e48f539058898e97f55
|
|
| BLAKE2b-256 |
0f703631d618aaeb08000572f6bd26c5c150aa32ac586d867f4812831f9b5501
|
File details
Details for the file seatools_server_uvicorn-1.0.0-py3-none-any.whl.
File metadata
- Download URL: seatools_server_uvicorn-1.0.0-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fac22458333ec10e84be7980d9aa24a0396322b21574e92b63c01e3b43e87fff
|
|
| MD5 |
d4caf9ea5bb258ca61ef0e44254c431f
|
|
| BLAKE2b-256 |
2ce7e2d385f67baae30af5f8337d4e9361c4f4c45be8a28f67a3aecc678e9137
|