Project Level 3: Real-World
This project is designed for learners who know Python fundamentals and are learning to build real-world programs.
Project Description
In this project, we will build and deploy a web app using the Python reflex web framework. My app is already running and can be viewed at this:
https://clock-lime-ocean.reflex.run
The web app is a clock showing the current time for different timezones around the world. The user can select the timezone they want:
The “Show Code” button further below will show the complete code and the step-by-step instructions on how to get the app up and running and also how to deploy it live to a public URL so everyone can visit it.
Learning Benefits
For this app we use a relatively new, but rapidly emerging web framework -reflex. Reflex is an open-source framework for quickly building beautiful, interactive web applications in pure Python, no Javascript needed. It is more advanced and customizable compared to other similar web frameworks such as Streamlit.
Prerequisites
Required Libraries:reflex, reflex-chakra, pytz
Install the libraries with:
pip install reflex reflex-chakra pytz
Required Files: No files are required.
IDE: Use any IDE.
Danger Zone
The solution code is hidden behind the button below. Click to reveal it.
Happy Coding!
Daily Python Projects Team