__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
import sys
from collections.abc import Callable, Mapping, Sequence
from types import ModuleType
from typing import Any, Protocol, TypeVar
from typing_extensions import TypeAlias
from gevent.hub import Hub
from greenlet import greenlet as greenlet_t
_T = TypeVar("_T")
# FIXME: While it would be nice to import Interface from zope.interface here so the
# mypy plugin will work correctly for the people that use it, it causes all
# sorts of issues to reference a module that is not stubbed in typeshed, so
# for now we punt and just define an alias for Interface and implementer we
# can get rid of later
Interface: TypeAlias = Any
def implementer(interface: Interface, /) -> Callable[[_T], _T]: ...
# this is copied from types-psutil, it would be nice if we could just import this
# but it doesn't seem like we can...
if sys.platform == "linux":
from psutil._pslinux import pmem
elif sys.platform == "darwin":
from psutil._psosx import pmem
elif sys.platform == "win32":
from psutil._pswindows import pmem
else:
class pmem(Any): ...
subscribers: list[Callable[[Any], object]]
class _PeriodicMonitorThread(Protocol):
def add_monitoring_function(self, function: Callable[[Hub], object], period: float | None) -> object: ...
class IPeriodicMonitorThread(Interface):
def add_monitoring_function(function: Callable[[Hub], object], period: float | None) -> object: ...
class IPeriodicMonitorThreadStartedEvent(Interface):
monitor: IPeriodicMonitorThread
@implementer(IPeriodicMonitorThread)
class PeriodicMonitorThreadStartedEvent:
ENTRY_POINT_NAME: str
monitor: _PeriodicMonitorThread
def __init__(self, monitor: _PeriodicMonitorThread) -> None: ...
class IEventLoopBlocked(Interface):
greenlet: greenlet_t
blocking_time: float
info: Sequence[str]
hub: Hub | None
@implementer(IEventLoopBlocked)
class EventLoopBlocked:
greenlet: greenlet_t
blocking_time: float
info: Sequence[str]
hub: Hub | None
def __init__(self, greenlet: greenlet_t, blocking_time: float, info: Sequence[str], *, hub: Hub | None = None) -> None: ...
class IMemoryUsageThresholdExceeded(Interface):
mem_usage: int
max_allowed: int
memory_info: pmem
class _AbstractMemoryEvent:
mem_usage: int
max_allowed: int
memory_info: pmem
def __init__(self, mem_usage: int, max_allowed: int, memory_info: pmem) -> None: ...
@implementer(IMemoryUsageThresholdExceeded)
class MemoryUsageThresholdExceeded(_AbstractMemoryEvent): ...
class IMemoryUsageUnderThreshold(Interface):
mem_usage: int
max_allowed: int
max_memory_usage: int
memory_info: pmem
@implementer(IMemoryUsageUnderThreshold)
class MemoryUsageUnderThreshold(_AbstractMemoryEvent):
max_memory_usage: int
def __init__(self, mem_usage: int, max_allowed: int, memory_info: pmem, max_usage: int) -> None: ...
class IGeventPatchEvent(Interface):
source: object
target: object
@implementer(IGeventPatchEvent)
class GeventPatchEvent:
source: object
target: object
def __init__(self, source: object, target: object) -> None: ...
class IGeventWillPatchEvent(IGeventPatchEvent): ...
class DoNotPatch(BaseException): ...
@implementer(IGeventWillPatchEvent)
class GeventWillPatchEvent(GeventPatchEvent): ...
class IGeventDidPatchEvent(IGeventPatchEvent): ...
@implementer(IGeventWillPatchEvent)
class GeventDidPatchEvent(GeventPatchEvent): ...
class IGeventWillPatchModuleEvent(IGeventWillPatchEvent):
source: ModuleType
target: ModuleType
module_name: str
target_item_names: list[str]
@implementer(IGeventWillPatchModuleEvent)
class GeventWillPatchModuleEvent(GeventWillPatchEvent):
ENTRY_POINT_NAME: str
source: ModuleType
target: ModuleType
module_name: str
target_item_names: list[str]
def __init__(self, module_name: str, source: ModuleType, target: ModuleType, items: list[str]) -> None: ...
class IGeventDidPatchModuleEvent(IGeventDidPatchEvent):
source: ModuleType
target: ModuleType
module_name: str
@implementer(IGeventDidPatchModuleEvent)
class GeventDidPatchModuleEvent(GeventDidPatchEvent):
ENTRY_POINT_NAME: str
source: ModuleType
target: ModuleType
module_name: str
def __init__(self, module_name: str, source: ModuleType, target: ModuleType) -> None: ...
class IGeventWillPatchAllEvent(IGeventWillPatchEvent):
patch_all_arguments: Mapping[str, Any]
patch_all_kwargs: Mapping[str, Any]
def will_patch_module(module_name: str) -> bool: ...
class _PatchAllMixin:
def __init__(self, patch_all_arguments: Mapping[str, Any], patch_all_kwargs: Mapping[str, Any]) -> None: ...
@property
def patch_all_arguments(self) -> dict[str, Any]: ... # safe to mutate, it's a copy
@property
def patch_all_kwargs(self) -> dict[str, Any]: ... # safe to mutate, it's a copy
@implementer(IGeventWillPatchAllEvent)
class GeventWillPatchAllEvent(_PatchAllMixin, GeventWillPatchEvent):
ENTRY_POINT_NAME: str
def will_patch_module(self, module_name: str) -> bool: ...
class IGeventDidPatchBuiltinModulesEvent(IGeventDidPatchEvent):
patch_all_arguments: Mapping[str, Any]
patch_all_kwargs: Mapping[str, Any]
@implementer(IGeventDidPatchBuiltinModulesEvent)
class GeventDidPatchBuiltinModulesEvent(_PatchAllMixin, GeventDidPatchEvent):
ENTRY_POINT_NAME: str
class IGeventDidPatchAllEvent(IGeventDidPatchEvent): ...
@implementer(IGeventDidPatchAllEvent)
class GeventDidPatchAllEvent(_PatchAllMixin, GeventDidPatchEvent):
ENTRY_POINT_NAME: str
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| _ffi | Folder | 0755 |
|
|
| libev | Folder | 0755 |
|
|
| libuv | Folder | 0755 |
|
|
| monkey | Folder | 0755 |
|
|
| resolver | Folder | 0755 |
|
|
| __init__.pyi | File | 1.69 KB | 0644 |
|
| _abstract_linkable.pyi | File | 452 B | 0644 |
|
| _config.pyi | File | 6.16 KB | 0644 |
|
| _fileobjectcommon.pyi | File | 11.49 KB | 0644 |
|
| _greenlet_primitives.pyi | File | 427 B | 0644 |
|
| _hub_local.pyi | File | 469 B | 0644 |
|
| _hub_primitives.pyi | File | 3 KB | 0644 |
|
| _ident.pyi | File | 251 B | 0644 |
|
| _imap.pyi | File | 1000 B | 0644 |
|
| _monitor.pyi | File | 2.03 KB | 0644 |
|
| _threading.pyi | File | 644 B | 0644 |
|
| _types.pyi | File | 6.68 KB | 0644 |
|
| _util.pyi | File | 2.01 KB | 0644 |
|
| _waiter.pyi | File | 1.61 KB | 0644 |
|
| ares.pyi | File | 36 B | 0644 |
|
| backdoor.pyi | File | 1.42 KB | 0644 |
|
| baseserver.pyi | File | 2.45 KB | 0644 |
|
| event.pyi | File | 2.75 KB | 0644 |
|
| events.pyi | File | 5.44 KB | 0644 |
|
| exceptions.pyi | File | 450 B | 0644 |
|
| fileobject.pyi | File | 5.62 KB | 0644 |
|
| greenlet.pyi | File | 3.81 KB | 0644 |
|
| hub.pyi | File | 4.05 KB | 0644 |
|
| local.pyi | File | 343 B | 0644 |
|
| lock.pyi | File | 1.81 KB | 0644 |
|
| os.pyi | File | 1.09 KB | 0644 |
|
| pool.pyi | File | 7.47 KB | 0644 |
|
| py.typed | File | 0 B | 0644 |
|
| pywsgi.pyi | File | 6.51 KB | 0644 |
|
| queue.pyi | File | 3.59 KB | 0644 |
|
| resolver_ares.pyi | File | 35 B | 0644 |
|
| resolver_thread.pyi | File | 37 B | 0644 |
|
| select.pyi | File | 414 B | 0644 |
|
| selectors.pyi | File | 1.07 KB | 0644 |
|
| server.pyi | File | 3.16 KB | 0644 |
|
| signal.pyi | File | 515 B | 0644 |
|
| socket.pyi | File | 1.09 KB | 0644 |
|
| ssl.pyi | File | 1.27 KB | 0644 |
|
| subprocess.pyi | File | 168 B | 0644 |
|
| threadpool.pyi | File | 2.02 KB | 0644 |
|
| time.pyi | File | 59 B | 0644 |
|
| timeout.pyi | File | 1.87 KB | 0644 |
|
| util.pyi | File | 1.87 KB | 0644 |
|
| win32util.pyi | File | 75 B | 0644 |
|