Skip to content
This repository has been archived by the owner on Mar 10, 2024. It is now read-only.

Extract symbol names with Jedi #51

Open
CJ-Wright opened this issue Oct 14, 2020 · 0 comments
Open

Extract symbol names with Jedi #51

CJ-Wright opened this issue Oct 14, 2020 · 0 comments

Comments

@CJ-Wright
Copy link
Member

Jedi seems like it could be a good tool for extracting all the symbols from our packages. This may need an independent CI job though since it may be a lengthy process.

with open('foo.py') as f:
    c = jedi.Script(f.read())
# this will give a list of all the names of the symbols in the file
#  these can be exported into a file themselves for use by 3rd parties
c.get_names()
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant