Example showing how to use skir's Python code generator in a project.
# Download this repository
git clone https://github.com/gepheum/skir-python-example.git
cd skir-python-example
# Install dependencies
pip install -r requirements.txt
# Run Skir-to-Python codegen
npx skir gen
python snippets.pyThe example includes three different framework implementations. Choose one:
From one process, run:
python start_service_flask.pyFrom one process, run:
uvicorn start_service_fastapi:app --host localhost --port 8787From one process, run:
litestar --app start_service_starlite:app run --host localhost --port 8787From another process, run:
python call_service.py