XBRLi_converter is a Python package for conversion of XBRLi filings into simpler XBRL documents.
XBRLi_converter is one of the tools used to build www.financialdatatree.com, an XBRL-powered website offering easy and free access to fundamental data from publicly traded US companies. Visit www.financialdatatree.com for more details.
GitHub repository for the project: github.com/filippo-ciceri/XBRLI_converter.
Use the package manager pip to install XBRLi_converter.
pip install XBRLi_converter
import XBRLi_converter
files = ['goog-20201231.htm']
process_files(files)
To sort alphabetically the content of the resulting simplified XBRL file:
process_files(files, sort=True)
The output files can be also automatically renamed using the names
option:
names = ['output_xbrl.xml']
process_files(files, sort=True, names=names)
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.