Skip to content

Latest commit

 

History

History
38 lines (26 loc) · 1006 Bytes

README.md

File metadata and controls

38 lines (26 loc) · 1006 Bytes

Yet Another Python XBRL Parser

CI script

Top down parser for XBRL.

Sample Code (sample.py)

This is a sample to read and convert a xbrl file to json.

 import sys
 from xbrl\_parser import XbrlApp
 
 if __name__ == "__main__":
 
     xbrl_app : XbrlApp = XbrlApp()
 
     filename : str = sys.argv[1]
     text = open(filename).read()
     xbrl_app.to_json(text)

To run

    python3 sample.py ${xbrl_file}

xbrl files are available from sec, edinet and others.