manusimidt / py-xbrl

Python-based parser for parsing XBRL and iXBRL files
https://py-xbrl.readthedocs.io/en/latest/
GNU General Public License v3.0
100 stars 37 forks source link

New 2022 taxonomies #87

Closed mrx23dot closed 1 year ago

mrx23dot commented 1 year ago

Hi, I've got the batch of missing taxonomies for 2022: (where it says .html just use the .xml version)

Fill: 2022-06-25 Q1 TRNS usr: https://www.sec.gov/Archives/edgar/data/0000099302/000120677422001900/transcat4090061-10q_htm.xml
  error The 4omy with namespace http://fasb.org/srt/2022 could not be found. Please check if it is imported in the schema file
Fill: 2022-06-30 Q2 KNDI usr: https://www.sec.gov/ix?doc=/Archives/edgar/data/0001316517/000121390022045201/f10q0622_kanditech.htm
  error The 4omy with namespace http://fasb.org/us-gaap/2022 could not be found. Please check if it is imported in the schema file
Fill: 2022-06-30 Q2 NUVR usr: https://www.sec.gov/ix?doc=/Archives/edgar/data/0000071557/000151316222000106/nuvr-20220630.htm
  error The taxonomy with namespace http://fasb.org/srt/2022 could not be found. Please check if it is imported in the schema file
Fill: 2022-05-31 Q1 NXTP usr: https://www.sec.gov/ix?doc=/Archives/edgar/data/0001372183/000121390022039436/f10q0522_nextplay.htm
  error The taxonomy with namespace http://fasb.org/us-gaap/2022 could not be found. Please check if it is imported in the schema file
Fill: 2022-04-30 Q3 RFL usr: https://www.sec.gov/ix?doc=/Archives/edgar/data/0001713863/000121390022032831/f10q0422_rafaelholdings.htm
  error The taxonomy with namespace http://xbrl.sec.gov/dei/2021q4 could not be found. Please check if it is imported in the schema file
Fill: 2022-06-30 Q1 GDST usr: https://www.sec.gov/ix?doc=/Archives/edgar/data/0001858007/000121390022047219/f10q0622_goldenstone.htm
  error The taxonomy with namespace http://xbrl.sec.gov/dei/2022 could not be found. Please check if it is imported in the schema file
manusimidt commented 1 year ago

sorry that it took so long, I was on vacation. I added the taxonomies and tried all the filings you got the error for.

If you find additional taxonomies that need to be added please write them into this issue.

mrx23dot commented 1 year ago

Cheers, meanwhile I added an auto download for US taxonomies https://github.com/mrx23dot/py-xbrl/commit/af1355d2ff8460486a630ad2af4c69df9b35efbe you could mention the source url in comment so people will know where to look.

manusimidt commented 1 year ago

@mrx23dot Yes, probably a very smart thing to automatically download the namespace to schemaurl mappings from the list of EDGAR Taxonomies. In any case, better than a static list that you always have to maintain yourself...

You are welcome to open a pull request with this code! Or do you want me to just copy the two functions and include them in the library?

mrx23dot commented 1 year ago

Yeah, copy it however you want it, I though you might want it to be a manual call. In case edgar changes url which would delay loading the lib by 5*N secs. Also not everyone will have net access, and not everyone will uses it with edgar.