
Learn to use the Python interpreter interactively and via scripts, including running Python, printing strings, looping with range, indentation, and saving .py programs.
Learn to download and install Python on a Mac from python.org, install Python 2.7.2 and Python 3, use vi to create a hello world program, then test the interpreter.
Learn Python loops, from while to for loops. See examples that print numbers one through ten and compute years to reach 5000 with simple interest.
Learn how to create Python functions using def, return, and parameters, including a square function and a temperature converter between Fahrenheit and Celsius with user input.
Learn how to use Python lists in the interactive interpreter: create, index (zero-based), slice, sort, reverse, and modify lists with append, pop, and delete.
This lecture introduces Python dictionaries, showing how to store key-value pairs, access values by key, and add, modify, or remove items—note that order doesn't matter.
Explore object oriented programming in Python by building a simple Person class with a constructor, data members, and a to_string method, then extend with initials and age changes.
Demonstrate inheritance in Python by creating a base shape class and a derived rectangle class, using constructors, a two-string method, and a move operation.
Learn to use modules to make Python programs modular by importing functions and classes from files such as tempconv and shapes, using fully qualified names or from statements, for reuse.
Learn to handle errors in Python using try/except, preventing crashes and guiding users with specific handlers for ZeroDivisionError, ValueError, and IOError.
Install sqlite with Python by downloading Windows binaries, extracting to c:\sqlite, and creating a test.db with sqlite3 in the command prompt; future lessons cover Python table creation.
Learn to install the SQLite database on Mac by visiting sqlite.com, downloading the Macintosh version, moving the sqlite3 file to applications, and testing the installation with the .databases command.
Learn to create a sqlite database and a films table in Python using sqlite3, establishing a connection and cursor, then executing a create table statement with title, year, and director.
Insert data into a sqlite3 database with Python, creating a connection and cursor, using insert into films with Annie Hall and The Godfather, then verify by selecting all from films.
Create and query an SQLite database in Python, including table creation, data insertion and deletion, data retrieval, and computing averages with SQL.
Learn to send email from Python using smtplib and MIME. Build a sendmail.py script that connects to smtp.gmail.com:587 with starttls and sends to a work address.
Learn to read email with Python by connecting to Gmail via imaplib, logging in, selecting the inbox, fetching the message body, and printing it.
Learn to read a network newsgroup using Python and the NNTP library, connect to a server, fetch article subjects, and read article bodies.
Learn how to build a console-based Python mail program by merging read mail and send mail, with interactive inputs, subject support, and a simple menu loop.
Learn to use the urllib library in Python to retrieve and inspect web pages, print and save contents to a local file, and access header information for parsing later.
Learn html parsing by converting a webpage to plain text, stripping tags, and displaying content using htmllib, urllib to fetch the page, and a formatter for output.
Parse html to extract links from a webpage using Python, urllib, htmllib, and a formatter, by building getlinks.py and printing each item from the anchor list.
Learn to fetch HTML content with Python and build a screen scraper that extracts and prints stock quotes from Google Finance pages using a span id ref anchored regular expression.
Demonstrate a simple web crawler that visits links from a starting website, parses html, and collects http links using Python and standard libraries.
Create a simple web server with Python's SimpleHTTPServer, running from the command line. Learn to serve local pages like index.html and testpage.html on localhost port 8000.
Learn to start CGI programming with Python by creating a CGI-bin directory and a hello CGI script that outputs HTML to standard output via a CGI HTTP server.
Learn how to process query strings in python using the cgi library's FieldStorage to extract key-value pairs, iterate with a for loop, and output an html response showing the data.
Connect to a SQLite database with Python and CGI, retrieve rows from the films table, and display data as HTML on a web page using an output content type header.
Display database data on a web page by generating HTML with a Python CGI script, fetching SQLite rows, and rendering title, year, and director in a looping output.
Combine CGI programming with database skills to build a film input form that inserts title, year, and director into a database and displays the updated films table.
Learn to update database records with Python via a web form, using an SQL update statement, handling form data with CGI field storage, and verifying changes in the browser.
Learn to parse an XML file with the SAX library by implementing a FilmParser that handles startElement, endElement, and characters to extract films from a films.xml file.
Learn to use the SAX API in Python to search an XML file for a specific element with a findElement.py program, handling start and end element events and characters.
Download and install Django 1.6 by extracting the tar.gz, set the python27 path, run python setup.py install, and verify the Django directory under python27 site-packages to confirm completion.
Set up a Django project using django-admin.py startproject and manage.py. Start the local server with runserver, verify the page at 127.0.0.1:8000, then update settings.py to sqlite3 and run syncdb.
Explore the Django API by entering data into the films model, saving objects with the Python shell, and using __str__ to display fields, with sql-like querying.
Learn to use Django's administration interface by creating a superuser, registering models in admin.py, and managing data—add, delete, and view films via the admin site.
learn to create Django views that display and retrieve information, connect them to the films model, and route via urls.py to render a list of movies.
This Web Programming with Python course takes you through a hands-on guide to object-oriented python web programming, working with multiple types of servers, databases and web frameworks. All that is required to get started is a very basic background knowledge of Python, as instructor Mike McMillan begins these Python web programming tutorials with two chapters of review and then goes step by step through the necessary concepts at every stage of development. You'll get a detailed primer on database programming with Python, installing an SQLite server and performing routine data selections and operations; you'll learn how to interact with FTP and email services using native Python code; see how to process web form data via Python; and learn how to interact with web database applications and utilize XML. Finally, the Python web programming course ends with a chapter on configuring and working with Django, a modern web framework that allows you to create and manage complex database-driven websites. There's not a better course for taking Python concepts and applying them to real world projects.
What You Will Learn:
- How to use Python object-oriented programming techniques within web-based projects, from online databases to complete websites.
- How to install and configure basic web-based databases using Python code.
- The essentials of XML and how it can be used in conjunction with Python projects.
- How to implement and work with Django to manage full database-driven websites.
Who Should I Take This Python web programming Course:
- Anyone with a basic background knowledge of Python and object-oriented programming (OOC) who wants to see how the language can be used for web-specific projects.
- Anyone who wants a better understanding of SQLite, XML, and online database standards.
- Anyone looking to increase their knowledge of the Python programming language and its practical application.
What People Are Saying about this Python web programming course:
"Honestly I thought my Python knowledge would be a little too rusty, but everything was presented very clearly and the review really helped."
-V. Vargas
"Had another python course before this from another teacher but it was pretty thin on projects...this is awesome because it got me to use my coding skills right away...thanks."
-Gene Tredwell
"The Django documentation I found online was a little confusing, and not really complete; Mike is quite thorough, making it easy to get started."
-Markos Psilakis