Convert XBRL to SEC xlsx report via Python

XBRL to SEC xlsx report conversion without needing any other software within Python based applications.

 

Aspose.Finance for Python via .NET is an API to process XBRL, iXBRL formats and developers can easily build business processes management, financial analysis and reporting software applications to convert, create, read, view and validate XBRL and iXBRL finance-related files.

How to Convert XBRL to SEC xlsx report

  1. Load input XBRL file using XbrlDocument class.
  2. Set SaveOptions for the output file by choosing the SaveFormat.SEC_XLSX_REPORT.
  3. Call the save method by providing the target file and relevant SaveOptions as parameters.

Conversion Requirements

To proceed for XBRL to SEC xlsx report conversion, make sure that you have the following prerequisites.

  • Microsoft Windows or Linux based OS.
  • Python 3.5 or later.
  • Aspose.Finance for Python referenced in your project.
 

C# source code to convert XBRL to SEC xlsx report file

//Enable cache service, this service will cache schema and link base file, and use the local file directly in the next load
LocalCacheService.enable_service("D:\\xbrl\\cache")
document = XbrlDocument("xbrl_file_name.xml")
// Set save options
options = new SaveOptions()
options.save_format = SaveFormat.SEC_XLSX_REPORT
// Save file to SEC XLSX report format
document.save(@"sec_report.xlsx", options)
 

Other Conversion Options

XBRL to XLSX (Microsoft Excel Open XML Spreadsheet)
OFX Response (From 1.03 to 2.2 Format)
OFX Request (From 1.03 to 2.2 Format)