scaladex icon indicating copy to clipboard operation
scaladex copied to clipboard

libraries without dependencies

Open MasseGuillaume opened this issue 9 years ago • 5 comments

@olafurpg would like to have a query to find libs without deps so he can run dotty migration test

MasseGuillaume avatar Aug 05 '16 22:08 MasseGuillaume

Being able to query things like

dependencies<1 AND
stars>100

would be really cool (and useful in my case). Either via the web browser interface or some API.

olafurpg avatar Aug 05 '16 22:08 olafurpg

we need a graph to do those queries.

MasseGuillaume avatar Aug 09 '16 20:08 MasseGuillaume

I think a relational database is also fit for the task, since I'm not concerned with recursive or transitive dependencies. However, I would also be happy with a csv file dump in form of something like

// table: dependencies
project1, project2
...

// table: stars
project1, N
...

I'm sure other folks could do cool stuff with the raw data.

olafurpg avatar Aug 09 '16 22:08 olafurpg

The data fits in memory and take ~1 minute to load. You can start a repl session with this in memory: https://github.com/scalacenter/scaladex/blob/master/data/src/main/scala/ch.epfl.scala.index.data/elastic/SeedElasticSearch.scala#L68

you will get a List[(Project, Set[Release])]

MasseGuillaume avatar Aug 11 '16 04:08 MasseGuillaume

Amazing, I'll take a look when I have time.

olafurpg avatar Aug 11 '16 12:08 olafurpg