اقرأ ملفات XBRL و iXBRL في Python
Contents
[
Hide
]
اقرأ XBRL ملف المثيل في Python
يدعم Aspose.Finance قراءة وثائق XBRL. لهذا ، يمكنك استخدام فئة XbrlDocument عن طريق تمرير اسم ملف مثيل XBRL صالح كمعامل.
يوضح مقتطف التعليمات البرمجية Python التالي قراءة مستند نسخة XBRL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document = XbrlDocument(os.path.join(sourceDir, "IdScopeContextPeriodStartAfterEnd.xml")) | |
xbrlInstances = document.xbrl_instances | |
xbrlInstance = xbrlInstances[0] | |
facts = xbrlInstance.facts | |
schemaRefs = xbrlInstance.schema_refs | |
contexts = xbrlInstance.contexts | |
units = xbrlInstance.units |
اقرأ iXBRL ملف في Python
يدعم Aspose.Finance قراءة وثائق النسخة iXBRL. لهذا ، يوفر API فئة InlineXbrlDocument. يقبل منشئ الفئة InlineXbrlDocument اسم ملف iXBRL صالح.
يوضح مقتطف التعليمات البرمجية Python التالي قراءة مستند نسخة iXBRL.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document = InlineXbrlDocument(iXbrlFilePath + @"account_first.html") | |
inlineFacts = document.facts | |
contexts = document.contexts | |
units = document.units |