DSEnityType name from index

Hi …
How do you get the DS Entity object from it’s index? - As provided by the Published Item.
1 = Alignment, 2 = Surface
This script is returning the index values (1 and 8), I need to get the Entity Type by using the index that’s provided…
Thx for your patience…

import sys
import clr

clr.AddReference('AeccDbMgd')
clr.AddReference('AeccDataShortcutMgd')

from Autodesk.Civil.DataShortcuts import *

vals = DataShortcuts.CreateDataShortcutManager(True)
dsm = vals[0]
c = dsm.GetPublishedItemsCount()
o = []
for i in range(c):
    p = dsm.GetPublishedItemAt(i)
    if not p.IsBroken:
        o.append([p.Name , p.DSEntityType])

OUT = o


doh!!! so simple Thank You!

Hi …
With more libraries imported the name of DataShortcutEntityType was still not available on the DSEntityType property of a published data shortcut in the manager - DSEntityType continued to provide the Code.
I solved it by importing Enum

from System import Enum

adoc = Application.DocumentManager.MdiActiveDocument
vals = DataShortcuts.CreateDataShortcutManager(True)
dsm = vals[0]
c = dsm.GetPublishedItemsCount()

ds = []
for i in range(c):
    p = dsm.GetPublishedItemAt(i)
    ds.append([ i , Enum.GetName(DataShortcutEntityType, p.DSEntityType), p.Name, p.SourceLocation + "\\" + p.SourceFileName])