
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Explore what Python is by comparing compiled and interpreted languages, examining the Python interpreter and the global interpreter lock, and understanding how these basics help you use Python effectively.
Explore how CPython converts Python source files into bytecode and interprets it step by step, clarifying that Python is mostly interpreted and lacks just-in-time compilation.
Compare compiled and interpreted languages, detailing compilers, executables, and CPU targets, with interpreters running source via runtimes like Python or the JVM.
In multi-threaded environments this becomes challenging as only one interpreter can run code at a given time and we need a mutex to protect the state.
Install python 3 on mac from python.org, verify the 3.x executable in the terminal, and set up pip and Visual Studio Code debugger for a smooth workflow.
Install Python 3 on Mac, open the terminal, and run pip3 install Tornado to set up the Tornado web server for writing Python backend code.
Install Visual Studio Code on Mac and the Python extension to enable debugging and syntax highlighting, then set the Python interpreter to 3.x and run a hello world.
Download and install Python 3.7 on Windows from Python.org and enable add to path. Install pip and verify with python --version.
Install tornado on Windows via the command prompt after confirming pip is installed, then you are ready to write your own Python backend web server.
Install Visual Studio Code and the Python extension on Windows, create a simple hello world program, and learn to debug, with syntax highlighting and autocomplete to streamline Python development.
Learn how the HTTP protocol enables client-server communication through text requests and responses, using headers and methods like GET and POST to access or modify resources.
Build a simple Python get endpoint with Tornado to return a basic text response on port 8882, using a basic request handler and an IO loop.
Learn how to serve a static HTML file from a Python web server using render, and create a simple get endpoint to return index.html with proper headers and content type.
Learn how clients send data to servers using query parameters in URLs and resource parameters as sub-resources, with examples like YouTube video IDs and user status.
Build a get endpoint with resource parameters in the URI to capture student id, student name, and course name with regular expressions, then return data to the user.
Develop a JSON get endpoint on the backend that reads a fruits list from a text file, splits lines into an array, and returns it as JSON.
Build a json post endpoint in python on the backend that appends received fruit data to a text file, using query parameters, testing with postman.
Expose a Python API via get and post to JavaScript and HTML clients, and render data from the API as JSON on a web page.
In this video we learn how to build a fully functional web server with upload file capability using python. There are two parts, the client index.html which asks the user to browse for a file and the server back-end python side where it accepts the file and saves it on the server.
Jupyter notebook is a server side execution engine exposed over HTTP and consumed from a browser or any thin client. Different outputs from the server execution can be displayed such as text, markdown, charts and much more.
Jupyter supports multiple kernels mainly famous one is python. You can create a notebook which consists of multiple cells. Each cell can be either a code that your write and run on the server, or mark down.
Jupyter notebook grown popular for machine learning where you can execute long running jobs and train models on the server
In this lecture we will discuss how to install Jupyter notebook on mac
In this lecture we will discuss how to install Jupyter notebook on Windows
In this lecture we will discuss how to install Jupyter notebook on docker
In this lecture we will learn how to run and build our first jupyter notebook using a simple twitter example.
In this lecture we will learn more about load balancing and we will use nginx to balance the incoming requests to multiple python services.
Learn how to spin a postgres database on docker so we can use read and write.
In this lecture you will learn how to connect, query and write data to PostgresSQL using psycopg2
Connect a Python script to a MySQL database using the standard api, creating a connection and cursor. Perform parameterized queries, insert and fetch records, and manage commits and connection closing.
Source Code: https://github.com/hnasr/python_playground/tree/master/stateful_stateless
Explore how Django architecture uses an orm-backed backend and persistent connections to manage database queries within a three-tier architecture, while examining the one-connection-per-thread constraint, http/tls, and context switching on performance.
Do you know Python and want to take it to the next level? How about writing a website in Python, or an API so your fellow developers can consume in JSON over simple HTTP. With the boom of microservices and API, developers who are used to working with Python writing scripts can now take their knowledge to the backend. This course will teach you the basic of web servers, how to setup the Python Web server and write interesting cool applications on the backend. By the end of the course you will be read to take on the world and write your own services and APIs, read and write from databases, do sophisticated load balancing on your Python services, work with Jupyter notebooks and much much more!