Skip to content

Instantly share code, notes, and snippets.

@aspose-finance-gists
Last active February 21, 2024 18:00
Show Gist options
  • Select an option

  • Save aspose-finance-gists/173ec3789a9a5b2fdcd9a2365e5e7d71 to your computer and use it in GitHub Desktop.

Select an option

Save aspose-finance-gists/173ec3789a9a5b2fdcd9a2365e5e7d71 to your computer and use it in GitHub Desktop.

Revisions

  1. aspose-finance-gists revised this gist May 3, 2023. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions XBRL-to-Excel-Python.md
    Original file line number Diff line number Diff line change
    @@ -4,8 +4,8 @@ https://blog.aspose.com/finance/convert-xbrl-to-excel-in-python/

    This article covers the following topics:

    1. [Python XBRL to Excel Converter][3]
    2. [Convert XBRL to Excel in Python][4]
    3. [Get a Free License][5]
    4. [XBRL to Excel Converter Online][6]
    5. [XBRL Format in Excel – Learning Resources][7]
    1. [Python XBRL to Excel Converter](https://blog.aspose.com/finance/convert-xbrl-to-excel-in-python/#python-xbrlto-excel-converter)
    2. [Convert XBRL to Excel in Python](https://blog.aspose.com/finance/convert-xbrl-to-excel-in-python/#convert-xbrl-to-excel-in-python)
    3. [Get a Free License](https://blog.aspose.com/finance/convert-xbrl-to-excel-in-python/#get-a-free-license)
    4. [XBRL to Excel Converter Online](https://blog.aspose.com/finance/convert-xbrl-to-excel-in-python/#xbrl-to-excel-converter-online)
    5. [XBRL Format in Excel – Learning Resources](https://blog.aspose.com/finance/convert-xbrl-to-excel-in-python/#learning-resources)
  2. aspose-finance-gists created this gist May 3, 2023.
    11 changes: 11 additions & 0 deletions XBRL-to-Excel-Python.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    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:

    1. [Python XBRL to Excel Converter][3]
    2. [Convert XBRL to Excel in Python][4]
    3. [Get a Free License][5]
    4. [XBRL to Excel Converter Online][6]
    5. [XBRL Format in Excel – Learning Resources][7]
    15 changes: 15 additions & 0 deletions XBRL-to-Excel-Python_Code.py
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    # 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)