A playful FastAPI-powered microservice that transforms input text into various fun styles like pirate, sarcastic, and more — complete with a Streamlit frontend, CI testing, and rate limiting.
POST /style
endpoint that accepts text and a chosen style- Built with FastAPI and Uvicorn
- Extendable with new style modes (e.g., Shakespearean, emoji)
- Ready to deploy and integrate
pip install -r requirements.txt
uvicorn app.main:app --reload
Go to: http://localhost:8000/docs
Example input:
text
: "You should see my code now."style
: "pirate"
{
"styled_text": "Ye should see me code now arrr!"
}
This project is open-sourced under the MIT License. See LICENSE
for details.
- FastAPI backend deployed on Render: https://style-my-text-api.onrender.com
- Streamlit frontend for user interaction
- GitHub Actions CI for automated testing
- Rate limiting using
slowapi
to prevent spam
🧠 Built with FastAPI and Streamlit for fun, learning, and production-ready API practice.