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

Teach Sphinx to provide a list of modules as open data #31

Open
techtonik opened this issue Apr 10, 2015 · 3 comments
Open

Teach Sphinx to provide a list of modules as open data #31

techtonik opened this issue Apr 10, 2015 · 3 comments

Comments

@techtonik
Copy link
Member

Why?

  1. Solve issue Module information for tracker, viewvc, rss, docs, monitoring and other pydotorg web-services #8
  2. Provide info about all Python versions
  3. Make data available from the web for data mining, and 3rd party services / tools
  4. Provide a stable data channel for future versions

Current solution:

https://stackoverflow.com/questions/6463918/how-can-i-get-a-list-of-all-the-python-standard-library-modules

which assumes that you need to download and parse Sphinx object inventory (https://docs.python.org/2.7/objects.inv), which is a binary file, or download and execute Python for every version and each platform (some modules are not available on some platforms).

Ideally, the Sphinx should give out the open data about stdlib structure, such as :
https://docs.python.org/2.7/_data/1.0/modules.json
https://docs.python.org/2.7/_data/1.0/modules.csv
list all module names, sorted by name

Then you can easily load this data into web app or use it as a table for analysis.
http://www.w3.org/2013/csvw/wiki/Main_Page

@techtonik
Copy link
Member Author

Missed the answer that recommends to parse https://docs.python.org/2/py-modindex.html

@techtonik
Copy link
Member Author

Actually, HTML markup may change in future - pypi/stdlib-list#1

@techtonik
Copy link
Member Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant