Convert Financial Report Files via Python

Financial report formats conversion including XBRL, iXBRL and OFX file from 1.03 to 2.2 format within Python based applications.


Aspose.Finance for Python via .NET is a feature rich, extensible and easy to use API. Developers can easily validate XBRL instances, linkbases and taxonomy schemas using validate() method that must comply with the syntax requirements imposed in specification. Moreover, they can read XBRL, iXBRL formats as well as create XBRL instance from scratch. Moreover, they can convert XBRL format to iXBRL and Microsoft Excel XLSX files. API also supports open financial exchange (OFX) format request / response creation and converts OFX file request / response from 1.03 to 2.2 format.

Convert OFX Response and Request Files

API supports creating OFX request and response files by providing two classes. OfxRequestDocument for creating and loading OFX request files in 1.03 and 2.2 format and OfxResponseDocument for OFX response files in 1.03 and 2.2 format. Futhermore, OfxVersionEnum Enumeration having members V1x that is 1.x version, sgml file format and V2x 2.x version, xml file format. After calling the save method of OfxRequestDocument class or OfxResponseDocument class, developers can easily convert from 1.03 sgml file to 2.2 xml format.

C# Code to Convert OFX Response Files
C# Code to Convert OFX Request Files

XBRL Financial Reports Conversion

API supports converting XBRL files to iXBRL and Microsoft® Excel XLSX format. Conversion process is simple, firstly load the file via XbrlDocument Class. Use the SaveOptions class for SaveFormat, to be used as parameter in save method of XbrlDocument Class. For saving in iXBLR file, SaveFormat.IXBRL will be used and for exporting into XLSX format, SaveFormat.XLSX will be used.

Python Code to Export XBRL to iXBRL
Python Code for XBRL to XLSX Conversion