Skip to main content

No project description provided

Project description

Zylo Docs

The world's best API docs for developers.

poetry 세팅 방법

방법.1 Poetry 깃허브 레포에서 직접 다운로드

curl -sSL https://install.python-poetry.org | python3 -

방법.2 pipx를 이용한 다운로드

pipx install poetry

설치 확인

poetry --version

의존성 라이브러리 설치

poetry install

VS Code 연동(vscode 말고도 에터가 poetry 가상환경을 인식못하는 경우 수동으로 연결)

  1. VS Code에서 프로젝트 폴더 열기
  2. Cmd+Shift+P → Python: Select Interpreter
  3. .venv/bin/python 선택 만약 vscode가 자동으로 가상환경을 찾아서 등록해야 하는 작업을 해주면 된다

poetry 실행 명령어

poetry run uvicorn zylo-docs.main:app --port 8001 --reload

Installation

From PyPI (when published)

pip install zylo-docs

From source

git clone https://github.com/yourusername/zylo-docs.git
cd zylo-docs
pip install -e .

Usage

Integrate with your FastAPI app

Zylo Docs is a FastAPI plugin that adds a custom HTML-based API documentation UI at the /zylo route.

Example:

from fastapi import FastAPI
from zylo_docs.integration import mount_zylo_docs

app = FastAPI(title="My API")

@app.get("/users")
async def get_users():
    return {"users": ["user1", "user2"]}

# Integrate Zylo Docs UI with a single line
mount_zylo_docs(app)

Run the Zylo Docs server (for development/testing)

You can run the Zylo Docs server in two ways:

1. Using the CLI (recommended for quick start):

zylo-docs --reload

2. Using uvicorn directly:

uvicorn zylo_docs.main:app --reload

Access Zylo Docs

How it works

  • The UI served at /zylo is located at zylo_docs/static/index.html.
  • Zylo Docs automatically loads your FastAPI OpenAPI spec from /openapi.json and displays it in the UI.
  • You can integrate Zylo Docs into any FastAPI app with a single line.

Development

  • Python 3.8+
  • FastAPI, Uvicorn

License

MIT License

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

zylib_test-0.0.35.tar.gz (204.5 kB view details)

Uploaded Source

Built Distribution

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

zylib_test-0.0.35-py3-none-any.whl (208.3 kB view details)

Uploaded Python 3

File details

Details for the file zylib_test-0.0.35.tar.gz.

File metadata

  • Download URL: zylib_test-0.0.35.tar.gz
  • Upload date:
  • Size: 204.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for zylib_test-0.0.35.tar.gz
Algorithm Hash digest
SHA256 b94a0223bc01a6a70e8fe2e979175afb668ed5d579c5e35d96582b06eaee48f9
MD5 2a5f5a742ece0d9707fbc591503a9ff3
BLAKE2b-256 83a7b08be1b1622d3f7e8ca9ed07adc555559bccce4e74081a99053a5e5b7799

See more details on using hashes here.

File details

Details for the file zylib_test-0.0.35-py3-none-any.whl.

File metadata

  • Download URL: zylib_test-0.0.35-py3-none-any.whl
  • Upload date:
  • Size: 208.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.3

File hashes

Hashes for zylib_test-0.0.35-py3-none-any.whl
Algorithm Hash digest
SHA256 641d6b972241e0e1b1369e0a9554524e25063c4ada1ac1e0cc90dc6a3bd9066f
MD5 99a4c9414c638f3c9fee8de01d514bcd
BLAKE2b-256 aa862a989469f471c1c0e342bd480a6865a2a038fe8886eaa7ebae69d86bcc7c

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