OpenQuizz
Une application de gestion des contenus pédagogiques
setuptools.package_index Namespace Reference

Data Structures

class  ContentChecker
 
class  Credential
 
class  HashChecker
 
class  PackageIndex
 
class  PyPIConfig
 

Functions

def parse_requirement_arg (spec)
 
def parse_bdist_wininst (name)
 
def egg_info_for_url (url)
 
def distros_for_url (url, metadata=None)
 
def distros_for_location (location, basename, metadata=None)
 
def distros_for_filename (filename, metadata=None)
 
def interpret_distro_name (location, basename, metadata, py_version=None, precedence=SOURCE_DIST, platform=None)
 
def unique_values (func)
 
def find_external_links (url, page)
 
def decode_entity (match)
 
def htmldecode (text)
 
def socket_timeout (timeout=15)
 
def open_with_auth (url, opener=urllib.request.urlopen)
 
def fix_sf_url (url)
 
def local_open (url)
 

Variables

 EGG_FRAGMENT
 
 HREF
 
 PYPI_MD5
 
 URL_SCHEME
 
 EXTENSIONS
 
 user_agent
 
 py_major
 
 setuptools
 
 REL
 
 entity_sub
 
 open_with_auth
 

Detailed Description

PyPI and direct package downloading

Function Documentation

◆ decode_entity()

def setuptools.package_index.decode_entity (   match)

◆ distros_for_filename()

def setuptools.package_index.distros_for_filename (   filename,
  metadata = None 
)
Yield possible egg or source distribution objects based on a filename

◆ distros_for_location()

def setuptools.package_index.distros_for_location (   location,
  basename,
  metadata = None 
)
Yield egg or source distribution objects based on basename

◆ distros_for_url()

def setuptools.package_index.distros_for_url (   url,
  metadata = None 
)
Yield egg or source distribution objects that might be found at a URL

◆ egg_info_for_url()

def setuptools.package_index.egg_info_for_url (   url)

◆ find_external_links()

def setuptools.package_index.find_external_links (   url,
  page 
)
Find rel="homepage" and rel="download" links in `page`, yielding URLs

◆ fix_sf_url()

def setuptools.package_index.fix_sf_url (   url)

◆ htmldecode()

def setuptools.package_index.htmldecode (   text)
Decode HTML entities in the given text.

>>> htmldecode(
...     'https://../package_name-0.1.2.tar.gz'
...     '?tokena=A&tokenb=B">package_name-0.1.2.tar.gz')
'https://../package_name-0.1.2.tar.gz?tokena=A&tokenb=B">package_name-0.1.2.tar.gz'

◆ interpret_distro_name()

def setuptools.package_index.interpret_distro_name (   location,
  basename,
  metadata,
  py_version = None,
  precedence = SOURCE_DIST,
  platform = None 
)
Generate alternative interpretations of a source distro name

Note: if `location` is a filesystem filename, you should call
``pkg_resources.normalize_path()`` on it before passing it to this
routine!

◆ local_open()

def setuptools.package_index.local_open (   url)
Read a local path, with special support for directories

◆ open_with_auth()

def setuptools.package_index.open_with_auth (   url,
  opener = urllib.request.urlopen 
)
Open a urllib2 request, handling HTTP authentication

◆ parse_bdist_wininst()

def setuptools.package_index.parse_bdist_wininst (   name)
Return (base,pyversion) or (None,None) for possible .exe name

◆ parse_requirement_arg()

def setuptools.package_index.parse_requirement_arg (   spec)

◆ socket_timeout()

def setuptools.package_index.socket_timeout (   timeout = 15)

◆ unique_values()

def setuptools.package_index.unique_values (   func)
Wrap a function returning an iterable such that the resulting iterable
only ever yields unique items.

Variable Documentation

◆ EGG_FRAGMENT

EGG_FRAGMENT

◆ entity_sub

entity_sub

◆ EXTENSIONS

EXTENSIONS

◆ HREF

HREF

◆ open_with_auth

open_with_auth

◆ py_major

py_major

◆ PYPI_MD5

PYPI_MD5

◆ REL

REL

◆ setuptools

setuptools

◆ URL_SCHEME

URL_SCHEME

◆ user_agent

user_agent