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 가상환경을 인식못하는 경우 수동으로 연결)
- VS Code에서 프로젝트 폴더 열기
- Cmd+Shift+P → Python: Select Interpreter
- .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
- Zylo UI: http://localhost:8000/zylo
- OpenAPI Spec: http://localhost:8000/openapi.json
- Your API: http://localhost:8000/users
How it works
- The UI served at
/zylois located atzylo_docs/static/index.html. - Zylo Docs automatically loads your FastAPI OpenAPI spec from
/openapi.jsonand 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
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 zylib_test-0.0.36.tar.gz.
File metadata
- Download URL: zylib_test-0.0.36.tar.gz
- Upload date:
- Size: 204.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4e4aae021a624078e1dc070c0b9019d2bb117fa5ae112e725329fa061ac28ba7
|
|
| MD5 |
21061e0bfcc2420ae65441683df59d07
|
|
| BLAKE2b-256 |
7f966639e2bbe886ed84eb1ffa77bb48e43650ca80932d7aec34ebb0cc794b6c
|
File details
Details for the file zylib_test-0.0.36-py3-none-any.whl.
File metadata
- Download URL: zylib_test-0.0.36-py3-none-any.whl
- Upload date:
- Size: 208.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dea5839bb2e5b129c3e22eef2a24345eed54958f40ec34415bcb80bae1717854
|
|
| MD5 |
7b96aa77e6ca7a8cb3dfaa92741f7fb2
|
|
| BLAKE2b-256 |
dca04b6508375c397c8781c7ee1318da52c032ecdbfaf0d8cf74e32d8a996c5d
|