Duration: 4 days – 28 hrs.
Overview
This Python training course provides the foundations for you to start writing Python applications. This training course emphasis the core libraries and most useful libraries developed by the Python. Python drives businesses and is used by programmers as one of the most popular programming languages. In this Python Programming course, you will learn advanced concepts like Object-Oriented concepts.
Objectives
- Work with variables and Python data types
- Work with Lambda functions.
- Work with advanced list comprehensions.
- Work with the collections module.
- Use mapping and filtering.
- Sort sequences.
- Unpack sequences in function calls.
- Work with modules and packages.
- Understand regular expressions.
- Use Python’s re module.
- Store data in a relational database.
- Store data in a CSV file.
- Work with data from a web page.
- Use HTML, XML, and JSON.
- Access an API.
- Test performance with timers and the time it module.
- Work with the unit test module.
- Work with classes and objects in Python.
- Work with instance methods, class methods, and static methods. Work with properties.
- Work with decorators.
- Work with subclasses and inheritance.
Audience
- Students who have some experience programming with Python and are ready to go to the next Advanced level.
Pre- requisites
- Experience in the following is required for this Python class:
- Basic to Intermediate Python programming experience. In particular, you should be very comfortable with: Working with strings.
- Working with lists, tuples and dictionaries.
- Loops and conditionals.
- Writing your own functions.
- Experience in the following would be useful for this Python class:
- Some exposure to HTML, XML, JSON, and SQL.
Course Content
Module 1 Python refresher
- Data types Sequences Mapping types Program structure
- Files and console I/O Conditionals
- Loops Built-ins
Module 2 OS Services The OS module Environment variables
- Launching external commands Walking directory trees
- Paths, directories, and filenames Working with file systems
- Dates and times
Module 3 Pythonic Programming
- The Zen of Python Common idioms Lambda functions List comprehensions
- Generator expressions String formatting
Module 4 Modules and packages
- Initialization code Namespaces
- Executing modules as scripts Documentation
- Packages and name resolution Naming conventions
- Using imports
Module 5 Classes
- Defining classes
- Instance methods and data Properties
- Initializers
- Class and static methods/data Inheritance
Module 6 Metaprogramming
- Implicit properties globals() and locals() Working with attributes The inspect module Decorators
- Monkey patching
Module 7 Programmer tools
- Analyzing programs Using pylint
- Testing code Using unittest Debugging
- Profiling and benchmarking
Module 8 Database access
- The DB API
- Available Interfaces Connecting to a server
- Creating and executing a cursor Fetching data
- Parameterized statements Metadata
- Transaction control Other DBMS modules
Module 9 Network Programming
- Sockets Clients Servers
- Application protocols Forking servers Binary data
Module 10 Multiprogramming
- When to use threads?
- The Global Interpreter Lock The threading module Simple threading
- Sharing variables, The queue module
- Debugging threaded programs Multiprocessing
- Other alternatives
Module 11 XML and JSON
- Working with XML DOM and Sax
- Introducing ElementTree and xml Parsing XML
- Navigating the document Creating a new XML document JSON
- Parsing JSON into Python Converting Python into JSON
Module 12 Extending Python About non-Python modules Overview of a C extension Writing C by hand
- Using SWIG
- Loading modules with ctypes