Examples

Available Examples

Calculator App

A complete calculator application demonstrating:

  • Basic arithmetic operations

  • CLI and HTTP modes

  • Parameter validation

  • History tracking

See calculator_http.py

Read more

Running Examples

Clone the repository:

git clone https://github.com/genropy/smartpublisher.git
cd smpub/examples

Install dependencies:

pip install -e ..[http]

Run examples:

# CLI mode
python calculator_http.py calc add 10 20

# HTTP mode
python calculator_http.py
# Visit http://localhost:8000/docs