OpenQuizz
Une application de gestion des contenus pédagogiques
DirectoryLocator Class Reference
Inheritance diagram for DirectoryLocator:
Collaboration diagram for DirectoryLocator:

Public Member Functions

def __init__ (self, path, **kwargs)
 
def should_include (self, filename, parent)
 
def get_distribution_names (self)
 
- Public Member Functions inherited from Locator
def __init__ (self, scheme='default')
 
def get_errors (self)
 
def clear_errors (self)
 
def clear_cache (self)
 
def get_project (self, name)
 
def score_url (self, url)
 
def prefer_url (self, url1, url2)
 
def split_filename (self, filename, project_name)
 
def convert_url_to_download_info (self, url, project_name)
 
def locate (self, requirement, prereleases=False)
 

Data Fields

 recursive
 
 base_dir
 
- Data Fields inherited from Locator
 opener
 
 matcher
 
 errors
 

Additional Inherited Members

- Static Public Attributes inherited from Locator
 source_extensions
 
 binary_extensions
 
 excluded_extensions
 
 wheel_tags
 
 downloadable_extensions
 
- Properties inherited from Locator
 scheme = property(_get_scheme, _set_scheme)
 

Detailed Description

This class locates distributions in a directory tree.

Constructor & Destructor Documentation

◆ __init__()

def __init__ (   self,
  path,
**  kwargs 
)
Initialise an instance.
:param path: The root of the directory tree to search.
:param kwargs: Passed to the superclass constructor,
       except for:
       * recursive - if True (the default), subdirectories are
         recursed into. If False, only the top-level directory
         is searched,

Member Function Documentation

◆ get_distribution_names()

def get_distribution_names (   self)
Return all the distribution names known to this locator.

Reimplemented from Locator.

◆ should_include()

def should_include (   self,
  filename,
  parent 
)
Should a filename be considered as a candidate for a distribution
archive? As well as the filename, the directory which contains it
is provided, though not used by the current implementation.

Field Documentation

◆ base_dir

base_dir

◆ recursive

recursive

The documentation for this class was generated from the following file: