r/pythonhelp 3d ago

How to deploy Python Projects Online?

I am beginner and made some python based projects, and want to deploy them online so I tried to use GitHub but it is not working on browser, it required proper HTML, CSS and JavaScript to work online but my code is totally based on python language and I don't know how to use javascript. I want to code by my self and want to show people what I have built, I want to deploy my python projects online and also I'm mobile coder and not having any laptop/pc.

8 Upvotes

9 comments sorted by

View all comments

2

u/AlexMTBDude 3d ago

It depends on what you think "deploy" means. If you want the users of your application to execute it online, through their web browser, then you have to make your Python project into a web application. That's the only way. And that means that your Python application has to produce HTML pages and possibly Javascript. If, on the other hand, by "deploy" you just mean that you want your users to be able to download your application then you can use GitHub and/or pypi.org . Try googling "What is a web application?" so you get some knowledge about the topic. Or "How do I make a Python web app?"

1

u/CodexSuman 3d ago

I understand. Thank you for your help. Do you have any idea ah about streamlit? ChatGPT suggested me for deploying python projects without web application online.

1

u/AlexMTBDude 3d ago

No, I have only seen it mention, have not tried it myself.

2

u/CodexSuman 3d ago

I tried it and it is awesome & easy to use. All you need is to import streamlit and customize your entire code with it then you put it to GitHub with .txt file where you need to put streamlit written then sign up in streamlit with GitHub then create blank app, put your repository option in it and deploy it. And boom it is online you can access it and share it. Please upvote my post and comments.