Writing Advanced Scripts with Python
Python is an integral part of the ArcGIS Platform – it is used for automating geoprocessing tasks, managing your services within ArcGIS for Server as well as managing huge parts of the online portal. This course will provide you with some advanced programming techniques while suggesting best practices which will aid the running and management of your Python scripts.
Please Note – this course used to be called “Python: The Next Step”.
This course is aimed at those who have Python experience. You will be expected to know how to write Python scripts and will have attended the following course or have the equivalent experience: Getting Started with the Python Scripting Language
Working with functions
What is a function? Characteristics of a function; Documenting functions; Using
Accessing modules and module security
Locations to import modules; updating a compiled Python file; Module security.
Adding logging functionality
Create a simple text file for logging; use the logging module to create robust log files; Accessing the logger object from multiple code modules; Capturing run-time errors in log files.
Creating Graphical User Interfaces
What GUI toolkits exist for Python? Creating a Tkinter form; Tkinter widgets; Displaying widgets; Resizing the dialog; Using Callbacks.
Working with Python classes
What is a class? How do you create a class? The
__init__ method; Creating Properties for the class; Instantiating the class; Creating methods, Using decorators to define properties; Introducing Abstraction.