Parsing the text of models isn't the best way to get information about them. The _meta attribute of a model provides tons of information about a model, its fields, and how to deal with its database representation.
Parsers are neat in general, so if you had fun with it, more power to you.
I will use it for generating database schema of uploaded django models. It's my use case. Because sandboxing in python is too hard, I can not execute uploaded python script.
Neat. The AST module was a good way for me as a novice-intermediate programmer to get better acquainted with parsing. I have a small module that parses raw Solr-style querystrings into Haystack's SQ objects. Haven't touched it in months but it was a good learning exercise. https://github.com/mattdeboard/rawqs-sq
[+] [-] natrius|13 years ago|reply
Parsers are neat in general, so if you had fun with it, more power to you.
[+] [-] fatiherikli|13 years ago|reply
[+] [-] DanielN|13 years ago|reply
[+] [-] fatiherikli|13 years ago|reply
[+] [-] mattdeboard|13 years ago|reply