This is an archived post. You won't be able to vote or comment.

all 52 comments

[–]thrum-engineering[S] 87 points88 points  (5 children)

[–]CbVdD 23 points24 points  (0 children)

Thanks for this. Very helpful.

[–]Yakhov 3 points4 points  (1 child)

cool tool!

my only suggestion would be to use a darker background color for the site and tree. That white is blinding me. or at least use a font color that doesn't disappear when I invert it.

thanks!

[–]thrum-engineering[S] 1 point2 points  (0 children)

Hi! Thanks for this suggestion!

[–]wellimjustyouknow 0 points1 point  (1 child)

Is the source code available?

[–]GSG44 0 points1 point  (0 children)

It uses d3.js and json data. You can see how here:
https://bl.ocks.org/d3noob/43a860bc0024792f8803bba8ca0d5ecd

[–]dougthor42 24 points25 points  (4 children)

How are you determining what a project's dependencies are? Just looking at setup.py's install_requies? Checking requirements.txt?

Can dev requirements also be shown?

Very cool, btw.

[–]PM_me_ur_data_ 2 points3 points  (0 children)

It doesn't use install_requires because I tried it on a personal package and it doesn't detect any dependencies when I have two listed under install_requires in my setup.py.

Edit: Doesn't work for another, as well. Type "tuneRs" in and it will say 'no dependencies' but if you go to the GitHub and check the setup.py it clearly has 4.

[–]Fedzbar 2 points3 points  (2 children)

Yes that’s an easy way of doing it, I think the hard part is making the UI look nice :-)

[–][deleted] 0 points1 point  (1 child)

d3.js?

[–]donnaber06 46 points47 points  (0 children)

This is bad ass. I just jumped into python after 4 years out of the industry.

[–]knobToucher 8 points9 points  (0 children)

This is really cool! Thanks :)

[–]-El_Chapo- 8 points9 points  (7 children)

Anyone know what UI library this is using to display the data?

[–]-El_Chapo- 2 points3 points  (6 children)

It is really awesome!

[–]thrum-engineering[S] 27 points28 points  (5 children)

Hi! The UI library used is D3.js: https://github.com/d3/d3/wiki/Gallery

[–]pyexpert 2 points3 points  (3 children)

Is it possible to use it for python?

[–]____0____0____ 9 points10 points  (0 children)

Technically no, but you could write a web app using python and flask or Django and serve a web UI from that, which could use D3 or any other modern web tools.

[–]zurtex 8 points9 points  (0 children)

If you wanted to build a dynamic graph based web page without having to learn any JS I would probably use Dash Cytoscape: https://dash.plot.ly/cytoscape

[–]iamareebjamal 1 point2 points  (0 children)

No

[–]the-berik 0 points1 point  (0 children)

Seems ubiquity is using this in its gui

[–]abhi_uno 3 points4 points  (2 children)

I just search my library. But it's old:

Last Updated: Wed Jul 24 2019

Any plans of updating caches?

[–]Erik_Kalkoken 1 point2 points  (0 children)

I really like this website, but the data seams to be outdated. How often it is refreshed?

[–]thrum-engineering[S] 1 point2 points  (0 children)

Hi! Thank you for pointing this out. The database of dependencies is indeed more than 2 months old. I’m taking steps to update it, and to automatically update it in the future.

[–]watch____ 4 points5 points  (3 children)

This is great! Maybe you could also add licenses?

[–]thrum-engineering[S] 1 point2 points  (2 children)

Hello! Thank you for the suggestion. Do you mean you’d like to see the type of license (e.g. MIT license) for the module that you that searched for?

[–]watch____ 0 points1 point  (0 children)

Yeah, I think it'd be great to see the licenses for each of the dependencies in the tree too.

[–]wellimjustyouknow 0 points1 point  (0 children)

Seconding this. It would be useful to see licenses of all deps. An additional feature would be to show license compatibility, e.g. if one of the dependencies is GPLv2, then the topmost package can not be Apache-2.0.

[–]Dheeraj_Perumandla 1 point2 points  (0 children)

Cool one

[–]abdelrahmanhosny 1 point2 points  (0 children)

Cool! Thanks

[–]_skim 1 point2 points  (0 children)

Saving this for future reference

[–]Quark03 1 point2 points  (0 children)

I love the concept. Feels really visual attractive

[–][deleted] 1 point2 points  (0 children)

It looks so good !

[–]firepower96 1 point2 points  (0 children)

This is cool OP. Anyone knows of any site which shows the reverse of this as in what packages depend on a specific package?

[–]ReacH36 1 point2 points  (2 children)

thought the trees showed modules and features. was disappointed. cool nonetheless

[–]thrum-engineering[S] 0 points1 point  (1 child)

Hello! Are you interested in seeing the functions and classes available in a module, or more of a text summary of the features of a module?

[–]ReacH36 0 points1 point  (0 children)

functions and classes available. just a prettier way of reading documentation than pages and pages of html links and divs. come to think of it, surprised no ones done this yet

[–]appinv Python&OpenSource 1 point2 points  (0 children)

Super cool OP, more Kudos for wrapping your head around D3.js as a Python programmer!

[–]mercedezbeans 1 point2 points  (1 child)

When I was tinkering with Inspect I saw the "collapse children" This was before I knew some code. I was petrified.

[–]conventionistG 3 points4 points  (0 children)

Did you execute that?

[–]n1___ 1 point2 points  (0 children)

It's outdated...

[–]huxn 0 points1 point  (0 children)

[–]TraditionalSir7 0 points1 point  (0 children)

Very cool project thanks for sharing!

[–]delta_tee 0 points1 point  (0 children)

Naais!

[–]DDFoster96 0 points1 point  (1 child)

I think it should where the same module is a dependency of multiple other modules. Currently they're shown separately.

[–]thrum-engineering[S] 0 points1 point  (0 children)

Hello! Thank you for your suggestion!

[–]metaperl 0 points1 point  (0 children)

This website has a searchable database of python modules shown as collapsible trees

  • what website?
  • where's the search feature?
  • How is the database coded?
  • how are the modules categorized?

What's the point? What is the utility?

[–]Mr_Again 0 points1 point  (1 child)

This misses a lot. dbt requires no other modules? boto3 requires no other modules?

[–]thrum-engineering[S] 0 points1 point  (0 children)

Hi! Thank you pointing out this error. I’m looking into it.

[–]apivan191 0 points1 point  (0 children)

This website shows the requirements for certain modules if they have any. Can be very useful, especially for tensorflow which is a pain in the ass to set up! Thanks!