diff --git a/stubs/audioop.pyi b/stubs/audioop.pyi new file mode 100644 --- /dev/null +++ b/stubs/audioop.pyi @@ -0,0 +1,1 @@ + diff --git a/stubs/cyclone/__init__.pyi b/stubs/cyclone/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/cyclone/__init__.pyi @@ -0,0 +1,5 @@ +# Stubs for cyclone (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +version: str diff --git a/stubs/cyclone/escape.pyi b/stubs/cyclone/escape.pyi new file mode 100644 --- /dev/null +++ b/stubs/cyclone/escape.pyi @@ -0,0 +1,1 @@ + diff --git a/stubs/cyclone/httpclient.pyi b/stubs/cyclone/httpclient.pyi new file mode 100644 --- /dev/null +++ b/stubs/cyclone/httpclient.pyi @@ -0,0 +1,61 @@ +# Stubs for cyclone.httpclient (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from twisted.internet.protocol import Protocol +from twisted.internet.defer import Deferred +from typing import Any, Callable, Dict, List, Optional + +ListType = list +DictType = dict +agent: Any +proxy_agent: Any + +class StringProducer: + body: Any = ... + length: Any = ... + def __init__(self, body: Any) -> None: ... + def startProducing(self, consumer: Any): ... + def pauseProducing(self) -> None: ... + def stopProducing(self) -> None: ... + +class Receiver(Protocol): + finished: Any = ... + data: Any = ... + def __init__(self, finished: Any) -> None: ... + def dataReceived(self, bytes: Any) -> None: ... + def connectionLost(self, reason: Any) -> None: ... + +class HTTPClient: + url: Any = ... + followRedirect: Any = ... + maxRedirects: Any = ... + headers: Any = ... + body: Any = ... + proxyConfig: Any = ... + timeout: Any = ... + agent: Any = ... + method: Any = ... + response: Any = ... + body_producer: Any = ... + def __init__(self, url: Any, *args: Any, **kwargs: Any) -> None: ... + def fetch(self) -> None: ... + +class FetchResponse: + code: int + phrase: bytes + headers: Dict[bytes, List[bytes]] + length: int + body: bytes + +def fetch( + url: bytes, + method: bytes=b'GET', + followRedirect: bool = False, + maxRedirects: int = 3, + postdata: Optional[bytes]=None, + headers: Optional[Dict[bytes, List[bytes]]]=None) -> Deferred[FetchResponse]: ... + +class JsonRPC: + def __init__(self, url: Any, *args: Any, **kwargs: Any) -> None: ... + def __getattr__(self, attr: Any): ... diff --git a/stubs/cyclone/web.pyi b/stubs/cyclone/web.pyi new file mode 100644 --- /dev/null +++ b/stubs/cyclone/web.pyi @@ -0,0 +1,172 @@ +# Stubs for cyclone.web (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from twisted.internet import protocol +from typing import Any, Optional + +class RequestHandler: + SUPPORTED_METHODS: Any = ... + serialize_lists: bool = ... + no_keep_alive: bool = ... + xsrf_cookie_name: str = ... + application: Any = ... + request: Any = ... + path_args: Any = ... + path_kwargs: Any = ... + ui: Any = ... + def __init__(self, application: Any, request: Any, **kwargs: Any) -> None: ... + + @property + def settings(self): ... + def default(self, *args: Any, **kwargs: Any) -> None: ... + def prepare(self) -> None: ... + def on_finish(self) -> None: ... + def on_connection_close(self, *args: Any, **kwargs: Any) -> None: ... + def clear(self) -> None: ... + def set_default_headers(self) -> None: ... + def set_status(self, status_code: Any, reason: Optional[Any] = ...) -> None: ... + def get_status(self): ... + def set_header(self, name: Any, value: Any) -> None: ... + def add_header(self, name: Any, value: Any) -> None: ... + def clear_header(self, name: Any) -> None: ... + def get_argument(self, name: Any, default: Any = ..., strip: bool = ...): ... + def get_arguments(self, name: Any, strip: bool = ...): ... + def decode_argument(self, value: Any, name: Optional[Any] = ...): ... + @property + def cookies(self): ... + def get_cookie(self, name: Any, default: Optional[Any] = ...): ... + def set_cookie(self, name: Any, value: Any, domain: Optional[Any] = ..., expires: Optional[Any] = ..., path: str = ..., expires_days: Optional[Any] = ..., **kwargs: Any) -> None: ... + def clear_cookie(self, name: Any, path: str = ..., domain: Optional[Any] = ...) -> None: ... + def clear_all_cookies(self) -> None: ... + def set_secure_cookie(self, name: Any, value: Any, expires_days: int = ..., **kwargs: Any) -> None: ... + def create_signed_value(self, name: Any, value: Any): ... + def get_secure_cookie(self, name: Any, value: Optional[Any] = ..., max_age_days: int = ...): ... + def redirect(self, url: Any, permanent: bool = ..., status: Optional[Any] = ...) -> None: ... + def write(self, chunk: Any) -> None: ... + def render(self, template_name: Any, **kwargs: Any): ... + def render_string(self, template_name: Any, **kwargs: Any): ... + def get_template_namespace(self): ... + def create_template_loader(self, template_path: Any): ... + def flush(self, include_footers: bool = ...) -> None: ... + def notifyFinish(self): ... + def finish(self, chunk: Optional[Any] = ...) -> None: ... + def send_error(self, status_code: int = ..., **kwargs: Any) -> None: ... + def write_error(self, status_code: Any, **kwargs: Any) -> None: ... + @property + def locale(self): ... + def get_user_locale(self) -> None: ... + def get_browser_locale(self, default: str = ...): ... + @property + def current_user(self): ... + def get_current_user(self) -> None: ... + def get_login_url(self): ... + def get_template_path(self): ... + @property + def xsrf_token(self): ... + def check_xsrf_cookie(self) -> None: ... + def xsrf_form_html(self): ... + def static_url(self, path: Any, include_host: Optional[Any] = ...): ... + def async_callback(self, callback: Any, *args: Any, **kwargs: Any): ... + def require_setting(self, name: Any, feature: str = ...) -> None: ... + def reverse_url(self, name: Any, *args: Any, **kwargs: Any): ... + def compute_etag(self): ... + +def asynchronous(method: Any): ... +def removeslash(method: Any): ... +def addslash(method: Any): ... + +class Application(protocol.ServerFactory): + protocol: Any = ... + transforms: Any = ... + handlers: Any = ... + named_handlers: Any = ... + error_handler: Any = ... + default_host: Any = ... + settings: Any = ... + ui_modules: Any = ... + ui_methods: Any = ... + def __init__(self, handlers: Optional[Any] = ..., default_host: str = ..., transforms: Optional[Any] = ..., error_handler: Optional[Any] = ..., **settings: Any) -> None: ... + def add_handlers(self, host_pattern: Any, host_handlers: Any) -> None: ... + def add_transform(self, transform_class: Any) -> None: ... + def __call__(self, request: Any): ... + def reverse_url(self, name: Any, *args: Any, **kwargs: Any): ... + def log_request(self, handler: Any) -> None: ... + +class HTTPError(Exception): + status_code: Any = ... + log_message: Any = ... + args: Any = ... + reason: Any = ... + def __init__(self, status_code: Any, log_message: Optional[Any] = ..., *args: Any, **kwargs: Any) -> None: ... + +class HTTPAuthenticationRequired(HTTPError): + status_code: int = ... + log_message: Any = ... + auth_type: Any = ... + kwargs: Any = ... + def __init__(self, log_message: Optional[Any] = ..., auth_type: str = ..., realm: str = ..., **kwargs: Any) -> None: ... + +class ErrorHandler(RequestHandler): + def initialize(self, status_code: Any) -> None: ... + def prepare(self) -> None: ... + def check_xsrf_cookie(self) -> None: ... + +class RedirectHandler(RequestHandler): + def initialize(self, url: Any, permanent: bool = ...) -> None: ... + def get(self) -> None: ... + +class StaticFileHandler(RequestHandler): + CACHE_MAX_AGE: Any = ... + root: Any = ... + default_filename: Any = ... + def initialize(self, path: Any, default_filename: Optional[Any] = ...) -> None: ... + @classmethod + def reset(cls) -> None: ... + def head(self, path: Any) -> None: ... + def get(self, path: Any, include_body: bool = ...) -> None: ... + def set_extra_headers(self, path: Any) -> None: ... + def get_cache_time(self, path: Any, modified: Any, mime_type: Any): ... + @classmethod + def make_static_url(cls, settings: Any, path: Any): ... + @classmethod + def get_version(cls, settings: Any, path: Any): ... + def parse_url_path(self, url_path: Any): ... + +class FallbackHandler(RequestHandler): + fallback: Any = ... + def initialize(self, fallback: Any) -> None: ... + def prepare(self) -> None: ... + +class OutputTransform: + def __init__(self, request: Any) -> None: ... + def transform_first_chunk(self, status_code: Any, headers: Any, chunk: Any, finishing: Any): ... + def transform_chunk(self, chunk: Any, finishing: Any): ... + +class GZipContentEncoding(OutputTransform): + CONTENT_TYPES: Any = ... + MIN_LENGTH: int = ... + def __init__(self, request: Any) -> None: ... + def transform_first_chunk(self, status_code: Any, headers: Any, chunk: Any, finishing: Any): ... + def transform_chunk(self, chunk: Any, finishing: Any): ... + +class ChunkedTransferEncoding(OutputTransform): + def __init__(self, request: Any) -> None: ... + def transform_first_chunk(self, status_code: Any, headers: Any, chunk: Any, finishing: Any): ... + def transform_chunk(self, block: Any, finishing: Any): ... + +def authenticated(method: Any): ... + +class URLReverseError(Exception): ... + +class URLSpec: + regex: Any = ... + handler_class: Any = ... + kwargs: Any = ... + name: Any = ... + def __init__(self, pattern: Any, handler_class: Any, kwargs: Optional[Any] = ..., name: Optional[Any] = ...) -> None: ... + def reverse(self, *args: Any, **kwargs: Any): ... +url = URLSpec + +def create_signed_value(secret: Any, name: Any, value: Any): ... +def decode_signed_value(secret: Any, name: Any, value: Any, max_age_days: int = ...): ... diff --git a/stubs/cyclone/websocket.pyi b/stubs/cyclone/websocket.pyi new file mode 100644 --- /dev/null +++ b/stubs/cyclone/websocket.pyi @@ -0,0 +1,54 @@ +# Stubs for cyclone.websocket (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import cyclone.escape +import cyclone.web +from typing import Any + +class _NotEnoughFrame(Exception): ... + +class WebSocketHandler(cyclone.web.RequestHandler): + application: Any = ... + request: Any = ... + transport: Any = ... + ws_protocol: Any = ... + def __init__(self, application: Any, request: Any, **kwargs: Any) -> None: ... + def headersReceived(self) -> None: ... + def connectionMade(self, *args: Any, **kwargs: Any) -> None: ... + def connectionLost(self, reason: Any) -> None: ... + def messageReceived(self, message: Any) -> None: ... + def sendMessage(self, message: Any) -> None: ... + def forbidConnection(self, message: Any): ... + +class WebSocketProtocol: + handler: Any = ... + request: Any = ... + transport: Any = ... + def __init__(self, handler: Any) -> None: ... + def acceptConnection(self) -> None: ... + def rawDataReceived(self, data: Any) -> None: ... + def sendMessage(self, message: Any) -> None: ... + +class WebSocketProtocol17(WebSocketProtocol): + def __init__(self, handler: Any) -> None: ... + def acceptConnection(self) -> None: ... + def rawDataReceived(self, data: Any) -> None: ... + def sendMessage(self, message: Any, code: int = ...) -> None: ... + +class WebSocketProtocol76(WebSocketProtocol): + def __init__(self, handler: Any) -> None: ... + def acceptConnection(self) -> None: ... + def rawDataReceived(self, data: Any) -> None: ... + def close(self) -> None: ... + def sendMessage(self, message: Any) -> None: ... + +class FrameDecodeError(Exception): ... + +class Hixie76FrameDecoder: + CLOSING_FRAME: Any = ... + WAIT_FOR_FRAME_TYPE: int = ... + INSIDE_FRAME: int = ... + WAIT_FOR_CLOSE: int = ... + def __init__(self) -> None: ... + def feed(self, data: Any): ... diff --git a/stubs/cycloneerr/__init__.pyi b/stubs/cycloneerr/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/cycloneerr/__init__.pyi @@ -0,0 +1,5 @@ +# Stubs for cycloneerr (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from .cycloneerr import PrettyErrorHandler diff --git a/stubs/cycloneerr/cycloneerr.pyi b/stubs/cycloneerr/cycloneerr.pyi new file mode 100644 --- /dev/null +++ b/stubs/cycloneerr/cycloneerr.pyi @@ -0,0 +1,8 @@ +# Stubs for cycloneerr.cycloneerr (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +class PrettyErrorHandler: + def get_error_html(self, status_code: Any, **kwargs: Any): ... diff --git a/stubs/cycloneerr/setup.pyi b/stubs/cycloneerr/setup.pyi new file mode 100644 --- /dev/null +++ b/stubs/cycloneerr/setup.pyi @@ -0,0 +1,4 @@ +# Stubs for cycloneerr.setup (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + diff --git a/stubs/cycloneerr/tasks.pyi b/stubs/cycloneerr/tasks.pyi new file mode 100644 --- /dev/null +++ b/stubs/cycloneerr/tasks.pyi @@ -0,0 +1,7 @@ +# Stubs for cycloneerr.tasks (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +def release(ctx: Any) -> None: ... diff --git a/stubs/gi/__init__.pyi b/stubs/gi/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/gi/__init__.pyi @@ -0,0 +1,1 @@ + diff --git a/stubs/gi/repository.pyi b/stubs/gi/repository.pyi new file mode 100644 --- /dev/null +++ b/stubs/gi/repository.pyi @@ -0,0 +1,1 @@ + diff --git a/stubs/greplin/__init__.pyi b/stubs/greplin/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/__init__.pyi @@ -0,0 +1,1 @@ + diff --git a/stubs/greplin/scales/__init__.pyi b/stubs/greplin/scales/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/__init__.pyi @@ -0,0 +1,149 @@ +# Stubs for greplin.scales (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import json +from collections import UserDict +from typing import Any, Optional + +ID_KEY: str +NEXT_ID: Any + +def statsId(obj: Any): ... +def init(obj: Any, context: Optional[Any] = ...): ... +def initChild(obj: Any, name: Any): ... +def initChildOfType(obj: Any, name: Any, subContext: Optional[Any] = ...): ... +def reset() -> None: ... +def getStats(): ... +def setCollapsed(path: Any): ... + +class StatContainer(UserDict): + def __init__(self) -> None: ... + def setCollapsed(self, isCollapsed: Any) -> None: ... + def isCollapsed(self): ... + +class _Stats: + stats: Any = ... + parentMap: Any = ... + containerMap: Any = ... + subId: int = ... + @classmethod + def reset(cls) -> None: ... + @classmethod + def init(cls, obj: Any, context: Any): ... + @classmethod + def initChild(cls, obj: Any, name: Any, subContext: Any, parent: Optional[Any] = ...): ... + @classmethod + def getContainerForObject(cls, instanceId: Any): ... + @classmethod + def getStat(cls, obj: Any, name: Any): ... + @classmethod + def getAggregator(cls, instanceId: Any, name: Any): ... + @classmethod + def setCollapsed(cls, path: Any) -> None: ... + +class Stat: + def __init__(self, name: Any, value: str = ..., logger: Optional[Any] = ...) -> None: ... + def getName(self): ... + def __get__(self, instance: Any, _: Any): ... + def __set__(self, instance: Any, value: Any) -> None: ... + def updateItem(self, instance: Any, subKey: Any, value: Any) -> None: ... + def logger(self, logger: Any): ... + +class IntStat(Stat): + def __init__(self, name: Any, value: int = ...) -> None: ... + +class DoubleStat(Stat): + def __init__(self, name: Any, value: float = ...) -> None: ... + +class IntDict(UserDict): + parent: Any = ... + instance: Any = ... + autoDelete: Any = ... + def __init__(self, parent: Any, instance: Any, autoDelete: bool = ...) -> None: ... + def __getitem__(self, item: Any): ... + def __setitem__(self, key: Any, value: Any) -> None: ... + +class IntDictStat(Stat): + autoDelete: Any = ... + def __init__(self, name: Any, autoDelete: bool = ...) -> None: ... + +class StringDict(UserDict): + parent: Any = ... + instance: Any = ... + def __init__(self, parent: Any, instance: Any) -> None: ... + def __getitem__(self, item: Any): ... + def __setitem__(self, key: Any, value: Any) -> None: ... + +class StringDictStat(Stat): ... + +class AggregationStat(Stat): + def __init__(self, name: Any, value: Any) -> None: ... + def update(self, instance: Any, oldValue: Any, newValue: Any) -> None: ... + +class ChildAggregationStat(Stat): + def __init__(self, name: Any, value: Any) -> None: ... + def update(self, instance: Any, oldValue: Any, newValue: Any, subKey: Any) -> None: ... + +class SumAggregationStat(AggregationStat): + def __init__(self, name: Any) -> None: ... + def update(self, instance: Any, oldValue: Any, newValue: Any) -> None: ... + +class HistogramAggregationStat(AggregationStat): + autoDelete: Any = ... + def __init__(self, name: Any, autoDelete: bool = ...) -> None: ... + def update(self, instance: Any, oldValue: Any, newValue: Any) -> None: ... + +class IntDictSumAggregationStat(ChildAggregationStat): + def __init__(self, name: Any) -> None: ... + def update(self, instance: Any, oldValue: Any, newValue: Any, subKey: Any) -> None: ... + +class PmfStatDict(UserDict): + class TimeManager: + container: Any = ... + msg99: Any = ... + start: Any = ... + def __init__(self, container: Any) -> None: ... + def __enter__(self): ... + def __exit__(self, *_: Any) -> None: ... + def warn99(self, logger: Any, msg: Any, *args: Any) -> None: ... + def discard(self) -> None: ... + def __call__(self, func: Any): ... + percentile99: Any = ... + def __init__(self, sample: Optional[Any] = ...) -> None: ... + def __getitem__(self, item: Any): ... + def addValue(self, value: Any) -> None: ... + def time(self): ... + +class PmfStat(Stat): + def __init__(self, name: Any, _: Optional[Any] = ...) -> None: ... + def __set__(self, instance: Any, value: Any) -> None: ... + +class NamedPmfDict(UserDict): + def __init__(self) -> None: ... + def __getitem__(self, item: Any): ... + def __setitem__(self, key: Any, value: Any) -> None: ... + +class NamedPmfDictStat(Stat): ... + +class StateTimeStatDict(UserDict): + parent: Any = ... + instance: Any = ... + def __init__(self, parent: Any, instance: Any) -> None: ... + def __getitem__(self, item: Any): ... + def incr(self, item: Any, value: Any) -> None: ... + def acquire(self) -> None: ... + +class StateTimeStat(Stat): + state: int = ... + time: Any = ... + def __init__(self, name: Any, _: Optional[Any] = ...) -> None: ... + def __set__(self, instance: Any, value: Any) -> None: ... + +def filterCollapsedItems(data: Any): ... + +class StatContainerEncoder(json.JSONEncoder): + def default(self, obj: Any): ... + +def dumpStatsTo(filename: Any) -> None: ... +def collection(path: Any, *stats: Any): ... diff --git a/stubs/greplin/scales/aggregation.pyi b/stubs/greplin/scales/aggregation.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/aggregation.pyi @@ -0,0 +1,91 @@ +# Stubs for greplin.scales.aggregation (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +class DefaultFormat: + def getCount(self, data: Any): ... + def getValue(self, data: Any): ... + +class DirectFormat: + def getCount(self, _: Any): ... + def getValue(self, data: Any): ... + +class TimerFormat: + def getCount(self, data: Any): ... + def getValue(self, data: Any): ... + +class TimerMeanFormat: + def getCount(self, data: Any): ... + def getValue(self, data: Any): ... + +class CounterFormat: + def getCount(self, data: Any): ... + def getValue(self, data: Any): ... + +class MeterFormat: + def getCount(self, data: Any): ... + def getValue(self, data: Any): ... + +class GaugeFormat: + def getValue(self, data: Any): ... + +class DataFormats: + DEFAULT: Any = ... + DIRECT: Any = ... + TIMER: Any = ... + TIMER_MEAN: Any = ... + COUNTER: Any = ... + METER: Any = ... + GAUGE: Any = ... + +class Aggregator: + name: Any = ... + def __init__(self, name: Optional[Any] = ..., dataFormat: Any = ...) -> None: ... + def clone(self): ... + +class Average(Aggregator): + DEFAULT_NAME: str = ... + def addValue(self, _: Any, value: Any) -> None: ... + def result(self): ... + +class Sum(Aggregator): + DEFAULT_NAME: str = ... + total: int = ... + def addValue(self, _: Any, value: Any) -> None: ... + def result(self): ... + +class InverseMap(Aggregator): + DEFAULT_NAME: str = ... + def __init__(self, *args: Any, **kw: Any) -> None: ... + def addValue(self, source: Any, data: Any) -> None: ... + def result(self): ... + +class Sorted(Aggregator): + DEFAULT_NAME: str = ... + def __init__(self, cmp: Optional[Any] = ..., key: Optional[Any] = ..., reverse: bool = ..., *args: Any, **kw: Any) -> None: ... + def addValue(self, source: Any, data: Any) -> None: ... + def result(self): ... + def clone(self): ... + +class Highlight(Aggregator): + value: Any = ... + source: Any = ... + fn: Any = ... + def __init__(self, name: Any, fn: Any, dataFormat: Any = ...) -> None: ... + def addValue(self, source: Any, value: Any) -> None: ... + def result(self): ... + def clone(self): ... + +class Aggregation: + def __init__(self, aggregators: Any) -> None: ... + def addSource(self, source: Any, data: Any) -> None: ... + def addJsonDirectory(self, directory: Any, test: Optional[Any] = ...) -> None: ... + def result(self, root: Optional[Any] = ...): ... + +class FileInclusionTest: + ignoreByName: Any = ... + maxAge: Any = ... + def __init__(self, ignoreByName: Optional[Any] = ..., maxAge: Optional[Any] = ...) -> None: ... + def __call__(self, _: Any, fullPath: Any): ... diff --git a/stubs/greplin/scales/aggregation_test.pyi b/stubs/greplin/scales/aggregation_test.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/aggregation_test.pyi @@ -0,0 +1,9 @@ +# Stubs for greplin.scales.aggregation_test (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest + +class AggregationTest(unittest.TestCase): + def testNoData(self) -> None: ... + def testRegex(self) -> None: ... diff --git a/stubs/greplin/scales/bottlehandler.pyi b/stubs/greplin/scales/bottlehandler.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/bottlehandler.pyi @@ -0,0 +1,8 @@ +# Stubs for greplin.scales.bottlehandler (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +def bottlestats(server_name: Any, path: str = ...): ... +def register_stats_handler(app: Any, server_name: Any, prefix: str = ...) -> None: ... diff --git a/stubs/greplin/scales/clock.pyi b/stubs/greplin/scales/clock.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/clock.pyi @@ -0,0 +1,8 @@ +# Stubs for greplin.scales.clock (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +class BasicClock: + def time(self): ... + +def getClock(): ... diff --git a/stubs/greplin/scales/cyclonehandler.pyi b/stubs/greplin/scales/cyclonehandler.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/cyclonehandler.pyi @@ -0,0 +1,8 @@ +# Stubs for greplin.scales.cyclonehandler (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import cyclone.web +from greplin.scales import tornadolike + +class StatsHandler(tornadolike.Handler, cyclone.web.RequestHandler): ... diff --git a/stubs/greplin/scales/formats.pyi b/stubs/greplin/scales/formats.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/formats.pyi @@ -0,0 +1,13 @@ +# Stubs for greplin.scales.formats (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +OPERATORS: Any +OPERATOR: Any + +def runQuery(statDict: Any, query: Any): ... +def htmlHeader(output: Any, path: Any, serverName: Any, query: Optional[Any] = ...) -> None: ... +def htmlFormat(output: Any, pathParts: Any = ..., statDict: Optional[Any] = ..., query: Optional[Any] = ...) -> None: ... +def jsonFormat(output: Any, statDict: Optional[Any] = ..., query: Optional[Any] = ..., pretty: bool = ...) -> None: ... diff --git a/stubs/greplin/scales/formats_test.pyi b/stubs/greplin/scales/formats_test.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/formats_test.pyi @@ -0,0 +1,24 @@ +# Stubs for greplin.scales.formats_test (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest +from typing import Any + +class Root: + def __init__(self) -> None: ... + def getChild(self, name: Any, collapsed: Any): ... + +class Child: + countStat: Any = ... + def __init__(self, name: Any, collapsed: Any) -> None: ... + +class StatsTest(unittest.TestCase): + def setUp(self) -> None: ... + def testJsonCollapse(self) -> None: ... + +class UnicodeFormatTest(unittest.TestCase): + UNICODE_VALUE: Any = ... + def testHtmlFormat(self) -> None: ... + def testJsonFormat(self) -> None: ... + def testJsonFormatBinaryGarbage(self) -> None: ... diff --git a/stubs/greplin/scales/graphite.pyi b/stubs/greplin/scales/graphite.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/graphite.pyi @@ -0,0 +1,25 @@ +# Stubs for greplin.scales.graphite (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import threading +from typing import Any, Optional + +log: Any + +class GraphitePusher: + rules: Any = ... + pruneRules: Any = ... + prefix: Any = ... + graphite: Any = ... + def __init__(self, host: Any, port: Any, prefix: Optional[Any] = ...) -> None: ... + def push(self, statsDict: Optional[Any] = ..., prefix: Optional[Any] = ..., path: Optional[Any] = ...) -> None: ... + def allow(self, rule: Any) -> None: ... + def forbid(self, rule: Any) -> None: ... + def prune(self, rule: Any) -> None: ... + +class GraphitePeriodicPusher(threading.Thread, GraphitePusher): + daemon: bool = ... + period: Any = ... + def __init__(self, host: Any, port: Any, prefix: Optional[Any] = ..., period: int = ...) -> None: ... + def run(self) -> None: ... diff --git a/stubs/greplin/scales/loop.pyi b/stubs/greplin/scales/loop.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/loop.pyi @@ -0,0 +1,7 @@ +# Stubs for greplin.scales.loop (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +def installStatsLoop(statsFile: Any, statsDelay: Any) -> None: ... diff --git a/stubs/greplin/scales/meter.pyi b/stubs/greplin/scales/meter.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/meter.pyi @@ -0,0 +1,28 @@ +# Stubs for greplin.scales.meter (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from collections import UserDict +from greplin.scales import Stat +from typing import Any, Optional + +TICKERS: Any +TICKER_THREAD: Any + +class MeterStatDict(UserDict): + def __init__(self) -> None: ... + def __getitem__(self, item: Any): ... + def tick(self) -> None: ... + def mark(self, value: int = ...) -> None: ... + +class MeterStat(Stat): + def __init__(self, name: Any, _: Optional[Any] = ...) -> None: ... + def __set__(self, instance: Any, value: Any) -> None: ... + +class MeterDict(UserDict): + parent: Any = ... + instance: Any = ... + def __init__(self, parent: Any, instance: Any) -> None: ... + def __getitem__(self, item: Any): ... + +class MeterDictStat(Stat): ... diff --git a/stubs/greplin/scales/samplestats.pyi b/stubs/greplin/scales/samplestats.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/samplestats.pyi @@ -0,0 +1,47 @@ +# Stubs for greplin.scales.samplestats (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from .clock import getClock +from typing import Any + +class Sampler: + min: Any = ... + max: Any = ... + def __init__(self) -> None: ... + def __len__(self): ... + def samples(self): ... + def update(self, value: Any) -> None: ... + @property + def mean(self): ... + @property + def stddev(self): ... + def percentiles(self, percentiles: Any): ... + +class ExponentiallyDecayingReservoir(Sampler): + DEFAULT_SIZE: int = ... + DEFAULT_ALPHA: float = ... + DEFAULT_RESCALE_THRESHOLD: int = ... + values: Any = ... + alpha: Any = ... + size: Any = ... + clock: Any = ... + rescale_threshold: Any = ... + count: int = ... + startTime: Any = ... + nextScaleTime: Any = ... + def __init__(self, size: Any = ..., alpha: Any = ..., rescale_threshold: Any = ..., clock: Any = ...) -> None: ... + def __len__(self): ... + def clear(self) -> None: ... + def update(self, value: Any) -> None: ... + def samples(self): ... + +class UniformSample(Sampler): + sample: Any = ... + count: int = ... + def __init__(self) -> None: ... + def clear(self) -> None: ... + def __len__(self): ... + def update(self, value: Any) -> None: ... + def __iter__(self): ... + def samples(self): ... diff --git a/stubs/greplin/scales/samplestats_test.pyi b/stubs/greplin/scales/samplestats_test.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/samplestats_test.pyi @@ -0,0 +1,12 @@ +# Stubs for greplin.scales.samplestats_test (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest + +class UniformSampleTest(unittest.TestCase): + def testGaussian(self) -> None: ... + +class ExponentiallyDecayingReservoirTest(unittest.TestCase): + def testGaussian(self) -> None: ... + def testWithRescale(self) -> None: ... diff --git a/stubs/greplin/scales/scales_test.pyi b/stubs/greplin/scales/scales_test.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/scales_test.pyi @@ -0,0 +1,55 @@ +# Stubs for greplin.scales.scales_test (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest +from typing import Any + +class Root1: + stateStat: Any = ... + errorsStat: Any = ... + activeUrlsStat: Any = ... + def __init__(self) -> None: ... + def getChild(self, cls: Any, *args: Any): ... + +class Root2: + def __init__(self) -> None: ... + def getChild(self, cls: Any): ... + +class AggregatingRoot: + countStat: Any = ... + stateStat: Any = ... + errorsStat: Any = ... + def __init__(self) -> None: ... + def getChild(self, cls: Any, *args: Any): ... + +class AggregatingRootSubclass(AggregatingRoot): ... + +class TypedChild: + countStat: Any = ... + def __init__(self) -> None: ... + +class Child: + countStat: Any = ... + stateStat: Any = ... + errorsStat: Any = ... + def __init__(self, name: str = ...) -> None: ... + +class DynamicRoot: + value: int = ... + dynamicStat: Any = ... + def __init__(self) -> None: ... + +class StatsTest(unittest.TestCase): + def setUp(self) -> None: ... + def testChildTypeStats(self) -> None: ... + def testChildStats(self) -> None: ... + def testMultilevelChild(self) -> None: ... + def testStatSum(self) -> None: ... + def testStatSumWithSubclassRoot(self) -> None: ... + def helpTestStatSum(self, a: Any) -> None: ... + def testStatHistogram(self) -> None: ... + def testIntDictStats(self) -> None: ... + def testIntDictStatsAggregation(self) -> None: ... + def testDynamic(self) -> None: ... + def testCollection(self) -> None: ... diff --git a/stubs/greplin/scales/timer.pyi b/stubs/greplin/scales/timer.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/timer.pyi @@ -0,0 +1,7 @@ +# Stubs for greplin.scales.timer (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +def RepeatTimer(interval: Any, function: Any, iterations: int = ..., *args: Any, **kwargs: Any): ... diff --git a/stubs/greplin/scales/tornadolike.pyi b/stubs/greplin/scales/tornadolike.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/tornadolike.pyi @@ -0,0 +1,10 @@ +# Stubs for greplin.scales.tornadolike (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +class Handler: + serverName: Any = ... + def initialize(self, serverName: Any) -> None: ... + def get(self, path: Any) -> None: ... diff --git a/stubs/greplin/scales/twistedweb.pyi b/stubs/greplin/scales/twistedweb.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/twistedweb.pyi @@ -0,0 +1,12 @@ +# Stubs for greplin.scales.twistedweb (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from twisted.web import resource +from typing import Any + +class StatsResource(resource.Resource): + isLeaf: bool = ... + serverName: Any = ... + def __init__(self, serverName: Any) -> None: ... + def render_GET(self, request: Any): ... diff --git a/stubs/greplin/scales/util.pyi b/stubs/greplin/scales/util.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/util.pyi @@ -0,0 +1,50 @@ +# Stubs for greplin.scales.util (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import threading +from typing import Any, Optional + +log: Any + +def lookup(source: Any, keys: Any, fallback: Optional[Any] = ...): ... + +class GraphiteReporter(threading.Thread): + sock: Any = ... + queue: Any = ... + maxQueueSize: Any = ... + daemon: bool = ... + def __init__(self, host: Any, port: Any, maxQueueSize: int = ...) -> None: ... + def run(self) -> None: ... + def connect(self) -> None: ... + def disconnect(self) -> None: ... + def log(self, name: Any, value: Any, valueType: Optional[Any] = ..., stamp: Optional[Any] = ...) -> None: ... + def enqueue(self, name: Any, value: Any, valueType: Optional[Any] = ..., stamp: Optional[Any] = ...) -> None: ... + def flush(self) -> None: ... + def shutdown(self) -> None: ... + +class AtomicValue: + lock: Any = ... + value: Any = ... + def __init__(self, val: Any) -> None: ... + def update(self, function: Any): ... + def getAndSet(self, newVal: Any): ... + def addAndGet(self, val: Any): ... + +class EWMA: + M1_ALPHA: Any = ... + M5_ALPHA: Any = ... + M15_ALPHA: Any = ... + TICK_RATE: int = ... + @classmethod + def oneMinute(cls): ... + @classmethod + def fiveMinute(cls): ... + @classmethod + def fifteenMinute(cls): ... + alpha: Any = ... + interval: Any = ... + rate: int = ... + def __init__(self, alpha: Any, interval: Any) -> None: ... + def update(self, val: Any) -> None: ... + def tick(self) -> None: ... diff --git a/stubs/greplin/scales/util_test.pyi b/stubs/greplin/scales/util_test.pyi new file mode 100644 --- /dev/null +++ b/stubs/greplin/scales/util_test.pyi @@ -0,0 +1,10 @@ +# Stubs for greplin.scales.util_test (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest + +class AtomicValueTest(unittest.TestCase): + def testUpdate(self) -> None: ... + def testGetAndSet(self) -> None: ... + def testAddAndGet(self) -> None: ... diff --git a/stubs/hotshot/__init__.pyi b/stubs/hotshot/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/hotshot/__init__.pyi @@ -0,0 +1,1 @@ + diff --git a/stubs/hotshot/stats.pyi b/stubs/hotshot/stats.pyi new file mode 100644 --- /dev/null +++ b/stubs/hotshot/stats.pyi @@ -0,0 +1,1 @@ + diff --git a/stubs/incremental/__init__.pyi b/stubs/incremental/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/incremental/__init__.pyi @@ -0,0 +1,29 @@ +# Stubs for incremental (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from ._version import __version__ as __version__ +from typing import Any, Optional + +class _inf: + def __cmp__(self, other: Any): ... + +class IncomparableVersions(TypeError): ... + +class Version: + package: Any = ... + major: Any = ... + minor: Any = ... + micro: Any = ... + release_candidate: Any = ... + dev: Any = ... + def __init__(self, package: Any, major: Any, minor: Any, micro: Any, release_candidate: Optional[Any] = ..., prerelease: Optional[Any] = ..., dev: Optional[Any] = ...) -> None: ... + @property + def prerelease(self): ... + def public(self): ... + base: Any = ... + short: Any = ... + local: Any = ... + def __cmp__(self, other: Any): ... + +def getVersionString(version: Any): ... diff --git a/stubs/incremental/_version.pyi b/stubs/incremental/_version.pyi new file mode 100644 --- /dev/null +++ b/stubs/incremental/_version.pyi @@ -0,0 +1,6 @@ +# Stubs for incremental._version (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +# Names in __all__ with no definition: +__version__ = None diff --git a/stubs/ipdb/__init__.pyi b/stubs/ipdb/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/ipdb/__init__.pyi @@ -0,0 +1,6 @@ +# Stubs for ipdb (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + + +def set_trace(): ... diff --git a/stubs/louie/__init__.pyi b/stubs/louie/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/louie/__init__.pyi @@ -0,0 +1,18 @@ +# Stubs for louie (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from louie.dispatcher import connect as connect, disconnect as disconnect, get_all_receivers as get_all_receivers, reset as reset, send as send, send_exact as send_exact, send_minimal as send_minimal, send_robust as send_robust +from louie.plugin import Plugin as Plugin, QtWidgetPlugin as QtWidgetPlugin, TwistedDispatchPlugin as TwistedDispatchPlugin, install_plugin as install_plugin, remove_plugin as remove_plugin +from louie.sender import Anonymous as Anonymous, Any as Any +from louie.signal import All as All, Signal as Signal + +# Names in __all__ with no definition: +# dispatcher +# error +# plugin +# robustapply +# saferef +# sender +# signal +# version diff --git a/stubs/louie/dispatcher.pyi b/stubs/louie/dispatcher.pyi new file mode 100644 --- /dev/null +++ b/stubs/louie/dispatcher.pyi @@ -0,0 +1,31 @@ +# Stubs for louie.dispatcher (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from louie.sender import Any + +def itervalues(d: Any): ... +def iteritems(d: Any): ... + +connects: int +disconnects: int +sends: int + +def print_stats() -> None: ... + +WEAKREF_TYPES: Any +connections: Any +senders: Any +senders_back: Any +plugins: Any + +def reset() -> None: ... +def connect(receiver: Any, signal: Any = ..., sender: Any = ..., weak: bool = ...) -> None: ... +def disconnect(receiver: Any, signal: Any = ..., sender: Any = ..., weak: bool = ...) -> None: ... +def get_receivers(sender: Any = ..., signal: Any = ...): ... +def live_receivers(receivers: Any) -> None: ... +def get_all_receivers(sender: Any = ..., signal: Any = ...) -> None: ... +def send(signal: Any = ..., sender: Any = ..., *arguments: Any, **named: Any): ... +def send_minimal(signal: Any = ..., sender: Any = ..., *arguments: Any, **named: Any): ... +def send_exact(signal: Any = ..., sender: Any = ..., *arguments: Any, **named: Any): ... +def send_robust(signal: Any = ..., sender: Any = ..., *arguments: Any, **named: Any): ... diff --git a/stubs/louie/error.pyi b/stubs/louie/error.pyi new file mode 100644 --- /dev/null +++ b/stubs/louie/error.pyi @@ -0,0 +1,9 @@ +# Stubs for louie.error (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +class LouieError(Exception): ... +class DispatcherError(LouieError): ... +class DispatcherKeyError(KeyError, DispatcherError): ... +class DispatcherTypeError(TypeError, DispatcherError): ... +class PluginTypeError(TypeError, LouieError): ... diff --git a/stubs/louie/plugin.pyi b/stubs/louie/plugin.pyi new file mode 100644 --- /dev/null +++ b/stubs/louie/plugin.pyi @@ -0,0 +1,22 @@ +# Stubs for louie.plugin (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +def install_plugin(plugin: Any) -> None: ... +def remove_plugin(plugin: Any) -> None: ... + +class Plugin: + def is_live(self, receiver: Any): ... + def wrap_receiver(self, receiver: Any): ... + +class QtWidgetPlugin(Plugin): + is_live: Any = ... + qt: Any = ... + def __init__(self) -> None: ... + def is_live(self, receiver: Any): ... + +class TwistedDispatchPlugin(Plugin): + def __init__(self) -> None: ... + def wrap_receiver(self, receiver: Any): ... diff --git a/stubs/louie/robustapply.pyi b/stubs/louie/robustapply.pyi new file mode 100644 --- /dev/null +++ b/stubs/louie/robustapply.pyi @@ -0,0 +1,11 @@ +# Stubs for louie.robustapply (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +IM_FUNC: str +FUNC_CODE: str + +def function(receiver: Any): ... +def robust_apply(receiver: Any, signature: Any, *arguments: Any, **named: Any): ... diff --git a/stubs/louie/saferef.pyi b/stubs/louie/saferef.pyi new file mode 100644 --- /dev/null +++ b/stubs/louie/saferef.pyi @@ -0,0 +1,22 @@ +# Stubs for louie.saferef (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def safe_ref(target: Any, on_delete: Optional[Any] = ...): ... + +class BoundMethodWeakref: + def __new__(cls, target: Any, on_delete: Optional[Any] = ..., *arguments: Any, **named: Any): ... + deletion_methods: Any = ... + key: Any = ... + weak_self: Any = ... + weak_func: Any = ... + self_name: Any = ... + func_name: Any = ... + def __init__(self, target: Any, on_delete: Optional[Any] = ...) -> None: ... + def calculate_key(cls, target: Any): ... + calculate_key: Any = ... + def __nonzero__(self): ... + def __cmp__(self, other: Any): ... + def __call__(self): ... diff --git a/stubs/louie/sender.pyi b/stubs/louie/sender.pyi new file mode 100644 --- /dev/null +++ b/stubs/louie/sender.pyi @@ -0,0 +1,13 @@ +# Stubs for louie.sender (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +class _SENDER(type): ... + +class Any: + __metaclass__: Any = ... + +class Anonymous: + __metaclass__: Any = ... diff --git a/stubs/louie/signal.pyi b/stubs/louie/signal.pyi new file mode 100644 --- /dev/null +++ b/stubs/louie/signal.pyi @@ -0,0 +1,12 @@ +# Stubs for louie.signal (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +class _SIGNAL(type): ... + +class Signal: + __metaclass__: Any = ... + +class All(Signal): ... diff --git a/stubs/louie/test/__init__.pyi b/stubs/louie/test/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/louie/test/__init__.pyi @@ -0,0 +1,4 @@ +# Stubs for louie.test (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + diff --git a/stubs/louie/test/conftest.pyi b/stubs/louie/test/conftest.pyi new file mode 100644 --- /dev/null +++ b/stubs/louie/test/conftest.pyi @@ -0,0 +1,4 @@ +# Stubs for louie.test.conftest (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + diff --git a/stubs/louie/test/fixture.pyi b/stubs/louie/test/fixture.pyi new file mode 100644 --- /dev/null +++ b/stubs/louie/test/fixture.pyi @@ -0,0 +1,4 @@ +# Stubs for louie.test.fixture (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + diff --git a/stubs/louie/test/test_dispatcher.pyi b/stubs/louie/test/test_dispatcher.pyi new file mode 100644 --- /dev/null +++ b/stubs/louie/test/test_dispatcher.pyi @@ -0,0 +1,26 @@ +# Stubs for louie.test.test_dispatcher (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest +from typing import Any + +def x(a: Any): ... + +class Dummy: ... + +class Callable: + def __call__(self, a: Any): ... + def a(self, a: Any): ... + +class TestDispatcher(unittest.TestCase): + def setUp(self) -> None: ... + def test_Exact(self) -> None: ... + def test_AnonymousSend(self) -> None: ... + def test_AnyRegistration(self) -> None: ... + def test_AllRegistration(self) -> None: ... + def test_receiver_disconnects_itself(self): ... + def test_GarbageCollected(self) -> None: ... + def test_GarbageCollectedObj(self): ... + def test_MultipleRegistration(self) -> None: ... + def test_robust(self) -> None: ... diff --git a/stubs/louie/test/test_plugin.pyi b/stubs/louie/test/test_plugin.pyi new file mode 100644 --- /dev/null +++ b/stubs/louie/test/test_plugin.pyi @@ -0,0 +1,25 @@ +# Stubs for louie.test.test_plugin (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import louie +from typing import Any + +class ReceiverBase: + args: Any = ... + live: bool = ... + def __init__(self) -> None: ... + def __call__(self, arg: Any) -> None: ... + +class Receiver1(ReceiverBase): ... +class Receiver2(ReceiverBase): ... + +class Plugin1(louie.Plugin): + def is_live(self, receiver: Any): ... + +class Plugin2(louie.Plugin): + def is_live(self, receiver: Any): ... + +def test_only_one_instance() -> None: ... +def test_is_live() -> None: ... +def test_qt_plugin() -> None: ... diff --git a/stubs/louie/test/test_robustapply.pyi b/stubs/louie/test/test_robustapply.pyi new file mode 100644 --- /dev/null +++ b/stubs/louie/test/test_robustapply.pyi @@ -0,0 +1,16 @@ +# Stubs for louie.test.test_robustapply (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest +from typing import Any + +def no_argument() -> None: ... +def one_argument(blah: Any) -> None: ... +def two_arguments(blah: Any, other: Any) -> None: ... + +class TestRobustApply(unittest.TestCase): + def test_01(self) -> None: ... + def test_02(self) -> None: ... + def test_03(self) -> None: ... + def test_04(self) -> None: ... diff --git a/stubs/louie/test/test_saferef.pyi b/stubs/louie/test/test_saferef.pyi new file mode 100644 --- /dev/null +++ b/stubs/louie/test/test_saferef.pyi @@ -0,0 +1,23 @@ +# Stubs for louie.test.test_saferef (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest +from typing import Any + +class _Sample1: + def x(self) -> None: ... + +class _Sample3: + def __call__(self, obj: Any) -> None: ... + +class TestSaferef(unittest.TestCase): + closure_count: int = ... + ts: Any = ... + ss: Any = ... + def setUp(self) -> None: ... + def tearDown(self) -> None: ... + def test_In(self) -> None: ... + def test_Valid(self) -> None: ... + def test_ShortCircuit(self) -> None: ... + def test_Representation(self) -> None: ... diff --git a/stubs/louie/version.pyi b/stubs/louie/version.pyi new file mode 100644 --- /dev/null +++ b/stubs/louie/version.pyi @@ -0,0 +1,7 @@ +# Stubs for louie.version (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +NAME: str +DESCRIPTION: str +VERSION: str diff --git a/stubs/rdfdb/__init__.pyi b/stubs/rdfdb/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/__init__.pyi @@ -0,0 +1,4 @@ +# Stubs for rdfdb (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + diff --git a/stubs/rdfdb/autodepgraphapi.pyi b/stubs/rdfdb/autodepgraphapi.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/autodepgraphapi.pyi @@ -0,0 +1,31 @@ +# Stubs for rdfdb.autodepgraphapi (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Callable, Optional, Set + +log: Any + +class AutoDepGraphApi: + currentFuncs: Any = ... + def __init__(self) -> None: ... + def addHandler(self, func: Any) -> None: ... + def runDepsOnNewPatch(self, p: Any) -> None: ... + def value(self, subject: Optional[Any] = ..., predicate: Any = ..., object: Optional[Any] = ..., default: Optional[Any] = ..., any: bool = ...): ... + def objects(self, subject: Optional[Any] = ..., predicate: Optional[Any] = ...): ... + def label(self, uri: Any): ... + def subjects(self, predicate: Optional[Any] = ..., object: Optional[Any] = ...): ... + def predicate_objects(self, subject: Any): ... + def items(self, listUri: Any) -> None: ... + def contains(self, triple: Any): ... + def contextsForStatement(self, triple: Any): ... +HandlerSet = Set[Callable[[], None]] + +class _GraphWatchers: + def __init__(self) -> None: ... + def addSubjPredWatcher(self, func: Any, s: Any, p: Any) -> None: ... + def addPredObjWatcher(self, func: Any, p: Any, o: Any) -> None: ... + def addTripleWatcher(self, func: Any, triple: Any) -> None: ... + def addSubjectWatcher(self, func: Any, s: Any) -> None: ... + def whoCares(self, patch: Any): ... + def dependencies(self) -> None: ... diff --git a/stubs/rdfdb/currentstategraphapi.pyi b/stubs/rdfdb/currentstategraphapi.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/currentstategraphapi.pyi @@ -0,0 +1,20 @@ +# Stubs for rdfdb.currentstategraphapi (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +log: Any + +class ReadOnlyConjunctiveGraph: + graph: Any = ... + def __init__(self, graph: Any) -> None: ... + def __getattr__(self, attr: Any): ... + def __len__(self): ... + def contextsForStatement(self, stmt: Any) -> None: ... + +class CurrentStateGraphApi: + def currentState(self, context: Optional[Any] = ..., tripleFilter: Any = ...): ... + def sequentialUri(self, prefix: Any): ... + +def contextsForStatementNoWildcards(g: Any, triple: Any): ... diff --git a/stubs/rdfdb/currentstategraphapi_test.pyi b/stubs/rdfdb/currentstategraphapi_test.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/currentstategraphapi_test.pyi @@ -0,0 +1,8 @@ +# Stubs for rdfdb.currentstategraphapi_test (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest + +class TestSequentialUri(unittest.TestCase): + def test_returnsSequentialUris(self) -> None: ... diff --git a/stubs/rdfdb/file_vs_uri.pyi b/stubs/rdfdb/file_vs_uri.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/file_vs_uri.pyi @@ -0,0 +1,9 @@ +# Stubs for rdfdb.file_vs_uri (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +def uriFromFile(dirUriMap: Any, filename: Any): ... +def fileForUri(dirUriMap: Any, ctx: Any): ... +def correctToTopdirPrefix(dirUriMap: Any, inFile: Any): ... diff --git a/stubs/rdfdb/grapheditapi.pyi b/stubs/rdfdb/grapheditapi.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/grapheditapi.pyi @@ -0,0 +1,18 @@ +# Stubs for rdfdb.grapheditapi (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest +from typing import Any + +log: Any + +class GraphEditApi: + def getObjectPatch(self, context: Any, subject: Any, predicate: Any, newObject: Any): ... + def patchObject(self, context: Any, subject: Any, predicate: Any, newObject: Any) -> None: ... + def patchSubgraph(self, context: Any, newGraph: Any): ... + def patchMapping(self, context: Any, subject: Any, predicate: Any, nodeClass: Any, keyPred: Any, valuePred: Any, newKey: Any, newValue: Any) -> None: ... + def removeMappingNode(self, context: Any, node: Any) -> None: ... + +class TestPatchSubgraph(unittest.TestCase): + def testCollapsesIdenticalQuads(self) -> None: ... diff --git a/stubs/rdfdb/graphfile.pyi b/stubs/rdfdb/graphfile.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/graphfile.pyi @@ -0,0 +1,27 @@ +# Stubs for rdfdb.graphfile (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +log: Any +iolog: Any + +def patchN3SerializerToUseLessWhitespace(cutColumn: int = ...): ... + +class GraphFile: + lastWriteTimestamp: int = ... + globalPrefixes: Any = ... + ctxPrefixes: Any = ... + readPrefixes: Any = ... + flushDelay: int = ... + writeCall: Any = ... + notifier: Any = ... + def __init__(self, notifier: Any, path: Any, uri: Any, patch: Any, getSubgraph: Any, globalPrefixes: Any, ctxPrefixes: Any) -> None: ... + def addWatch(self) -> None: ... + def notify(self, notifier: Any, filepath: Any, mask: Any) -> None: ... + def fileGone(self) -> None: ... + def reread(self) -> None: ... + graphToWrite: Any = ... + def dirty(self, graph: Any) -> None: ... + def flush(self) -> None: ... diff --git a/stubs/rdfdb/graphfile_test.pyi b/stubs/rdfdb/graphfile_test.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/graphfile_test.pyi @@ -0,0 +1,8 @@ +# Stubs for rdfdb.graphfile_test (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest + +class TestGraphFileOutput(unittest.TestCase): + def testMaintainsN3PrefixesFromInput(self): ... diff --git a/stubs/rdfdb/localsyncedgraph.pyi b/stubs/rdfdb/localsyncedgraph.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/localsyncedgraph.pyi @@ -0,0 +1,12 @@ +# Stubs for rdfdb.localsyncedgraph (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from rdfdb.autodepgraphapi import AutoDepGraphApi +from rdfdb.currentstategraphapi import CurrentStateGraphApi +from rdfdb.grapheditapi import GraphEditApi +from typing import Any, Optional + +class LocalSyncedGraph(CurrentStateGraphApi, AutoDepGraphApi, GraphEditApi): + def __init__(self, files: Optional[Any] = ...) -> None: ... + def patch(self, p: Any) -> None: ... diff --git a/stubs/rdfdb/mock_syncedgraph.pyi b/stubs/rdfdb/mock_syncedgraph.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/mock_syncedgraph.pyi @@ -0,0 +1,16 @@ +# Stubs for rdfdb.mock_syncedgraph (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +class MockSyncedGraph: + def __init__(self, n3Content: Any) -> None: ... + def addHandler(self, func: Any) -> None: ... + def value(self, subject: Optional[Any] = ..., predicate: Any = ..., object: Optional[Any] = ..., default: Optional[Any] = ..., any: bool = ...): ... + def objects(self, subject: Optional[Any] = ..., predicate: Optional[Any] = ...): ... + def label(self, uri: Any): ... + def subjects(self, predicate: Optional[Any] = ..., object: Optional[Any] = ...): ... + def predicate_objects(self, subject: Any): ... + def items(self, listUri: Any) -> None: ... + def contains(self, triple: Any): ... diff --git a/stubs/rdfdb/patch.pyi b/stubs/rdfdb/patch.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/patch.pyi @@ -0,0 +1,48 @@ +# Stubs for rdfdb.patch (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest +from typing import Any, Optional + +XSD: Any +ALLSTMTS: Any + +def quadsWithContextUris(quads: Any) -> None: ... + +class Patch: + senderUpdateUri: Any = ... + def __init__(self, jsonRepr: Optional[Any] = ..., addQuads: Optional[Any] = ..., delQuads: Optional[Any] = ..., addGraph: Optional[Any] = ..., delGraph: Optional[Any] = ...) -> None: ... + def shortSummary(self): ... + @classmethod + def fromDiff(cls, oldGraph: Any, newGraph: Any): ... + def __bool__(self): ... + @property + def addQuads(self): ... + @property + def delQuads(self): ... + @property + def addGraph(self): ... + @property + def delGraph(self): ... + @property + def jsonRepr(self): ... + def makeJsonRepr(self, extraAttrs: Any = ...): ... + def simplify(self): ... + def concat(self, more: Any): ... + def getContext(self): ... + def isNoop(self): ... + +stmt1: Any + +class TestPatchFromDiff(unittest.TestCase): + def testEmpty(self) -> None: ... + def testNonEmpty(self) -> None: ... + def testNoticesAdds(self) -> None: ... + def testNoticesDels(self) -> None: ... + def testQuadSequenceOkInsteadOfGraph(self) -> None: ... + +class TestPatchGetContext(unittest.TestCase): + def testEmptyPatchCantGiveContext(self) -> None: ... + def testSimplePatchReturnsContext(self) -> None: ... + def testMultiContextPatchFailsToReturnContext(self) -> None: ... diff --git a/stubs/rdfdb/patchreceiver.pyi b/stubs/rdfdb/patchreceiver.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/patchreceiver.pyi @@ -0,0 +1,15 @@ +# Stubs for rdfdb.patchreceiver (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +log: Any + +class PatchReceiver: + rdfdbRoot: Any = ... + updateResource: Any = ... + def __init__(self, rdfdbRoot: Any, host: Any, label: Any, onPatch: Any) -> None: ... + +def makePatchEndpointPutMethod(cb: Any): ... +def makePatchEndpoint(cb: Any): ... diff --git a/stubs/rdfdb/patchsender.pyi b/stubs/rdfdb/patchsender.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/patchsender.pyi @@ -0,0 +1,16 @@ +# Stubs for rdfdb.patchsender (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +log: Any + +class PatchSender: + target: Any = ... + myUpdateResource: Any = ... + def __init__(self, target: Any, myUpdateResource: Any) -> None: ... + def sendPatch(self, p: Any): ... + def cancelAll(self) -> None: ... + +def sendPatch(putUri: Any, patch: Any, **kw: Any): ... diff --git a/stubs/rdfdb/rdflibpatch.pyi b/stubs/rdfdb/rdflibpatch.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/rdflibpatch.pyi @@ -0,0 +1,53 @@ +# Stubs for rdfdb.rdflibpatch (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest +from typing import Any + +def patchQuads(graph: Any, deleteQuads: Any, addQuads: Any, perfect: bool = ...) -> None: ... +def fixContextToUri(spoc: Any): ... +def inGraph(spoc: Any, graph: Any): ... +def graphFromQuads(q: Any): ... +def graphFromNQuad(text: Any): ... +def serializeQuad(g: Any): ... +def inContext(graph: Any, newContext: Any): ... +def contextsForStatement(graph: Any, triple: Any): ... + +A: Any +B: Any + +class TestInContext(unittest.TestCase): + def testResultHasQuads(self) -> None: ... + +class TestContextsForStatement(unittest.TestCase): + def testNotFound(self) -> None: ... + def testOneContext(self) -> None: ... + def testTwoContexts(self) -> None: ... + +class TestInGraph(unittest.TestCase): + def testSimpleMatch(self) -> None: ... + def testDontMatchDifferentStatement(self) -> None: ... + def testDontMatchStatementInAnotherContext(self) -> None: ... + +class TestGraphFromQuads(unittest.TestCase): + nqOut: str = ... + def testSerializes(self) -> None: ... + def testNquadParserSerializes(self) -> None: ... + +C: Any +CTX1: Any +CTX2: Any +stmt1: Any +stmt2: Any + +class TestPatchQuads(unittest.TestCase): + def testAddsToNewContext(self) -> None: ... + def testDeletes(self) -> None: ... + def testDeleteRunsBeforeAdd(self) -> None: ... + def testPerfectAddRejectsExistingStmt(self) -> None: ... + def testPerfectAddAllowsExistingStmtInNewContext(self) -> None: ... + def testPerfectDeleteRejectsAbsentStmt(self) -> None: ... + def testPerfectDeleteRejectsStmtFromOtherGraph(self) -> None: ... + def testPerfectDeleteAllowsRemovalOfStmtInMultipleContexts(self) -> None: ... + def testRedundantStmtOkForAddOrDelete(self) -> None: ... diff --git a/stubs/rdfdb/rdflibpatch_literal.pyi b/stubs/rdfdb/rdflibpatch_literal.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/rdflibpatch_literal.pyi @@ -0,0 +1,10 @@ +# Stubs for rdfdb.rdflibpatch_literal (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest + +def patch() -> None: ... + +class TestDoubleOutput(unittest.TestCase): + def testNoDanglingPoint(self) -> None: ... diff --git a/stubs/rdfdb/service.pyi b/stubs/rdfdb/service.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/service.pyi @@ -0,0 +1,84 @@ +# Stubs for rdfdb.service (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import cyclone.websocket +from typing import Any, Optional, Set + +log: Any + +class WebsocketDisconnect(ValueError): ... + +def sendGraphToClient(graph: Any, client: Any) -> None: ... + +class Client: + label: Any = ... + updateUri: Any = ... + def __init__(self, updateUri: bytes, label: Any) -> Any: ... + def sendPatch(self, p: Any): ... + +class WsClient: + updateUri: Any = ... + sendMessage: Any = ... + def __init__(self, connectionId: Any, sendMessage: Any) -> None: ... + def sendPatch(self, p: Any): ... + +class WatchedFiles: + dirUriMap: Any = ... + addlPrefixes: Any = ... + graphFiles: Any = ... + notifier: Any = ... + def __init__(self, dirUriMap: Any, patch: Any, getSubgraph: Any, addlPrefixes: Any) -> None: ... + initialLoad: bool = ... + def findAndLoadFiles(self) -> None: ... + def dirChange(self, watch: Any, path: Any, mask: Any) -> None: ... + def watchFile(self, inFile: Any) -> None: ... + def aboutToPatch(self, ctx: Any) -> None: ... + def dirtyFiles(self, ctxs: Any) -> None: ... + +class Db: + clients: Any = ... + graph: Any = ... + watchedFiles: Any = ... + def __init__(self, dirUriMap: Any, addlPrefixes: Any) -> None: ... + def patch(self, p: Any, dueToFileChange: bool = ...) -> None: ... + def clientErrored(self, err: Any, c: Any) -> None: ... + def summarizeToLog(self) -> None: ... + def getSubgraph(self, uri: Any): ... + def addClient(self, newClient: Any) -> None: ... + def sendClientsToAllLivePages(self) -> None: ... + +class GraphResource(cyclone.web.RequestHandler): + def get(self) -> None: ... + +class Patches(cyclone.web.RequestHandler): + put: Any = ... + def __init__(self, *args: Any, **kw: Any) -> None: ... + def get(self) -> None: ... + +class GraphClients(cyclone.web.RequestHandler): + def get(self) -> None: ... + def post(self) -> None: ... + +class Prefixes(cyclone.web.RequestHandler): + def post(self) -> None: ... + +class WebsocketClient(cyclone.websocket.WebSocketHandler): + wsClient: Any = ... + def connectionMade(self, *args: Any, **kwargs: Any) -> None: ... + def connectionLost(self, reason: Any) -> None: ... + def messageReceived(self, message: Any) -> None: ... + +class Live(cyclone.websocket.WebSocketHandler): + def connectionMade(self, *args: Any, **kwargs: Any) -> None: ... + def connectionLost(self, reason: Any) -> None: ... + def messageReceived(self, message: Any) -> None: ... + +liveClients: Set[Live] + +def sendToLiveClients(d: Optional[Any] = ..., asJson: Optional[Any] = ...) -> None: ... + +class NoExts(cyclone.web.StaticFileHandler): + def get(self, path: Any, *args: Any, **kw: Any) -> None: ... + +def main(dirUriMap: Optional[Any] = ..., prefixes: Optional[Any] = ..., port: int = ...) -> None: ... diff --git a/stubs/rdfdb/syncedgraph.pyi b/stubs/rdfdb/syncedgraph.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdfdb/syncedgraph.pyi @@ -0,0 +1,19 @@ +# Stubs for rdfdb.syncedgraph (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from rdfdb.autodepgraphapi import AutoDepGraphApi +from rdfdb.currentstategraphapi import CurrentStateGraphApi +from rdfdb.grapheditapi import GraphEditApi +from typing import Any, Optional + +log: Any + +class SyncedGraph(CurrentStateGraphApi, AutoDepGraphApi, GraphEditApi): + rdfdbRoot: Any = ... + initiallySynced: Any = ... + def __init__(self, rdfdbRoot: Any, label: Any, receiverHost: Optional[Any] = ...) -> None: ... + def resync(self): ... + def patch(self, p: Any) -> None: ... + def suggestPrefixes(self, ctx: Any, prefixes: Any) -> None: ... + def sendFailed(self, result: Any) -> None: ... diff --git a/stubs/rdflib/__init__.pyi b/stubs/rdflib/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdflib/__init__.pyi @@ -0,0 +1,23 @@ +# Stubs for rdflib (Python 3.4) +# +from typing import Tuple, Union + + +# this is the 1st way that worked. 'from rdflib.term import URIRef' did not work. +import rdflib.namespace as _n +Namespace = _n.Namespace + +RDF: Namespace +RDFS: Namespace + +import rdflib.term as _t +URIRef = _t.URIRef +Literal = _t.Literal +BNode = _t.BNode + +import rdflib.graph as _g +ConjunctiveGraph = _g.ConjunctiveGraph +Graph = _g.Graph + +# not part of rdflib +StatementType = Tuple[Union[URIRef, BNode], URIRef, _t.Node, URIRef] diff --git a/stubs/rdflib/graph.pyi b/stubs/rdflib/graph.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdflib/graph.pyi @@ -0,0 +1,169 @@ +# Stubs for rdflib.graph (Python 3.4) +# + + +from typing import Any, Optional, Tuple, Sequence, Iterable +from io import StringIO as BytesIO +from rdflib import StatementType +from rdflib.term import Node, URIRef + +# real Graph is a subclass of Node, but I have bugs where the context +# in a statement is the wrong one of Graph or URIRef, so I want that to be more clear. +class Graph: + context_aware = ... # type: Any + formula_aware = ... # type: Any + def __init__(self, store='', identifier: Optional[URIRef]=None, namespace_manager=None): ... + store = ... # type: Any + identifier: URIRef = ... + namespace_manager = ... # type: Any + def toPython(self): ... + def destroy(self, configuration): ... + def commit(self): ... + def rollback(self): ... + def open(self, configuration, create=False): ... + def close(self, commit_pending_transaction=False): ... + def add(self, xxx_todo_changeme): ... + def addN(self, quads: Iterable[StatementType]): ... + def remove(self, xxx_todo_changeme1): ... + def triples(self, xxx_todo_changeme2) -> Sequence[Tuple[Node, Node, Node]]: ... + def __getitem__(self, item): ... + def __len__(self) -> int: ... + def __iter__(self): ... + def __contains__(self, triple) -> bool: ... + def __hash__(self): ... + def md5_term_hash(self): ... + def __cmp__(self, other): ... + def __eq__(self, other): ... + def __lt__(self, other): ... + def __le__(self, other): ... + def __gt__(self, other): ... + def __ge__(self, other): ... + def __iadd__(self, other): ... + def __isub__(self, other): ... + def __add__(self, other): ... + def __mul__(self, other): ... + def __sub__(self, other): ... + def __xor__(self, other): ... + __or__ = ... # type: Any + __and__ = ... # type: Any + def set(self, triple): ... + def subjects(self, predicate=None, object=None) -> Sequence[Node]: ... + def predicates(self, subject=None, object=None) -> Sequence[Node]: ... + def objects(self, subject=None, predicate=None) -> Sequence[Node]: ... + def subject_predicates(self, object=None) -> Sequence[Tuple[Node, Node]]: ... + def subject_objects(self, predicate=None) -> Sequence[Tuple[Node, Node]]: ... + def predicate_objects(self, subject=None) -> Sequence[Tuple[Node, Node]]: ... + def triples_choices(self, xxx_todo_changeme3, context=None): ... + def value(self, subject=None, predicate=..., object=None, default=None, any=True) -> Optional[Node]: ... + def label(self, subject, default='') -> Optional[Node]: ... + def preferredLabel(self, subject, lang=None, default=None, labelProperties=...): ... + def comment(self, subject, default=''): ... + def items(self, list): ... + def transitiveClosure(self, func, arg, seen=None): ... + def transitive_objects(self, subject, property, remember=None): ... + def transitive_subjects(self, predicate, object, remember=None): ... + def seq(self, subject): ... + def qname(self, uri): ... + def compute_qname(self, uri, generate=True): ... + def bind(self, prefix, namespace, override=True): ... + def namespaces(self): ... + def absolutize(self, uri, defrag=1): ... + def serialize(self, destination=None, format='', base=None, encoding=None, **args): ... + def parse(self, source=None, publicID=None, format=None, location=None, file=None, data=None, **args): ... + def load(self, source, publicID=None, format=''): ... + def query(self, query_object, processor='', result='', initNs=None, initBindings=None, use_store_provided=True, **kwargs): ... + def update(self, update_object, processor='', initNs=..., initBindings=..., use_store_provided=True, **kwargs): ... + def n3(self): ... + def __reduce__(self): ... + def isomorphic(self, other): ... + def connected(self): ... + def all_nodes(self): ... + def resource(self, identifier): ... + def skolemize(self, new_graph=None, bnode=None): ... + def de_skolemize(self, new_graph=None, uriref=None): ... + +class ConjunctiveGraph(Graph): + context_aware = ... # type: Any + default_context = ... # type: Any + def __init__(self, store='', identifier=None): ... + def __contains__(self, triple_or_quad): ... + def add(self, xxx_todo_changeme4): ... + def addN(self, quads: Iterable[StatementType]): ... + def remove(self, xxx_todo_changeme5): ... + def triples(self, xxx_todo_changeme6, context=None): ... + def quads(self, pattern=None) -> Iterable[StatementType]: ... + def triples_choices(self, xxx_todo_changeme7): ... + def __len__(self): ... + def contexts(self, triple=None): ... + def get_context(self, identifier, quoted=False): ... + def remove_context(self, context): ... + def context_id(self, uri, context_id=None): ... + def parse(self, source=None, publicID=None, format='', location=None, file=None, data=None, **args): ... + def __reduce__(self): ... + +class Dataset(ConjunctiveGraph): + __doc__ = ... # type: Any + DEFAULT = ... # type: Any + graph_names = ... # type: Any + def __init__(self, store=''): ... + def graph(self, identifier=None): ... + def remove_graph(self, g): ... + def graphs(self, empty=True): ... + def add_quad(self, quad): ... + def remove_quad(self, xxx_todo_changeme8): ... + def quads(self, quad): ... + +class QuotedGraph(Graph): + def __init__(self, store, identifier): ... + def add(self, triple): ... + def addN(self, quads): ... + def n3(self): ... + def __reduce__(self): ... + +class GraphValue(QuotedGraph): + def __init__(self, store, identifier=None, graph=None): ... + def add(self, triple): ... + def remove(self, triple): ... + def __reduce__(self): ... + +class Seq: + def __init__(self, graph, subject): ... + def toPython(self): ... + def __iter__(self): ... + def __len__(self): ... + def __getitem__(self, index): ... + +class ModificationException(Exception): + def __init__(self): ... + +class UnSupportedAggregateOperation(Exception): + def __init__(self): ... + +class ReadOnlyGraphAggregate(ConjunctiveGraph): + graphs = ... # type: Any + def __init__(self, graphs, store=''): ... + def destroy(self, configuration): ... + def commit(self): ... + def rollback(self): ... + def open(self, configuration, create=False): ... + def close(self): ... + def add(self, xxx_todo_changeme12): ... + def addN(self, quads): ... + def remove(self, xxx_todo_changeme13): ... + def triples(self, xxx_todo_changeme14): ... + def __contains__(self, triple_or_quad): ... + def quads(self, xxx_todo_changeme15): ... + def __len__(self): ... + def __hash__(self): ... + def __cmp__(self, other): ... + def __iadd__(self, other): ... + def __isub__(self, other): ... + def triples_choices(self, xxx_todo_changeme16, context=None): ... + def qname(self, uri): ... + def compute_qname(self, uri, generate=True): ... + def bind(self, prefix, namespace, override=True): ... + def namespaces(self): ... + def absolutize(self, uri, defrag=1): ... + def parse(self, source, publicID=None, format='', **args): ... + def n3(self): ... + def __reduce__(self): ... diff --git a/stubs/rdflib/namespace.pyi b/stubs/rdflib/namespace.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdflib/namespace.pyi @@ -0,0 +1,60 @@ +# Stubs for rdflib.namespace (Python 3.4) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +class Namespace(str): + __doc__ = ... # type: Any + def __new__(cls, value): ... + @property + def title(self): ... + def term(self, name): ... + def __getitem__(self, key, default=None): ... + def __getattr__(self, name): ... + +class URIPattern(str): + __doc__ = ... # type: Any + def __new__(cls, value): ... + def __mod__(self, *args, **kwargs): ... + def format(self, *args, **kwargs): ... + +class ClosedNamespace: + uri = ... # type: Any + def __init__(self, uri, terms): ... + def term(self, name): ... + def __getitem__(self, key, default=None): ... + def __getattr__(self, name): ... + +class _RDFNamespace(ClosedNamespace): + def __init__(self): ... + def term(self, name): ... + +RDF = ... # type: Any +RDFS = ... # type: Any +OWL = ... # type: Any +XSD = ... # type: Any +SKOS = ... # type: Any +DOAP = ... # type: Any +FOAF = ... # type: Any +DC = ... # type: Any +DCTERMS = ... # type: Any +VOID = ... # type: Any + +class NamespaceManager: + graph = ... # type: Any + def __init__(self, graph): ... + def reset(self): ... + store = ... # type: Any + def qname(self, uri): ... + def normalizeUri(self, rdfTerm): ... + def compute_qname(self, uri, generate=True): ... + def bind(self, prefix, namespace, override=True): ... + def namespaces(self): ... + def absolutize(self, uri, defrag=1): ... + +def is_ncname(name): ... + +XMLNS = ... # type: Any + +def split_uri(uri): ... diff --git a/stubs/rdflib/parser.pyi b/stubs/rdflib/parser.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdflib/parser.pyi @@ -0,0 +1,26 @@ +# Stubs for rdflib.parser (Python 3.4) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any +from io import StringIO as BytesIO + +class Parser: + def __init__(self): ... + def parse(self, source, sink): ... + +class InputSource: # subclass of xmlreader + ... + + +class StringInputSource(InputSource): + def __init__(self, value, system_id=None): ... + +class URLInputSource(InputSource): + url = ... # type: Any + content_type = ... # type: Any + def __init__(self, system_id=None, format=None): ... + +class FileInputSource(InputSource): + file = ... # type: Any + def __init__(self, file): ... diff --git a/stubs/rdflib/plugins/__init__.pyi b/stubs/rdflib/plugins/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdflib/plugins/__init__.pyi @@ -0,0 +1,1 @@ + diff --git a/stubs/rdflib/plugins/serializers/__init__.pyi b/stubs/rdflib/plugins/serializers/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdflib/plugins/serializers/__init__.pyi @@ -0,0 +1,1 @@ + diff --git a/stubs/rdflib/plugins/serializers/nt.pyi b/stubs/rdflib/plugins/serializers/nt.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdflib/plugins/serializers/nt.pyi @@ -0,0 +1,16 @@ +# Stubs for rdflib.plugins.serializers.nt (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from rdflib.serializer import Serializer +from typing import Any, Optional + +class NTSerializer(Serializer): + encoding: str = ... + def __init__(self, store: Any) -> None: ... + def serialize(self, stream: Any, base: Optional[Any] = ..., encoding: Optional[Any] = ..., **args: Any) -> None: ... + +class NT11Serializer(NTSerializer): + def __init__(self, store: Any) -> None: ... + +_quoteLiteral: Any diff --git a/stubs/rdflib/plugins/serializers/turtle.pyi b/stubs/rdflib/plugins/serializers/turtle.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdflib/plugins/serializers/turtle.pyi @@ -0,0 +1,58 @@ +# Stubs for rdflib.plugins.serializers.turtle (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from rdflib.serializer import Serializer +from typing import Any, Optional + +class RecursiveSerializer(Serializer): + topClasses: Any = ... + predicateOrder: Any = ... + maxDepth: int = ... + indentString: str = ... + stream: Any = ... + def __init__(self, store: Any) -> None: ... + def addNamespace(self, prefix: Any, uri: Any) -> None: ... + def checkSubject(self, subject: Any): ... + def isDone(self, subject: Any): ... + def orderSubjects(self): ... + def preprocess(self) -> None: ... + def preprocessTriple(self, xxx_todo_changeme: Any) -> None: ... + depth: int = ... + lists: Any = ... + namespaces: Any = ... + def reset(self) -> None: ... + def buildPredicateHash(self, subject: Any): ... + def sortProperties(self, properties: Any): ... + def subjectDone(self, subject: Any) -> None: ... + def indent(self, modifier: int = ...): ... + def write(self, text: Any) -> None: ... + +class TurtleSerializer(RecursiveSerializer): + short_name: str = ... + indentString: str = ... + keywords: Any = ... + stream: Any = ... + def __init__(self, store: Any) -> None: ... + def addNamespace(self, prefix: Any, namespace: Any): ... + def reset(self) -> None: ... + base: Any = ... + def serialize(self, stream: Any, base: Optional[Any] = ..., encoding: Optional[Any] = ..., spacious: Optional[Any] = ..., **args: Any) -> None: ... + def preprocessTriple(self, triple: Any) -> None: ... + def getQName(self, uri: Any, gen_prefix: bool = ...): ... + def startDocument(self) -> None: ... + def endDocument(self) -> None: ... + def statement(self, subject: Any): ... + def s_default(self, subject: Any): ... + def s_squared(self, subject: Any): ... + def path(self, node: Any, position: Any, newline: bool = ...) -> None: ... + def p_default(self, node: Any, position: Any, newline: bool = ...): ... + def label(self, node: Any, position: Any): ... + def p_squared(self, node: Any, position: Any, newline: bool = ...): ... + def isValidList(self, l: Any): ... + def doList(self, l: Any) -> None: ... + def predicateList(self, subject: Any, newline: bool = ...) -> None: ... + def verb(self, node: Any, newline: bool = ...) -> None: ... + def objectList(self, objects: Any) -> None: ... + +OBJECT: Any diff --git a/stubs/rdflib/serializer.pyi b/stubs/rdflib/serializer.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdflib/serializer.pyi @@ -0,0 +1,3 @@ +class Serializer: + ... + diff --git a/stubs/rdflib/term.pyi b/stubs/rdflib/term.pyi new file mode 100644 --- /dev/null +++ b/stubs/rdflib/term.pyi @@ -0,0 +1,75 @@ +# Stubs for rdflib.term (Python 3) +# + +from typing import Any, Optional + +class Node: ... + +class Identifier(Node, str): + def __new__(cls, value: Any): ... + def eq(self, other: Any): ... + def neq(self, other: Any): ... + def __ne__(self, other: Any): ... + def __eq__(self, other: Any): ... + def __gt__(self, other: Any): ... + def __lt__(self, other: Any): ... + def __le__(self, other: Any): ... + def __ge__(self, other: Any): ... + def __hash__(self): ... + +class URIRef(Identifier): + def __new__(cls, value: Any, base: Optional[Any] = ...): ... + def toPython(self): ... + def n3(self, namespace_manager: Optional[Any] = ...): ... + def defrag(self): ... + def __reduce__(self): ... + def __getnewargs__(self): ... + def __add__(self, other: Any): ... + def __radd__(self, other: Any): ... + def __mod__(self, other: Any): ... + def md5_term_hash(self): ... + def de_skolemize(self): ... + +class BNode(Identifier): + def __new__(cls, value: Optional[Any] = ..., _sn_gen: Any = ..., _prefix: Any = ...): ... + def toPython(self): ... + def n3(self, namespace_manager: Optional[Any] = ...): ... + def __getnewargs__(self): ... + def __reduce__(self): ... + def md5_term_hash(self): ... + def skolemize(self, authority: str = ...): ... + +class Literal(Identifier): + _literal_n3: Any + def __new__(cls, lexical_or_value: Any, lang: Optional[Any] = ..., datatype: Optional[Any] = ..., normalize: Optional[Any] = ...): ... + def normalize(self): ... + @property + def value(self): ... + @property + def language(self): ... + @property + def datatype(self): ... + def __reduce__(self): ... + def __add__(self, val: Any): ... + def __bool__(self): ... + def __neg__(self): ... + def __pos__(self): ... + def __abs__(self): ... + def __invert__(self): ... + def __gt__(self, other: Any): ... + def __lt__(self, other: Any): ... + def __le__(self, other: Any): ... + def __ge__(self, other: Any): ... + def __hash__(self): ... + def __eq__(self, other: Any): ... + def eq(self, other: Any): ... + def neq(self, other: Any): ... + def n3(self, namespace_manager: Optional[Any] = ...): ... + def toPython(self): ... + def md5_term_hash(self): ... + +def bind(datatype: Any, pythontype: Any, constructor: Optional[Any] = ..., lexicalizer: Optional[Any] = ...) -> None: ... + +_PLAIN_LITERAL_TYPES: Any +_XSD_DOUBLE: Any +_XSD_DECIMAL: Any diff --git a/stubs/run_local.pyi b/stubs/run_local.pyi new file mode 100644 --- /dev/null +++ b/stubs/run_local.pyi @@ -0,0 +1,17 @@ +# Stubs for run_local (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import logging +from typing import Any + +def fixSysPath() -> None: ... +def rce(self, exc: Any, val: Any, tb: Any) -> None: ... + +progName: Any +log: Any + +class FractionTimeFilter(logging.Filter): + def filter(self, record: Any): ... + +def setTerminalTitle(s: Any) -> None: ... diff --git a/stubs/scales/__init__.pyi b/stubs/scales/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/__init__.pyi @@ -0,0 +1,149 @@ +# Stubs for scales (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import json +from collections import UserDict +from typing import Any, Optional + +ID_KEY: str +NEXT_ID: Any + +def statsId(obj: Any): ... +def init(obj: Any, context: Optional[Any] = ...): ... +def initChild(obj: Any, name: Any): ... +def initChildOfType(obj: Any, name: Any, subContext: Optional[Any] = ...): ... +def reset() -> None: ... +def getStats(): ... +def setCollapsed(path: Any): ... + +class StatContainer(UserDict): + def __init__(self) -> None: ... + def setCollapsed(self, isCollapsed: Any) -> None: ... + def isCollapsed(self): ... + +class _Stats: + stats: Any = ... + parentMap: Any = ... + containerMap: Any = ... + subId: int = ... + @classmethod + def reset(cls) -> None: ... + @classmethod + def init(cls, obj: Any, context: Any): ... + @classmethod + def initChild(cls, obj: Any, name: Any, subContext: Any, parent: Optional[Any] = ...): ... + @classmethod + def getContainerForObject(cls, instanceId: Any): ... + @classmethod + def getStat(cls, obj: Any, name: Any): ... + @classmethod + def getAggregator(cls, instanceId: Any, name: Any): ... + @classmethod + def setCollapsed(cls, path: Any) -> None: ... + +class Stat: + def __init__(self, name: Any, value: str = ..., logger: Optional[Any] = ...) -> None: ... + def getName(self): ... + def __get__(self, instance: Any, _: Any): ... + def __set__(self, instance: Any, value: Any) -> None: ... + def updateItem(self, instance: Any, subKey: Any, value: Any) -> None: ... + def logger(self, logger: Any): ... + +class IntStat(Stat): + def __init__(self, name: Any, value: int = ...) -> None: ... + +class DoubleStat(Stat): + def __init__(self, name: Any, value: float = ...) -> None: ... + +class IntDict(UserDict): + parent: Any = ... + instance: Any = ... + autoDelete: Any = ... + def __init__(self, parent: Any, instance: Any, autoDelete: bool = ...) -> None: ... + def __getitem__(self, item: Any): ... + def __setitem__(self, key: Any, value: Any) -> None: ... + +class IntDictStat(Stat): + autoDelete: Any = ... + def __init__(self, name: Any, autoDelete: bool = ...) -> None: ... + +class StringDict(UserDict): + parent: Any = ... + instance: Any = ... + def __init__(self, parent: Any, instance: Any) -> None: ... + def __getitem__(self, item: Any): ... + def __setitem__(self, key: Any, value: Any) -> None: ... + +class StringDictStat(Stat): ... + +class AggregationStat(Stat): + def __init__(self, name: Any, value: Any) -> None: ... + def update(self, instance: Any, oldValue: Any, newValue: Any) -> None: ... + +class ChildAggregationStat(Stat): + def __init__(self, name: Any, value: Any) -> None: ... + def update(self, instance: Any, oldValue: Any, newValue: Any, subKey: Any) -> None: ... + +class SumAggregationStat(AggregationStat): + def __init__(self, name: Any) -> None: ... + def update(self, instance: Any, oldValue: Any, newValue: Any) -> None: ... + +class HistogramAggregationStat(AggregationStat): + autoDelete: Any = ... + def __init__(self, name: Any, autoDelete: bool = ...) -> None: ... + def update(self, instance: Any, oldValue: Any, newValue: Any) -> None: ... + +class IntDictSumAggregationStat(ChildAggregationStat): + def __init__(self, name: Any) -> None: ... + def update(self, instance: Any, oldValue: Any, newValue: Any, subKey: Any) -> None: ... + +class PmfStatDict(UserDict): + class TimeManager: + container: Any = ... + msg99: Any = ... + start: Any = ... + def __init__(self, container: Any) -> None: ... + def __enter__(self): ... + def __exit__(self, *_: Any) -> None: ... + def warn99(self, logger: Any, msg: Any, *args: Any) -> None: ... + def discard(self) -> None: ... + def __call__(self, func: Any): ... + percentile99: Any = ... + def __init__(self, sample: Optional[Any] = ...) -> None: ... + def __getitem__(self, item: Any): ... + def addValue(self, value: Any) -> None: ... + def time(self): ... + +class PmfStat(Stat): + def __init__(self, name: Any, _: Optional[Any] = ...) -> None: ... + def __set__(self, instance: Any, value: Any) -> None: ... + +class NamedPmfDict(UserDict): + def __init__(self) -> None: ... + def __getitem__(self, item: Any): ... + def __setitem__(self, key: Any, value: Any) -> None: ... + +class NamedPmfDictStat(Stat): ... + +class StateTimeStatDict(UserDict): + parent: Any = ... + instance: Any = ... + def __init__(self, parent: Any, instance: Any) -> None: ... + def __getitem__(self, item: Any): ... + def incr(self, item: Any, value: Any) -> None: ... + def acquire(self) -> None: ... + +class StateTimeStat(Stat): + state: int = ... + time: Any = ... + def __init__(self, name: Any, _: Optional[Any] = ...) -> None: ... + def __set__(self, instance: Any, value: Any) -> None: ... + +def filterCollapsedItems(data: Any): ... + +class StatContainerEncoder(json.JSONEncoder): + def default(self, obj: Any): ... + +def dumpStatsTo(filename: Any) -> None: ... +def collection(path: Any, *stats: Any): ... diff --git a/stubs/scales/aggregation.pyi b/stubs/scales/aggregation.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/aggregation.pyi @@ -0,0 +1,91 @@ +# Stubs for scales.aggregation (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +class DefaultFormat: + def getCount(self, data: Any): ... + def getValue(self, data: Any): ... + +class DirectFormat: + def getCount(self, _: Any): ... + def getValue(self, data: Any): ... + +class TimerFormat: + def getCount(self, data: Any): ... + def getValue(self, data: Any): ... + +class TimerMeanFormat: + def getCount(self, data: Any): ... + def getValue(self, data: Any): ... + +class CounterFormat: + def getCount(self, data: Any): ... + def getValue(self, data: Any): ... + +class MeterFormat: + def getCount(self, data: Any): ... + def getValue(self, data: Any): ... + +class GaugeFormat: + def getValue(self, data: Any): ... + +class DataFormats: + DEFAULT: Any = ... + DIRECT: Any = ... + TIMER: Any = ... + TIMER_MEAN: Any = ... + COUNTER: Any = ... + METER: Any = ... + GAUGE: Any = ... + +class Aggregator: + name: Any = ... + def __init__(self, name: Optional[Any] = ..., dataFormat: Any = ...) -> None: ... + def clone(self): ... + +class Average(Aggregator): + DEFAULT_NAME: str = ... + def addValue(self, _: Any, value: Any) -> None: ... + def result(self): ... + +class Sum(Aggregator): + DEFAULT_NAME: str = ... + total: int = ... + def addValue(self, _: Any, value: Any) -> None: ... + def result(self): ... + +class InverseMap(Aggregator): + DEFAULT_NAME: str = ... + def __init__(self, *args: Any, **kw: Any) -> None: ... + def addValue(self, source: Any, data: Any) -> None: ... + def result(self): ... + +class Sorted(Aggregator): + DEFAULT_NAME: str = ... + def __init__(self, cmp: Optional[Any] = ..., key: Optional[Any] = ..., reverse: bool = ..., *args: Any, **kw: Any) -> None: ... + def addValue(self, source: Any, data: Any) -> None: ... + def result(self): ... + def clone(self): ... + +class Highlight(Aggregator): + value: Any = ... + source: Any = ... + fn: Any = ... + def __init__(self, name: Any, fn: Any, dataFormat: Any = ...) -> None: ... + def addValue(self, source: Any, value: Any) -> None: ... + def result(self): ... + def clone(self): ... + +class Aggregation: + def __init__(self, aggregators: Any) -> None: ... + def addSource(self, source: Any, data: Any) -> None: ... + def addJsonDirectory(self, directory: Any, test: Optional[Any] = ...) -> None: ... + def result(self, root: Optional[Any] = ...): ... + +class FileInclusionTest: + ignoreByName: Any = ... + maxAge: Any = ... + def __init__(self, ignoreByName: Optional[Any] = ..., maxAge: Optional[Any] = ...) -> None: ... + def __call__(self, _: Any, fullPath: Any): ... diff --git a/stubs/scales/aggregation_test.pyi b/stubs/scales/aggregation_test.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/aggregation_test.pyi @@ -0,0 +1,9 @@ +# Stubs for scales.aggregation_test (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest + +class AggregationTest(unittest.TestCase): + def testNoData(self) -> None: ... + def testRegex(self) -> None: ... diff --git a/stubs/scales/bottlehandler.pyi b/stubs/scales/bottlehandler.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/bottlehandler.pyi @@ -0,0 +1,8 @@ +# Stubs for scales.bottlehandler (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +def bottlestats(server_name: Any, path: str = ...): ... +def register_stats_handler(app: Any, server_name: Any, prefix: str = ...) -> None: ... diff --git a/stubs/scales/clock.pyi b/stubs/scales/clock.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/clock.pyi @@ -0,0 +1,8 @@ +# Stubs for scales.clock (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +class BasicClock: + def time(self): ... + +def getClock(): ... diff --git a/stubs/scales/cyclonehandler.pyi b/stubs/scales/cyclonehandler.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/cyclonehandler.pyi @@ -0,0 +1,8 @@ +# Stubs for scales.cyclonehandler (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import cyclone.web +from greplin.scales import tornadolike + +class StatsHandler(tornadolike.Handler, cyclone.web.RequestHandler): ... diff --git a/stubs/scales/flaskhandler.pyi b/stubs/scales/flaskhandler.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/flaskhandler.pyi @@ -0,0 +1,9 @@ +# Stubs for scales.flaskhandler (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +def statsHandler(serverName: Any, path: str = ...): ... +def registerStatsHandler(app: Any, serverName: Any, prefix: str = ...) -> None: ... +def serveInBackground(port: Any, serverName: Any, prefix: str = ...): ... diff --git a/stubs/scales/formats.pyi b/stubs/scales/formats.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/formats.pyi @@ -0,0 +1,13 @@ +# Stubs for scales.formats (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +OPERATORS: Any +OPERATOR: Any + +def runQuery(statDict: Any, query: Any): ... +def htmlHeader(output: Any, path: Any, serverName: Any, query: Optional[Any] = ...) -> None: ... +def htmlFormat(output: Any, pathParts: Any = ..., statDict: Optional[Any] = ..., query: Optional[Any] = ...) -> None: ... +def jsonFormat(output: Any, statDict: Optional[Any] = ..., query: Optional[Any] = ..., pretty: bool = ...) -> None: ... diff --git a/stubs/scales/formats_test.pyi b/stubs/scales/formats_test.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/formats_test.pyi @@ -0,0 +1,24 @@ +# Stubs for scales.formats_test (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest +from typing import Any + +class Root: + def __init__(self) -> None: ... + def getChild(self, name: Any, collapsed: Any): ... + +class Child: + countStat: Any = ... + def __init__(self, name: Any, collapsed: Any) -> None: ... + +class StatsTest(unittest.TestCase): + def setUp(self) -> None: ... + def testJsonCollapse(self) -> None: ... + +class UnicodeFormatTest(unittest.TestCase): + UNICODE_VALUE: Any = ... + def testHtmlFormat(self) -> None: ... + def testJsonFormat(self) -> None: ... + def testJsonFormatBinaryGarbage(self) -> None: ... diff --git a/stubs/scales/graphite.pyi b/stubs/scales/graphite.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/graphite.pyi @@ -0,0 +1,25 @@ +# Stubs for scales.graphite (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import threading +from typing import Any, Optional + +log: Any + +class GraphitePusher: + rules: Any = ... + pruneRules: Any = ... + prefix: Any = ... + graphite: Any = ... + def __init__(self, host: Any, port: Any, prefix: Optional[Any] = ...) -> None: ... + def push(self, statsDict: Optional[Any] = ..., prefix: Optional[Any] = ..., path: Optional[Any] = ...) -> None: ... + def allow(self, rule: Any) -> None: ... + def forbid(self, rule: Any) -> None: ... + def prune(self, rule: Any) -> None: ... + +class GraphitePeriodicPusher(threading.Thread, GraphitePusher): + daemon: bool = ... + period: Any = ... + def __init__(self, host: Any, port: Any, prefix: Optional[Any] = ..., period: int = ...) -> None: ... + def run(self) -> None: ... diff --git a/stubs/scales/loop.pyi b/stubs/scales/loop.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/loop.pyi @@ -0,0 +1,7 @@ +# Stubs for scales.loop (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +def installStatsLoop(statsFile: Any, statsDelay: Any) -> None: ... diff --git a/stubs/scales/meter.pyi b/stubs/scales/meter.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/meter.pyi @@ -0,0 +1,28 @@ +# Stubs for scales.meter (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from collections import UserDict +from greplin.scales import Stat +from typing import Any, Optional + +TICKERS: Any +TICKER_THREAD: Any + +class MeterStatDict(UserDict): + def __init__(self) -> None: ... + def __getitem__(self, item: Any): ... + def tick(self) -> None: ... + def mark(self, value: int = ...) -> None: ... + +class MeterStat(Stat): + def __init__(self, name: Any, _: Optional[Any] = ...) -> None: ... + def __set__(self, instance: Any, value: Any) -> None: ... + +class MeterDict(UserDict): + parent: Any = ... + instance: Any = ... + def __init__(self, parent: Any, instance: Any) -> None: ... + def __getitem__(self, item: Any): ... + +class MeterDictStat(Stat): ... diff --git a/stubs/scales/samplestats.pyi b/stubs/scales/samplestats.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/samplestats.pyi @@ -0,0 +1,47 @@ +# Stubs for scales.samplestats (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from .clock import getClock +from typing import Any + +class Sampler: + min: Any = ... + max: Any = ... + def __init__(self) -> None: ... + def __len__(self): ... + def samples(self): ... + def update(self, value: Any) -> None: ... + @property + def mean(self): ... + @property + def stddev(self): ... + def percentiles(self, percentiles: Any): ... + +class ExponentiallyDecayingReservoir(Sampler): + DEFAULT_SIZE: int = ... + DEFAULT_ALPHA: float = ... + DEFAULT_RESCALE_THRESHOLD: int = ... + values: Any = ... + alpha: Any = ... + size: Any = ... + clock: Any = ... + rescale_threshold: Any = ... + count: int = ... + startTime: Any = ... + nextScaleTime: Any = ... + def __init__(self, size: Any = ..., alpha: Any = ..., rescale_threshold: Any = ..., clock: Any = ...) -> None: ... + def __len__(self): ... + def clear(self) -> None: ... + def update(self, value: Any) -> None: ... + def samples(self): ... + +class UniformSample(Sampler): + sample: Any = ... + count: int = ... + def __init__(self) -> None: ... + def clear(self) -> None: ... + def __len__(self): ... + def update(self, value: Any) -> None: ... + def __iter__(self): ... + def samples(self): ... diff --git a/stubs/scales/samplestats_test.pyi b/stubs/scales/samplestats_test.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/samplestats_test.pyi @@ -0,0 +1,12 @@ +# Stubs for scales.samplestats_test (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest + +class UniformSampleTest(unittest.TestCase): + def testGaussian(self) -> None: ... + +class ExponentiallyDecayingReservoirTest(unittest.TestCase): + def testGaussian(self) -> None: ... + def testWithRescale(self) -> None: ... diff --git a/stubs/scales/scales_test.pyi b/stubs/scales/scales_test.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/scales_test.pyi @@ -0,0 +1,55 @@ +# Stubs for scales.scales_test (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest +from typing import Any + +class Root1: + stateStat: Any = ... + errorsStat: Any = ... + activeUrlsStat: Any = ... + def __init__(self) -> None: ... + def getChild(self, cls: Any, *args: Any): ... + +class Root2: + def __init__(self) -> None: ... + def getChild(self, cls: Any): ... + +class AggregatingRoot: + countStat: Any = ... + stateStat: Any = ... + errorsStat: Any = ... + def __init__(self) -> None: ... + def getChild(self, cls: Any, *args: Any): ... + +class AggregatingRootSubclass(AggregatingRoot): ... + +class TypedChild: + countStat: Any = ... + def __init__(self) -> None: ... + +class Child: + countStat: Any = ... + stateStat: Any = ... + errorsStat: Any = ... + def __init__(self, name: str = ...) -> None: ... + +class DynamicRoot: + value: int = ... + dynamicStat: Any = ... + def __init__(self) -> None: ... + +class StatsTest(unittest.TestCase): + def setUp(self) -> None: ... + def testChildTypeStats(self) -> None: ... + def testChildStats(self) -> None: ... + def testMultilevelChild(self) -> None: ... + def testStatSum(self) -> None: ... + def testStatSumWithSubclassRoot(self) -> None: ... + def helpTestStatSum(self, a: Any) -> None: ... + def testStatHistogram(self) -> None: ... + def testIntDictStats(self) -> None: ... + def testIntDictStatsAggregation(self) -> None: ... + def testDynamic(self) -> None: ... + def testCollection(self) -> None: ... diff --git a/stubs/scales/timer.pyi b/stubs/scales/timer.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/timer.pyi @@ -0,0 +1,7 @@ +# Stubs for scales.timer (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +def RepeatTimer(interval: Any, function: Any, iterations: int = ..., *args: Any, **kwargs: Any): ... diff --git a/stubs/scales/tornadohandler.pyi b/stubs/scales/tornadohandler.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/tornadohandler.pyi @@ -0,0 +1,8 @@ +# Stubs for scales.tornadohandler (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import tornado.web +from greplin.scales import tornadolike + +class StatsHandler(tornadolike.Handler, tornado.web.RequestHandler): ... diff --git a/stubs/scales/tornadolike.pyi b/stubs/scales/tornadolike.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/tornadolike.pyi @@ -0,0 +1,10 @@ +# Stubs for scales.tornadolike (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +class Handler: + serverName: Any = ... + def initialize(self, serverName: Any) -> None: ... + def get(self, path: Any) -> None: ... diff --git a/stubs/scales/twistedweb.pyi b/stubs/scales/twistedweb.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/twistedweb.pyi @@ -0,0 +1,12 @@ +# Stubs for scales.twistedweb (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from twisted.web import resource +from typing import Any + +class StatsResource(resource.Resource): + isLeaf: bool = ... + serverName: Any = ... + def __init__(self, serverName: Any) -> None: ... + def render_GET(self, request: Any): ... diff --git a/stubs/scales/util.pyi b/stubs/scales/util.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/util.pyi @@ -0,0 +1,50 @@ +# Stubs for scales.util (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import threading +from typing import Any, Optional + +log: Any + +def lookup(source: Any, keys: Any, fallback: Optional[Any] = ...): ... + +class GraphiteReporter(threading.Thread): + sock: Any = ... + queue: Any = ... + maxQueueSize: Any = ... + daemon: bool = ... + def __init__(self, host: Any, port: Any, maxQueueSize: int = ...) -> None: ... + def run(self) -> None: ... + def connect(self) -> None: ... + def disconnect(self) -> None: ... + def log(self, name: Any, value: Any, valueType: Optional[Any] = ..., stamp: Optional[Any] = ...) -> None: ... + def enqueue(self, name: Any, value: Any, valueType: Optional[Any] = ..., stamp: Optional[Any] = ...) -> None: ... + def flush(self) -> None: ... + def shutdown(self) -> None: ... + +class AtomicValue: + lock: Any = ... + value: Any = ... + def __init__(self, val: Any) -> None: ... + def update(self, function: Any): ... + def getAndSet(self, newVal: Any): ... + def addAndGet(self, val: Any): ... + +class EWMA: + M1_ALPHA: Any = ... + M5_ALPHA: Any = ... + M15_ALPHA: Any = ... + TICK_RATE: int = ... + @classmethod + def oneMinute(cls): ... + @classmethod + def fiveMinute(cls): ... + @classmethod + def fifteenMinute(cls): ... + alpha: Any = ... + interval: Any = ... + rate: int = ... + def __init__(self, alpha: Any, interval: Any) -> None: ... + def update(self, val: Any) -> None: ... + def tick(self) -> None: ... diff --git a/stubs/scales/util_test.pyi b/stubs/scales/util_test.pyi new file mode 100644 --- /dev/null +++ b/stubs/scales/util_test.pyi @@ -0,0 +1,10 @@ +# Stubs for scales.util_test (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import unittest + +class AtomicValueTest(unittest.TestCase): + def testUpdate(self) -> None: ... + def testGetAndSet(self) -> None: ... + def testAddAndGet(self) -> None: ... diff --git a/stubs/serport.pyi b/stubs/serport.pyi new file mode 100644 --- /dev/null +++ b/stubs/serport.pyi @@ -0,0 +1,1 @@ +def read_all_adc(f: int) -> List[int]: ... diff --git a/stubs/statprof.pyi b/stubs/statprof.pyi new file mode 100644 --- /dev/null +++ b/stubs/statprof.pyi @@ -0,0 +1,56 @@ +# Stubs for statprof (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +class ProfileState: + def __init__(self, frequency: Optional[Any] = ...) -> None: ... + accumulated_time: float = ... + last_start_time: Any = ... + sample_count: int = ... + sample_interval: Any = ... + remaining_prof_time: Any = ... + profile_level: int = ... + count_calls: bool = ... + gc_time_taken: int = ... + def reset(self, frequency: Optional[Any] = ...) -> None: ... + def accumulate_time(self, stop_time: Any) -> None: ... + +class CodeKey: + cache: Any = ... + filename: Any = ... + lineno: Any = ... + name: Any = ... + def __init__(self, frame: Any) -> None: ... + def __eq__(self, other: Any): ... + def __hash__(self): ... + @classmethod + def get(cls, frame: Any): ... + +class CallData: + all_calls: Any = ... + key: Any = ... + call_count: int = ... + cum_sample_count: int = ... + self_sample_count: int = ... + def __init__(self, key: Any) -> None: ... + @classmethod + def get(cls, key: Any): ... + +def start() -> None: ... +def stop() -> None: ... +def reset(frequency: Optional[Any] = ...) -> None: ... + +class CallStats: + name: Any = ... + pcnt_time_in_proc: Any = ... + cum_secs_in_proc: Any = ... + self_secs_in_proc: Any = ... + num_calls: Any = ... + self_secs_per_call: Any = ... + cum_secs_per_call: Any = ... + def __init__(self, call_data: Any) -> None: ... + def display(self, fp: Any) -> None: ... + +def display(fp: Optional[Any] = ...): ... diff --git a/stubs/tkinter/__init__.pyi b/stubs/tkinter/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/tkinter/__init__.pyi @@ -0,0 +1,1 @@ + diff --git a/stubs/tkinter/tix.pyi b/stubs/tkinter/tix.pyi new file mode 100644 --- /dev/null +++ b/stubs/tkinter/tix.pyi @@ -0,0 +1,1 @@ + diff --git a/stubs/treq/__init__.pyi b/stubs/treq/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/treq/__init__.pyi @@ -0,0 +1,6 @@ +# Stubs for treq (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from treq.api import delete as delete, get as get, head as head, patch as patch, post as post, put as put, request as request +from treq.content import collect as collect, content as content, json_content as json_content, text_content as text_content diff --git a/stubs/treq/api.pyi b/stubs/treq/api.pyi new file mode 100644 --- /dev/null +++ b/stubs/treq/api.pyi @@ -0,0 +1,13 @@ +# Stubs for treq.api (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def head(url: Any, **kwargs: Any): ... +def get(url: Any, headers: Optional[Any] = ..., **kwargs: Any): ... +def post(url: Any, data: Optional[Any] = ..., **kwargs: Any): ... +def put(url: Any, data: Optional[Any] = ..., **kwargs: Any): ... +def patch(url: Any, data: Optional[Any] = ..., **kwargs: Any): ... +def delete(url: Any, **kwargs: Any): ... +def request(method: Any, url: Any, **kwargs: Any): ... diff --git a/stubs/treq/content.pyi b/stubs/treq/content.pyi new file mode 100644 --- /dev/null +++ b/stubs/treq/content.pyi @@ -0,0 +1,18 @@ +# Stubs for treq.content (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from twisted.internet.protocol import Protocol +from typing import Any + +class _BodyCollector(Protocol): + finished: Any = ... + collector: Any = ... + def __init__(self, finished: Any, collector: Any) -> None: ... + def dataReceived(self, data: Any) -> None: ... + def connectionLost(self, reason: Any) -> None: ... + +def collect(response: Any, collector: Any): ... +def content(response: Any): ... +def json_content(response: Any, **kwargs: Any): ... +def text_content(response: Any, encoding: str = ...): ... diff --git a/stubs/twisted/__init__.pyi b/stubs/twisted/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/__init__.pyi @@ -0,0 +1,1 @@ + diff --git a/stubs/twisted/internet/__init__.pyi b/stubs/twisted/internet/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/internet/__init__.pyi @@ -0,0 +1,45 @@ +# Stubs for twisted.internet (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +class IDelayedCall: + def getTime(self) -> Any: ... + def cancel(self) -> None: ... + def delay(self, secondsLater: Any) -> None: ... + def reset(self, secondsFromNow: Any) -> None: ... + def active(self) -> None: ... + + +class IAddress: # this is https://twistedmatrix.com/documents/current/api/twisted.internet.address.IPv4Address.html + type: str + host: str + port: int + +class IListeningPort: + def startListening(self): ... + def stopListening(self): ... # returns deferred + def getHost(self) -> IAddress: ... + _realPortNumber: int # from t.i.tcp.Port + +class ReactorType: # abridged + def listenTCP(self, port: Any, factory: Any, backlog: int = ..., interface: str = ...) -> IListeningPort: ... + def seconds(self) -> None: ... + def callLater(self, delay: Any, callable: Any, *args: Any, **kw: Any) -> IDelayedCall: ... + def getDelayedCalls(self) -> None: ... + def callFromThread(self, callable: Any, *args: Any, **kw: Any) -> None: ... + def callInThread(self, callable: Any, *args: Any, **kwargs: Any) -> None: ... + running: Any = ... + def resolve(self, name: Any, timeout: int = ...) -> None: ... + def run(self) -> None: ... + def stop(self) -> None: ... + def crash(self) -> None: ... + def iterate(self, delay: int = ...) -> None: ... + def fireSystemEvent(self, eventType: Any) -> None: ... + def addSystemEventTrigger(self, phase: Any, eventType: Any, callable: Any, *args: Any, **kw: Any) -> None: ... + def removeSystemEventTrigger(self, triggerID: Any) -> None: ... + def callWhenRunning(self, callable: Any, *args: Any, **kw: Any) -> None: ... + + +reactor = ReactorType() diff --git a/stubs/twisted/internet/abstract.pyi b/stubs/twisted/internet/abstract.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/internet/abstract.pyi @@ -0,0 +1,51 @@ +# Stubs for twisted.internet.abstract (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +class _ConsumerMixin: + producer: Any = ... + producerPaused: bool = ... + streamingProducer: bool = ... + def startWriting(self) -> None: ... + def registerProducer(self, producer: Any, streaming: Any) -> None: ... + def unregisterProducer(self) -> None: ... + +class _LogOwner: + def logPrefix(self): ... + +class FileDescriptor(_ConsumerMixin, _LogOwner): + connected: int = ... + disconnected: int = ... + disconnecting: int = ... + dataBuffer: bytes = ... + offset: int = ... + SEND_LIMIT: Any = ... + reactor: Any = ... + def __init__(self, reactor: Optional[Any] = ...) -> None: ... + producer: Any = ... + def connectionLost(self, reason: Any) -> None: ... + def writeSomeData(self, data: Any) -> None: ... + def doRead(self) -> None: ... + producerPaused: bool = ... + def doWrite(self): ... + def writeConnectionLost(self, reason: Any) -> None: ... + def readConnectionLost(self, reason: Any) -> None: ... + def write(self, data: Any) -> None: ... + def writeSequence(self, iovec: Any) -> None: ... + def loseConnection(self, _connDone: Any = ...) -> None: ... + def loseWriteConnection(self) -> None: ... + def stopReading(self) -> None: ... + def stopWriting(self) -> None: ... + def startReading(self) -> None: ... + def startWriting(self) -> None: ... + bufferSize: Any = ... + def stopConsuming(self) -> None: ... + def resumeProducing(self) -> None: ... + def pauseProducing(self) -> None: ... + def stopProducing(self) -> None: ... + def fileno(self): ... + +def isIPAddress(addr: Any, family: Any = ...): ... +def isIPv6Address(addr: Any): ... diff --git a/stubs/twisted/internet/defer.pyi b/stubs/twisted/internet/defer.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/internet/defer.pyi @@ -0,0 +1,124 @@ +# Stubs for twisted.internet.defer (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from twisted.python import lockfile +from typing import Any, Callable, Generic, Optional, TypeVar + +class AlreadyCalledError(Exception): ... +class CancelledError(Exception): ... +class TimeoutError(Exception): ... + +def succeed(result: Any): ... +def fail(result: Optional[Any] = ...): ... +def maybeDeferred(f: Any, *args: Any, **kw: Any): ... + +T = TypeVar('T') +class Deferred(Generic[T]): + called: bool = ... + paused: bool = ... + debug: bool = ... + callbacks: Any = ... + def __init__(self, canceller: Optional[Any] = ...) -> None: ... + def addCallbacks(self, + callback: Callable[[T], Any], + errback: Optional[Any] = ..., + callbackArgs: Optional[Any] = ..., + callbackKeywords: Optional[Any] = ..., + errbackArgs: Optional[Any] = ..., + errbackKeywords: Optional[Any] = ...): ... + def addCallback(self, callback: Callable[[T], Any], *args: Any, **kw: Any): ... + def addErrback(self, errback: Any, *args: Any, **kw: Any): ... + def addBoth(self, callback: Callable[[T], Any], *args: Any, **kw: Any): ... + def addTimeout(self, timeout: Any, clock: Any, onTimeoutCancel: Optional[Any] = ...): ... + def chainDeferred(self, d: Any): ... + def callback(self, result: T) -> None: ... + def errback(self, fail: Optional[Any] = ...) -> None: ... + def pause(self) -> None: ... + def unpause(self) -> None: ... + def cancel(self) -> None: ... + def __iter__(self): ... + def send(self, value: Optional[Any] = ...): ... + __await__: Any = ... + __next__: Any = ... + def asFuture(self, loop: Any): ... + @classmethod + def fromFuture(cls, future: Any): ... + +def ensureDeferred(coro: Any): ... + +class DebugInfo: + failResult: Any = ... + def __del__(self) -> None: ... + +class FirstError(Exception): + subFailure: Any = ... + index: Any = ... + def __init__(self, failure: Any, index: Any) -> None: ... + def __cmp__(self, other: Any): ... + +class DeferredList(Deferred): + fireOnOneCallback: bool = ... + fireOnOneErrback: bool = ... + resultList: Any = ... + consumeErrors: Any = ... + finishedCount: int = ... + def __init__(self, deferredList: Any, fireOnOneCallback: bool = ..., fireOnOneErrback: bool = ..., consumeErrors: bool = ...) -> None: ... + def cancel(self) -> None: ... + +def gatherResults(deferredList: Any, consumeErrors: bool = ...): ... + +SUCCESS: bool +FAILURE: bool + +class waitForDeferred: + d: Any = ... + def __init__(self, d: Any) -> None: ... + def getResult(self): ... + +def deferredGenerator(f: Any): ... + +class _DefGen_Return(BaseException): + value: Any = ... + def __init__(self, value: Any) -> None: ... + +def returnValue(val: Any) -> None: ... + +class _InternalInlineCallbacksCancelledError(Exception): ... + +def inlineCallbacks(f: Any): ... + +class _ConcurrencyPrimitive: + waiting: Any = ... + def __init__(self) -> None: ... + def run(*args: Any, **kwargs: Any): ... + +class DeferredLock(_ConcurrencyPrimitive): + locked: bool = ... + def acquire(self): ... + def release(self) -> None: ... + +class DeferredSemaphore(_ConcurrencyPrimitive): + tokens: Any = ... + limit: Any = ... + def __init__(self, tokens: Any) -> None: ... + def acquire(self): ... + def release(self) -> None: ... + +class QueueOverflow(Exception): ... +class QueueUnderflow(Exception): ... + +class DeferredQueue: + waiting: Any = ... + pending: Any = ... + size: Any = ... + backlog: Any = ... + def __init__(self, size: Optional[Any] = ..., backlog: Optional[Any] = ...) -> None: ... + def put(self, obj: Any) -> None: ... + def get(self): ... + +class AlreadyTryingToLockError(Exception): ... + +class DeferredFilesystemLock(lockfile.FilesystemLock): + def __init__(self, name: Any, scheduler: Optional[Any] = ...) -> None: ... + def deferUntilLocked(self, timeout: Optional[Any] = ...): ... diff --git a/stubs/twisted/internet/error.pyi b/stubs/twisted/internet/error.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/internet/error.pyi @@ -0,0 +1,84 @@ +# Stubs for twisted.internet.error (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +class BindError(Exception): ... + +class CannotListenError(BindError): + interface: Any = ... + port: Any = ... + socketError: Any = ... + def __init__(self, interface: Any, port: Any, socketError: Any) -> None: ... + +class MulticastJoinError(Exception): ... +class MessageLengthError(Exception): ... +class DNSLookupError(IOError): ... +class ConnectInProgressError(Exception): ... + +class ConnectError(Exception): + osError: Any = ... + def __init__(self, osError: Optional[Any] = ..., string: str = ...) -> None: ... + +class ConnectBindError(ConnectError): ... +class UnknownHostError(ConnectError): ... +class NoRouteError(ConnectError): ... +class ConnectionRefusedError(ConnectError): ... +class TCPTimedOutError(ConnectError): ... +class BadFileError(ConnectError): ... +class ServiceNameUnknownError(ConnectError): ... +class UserError(ConnectError): ... +class TimeoutError(UserError): ... +class SSLError(ConnectError): ... +class VerifyError(Exception): ... +class PeerVerifyError(VerifyError): ... +class CertificateError(Exception): ... + +def getConnectError(e: Any): ... + +class ConnectionClosed(Exception): ... +class ConnectionLost(ConnectionClosed): ... +class ConnectionAborted(ConnectionLost): ... +class ConnectionDone(ConnectionClosed): ... +class FileDescriptorOverrun(ConnectionLost): ... +class ConnectionFdescWentAway(ConnectionLost): ... +class AlreadyCalled(ValueError): ... +class AlreadyCancelled(ValueError): ... + +class PotentialZombieWarning(Warning): + MESSAGE: str = ... + +class ProcessDone(ConnectionDone): + exitCode: int = ... + signal: Any = ... + status: Any = ... + def __init__(self, status: Any) -> None: ... + +class ProcessTerminated(ConnectionLost): + exitCode: Any = ... + signal: Any = ... + status: Any = ... + def __init__(self, exitCode: Optional[Any] = ..., signal: Optional[Any] = ..., status: Optional[Any] = ...) -> None: ... + +class ProcessExitedAlready(Exception): ... +class NotConnectingError(RuntimeError): ... +class NotListeningError(RuntimeError): ... +class ReactorNotRunning(RuntimeError): ... +class ReactorNotRestartable(RuntimeError): ... +class ReactorAlreadyRunning(RuntimeError): ... +class ReactorAlreadyInstalledError(AssertionError): ... + +class ConnectingCancelledError(Exception): + address: Any = ... + def __init__(self, address: Any) -> None: ... + +class NoProtocol(Exception): ... +class UnsupportedAddressFamily(Exception): ... +class UnsupportedSocketType(Exception): ... +class AlreadyListened(Exception): ... + +class InvalidAddressError(ValueError): + address: Any = ... + message: Any = ... + def __init__(self, address: Any, message: Any) -> None: ... diff --git a/stubs/twisted/internet/inotify.pyi b/stubs/twisted/internet/inotify.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/internet/inotify.pyi @@ -0,0 +1,49 @@ +# Stubs for twisted.internet.inotify (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from twisted.internet.abstract import FileDescriptor +from typing import Any, Optional + +IN_ACCESS: int +IN_MODIFY: int +IN_ATTRIB: int +IN_CLOSE_WRITE: int +IN_CLOSE_NOWRITE: int +IN_OPEN: int +IN_MOVED_FROM: int +IN_MOVED_TO: int +IN_CREATE: int +IN_DELETE: int +IN_DELETE_SELF: int +IN_MOVE_SELF: int +IN_UNMOUNT: int +IN_Q_OVERFLOW: int +IN_IGNORED: int +IN_ONLYDIR: int +IN_DONT_FOLLOW: int +IN_MASK_ADD: int +IN_ISDIR: int +IN_ONESHOT: int +IN_CLOSE: Any +IN_MOVED: Any +IN_CHANGED: Any +IN_WATCH_MASK: Any + +def humanReadableMask(mask: Any): ... + +class _Watch: + path: Any = ... + mask: Any = ... + autoAdd: Any = ... + callbacks: Any = ... + def __init__(self, path: Any, mask: Any = ..., autoAdd: bool = ..., callbacks: Optional[Any] = ...) -> None: ... + +class INotify(FileDescriptor): + connected: int = ... + def __init__(self, reactor: Optional[Any] = ...) -> None: ... + def connectionLost(self, reason: Any) -> None: ... + def fileno(self): ... + def doRead(self) -> None: ... + def watch(self, path: Any, mask: Any = ..., autoAdd: bool = ..., callbacks: Optional[Any] = ..., recursive: bool = ...): ... + def ignore(self, path: Any) -> None: ... diff --git a/stubs/twisted/internet/protocol.pyi b/stubs/twisted/internet/protocol.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/internet/protocol.pyi @@ -0,0 +1,138 @@ +# Stubs for twisted.internet.protocol (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from twisted.python import components +from typing import Any, Optional + +class Factory: + protocol: Any = ... + numPorts: int = ... + noisy: bool = ... + @classmethod + def forProtocol(cls, protocol: Any, *args: Any, **kwargs: Any): ... + def logPrefix(self): ... + def doStart(self) -> None: ... + def doStop(self) -> None: ... + def startFactory(self) -> None: ... + def stopFactory(self) -> None: ... + def buildProtocol(self, addr: Any): ... + +class ClientFactory(Factory): + def startedConnecting(self, connector: Any) -> None: ... + def clientConnectionFailed(self, connector: Any, reason: Any) -> None: ... + def clientConnectionLost(self, connector: Any, reason: Any) -> None: ... + +class _InstanceFactory(ClientFactory): + noisy: bool = ... + pending: Any = ... + reactor: Any = ... + instance: Any = ... + deferred: Any = ... + def __init__(self, reactor: Any, instance: Any, deferred: Any) -> None: ... + def buildProtocol(self, addr: Any): ... + def clientConnectionFailed(self, connector: Any, reason: Any) -> None: ... + def fire(self, func: Any, value: Any) -> None: ... + +class ClientCreator: + reactor: Any = ... + protocolClass: Any = ... + args: Any = ... + kwargs: Any = ... + def __init__(self, reactor: Any, protocolClass: Any, *args: Any, **kwargs: Any) -> None: ... + def connectTCP(self, host: Any, port: Any, timeout: int = ..., bindAddress: Optional[Any] = ...): ... + def connectUNIX(self, address: Any, timeout: int = ..., checkPID: bool = ...): ... + def connectSSL(self, host: Any, port: Any, contextFactory: Any, timeout: int = ..., bindAddress: Optional[Any] = ...): ... + +class ReconnectingClientFactory(ClientFactory): + maxDelay: int = ... + initialDelay: float = ... + factor: float = ... + jitter: float = ... + delay: Any = ... + retries: int = ... + maxRetries: Any = ... + connector: Any = ... + clock: Any = ... + continueTrying: int = ... + def clientConnectionFailed(self, connector: Any, reason: Any) -> None: ... + def clientConnectionLost(self, connector: Any, unused_reason: Any) -> None: ... + def retry(self, connector: Optional[Any] = ...) -> None: ... + def stopTrying(self) -> None: ... + def resetDelay(self) -> None: ... + +class ServerFactory(Factory): ... + +class BaseProtocol: + connected: int = ... + transport: Any = ... + def makeConnection(self, transport: Any) -> None: ... + def connectionMade(self) -> None: ... + +connectionDone: Any + +class Protocol(BaseProtocol): + def logPrefix(self): ... + def dataReceived(self, data: Any) -> None: ... + def connectionLost(self, reason: Any) -> None: ... + +class ProtocolToConsumerAdapter(components.Adapter): + def write(self, data: Any) -> None: ... + def registerProducer(self, producer: Any, streaming: Any) -> None: ... + def unregisterProducer(self) -> None: ... + +class ConsumerToProtocolAdapter(components.Adapter): + def dataReceived(self, data: Any) -> None: ... + def connectionLost(self, reason: Any) -> None: ... + def makeConnection(self, transport: Any) -> None: ... + def connectionMade(self) -> None: ... + +class ProcessProtocol(BaseProtocol): + def childDataReceived(self, childFD: Any, data: Any) -> None: ... + def outReceived(self, data: Any) -> None: ... + def errReceived(self, data: Any) -> None: ... + def childConnectionLost(self, childFD: Any) -> None: ... + def inConnectionLost(self) -> None: ... + def outConnectionLost(self) -> None: ... + def errConnectionLost(self) -> None: ... + def processExited(self, reason: Any) -> None: ... + def processEnded(self, reason: Any) -> None: ... + +class AbstractDatagramProtocol: + transport: Any = ... + numPorts: int = ... + noisy: bool = ... + def doStart(self) -> None: ... + def doStop(self) -> None: ... + def startProtocol(self) -> None: ... + def stopProtocol(self) -> None: ... + def makeConnection(self, transport: Any) -> None: ... +# def datagramReceived(self, datagram: Any, addr: Any) -> None: ... + +class DatagramProtocol(AbstractDatagramProtocol): + def logPrefix(self): ... + def connectionRefused(self) -> None: ... + +class ConnectedDatagramProtocol(DatagramProtocol): +# def datagramReceived(self, datagram: Any) -> None: ... + def connectionFailed(self, failure: Any) -> None: ... + +class FileWrapper: + closed: int = ... + disconnecting: int = ... + producer: Any = ... + streamingProducer: int = ... + file: Any = ... + def __init__(self, file: Any) -> None: ... + def write(self, data: Any) -> None: ... + def registerProducer(self, producer: Any, streaming: Any) -> None: ... + def unregisterProducer(self) -> None: ... + def stopConsuming(self) -> None: ... + def writeSequence(self, iovec: Any) -> None: ... + def loseConnection(self) -> None: ... + def getPeer(self): ... + def getHost(self): ... + def handleException(self) -> None: ... + def resumeProducing(self) -> None: ... + def pauseProducing(self) -> None: ... + def stopProducing(self) -> None: ... diff --git a/stubs/twisted/python/__init__.pyi b/stubs/twisted/python/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/python/__init__.pyi @@ -0,0 +1,10 @@ +# Stubs for twisted.python (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from .compat import unicode +from .deprecate import deprecatedModuleAttribute +from .versions import Version +from typing import Any + +log: Any diff --git a/stubs/twisted/python/_oldstyle.pyi b/stubs/twisted/python/_oldstyle.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/python/_oldstyle.pyi @@ -0,0 +1,3 @@ +from typing import Any + +_replaceIf = Any diff --git a/stubs/twisted/python/compat.pyi b/stubs/twisted/python/compat.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/python/compat.pyi @@ -0,0 +1,5 @@ +# Stubs for twisted.python.compat (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +def unicode(s): ... diff --git a/stubs/twisted/python/components.pyi b/stubs/twisted/python/components.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/python/components.pyi @@ -0,0 +1,50 @@ +# Stubs for twisted.python.components (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def registerAdapter(adapterFactory: Any, origInterface: Any, *interfaceClasses: Any) -> None: ... +def getAdapterFactory(fromInterface: Any, toInterface: Any, default: Any): ... +def getRegistry(): ... +CannotAdapt = TypeError + +class Adapter: + temporaryAdapter: int = ... + multiComponent: int = ... + original: Any = ... + def __init__(self, original: Any) -> None: ... + def __conform__(self, interface: Any): ... + def isuper(self, iface: Any, adapter: Any): ... + +class Componentized: + persistenceVersion: int = ... + def __init__(self) -> None: ... + def locateAdapterClass(self, klass: Any, interfaceClass: Any, default: Any): ... + def setAdapter(self, interfaceClass: Any, adapterClass: Any) -> None: ... + def addAdapter(self, adapterClass: Any, ignoreClass: int = ...): ... + def setComponent(self, interfaceClass: Any, component: Any) -> None: ... + def addComponent(self, component: Any, ignoreClass: int = ...) -> None: ... + def unsetComponent(self, interfaceClass: Any) -> None: ... + def removeComponent(self, component: Any): ... + def getComponent(self, interface: Any, default: Optional[Any] = ...): ... + def __conform__(self, interface: Any): ... + +class ReprableComponentized(Componentized): + def __init__(self) -> None: ... + +def proxyForInterface(iface: Any, originalAttribute: str = ...): ... + +class _ProxiedClassMethod: + methodName: Any = ... + originalAttribute: Any = ... + def __init__(self, methodName: Any, originalAttribute: Any) -> None: ... + def __call__(self, oself: Any, *args: Any, **kw: Any): ... + +class _ProxyDescriptor: + attributeName: Any = ... + originalAttribute: Any = ... + def __init__(self, attributeName: Any, originalAttribute: Any) -> None: ... + def __get__(self, oself: Any, type: Optional[Any] = ...): ... + def __set__(self, oself: Any, value: Any) -> None: ... + def __delete__(self, oself: Any) -> None: ... diff --git a/stubs/twisted/python/deprecate.pyi b/stubs/twisted/python/deprecate.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/python/deprecate.pyi @@ -0,0 +1,32 @@ +# Stubs for twisted.python.deprecate (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +def getDeprecationWarningString(callableThing: Any, version: Any, format: Optional[Any] = ..., replacement: Optional[Any] = ...): ... +def deprecated(version: Any, replacement: Optional[Any] = ...): ... +def deprecatedProperty(version: Any, replacement: Optional[Any] = ...): ... +def getWarningMethod(): ... +def setWarningMethod(newMethod: Any) -> None: ... + +class _InternalState: + def __init__(self, proxy: Any) -> None: ... + def __getattribute__(self, name: Any): ... + def __setattr__(self, name: Any, value: Any): ... + +class _ModuleProxy: + def __init__(self, module: Any) -> None: ... + def __setattr__(self, name: Any, value: Any) -> None: ... + def __getattribute__(self, name: Any): ... + +class _DeprecatedAttribute: + module: Any = ... + __name__: Any = ... + fqpn: Any = ... + version: Any = ... + message: Any = ... + def __init__(self, module: Any, name: Any, version: Any, message: Any) -> None: ... + def get(self): ... + +def deprecatedModuleAttribute(version: Any, message: Any, moduleName: Any, name: Any) -> None: ... diff --git a/stubs/twisted/python/failure.pyi b/stubs/twisted/python/failure.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/python/failure.pyi @@ -0,0 +1,61 @@ +# Stubs for twisted.python.failure (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +count: int +traceupLength: int + +class DefaultException(Exception): ... + +def format_frames(frames: Any, write: Any, detail: str = ...) -> None: ... + +EXCEPTION_CAUGHT_HERE: str + +class NoCurrentExceptionError(Exception): ... + +class _TracebackFrame: + tb_frame: Any = ... + tb_lineno: Any = ... + tb_next: Any = ... + def __init__(self, frame: Any, tb_next: Any) -> None: ... + +class _Frame: + f_code: Any = ... + f_globals: Any = ... + f_locals: Any = ... + def __init__(self, name: Any, filename: Any) -> None: ... + +class _Code: + co_name: Any = ... + co_filename: Any = ... + def __init__(self, name: Any, filename: Any) -> None: ... + +class Failure(BaseException): + pickled: int = ... + stack: Any = ... + count: Any = ... + type: Any = ... + captureVars: Any = ... + value: Any = ... + tb: Any = ... + parents: Any = ... + def __init__(self, exc_value: Optional[Any] = ..., exc_type: Optional[Any] = ..., exc_tb: Optional[Any] = ..., captureVars: bool = ...) -> None: ... + def trap(self, *errorTypes: Any): ... + def check(self, *errorTypes: Any): ... + def raiseException(self) -> None: ... + def throwExceptionIntoGenerator(self, g: Any): ... + __dict__: Any = ... + def cleanFailure(self) -> None: ... + def getTracebackObject(self): ... + def getErrorMessage(self): ... + def getBriefTraceback(self): ... + def getTraceback(self, elideFrameworkCode: int = ..., detail: str = ...): ... + def printTraceback(self, file: Optional[Any] = ..., elideFrameworkCode: bool = ..., detail: str = ...) -> None: ... + def printBriefTraceback(self, file: Optional[Any] = ..., elideFrameworkCode: int = ...) -> None: ... + def printDetailedTraceback(self, file: Optional[Any] = ..., elideFrameworkCode: int = ...) -> None: ... + +DO_POST_MORTEM: bool + +def startDebugMode() -> None: ... diff --git a/stubs/twisted/python/filepath.pyi b/stubs/twisted/python/filepath.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/python/filepath.pyi @@ -0,0 +1,121 @@ +# Stubs for twisted.python.filepath (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +import base64 +import os +from twisted.python.util import FancyEqMixin +from typing import Any, Optional +from zope.interface import Interface + +islink: Any +randomBytes = os.urandom +armor = base64.urlsafe_b64encode + +class IFilePath(Interface): + def child(self, name: Any) -> None: ... + def open(self, mode: str = ...) -> None: ... + def changed(self, ) -> None: ... + def getsize(self, ) -> None: ... + def getModificationTime(self, ) -> None: ... + def getStatusChangeTime(self, ) -> None: ... + def getAccessTime(self, ) -> None: ... + def exists(self, ) -> None: ... + def isdir(self, ) -> None: ... + def isfile(self, ) -> None: ... + def children(self, ) -> None: ... + def basename(self, ) -> None: ... + def parent(self, ) -> None: ... + def sibling(self, name: Any) -> None: ... + +class InsecurePath(Exception): ... +class LinkError(Exception): ... + +class UnlistableError(OSError): + originalException: Any = ... + def __init__(self, originalException: Any) -> None: ... + +class _WindowsUnlistableError(UnlistableError, WindowsError): ... + +class AbstractFilePath: + def getContent(self): ... + def parents(self) -> None: ... + def children(self): ... + def walk(self, descend: Optional[Any] = ...) -> None: ... + def sibling(self, path: Any): ... + def descendant(self, segments: Any): ... + def segmentsFrom(self, ancestor: Any): ... + def __hash__(self): ... + def getmtime(self): ... + def getatime(self): ... + def getctime(self): ... + +class RWX(FancyEqMixin): + compareAttributes: Any = ... + read: Any = ... + write: Any = ... + execute: Any = ... + def __init__(self, readable: Any, writable: Any, executable: Any) -> None: ... + def shorthand(self): ... + +class Permissions(FancyEqMixin): + compareAttributes: Any = ... + def __init__(self, statModeInt: Any) -> None: ... + def shorthand(self): ... + +class _SpecialNoValue: ... + +class FilePath(AbstractFilePath): + path: Any = ... + alwaysCreate: Any = ... + def __init__(self, path: Any, alwaysCreate: bool = ...) -> None: ... + @property + def sep(self): ... + def asBytesMode(self, encoding: Optional[Any] = ...): ... + def asTextMode(self, encoding: Optional[Any] = ...): ... + def child(self, path: Any): ... + def preauthChild(self, path: Any): ... + def childSearchPreauth(self, *paths: Any): ... + def siblingExtensionSearch(self, *exts: Any): ... + def realpath(self): ... + def siblingExtension(self, ext: Any): ... + def linkTo(self, linkFilePath: Any) -> None: ... + def open(self, mode: str = ...): ... + def restat(self, reraise: bool = ...) -> None: ... + def changed(self) -> None: ... + def chmod(self, mode: Any) -> None: ... + def getsize(self): ... + def getModificationTime(self): ... + def getStatusChangeTime(self): ... + def getAccessTime(self): ... + def getInodeNumber(self): ... + def getDevice(self): ... + def getNumberOfHardLinks(self): ... + def getUserID(self): ... + def getGroupID(self): ... + def getPermissions(self): ... + def exists(self): ... + def isdir(self): ... + def isfile(self): ... + def isBlockDevice(self): ... + def isSocket(self): ... + def islink(self): ... + def isabs(self): ... + def listdir(self): ... + def splitext(self): ... + def touch(self) -> None: ... + def remove(self) -> None: ... + def makedirs(self, ignoreExistingDirectory: bool = ...): ... + def globChildren(self, pattern: Any): ... + def basename(self): ... + def dirname(self): ... + def parent(self): ... + def setContent(self, content: Any, ext: bytes = ...) -> None: ... + def __cmp__(self, other: Any): ... + def createDirectory(self) -> None: ... + def requireCreate(self, val: int = ...) -> None: ... + def create(self): ... + def temporarySibling(self, extension: bytes = ...): ... + def copyTo(self, destination: Any, followLinks: bool = ...) -> None: ... + def moveTo(self, destination: Any, followLinks: bool = ...) -> None: ... + def statinfo(self, value: Any = ...): ... diff --git a/stubs/twisted/python/lockfile.pyi b/stubs/twisted/python/lockfile.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/python/lockfile.pyi @@ -0,0 +1,15 @@ +# Stubs for twisted.python.lockfile (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +class FilesystemLock: + clean: Any = ... + locked: bool = ... + name: Any = ... + def __init__(self, name: Any) -> None: ... + def lock(self): ... + def unlock(self) -> None: ... + +def isLocked(name: Any): ... diff --git a/stubs/twisted/python/util.pyi b/stubs/twisted/python/util.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/python/util.pyi @@ -0,0 +1,104 @@ +# Stubs for twisted.python.util (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from collections import OrderedDict as OrderedDict +from twisted.python._oldstyle import _replaceIf as _replaceIf +from typing import Any, Optional + +class InsensitiveDict: + data: Any = ... + preserve: Any = ... + def __init__(self, dict: Optional[Any] = ..., preserve: int = ...) -> None: ... + def __delitem__(self, key: Any) -> None: ... + def __getitem__(self, key: Any): ... + def __setitem__(self, key: Any, value: Any) -> None: ... + def has_key(self, key: Any): ... + __contains__: Any = ... + def keys(self): ... + def values(self): ... + def items(self): ... + def get(self, key: Any, default: Optional[Any] = ...): ... + def setdefault(self, key: Any, default: Any): ... + def update(self, dict: Any) -> None: ... + def iterkeys(self) -> None: ... + def itervalues(self) -> None: ... + def iteritems(self) -> None: ... + def popitem(self): ... + def clear(self) -> None: ... + def copy(self): ... + def __len__(self): ... + def __eq__(self, other: Any): ... + +def uniquify(lst: Any): ... +def padTo(n: Any, seq: Any, default: Optional[Any] = ...): ... +def getPluginDirs(): ... +def addPluginDir() -> None: ... +def sibpath(path: Any, sibling: Any): ... +def getPassword(prompt: str = ..., confirm: int = ..., forceTTY: int = ..., confirmPrompt: str = ..., mismatchMessage: str = ...): ... +def println(*a: Any) -> None: ... +def spewer(frame: Any, s: Any, ignored: Any) -> None: ... +def searchupwards(start: Any, files: Any = ..., dirs: Any = ...): ... + +class LineLog: + log: Any = ... + size: Any = ... + def __init__(self, size: int = ...) -> None: ... + def append(self, line: Any) -> None: ... + def str(self): ... + def __bytes__(self): ... + def __getitem__(self, item: Any): ... + def clear(self) -> None: ... + +def raises(exception: Any, f: Any, *args: Any, **kwargs: Any): ... + +class IntervalDifferential: + intervals: Any = ... + default: Any = ... + def __init__(self, intervals: Any, default: int = ...) -> None: ... + def __iter__(self): ... + +class _IntervalDifferentialIterator: + intervals: Any = ... + default: Any = ... + last: int = ... + def __init__(self, i: Any, d: Any) -> None: ... + def __next__(self): ... + next: Any = ... + def addInterval(self, i: Any) -> None: ... + def removeInterval(self, interval: Any) -> None: ... + +class FancyStrMixin: + showAttributes: Any = ... + +class FancyEqMixin: + compareAttributes: Any = ... + def __eq__(self, other: Any): ... + def __ne__(self, other: Any): ... + +def switchUID(uid: Any, gid: Any, euid: bool = ...) -> None: ... + +class SubclassableCStringIO: + def __init__(self, *a: Any, **kw: Any) -> None: ... + def __iter__(self): ... + def next(self): ... + def close(self): ... + def isatty(self): ... + def seek(self, pos: Any, mode: int = ...): ... + def tell(self): ... + def read(self, n: int = ...): ... + def readline(self, length: Optional[Any] = ...): ... + def readlines(self, sizehint: int = ...): ... + def truncate(self, size: Optional[Any] = ...): ... + def write(self, s: Any): ... + def writelines(self, list: Any): ... + def flush(self): ... + def getvalue(self): ... + +def untilConcludes(f: Any, *a: Any, **kw: Any): ... +def mergeFunctionMetadata(f: Any, g: Any): ... +def nameToLabel(mname: Any): ... +def uidFromString(uidString: Any): ... +def gidFromString(gidString: Any): ... +def runAsEffectiveUser(euid: Any, egid: Any, function: Any, *args: Any, **kwargs: Any): ... +def runWithWarningsSuppressed(suppressedWarnings: Any, f: Any, *args: Any, **kwargs: Any): ... diff --git a/stubs/twisted/python/versions.pyi b/stubs/twisted/python/versions.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/python/versions.pyi @@ -0,0 +1,5 @@ +# Stubs for twisted.python.versions (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from incremental import IncomparableVersions as IncomparableVersions, Version as Version, getVersionString as getVersionString diff --git a/stubs/twisted/python/win32.pyi b/stubs/twisted/python/win32.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/python/win32.pyi @@ -0,0 +1,11 @@ +# Stubs for twisted.python.win32 (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +ERROR_FILE_NOT_FOUND: int +ERROR_PATH_NOT_FOUND: int +ERROR_INVALID_NAME: int +ERROR_DIRECTORY: int +O_BINARY: Any diff --git a/stubs/twisted/web/__init__.pyi b/stubs/twisted/web/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/twisted/web/__init__.pyi @@ -0,0 +1,1 @@ + diff --git a/stubs/txzmq/__init__.pyi b/stubs/txzmq/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/txzmq/__init__.pyi @@ -0,0 +1,10 @@ +# Stubs for txzmq (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from txzmq.connection import ZmqConnection as ZmqConnection, ZmqEndpoint as ZmqEndpoint, ZmqEndpointType as ZmqEndpointType +from txzmq.factory import ZmqFactory as ZmqFactory +from txzmq.pubsub import ZmqPubConnection as ZmqPubConnection, ZmqSubConnection as ZmqSubConnection +from txzmq.pushpull import ZmqPullConnection as ZmqPullConnection, ZmqPushConnection as ZmqPushConnection +from txzmq.req_rep import ZmqREPConnection as ZmqREPConnection, ZmqREQConnection as ZmqREQConnection, ZmqRequestTimeoutError as ZmqRequestTimeoutError +from txzmq.router_dealer import ZmqDealerConnection as ZmqDealerConnection, ZmqRouterConnection as ZmqRouterConnection diff --git a/stubs/txzmq/compat.pyi b/stubs/txzmq/compat.pyi new file mode 100644 --- /dev/null +++ b/stubs/txzmq/compat.pyi @@ -0,0 +1,11 @@ +# Stubs for txzmq.compat (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +PY3: Any +binary_string_type = bytes +binary_string_type = str + +def is_nonstr_iter(v: Any): ... diff --git a/stubs/txzmq/connection.pyi b/stubs/txzmq/connection.pyi new file mode 100644 --- /dev/null +++ b/stubs/txzmq/connection.pyi @@ -0,0 +1,42 @@ +# Stubs for txzmq.connection (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any, Optional + +ZMQ3: Any + +class ZmqEndpointType: + bind: str = ... + connect: str = ... + +class ZmqEndpoint: ... + +class ZmqConnection: + socketType: Any = ... + allowLoopbackMulticast: bool = ... + multicastRate: int = ... + highWaterMark: int = ... + tcpKeepalive: int = ... + tcpKeepaliveCount: int = ... + tcpKeepaliveIdle: int = ... + tcpKeepaliveInterval: int = ... + reconnectInterval: int = ... + reconnectIntervalMax: int = ... + factory: Any = ... + endpoints: Any = ... + identity: Any = ... + socket: Any = ... + queue: Any = ... + recv_parts: Any = ... + read_scheduled: Any = ... + fd: Any = ... + def __init__(self, factory: Any, endpoint: Optional[Any] = ..., identity: Optional[Any] = ...) -> None: ... + def addEndpoints(self, endpoints: Any) -> None: ... + def shutdown(self) -> None: ... + def fileno(self): ... + def connectionLost(self, reason: Any) -> None: ... + def doRead(self) -> None: ... + def logPrefix(self): ... + def send(self, message: Any) -> None: ... + def messageReceived(self, message: Any) -> None: ... diff --git a/stubs/txzmq/factory.pyi b/stubs/txzmq/factory.pyi new file mode 100644 --- /dev/null +++ b/stubs/txzmq/factory.pyi @@ -0,0 +1,16 @@ +# Stubs for txzmq.factory (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from typing import Any + +class ZmqFactory: + reactor: Any = ... + ioThreads: int = ... + lingerPeriod: int = ... + trigger: Any = ... + connections: Any = ... + context: Any = ... + def __init__(self) -> None: ... + def shutdown(self) -> None: ... + def registerForShutdown(self) -> None: ... diff --git a/stubs/txzmq/pubsub.pyi b/stubs/txzmq/pubsub.pyi new file mode 100644 --- /dev/null +++ b/stubs/txzmq/pubsub.pyi @@ -0,0 +1,17 @@ +# Stubs for txzmq.pubsub (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from txzmq.connection import ZmqConnection +from typing import Any + +class ZmqPubConnection(ZmqConnection): + socketType: Any = ... + def publish(self, message: Any, tag: bytes = ...) -> None: ... + +class ZmqSubConnection(ZmqConnection): + socketType: Any = ... + def subscribe(self, tag: Any) -> None: ... + def unsubscribe(self, tag: Any) -> None: ... + def messageReceived(self, message: Any) -> None: ... + def gotMessage(self, message: Any, tag: Any) -> None: ... diff --git a/stubs/txzmq/pushpull.pyi b/stubs/txzmq/pushpull.pyi new file mode 100644 --- /dev/null +++ b/stubs/txzmq/pushpull.pyi @@ -0,0 +1,15 @@ +# Stubs for txzmq.pushpull (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from txzmq.connection import ZmqConnection +from typing import Any + +class ZmqPushConnection(ZmqConnection): + socketType: Any = ... + def push(self, message: Any) -> None: ... + +class ZmqPullConnection(ZmqConnection): + socketType: Any = ... + def messageReceived(self, message: Any) -> None: ... + def onPull(self, message: Any) -> None: ... diff --git a/stubs/txzmq/req_rep.pyi b/stubs/txzmq/req_rep.pyi new file mode 100644 --- /dev/null +++ b/stubs/txzmq/req_rep.pyi @@ -0,0 +1,29 @@ +# Stubs for txzmq.req_rep (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from txzmq.connection import ZmqConnection +from typing import Any + +class ZmqRequestTimeoutError(Exception): ... + +class ZmqREQConnection(ZmqConnection): + socketType: Any = ... + defaultRequestTimeout: Any = ... + UUID_POOL_GEN_SIZE: int = ... + def __init__(self, *args: Any, **kwargs: Any) -> None: ... + def sendMsg(self, *messageParts: Any, **kwargs: Any): ... + def messageReceived(self, message: Any) -> None: ... + +class ZmqREPConnection(ZmqConnection): + socketType: Any = ... + def __init__(self, *args: Any, **kwargs: Any) -> None: ... + def reply(self, messageId: Any, *messageParts: Any) -> None: ... + def messageReceived(self, message: Any) -> None: ... + def gotMessage(self, messageId: Any, *messageParts: Any) -> None: ... + +class ZmqXREPConnection(ZmqREPConnection): + def __init__(self, factory: Any, *endpoints: Any) -> None: ... + +class ZmqXREQConnection(ZmqREQConnection): + def __init__(self, factory: Any, *endpoints: Any) -> None: ... diff --git a/stubs/txzmq/router_dealer.pyi b/stubs/txzmq/router_dealer.pyi new file mode 100644 --- /dev/null +++ b/stubs/txzmq/router_dealer.pyi @@ -0,0 +1,21 @@ +# Stubs for txzmq.router_dealer (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from txzmq.connection import ZmqConnection +from typing import Any + +class ZmqBase(ZmqConnection): + def sendMsg(self, message: Any) -> None: ... + def sendMultipart(self, parts: Any) -> None: ... + def messageReceived(self, message: Any) -> None: ... + def gotMessage(self, *args: Any, **kwargs: Any) -> None: ... + +class ZmqDealerConnection(ZmqBase): + socketType: Any = ... + +class ZmqRouterConnection(ZmqBase): + socketType: Any = ... + def sendMsg(self, recipientId: Any, message: Any) -> None: ... + def sendMultipart(self, recipientId: Any, parts: Any) -> None: ... + def messageReceived(self, message: Any) -> None: ... diff --git a/stubs/txzmq/test/__init__.pyi b/stubs/txzmq/test/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/txzmq/test/__init__.pyi @@ -0,0 +1,4 @@ +# Stubs for txzmq.test (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + diff --git a/stubs/txzmq/test/test_connection.pyi b/stubs/txzmq/test/test_connection.pyi new file mode 100644 --- /dev/null +++ b/stubs/txzmq/test/test_connection.pyi @@ -0,0 +1,27 @@ +# Stubs for txzmq.test.test_connection (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from twisted.trial import unittest +from txzmq.connection import ZmqConnection +from typing import Any + +class ZmqTestSender(ZmqConnection): + socketType: Any = ... + +class ZmqTestReceiver(ZmqConnection): + socketType: Any = ... + messages: Any = ... + def messageReceived(self, message: Any) -> None: ... + +class ZmqConnectionTestCase(unittest.TestCase): + factory: Any = ... + def setUp(self) -> None: ... + def tearDown(self) -> None: ... + def test_interfaces(self) -> None: ... + def test_init(self) -> None: ... + def test_addEndpoints(self): ... + def test_repr(self) -> None: ... + def test_send_recv(self): ... + def test_send_recv_tcp(self): ... + def test_send_recv_tcp_large(self): ... diff --git a/stubs/txzmq/test/test_factory.pyi b/stubs/txzmq/test/test_factory.pyi new file mode 100644 --- /dev/null +++ b/stubs/txzmq/test/test_factory.pyi @@ -0,0 +1,11 @@ +# Stubs for txzmq.test.test_factory (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from twisted.trial import unittest +from typing import Any + +class ZmqFactoryTestCase(unittest.TestCase): + factory: Any = ... + def setUp(self) -> None: ... + def test_shutdown(self) -> None: ... diff --git a/stubs/txzmq/test/test_pubsub.pyi b/stubs/txzmq/test/test_pubsub.pyi new file mode 100644 --- /dev/null +++ b/stubs/txzmq/test/test_pubsub.pyi @@ -0,0 +1,19 @@ +# Stubs for txzmq.test.test_pubsub (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from twisted.trial import unittest +from txzmq.pubsub import ZmqSubConnection +from typing import Any + +class ZmqTestSubConnection(ZmqSubConnection): + messages: Any = ... + def gotMessage(self, message: Any, tag: Any) -> None: ... + +class ZmqConnectionTestCase(unittest.TestCase): + factory: Any = ... + def setUp(self) -> None: ... + def tearDown(self) -> None: ... + def test_send_recv(self): ... + def test_send_recv_pgm(self): ... + def test_send_recv_multiple_endpoints(self): ... diff --git a/stubs/txzmq/test/test_reactor_shutdown.pyi b/stubs/txzmq/test/test_reactor_shutdown.pyi new file mode 100644 --- /dev/null +++ b/stubs/txzmq/test/test_reactor_shutdown.pyi @@ -0,0 +1,11 @@ +# Stubs for txzmq.test.test_reactor_shutdown (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from twisted.internet.test.reactormixins import ReactorBuilder +from typing import Any + +class ZmqReactorShutdownTestCase(ReactorBuilder): + requiredInterfaces: Any = ... + def test_reactor_and_factory_shutdown(self) -> None: ... + def test_reactor_shutdown(self) -> None: ... diff --git a/stubs/txzmq/test/test_reqrep.pyi b/stubs/txzmq/test/test_reqrep.pyi new file mode 100644 --- /dev/null +++ b/stubs/txzmq/test/test_reqrep.pyi @@ -0,0 +1,49 @@ +# Stubs for txzmq.test.test_reqrep (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from twisted.trial import unittest +from txzmq.req_rep import ZmqREPConnection, ZmqREQConnection +from typing import Any + +class ZmqTestREPConnection(ZmqREPConnection): + messages: Any = ... + def gotMessage(self, messageId: Any, *messageParts: Any) -> None: ... + +class ZmqSlowREPConnection(ZmqREPConnection): + def gotMessage(self, messageId: Any, *messageParts: Any) -> None: ... + +class ZmqREQREPConnectionTestCase(unittest.TestCase): + factory: Any = ... + r: Any = ... + s: Any = ... + def setUp(self) -> None: ... + def tearDown(self) -> None: ... + def test_getNextId(self) -> None: ... + def test_releaseId(self) -> None: ... + count: int = ... + def test_send_recv(self): ... + def test_send_recv_reply(self): ... + def test_lot_send_recv_reply(self): ... + def test_cleanup_requests(self): ... + def test_cancel(self): ... + def test_send_timeout_ok(self): ... + def test_send_timeout_fail(self): ... + +class ZmqReplyConnection(ZmqREPConnection): + message_count: int = ... + def messageReceived(self, message: Any) -> None: ... + +class ZmqRequestConnection(ZmqREQConnection): + message_count: int = ... + def messageReceived(self, message: Any) -> None: ... + +class ZmqREQREPTwoFactoryConnectionTestCase(unittest.TestCase): + REQUEST_COUNT: int = ... + factory1: Any = ... + factory2: Any = ... + c1: Any = ... + c2: Any = ... + def setUp(self) -> None: ... + def tearDown(self) -> None: ... + def test_start(self): ... diff --git a/stubs/txzmq/test/test_router_dealer.pyi b/stubs/txzmq/test/test_router_dealer.pyi new file mode 100644 --- /dev/null +++ b/stubs/txzmq/test/test_router_dealer.pyi @@ -0,0 +1,25 @@ +# Stubs for txzmq.test.test_router_dealer (Python 3) +# +# NOTE: This dynamically typed stub was automatically generated by stubgen. + +from twisted.trial import unittest +from txzmq.router_dealer import ZmqDealerConnection, ZmqRouterConnection +from typing import Any + +class ZmqTestRouterConnection(ZmqRouterConnection): + message_count: int = ... + def gotMessage(self, senderId: Any, message: Any) -> None: ... + +class ZmqTestDealerConnection(ZmqDealerConnection): + message_count: int = ... + def gotMessage(self, message: Any) -> None: ... + +class ZmqRouterDealerTwoFactoryConnectionTestCase(unittest.TestCase): + REQUEST_COUNT: int = ... + factory1: Any = ... + dealer: Any = ... + factory2: Any = ... + router: Any = ... + def setUp(self) -> None: ... + def tearDown(self) -> None: ... + def test_start(self): ... diff --git a/stubs/xmlrpc/__init__.pyi b/stubs/xmlrpc/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/xmlrpc/__init__.pyi @@ -0,0 +1,3 @@ + +from typing import Any + diff --git a/stubs/xmlrpc/client.pyi b/stubs/xmlrpc/client.pyi new file mode 100644 --- /dev/null +++ b/stubs/xmlrpc/client.pyi @@ -0,0 +1,1 @@ + diff --git a/stubs/zope/__init__.pyi b/stubs/zope/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/zope/__init__.pyi @@ -0,0 +1,4 @@ +from typing import Any + +declarations: Any +interface: Any diff --git a/stubs/zope/interface/__init__.pyi b/stubs/zope/interface/__init__.pyi new file mode 100644 --- /dev/null +++ b/stubs/zope/interface/__init__.pyi @@ -0,0 +1,5 @@ +from typing import Any + +#from zope.interface.declarations import Declaration as Declaration, alsoProvides as alsoProvides, classImplements as classImplements, classImplementsOnly as classImplementsOnly, classProvides as classProvides, directlyProvidedBy as directlyProvidedBy, directlyProvides as directlyProvides, implementedBy as implementedBy, implementer as implementer, implementer_only as implementer_only, implements as implements, implementsOnly as implementsOnly, moduleProvides as moduleProvides, noLongerProvides as noLongerProvides, providedBy as providedBy, provider as provider +#from zope.interface.interface import Attribute as Attribute, Interface as Interface +Interface: Any