Quick Start¶
Get tobira running in 5 minutes.
Prerequisites¶
- Python 3.9+
- A trained spam classification model (or use one from HuggingFace Hub)
1. Install tobira¶
2. Start the API server¶
Or with a TOML configuration file:
Example tobira.toml:
The server starts on http://127.0.0.1:8000 by default.
3. Test the API¶
curl -X POST http://127.0.0.1:8000/predict \
-H "Content-Type: application/json" \
-d '{"text": "Buy cheap watches now! Limited offer!"}'
Response:
4. Check health¶
5. Set up your MTA¶
Choose your MTA integration guide:
Next Steps¶
- Configuration — Detailed configuration options
- Backends — Choose the right backend for your needs
- Deployment Guide — Production rollout strategy