Skip to content

Peippo1/Style-My-Text-API

Repository files navigation

Style My Text API

Python FastAPI License: MIT Tests

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.

✨ Features

  • 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

🚀 Getting Started

Install dependencies

pip install -r requirements.txt

Run the API locally

uvicorn app.main:app --reload

Test the endpoint

Go to: http://localhost:8000/docs

Example input:

  • text: "You should see my code now."
  • style: "pirate"

🛠 Example Response

{
  "styled_text": "Ye should see me code now arrr!"
}

📄 License

This project is open-sourced under the MIT License. See LICENSE for details.


✅ Final Features

  • 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.

About

A playful FastAPI-powered microservice that transforms input text into fun styles like Pirate, Shakespeare, Emoji etc.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages