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

Where is the metadata for each module? #109

Closed
JJ opened this issue Jul 28, 2018 · 6 comments
Closed

Where is the metadata for each module? #109

JJ opened this issue Jul 28, 2018 · 6 comments

Comments

@JJ
Copy link

JJ commented Jul 28, 2018

I'd like to obtain that data for the Perl6::Ecosystem module.

@zoffixznet
Copy link

The "api" is somewhat ad-hoc right now, but you can get it through the search page by giving the name of a dist (not module) and then grepping for the module name in the results: e.g. http://modules.perl6.org/search.json?q=WWW

Some code for how buggable bot does it: https://github.com/zoffixznet/perl6-buggable/blob/3340ca42e2a2da3ff2ddbf869ba86d56e8c5a151/lib/Buggable/Plugin/Eco.pm6#L52-L79

@JJ
Copy link
Author

JJ commented Jul 28, 2018 via email

@zoffixznet
Copy link

The site fetches META6.json files and reads it from there. It's done by Dist::Source modules for each different dist source we support: https://github.com/perl6/modules.perl6.org/tree/master/lib/ModulesPerl6/DbBuilder/Dist

With list of metas obtained here: https://github.com/perl6/modules.perl6.org/blob/71d4c7965680353ff2b4c6f6bb3b789e09a5f503/lib/ModulesPerl6/DbBuilder.pm#L128-L232

@JJ
Copy link
Author

JJ commented Jul 28, 2018

Yep, but it's stored somewhere. I think it's an sqlite database...

@zoffixznet
Copy link

@JJ
Copy link
Author

JJ commented Jul 28, 2018

Thanks!

@JJ JJ closed this as completed Jul 28, 2018
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