Python'deki XBRL ve iXBRL dosyalarını oku
Contents
[
Hide
]
Python’deki XBRL örnek dosyasını okuyun
Aspose.Finance, XBRL belgelerinin okunmasını destekler. Bunun için geçerli bir XBRL örnek dosyasının adını parametre olarak geçirerek XbrlDocument sınıfını kullanabilirsiniz.
Aşağıdaki Python kod parçacığı, bir XBRL örnek belgesinin okunmasını gösterir.
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 |
Python’deki iXBRL dosyasını oku
Aspose.Finance, iXBRL örnek belgelerinin okunmasını destekler. Bunun için API, InlineXbrlDocument sınıfını sağlar. InlineXbrlDocument sınıfının oluşturucusu, geçerli bir iXBRL dosyasının adını kabul eder.
Aşağıdaki Python kod parçacığı, bir iXBRL örnek belgesinin okunmasını gösterir.
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 |