pypicloud.util module

Utilities

class pypicloud.util.BetterScrapingLocator(*args, **kw)[source]

Bases: distlib.locators.SimpleScrapingLocator

Layer on top of SimpleScrapingLocator that allows preferring wheels

locate(requirement, prereleases=False, wheel=True)[source]
prefer_wheel = True[source]
score_url(url)[source]
pypicloud.util.getdefaults(settings, *args)[source]

Attempt multiple gets from a dict, returning a default value if none of the keys are found.

pypicloud.util.normalize_name(name)[source]

Normalize a python package name

pypicloud.util.parse_filename(filename, name=None)[source]

Parse a name and version out of a filename