Skip to main content

No project description provided

Project description

FastAPI CDN host Selector for docs ui

Python Versions LatestVersionInPypi GithubActionResult Mypy coverage Ruff code style: black

Auto find swagger-ui in local files, if exist use them. Otherwise make concurrent http requests by httpx to find out which third part cdn host is the fastest one.

English | 中文

Install

pip install fastapi-cdn-host

Usage

from fastapi import FastAPI
from fastapi_cdn_host import monkey_patch_for_docs_ui

app = FastAPI()
# include_routes ...

monkey_patch_for_docs_ui(app)

License

MIT

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

fastapi_cdn_host-0.2.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

fastapi_cdn_host-0.2.1-py3-none-any.whl (6.3 kB view details)

Uploaded Python 3

File details

Details for the file fastapi_cdn_host-0.2.1.tar.gz.

File metadata

  • Download URL: fastapi_cdn_host-0.2.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.0 CPython/3.11.6 Darwin/20.6.0

File hashes

Hashes for fastapi_cdn_host-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cb71e3eb1d24585c725f96d5d06392c35894da985b676351c4e532a6ab94fcd4
MD5 a131c29509064d5a9693738464a9b8b2
BLAKE2b-256 1917ada7b4732e970fa937cb8d52a5c2b7c894e5c3a378cae077543b73bfcafb

See more details on using hashes here.

File details

Details for the file fastapi_cdn_host-0.2.1-py3-none-any.whl.

File metadata

File hashes

Hashes for fastapi_cdn_host-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 714c3ddb9ff364655c32c1da77952ad354ba4010b08d344e3a5ba7f2637e8f40
MD5 11102ccc04af180f11ecba04a152ab44
BLAKE2b-256 12eaac58ce9725ec125eb37dd302db549b2639024445acb642ba874ffdd25c7c

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