Buckets:

download
raw
953 Bytes
"""Command line interface."""
from pathlib import Path
import typer
from loguru import logger
cli = typer.Typer()
@cli.command()
def install_docknet() -> None:
from docknet.managers.components import install_components
install_components()
@cli.command()
def export_openapi_specs(output_path: Path) -> None:
import json
from docknet.api import app
# write openapi.json spec to file
with open(output_path, "w") as outfile:
json.dump(app.openapi(), outfile)
@cli.command()
def start_dev_server(host: str = "0.0.0.0", port: int = 8082) -> None:
import sys
import uvicorn
logger.add(
sys.stderr, format="{time} {level} {message}", filter="my_module", level="INFO"
)
typer.echo("Starting Dev Server.")
# TODO: Run with: Run with: PYTHONASYNCIODEBUG=1
uvicorn.run("docknet.api:app", host=host, port=port, log_level="info", reload=True)
if __name__ == "__main__":
cli()

Xet Storage Details

Size:
953 Bytes
·
Xet hash:
22241f7545ec071c10a6ea322bd18c869f0bd0c03cf2b5de80bd30fecace358d

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.