%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /usr/lib/python3.9/site-packages/tracer/__pycache__/
Upload File :
Create Path :
Current File : //usr/lib/python3.9/site-packages/tracer/__pycache__/query.cpython-39.pyc

a

"e��@s`ddlmZddlmZddlmZddlmZddlm	Z	Gdd�de
�ZGdd	�d	e
�Zd
S)�)�Tracer)�System)�Rules)�Applications)�dump_memoryc@s6eZdZdZefdd�Zdd�Zdd�Zdd	d
�ZdS)�QueryaE
	Provide API for Tracer querying operations.
	They are executed kind of lazily, so running the operation will
	return just an wrapper class with ``get()`` method.

	Example::

		from tracer.query import Query
		q = Query()
		q.affected_applications().get()

	.. note::
		Some querying methods can require root permissions

	cCs|t��ttt�|_dS�N)rZpackage_managerrrr�_tracer)�selfZtracer�r�0/usr/lib/python3.9/site-packages/tracer/query.py�__init__+szQuery.__init__cCs||j_|S)z.List of ``Package`` that only should be traced)r	Zspecified_packages)r
Zpackagesrrr�
from_packages.szQuery.from_packagescCsd|j_|S)z�
		Pretend that specified packages have been updated just now.
		Benefit of this is absolutely no need for openning the package history database
		T)r	�now�r
rrrr3sz	Query.nowNcCst|jjd|i�S)z?
		Return list of applications which use some outdated files
		�user)�Lazyr	Ztrace_affected)r
rrrr�affected_applications;szQuery.affected_applications)N)	�__name__�
__module__�__qualname__�__doc__rr
rrrrrrrrs
rc@seZdZdd�Zdd�ZdS)rcCs||_||_dSr��_method�_kwargs)r
�method�kwargsrrrr
Csz
Lazy.__init__cCs|jfi|j��Srrrrrr�getGszLazy.getN)rrrr
rrrrrrBsrN)
Ztracer.resources.tracerrZtracer.resources.systemrZtracer.resources.rulesrZtracer.resources.applicationsrZtracer.resources.memoryr�objectrrrrrr�<module>s(

Zerion Mini Shell 1.0