
If you want to build a native desktop-based app, then check out the learning path for Python GUI Programming. Note: There are different packages that can help you with building a GUI, including Tkinter, wxPython, and PySimpleGUI.

They turn Python scripts into executable programs that can be used on different platforms without requiring your users to explicitly run the Python interpreter. Programs such as PyInstaller, py2app, py2exe, or Briefcase can help with packaging your code. Below you’ll read about two possibilities: Standalone ProgramĬomputer programs come in different shapes and forms, and there are multiple options for transforming your Python scripts into standalone programs. Many people who want to use your script’s functionality won’t have Python installed or won’t be familiar with the processes required to work directly with your code.Ī more user-friendly way to present your code to potential users is to build a standalone program. However, using this approach also means that your users will need to run your code with Python. If you don’t want to publish your code as a PyPI package, then you can still use Python’s built-in sdist command to create a source distribution or a Python wheel to create a built distribution to share with your users.ĭistributing your code like this keeps it close to the original script you wrote and adds only what’s necessary for others to run it. You can also download the source code that you’ll use to build your web application by clicking the link below:Īfter you’ve successfully published your code to PyPI, this command will install your package, including its dependencies, on any of your users’ computers, provided that they have an Internet connection. They’ll give you a chance to solidify what you’re learning through extra practice. In addition to walking through an example project, you’ll find a number of exercises throughout the tutorial.


Watch it together with the written tutorial to deepen your understanding: Deploy Your Python Script on the Web With Flask

Watch Now This tutorial has a related video course created by the Real Python team.
