EntryPointAlike

digraph inheritance5ebc795b10 { bgcolor=transparent; rankdir=UD; ratio=compress; size="8.0, 12.0"; "EntryPointAlike" [URL="#taurus.core.util.plugin.EntryPointAlike",color=dodgerblue1,fillcolor=white,fontcolor=black,fontname="Vera Sans, DejaVu Sans, Liberation Sans, Arial, Helvetica, sans",fontsize=10,height=0.5,shape=box,style=rounded,target="_top",tooltip="A dummy EntryPoint substitute to be used with :func:`selectEntryPoints`"]; }
class EntryPointAlike(obj, name=None)[source]

A dummy EntryPoint substitute to be used with selectEntryPoints() for wrapping arbitrary objects and imitate the name and load() API of a pkg_resources.EntryPoint instance.

Pass an object and optionally a name to the constructor to get the wrapped EntryPointAlike instance. The repr of the object is used as the name if name arg is not provided.

Import from taurus.core.util.plugin as:

from taurus.core.util.plugin import EntryPointAlike
load()[source]

Returns the wrapped object