Package setuplib :: Module setuplib :: Class MyDistributionData

Class MyDistributionData

source code


Instance Methods
 
__init__(self, distribution, task) source code
 
print_table(self, outlist, index, task)
Print table.
source code
 
print_list(self, outlist, index, task)
Print list.
source code
Method Details

enumerate(self, task)

source code 
Calls *pkg_resources* and caches the results.
The cached data is queried later for details required
by the extended list and display commands.

The caching happens here only, which comprises the flat
data cache of all entry points and the additional 
categorized cache of selective sets for later selection
filters.

The centralized preparation of the data for later filtering
eases the data handling significantly by moderate use of
additional resources. 

Args:
    self:
        The current instance of this class.

Returns:
    Results in the member variable::

        self.ep_cache

    The content is a *dict* containing the iterated
    entry points with the *<ep>.name* as key.

Raises:
    pass-through

Decorators:

print_groups(self, outlist, index, task)

source code 

Print '--list-groups' output based on pre-filtered data. Thus the complete set of filters processed in enumerate are applicable.

Decorators:

print_groups_list(self, outlist, index, task)

source code 

Print '--list-groups' output based on pre-filtered data. Thus the complete set of filters are applicable.

Decorators:

print(self)

source code 
Prints the requested data.

The printout is again processed in two levels.
- print:

    Prepares the record data for the appropriate format.

    Calls the inteface::

        self.print_<format>(outlist, index, task)
        
        outlist := The list of resulting keys within the *self.ep_cache*.
        
        index := The sprocessed/sorted list of *(<key>, #index)* mapping 
                 of utlist to *self.ep_cache*.
        
        task := The parameters of the current task.

    For example::

        self.print_table(outlist, index, task)

- print_<format>:
    Prints out the records of the selcted output format.

Uses object data from *self*.

Decorators:

Class Variable Details

combinelogic

True if all match True if any match True if not all matches True if none matches True if one only matches

Value:
{'and': 0, 'or': 1, 'nand': 2, 'nor': 3, 'xor': 4,}