Is there a script that will dump the field names along with the field alias. I'm looking to get something like the following dumped for a data set.
Field, Alias
TOTPOP_CY, 2015 Total Population
HHPOP_CY, 2015 Population in Households
You would use the arcpy Describe function. You can then access the fields property which returns a list of Field objects that you can iterate through to get the aliasName and baseName properties.
You can also use ListFields to access the fields.
# This is essentially the line you'll need
[(f.name, f.aliasName) for f in arcpy.Describe(<PathToTable>).fields]
# This is an example of a way to use it
import arcpy
print("Name,Alias")
for item in [(f.name, f.aliasName) for f in arcpy.Describe(<PathToTable>).fields]:
print(",".join(item))
"""
The above section would output something like
Name,Alias
OBJECTID,OBJECTID
Shape,Shape
AREANAME,AREA NAME
POP2000, POP 2000
"""
for f in arcpy.Describe(<TheFeatureClass>).fields:
if f.name == TheFieldName:
FIELD_ALIAS = f.aliasName