Installation

Requirements

  • Python 3.10 or higher

  • pip package manager

From PyPI

pip install smartroute

With Optional Dependencies

Pydantic Plugin

For automatic argument validation using type hints:

pip install smartroute[pydantic]

Development Tools

For development with all optional dependencies:

pip install smartroute[dev]

All Dependencies

To install everything:

pip install smartroute[all]

From Source

For development or to use the latest unreleased features:

git clone https://github.com/genropy/smartroute.git
cd smartroute
pip install -e ".[all]"

This installs SmartRoute in editable mode with all optional dependencies.

Verify Installation

Test your installation:

python -c "from smartroute.core import Router, RoutedClass, route; print('SmartRoute installed successfully!')"

Next Steps