Skip to content

Instantly share code, notes, and snippets.

View lmazuel's full-sized avatar

Laurent Mazuel lmazuel

View GitHub Profile
@dahlia
dahlia / find-doc.py
Last active January 24, 2017 22:39
Example code to fetch Sphinx intersphinx inventory
#!/usr/bin/env python3
from __future__ import print_function
import pprint
import sys
import urllib.parse
import urllib.request
from sphinx.ext.intersphinx import read_inventory_v1, read_inventory_v2
import asyncio
loop = asyncio.get_event_loop()
async def hello():
await asyncio.sleep(3)
print('Hello!')
if __name__ == '__main__':
loop.run_until_complete(hello())