xbrl.Instance

An Instance object represents an XBRL instance document.

class xbrl.Instance

Attributes

xbrl.Instance.contexts

Returns a generator object of Context objects which represents all XBRL contexts present in the instance document.

xbrl.Instance.document

Returns an xml.Document object which represents the XML document information item of the XBRL instance document.

xbrl.Instance.dts

Returns a DTS object which represents the XBRL Discoverable Taxonomy Set.

xbrl.Instance.facts

Returns a generator object of Fact objects which represents all XBRL facts present in the instance document. This also includes facts which are children of other tuples.

xbrl.Instance.filename

Returns a string with the URL of the XBRL instance document.

xbrl.Instance.items

Returns a generator object of Fact objects which represents all top-level XBRL item facts present in the instance document. Facts that are children of other tuples are not included.

xbrl.Instance.non_nil_facts

Returns a generator object of Fact objects which represents all non-nil XBRL facts present in the instance document. This also includes facts which are children of other tuples.

xbrl.Instance.psvi

Returns an xsd.PSVI object which represents the XML Schema PSVI information.

xbrl.Instance.tuples

Returns a generator object of Fact objects which represents all top-level XBRL tuple facts present in the instance document. Facts that are children of other tuples are not included.

xbrl.Instance.units

Returns a generator object of Unit objects which represents all XBRL units present in the instance document.

Methods

xbrl.Instance.select_facts(ConstraintSet cs)

Returns an xbrl.FactSet representing the facts that match the constraints in the constraintSet.

Special methods

__bool__, __eq__, __ge__, __gt__, __le__, __lt__, __ne__