Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Addition of get_info() under Python Parser #47

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Addition of get_info() under Python Parser #47

wants to merge 2 commits into from

Conversation

reshinthadithyan
Copy link

Motivation

As discussed, given a .py file, can we get an overall mapping of the given code file. As of now, added the skeleton in the Parser Class as get_info().

get_info()

This function get_info() will return a dictionary of the following structure.
{ "functions":[ "func1" : { "doc_string":[ 'corresponding doc_string'],"body":[ 'corresponding doc_string']"}, "func2" : {...........}, } "classes":[ "class1": { "doc_string":[ 'corresponding doc_string']}, "class2": {........}, } }

Conclusion

We'll review the structure if needed. Thanks!

@rcshubhadeep
Copy link
Contributor

This is a nice and welcome addition. @reshinthadithyan thanks. Do you think you can add similar to other parser classes and also write some tests for this use-case? That would be great for this PR.

Please let me know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants