Is there any code analysis tool for Python which could list down the procedures functions tables and the files used and its dependencies?
Python Dependencies
Python Dependencies
|
like
help('object name')?
Dec-19-2017, 07:51 PM
Could you give an example of what you're looking for? Like a short script and the report that would result from it?
Dec-19-2017, 08:21 PM
What do you mean by "dependencies"?
(Dec-19-2017, 05:11 PM)rbs Wrote: Is there any code analysis tool for Python which could list down the procedures functions tablesFor module/package there are package like pdir2 that can give a overview. For dependencies it help a lot have stuff isolate it in virtual environment. Doing pip list on my OS make no sense at all as there hundreds module/package.To take a example as in this post . Here we build a virtual environment for the InstagramAPI package that has a lot of dependencies. Then make it make sense to use pip list ,to look at all dependencies for this package.(insta_env) C:\1\insta_env λ pip list decorator (4.0.11) docopt (0.6.2) imageio (2.1.2) instagram-api (0.1, c:\1\insta_env\src\instagramapi) jedi (0.11.0) moviepy (0.2.3.2) numpy (1.13.3) olefile (0.44) parso (0.1.0) Pillow (4.3.0) pip (9.0.1) prompt-toolkit (1.0.15) ptpython (0.41) Pygments (2.2.0) requests (2.11.1) requests-toolbelt (0.7.0) setuptools (28.8.0) six (1.11.0) tqdm (4.11.2) wcwidth (0.1.7)If use pipenv with same package. Can get a better dependency graph. C:\1\insta_pipenv λ pipenv graph instagram-api==0.1 - moviepy [required: ==0.2.3.2, installed: 0.2.3.2] - decorator [required: ==4.0.11, installed: 4.0.11] - imageio [required: ==2.1.2, installed: 2.1.2] - numpy [required: Any, installed: 1.13.3] - pillow [required: Any, installed: 4.3.0] - olefile [required: Any, installed: 0.44] - numpy [required: Any, installed: 1.13.3] - tqdm [required: ==4.11.2, installed: 4.11.2] - requests [required: ==2.11.1, installed: 2.11.1] - requests-toolbelt [required: ==0.7.0, installed: 0.7.0] - requests [required: >=2.0.1,<3.0.0, installed: 2.11.1]Here see a tree of dependencies ,so moviepy need decorato, imageio and so on. |
|
Possibly Related Threads… | |||||
Thread | Author | Replies | Views | Last Post | |
Using Python and scikitlearn, how to output the individual feature dependencies? | warren8r | 8 | 5,224 |
May-20-2021, 08:02 PM Last Post: Caprone |
Users browsing this thread: 1 Guest(s)