Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
cloudlinux
/
venv
/
lib
/
python3.11
/
site-packages
/
lvestats
/
core
/
__pycache__
/
File Content:
plugin.cpython-311.pyc
� �(�f � �B � d Z G d� de� � Z G d� de� � ZdS )�shamanc � � e Zd Zd� ZdS )�LveStatsPluginTerminatedc �0 � t j | g|�R i |�� d S )N)� Exception�__init__)�self�args�kwargss �/builddir/build/BUILDROOT/lve-stats-4.2.8-1.el7.x86_64/opt/cloudlinux/venv/lib/python3.11/site-packages/lvestats/core/plugin.pyr z!LveStatsPluginTerminated.__init__ s) � ���4�1�$�1�1�1�&�1�1�1�1�1� N)�__name__� __module__�__qualname__r � r r r r s# � � � � � �2� 2� 2� 2� 2r r c �, � e Zd ZdZdZdZd� Zd� Zd� ZdS )�LveStatsPlugina� Skeleton of the plugin. User plugins are not required to depend on the code of the project and have this class as a parent, but they should have methods set_config(config) and execute(lve_data) Additional attributes you may define in the plugin: * order : int : order of plugin execution. * period : int : time between executions of execute() method. Default period is set in config. * timeout : float or int : time to wait (in seconds) for plugin execution, until it is marked as halted and killed. Default missing or None for system plugins. Additional object (instance level) attributes set by system: * now: current moment of time (see time.time()) Updated by the system each time execute() is invoked. Additional class level attributes set by system * __is_user_plugin__ : True or False, determines is the current plugin loaded from user folder � Nc � � dS )z$ :type config: dict Nr )r �configs r � set_configzLveStatsPlugin.set_config/ s � � �r c � � || _ dS )z= :type engine: sqlalchemy.engine.base.Engine N)�engine)r r s r � set_db_enginezLveStatsPlugin.set_db_engine5 s � � ����r c � � dS )z� Should be overriden in the implementation. :param lve_data: lve_data is shared between instances of plugins, so that modify it carefully. :type lve_data: dict Nr )r �lve_datas r �executezLveStatsPlugin.execute; s � � �r ) r r r �__doc__�nowr r r r r r r r r sW � � � � � �� �6 �C� �F� � � �� � � � � � � r r N)� __author__r r �objectr r r r �<module>r! sj �� � �2� 2� 2� 2� 2�y� 2� 2� 2� 2 � 2 � 2 � 2 � 2 �V� 2 � 2 � 2 � 2 � 2 r
Submit
FILE
FOLDER
Name
Size
Permission
Action
__init__.cpython-311.pyc
260 bytes
0644
plugin.cpython-311.pyc
2795 bytes
0644
plugin_context.cpython-311.pyc
2034 bytes
0644
plugin_loader.cpython-311.pyc
4004 bytes
0644
N4ST4R_ID | Naxtarrr