o |¿nhÕã@svdZddlmZddlmZmZmZddlmZddl m Z ddl m Z e e ƒZGdd „d eƒZGd d „d ee ƒZd S) zCement core output module.é)Úabstractmethod)ÚAnyÚDictÚUnioné)Ú Interface)ÚHandler)Úminimal_loggerc @sPeZdZdZGdd„dejƒZedeee fde de de edffd d „ƒZ dS) ÚOutputInterfacea This class defines the Output Interface. Handlers that implement this interface must provide the methods and attributes defined below. In general, most implementations should sub-class from the provided :class:`OutputHandler` base class as a starting point. c@seZdZdZdZdS)zOutputInterface.MetazHandler meta-data.ÚoutputN)Ú__name__Ú __module__Ú __qualname__Ú__doc__Ú interface©rrúJ/usr/local/bin/dhwp/env/lib/python3.10/site-packages/cement/core/output.pyÚMetasrÚdataÚargsÚkwargsÚreturnNcOsdS)aÊ Render the ``data`` dict into output in some fashion. This function must accept both ``*args`` and ``**kwargs`` to allow an application to mix output handlers that support different features. Args: data (dict): The dictionary whose data we need to render into output. Returns: str, None: The rendered output string, or ``None`` if no output is rendered Nr)ÚselfrrrrrrÚrenderszOutputInterface.render) r r rrrrrrÚstrrrrrrrrr s 0r c@s"eZdZdZGdd„dejƒZdS)Ú OutputHandlerzOutput handler implementation.c@s eZdZdS)zOutputHandler.MetaN)r r rrrrrr3srN)r r rrrrrrrrr/srN)rÚabcrÚtypingrrrÚcore.interfacerÚ core.handlerrÚ utils.miscr r ÚLOGr rrrrrÚs    #