Skip to main content

Seatools Server Uvicorn

Project description

seatools uvicorn 启动器

使用指南

  1. 安装, poetry add seatools-server-uvicorn
  2. 假设xxx.boot模块存在start的启动ioc函数
from seatools 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


Download files

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

Source Distribution

seatools_server_uvicorn-1.0.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

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

seatools_server_uvicorn-1.0.1-py3-none-any.whl (8.3 kB view details)

Uploaded Python 3

File details

Details for the file seatools_server_uvicorn-1.0.1.tar.gz.

File metadata

  • Download URL: seatools_server_uvicorn-1.0.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.11.9

File hashes

Hashes for seatools_server_uvicorn-1.0.1.tar.gz
Algorithm Hash digest
SHA256 777f0753efd6d481c45d45377ee48854e8f53d2dd72ab554ef6754122f8b6860
MD5 cfed12a26f9fb247dbae8a0ff00d4200
BLAKE2b-256 55f25051ff06b9dd99f0d588184eb7f732d131367f8c90c38962cc1ea3709f1e

See more details on using hashes here.

File details

Details for the file seatools_server_uvicorn-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for seatools_server_uvicorn-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e90a0dc22fac127fdb1d3fe7cf5ec6a098fe39c31148027eab7444b75d07dc6a
MD5 6d4ca8a9f4a87b14c4b81c8441efb887
BLAKE2b-256 669330bca1ed704099ecdcc0d3d9bfd8986e79d8bd9975425a0dab1d0c4df7bd

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