proxy.core.work.task.local module#

proxy.py#

⚡⚡⚡ Fast, Lightweight, Pluggable, TLS interception capable proxy server focused on Network monitoring, controls & Application development, testing, debugging.

copyright
  1. 2013-present by Abhinav Singh and contributors.

license

BSD, see LICENSE for more details.

class proxy.core.work.task.local.LocalTaskExecutor(*args: Any, **kwargs: Any)[source]#

Bases: proxy.core.work.local.BaseLocalExecutor

We’ll define a local executor which is capable of receiving log lines over a non blocking queue.

_abc_impl = <_abc._abc_data object>#
_loop: Optional[asyncio.AbstractEventLoop]#
_total: int#
_upstream_conn_filenos: Set[int]#
_upstream_conn_pool: Optional['UpstreamConnectionPool']#
cleanup_inactive_timeout: float#
registered_events_by_work_ids: Dict[int, SelectableEvents]#
selector: Optional[selectors.DefaultSelector]#
unfinished: Set['asyncio.Task[bool]']#
wait_timeout: float#
work(*args: Any) None[source]#
works: Dict[int, 'Work[Any]']#
class proxy.core.work.task.local.ThreadedTaskExecutor(**kwargs: Any)[source]#

Bases: threading.Thread

run() None[source]#

Method representing the thread’s activity.

You may override this method in a subclass. The standard run() method invokes the callable object passed to the object’s constructor as the target argument, if any, with sequential and keyword arguments taken from the args and kwargs arguments, respectively.