Create XBRL Files via Python

XBRL files creation without needing Microsoft Office installed or any other software.

How to Create XBRL Files

Follow the steps in code snippet or enhance it as of your application needs for generating extensible business reporting language XBRL files. Be sure of having creation requirements within your application.

  1. Create XbrlDocument class Instance.
  2. To create a new XBRL instance document XbrlInstanceCollection and XbrlInstance.
  3. Add schema reference using SchemaRefCollection
  4. Depending on application nature add context, unit, item, footnote link and more.
  5. Call the save method by providing the target file path.

Creation Requirement

To proceed for XBRL documents generation, 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.
 

Python code for XBRL files creation

 

Other Creation Options

OFX Request (1.03 or 2.2 Format)
OFX Response (1.03 or 2.2 Format)