@spiceErrorCheck<EOL>def spkobj(spk, outCell=None):
spk = stypes.stringToCharP(spk)<EOL>if not outCell:<EOL><INDENT>outCell = stypes.SPICEINT_CELL(<NUM_LIT:1000>)<EOL><DEDENT>assert isinstance(outCell, stypes.SpiceCell)<EOL>assert outCell.dtype == <NUM_LIT:2><EOL>libspice.spkobj_c(spk, ctypes.byref(outCell))<EOL>return outCell<EOL>
Find the set of ID codes of all objects in a specified SPK file.

http://naif.jpl.nasa.gov/pub/naif/toolkit_docs/C/cspice/spkobj_c.html

:param spk: Name of SPK file.
:type spk: str
:param outCell: Optional Spice Int Cell.
:type outCell: spiceypy.utils.support_types.SpiceCell