The Data Access module, arcpy.da, is a Python module for working with data. It allows control of the edit session, edit operation, improved cursor support (including faster performance), functions for converting tables and feature classes to and from NumPy arrays, and support for versioning, replicas, domains, and subtypes workflows.
Data Access classes
The ContingentFieldValue object contains properties that describe the properties of the field used for a contingent value.
The ContingentValue object contains properties that describe a contingent value.
The DatabaseSequence object contains properties that describe a database sequence.
The Domain object contains properties that describe an attribute domain.
The Editor class allows the use of edit sessions and operations to manage database transactions.
InsertCursor establishes a write cursor on a feature class or table. InsertCursor can be used to add new rows.
The Replica object contains properties that describe a replica.
Establishes read-only access to the records of a feature class or table.
The SyncReplica object contains properties that describe a replica created through a sync-enabled feature service. Replicas created from non-versioned data with archiving or from branch versioned data are included.
UpdateCursor establishes read-write access to records returned from a feature class or table.
The Version object contains properties that describe a version.
Data Access functions
The Describe function returns a dictionary with multiple properties, such as data type, fields, indexes, and many others. The dictionary's keys are dynamic, meaning that depending on what data type is described, different properties will be available for use.
Joins the contents of a NumPy structured array to a table based on a common attribute field. The input table is updated to contain the fields from the join table.
Converts a feature class to NumPy structured array.
Lists the contingent values on a table. Search conditions can be specified for the field group name and subtype to limit the list that is returned.
Lists the database sequences in a database.
Lists the attribute domains belonging to a geodatabase.
Lists the fields in a versioned feature class, table, or feature service layer that have field conflict filters applied.
Lists the replicas in the workspace.
Returns a dictionary of the subtypes for a table or feature class.
Lists the versions in the workspace.
Converts a NumPy structured array to a point feature class.
Converts a NumPy structured array to a table.
Converts a table or feature class to an Apache Arrow table.
Converts a table to NumPy structured array.
Returns data names in directory and database structures by moving through the tree from the top down or the bottom up. Each directory or workspace yields a tuple of three: directory path, directory names, and file names.