Learn how to convert XBRL to Excel in Python.
https://blog.aspose.com/finance/convert-xbrl-to-excel-in-python/
This article covers the following topics:
Learn how to convert XBRL to Excel in Python.
https://blog.aspose.com/finance/convert-xbrl-to-excel-in-python/
This article covers the following topics:
| # This code example demonstrates how to convert XBRL to XLSX. | |
| from aspose.finance.xbrl import XbrlDocument,SaveOptions,SaveFormat | |
| # The path to the input document | |
| inputFile = "C:\Files\sample.xbrl" | |
| # Load XBRL file | |
| document = XbrlDocument(inputFile) | |
| # Set save options | |
| Opts = SaveOptions() | |
| Opts.save_format = SaveFormat.XLSX | |
| # Save file to XLSX format | |
| document.save("C:\Files\sample_xbrl.xlsx", Opts) |