qkzk / qcm_alchemy

Share multiple question choices with your student created from simple mardown files
https://qcmqkzk.fr
GNU General Public License v2.0
3 stars 1 forks source link

Parse in thread #62

Closed qkzk closed 2 years ago

qkzk commented 2 years ago

See #61

Parser is now called as a multiprocess process.

It allows us to stop parsing after a delay while still catching errors.

Parsing a file shouldn't be able to crash the main application.

Communicating with the parser is done through a shared dict, populated with the result or errors.

Parser is in own package called qcm_parser : github, pypi

Since there's already a parser module in standard library I moved the parser one step further.

It must be imported with from qcm_parser.parser import ParseQCM.