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

How to analyze a folder with multiple python files? #1509

Closed
CloudApiStudy opened this issue Feb 20, 2020 · 1 comment
Closed

How to analyze a folder with multiple python files? #1509

CloudApiStudy opened this issue Feb 20, 2020 · 1 comment

Comments

@CloudApiStudy
Copy link

I'm trying to apply static analysis on python projects, with contain multiple python files with dependency. I noticed that there's an API jedi.Script for analyzing a single file, but haven't found one for whole project. My current implementation is merging multiple files into one and then use this API. However, it's not scalable and incurs other related problems.
Is there anyway neat way to use Jedi analyze a whole project?

@davidhalter
Copy link
Owner

Have you tried the project branch? That API will be available in 0.17.0. You can just use jedi.Project.

Also what's your goal for analyzing? Some things are intentionally the way they are. You will have to recreate Script from time to time to avoid using a lot of memory (otherwise #1059 is still a very real problem).

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

No branches or pull requests

2 participants