Name Description Size Coverage
__init__.py 0 -
django -
purl2url.py Return the download URL for a hosted git repository given a package type or None. 20074 -
route.py Given a URI regex (or some string), this module can route execution to a callable. There are several routing implementations available in Rails, Django, Flask, Paste, etc. However, these all assume that the routed processing is to craft a response to an incoming external HTTP request. Here we are instead doing the opposite: given a URI (and no request yet) we are routing the processing to emit a request externally (HTTP or other protocol) and handling its response. Also we crawl a lot and not only HTTP: git, svn, ftp, rsync and more. This simple library support this kind of arbitrary URI routing. This is inspired by Guido's http://www.artima.com/weblogs/viewpost.jsp?thread=101605 and Django, Flask, Werkzeug and other url dispatch and routing design from web frameworks. https://github.com/douban/brownant has a similar approach, using Werkzeug with the limitation that it does not route based on URI scheme and is limited to HTTP. 7991 -
sqlalchemy -
url2purl.py This module helps build a PackageURL from an arbitrary URL. This uses the a routing mechanism available in the route.py module. In order to make it easy to use, it contains all the conversion functions in this single Python script. 25944 -