
Build a python cpu monitoring dashboard with a flask backend and psutil data in real time, presented in a native window with html, css, javascript (jquery), packaged as an executable.
Set up a Python development environment using Visual Studio Code, create and activate a virtual environment, install Flask, and generate a requirements.txt to share dependencies.
Create and run a simple Flask skeleton, rename the file, and generate boilerplate with a code extension in Visual Studio Code to view the app on local host port 5000.
Learn how to run a Flask helloworld app: open the address in a browser and see the simple website return the defined helloworld, confirming your setup.
Render HTML in a Flask app by creating a templates folder, adding index.html, rendering the template, and using app.run to refresh and display the updated page.
Learn to fetch the current CPU load using the util module. Create a test script and print the CPU load percentage to verify real-time performance.
Open the browser to access the api/cpu endpoint, observe the restart process, and note 18.8% progress and the value 711 as the page refreshes.
Add HTTP polling to the index page using jQuery to fetch CPU usage and queue load from the API/cpu endpoint every second.
Update the HTML in real time using JQuery to dynamically refresh the title, meta, and CPU usage indicator, then verify the changes on the first page.
Add a native HTML progress element, assign an id, initialize its value attribute to zero, and update the value attribute during a CPU usage fetch to display a loading bar.
Add a style tag, import the Roboto font, and set a universal font-family for all elements, then apply base dark mode and add a fab icon for a modern UI.
Enhance the app's ux by displaying a cpu usage percentage next to the number and set a default 00.0 in the index html, then refresh and package the app.
Set the run mode and launch the app to confirm the native window is working and resizable.
Learn to compile a stand-alone desktop executable with PyInstaller, using a one-file build, no console, and bundled data from your app.
Learn to add an icon to your executable via png to ico conversion and the icon flag, and preview an open-source CPU monitor dashboard on GitHub.
Preview how to add a stat for the total RAM percentage in a modern GUI using Python Flask and HTML.
Add an api endpoint that returns ram usage in real time using virtual memory percent. Test the endpoint by running the program and verify it shows about 68.3 percent.
Add HTML markup to build the CPU meter and RAM display, update the refresh function, and refactor the code to remove copy-paste while ensuring correct behavior.
Update JavaScript and conclusion explains enhancing the scripting for a RAM indicator, adding an API route, dynamic element references, and on-screen transitions to visualize live values.
Welcome to this unique course on building desktop applications with Python and a modern web development stack!
This course is for anyone interested in combining Python and HTML/CSS/Javascript to build desktop apps.
What we'll be building:
We're going to build "CPU Meater", a desktop app that shows us the current CPU usage percentage of your PC from scratch. We'll also be designing the UI and make it look good and smoothen out animations, so stay tuned!
A frequent question is: "Why should I want to build a desktop app using web technologies and desktop apps in general?"
It has become increasingly popular to build desktop apps that use a web framework for the UI. Some examples of this are Discord and Visual Studio Code.
Desktop apps allow you to take full advantage of the local filesystem and gather other system stats (some apps simply cannot be built as pure web apps)
It looks cool in your developer portfolio when applying for jobs
Who this course is for
If you already have some programming knowledge and want to broaden your skill set, and learn how to create desktop apps and share them with users.
If you'd like to create desktop tools to help with your business.
For anyone who wants to build desktop apps with Python the modern way.
My name is Zenahr Barzani, and I'll be your instructor. I'm an experienced software developer turned instructor.
If you want to create Python GUI applications powered by Flask and modern web technology, this is the course for you!