Skip to main content

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()

Metadata

Release files for seatools-server-uvicorn 1.0.1

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

Source distribution (sdist)

Source distribution for seatools-server-uvicorn 1.0.1
File Size Uploaded Provenance Actions
seatools_server_uvicorn-1.0.1.tar.gz 7.2 kB Without provenance Details for seatools_server_uvicorn-1.0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for seatools-server-uvicorn 1.0.1
File Interpreter ABI Platform Actions
seatools_server_uvicorn-1.0.1-py3-none-any.whl Python 3 none any Details for seatools_server_uvicorn-1.0.1-py3-none-any.whl

Total release size: 15.5 kB

Release files / seatools_server_uvicorn-1.0.1.tar.gz

Download URL seatools_server_uvicorn-1.0.1.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
777f0753efd6d481c45d45377ee48854e8f53d2dd72ab554ef6754122f8b6860
BLAKE2b-256 checksum
How to use checksums
55f25051ff06b9dd99f0d588184eb7f732d131367f8c90c38962cc1ea3709f1e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.9

Release files / seatools_server_uvicorn-1.0.1-py3-none-any.whl

Download URL seatools_server_uvicorn-1.0.1-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e90a0dc22fac127fdb1d3fe7cf5ec6a098fe39c31148027eab7444b75d07dc6a
BLAKE2b-256 checksum
How to use checksums
669330bca1ed704099ecdcc0d3d9bfd8986e79d8bd9975425a0dab1d0c4df7bd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.11.9

Security for seatools-server-uvicorn 1.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files No provenance

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