Writing Advanced Scripts with Python
Python is an integral part of the ArcGIS Platform – it is used for automating geoprocessing tasks, data management processes and the maintenance of your maps, as well as managing and administering huge parts of your on-premise or 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 be aware that this course contains no instruction on how to perform geoprocessing using ArcPy or the ArcGIS API for Python.
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.
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.
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.