I created a simple Python script that takes some text input and outputs text. I want to turn it into a minimalist webpage for sharing, but I don't want to dive deep into the complexities of web development right now. I'm looking for a straightforward tutorial to help me create a basic functioning site. Also, I've heard GitHub might be a good option for hosting, but I'm not sure if it's compatible with Python. Any recommendations?
3 Answers
If you're looking for a quick route, Ditch GitHub Pages for now. Focus on a lightweight framework like Flask and host your app on services like Replit or Render. Just search for 'Flask in 5 minutes' on YouTube; you'll find lots of great resources to get you started!
It sounds like you're trying to make your script functional online, right? You can create a simple web form that takes user input and displays the output. For that, Flask is a fantastic option. You can find beginner-friendly tutorials online like Corey Schafer’s series, which are really helpful!
You can't use GitHub Pages directly for Python since it's meant for static files like HTML, CSS, and JavaScript. But you have some alternatives! You could use a Python web framework like Flask or Django to set up a server, and there are platforms like Heroku or AWS (with free tiers) for hosting. If you're willing to experiment, there's something called PyScript that lets you run Python in the browser, enabling you to host your project on GitHub Pages as static files. It could be worth checking out!
Thanks for the suggestions! Maybe I should start learning some JavaScript too.

Hey, I just watched that video! It’s super helpful, thanks for the tip!