Datasets:
Add files using upload-large-folder tool
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +1 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/backports/__init__.pyi +4 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/backports/ssl_match_hostname.pyi +3 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/__init__.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/cache.pyi +20 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/lfu.pyi +14 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/characteristic/__init__.pyi +35 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/backends/__init__.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/backends/interfaces.pyi +196 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/bindings/__init__.pyi +0 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/bindings/openssl/__init__.pyi +0 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/bindings/openssl/binding.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/ciphers/__init__.pyi +44 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/ciphers/algorithms.pyi +76 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/ciphers/modes.pyi +94 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/x509/__init__.pyi +420 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/x509/extensions.pyi +22 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/x509/oid.pyi +106 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/emoji/__init__.pyi +13 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/emoji/core.pyi +9 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/emoji/unicode_codes.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/__init__.pyi +41 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/app.pyi +195 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/cli.pyi +68 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/globals.pyi +16 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/json/tag.pyi +67 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/logging.pyi +8 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/sessions.pyi +57 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/testing.pyi +56 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/views.pyi +17 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/wrappers.pyi +32 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/google/__init__.pyi +0 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/google/protobuf/api_pb2.pyi +114 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/google/protobuf/descriptor_pool.pyi +18 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/google/protobuf/field_mask_pb2.pyi +50 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/google/protobuf/service.pyi +39 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/maxminddb/__init__.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/maxminddb/compat.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/maxminddb/const.pyi +6 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/maxminddb/decoder.pyi +5 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/maxminddb/errors.pyi +1 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/maxminddb/extension.pyi +33 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/maxminddb/reader.pyi +34 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/paramiko/_version.pyi +3 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/paramiko/_winapi.pyi +97 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/paramiko/agent.pyi +67 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/paramiko/auth_handler.pyi +49 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/paramiko/ber.pyi +17 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/paramiko/buffered_pipe.pyi +16 -0
- material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/paramiko/channel.pyi +99 -0
.gitattributes
CHANGED
|
@@ -459,3 +459,4 @@ material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:
|
|
| 459 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/axes/__pycache__/_axes.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 460 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono-Oblique.ttf filter=lfs diff=lfs merge=lfs -text
|
| 461 |
material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:]]Masks/TiO2_Masks_Manual_4connected/1908256_m.tif filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
| 459 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/axes/__pycache__/_axes.cpython-310.pyc filter=lfs diff=lfs merge=lfs -text
|
| 460 |
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/mpl-data/fonts/ttf/DejaVuSansMono-Oblique.ttf filter=lfs diff=lfs merge=lfs -text
|
| 461 |
material/dataset/Datasets/Electron[[:space:]]Microscopy[[:space:]]Image[[:space:]]Masks/TiO2_Masks_Manual_4connected/1908256_m.tif filter=lfs diff=lfs merge=lfs -text
|
| 462 |
+
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/matplotlib/mpl-data/fonts/ttf/STIXGeneralItalic.ttf filter=lfs diff=lfs merge=lfs -text
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/backports/__init__.pyi
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
# Explicitly mark this package as incomplete.
|
| 4 |
+
def __getattr__(name: str) -> Any: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/backports/ssl_match_hostname.pyi
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
class CertificateError(ValueError): ...
|
| 2 |
+
|
| 3 |
+
def match_hostname(cert, hostname): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/__init__.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .cache import Cache as Cache
|
| 2 |
+
from .decorators import cached as cached, cachedmethod as cachedmethod
|
| 3 |
+
from .lfu import LFUCache as LFUCache
|
| 4 |
+
from .lru import LRUCache as LRUCache
|
| 5 |
+
from .rr import RRCache as RRCache
|
| 6 |
+
from .ttl import TTLCache as TTLCache
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/cache.pyi
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Callable, Generic, Iterator, Optional, TypeVar
|
| 2 |
+
|
| 3 |
+
from .abc import DefaultMapping as DefaultMapping
|
| 4 |
+
|
| 5 |
+
_KT = TypeVar("_KT")
|
| 6 |
+
_VT = TypeVar("_VT")
|
| 7 |
+
|
| 8 |
+
class Cache(DefaultMapping[_KT, _VT], Generic[_KT, _VT]):
|
| 9 |
+
def __init__(self, maxsize: int, getsizeof: Optional[Callable[[_VT], int]] = ...) -> None: ...
|
| 10 |
+
def __getitem__(self, key: _KT) -> _VT: ...
|
| 11 |
+
def __setitem__(self, key: _KT, value: _VT) -> None: ...
|
| 12 |
+
def __delitem__(self, key: _KT) -> None: ...
|
| 13 |
+
def __iter__(self) -> Iterator[_KT]: ...
|
| 14 |
+
def __len__(self) -> int: ...
|
| 15 |
+
@property
|
| 16 |
+
def maxsize(self) -> int: ...
|
| 17 |
+
@property
|
| 18 |
+
def currsize(self) -> int: ...
|
| 19 |
+
@staticmethod
|
| 20 |
+
def getsizeof(value: _VT) -> int: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cachetools/lfu.pyi
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Callable, Iterator, Optional, TypeVar
|
| 2 |
+
|
| 3 |
+
from .cache import Cache
|
| 4 |
+
|
| 5 |
+
_KT = TypeVar("_KT")
|
| 6 |
+
_VT = TypeVar("_VT")
|
| 7 |
+
|
| 8 |
+
class LFUCache(Cache[_KT, _VT]):
|
| 9 |
+
def __init__(self, maxsize: int, getsizeof: Optional[Callable[[_VT], int]] = ...) -> None: ...
|
| 10 |
+
def __getitem__(self, key: _KT, cache_getitem: Callable[[_KT], _VT] = ...) -> _VT: ...
|
| 11 |
+
def __setitem__(self, key: _KT, value: _VT, cache_setitem: Callable[[_KT, _VT], None] = ...) -> None: ...
|
| 12 |
+
def __delitem__(self, key: _KT, cache_delitem: Callable[[_KT], None] = ...) -> None: ...
|
| 13 |
+
def __iter__(self) -> Iterator[_KT]: ...
|
| 14 |
+
def __len__(self) -> int: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/characteristic/__init__.pyi
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, AnyStr, Callable, Dict, Optional, Sequence, Type, TypeVar, Union
|
| 2 |
+
|
| 3 |
+
def with_repr(attrs: Sequence[Union[AnyStr, Attribute]]) -> Callable[..., Any]: ...
|
| 4 |
+
def with_cmp(attrs: Sequence[Union[AnyStr, Attribute]]) -> Callable[..., Any]: ...
|
| 5 |
+
def with_init(attrs: Sequence[Union[AnyStr, Attribute]]) -> Callable[..., Any]: ...
|
| 6 |
+
def immutable(attrs: Sequence[Union[AnyStr, Attribute]]) -> Callable[..., Any]: ...
|
| 7 |
+
def strip_leading_underscores(attribute_name: AnyStr) -> AnyStr: ...
|
| 8 |
+
|
| 9 |
+
NOTHING = Any
|
| 10 |
+
|
| 11 |
+
_T = TypeVar("_T")
|
| 12 |
+
|
| 13 |
+
def attributes(
|
| 14 |
+
attrs: Sequence[Union[AnyStr, Attribute]],
|
| 15 |
+
apply_with_cmp: bool = ...,
|
| 16 |
+
apply_with_init: bool = ...,
|
| 17 |
+
apply_with_repr: bool = ...,
|
| 18 |
+
apply_immutable: bool = ...,
|
| 19 |
+
store_attributes: Optional[Callable[[type, Attribute], Any]] = ...,
|
| 20 |
+
**kw: Optional[Dict[Any, Any]],
|
| 21 |
+
) -> Callable[[Type[_T]], Type[_T]]: ...
|
| 22 |
+
|
| 23 |
+
class Attribute:
|
| 24 |
+
def __init__(
|
| 25 |
+
self,
|
| 26 |
+
name: AnyStr,
|
| 27 |
+
exclude_from_cmp: bool = ...,
|
| 28 |
+
exclude_from_init: bool = ...,
|
| 29 |
+
exclude_from_repr: bool = ...,
|
| 30 |
+
exclude_from_immutable: bool = ...,
|
| 31 |
+
default_value: Any = ...,
|
| 32 |
+
default_factory: Optional[Callable[[None], Any]] = ...,
|
| 33 |
+
instance_of: Optional[Any] = ...,
|
| 34 |
+
init_aliaser: Optional[Callable[[AnyStr], AnyStr]] = ...,
|
| 35 |
+
) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/backends/__init__.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
def default_backend() -> Any: ...
|
| 4 |
+
|
| 5 |
+
# TODO: add some backends
|
| 6 |
+
def __getattr__(name: str) -> Any: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/backends/interfaces.pyi
ADDED
|
@@ -0,0 +1,196 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta, abstractmethod
|
| 2 |
+
from typing import Any, Optional, Union
|
| 3 |
+
|
| 4 |
+
from cryptography.hazmat.primitives.asymmetric.dh import (
|
| 5 |
+
DHParameterNumbers,
|
| 6 |
+
DHParameters,
|
| 7 |
+
DHPrivateKey,
|
| 8 |
+
DHPrivateNumbers,
|
| 9 |
+
DHPublicKey,
|
| 10 |
+
DHPublicNumbers,
|
| 11 |
+
)
|
| 12 |
+
from cryptography.hazmat.primitives.asymmetric.dsa import (
|
| 13 |
+
DSAParameterNumbers,
|
| 14 |
+
DSAParameters,
|
| 15 |
+
DSAPrivateKey,
|
| 16 |
+
DSAPrivateNumbers,
|
| 17 |
+
DSAPublicKey,
|
| 18 |
+
DSAPublicNumbers,
|
| 19 |
+
)
|
| 20 |
+
from cryptography.hazmat.primitives.asymmetric.ec import (
|
| 21 |
+
EllipticCurve,
|
| 22 |
+
EllipticCurvePrivateKey,
|
| 23 |
+
EllipticCurvePrivateNumbers,
|
| 24 |
+
EllipticCurvePublicKey,
|
| 25 |
+
EllipticCurvePublicNumbers,
|
| 26 |
+
EllipticCurveSignatureAlgorithm,
|
| 27 |
+
)
|
| 28 |
+
from cryptography.hazmat.primitives.asymmetric.padding import AsymmetricPadding
|
| 29 |
+
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKey, RSAPrivateNumbers, RSAPublicKey, RSAPublicNumbers
|
| 30 |
+
from cryptography.hazmat.primitives.ciphers import BlockCipherAlgorithm, CipherAlgorithm, CipherContext
|
| 31 |
+
from cryptography.hazmat.primitives.ciphers.modes import Mode
|
| 32 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm, HashContext
|
| 33 |
+
from cryptography.x509 import (
|
| 34 |
+
Certificate,
|
| 35 |
+
CertificateBuilder,
|
| 36 |
+
CertificateRevocationList,
|
| 37 |
+
CertificateRevocationListBuilder,
|
| 38 |
+
CertificateSigningRequest,
|
| 39 |
+
CertificateSigningRequestBuilder,
|
| 40 |
+
Name,
|
| 41 |
+
RevokedCertificate,
|
| 42 |
+
RevokedCertificateBuilder,
|
| 43 |
+
)
|
| 44 |
+
|
| 45 |
+
class CipherBackend(metaclass=ABCMeta):
|
| 46 |
+
@abstractmethod
|
| 47 |
+
def cipher_supported(self, cipher: CipherAlgorithm, mode: Mode) -> bool: ...
|
| 48 |
+
@abstractmethod
|
| 49 |
+
def create_symmetric_encryption_ctx(self, cipher: CipherAlgorithm, mode: Mode) -> CipherContext: ...
|
| 50 |
+
@abstractmethod
|
| 51 |
+
def create_symmetric_decryption_ctx(self, cipher: CipherAlgorithm, mode: Mode) -> CipherContext: ...
|
| 52 |
+
|
| 53 |
+
class CMACBackend(metaclass=ABCMeta):
|
| 54 |
+
@abstractmethod
|
| 55 |
+
def cmac_algorithm_supported(self, algorithm: BlockCipherAlgorithm) -> bool: ...
|
| 56 |
+
@abstractmethod
|
| 57 |
+
def create_cmac_ctx(self, algorithm: BlockCipherAlgorithm) -> Any: ...
|
| 58 |
+
|
| 59 |
+
class DERSerializationBackend(metaclass=ABCMeta):
|
| 60 |
+
@abstractmethod
|
| 61 |
+
def load_der_parameters(self, data: bytes) -> Any: ...
|
| 62 |
+
@abstractmethod
|
| 63 |
+
def load_der_private_key(self, data: bytes, password: Optional[bytes]) -> Any: ...
|
| 64 |
+
@abstractmethod
|
| 65 |
+
def load_der_public_key(self, data: bytes) -> Any: ...
|
| 66 |
+
|
| 67 |
+
class DHBackend(metaclass=ABCMeta):
|
| 68 |
+
@abstractmethod
|
| 69 |
+
def dh_parameters_supported(self, p: int, g: int, q: Optional[int]) -> bool: ...
|
| 70 |
+
@abstractmethod
|
| 71 |
+
def dh_x942_serialization_supported(self) -> bool: ...
|
| 72 |
+
@abstractmethod
|
| 73 |
+
def generate_dh_parameters(self, generator: int, key_size: int) -> DHParameters: ...
|
| 74 |
+
@abstractmethod
|
| 75 |
+
def generate_dh_private_key(self, parameters: DHParameters) -> DHPrivateKey: ...
|
| 76 |
+
@abstractmethod
|
| 77 |
+
def generate_dh_private_key_and_parameters(self, generator: int, key_size: int) -> DHPrivateKey: ...
|
| 78 |
+
@abstractmethod
|
| 79 |
+
def load_dh_parameter_numbers(self, numbers: DHParameterNumbers) -> DHParameters: ...
|
| 80 |
+
@abstractmethod
|
| 81 |
+
def load_dh_private_numbers(self, numbers: DHPrivateNumbers) -> DHPrivateKey: ...
|
| 82 |
+
@abstractmethod
|
| 83 |
+
def load_dh_public_numbers(self, numbers: DHPublicNumbers) -> DHPublicKey: ...
|
| 84 |
+
|
| 85 |
+
class DSABackend(metaclass=ABCMeta):
|
| 86 |
+
@abstractmethod
|
| 87 |
+
def dsa_hash_supported(self, algorithm: HashAlgorithm) -> bool: ...
|
| 88 |
+
@abstractmethod
|
| 89 |
+
def dsa_parameters_supported(self, p: int, q: int, g: int) -> bool: ...
|
| 90 |
+
@abstractmethod
|
| 91 |
+
def generate_dsa_parameters(self, key_size: int) -> DSAParameters: ...
|
| 92 |
+
@abstractmethod
|
| 93 |
+
def generate_dsa_private_key(self, parameters: DSAParameters) -> DSAPrivateKey: ...
|
| 94 |
+
@abstractmethod
|
| 95 |
+
def generate_dsa_private_key_and_parameters(self, key_size: int) -> DSAPrivateKey: ...
|
| 96 |
+
@abstractmethod
|
| 97 |
+
def load_dsa_parameter_numbers(self, numbers: DSAParameterNumbers) -> DSAParameters: ...
|
| 98 |
+
@abstractmethod
|
| 99 |
+
def load_dsa_private_numbers(self, numbers: DSAPrivateNumbers) -> DSAPrivateKey: ...
|
| 100 |
+
@abstractmethod
|
| 101 |
+
def load_dsa_public_numbers(self, numbers: DSAPublicNumbers) -> DSAPublicKey: ...
|
| 102 |
+
|
| 103 |
+
class EllipticCurveBackend(metaclass=ABCMeta):
|
| 104 |
+
@abstractmethod
|
| 105 |
+
def derive_elliptic_curve_private_key(self, private_value: int, curve: EllipticCurve) -> EllipticCurvePrivateKey: ...
|
| 106 |
+
@abstractmethod
|
| 107 |
+
def elliptic_curve_signature_algorithm_supported(
|
| 108 |
+
self, signature_algorithm: EllipticCurveSignatureAlgorithm, curve: EllipticCurve
|
| 109 |
+
) -> bool: ...
|
| 110 |
+
@abstractmethod
|
| 111 |
+
def elliptic_curve_supported(self, curve: EllipticCurve) -> bool: ...
|
| 112 |
+
@abstractmethod
|
| 113 |
+
def generate_elliptic_curve_private_key(self, curve: EllipticCurve) -> EllipticCurvePrivateKey: ...
|
| 114 |
+
@abstractmethod
|
| 115 |
+
def load_elliptic_curve_private_numbers(self, numbers: EllipticCurvePrivateNumbers) -> EllipticCurvePrivateKey: ...
|
| 116 |
+
@abstractmethod
|
| 117 |
+
def load_elliptic_curve_public_numbers(self, numbers: EllipticCurvePublicNumbers) -> EllipticCurvePublicKey: ...
|
| 118 |
+
|
| 119 |
+
class HMACBackend(metaclass=ABCMeta):
|
| 120 |
+
@abstractmethod
|
| 121 |
+
def create_hmac_ctx(self, key: bytes, algorithm: HashAlgorithm) -> HashContext: ...
|
| 122 |
+
@abstractmethod
|
| 123 |
+
def cmac_algorithm_supported(self, algorithm: HashAlgorithm) -> bool: ...
|
| 124 |
+
|
| 125 |
+
class HashBackend(metaclass=ABCMeta):
|
| 126 |
+
@abstractmethod
|
| 127 |
+
def create_hash_ctx(self, algorithm: HashAlgorithm) -> HashContext: ...
|
| 128 |
+
@abstractmethod
|
| 129 |
+
def hash_supported(self, algorithm: HashAlgorithm) -> bool: ...
|
| 130 |
+
|
| 131 |
+
class PBKDF2HMACBackend(metaclass=ABCMeta):
|
| 132 |
+
@abstractmethod
|
| 133 |
+
def derive_pbkdf2_hmac(
|
| 134 |
+
self, algorithm: HashAlgorithm, length: int, salt: bytes, iterations: int, key_material: bytes
|
| 135 |
+
) -> bytes: ...
|
| 136 |
+
@abstractmethod
|
| 137 |
+
def pbkdf2_hmac_supported(self, algorithm: HashAlgorithm) -> bool: ...
|
| 138 |
+
|
| 139 |
+
class PEMSerializationBackend(metaclass=ABCMeta):
|
| 140 |
+
@abstractmethod
|
| 141 |
+
def load_pem_parameters(self, data: bytes) -> Any: ...
|
| 142 |
+
@abstractmethod
|
| 143 |
+
def load_pem_private_key(self, data: bytes, password: Optional[bytes]) -> Any: ...
|
| 144 |
+
@abstractmethod
|
| 145 |
+
def load_pem_public_key(self, data: bytes) -> Any: ...
|
| 146 |
+
|
| 147 |
+
class RSABackend(metaclass=ABCMeta):
|
| 148 |
+
@abstractmethod
|
| 149 |
+
def generate_rsa_parameters_supported(self, public_exponent: int, key_size: int) -> bool: ...
|
| 150 |
+
@abstractmethod
|
| 151 |
+
def generate_rsa_private_key(self, public_exponent: int, key_size: int) -> RSAPrivateKey: ...
|
| 152 |
+
@abstractmethod
|
| 153 |
+
def load_rsa_public_numbers(self, numbers: RSAPublicNumbers) -> RSAPublicKey: ...
|
| 154 |
+
@abstractmethod
|
| 155 |
+
def load_rsa_private_numbers(self, numbers: RSAPrivateNumbers) -> RSAPrivateKey: ...
|
| 156 |
+
@abstractmethod
|
| 157 |
+
def rsa_padding_supported(self, padding: AsymmetricPadding) -> bool: ...
|
| 158 |
+
|
| 159 |
+
class ScryptBackend(metaclass=ABCMeta):
|
| 160 |
+
@abstractmethod
|
| 161 |
+
def derive_scrypt(self, key_material: bytes, salt: bytes, length: int, n: int, r: int, p: int) -> bytes: ...
|
| 162 |
+
|
| 163 |
+
class X509Backend(metaclass=ABCMeta):
|
| 164 |
+
@abstractmethod
|
| 165 |
+
def create_x509_certificate(
|
| 166 |
+
self,
|
| 167 |
+
builder: CertificateBuilder,
|
| 168 |
+
private_key: Union[DSAPrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],
|
| 169 |
+
algorithm: HashAlgorithm,
|
| 170 |
+
) -> Certificate: ...
|
| 171 |
+
@abstractmethod
|
| 172 |
+
def create_x509_crl(
|
| 173 |
+
self,
|
| 174 |
+
builder: CertificateRevocationListBuilder,
|
| 175 |
+
private_key: Union[DSAPrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],
|
| 176 |
+
algorithm: HashAlgorithm,
|
| 177 |
+
) -> CertificateRevocationList: ...
|
| 178 |
+
@abstractmethod
|
| 179 |
+
def create_x509_csr(
|
| 180 |
+
self,
|
| 181 |
+
builder: CertificateSigningRequestBuilder,
|
| 182 |
+
private_key: Union[DSAPrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],
|
| 183 |
+
algorithm: HashAlgorithm,
|
| 184 |
+
) -> CertificateSigningRequest: ...
|
| 185 |
+
@abstractmethod
|
| 186 |
+
def create_x509_revoked_certificate(self, builder: RevokedCertificateBuilder) -> RevokedCertificate: ...
|
| 187 |
+
@abstractmethod
|
| 188 |
+
def load_der_x509_certificate(self, data: bytes) -> Certificate: ...
|
| 189 |
+
@abstractmethod
|
| 190 |
+
def load_der_x509_csr(self, data: bytes) -> CertificateSigningRequest: ...
|
| 191 |
+
@abstractmethod
|
| 192 |
+
def load_pem_x509_certificate(self, data: bytes) -> Certificate: ...
|
| 193 |
+
@abstractmethod
|
| 194 |
+
def load_pem_x509_csr(self, data: bytes) -> CertificateSigningRequest: ...
|
| 195 |
+
@abstractmethod
|
| 196 |
+
def x509_name_bytes(self, name: Name) -> bytes: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/bindings/__init__.pyi
ADDED
|
File without changes
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/bindings/openssl/__init__.pyi
ADDED
|
File without changes
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/bindings/openssl/binding.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional
|
| 2 |
+
|
| 3 |
+
class Binding(object):
|
| 4 |
+
ffi: Optional[Any]
|
| 5 |
+
lib: Optional[Any]
|
| 6 |
+
def init_static_locks(self) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/ciphers/__init__.pyi
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta, abstractmethod
|
| 2 |
+
from typing import Optional
|
| 3 |
+
|
| 4 |
+
from cryptography.hazmat.backends.interfaces import CipherBackend
|
| 5 |
+
from cryptography.hazmat.primitives.ciphers.modes import Mode
|
| 6 |
+
|
| 7 |
+
class AEADCipherContext(metaclass=ABCMeta):
|
| 8 |
+
@abstractmethod
|
| 9 |
+
def authenticate_additional_data(self, data: bytes) -> None: ...
|
| 10 |
+
|
| 11 |
+
class AEADDecryptionContext(metaclass=ABCMeta):
|
| 12 |
+
@abstractmethod
|
| 13 |
+
def finalize_with_tag(self, tag: bytes) -> bytes: ...
|
| 14 |
+
|
| 15 |
+
class AEADEncryptionContext(metaclass=ABCMeta):
|
| 16 |
+
@property
|
| 17 |
+
@abstractmethod
|
| 18 |
+
def tag(self) -> bytes: ...
|
| 19 |
+
|
| 20 |
+
class BlockCipherAlgorithm(metaclass=ABCMeta):
|
| 21 |
+
@property
|
| 22 |
+
@abstractmethod
|
| 23 |
+
def block_size(self) -> int: ...
|
| 24 |
+
|
| 25 |
+
class Cipher(object):
|
| 26 |
+
def __init__(self, algorithm: CipherAlgorithm, mode: Optional[Mode], backend: Optional[CipherBackend] = ...) -> None: ...
|
| 27 |
+
def decryptor(self) -> CipherContext: ...
|
| 28 |
+
def encryptor(self) -> CipherContext: ...
|
| 29 |
+
|
| 30 |
+
class CipherAlgorithm(metaclass=ABCMeta):
|
| 31 |
+
@property
|
| 32 |
+
@abstractmethod
|
| 33 |
+
def key_size(self) -> int: ...
|
| 34 |
+
@property
|
| 35 |
+
@abstractmethod
|
| 36 |
+
def name(self) -> str: ...
|
| 37 |
+
|
| 38 |
+
class CipherContext(metaclass=ABCMeta):
|
| 39 |
+
@abstractmethod
|
| 40 |
+
def finalize(self) -> bytes: ...
|
| 41 |
+
@abstractmethod
|
| 42 |
+
def update(self, data: bytes) -> bytes: ...
|
| 43 |
+
@abstractmethod
|
| 44 |
+
def update_into(self, data: bytes, buf: bytearray) -> int: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/ciphers/algorithms.pyi
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import FrozenSet
|
| 2 |
+
|
| 3 |
+
from cryptography.hazmat.primitives.ciphers import BlockCipherAlgorithm, CipherAlgorithm
|
| 4 |
+
from cryptography.hazmat.primitives.ciphers.modes import ModeWithNonce
|
| 5 |
+
|
| 6 |
+
class AES(BlockCipherAlgorithm, CipherAlgorithm):
|
| 7 |
+
def __init__(self, key: bytes) -> None: ...
|
| 8 |
+
block_size: int = ...
|
| 9 |
+
name: str = ...
|
| 10 |
+
key_sizes: FrozenSet[int] = ...
|
| 11 |
+
@property
|
| 12 |
+
def key_size(self) -> int: ...
|
| 13 |
+
|
| 14 |
+
class ARC4(CipherAlgorithm):
|
| 15 |
+
def __init__(self, key: bytes) -> None: ...
|
| 16 |
+
@property
|
| 17 |
+
def key_size(self) -> int: ...
|
| 18 |
+
name: str = ...
|
| 19 |
+
key_sizes: FrozenSet[int] = ...
|
| 20 |
+
|
| 21 |
+
class Blowfish(BlockCipherAlgorithm, CipherAlgorithm):
|
| 22 |
+
def __init__(self, key: bytes) -> None: ...
|
| 23 |
+
@property
|
| 24 |
+
def key_size(self) -> int: ...
|
| 25 |
+
block_size: int = ...
|
| 26 |
+
name: str = ...
|
| 27 |
+
key_sizes: FrozenSet[int] = ...
|
| 28 |
+
|
| 29 |
+
class Camellia(BlockCipherAlgorithm, CipherAlgorithm):
|
| 30 |
+
def __init__(self, key: bytes) -> None: ...
|
| 31 |
+
@property
|
| 32 |
+
def key_size(self) -> int: ...
|
| 33 |
+
block_size: int = ...
|
| 34 |
+
name: str = ...
|
| 35 |
+
key_sizes: FrozenSet[int] = ...
|
| 36 |
+
|
| 37 |
+
class CAST5(BlockCipherAlgorithm, CipherAlgorithm):
|
| 38 |
+
def __init__(self, key: bytes) -> None: ...
|
| 39 |
+
@property
|
| 40 |
+
def key_size(self) -> int: ...
|
| 41 |
+
block_size: int = ...
|
| 42 |
+
name: str = ...
|
| 43 |
+
key_sizes: FrozenSet[int] = ...
|
| 44 |
+
|
| 45 |
+
class ChaCha20(CipherAlgorithm, ModeWithNonce):
|
| 46 |
+
def __init__(self, key: bytes, nonce: bytes) -> None: ...
|
| 47 |
+
@property
|
| 48 |
+
def key_size(self) -> int: ...
|
| 49 |
+
name: str = ...
|
| 50 |
+
key_sizes: FrozenSet[int] = ...
|
| 51 |
+
@property
|
| 52 |
+
def nonce(self) -> bytes: ...
|
| 53 |
+
|
| 54 |
+
class IDEA(CipherAlgorithm):
|
| 55 |
+
def __init__(self, key: bytes) -> None: ...
|
| 56 |
+
@property
|
| 57 |
+
def key_size(self) -> int: ...
|
| 58 |
+
block_size: int = ...
|
| 59 |
+
name: str = ...
|
| 60 |
+
key_sizes: FrozenSet[int] = ...
|
| 61 |
+
|
| 62 |
+
class SEED(BlockCipherAlgorithm, CipherAlgorithm):
|
| 63 |
+
def __init__(self, key: bytes) -> None: ...
|
| 64 |
+
@property
|
| 65 |
+
def key_size(self) -> int: ...
|
| 66 |
+
block_size: int = ...
|
| 67 |
+
name: str = ...
|
| 68 |
+
key_sizes: FrozenSet[int] = ...
|
| 69 |
+
|
| 70 |
+
class TripleDES(BlockCipherAlgorithm, CipherAlgorithm):
|
| 71 |
+
def __init__(self, key: bytes) -> None: ...
|
| 72 |
+
@property
|
| 73 |
+
def key_size(self) -> int: ...
|
| 74 |
+
block_size: int = ...
|
| 75 |
+
name: str = ...
|
| 76 |
+
key_sizes: FrozenSet[int] = ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/hazmat/primitives/ciphers/modes.pyi
ADDED
|
@@ -0,0 +1,94 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta, abstractmethod
|
| 2 |
+
from typing import Optional
|
| 3 |
+
|
| 4 |
+
from cryptography.hazmat.primitives.ciphers import CipherAlgorithm
|
| 5 |
+
|
| 6 |
+
class Mode(metaclass=ABCMeta):
|
| 7 |
+
@property
|
| 8 |
+
@abstractmethod
|
| 9 |
+
def name(self) -> str: ...
|
| 10 |
+
@abstractmethod
|
| 11 |
+
def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...
|
| 12 |
+
|
| 13 |
+
class ModeWithAuthenticationTag(metaclass=ABCMeta):
|
| 14 |
+
@property
|
| 15 |
+
@abstractmethod
|
| 16 |
+
def tag(self) -> bytes: ...
|
| 17 |
+
|
| 18 |
+
class ModeWithInitializationVector(metaclass=ABCMeta):
|
| 19 |
+
@property
|
| 20 |
+
@abstractmethod
|
| 21 |
+
def initialization_vector(self) -> bytes: ...
|
| 22 |
+
|
| 23 |
+
class ModeWithNonce(metaclass=ABCMeta):
|
| 24 |
+
@property
|
| 25 |
+
@abstractmethod
|
| 26 |
+
def nonce(self) -> bytes: ...
|
| 27 |
+
|
| 28 |
+
class ModeWithTweak(metaclass=ABCMeta):
|
| 29 |
+
@property
|
| 30 |
+
@abstractmethod
|
| 31 |
+
def tweak(self) -> bytes: ...
|
| 32 |
+
|
| 33 |
+
class CBC(Mode, ModeWithInitializationVector):
|
| 34 |
+
def __init__(self, initialization_vector: bytes) -> None: ...
|
| 35 |
+
@property
|
| 36 |
+
def initialization_vector(self) -> bytes: ...
|
| 37 |
+
@property
|
| 38 |
+
def name(self) -> str: ...
|
| 39 |
+
def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...
|
| 40 |
+
|
| 41 |
+
class CTR(Mode, ModeWithNonce):
|
| 42 |
+
def __init__(self, nonce: bytes) -> None: ...
|
| 43 |
+
@property
|
| 44 |
+
def name(self) -> str: ...
|
| 45 |
+
@property
|
| 46 |
+
def nonce(self) -> bytes: ...
|
| 47 |
+
def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...
|
| 48 |
+
|
| 49 |
+
class CFB(Mode, ModeWithInitializationVector):
|
| 50 |
+
def __init__(self, initialization_vector: bytes) -> None: ...
|
| 51 |
+
@property
|
| 52 |
+
def initialization_vector(self) -> bytes: ...
|
| 53 |
+
@property
|
| 54 |
+
def name(self) -> str: ...
|
| 55 |
+
def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...
|
| 56 |
+
|
| 57 |
+
class CFB8(Mode, ModeWithInitializationVector):
|
| 58 |
+
def __init__(self, initialization_vector: bytes) -> None: ...
|
| 59 |
+
@property
|
| 60 |
+
def initialization_vector(self) -> bytes: ...
|
| 61 |
+
@property
|
| 62 |
+
def name(self) -> str: ...
|
| 63 |
+
def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...
|
| 64 |
+
|
| 65 |
+
class ECB(Mode):
|
| 66 |
+
@property
|
| 67 |
+
def name(self) -> str: ...
|
| 68 |
+
def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...
|
| 69 |
+
|
| 70 |
+
class GCM(Mode, ModeWithInitializationVector, ModeWithAuthenticationTag):
|
| 71 |
+
def __init__(self, initialization_vector: bytes, tag: Optional[bytes], min_tag_length: Optional[int]) -> None: ...
|
| 72 |
+
@property
|
| 73 |
+
def initialization_vector(self) -> bytes: ...
|
| 74 |
+
@property
|
| 75 |
+
def name(self) -> str: ...
|
| 76 |
+
@property
|
| 77 |
+
def tag(self) -> bytes: ...
|
| 78 |
+
def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...
|
| 79 |
+
|
| 80 |
+
class OFB(Mode, ModeWithInitializationVector):
|
| 81 |
+
def __init__(self, initialization_vector: bytes) -> None: ...
|
| 82 |
+
@property
|
| 83 |
+
def initialization_vector(self) -> bytes: ...
|
| 84 |
+
@property
|
| 85 |
+
def name(self) -> str: ...
|
| 86 |
+
def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...
|
| 87 |
+
|
| 88 |
+
class XTS(Mode, ModeWithTweak):
|
| 89 |
+
def __init__(self, tweak: bytes) -> None: ...
|
| 90 |
+
@property
|
| 91 |
+
def name(self) -> str: ...
|
| 92 |
+
@property
|
| 93 |
+
def tweak(self) -> bytes: ...
|
| 94 |
+
def validate_for_algorithm(self, algorithm: CipherAlgorithm) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/x509/__init__.pyi
ADDED
|
@@ -0,0 +1,420 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import datetime
|
| 2 |
+
from abc import ABCMeta, abstractmethod
|
| 3 |
+
from enum import Enum
|
| 4 |
+
from ipaddress import IPv4Address, IPv4Network, IPv6Address, IPv6Network
|
| 5 |
+
from typing import Any, ClassVar, Generator, Generic, Iterable, List, Optional, Sequence, Text, Type, TypeVar, Union
|
| 6 |
+
|
| 7 |
+
from cryptography.hazmat.backends.interfaces import X509Backend
|
| 8 |
+
from cryptography.hazmat.primitives.asymmetric.dsa import DSAPrivateKey, DSAPublicKey
|
| 9 |
+
from cryptography.hazmat.primitives.asymmetric.ec import EllipticCurvePrivateKey, EllipticCurvePublicKey
|
| 10 |
+
from cryptography.hazmat.primitives.asymmetric.ed448 import Ed448PrivateKey, Ed448PublicKey
|
| 11 |
+
from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey, Ed25519PublicKey
|
| 12 |
+
from cryptography.hazmat.primitives.asymmetric.rsa import RSAPrivateKey, RSAPublicKey
|
| 13 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
| 14 |
+
from cryptography.hazmat.primitives.serialization import Encoding
|
| 15 |
+
|
| 16 |
+
class ObjectIdentifier(object):
|
| 17 |
+
dotted_string: str
|
| 18 |
+
def __init__(self, dotted_string: str) -> None: ...
|
| 19 |
+
|
| 20 |
+
class CRLEntryExtensionOID(object):
|
| 21 |
+
CERTIFICATE_ISSUER: ClassVar[ObjectIdentifier]
|
| 22 |
+
CRL_REASON: ClassVar[ObjectIdentifier]
|
| 23 |
+
INVALIDITY_DATE: ClassVar[ObjectIdentifier]
|
| 24 |
+
|
| 25 |
+
class ExtensionOID(object):
|
| 26 |
+
AUTHORITY_INFORMATION_ACCESS: ClassVar[ObjectIdentifier]
|
| 27 |
+
AUTHORITY_KEY_IDENTIFIER: ClassVar[ObjectIdentifier]
|
| 28 |
+
BASIC_CONSTRAINTS: ClassVar[ObjectIdentifier]
|
| 29 |
+
CERTIFICATE_POLICIES: ClassVar[ObjectIdentifier]
|
| 30 |
+
CRL_DISTRIBUTION_POINTS: ClassVar[ObjectIdentifier]
|
| 31 |
+
CRL_NUMBER: ClassVar[ObjectIdentifier]
|
| 32 |
+
DELTA_CRL_INDICATOR: ClassVar[ObjectIdentifier]
|
| 33 |
+
EXTENDED_KEY_USAGE: ClassVar[ObjectIdentifier]
|
| 34 |
+
FRESHEST_CRL: ClassVar[ObjectIdentifier]
|
| 35 |
+
INHIBIT_ANY_POLICY: ClassVar[ObjectIdentifier]
|
| 36 |
+
ISSUER_ALTERNATIVE_NAME: ClassVar[ObjectIdentifier]
|
| 37 |
+
ISSUING_DISTRIBUTION_POINT: ClassVar[ObjectIdentifier]
|
| 38 |
+
KEY_USAGE: ClassVar[ObjectIdentifier]
|
| 39 |
+
NAME_CONSTRAINTS: ClassVar[ObjectIdentifier]
|
| 40 |
+
OCSP_NO_CHECK: ClassVar[ObjectIdentifier]
|
| 41 |
+
POLICY_CONSTRAINTS: ClassVar[ObjectIdentifier]
|
| 42 |
+
POLICY_MAPPINGS: ClassVar[ObjectIdentifier]
|
| 43 |
+
PRECERT_POISON: ClassVar[ObjectIdentifier]
|
| 44 |
+
PRECERT_SIGNED_CERTIFICATE_TIMESTAMPS: ClassVar[ObjectIdentifier]
|
| 45 |
+
SUBJECT_ALTERNATIVE_NAME: ClassVar[ObjectIdentifier]
|
| 46 |
+
SUBJECT_DIRECTORY_ATTRIBUTES: ClassVar[ObjectIdentifier]
|
| 47 |
+
SUBJECT_INFORMATION_ACCESS: ClassVar[ObjectIdentifier]
|
| 48 |
+
SUBJECT_KEY_IDENTIFIER: ClassVar[ObjectIdentifier]
|
| 49 |
+
TLS_FEATURE: ClassVar[ObjectIdentifier]
|
| 50 |
+
|
| 51 |
+
class NameOID(object):
|
| 52 |
+
BUSINESS_CATEGORY: ClassVar[ObjectIdentifier]
|
| 53 |
+
COMMON_NAME: ClassVar[ObjectIdentifier]
|
| 54 |
+
COUNTRY_NAME: ClassVar[ObjectIdentifier]
|
| 55 |
+
DN_QUALIFIER: ClassVar[ObjectIdentifier]
|
| 56 |
+
DOMAIN_COMPONENT: ClassVar[ObjectIdentifier]
|
| 57 |
+
EMAIL_ADDRESS: ClassVar[ObjectIdentifier]
|
| 58 |
+
GENERATION_QUALIFIER: ClassVar[ObjectIdentifier]
|
| 59 |
+
GIVEN_NAME: ClassVar[ObjectIdentifier]
|
| 60 |
+
JURISDICTION_COUNTRY_NAME: ClassVar[ObjectIdentifier]
|
| 61 |
+
JURISDICTION_LOCALITY_NAME: ClassVar[ObjectIdentifier]
|
| 62 |
+
JURISDICTION_STATE_OR_PROVINCE_NAME: ClassVar[ObjectIdentifier]
|
| 63 |
+
LOCALITY_NAME: ClassVar[ObjectIdentifier]
|
| 64 |
+
ORGANIZATIONAL_UNIT_NAME: ClassVar[ObjectIdentifier]
|
| 65 |
+
ORGANIZATION_NAME: ClassVar[ObjectIdentifier]
|
| 66 |
+
POSTAL_ADDRESS: ClassVar[ObjectIdentifier]
|
| 67 |
+
POSTAL_CODE: ClassVar[ObjectIdentifier]
|
| 68 |
+
PSEUDONYM: ClassVar[ObjectIdentifier]
|
| 69 |
+
SERIAL_NUMBER: ClassVar[ObjectIdentifier]
|
| 70 |
+
STATE_OR_PROVINCE_NAME: ClassVar[ObjectIdentifier]
|
| 71 |
+
STREET_ADDRESS: ClassVar[ObjectIdentifier]
|
| 72 |
+
SURNAME: ClassVar[ObjectIdentifier]
|
| 73 |
+
TITLE: ClassVar[ObjectIdentifier]
|
| 74 |
+
USER_ID: ClassVar[ObjectIdentifier]
|
| 75 |
+
X500_UNIQUE_IDENTIFIER: ClassVar[ObjectIdentifier]
|
| 76 |
+
|
| 77 |
+
class OCSPExtensionOID(object):
|
| 78 |
+
NONCE: ClassVar[ObjectIdentifier]
|
| 79 |
+
|
| 80 |
+
class SignatureAlgorithmOID(object):
|
| 81 |
+
DSA_WITH_SHA1: ClassVar[ObjectIdentifier]
|
| 82 |
+
DSA_WITH_SHA224: ClassVar[ObjectIdentifier]
|
| 83 |
+
DSA_WITH_SHA256: ClassVar[ObjectIdentifier]
|
| 84 |
+
ECDSA_WITH_SHA1: ClassVar[ObjectIdentifier]
|
| 85 |
+
ECDSA_WITH_SHA224: ClassVar[ObjectIdentifier]
|
| 86 |
+
ECDSA_WITH_SHA256: ClassVar[ObjectIdentifier]
|
| 87 |
+
ECDSA_WITH_SHA384: ClassVar[ObjectIdentifier]
|
| 88 |
+
ECDSA_WITH_SHA512: ClassVar[ObjectIdentifier]
|
| 89 |
+
ED25519: ClassVar[ObjectIdentifier]
|
| 90 |
+
ED448: ClassVar[ObjectIdentifier]
|
| 91 |
+
RSASSA_PSS: ClassVar[ObjectIdentifier]
|
| 92 |
+
RSA_WITH_MD5: ClassVar[ObjectIdentifier]
|
| 93 |
+
RSA_WITH_SHA1: ClassVar[ObjectIdentifier]
|
| 94 |
+
RSA_WITH_SHA224: ClassVar[ObjectIdentifier]
|
| 95 |
+
RSA_WITH_SHA256: ClassVar[ObjectIdentifier]
|
| 96 |
+
RSA_WITH_SHA384: ClassVar[ObjectIdentifier]
|
| 97 |
+
RSA_WITH_SHA512: ClassVar[ObjectIdentifier]
|
| 98 |
+
|
| 99 |
+
class ExtendedKeyUsageOID(object):
|
| 100 |
+
SERVER_AUTH: ClassVar[ObjectIdentifier]
|
| 101 |
+
CLIENT_AUTH: ClassVar[ObjectIdentifier]
|
| 102 |
+
CODE_SIGNING: ClassVar[ObjectIdentifier]
|
| 103 |
+
EMAIL_PROTECTION: ClassVar[ObjectIdentifier]
|
| 104 |
+
TIME_STAMPING: ClassVar[ObjectIdentifier]
|
| 105 |
+
OCSP_SIGNING: ClassVar[ObjectIdentifier]
|
| 106 |
+
ANY_EXTENDED_KEY_USAGE: ClassVar[ObjectIdentifier]
|
| 107 |
+
|
| 108 |
+
class NameAttribute(object):
|
| 109 |
+
oid: ObjectIdentifier
|
| 110 |
+
value: Text
|
| 111 |
+
def __init__(self, oid: ObjectIdentifier, value: Text) -> None: ...
|
| 112 |
+
def rfc4514_string(self) -> str: ...
|
| 113 |
+
|
| 114 |
+
class RelativeDistinguishedName(object):
|
| 115 |
+
def __init__(self, attributes: List[NameAttribute]) -> None: ...
|
| 116 |
+
def __iter__(self) -> Generator[NameAttribute, None, None]: ...
|
| 117 |
+
def get_attributes_for_oid(self, oid: ObjectIdentifier) -> List[NameAttribute]: ...
|
| 118 |
+
def rfc4514_string(self) -> str: ...
|
| 119 |
+
|
| 120 |
+
class Name(object):
|
| 121 |
+
rdns: List[RelativeDistinguishedName]
|
| 122 |
+
def __init__(self, attributes: Sequence[Union[NameAttribute, RelativeDistinguishedName]]) -> None: ...
|
| 123 |
+
def __iter__(self) -> Generator[NameAttribute, None, None]: ...
|
| 124 |
+
def __len__(self) -> int: ...
|
| 125 |
+
def get_attributes_for_oid(self, oid: ObjectIdentifier) -> List[NameAttribute]: ...
|
| 126 |
+
def public_bytes(self, backend: Optional[X509Backend] = ...) -> bytes: ...
|
| 127 |
+
def rfc4514_string(self) -> str: ...
|
| 128 |
+
|
| 129 |
+
class Version(Enum):
|
| 130 |
+
v1: int
|
| 131 |
+
v3: int
|
| 132 |
+
|
| 133 |
+
class Certificate(metaclass=ABCMeta):
|
| 134 |
+
extensions: Extensions
|
| 135 |
+
issuer: Name
|
| 136 |
+
not_valid_after: datetime.datetime
|
| 137 |
+
not_valid_before: datetime.datetime
|
| 138 |
+
serial_number: int
|
| 139 |
+
signature: bytes
|
| 140 |
+
signature_algorithm_oid: ObjectIdentifier
|
| 141 |
+
signature_hash_algorithm: HashAlgorithm
|
| 142 |
+
tbs_certificate_bytes: bytes
|
| 143 |
+
subject: Name
|
| 144 |
+
version: Version
|
| 145 |
+
@abstractmethod
|
| 146 |
+
def fingerprint(self, algorithm: HashAlgorithm) -> bytes: ...
|
| 147 |
+
@abstractmethod
|
| 148 |
+
def public_bytes(self, encoding: Encoding) -> bytes: ...
|
| 149 |
+
@abstractmethod
|
| 150 |
+
def public_key(self) -> Union[DSAPublicKey, Ed25519PublicKey, Ed448PublicKey, EllipticCurvePublicKey, RSAPublicKey]: ...
|
| 151 |
+
|
| 152 |
+
class CertificateBuilder(object):
|
| 153 |
+
def __init__(
|
| 154 |
+
self,
|
| 155 |
+
issuer_name: Optional[Name] = ...,
|
| 156 |
+
subject_name: Optional[Name] = ...,
|
| 157 |
+
public_key: Union[DSAPublicKey, Ed25519PublicKey, Ed448PublicKey, EllipticCurvePublicKey, RSAPublicKey, None] = ...,
|
| 158 |
+
serial_number: Optional[int] = ...,
|
| 159 |
+
not_valid_before: Optional[datetime.datetime] = ...,
|
| 160 |
+
not_valid_after: Optional[datetime.datetime] = ...,
|
| 161 |
+
extensions: Optional[Iterable[ExtensionType]] = ...,
|
| 162 |
+
) -> None: ...
|
| 163 |
+
def add_extension(self, extension: ExtensionType, critical: bool) -> CertificateBuilder: ...
|
| 164 |
+
def issuer_name(self, name: Name) -> CertificateBuilder: ...
|
| 165 |
+
def not_valid_after(self, time: datetime.datetime) -> CertificateBuilder: ...
|
| 166 |
+
def not_valid_before(self, time: datetime.datetime) -> CertificateBuilder: ...
|
| 167 |
+
def public_key(
|
| 168 |
+
self, public_key: Union[DSAPublicKey, Ed25519PublicKey, Ed448PublicKey, EllipticCurvePublicKey, RSAPublicKey]
|
| 169 |
+
) -> CertificateBuilder: ...
|
| 170 |
+
def serial_number(self, serial_number: int) -> CertificateBuilder: ...
|
| 171 |
+
def sign(
|
| 172 |
+
self,
|
| 173 |
+
private_key: Union[DSAPrivateKey, Ed25519PrivateKey, Ed448PrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],
|
| 174 |
+
algorithm: Optional[HashAlgorithm],
|
| 175 |
+
backend: Optional[X509Backend] = ...,
|
| 176 |
+
) -> Certificate: ...
|
| 177 |
+
def subject_name(self, name: Name) -> CertificateBuilder: ...
|
| 178 |
+
|
| 179 |
+
class CertificateRevocationList(metaclass=ABCMeta):
|
| 180 |
+
extensions: Extensions
|
| 181 |
+
issuer: Name
|
| 182 |
+
last_update: datetime.datetime
|
| 183 |
+
next_update: datetime.datetime
|
| 184 |
+
signature: bytes
|
| 185 |
+
signature_algorithm_oid: ObjectIdentifier
|
| 186 |
+
signature_hash_algorithm: HashAlgorithm
|
| 187 |
+
tbs_certlist_bytes: bytes
|
| 188 |
+
@abstractmethod
|
| 189 |
+
def fingerprint(self, algorithm: HashAlgorithm) -> bytes: ...
|
| 190 |
+
@abstractmethod
|
| 191 |
+
def get_revoked_certificate_by_serial_number(self, serial_number: int) -> RevokedCertificate: ...
|
| 192 |
+
@abstractmethod
|
| 193 |
+
def is_signature_valid(
|
| 194 |
+
self, public_key: Union[DSAPublicKey, Ed25519PublicKey, Ed448PublicKey, EllipticCurvePublicKey, RSAPublicKey]
|
| 195 |
+
) -> bool: ...
|
| 196 |
+
@abstractmethod
|
| 197 |
+
def public_bytes(self, encoding: Encoding) -> bytes: ...
|
| 198 |
+
|
| 199 |
+
class CertificateRevocationListBuilder(object):
|
| 200 |
+
def add_extension(self, extension: ExtensionType, critical: bool) -> CertificateRevocationListBuilder: ...
|
| 201 |
+
def add_revoked_certificate(self, revoked_certificate: RevokedCertificate) -> CertificateRevocationListBuilder: ...
|
| 202 |
+
def issuer_name(self, name: Name) -> CertificateRevocationListBuilder: ...
|
| 203 |
+
def last_update(self, time: datetime.datetime) -> CertificateRevocationListBuilder: ...
|
| 204 |
+
def next_update(self, time: datetime.datetime) -> CertificateRevocationListBuilder: ...
|
| 205 |
+
def sign(
|
| 206 |
+
self,
|
| 207 |
+
private_key: Union[DSAPrivateKey, Ed25519PrivateKey, Ed448PrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],
|
| 208 |
+
algorithm: Optional[HashAlgorithm],
|
| 209 |
+
backend: Optional[X509Backend] = ...,
|
| 210 |
+
) -> CertificateRevocationList: ...
|
| 211 |
+
|
| 212 |
+
class CertificateSigningRequest(metaclass=ABCMeta):
|
| 213 |
+
extensions: Extensions
|
| 214 |
+
is_signature_valid: bool
|
| 215 |
+
signature: bytes
|
| 216 |
+
signature_algorithm_oid: ObjectIdentifier
|
| 217 |
+
signature_hash_algorithm: HashAlgorithm
|
| 218 |
+
subject: Name
|
| 219 |
+
tbs_certrequest_bytes: bytes
|
| 220 |
+
@abstractmethod
|
| 221 |
+
def public_bytes(self, encoding: Encoding) -> bytes: ...
|
| 222 |
+
@abstractmethod
|
| 223 |
+
def public_key(self) -> Union[DSAPublicKey, Ed25519PublicKey, Ed448PublicKey, EllipticCurvePublicKey, RSAPublicKey]: ...
|
| 224 |
+
|
| 225 |
+
class CertificateSigningRequestBuilder(object):
|
| 226 |
+
def add_extension(self, extension: ExtensionType, critical: bool) -> CertificateSigningRequestBuilder: ...
|
| 227 |
+
def subject_name(self, name: Name) -> CertificateSigningRequestBuilder: ...
|
| 228 |
+
def sign(
|
| 229 |
+
self,
|
| 230 |
+
private_key: Union[DSAPrivateKey, Ed25519PrivateKey, Ed448PrivateKey, EllipticCurvePrivateKey, RSAPrivateKey],
|
| 231 |
+
algorithm: Optional[HashAlgorithm],
|
| 232 |
+
backend: Optional[X509Backend] = ...,
|
| 233 |
+
) -> CertificateSigningRequest: ...
|
| 234 |
+
|
| 235 |
+
class RevokedCertificate(metaclass=ABCMeta):
|
| 236 |
+
extensions: Extensions
|
| 237 |
+
revocation_date: datetime.datetime
|
| 238 |
+
serial_number: int
|
| 239 |
+
|
| 240 |
+
class RevokedCertificateBuilder(object):
|
| 241 |
+
def add_extension(self, extension: ExtensionType, critical: bool) -> RevokedCertificateBuilder: ...
|
| 242 |
+
def build(self, backend: Optional[X509Backend] = ...) -> RevokedCertificate: ...
|
| 243 |
+
def revocation_date(self, time: datetime.datetime) -> RevokedCertificateBuilder: ...
|
| 244 |
+
def serial_number(self, serial_number: int) -> RevokedCertificateBuilder: ...
|
| 245 |
+
|
| 246 |
+
# General Name Classes
|
| 247 |
+
|
| 248 |
+
class GeneralName(metaclass=ABCMeta):
|
| 249 |
+
value: Any
|
| 250 |
+
|
| 251 |
+
class DirectoryName(GeneralName):
|
| 252 |
+
value: Name
|
| 253 |
+
def __init__(self, value: Name) -> None: ...
|
| 254 |
+
|
| 255 |
+
class DNSName(GeneralName):
|
| 256 |
+
value: Text
|
| 257 |
+
def __init__(self, value: Text) -> None: ...
|
| 258 |
+
|
| 259 |
+
class IPAddress(GeneralName):
|
| 260 |
+
value: Union[IPv4Address, IPv6Address, IPv4Network, IPv6Network]
|
| 261 |
+
def __init__(self, value: Union[IPv4Address, IPv6Address, IPv4Network, IPv6Network]) -> None: ...
|
| 262 |
+
|
| 263 |
+
class OtherName(GeneralName):
|
| 264 |
+
type_id: ObjectIdentifier
|
| 265 |
+
value: bytes
|
| 266 |
+
def __init__(self, type_id: ObjectIdentifier, value: bytes) -> None: ...
|
| 267 |
+
|
| 268 |
+
class RegisteredID(GeneralName):
|
| 269 |
+
value: ObjectIdentifier
|
| 270 |
+
def __init__(self, value: ObjectIdentifier) -> None: ...
|
| 271 |
+
|
| 272 |
+
class RFC822Name(GeneralName):
|
| 273 |
+
value: Text
|
| 274 |
+
def __init__(self, value: Text) -> None: ...
|
| 275 |
+
|
| 276 |
+
class UniformResourceIdentifier(GeneralName):
|
| 277 |
+
value: Text
|
| 278 |
+
def __init__(self, value: Text) -> None: ...
|
| 279 |
+
|
| 280 |
+
# X.509 Extensions
|
| 281 |
+
|
| 282 |
+
class ExtensionType(metaclass=ABCMeta):
|
| 283 |
+
oid: ObjectIdentifier
|
| 284 |
+
|
| 285 |
+
_T = TypeVar("_T", bound="ExtensionType")
|
| 286 |
+
|
| 287 |
+
class Extension(Generic[_T]):
|
| 288 |
+
critical: bool
|
| 289 |
+
oid: ObjectIdentifier
|
| 290 |
+
value: _T
|
| 291 |
+
|
| 292 |
+
class Extensions(object):
|
| 293 |
+
def __init__(self, general_names: List[Extension[Any]]) -> None: ...
|
| 294 |
+
def __iter__(self) -> Generator[Extension[Any], None, None]: ...
|
| 295 |
+
def get_extension_for_oid(self, oid: ObjectIdentifier) -> Extension[Any]: ...
|
| 296 |
+
def get_extension_for_class(self, extclass: Type[_T]) -> Extension[_T]: ...
|
| 297 |
+
|
| 298 |
+
class DuplicateExtension(Exception):
|
| 299 |
+
oid: ObjectIdentifier
|
| 300 |
+
def __init__(self, msg: str, oid: ObjectIdentifier) -> None: ...
|
| 301 |
+
|
| 302 |
+
class ExtensionNotFound(Exception):
|
| 303 |
+
oid: ObjectIdentifier
|
| 304 |
+
def __init__(self, msg: str, oid: ObjectIdentifier) -> None: ...
|
| 305 |
+
|
| 306 |
+
class IssuerAlternativeName(ExtensionType):
|
| 307 |
+
def __init__(self, general_names: List[GeneralName]) -> None: ...
|
| 308 |
+
def __iter__(self) -> Generator[GeneralName, None, None]: ...
|
| 309 |
+
def get_values_for_type(self, type: Type[GeneralName]) -> List[Any]: ...
|
| 310 |
+
|
| 311 |
+
class SubjectAlternativeName(ExtensionType):
|
| 312 |
+
def __init__(self, general_names: List[GeneralName]) -> None: ...
|
| 313 |
+
def __iter__(self) -> Generator[GeneralName, None, None]: ...
|
| 314 |
+
def get_values_for_type(self, type: Type[GeneralName]) -> List[Any]: ...
|
| 315 |
+
|
| 316 |
+
class AuthorityKeyIdentifier(ExtensionType):
|
| 317 |
+
@property
|
| 318 |
+
def key_identifier(self) -> bytes: ...
|
| 319 |
+
@property
|
| 320 |
+
def authority_cert_issuer(self) -> Optional[List[GeneralName]]: ...
|
| 321 |
+
@property
|
| 322 |
+
def authority_cert_serial_number(self) -> Optional[int]: ...
|
| 323 |
+
def __init__(
|
| 324 |
+
self,
|
| 325 |
+
key_identifier: bytes,
|
| 326 |
+
authority_cert_issuer: Optional[Iterable[GeneralName]],
|
| 327 |
+
authority_cert_serial_number: Optional[int],
|
| 328 |
+
) -> None: ...
|
| 329 |
+
@classmethod
|
| 330 |
+
def from_issuer_public_key(
|
| 331 |
+
cls, public_key: Union[RSAPublicKey, DSAPublicKey, EllipticCurvePublicKey, Ed25519PublicKey, Ed448PublicKey]
|
| 332 |
+
) -> AuthorityKeyIdentifier: ...
|
| 333 |
+
@classmethod
|
| 334 |
+
def from_issuer_subject_key_identifier(cls, ski: SubjectKeyIdentifier) -> AuthorityKeyIdentifier: ...
|
| 335 |
+
|
| 336 |
+
class SubjectKeyIdentifier(ExtensionType):
|
| 337 |
+
@property
|
| 338 |
+
def digest(self) -> bytes: ...
|
| 339 |
+
def __init__(self, digest: bytes) -> None: ...
|
| 340 |
+
@classmethod
|
| 341 |
+
def from_public_key(
|
| 342 |
+
cls, public_key: Union[RSAPublicKey, DSAPublicKey, EllipticCurvePublicKey, Ed25519PublicKey, Ed448PublicKey]
|
| 343 |
+
) -> SubjectKeyIdentifier: ...
|
| 344 |
+
|
| 345 |
+
class AccessDescription:
|
| 346 |
+
@property
|
| 347 |
+
def access_method(self) -> ObjectIdentifier: ...
|
| 348 |
+
@property
|
| 349 |
+
def access_location(self) -> GeneralName: ...
|
| 350 |
+
def __init__(self, access_method: ObjectIdentifier, access_location: GeneralName) -> None: ...
|
| 351 |
+
|
| 352 |
+
class AuthorityInformationAccess(ExtensionType):
|
| 353 |
+
def __init__(self, descriptions: Iterable[AccessDescription]) -> None: ...
|
| 354 |
+
def __len__(self) -> int: ...
|
| 355 |
+
def __iter__(self) -> Generator[AccessDescription, None, None]: ...
|
| 356 |
+
def __getitem__(self, item: int) -> AccessDescription: ...
|
| 357 |
+
|
| 358 |
+
class SubjectInformationAccess(ExtensionType):
|
| 359 |
+
def __init__(self, descriptions: Iterable[AccessDescription]) -> None: ...
|
| 360 |
+
def __len__(self) -> int: ...
|
| 361 |
+
def __iter__(self) -> Generator[AccessDescription, None, None]: ...
|
| 362 |
+
def __getitem__(self, item: int) -> AccessDescription: ...
|
| 363 |
+
|
| 364 |
+
class BasicConstraints(ExtensionType):
|
| 365 |
+
@property
|
| 366 |
+
def ca(self) -> bool: ...
|
| 367 |
+
@property
|
| 368 |
+
def path_length(self) -> Optional[int]: ...
|
| 369 |
+
def __init__(self, ca: bool, path_length: Optional[int]) -> None: ...
|
| 370 |
+
|
| 371 |
+
class KeyUsage(ExtensionType):
|
| 372 |
+
@property
|
| 373 |
+
def digital_signature(self) -> bool: ...
|
| 374 |
+
@property
|
| 375 |
+
def content_commitment(self) -> bool: ...
|
| 376 |
+
@property
|
| 377 |
+
def key_encipherment(self) -> bool: ...
|
| 378 |
+
@property
|
| 379 |
+
def data_encipherment(self) -> bool: ...
|
| 380 |
+
@property
|
| 381 |
+
def key_agreement(self) -> bool: ...
|
| 382 |
+
@property
|
| 383 |
+
def key_cert_sign(self) -> bool: ...
|
| 384 |
+
@property
|
| 385 |
+
def crl_sign(self) -> bool: ...
|
| 386 |
+
@property
|
| 387 |
+
def encipher_only(self) -> bool: ...
|
| 388 |
+
@property
|
| 389 |
+
def decipher_only(self) -> bool: ...
|
| 390 |
+
def __init__(
|
| 391 |
+
self,
|
| 392 |
+
digital_signature: bool,
|
| 393 |
+
content_commitment: bool,
|
| 394 |
+
key_encipherment: bool,
|
| 395 |
+
data_encipherment: bool,
|
| 396 |
+
key_agreement: bool,
|
| 397 |
+
key_cert_sign: bool,
|
| 398 |
+
crl_sign: bool,
|
| 399 |
+
encipher_only: bool,
|
| 400 |
+
decipher_only: bool,
|
| 401 |
+
) -> None: ...
|
| 402 |
+
|
| 403 |
+
class ExtendedKeyUsage(ExtensionType):
|
| 404 |
+
def __init__(self, usages: Iterable[ObjectIdentifier]) -> None: ...
|
| 405 |
+
def __len__(self) -> int: ...
|
| 406 |
+
def __iter__(self) -> Generator[ObjectIdentifier, None, None]: ...
|
| 407 |
+
def __getitem__(self, item: int) -> ObjectIdentifier: ...
|
| 408 |
+
|
| 409 |
+
class UnrecognizedExtension(ExtensionType):
|
| 410 |
+
@property
|
| 411 |
+
def value(self) -> bytes: ...
|
| 412 |
+
def __init__(self, oid: ObjectIdentifier, value: bytes) -> None: ...
|
| 413 |
+
|
| 414 |
+
def load_der_x509_certificate(data: bytes, backend: Optional[X509Backend] = ...) -> Certificate: ...
|
| 415 |
+
def load_pem_x509_certificate(data: bytes, backend: Optional[X509Backend] = ...) -> Certificate: ...
|
| 416 |
+
def load_der_x509_crl(data: bytes, backend: Optional[X509Backend] = ...) -> CertificateRevocationList: ...
|
| 417 |
+
def load_pem_x509_crl(data: bytes, backend: Optional[X509Backend] = ...) -> CertificateRevocationList: ...
|
| 418 |
+
def load_der_x509_csr(data: bytes, backend: Optional[X509Backend] = ...) -> CertificateSigningRequest: ...
|
| 419 |
+
def load_pem_x509_csr(data: bytes, backend: Optional[X509Backend] = ...) -> CertificateSigningRequest: ...
|
| 420 |
+
def __getattr__(name: str) -> Any: ... # incomplete
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/x509/extensions.pyi
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Iterator
|
| 2 |
+
|
| 3 |
+
from cryptography.x509 import GeneralName, ObjectIdentifier
|
| 4 |
+
|
| 5 |
+
class Extension:
|
| 6 |
+
value: Any = ...
|
| 7 |
+
|
| 8 |
+
class GeneralNames:
|
| 9 |
+
def __iter__(self) -> Iterator[GeneralName]: ...
|
| 10 |
+
|
| 11 |
+
class DistributionPoint:
|
| 12 |
+
full_name: GeneralNames = ...
|
| 13 |
+
|
| 14 |
+
class CRLDistributionPoints:
|
| 15 |
+
def __iter__(self) -> Iterator[DistributionPoint]: ...
|
| 16 |
+
|
| 17 |
+
class AccessDescription:
|
| 18 |
+
access_method: ObjectIdentifier = ...
|
| 19 |
+
access_location: GeneralName = ...
|
| 20 |
+
|
| 21 |
+
class AuthorityInformationAccess:
|
| 22 |
+
def __iter__(self) -> Iterator[AccessDescription]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/cryptography/x509/oid.pyi
ADDED
|
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Dict, Optional
|
| 2 |
+
|
| 3 |
+
from cryptography.hazmat.primitives.hashes import HashAlgorithm
|
| 4 |
+
from cryptography.x509 import ObjectIdentifier
|
| 5 |
+
|
| 6 |
+
class ExtensionOID:
|
| 7 |
+
SUBJECT_DIRECTORY_ATTRIBUTES: ObjectIdentifier = ...
|
| 8 |
+
SUBJECT_KEY_IDENTIFIER: ObjectIdentifier = ...
|
| 9 |
+
KEY_USAGE: ObjectIdentifier = ...
|
| 10 |
+
SUBJECT_ALTERNATIVE_NAME: ObjectIdentifier = ...
|
| 11 |
+
ISSUER_ALTERNATIVE_NAME: ObjectIdentifier = ...
|
| 12 |
+
BASIC_CONSTRAINTS: ObjectIdentifier = ...
|
| 13 |
+
NAME_CONSTRAINTS: ObjectIdentifier = ...
|
| 14 |
+
CRL_DISTRIBUTION_POINTS: ObjectIdentifier = ...
|
| 15 |
+
CERTIFICATE_POLICIES: ObjectIdentifier = ...
|
| 16 |
+
POLICY_MAPPINGS: ObjectIdentifier = ...
|
| 17 |
+
AUTHORITY_KEY_IDENTIFIER: ObjectIdentifier = ...
|
| 18 |
+
POLICY_CONSTRAINTS: ObjectIdentifier = ...
|
| 19 |
+
EXTENDED_KEY_USAGE: ObjectIdentifier = ...
|
| 20 |
+
FRESHEST_CRL: ObjectIdentifier = ...
|
| 21 |
+
INHIBIT_ANY_POLICY: ObjectIdentifier = ...
|
| 22 |
+
ISSUING_DISTRIBUTION_POINT: ObjectIdentifier = ...
|
| 23 |
+
AUTHORITY_INFORMATION_ACCESS: ObjectIdentifier = ...
|
| 24 |
+
SUBJECT_INFORMATION_ACCESS: ObjectIdentifier = ...
|
| 25 |
+
OCSP_NO_CHECK: ObjectIdentifier = ...
|
| 26 |
+
TLS_FEATURE: ObjectIdentifier = ...
|
| 27 |
+
CRL_NUMBER: ObjectIdentifier = ...
|
| 28 |
+
DELTA_CRL_INDICATOR: ObjectIdentifier = ...
|
| 29 |
+
PRECERT_SIGNED_CERTIFICATE_TIMESTAMPS: ObjectIdentifier = ...
|
| 30 |
+
PRECERT_POISON: ObjectIdentifier = ...
|
| 31 |
+
|
| 32 |
+
class OCSPExtensionOID:
|
| 33 |
+
NONCE: ObjectIdentifier = ...
|
| 34 |
+
|
| 35 |
+
class CRLEntryExtensionOID:
|
| 36 |
+
CERTIFICATE_ISSUER: ObjectIdentifier = ...
|
| 37 |
+
CRL_REASON: ObjectIdentifier = ...
|
| 38 |
+
INVALIDITY_DATE: ObjectIdentifier = ...
|
| 39 |
+
|
| 40 |
+
class NameOID:
|
| 41 |
+
COMMON_NAME: ObjectIdentifier = ...
|
| 42 |
+
COUNTRY_NAME: ObjectIdentifier = ...
|
| 43 |
+
LOCALITY_NAME: ObjectIdentifier = ...
|
| 44 |
+
STATE_OR_PROVINCE_NAME: ObjectIdentifier = ...
|
| 45 |
+
STREET_ADDRESS: ObjectIdentifier = ...
|
| 46 |
+
ORGANIZATION_NAME: ObjectIdentifier = ...
|
| 47 |
+
ORGANIZATIONAL_UNIT_NAME: ObjectIdentifier = ...
|
| 48 |
+
SERIAL_NUMBER: ObjectIdentifier = ...
|
| 49 |
+
SURNAME: ObjectIdentifier = ...
|
| 50 |
+
GIVEN_NAME: ObjectIdentifier = ...
|
| 51 |
+
TITLE: ObjectIdentifier = ...
|
| 52 |
+
GENERATION_QUALIFIER: ObjectIdentifier = ...
|
| 53 |
+
X500_UNIQUE_IDENTIFIER: ObjectIdentifier = ...
|
| 54 |
+
DN_QUALIFIER: ObjectIdentifier = ...
|
| 55 |
+
PSEUDONYM: ObjectIdentifier = ...
|
| 56 |
+
USER_ID: ObjectIdentifier = ...
|
| 57 |
+
DOMAIN_COMPONENT: ObjectIdentifier = ...
|
| 58 |
+
EMAIL_ADDRESS: ObjectIdentifier = ...
|
| 59 |
+
JURISDICTION_COUNTRY_NAME: ObjectIdentifier = ...
|
| 60 |
+
JURISDICTION_LOCALITY_NAME: ObjectIdentifier = ...
|
| 61 |
+
JURISDICTION_STATE_OR_PROVINCE_NAME: ObjectIdentifier = ...
|
| 62 |
+
BUSINESS_CATEGORY: ObjectIdentifier = ...
|
| 63 |
+
POSTAL_ADDRESS: ObjectIdentifier = ...
|
| 64 |
+
POSTAL_CODE: ObjectIdentifier = ...
|
| 65 |
+
|
| 66 |
+
class SignatureAlgorithmOID:
|
| 67 |
+
RSA_WITH_MD5: ObjectIdentifier = ...
|
| 68 |
+
RSA_WITH_SHA1: ObjectIdentifier = ...
|
| 69 |
+
_RSA_WITH_SHA1: ObjectIdentifier = ...
|
| 70 |
+
RSA_WITH_SHA224: ObjectIdentifier = ...
|
| 71 |
+
RSA_WITH_SHA256: ObjectIdentifier = ...
|
| 72 |
+
RSA_WITH_SHA384: ObjectIdentifier = ...
|
| 73 |
+
RSA_WITH_SHA512: ObjectIdentifier = ...
|
| 74 |
+
RSASSA_PSS: ObjectIdentifier = ...
|
| 75 |
+
ECDSA_WITH_SHA1: ObjectIdentifier = ...
|
| 76 |
+
ECDSA_WITH_SHA224: ObjectIdentifier = ...
|
| 77 |
+
ECDSA_WITH_SHA256: ObjectIdentifier = ...
|
| 78 |
+
ECDSA_WITH_SHA384: ObjectIdentifier = ...
|
| 79 |
+
ECDSA_WITH_SHA512: ObjectIdentifier = ...
|
| 80 |
+
DSA_WITH_SHA1: ObjectIdentifier = ...
|
| 81 |
+
DSA_WITH_SHA224: ObjectIdentifier = ...
|
| 82 |
+
DSA_WITH_SHA256: ObjectIdentifier = ...
|
| 83 |
+
ED25519: ObjectIdentifier = ...
|
| 84 |
+
ED448: ObjectIdentifier = ...
|
| 85 |
+
|
| 86 |
+
class ExtendedKeyUsageOID:
|
| 87 |
+
SERVER_AUTH: ObjectIdentifier = ...
|
| 88 |
+
CLIENT_AUTH: ObjectIdentifier = ...
|
| 89 |
+
CODE_SIGNING: ObjectIdentifier = ...
|
| 90 |
+
EMAIL_PROTECTION: ObjectIdentifier = ...
|
| 91 |
+
TIME_STAMPING: ObjectIdentifier = ...
|
| 92 |
+
OCSP_SIGNING: ObjectIdentifier = ...
|
| 93 |
+
ANY_EXTENDED_KEY_USAGE: ObjectIdentifier = ...
|
| 94 |
+
|
| 95 |
+
class AuthorityInformationAccessOID:
|
| 96 |
+
CA_ISSUERS: ObjectIdentifier = ...
|
| 97 |
+
OCSP: ObjectIdentifier = ...
|
| 98 |
+
|
| 99 |
+
class CertificatePoliciesOID:
|
| 100 |
+
CPS_QUALIFIER: ObjectIdentifier = ...
|
| 101 |
+
CPS_USER_NOTICE: ObjectIdentifier = ...
|
| 102 |
+
ANY_POLICY: ObjectIdentifier = ...
|
| 103 |
+
|
| 104 |
+
_OID_NAMES: Dict[ObjectIdentifier, str] = ...
|
| 105 |
+
|
| 106 |
+
_SIG_OIDS_TO_HASH: Dict[ObjectIdentifier, Optional[HashAlgorithm]] = ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/emoji/__init__.pyi
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from .core import (
|
| 2 |
+
demojize as demojize,
|
| 3 |
+
emoji_count as emoji_count,
|
| 4 |
+
emoji_lis as emoji_lis,
|
| 5 |
+
emojize as emojize,
|
| 6 |
+
get_emoji_regexp as get_emoji_regexp,
|
| 7 |
+
)
|
| 8 |
+
from .unicode_codes import (
|
| 9 |
+
EMOJI_ALIAS_UNICODE as EMOJI_ALIAS_UNICODE,
|
| 10 |
+
EMOJI_UNICODE as EMOJI_UNICODE,
|
| 11 |
+
UNICODE_EMOJI as UNICODE_EMOJI,
|
| 12 |
+
UNICODE_EMOJI_ALIAS as UNICODE_EMOJI_ALIAS,
|
| 13 |
+
)
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/emoji/core.pyi
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Dict, List, Optional, Pattern, Text, Tuple, Union
|
| 2 |
+
|
| 3 |
+
_DEFAULT_DELIMITER: str
|
| 4 |
+
|
| 5 |
+
def emojize(string: str, use_aliases: bool = ..., delimiters: Tuple[str, str] = ...) -> str: ...
|
| 6 |
+
def demojize(string: str, delimiters: Tuple[str, str] = ...) -> str: ...
|
| 7 |
+
def get_emoji_regexp() -> Pattern[Text]: ...
|
| 8 |
+
def emoji_lis(string: str) -> List[Dict[str, Union[int, str]]]: ...
|
| 9 |
+
def emoji_count(string: str) -> int: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/emoji/unicode_codes.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Dict, Text
|
| 2 |
+
|
| 3 |
+
EMOJI_ALIAS_UNICODE: Dict[Text, Text]
|
| 4 |
+
EMOJI_UNICODE: Dict[Text, Text]
|
| 5 |
+
UNICODE_EMOJI: Dict[Text, Text]
|
| 6 |
+
UNICODE_EMOJI_ALIAS: Dict[Text, Text]
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/__init__.pyi
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from jinja2 import Markup as Markup, escape as escape
|
| 2 |
+
from werkzeug.exceptions import abort as abort
|
| 3 |
+
from werkzeug.utils import redirect as redirect
|
| 4 |
+
|
| 5 |
+
from .app import Flask as Flask
|
| 6 |
+
from .blueprints import Blueprint as Blueprint
|
| 7 |
+
from .config import Config as Config
|
| 8 |
+
from .ctx import (
|
| 9 |
+
after_this_request as after_this_request,
|
| 10 |
+
copy_current_request_context as copy_current_request_context,
|
| 11 |
+
has_app_context as has_app_context,
|
| 12 |
+
has_request_context as has_request_context,
|
| 13 |
+
)
|
| 14 |
+
from .globals import current_app as current_app, g as g, request as request, session as session
|
| 15 |
+
from .helpers import (
|
| 16 |
+
flash as flash,
|
| 17 |
+
get_flashed_messages as get_flashed_messages,
|
| 18 |
+
get_template_attribute as get_template_attribute,
|
| 19 |
+
make_response as make_response,
|
| 20 |
+
safe_join as safe_join,
|
| 21 |
+
send_file as send_file,
|
| 22 |
+
send_from_directory as send_from_directory,
|
| 23 |
+
stream_with_context as stream_with_context,
|
| 24 |
+
url_for as url_for,
|
| 25 |
+
)
|
| 26 |
+
from .json import jsonify as jsonify
|
| 27 |
+
from .signals import (
|
| 28 |
+
appcontext_popped as appcontext_popped,
|
| 29 |
+
appcontext_pushed as appcontext_pushed,
|
| 30 |
+
appcontext_tearing_down as appcontext_tearing_down,
|
| 31 |
+
before_render_template as before_render_template,
|
| 32 |
+
got_request_exception as got_request_exception,
|
| 33 |
+
message_flashed as message_flashed,
|
| 34 |
+
request_finished as request_finished,
|
| 35 |
+
request_started as request_started,
|
| 36 |
+
request_tearing_down as request_tearing_down,
|
| 37 |
+
signals_available as signals_available,
|
| 38 |
+
template_rendered as template_rendered,
|
| 39 |
+
)
|
| 40 |
+
from .templating import render_template as render_template, render_template_string as render_template_string
|
| 41 |
+
from .wrappers import Request as Request, Response as Response
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/app.pyi
ADDED
|
@@ -0,0 +1,195 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from datetime import timedelta
|
| 2 |
+
from types import TracebackType
|
| 3 |
+
from typing import (
|
| 4 |
+
Any,
|
| 5 |
+
ByteString,
|
| 6 |
+
Callable,
|
| 7 |
+
ContextManager,
|
| 8 |
+
Dict,
|
| 9 |
+
Iterable,
|
| 10 |
+
List,
|
| 11 |
+
NoReturn,
|
| 12 |
+
Optional,
|
| 13 |
+
Text,
|
| 14 |
+
Tuple,
|
| 15 |
+
Type,
|
| 16 |
+
TypeVar,
|
| 17 |
+
Union,
|
| 18 |
+
)
|
| 19 |
+
|
| 20 |
+
from .blueprints import Blueprint
|
| 21 |
+
from .config import Config
|
| 22 |
+
from .ctx import AppContext, RequestContext
|
| 23 |
+
from .helpers import _PackageBoundObject
|
| 24 |
+
from .testing import FlaskClient
|
| 25 |
+
from .wrappers import Response
|
| 26 |
+
|
| 27 |
+
def setupmethod(f: Any): ...
|
| 28 |
+
|
| 29 |
+
_T = TypeVar("_T")
|
| 30 |
+
|
| 31 |
+
_ExcInfo = Tuple[Optional[Type[BaseException]], Optional[BaseException], Optional[TracebackType]]
|
| 32 |
+
_StartResponse = Callable[[str, List[Tuple[str, str]], Optional[_ExcInfo]], Callable[[bytes], Any]]
|
| 33 |
+
_WSGICallable = Callable[[Dict[Text, Any], _StartResponse], Iterable[bytes]]
|
| 34 |
+
|
| 35 |
+
_Status = Union[str, int]
|
| 36 |
+
_Headers = Union[Dict[Any, Any], List[Tuple[Any, Any]]]
|
| 37 |
+
_Body = Union[Text, ByteString, Dict[Text, Any], Response, _WSGICallable]
|
| 38 |
+
_ViewFuncReturnType = Union[_Body, Tuple[_Body, _Status, _Headers], Tuple[_Body, _Status], Tuple[_Body, _Headers]]
|
| 39 |
+
|
| 40 |
+
_ViewFunc = Union[Callable[..., NoReturn], Callable[..., _ViewFuncReturnType]]
|
| 41 |
+
_VT = TypeVar("_VT", bound=_ViewFunc)
|
| 42 |
+
|
| 43 |
+
class Flask(_PackageBoundObject):
|
| 44 |
+
request_class: type = ...
|
| 45 |
+
response_class: type = ...
|
| 46 |
+
jinja_environment: type = ...
|
| 47 |
+
app_ctx_globals_class: type = ...
|
| 48 |
+
config_class: Type[Config] = ...
|
| 49 |
+
testing: Any = ...
|
| 50 |
+
secret_key: Union[Text, bytes, None] = ...
|
| 51 |
+
session_cookie_name: Any = ...
|
| 52 |
+
permanent_session_lifetime: timedelta = ...
|
| 53 |
+
send_file_max_age_default: timedelta = ...
|
| 54 |
+
use_x_sendfile: Any = ...
|
| 55 |
+
json_encoder: Any = ...
|
| 56 |
+
json_decoder: Any = ...
|
| 57 |
+
jinja_options: Any = ...
|
| 58 |
+
default_config: Any = ...
|
| 59 |
+
url_rule_class: type = ...
|
| 60 |
+
test_client_class: type = ...
|
| 61 |
+
test_cli_runner_class: type = ...
|
| 62 |
+
session_interface: Any = ...
|
| 63 |
+
import_name: str = ...
|
| 64 |
+
template_folder: str = ...
|
| 65 |
+
root_path: Union[str, Text] = ...
|
| 66 |
+
static_url_path: Any = ...
|
| 67 |
+
static_folder: Optional[str] = ...
|
| 68 |
+
instance_path: Union[str, Text] = ...
|
| 69 |
+
config: Config = ...
|
| 70 |
+
view_functions: Any = ...
|
| 71 |
+
error_handler_spec: Any = ...
|
| 72 |
+
url_build_error_handlers: Any = ...
|
| 73 |
+
before_request_funcs: Dict[Optional[str], List[Callable[[], Any]]] = ...
|
| 74 |
+
before_first_request_funcs: List[Callable[[], None]] = ...
|
| 75 |
+
after_request_funcs: Dict[Optional[str], List[Callable[[Response], Response]]] = ...
|
| 76 |
+
teardown_request_funcs: Dict[Optional[str], List[Callable[[Optional[Exception]], Any]]] = ...
|
| 77 |
+
teardown_appcontext_funcs: List[Callable[[Optional[Exception]], Any]] = ...
|
| 78 |
+
url_value_preprocessors: Any = ...
|
| 79 |
+
url_default_functions: Any = ...
|
| 80 |
+
template_context_processors: Any = ...
|
| 81 |
+
shell_context_processors: Any = ...
|
| 82 |
+
blueprints: Any = ...
|
| 83 |
+
extensions: Any = ...
|
| 84 |
+
url_map: Any = ...
|
| 85 |
+
subdomain_matching: Any = ...
|
| 86 |
+
cli: Any = ...
|
| 87 |
+
def __init__(
|
| 88 |
+
self,
|
| 89 |
+
import_name: str,
|
| 90 |
+
static_url_path: Optional[str] = ...,
|
| 91 |
+
static_folder: Optional[str] = ...,
|
| 92 |
+
static_host: Optional[str] = ...,
|
| 93 |
+
host_matching: bool = ...,
|
| 94 |
+
subdomain_matching: bool = ...,
|
| 95 |
+
template_folder: str = ...,
|
| 96 |
+
instance_path: Optional[str] = ...,
|
| 97 |
+
instance_relative_config: bool = ...,
|
| 98 |
+
root_path: Optional[str] = ...,
|
| 99 |
+
) -> None: ...
|
| 100 |
+
@property
|
| 101 |
+
def name(self) -> str: ...
|
| 102 |
+
@property
|
| 103 |
+
def propagate_exceptions(self) -> bool: ...
|
| 104 |
+
@property
|
| 105 |
+
def preserve_context_on_exception(self): ...
|
| 106 |
+
@property
|
| 107 |
+
def logger(self): ...
|
| 108 |
+
@property
|
| 109 |
+
def jinja_env(self): ...
|
| 110 |
+
@property
|
| 111 |
+
def got_first_request(self) -> bool: ...
|
| 112 |
+
def make_config(self, instance_relative: bool = ...): ...
|
| 113 |
+
def auto_find_instance_path(self): ...
|
| 114 |
+
def open_instance_resource(self, resource: Union[str, Text], mode: str = ...): ...
|
| 115 |
+
templates_auto_reload: Any = ...
|
| 116 |
+
def create_jinja_environment(self): ...
|
| 117 |
+
def create_global_jinja_loader(self): ...
|
| 118 |
+
def select_jinja_autoescape(self, filename: Any): ...
|
| 119 |
+
def update_template_context(self, context: Any) -> None: ...
|
| 120 |
+
def make_shell_context(self): ...
|
| 121 |
+
env: Optional[str] = ...
|
| 122 |
+
debug: bool = ...
|
| 123 |
+
def run(
|
| 124 |
+
self,
|
| 125 |
+
host: Optional[str] = ...,
|
| 126 |
+
port: Optional[Union[int, str]] = ...,
|
| 127 |
+
debug: Optional[bool] = ...,
|
| 128 |
+
load_dotenv: bool = ...,
|
| 129 |
+
**options: Any,
|
| 130 |
+
) -> None: ...
|
| 131 |
+
def test_client(self, use_cookies: bool = ..., **kwargs: Any) -> FlaskClient[Response]: ...
|
| 132 |
+
def test_cli_runner(self, **kwargs: Any): ...
|
| 133 |
+
def open_session(self, request: Any): ...
|
| 134 |
+
def save_session(self, session: Any, response: Any): ...
|
| 135 |
+
def make_null_session(self): ...
|
| 136 |
+
def register_blueprint(self, blueprint: Blueprint, **options: Any) -> None: ...
|
| 137 |
+
def iter_blueprints(self): ...
|
| 138 |
+
def add_url_rule(
|
| 139 |
+
self,
|
| 140 |
+
rule: str,
|
| 141 |
+
endpoint: Optional[str] = ...,
|
| 142 |
+
view_func: _ViewFunc = ...,
|
| 143 |
+
provide_automatic_options: Optional[bool] = ...,
|
| 144 |
+
**options: Any,
|
| 145 |
+
) -> None: ...
|
| 146 |
+
def route(self, rule: str, **options: Any) -> Callable[[_VT], _VT]: ...
|
| 147 |
+
def endpoint(self, endpoint: str) -> Callable[[Callable[..., _T]], Callable[..., _T]]: ...
|
| 148 |
+
def errorhandler(
|
| 149 |
+
self, code_or_exception: Union[int, Type[Exception]]
|
| 150 |
+
) -> Callable[[Callable[..., _T]], Callable[..., _T]]: ...
|
| 151 |
+
def register_error_handler(self, code_or_exception: Union[int, Type[Exception]], f: Callable[..., Any]) -> None: ...
|
| 152 |
+
def template_filter(self, name: Optional[Any] = ...): ...
|
| 153 |
+
def add_template_filter(self, f: Any, name: Optional[Any] = ...) -> None: ...
|
| 154 |
+
def template_test(self, name: Optional[Any] = ...): ...
|
| 155 |
+
def add_template_test(self, f: Any, name: Optional[Any] = ...) -> None: ...
|
| 156 |
+
def template_global(self, name: Optional[Any] = ...): ...
|
| 157 |
+
def add_template_global(self, f: Any, name: Optional[Any] = ...) -> None: ...
|
| 158 |
+
def before_request(self, f: Callable[[], _T]) -> Callable[[], _T]: ...
|
| 159 |
+
def before_first_request(self, f: Callable[[], _T]) -> Callable[[], _T]: ...
|
| 160 |
+
def after_request(self, f: Callable[[Response], Response]) -> Callable[[Response], Response]: ...
|
| 161 |
+
def teardown_request(self, f: Callable[[Optional[Exception]], _T]) -> Callable[[Optional[Exception]], _T]: ...
|
| 162 |
+
def teardown_appcontext(self, f: Callable[[Optional[Exception]], _T]) -> Callable[[Optional[Exception]], _T]: ...
|
| 163 |
+
def context_processor(self, f: Any): ...
|
| 164 |
+
def shell_context_processor(self, f: Any): ...
|
| 165 |
+
def url_value_preprocessor(self, f: Any): ...
|
| 166 |
+
def url_defaults(self, f: Any): ...
|
| 167 |
+
def handle_http_exception(self, e: Any): ...
|
| 168 |
+
def trap_http_exception(self, e: Any): ...
|
| 169 |
+
def handle_user_exception(self, e: Any): ...
|
| 170 |
+
def handle_exception(self, e: Any): ...
|
| 171 |
+
def log_exception(self, exc_info: Any) -> None: ...
|
| 172 |
+
def raise_routing_exception(self, request: Any) -> None: ...
|
| 173 |
+
def dispatch_request(self): ...
|
| 174 |
+
def full_dispatch_request(self): ...
|
| 175 |
+
def finalize_request(self, rv: Any, from_error_handler: bool = ...): ...
|
| 176 |
+
def try_trigger_before_first_request_functions(self): ...
|
| 177 |
+
def make_default_options_response(self): ...
|
| 178 |
+
def should_ignore_error(self, error: Any): ...
|
| 179 |
+
def make_response(self, rv: Any): ...
|
| 180 |
+
def create_url_adapter(self, request: Any): ...
|
| 181 |
+
def inject_url_defaults(self, endpoint: Any, values: Any) -> None: ...
|
| 182 |
+
def handle_url_build_error(self, error: Any, endpoint: Any, values: Any): ...
|
| 183 |
+
def preprocess_request(self): ...
|
| 184 |
+
def process_response(self, response: Any): ...
|
| 185 |
+
def do_teardown_request(self, exc: Any = ...) -> None: ...
|
| 186 |
+
def do_teardown_appcontext(self, exc: Any = ...) -> None: ...
|
| 187 |
+
def app_context(self) -> AppContext: ...
|
| 188 |
+
def request_context(self, environ: Any): ...
|
| 189 |
+
def test_request_context(self, *args: Any, **kwargs: Any) -> ContextManager[RequestContext]: ...
|
| 190 |
+
def wsgi_app(self, environ: Any, start_response: Any): ...
|
| 191 |
+
def __call__(self, environ: Any, start_response: Any): ...
|
| 192 |
+
# These are not preset at runtime but we add them since monkeypatching this
|
| 193 |
+
# class is quite common.
|
| 194 |
+
def __setattr__(self, name: str, value: Any): ...
|
| 195 |
+
def __getattr__(self, name: str): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/cli.pyi
ADDED
|
@@ -0,0 +1,68 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional
|
| 2 |
+
|
| 3 |
+
import click
|
| 4 |
+
|
| 5 |
+
class NoAppException(click.UsageError): ...
|
| 6 |
+
|
| 7 |
+
def find_best_app(script_info: Any, module: Any): ...
|
| 8 |
+
def call_factory(script_info: Any, app_factory: Any, arguments: Any = ...): ...
|
| 9 |
+
def find_app_by_string(script_info: Any, module: Any, app_name: Any): ...
|
| 10 |
+
def prepare_import(path: Any): ...
|
| 11 |
+
def locate_app(script_info: Any, module_name: Any, app_name: Any, raise_if_not_found: bool = ...): ...
|
| 12 |
+
def get_version(ctx: Any, param: Any, value: Any): ...
|
| 13 |
+
|
| 14 |
+
version_option: Any
|
| 15 |
+
|
| 16 |
+
class DispatchingApp:
|
| 17 |
+
loader: Any = ...
|
| 18 |
+
def __init__(self, loader: Any, use_eager_loading: bool = ...) -> None: ...
|
| 19 |
+
def __call__(self, environ: Any, start_response: Any): ...
|
| 20 |
+
|
| 21 |
+
class ScriptInfo:
|
| 22 |
+
app_import_path: Any = ...
|
| 23 |
+
create_app: Any = ...
|
| 24 |
+
data: Any = ...
|
| 25 |
+
def __init__(self, app_import_path: Optional[Any] = ..., create_app: Optional[Any] = ...) -> None: ...
|
| 26 |
+
def load_app(self): ...
|
| 27 |
+
|
| 28 |
+
pass_script_info: Any
|
| 29 |
+
|
| 30 |
+
def with_appcontext(f: Any): ...
|
| 31 |
+
|
| 32 |
+
class AppGroup(click.Group):
|
| 33 |
+
def command(self, *args: Any, **kwargs: Any): ...
|
| 34 |
+
def group(self, *args: Any, **kwargs: Any): ...
|
| 35 |
+
|
| 36 |
+
class FlaskGroup(AppGroup):
|
| 37 |
+
create_app: Any = ...
|
| 38 |
+
load_dotenv: Any = ...
|
| 39 |
+
def __init__(
|
| 40 |
+
self,
|
| 41 |
+
add_default_commands: bool = ...,
|
| 42 |
+
create_app: Optional[Any] = ...,
|
| 43 |
+
add_version_option: bool = ...,
|
| 44 |
+
load_dotenv: bool = ...,
|
| 45 |
+
**extra: Any,
|
| 46 |
+
) -> None: ...
|
| 47 |
+
def get_command(self, ctx: Any, name: Any): ...
|
| 48 |
+
def list_commands(self, ctx: Any): ...
|
| 49 |
+
def main(self, *args: Any, **kwargs: Any): ...
|
| 50 |
+
|
| 51 |
+
def load_dotenv(path: Optional[Any] = ...): ...
|
| 52 |
+
def show_server_banner(env: Any, debug: Any, app_import_path: Any, eager_loading: Any): ...
|
| 53 |
+
|
| 54 |
+
class CertParamType(click.ParamType):
|
| 55 |
+
name: str = ...
|
| 56 |
+
path_type: Any = ...
|
| 57 |
+
def __init__(self) -> None: ...
|
| 58 |
+
def convert(self, value: Any, param: Any, ctx: Any): ...
|
| 59 |
+
|
| 60 |
+
def run_command(
|
| 61 |
+
info: Any, host: Any, port: Any, reload: Any, debugger: Any, eager_loading: Any, with_threads: Any, cert: Any
|
| 62 |
+
) -> None: ...
|
| 63 |
+
def shell_command() -> None: ...
|
| 64 |
+
def routes_command(sort: Any, all_methods: Any): ...
|
| 65 |
+
|
| 66 |
+
cli: Any
|
| 67 |
+
|
| 68 |
+
def main(as_module: bool = ...) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/globals.pyi
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
from werkzeug.local import LocalStack
|
| 4 |
+
|
| 5 |
+
from .app import Flask
|
| 6 |
+
from .wrappers import Request
|
| 7 |
+
|
| 8 |
+
class _FlaskLocalProxy(Flask):
|
| 9 |
+
def _get_current_object(self) -> Flask: ...
|
| 10 |
+
|
| 11 |
+
_request_ctx_stack: LocalStack
|
| 12 |
+
_app_ctx_stack: LocalStack
|
| 13 |
+
current_app: _FlaskLocalProxy
|
| 14 |
+
request: Request
|
| 15 |
+
session: Any
|
| 16 |
+
g: Any
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/json/tag.pyi
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional
|
| 2 |
+
|
| 3 |
+
class JSONTag:
|
| 4 |
+
key: Any = ...
|
| 5 |
+
serializer: Any = ...
|
| 6 |
+
def __init__(self, serializer: Any) -> None: ...
|
| 7 |
+
def check(self, value: Any) -> None: ...
|
| 8 |
+
def to_json(self, value: Any) -> None: ...
|
| 9 |
+
def to_python(self, value: Any) -> None: ...
|
| 10 |
+
def tag(self, value: Any): ...
|
| 11 |
+
|
| 12 |
+
class TagDict(JSONTag):
|
| 13 |
+
key: str = ...
|
| 14 |
+
def check(self, value: Any): ...
|
| 15 |
+
def to_json(self, value: Any): ...
|
| 16 |
+
def to_python(self, value: Any): ...
|
| 17 |
+
|
| 18 |
+
class PassDict(JSONTag):
|
| 19 |
+
def check(self, value: Any): ...
|
| 20 |
+
def to_json(self, value: Any): ...
|
| 21 |
+
tag: Any = ...
|
| 22 |
+
|
| 23 |
+
class TagTuple(JSONTag):
|
| 24 |
+
key: str = ...
|
| 25 |
+
def check(self, value: Any): ...
|
| 26 |
+
def to_json(self, value: Any): ...
|
| 27 |
+
def to_python(self, value: Any): ...
|
| 28 |
+
|
| 29 |
+
class PassList(JSONTag):
|
| 30 |
+
def check(self, value: Any): ...
|
| 31 |
+
def to_json(self, value: Any): ...
|
| 32 |
+
tag: Any = ...
|
| 33 |
+
|
| 34 |
+
class TagBytes(JSONTag):
|
| 35 |
+
key: str = ...
|
| 36 |
+
def check(self, value: Any): ...
|
| 37 |
+
def to_json(self, value: Any): ...
|
| 38 |
+
def to_python(self, value: Any): ...
|
| 39 |
+
|
| 40 |
+
class TagMarkup(JSONTag):
|
| 41 |
+
key: str = ...
|
| 42 |
+
def check(self, value: Any): ...
|
| 43 |
+
def to_json(self, value: Any): ...
|
| 44 |
+
def to_python(self, value: Any): ...
|
| 45 |
+
|
| 46 |
+
class TagUUID(JSONTag):
|
| 47 |
+
key: str = ...
|
| 48 |
+
def check(self, value: Any): ...
|
| 49 |
+
def to_json(self, value: Any): ...
|
| 50 |
+
def to_python(self, value: Any): ...
|
| 51 |
+
|
| 52 |
+
class TagDateTime(JSONTag):
|
| 53 |
+
key: str = ...
|
| 54 |
+
def check(self, value: Any): ...
|
| 55 |
+
def to_json(self, value: Any): ...
|
| 56 |
+
def to_python(self, value: Any): ...
|
| 57 |
+
|
| 58 |
+
class TaggedJSONSerializer:
|
| 59 |
+
default_tags: Any = ...
|
| 60 |
+
tags: Any = ...
|
| 61 |
+
order: Any = ...
|
| 62 |
+
def __init__(self) -> None: ...
|
| 63 |
+
def register(self, tag_class: Any, force: bool = ..., index: Optional[Any] = ...) -> None: ...
|
| 64 |
+
def tag(self, value: Any): ...
|
| 65 |
+
def untag(self, value: Any): ...
|
| 66 |
+
def dumps(self, value: Any): ...
|
| 67 |
+
def loads(self, value: Any): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/logging.pyi
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
def wsgi_errors_stream(): ...
|
| 4 |
+
def has_level_handler(logger: Any): ...
|
| 5 |
+
|
| 6 |
+
default_handler: Any
|
| 7 |
+
|
| 8 |
+
def create_logger(app: Any): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/sessions.pyi
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from abc import ABCMeta
|
| 2 |
+
from typing import Any, MutableMapping, Optional
|
| 3 |
+
|
| 4 |
+
from werkzeug.datastructures import CallbackDict
|
| 5 |
+
|
| 6 |
+
class SessionMixin(MutableMapping[str, Any], metaclass=ABCMeta):
|
| 7 |
+
@property
|
| 8 |
+
def permanent(self): ...
|
| 9 |
+
@permanent.setter
|
| 10 |
+
def permanent(self, value: Any) -> None: ...
|
| 11 |
+
new: bool = ...
|
| 12 |
+
modified: bool = ...
|
| 13 |
+
accessed: bool = ...
|
| 14 |
+
|
| 15 |
+
class SecureCookieSession(CallbackDict[str, Any], SessionMixin):
|
| 16 |
+
modified: bool = ...
|
| 17 |
+
accessed: bool = ...
|
| 18 |
+
def __init__(self, initial: Optional[Any] = ...) -> None: ...
|
| 19 |
+
def __getitem__(self, key: Any): ...
|
| 20 |
+
def get(self, key: Any, default: Optional[Any] = ...): ...
|
| 21 |
+
def setdefault(self, key: Any, default: Optional[Any] = ...): ...
|
| 22 |
+
|
| 23 |
+
class NullSession(SecureCookieSession):
|
| 24 |
+
__setitem__: Any = ...
|
| 25 |
+
__delitem__: Any = ...
|
| 26 |
+
clear: Any = ...
|
| 27 |
+
pop: Any = ...
|
| 28 |
+
popitem: Any = ...
|
| 29 |
+
update: Any = ...
|
| 30 |
+
setdefault: Any = ...
|
| 31 |
+
|
| 32 |
+
class SessionInterface:
|
| 33 |
+
null_session_class: Any = ...
|
| 34 |
+
pickle_based: bool = ...
|
| 35 |
+
def make_null_session(self, app: Any): ...
|
| 36 |
+
def is_null_session(self, obj: Any): ...
|
| 37 |
+
def get_cookie_domain(self, app: Any): ...
|
| 38 |
+
def get_cookie_path(self, app: Any): ...
|
| 39 |
+
def get_cookie_httponly(self, app: Any): ...
|
| 40 |
+
def get_cookie_secure(self, app: Any): ...
|
| 41 |
+
def get_cookie_samesite(self, app: Any): ...
|
| 42 |
+
def get_expiration_time(self, app: Any, session: Any): ...
|
| 43 |
+
def should_set_cookie(self, app: Any, session: Any): ...
|
| 44 |
+
def open_session(self, app: Any, request: Any) -> None: ...
|
| 45 |
+
def save_session(self, app: Any, session: Any, response: Any) -> None: ...
|
| 46 |
+
|
| 47 |
+
session_json_serializer: Any
|
| 48 |
+
|
| 49 |
+
class SecureCookieSessionInterface(SessionInterface):
|
| 50 |
+
salt: str = ...
|
| 51 |
+
digest_method: Any = ...
|
| 52 |
+
key_derivation: str = ...
|
| 53 |
+
serializer: Any = ...
|
| 54 |
+
session_class: Any = ...
|
| 55 |
+
def get_signing_serializer(self, app: Any): ...
|
| 56 |
+
def open_session(self, app: Any, request: Any): ...
|
| 57 |
+
def save_session(self, app: Any, session: Any, response: Any): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/testing.pyi
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import IO, Any, Iterable, Mapping, Optional, Text, TypeVar, Union
|
| 2 |
+
|
| 3 |
+
from click import BaseCommand
|
| 4 |
+
from click.testing import CliRunner, Result
|
| 5 |
+
from werkzeug.test import Client, EnvironBuilder as WerkzeugEnvironBuilder
|
| 6 |
+
|
| 7 |
+
# Response type for the client below.
|
| 8 |
+
# By default _R is Tuple[Iterable[Any], Union[Text, int], werkzeug.datastructures.Headers], however
|
| 9 |
+
# most commonly it is wrapped in a Reponse object.
|
| 10 |
+
_R = TypeVar("_R")
|
| 11 |
+
|
| 12 |
+
class FlaskClient(Client[_R]):
|
| 13 |
+
preserve_context: bool = ...
|
| 14 |
+
environ_base: Any = ...
|
| 15 |
+
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
| 16 |
+
def session_transaction(self, *args: Any, **kwargs: Any) -> None: ...
|
| 17 |
+
def __enter__(self): ...
|
| 18 |
+
def __exit__(self, exc_type: Any, exc_value: Any, tb: Any) -> None: ...
|
| 19 |
+
|
| 20 |
+
class FlaskCliRunner(CliRunner):
|
| 21 |
+
app: Any = ...
|
| 22 |
+
def __init__(self, app: Any, **kwargs: Any) -> None: ...
|
| 23 |
+
def invoke(
|
| 24 |
+
self,
|
| 25 |
+
cli: Optional[BaseCommand] = ...,
|
| 26 |
+
args: Optional[Union[str, Iterable[str]]] = ...,
|
| 27 |
+
input: Optional[Union[bytes, IO[Any], Text]] = ...,
|
| 28 |
+
env: Optional[Mapping[str, str]] = ...,
|
| 29 |
+
catch_exceptions: bool = ...,
|
| 30 |
+
color: bool = ...,
|
| 31 |
+
**extra: Any,
|
| 32 |
+
) -> Result: ...
|
| 33 |
+
|
| 34 |
+
class EnvironBuilder(WerkzeugEnvironBuilder):
|
| 35 |
+
app: Any
|
| 36 |
+
def __init__(
|
| 37 |
+
self,
|
| 38 |
+
app: Any,
|
| 39 |
+
path: str = ...,
|
| 40 |
+
base_url: Optional[Any] = ...,
|
| 41 |
+
subdomain: Optional[Any] = ...,
|
| 42 |
+
url_scheme: Optional[Any] = ...,
|
| 43 |
+
*args: Any,
|
| 44 |
+
**kwargs: Any,
|
| 45 |
+
) -> None: ...
|
| 46 |
+
def json_dumps(self, obj: Any, **kwargs: Any) -> str: ...
|
| 47 |
+
|
| 48 |
+
def make_test_environ_builder(
|
| 49 |
+
app: Any,
|
| 50 |
+
path: str = ...,
|
| 51 |
+
base_url: Optional[Any] = ...,
|
| 52 |
+
subdomain: Optional[Any] = ...,
|
| 53 |
+
url_scheme: Optional[Any] = ...,
|
| 54 |
+
*args: Any,
|
| 55 |
+
**kwargs: Any,
|
| 56 |
+
): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/views.pyi
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
http_method_funcs: Any
|
| 4 |
+
|
| 5 |
+
class View:
|
| 6 |
+
methods: Any = ...
|
| 7 |
+
provide_automatic_options: Any = ...
|
| 8 |
+
decorators: Any = ...
|
| 9 |
+
def dispatch_request(self, *args: Any, **kwargs: Any) -> Any: ...
|
| 10 |
+
@classmethod
|
| 11 |
+
def as_view(cls, name: Any, *class_args: Any, **class_kwargs: Any): ...
|
| 12 |
+
|
| 13 |
+
class MethodViewType(type):
|
| 14 |
+
def __init__(self, name: Any, bases: Any, d: Any) -> None: ...
|
| 15 |
+
|
| 16 |
+
class MethodView(View, metaclass=MethodViewType):
|
| 17 |
+
def dispatch_request(self, *args: Any, **kwargs: Any) -> Any: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/flask/wrappers.pyi
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Dict, Optional
|
| 2 |
+
|
| 3 |
+
from werkzeug.exceptions import HTTPException
|
| 4 |
+
from werkzeug.routing import Rule
|
| 5 |
+
from werkzeug.wrappers import Request as RequestBase, Response as ResponseBase
|
| 6 |
+
|
| 7 |
+
class JSONMixin:
|
| 8 |
+
@property
|
| 9 |
+
def is_json(self) -> bool: ...
|
| 10 |
+
@property
|
| 11 |
+
def json(self): ...
|
| 12 |
+
def get_json(self, force: bool = ..., silent: bool = ..., cache: bool = ...): ...
|
| 13 |
+
def on_json_loading_failed(self, e: Any) -> None: ...
|
| 14 |
+
|
| 15 |
+
class Request(RequestBase, JSONMixin):
|
| 16 |
+
url_rule: Optional[Rule] = ...
|
| 17 |
+
view_args: Dict[str, Any] = ...
|
| 18 |
+
routing_exception: Optional[HTTPException] = ...
|
| 19 |
+
# Request is making the max_content_length readonly, where it was not the
|
| 20 |
+
# case in its supertype.
|
| 21 |
+
# We would require something like https://github.com/python/typing/issues/241
|
| 22 |
+
@property
|
| 23 |
+
def max_content_length(self) -> Optional[int]: ... # type: ignore
|
| 24 |
+
@property
|
| 25 |
+
def endpoint(self) -> Optional[str]: ...
|
| 26 |
+
@property
|
| 27 |
+
def blueprint(self) -> Optional[str]: ...
|
| 28 |
+
|
| 29 |
+
class Response(ResponseBase, JSONMixin):
|
| 30 |
+
default_mimetype: Optional[str] = ...
|
| 31 |
+
@property
|
| 32 |
+
def max_cookie_size(self) -> int: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/google/__init__.pyi
ADDED
|
File without changes
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/google/protobuf/api_pb2.pyi
ADDED
|
@@ -0,0 +1,114 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
@generated by mypy-protobuf. Do not edit manually!
|
| 3 |
+
isort:skip_file
|
| 4 |
+
"""
|
| 5 |
+
from google.protobuf.descriptor import (
|
| 6 |
+
Descriptor as google___protobuf___descriptor___Descriptor,
|
| 7 |
+
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
|
| 8 |
+
)
|
| 9 |
+
|
| 10 |
+
from google.protobuf.internal.containers import (
|
| 11 |
+
RepeatedCompositeFieldContainer as google___protobuf___internal___containers___RepeatedCompositeFieldContainer,
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
from google.protobuf.message import (
|
| 15 |
+
Message as google___protobuf___message___Message,
|
| 16 |
+
)
|
| 17 |
+
|
| 18 |
+
from google.protobuf.source_context_pb2 import (
|
| 19 |
+
SourceContext as google___protobuf___source_context_pb2___SourceContext,
|
| 20 |
+
)
|
| 21 |
+
|
| 22 |
+
from google.protobuf.type_pb2 import (
|
| 23 |
+
Option as google___protobuf___type_pb2___Option,
|
| 24 |
+
SyntaxValue as google___protobuf___type_pb2___SyntaxValue,
|
| 25 |
+
)
|
| 26 |
+
|
| 27 |
+
from typing import (
|
| 28 |
+
Iterable as typing___Iterable,
|
| 29 |
+
Optional as typing___Optional,
|
| 30 |
+
Text as typing___Text,
|
| 31 |
+
)
|
| 32 |
+
|
| 33 |
+
from typing_extensions import (
|
| 34 |
+
Literal as typing_extensions___Literal,
|
| 35 |
+
)
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
builtin___bool = bool
|
| 39 |
+
builtin___bytes = bytes
|
| 40 |
+
builtin___float = float
|
| 41 |
+
builtin___int = int
|
| 42 |
+
|
| 43 |
+
|
| 44 |
+
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
|
| 45 |
+
|
| 46 |
+
class Api(google___protobuf___message___Message):
|
| 47 |
+
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
| 48 |
+
name: typing___Text = ...
|
| 49 |
+
version: typing___Text = ...
|
| 50 |
+
syntax: google___protobuf___type_pb2___SyntaxValue = ...
|
| 51 |
+
|
| 52 |
+
@property
|
| 53 |
+
def methods(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Method]: ...
|
| 54 |
+
|
| 55 |
+
@property
|
| 56 |
+
def options(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___type_pb2___Option]: ...
|
| 57 |
+
|
| 58 |
+
@property
|
| 59 |
+
def source_context(self) -> google___protobuf___source_context_pb2___SourceContext: ...
|
| 60 |
+
|
| 61 |
+
@property
|
| 62 |
+
def mixins(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[type___Mixin]: ...
|
| 63 |
+
|
| 64 |
+
def __init__(self,
|
| 65 |
+
*,
|
| 66 |
+
name : typing___Optional[typing___Text] = None,
|
| 67 |
+
methods : typing___Optional[typing___Iterable[type___Method]] = None,
|
| 68 |
+
options : typing___Optional[typing___Iterable[google___protobuf___type_pb2___Option]] = None,
|
| 69 |
+
version : typing___Optional[typing___Text] = None,
|
| 70 |
+
source_context : typing___Optional[google___protobuf___source_context_pb2___SourceContext] = None,
|
| 71 |
+
mixins : typing___Optional[typing___Iterable[type___Mixin]] = None,
|
| 72 |
+
syntax : typing___Optional[google___protobuf___type_pb2___SyntaxValue] = None,
|
| 73 |
+
) -> None: ...
|
| 74 |
+
def HasField(self, field_name: typing_extensions___Literal[u"source_context",b"source_context"]) -> builtin___bool: ...
|
| 75 |
+
def ClearField(self, field_name: typing_extensions___Literal[u"methods",b"methods",u"mixins",b"mixins",u"name",b"name",u"options",b"options",u"source_context",b"source_context",u"syntax",b"syntax",u"version",b"version"]) -> None: ...
|
| 76 |
+
type___Api = Api
|
| 77 |
+
|
| 78 |
+
class Method(google___protobuf___message___Message):
|
| 79 |
+
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
| 80 |
+
name: typing___Text = ...
|
| 81 |
+
request_type_url: typing___Text = ...
|
| 82 |
+
request_streaming: builtin___bool = ...
|
| 83 |
+
response_type_url: typing___Text = ...
|
| 84 |
+
response_streaming: builtin___bool = ...
|
| 85 |
+
syntax: google___protobuf___type_pb2___SyntaxValue = ...
|
| 86 |
+
|
| 87 |
+
@property
|
| 88 |
+
def options(self) -> google___protobuf___internal___containers___RepeatedCompositeFieldContainer[google___protobuf___type_pb2___Option]: ...
|
| 89 |
+
|
| 90 |
+
def __init__(self,
|
| 91 |
+
*,
|
| 92 |
+
name : typing___Optional[typing___Text] = None,
|
| 93 |
+
request_type_url : typing___Optional[typing___Text] = None,
|
| 94 |
+
request_streaming : typing___Optional[builtin___bool] = None,
|
| 95 |
+
response_type_url : typing___Optional[typing___Text] = None,
|
| 96 |
+
response_streaming : typing___Optional[builtin___bool] = None,
|
| 97 |
+
options : typing___Optional[typing___Iterable[google___protobuf___type_pb2___Option]] = None,
|
| 98 |
+
syntax : typing___Optional[google___protobuf___type_pb2___SyntaxValue] = None,
|
| 99 |
+
) -> None: ...
|
| 100 |
+
def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"options",b"options",u"request_streaming",b"request_streaming",u"request_type_url",b"request_type_url",u"response_streaming",b"response_streaming",u"response_type_url",b"response_type_url",u"syntax",b"syntax"]) -> None: ...
|
| 101 |
+
type___Method = Method
|
| 102 |
+
|
| 103 |
+
class Mixin(google___protobuf___message___Message):
|
| 104 |
+
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
| 105 |
+
name: typing___Text = ...
|
| 106 |
+
root: typing___Text = ...
|
| 107 |
+
|
| 108 |
+
def __init__(self,
|
| 109 |
+
*,
|
| 110 |
+
name : typing___Optional[typing___Text] = None,
|
| 111 |
+
root : typing___Optional[typing___Text] = None,
|
| 112 |
+
) -> None: ...
|
| 113 |
+
def ClearField(self, field_name: typing_extensions___Literal[u"name",b"name",u"root",b"root"]) -> None: ...
|
| 114 |
+
type___Mixin = Mixin
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/google/protobuf/descriptor_pool.pyi
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Optional
|
| 2 |
+
|
| 3 |
+
class DescriptorPool:
|
| 4 |
+
def __new__(cls, descriptor_db: Optional[Any] = ...): ...
|
| 5 |
+
def __init__(self, descriptor_db: Optional[Any] = ...) -> None: ...
|
| 6 |
+
def Add(self, file_desc_proto): ...
|
| 7 |
+
def AddSerializedFile(self, serialized_file_desc_proto): ...
|
| 8 |
+
def AddDescriptor(self, desc): ...
|
| 9 |
+
def AddEnumDescriptor(self, enum_desc): ...
|
| 10 |
+
def AddFileDescriptor(self, file_desc): ...
|
| 11 |
+
def FindFileByName(self, file_name): ...
|
| 12 |
+
def FindFileContainingSymbol(self, symbol): ...
|
| 13 |
+
def FindMessageTypeByName(self, full_name): ...
|
| 14 |
+
def FindEnumTypeByName(self, full_name): ...
|
| 15 |
+
def FindFieldByName(self, full_name): ...
|
| 16 |
+
def FindExtensionByName(self, full_name): ...
|
| 17 |
+
|
| 18 |
+
def Default(): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/google/protobuf/field_mask_pb2.pyi
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
@generated by mypy-protobuf. Do not edit manually!
|
| 3 |
+
isort:skip_file
|
| 4 |
+
"""
|
| 5 |
+
from google.protobuf.descriptor import (
|
| 6 |
+
Descriptor as google___protobuf___descriptor___Descriptor,
|
| 7 |
+
FileDescriptor as google___protobuf___descriptor___FileDescriptor,
|
| 8 |
+
)
|
| 9 |
+
|
| 10 |
+
from google.protobuf.internal.containers import (
|
| 11 |
+
RepeatedScalarFieldContainer as google___protobuf___internal___containers___RepeatedScalarFieldContainer,
|
| 12 |
+
)
|
| 13 |
+
|
| 14 |
+
from google.protobuf.internal.well_known_types import (
|
| 15 |
+
FieldMask as google___protobuf___internal___well_known_types___FieldMask,
|
| 16 |
+
)
|
| 17 |
+
|
| 18 |
+
from google.protobuf.message import (
|
| 19 |
+
Message as google___protobuf___message___Message,
|
| 20 |
+
)
|
| 21 |
+
|
| 22 |
+
from typing import (
|
| 23 |
+
Iterable as typing___Iterable,
|
| 24 |
+
Optional as typing___Optional,
|
| 25 |
+
Text as typing___Text,
|
| 26 |
+
)
|
| 27 |
+
|
| 28 |
+
from typing_extensions import (
|
| 29 |
+
Literal as typing_extensions___Literal,
|
| 30 |
+
)
|
| 31 |
+
|
| 32 |
+
|
| 33 |
+
builtin___bool = bool
|
| 34 |
+
builtin___bytes = bytes
|
| 35 |
+
builtin___float = float
|
| 36 |
+
builtin___int = int
|
| 37 |
+
|
| 38 |
+
|
| 39 |
+
DESCRIPTOR: google___protobuf___descriptor___FileDescriptor = ...
|
| 40 |
+
|
| 41 |
+
class FieldMask(google___protobuf___message___Message, google___protobuf___internal___well_known_types___FieldMask):
|
| 42 |
+
DESCRIPTOR: google___protobuf___descriptor___Descriptor = ...
|
| 43 |
+
paths: google___protobuf___internal___containers___RepeatedScalarFieldContainer[typing___Text] = ...
|
| 44 |
+
|
| 45 |
+
def __init__(self,
|
| 46 |
+
*,
|
| 47 |
+
paths : typing___Optional[typing___Iterable[typing___Text]] = None,
|
| 48 |
+
) -> None: ...
|
| 49 |
+
def ClearField(self, field_name: typing_extensions___Literal[u"paths",b"paths"]) -> None: ...
|
| 50 |
+
type___FieldMask = FieldMask
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/google/protobuf/service.pyi
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from concurrent.futures import Future
|
| 2 |
+
from typing import Callable, Optional, Text, Type
|
| 3 |
+
|
| 4 |
+
from google.protobuf.descriptor import MethodDescriptor, ServiceDescriptor
|
| 5 |
+
from google.protobuf.message import Message
|
| 6 |
+
|
| 7 |
+
class RpcException(Exception): ...
|
| 8 |
+
|
| 9 |
+
class Service:
|
| 10 |
+
@staticmethod
|
| 11 |
+
def GetDescriptor() -> ServiceDescriptor: ...
|
| 12 |
+
def CallMethod(
|
| 13 |
+
self,
|
| 14 |
+
method_descriptor: MethodDescriptor,
|
| 15 |
+
rpc_controller: RpcController,
|
| 16 |
+
request: Message,
|
| 17 |
+
done: Optional[Callable[[Message], None]],
|
| 18 |
+
) -> Optional[Future[Message]]: ...
|
| 19 |
+
def GetRequestClass(self, method_descriptor: MethodDescriptor) -> Type[Message]: ...
|
| 20 |
+
def GetResponseClass(self, method_descriptor: MethodDescriptor) -> Type[Message]: ...
|
| 21 |
+
|
| 22 |
+
class RpcController:
|
| 23 |
+
def Reset(self) -> None: ...
|
| 24 |
+
def Failed(self) -> bool: ...
|
| 25 |
+
def ErrorText(self) -> Optional[Text]: ...
|
| 26 |
+
def StartCancel(self) -> None: ...
|
| 27 |
+
def SetFailed(self, reason: Text) -> None: ...
|
| 28 |
+
def IsCanceled(self) -> bool: ...
|
| 29 |
+
def NotifyOnCancel(self, callback: Callable[[], None]) -> None: ...
|
| 30 |
+
|
| 31 |
+
class RpcChannel:
|
| 32 |
+
def CallMethod(
|
| 33 |
+
self,
|
| 34 |
+
method_descriptor: MethodDescriptor,
|
| 35 |
+
rpc_controller: RpcController,
|
| 36 |
+
request: Message,
|
| 37 |
+
response_class: Type[Message],
|
| 38 |
+
done: Optional[Callable[[Message], None]],
|
| 39 |
+
) -> Optional[Future[Message]]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/maxminddb/__init__.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Text
|
| 2 |
+
|
| 3 |
+
from maxminddb import reader
|
| 4 |
+
|
| 5 |
+
def open_database(database: Text, mode: int = ...) -> reader.Reader: ...
|
| 6 |
+
def Reader(database: Text) -> reader.Reader: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/maxminddb/compat.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any
|
| 2 |
+
|
| 3 |
+
def compat_ip_address(address: object) -> Any: ...
|
| 4 |
+
def int_from_byte(x: int) -> int: ...
|
| 5 |
+
def int_from_bytes(x: bytes) -> int: ...
|
| 6 |
+
def byte_from_int(x: int) -> bytes: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/maxminddb/const.pyi
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
MODE_AUTO: int = ...
|
| 2 |
+
MODE_MMAP_EXT: int = ...
|
| 3 |
+
MODE_MMAP: int = ...
|
| 4 |
+
MODE_FILE: int = ...
|
| 5 |
+
MODE_MEMORY: int = ...
|
| 6 |
+
MODE_FD: int = ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/maxminddb/decoder.pyi
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Tuple
|
| 2 |
+
|
| 3 |
+
class Decoder:
|
| 4 |
+
def __init__(self, database_buffer: bytes, pointer_base: int = ..., pointer_test: bool = ...) -> None: ...
|
| 5 |
+
def decode(self, offset: int) -> Tuple[Any, int]: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/maxminddb/errors.pyi
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
class InvalidDatabaseError(RuntimeError): ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/maxminddb/extension.pyi
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Mapping, Sequence, Text
|
| 2 |
+
|
| 3 |
+
from maxminddb.errors import InvalidDatabaseError as InvalidDatabaseError
|
| 4 |
+
|
| 5 |
+
class Reader:
|
| 6 |
+
closed: bool = ...
|
| 7 |
+
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
| 8 |
+
def close(self, *args: Any, **kwargs: Any) -> Any: ...
|
| 9 |
+
def get(self, *args: Any, **kwargs: Any) -> Any: ...
|
| 10 |
+
def metadata(self, *args: Any, **kwargs: Any) -> Any: ...
|
| 11 |
+
def __enter__(self, *args: Any, **kwargs: Any) -> Any: ...
|
| 12 |
+
def __exit__(self, *args: Any, **kwargs: Any) -> Any: ...
|
| 13 |
+
|
| 14 |
+
class extension:
|
| 15 |
+
@property
|
| 16 |
+
def node_count(self) -> int: ...
|
| 17 |
+
@property
|
| 18 |
+
def record_size(self) -> int: ...
|
| 19 |
+
@property
|
| 20 |
+
def ip_version(self) -> int: ...
|
| 21 |
+
@property
|
| 22 |
+
def database_type(self) -> Text: ...
|
| 23 |
+
@property
|
| 24 |
+
def languages(self) -> Sequence[Text]: ...
|
| 25 |
+
@property
|
| 26 |
+
def binary_format_major_version(self) -> int: ...
|
| 27 |
+
@property
|
| 28 |
+
def binary_format_minor_version(self) -> int: ...
|
| 29 |
+
@property
|
| 30 |
+
def build_epoch(self) -> int: ...
|
| 31 |
+
@property
|
| 32 |
+
def description(self) -> Mapping[Text, Text]: ...
|
| 33 |
+
def __init__(self, **kwargs: Any) -> None: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/maxminddb/reader.pyi
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from ipaddress import IPv4Address, IPv6Address
|
| 2 |
+
from types import TracebackType
|
| 3 |
+
from typing import Any, Mapping, Optional, Sequence, Text, Tuple, Type, Union
|
| 4 |
+
|
| 5 |
+
class Reader:
|
| 6 |
+
closed: bool = ...
|
| 7 |
+
def __init__(self, database: bytes, mode: int = ...) -> None: ...
|
| 8 |
+
def metadata(self) -> Metadata: ...
|
| 9 |
+
def get(self, ip_address: Union[Text, IPv4Address, IPv6Address]) -> Optional[Any]: ...
|
| 10 |
+
def get_with_prefix_len(self, ip_address: Union[Text, IPv4Address, IPv6Address]) -> Tuple[Optional[Any], int]: ...
|
| 11 |
+
def close(self) -> None: ...
|
| 12 |
+
def __enter__(self) -> Reader: ...
|
| 13 |
+
def __exit__(
|
| 14 |
+
self,
|
| 15 |
+
exc_type: Optional[Type[BaseException]] = ...,
|
| 16 |
+
exc_val: Optional[BaseException] = ...,
|
| 17 |
+
exc_tb: Optional[TracebackType] = ...,
|
| 18 |
+
) -> None: ...
|
| 19 |
+
|
| 20 |
+
class Metadata:
|
| 21 |
+
node_count: int = ...
|
| 22 |
+
record_size: int = ...
|
| 23 |
+
ip_version: int = ...
|
| 24 |
+
database_type: Text = ...
|
| 25 |
+
languages: Sequence[Text] = ...
|
| 26 |
+
binary_format_major_version: int = ...
|
| 27 |
+
binary_format_minor_version: int = ...
|
| 28 |
+
build_epoch: int = ...
|
| 29 |
+
description: Mapping[Text, Text] = ...
|
| 30 |
+
def __init__(self, **kwargs: Any) -> None: ...
|
| 31 |
+
@property
|
| 32 |
+
def node_byte_size(self) -> int: ...
|
| 33 |
+
@property
|
| 34 |
+
def search_tree_size(self) -> int: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/paramiko/_version.pyi
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Tuple
|
| 2 |
+
|
| 3 |
+
__version_info__: Tuple[int, int, int]
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/paramiko/_winapi.pyi
ADDED
|
@@ -0,0 +1,97 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import builtins
|
| 2 |
+
import ctypes.wintypes
|
| 3 |
+
import sys
|
| 4 |
+
from types import TracebackType
|
| 5 |
+
from typing import Any, Optional, Type, TypeVar
|
| 6 |
+
|
| 7 |
+
assert sys.platform == "win32"
|
| 8 |
+
|
| 9 |
+
_T = TypeVar("_T")
|
| 10 |
+
|
| 11 |
+
def format_system_message(errno: int) -> Optional[str]: ...
|
| 12 |
+
|
| 13 |
+
class WindowsError(builtins.WindowsError):
|
| 14 |
+
def __init__(self, value: Optional[int] = ...) -> None: ...
|
| 15 |
+
@property
|
| 16 |
+
def message(self) -> str: ...
|
| 17 |
+
@property
|
| 18 |
+
def code(self) -> int: ...
|
| 19 |
+
|
| 20 |
+
def handle_nonzero_success(result: int) -> None: ...
|
| 21 |
+
|
| 22 |
+
GMEM_MOVEABLE: int
|
| 23 |
+
GlobalAlloc: Any
|
| 24 |
+
GlobalLock: Any
|
| 25 |
+
GlobalUnlock: Any
|
| 26 |
+
GlobalSize: Any
|
| 27 |
+
CreateFileMapping: Any
|
| 28 |
+
MapViewOfFile: Any
|
| 29 |
+
UnmapViewOfFile: Any
|
| 30 |
+
RtlMoveMemory: Any
|
| 31 |
+
|
| 32 |
+
class MemoryMap:
|
| 33 |
+
name: str
|
| 34 |
+
length: int
|
| 35 |
+
security_attributes: Any = ...
|
| 36 |
+
pos: int
|
| 37 |
+
filemap: Any = ...
|
| 38 |
+
view: Any = ...
|
| 39 |
+
def __init__(self, name: str, length: int, security_attributes: Optional[Any] = ...) -> None: ...
|
| 40 |
+
def __enter__(self: _T) -> _T: ...
|
| 41 |
+
def seek(self, pos: int) -> None: ...
|
| 42 |
+
def write(self, msg: bytes) -> None: ...
|
| 43 |
+
def read(self, n: int) -> bytes: ...
|
| 44 |
+
def __exit__(
|
| 45 |
+
self, exc_type: Optional[Type[BaseException]], exc_val: Optional[BaseException], tb: Optional[TracebackType]
|
| 46 |
+
) -> None: ...
|
| 47 |
+
|
| 48 |
+
READ_CONTROL: int
|
| 49 |
+
STANDARD_RIGHTS_REQUIRED: int
|
| 50 |
+
STANDARD_RIGHTS_READ: int
|
| 51 |
+
STANDARD_RIGHTS_WRITE: int
|
| 52 |
+
STANDARD_RIGHTS_EXECUTE: int
|
| 53 |
+
STANDARD_RIGHTS_ALL: int
|
| 54 |
+
POLICY_VIEW_LOCAL_INFORMATION: int
|
| 55 |
+
POLICY_VIEW_AUDIT_INFORMATION: int
|
| 56 |
+
POLICY_GET_PRIVATE_INFORMATION: int
|
| 57 |
+
POLICY_TRUST_ADMIN: int
|
| 58 |
+
POLICY_CREATE_ACCOUNT: int
|
| 59 |
+
POLICY_CREATE_SECRET: int
|
| 60 |
+
POLICY_CREATE_PRIVILEGE: int
|
| 61 |
+
POLICY_SET_DEFAULT_QUOTA_LIMITS: int
|
| 62 |
+
POLICY_SET_AUDIT_REQUIREMENTS: int
|
| 63 |
+
POLICY_AUDIT_LOG_ADMIN: int
|
| 64 |
+
POLICY_SERVER_ADMIN: int
|
| 65 |
+
POLICY_LOOKUP_NAMES: int
|
| 66 |
+
POLICY_NOTIFICATION: int
|
| 67 |
+
POLICY_ALL_ACCESS: int
|
| 68 |
+
POLICY_READ: int
|
| 69 |
+
POLICY_WRITE: int
|
| 70 |
+
POLICY_EXECUTE: int
|
| 71 |
+
|
| 72 |
+
class TokenAccess:
|
| 73 |
+
TOKEN_QUERY: int
|
| 74 |
+
|
| 75 |
+
class TokenInformationClass:
|
| 76 |
+
TokenUser: int
|
| 77 |
+
|
| 78 |
+
class TOKEN_USER(ctypes.Structure):
|
| 79 |
+
num: int
|
| 80 |
+
|
| 81 |
+
class SECURITY_DESCRIPTOR(ctypes.Structure):
|
| 82 |
+
SECURITY_DESCRIPTOR_CONTROL: Any
|
| 83 |
+
REVISION: int
|
| 84 |
+
|
| 85 |
+
class SECURITY_ATTRIBUTES(ctypes.Structure):
|
| 86 |
+
nLength: int
|
| 87 |
+
lpSecurityDescriptor: Any
|
| 88 |
+
def __init__(self, *args: Any, **kwargs: Any) -> None: ...
|
| 89 |
+
@property
|
| 90 |
+
def descriptor(self) -> Any: ...
|
| 91 |
+
@descriptor.setter
|
| 92 |
+
def descriptor(self, value: Any) -> None: ...
|
| 93 |
+
|
| 94 |
+
def GetTokenInformation(token: Any, information_class: Any) -> Any: ...
|
| 95 |
+
def OpenProcessToken(proc_handle: Any, access: Any) -> Any: ...
|
| 96 |
+
def get_current_user() -> TOKEN_USER: ...
|
| 97 |
+
def get_security_attributes_for_user(user: Optional[TOKEN_USER] = ...) -> SECURITY_ATTRIBUTES: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/paramiko/agent.pyi
ADDED
|
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from socket import _RetAddress, socket
|
| 2 |
+
from threading import Thread
|
| 3 |
+
from typing import Dict, Protocol, Tuple
|
| 4 |
+
|
| 5 |
+
from paramiko.channel import Channel
|
| 6 |
+
from paramiko.message import Message
|
| 7 |
+
from paramiko.pkey import PKey
|
| 8 |
+
from paramiko.transport import Transport
|
| 9 |
+
|
| 10 |
+
class _AgentProxy(Protocol):
|
| 11 |
+
def connect(self) -> None: ...
|
| 12 |
+
def close(self) -> None: ...
|
| 13 |
+
|
| 14 |
+
cSSH2_AGENTC_REQUEST_IDENTITIES: bytes
|
| 15 |
+
SSH2_AGENT_IDENTITIES_ANSWER: int
|
| 16 |
+
cSSH2_AGENTC_SIGN_REQUEST: bytes
|
| 17 |
+
SSH2_AGENT_SIGN_RESPONSE: int
|
| 18 |
+
|
| 19 |
+
class AgentSSH:
|
| 20 |
+
def __init__(self) -> None: ...
|
| 21 |
+
def get_keys(self) -> Tuple[AgentKey, ...]: ...
|
| 22 |
+
|
| 23 |
+
class AgentProxyThread(Thread):
|
| 24 |
+
def __init__(self, agent: _AgentProxy) -> None: ...
|
| 25 |
+
def run(self) -> None: ...
|
| 26 |
+
|
| 27 |
+
class AgentLocalProxy(AgentProxyThread):
|
| 28 |
+
def __init__(self, agent: AgentServerProxy) -> None: ...
|
| 29 |
+
def get_connection(self) -> Tuple[socket, _RetAddress]: ...
|
| 30 |
+
|
| 31 |
+
class AgentRemoteProxy(AgentProxyThread):
|
| 32 |
+
def __init__(self, agent: AgentClientProxy, chan: Channel) -> None: ...
|
| 33 |
+
def get_connection(self) -> Tuple[socket, _RetAddress]: ...
|
| 34 |
+
|
| 35 |
+
class AgentClientProxy:
|
| 36 |
+
thread: Thread
|
| 37 |
+
def __init__(self, chanRemote: Channel) -> None: ...
|
| 38 |
+
def __del__(self) -> None: ...
|
| 39 |
+
def connect(self) -> None: ...
|
| 40 |
+
def close(self) -> None: ...
|
| 41 |
+
|
| 42 |
+
class AgentServerProxy(AgentSSH):
|
| 43 |
+
thread: Thread
|
| 44 |
+
def __init__(self, t: Transport) -> None: ...
|
| 45 |
+
def __del__(self) -> None: ...
|
| 46 |
+
def connect(self) -> None: ...
|
| 47 |
+
def close(self) -> None: ...
|
| 48 |
+
def get_env(self) -> Dict[str, str]: ...
|
| 49 |
+
|
| 50 |
+
class AgentRequestHandler:
|
| 51 |
+
def __init__(self, chanClient: Channel) -> None: ...
|
| 52 |
+
def __del__(self) -> None: ...
|
| 53 |
+
def close(self) -> None: ...
|
| 54 |
+
|
| 55 |
+
class Agent(AgentSSH):
|
| 56 |
+
def __init__(self) -> None: ...
|
| 57 |
+
def close(self) -> None: ...
|
| 58 |
+
|
| 59 |
+
class AgentKey(PKey):
|
| 60 |
+
agent: AgentSSH
|
| 61 |
+
blob: bytes
|
| 62 |
+
public_blob: None
|
| 63 |
+
name: str
|
| 64 |
+
def __init__(self, agent: AgentSSH, blob: bytes) -> None: ...
|
| 65 |
+
def asbytes(self) -> bytes: ...
|
| 66 |
+
def get_name(self) -> str: ...
|
| 67 |
+
def sign_ssh_data(self, data: bytes) -> Message: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/paramiko/auth_handler.pyi
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from threading import Event
|
| 2 |
+
from typing import Callable, List, Optional, Tuple
|
| 3 |
+
|
| 4 |
+
from paramiko.message import Message
|
| 5 |
+
from paramiko.pkey import PKey
|
| 6 |
+
from paramiko.server import InteractiveQuery
|
| 7 |
+
from paramiko.ssh_gss import _SSH_GSSAuth
|
| 8 |
+
from paramiko.transport import Transport
|
| 9 |
+
|
| 10 |
+
_InteractiveCallback = Callable[[str, str, List[Tuple[str, bool]]], List[str]]
|
| 11 |
+
|
| 12 |
+
class AuthHandler:
|
| 13 |
+
transport: Transport
|
| 14 |
+
username: Optional[str]
|
| 15 |
+
authenticated: bool
|
| 16 |
+
auth_event: Optional[Event]
|
| 17 |
+
auth_method: str
|
| 18 |
+
banner: Optional[str]
|
| 19 |
+
password: Optional[str]
|
| 20 |
+
private_key: Optional[PKey]
|
| 21 |
+
interactive_handler: Optional[_InteractiveCallback]
|
| 22 |
+
submethods: Optional[str]
|
| 23 |
+
auth_username: Optional[str]
|
| 24 |
+
auth_fail_count: int
|
| 25 |
+
gss_host: Optional[str]
|
| 26 |
+
gss_deleg_creds: bool
|
| 27 |
+
def __init__(self, transport: Transport) -> None: ...
|
| 28 |
+
def is_authenticated(self) -> bool: ...
|
| 29 |
+
def get_username(self) -> Optional[str]: ...
|
| 30 |
+
def auth_none(self, username: str, event: Event) -> None: ...
|
| 31 |
+
def auth_publickey(self, username: str, key: PKey, event: Event) -> None: ...
|
| 32 |
+
def auth_password(self, username: str, password: str, event: Event) -> None: ...
|
| 33 |
+
def auth_interactive(self, username: str, handler: _InteractiveCallback, event: Event, submethods: str = ...) -> None: ...
|
| 34 |
+
def auth_gssapi_with_mic(self, username: str, gss_host: str, gss_deleg_creds: bool, event: Event) -> None: ...
|
| 35 |
+
def auth_gssapi_keyex(self, username: str, event: Event) -> None: ...
|
| 36 |
+
def abort(self) -> None: ...
|
| 37 |
+
def wait_for_response(self, event: Event) -> List[str]: ...
|
| 38 |
+
|
| 39 |
+
class GssapiWithMicAuthHandler:
|
| 40 |
+
method: str
|
| 41 |
+
sshgss: _SSH_GSSAuth
|
| 42 |
+
def __init__(self, delegate: AuthHandler, sshgss: _SSH_GSSAuth) -> None: ...
|
| 43 |
+
def abort(self) -> None: ...
|
| 44 |
+
@property
|
| 45 |
+
def transport(self) -> Transport: ...
|
| 46 |
+
@property
|
| 47 |
+
def auth_username(self) -> str: ...
|
| 48 |
+
@property
|
| 49 |
+
def gss_host(self) -> str: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/paramiko/ber.pyi
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from typing import Any, Iterable, List, Union
|
| 2 |
+
|
| 3 |
+
class BERException(Exception): ...
|
| 4 |
+
|
| 5 |
+
class BER:
|
| 6 |
+
content: bytes
|
| 7 |
+
idx: int
|
| 8 |
+
def __init__(self, content: bytes = ...) -> None: ...
|
| 9 |
+
def asbytes(self) -> bytes: ...
|
| 10 |
+
def decode(self) -> Union[None, int, List[int]]: ...
|
| 11 |
+
def decode_next(self) -> Union[None, int, List[int]]: ...
|
| 12 |
+
@staticmethod
|
| 13 |
+
def decode_sequence(data: bytes) -> List[Union[int, List[int]]]: ...
|
| 14 |
+
def encode_tlv(self, ident: int, val: bytes) -> None: ...
|
| 15 |
+
def encode(self, x: Any) -> None: ...
|
| 16 |
+
@staticmethod
|
| 17 |
+
def encode_sequence(data: Iterable[str]) -> bytes: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/paramiko/buffered_pipe.pyi
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from threading import Event
|
| 2 |
+
from typing import Generic, Optional, Text, TypeVar
|
| 3 |
+
|
| 4 |
+
_T = TypeVar("_T", Text, bytes)
|
| 5 |
+
|
| 6 |
+
class PipeTimeout(IOError): ...
|
| 7 |
+
|
| 8 |
+
class BufferedPipe(Generic[_T]):
|
| 9 |
+
def __init__(self) -> None: ...
|
| 10 |
+
def set_event(self, event: Event) -> None: ...
|
| 11 |
+
def feed(self, data: _T) -> None: ...
|
| 12 |
+
def read_ready(self) -> bool: ...
|
| 13 |
+
def read(self, nbytes: int, timeout: Optional[float] = ...) -> _T: ...
|
| 14 |
+
def empty(self) -> _T: ...
|
| 15 |
+
def close(self) -> None: ...
|
| 16 |
+
def __len__(self) -> int: ...
|
material/dataset/xpsdeeplearning/.venv/lib/python3.10/site-packages/jedi/third_party/typeshed/third_party/2and3/paramiko/channel.pyi
ADDED
|
@@ -0,0 +1,99 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from logging import Logger
|
| 2 |
+
from threading import Condition, Event, Lock
|
| 3 |
+
from typing import Any, Callable, Mapping, Optional, Tuple, TypeVar
|
| 4 |
+
|
| 5 |
+
from paramiko.buffered_pipe import BufferedPipe, PipeTimeout
|
| 6 |
+
from paramiko.file import BufferedFile
|
| 7 |
+
from paramiko.message import Message
|
| 8 |
+
from paramiko.transport import Transport
|
| 9 |
+
from paramiko.util import ClosingContextManager
|
| 10 |
+
|
| 11 |
+
_F = TypeVar("_F", bound=Callable[..., Any])
|
| 12 |
+
|
| 13 |
+
def open_only(func: _F) -> Callable[[_F], _F]: ...
|
| 14 |
+
|
| 15 |
+
class Channel(ClosingContextManager):
|
| 16 |
+
chanid: int
|
| 17 |
+
remote_chanid: int
|
| 18 |
+
transport: Optional[Transport]
|
| 19 |
+
active: bool
|
| 20 |
+
eof_received: int
|
| 21 |
+
eof_sent: int
|
| 22 |
+
in_buffer: BufferedPipe
|
| 23 |
+
in_stderr_buffer: BufferedPipe
|
| 24 |
+
timeout: Optional[float]
|
| 25 |
+
closed: bool
|
| 26 |
+
ultra_debug: bool
|
| 27 |
+
lock: Lock
|
| 28 |
+
out_buffer_cv: Condition
|
| 29 |
+
in_window_size: int
|
| 30 |
+
out_window_size: int
|
| 31 |
+
in_max_packet_size: int
|
| 32 |
+
out_max_packet_size: int
|
| 33 |
+
in_window_threshold: int
|
| 34 |
+
in_window_sofar: int
|
| 35 |
+
status_event: Event
|
| 36 |
+
logger: Logger
|
| 37 |
+
event: Event
|
| 38 |
+
event_ready: bool
|
| 39 |
+
combine_stderr: bool
|
| 40 |
+
exit_status: int
|
| 41 |
+
origin_addr: None
|
| 42 |
+
def __init__(self, chanid: int) -> None: ...
|
| 43 |
+
def __del__(self) -> None: ...
|
| 44 |
+
def get_pty(
|
| 45 |
+
self, term: str = ..., width: int = ..., height: int = ..., width_pixels: int = ..., height_pixels: int = ...
|
| 46 |
+
) -> None: ...
|
| 47 |
+
def invoke_shell(self) -> None: ...
|
| 48 |
+
def exec_command(self, command: str) -> None: ...
|
| 49 |
+
def invoke_subsystem(self, subsystem: str) -> None: ...
|
| 50 |
+
def resize_pty(self, width: int = ..., height: int = ..., width_pixels: int = ..., height_pixels: int = ...) -> None: ...
|
| 51 |
+
def update_environment(self, environment: Mapping[str, str]) -> None: ...
|
| 52 |
+
def set_environment_variable(self, name: str, value: str) -> None: ...
|
| 53 |
+
def exit_status_ready(self) -> bool: ...
|
| 54 |
+
def recv_exit_status(self) -> int: ...
|
| 55 |
+
def send_exit_status(self, status: int) -> None: ...
|
| 56 |
+
def request_x11(
|
| 57 |
+
self,
|
| 58 |
+
screen_number: int = ...,
|
| 59 |
+
auth_protocol: Optional[str] = ...,
|
| 60 |
+
auth_cookie: Optional[str] = ...,
|
| 61 |
+
single_connection: bool = ...,
|
| 62 |
+
handler: Optional[Callable[[Channel, Tuple[str, int]], None]] = ...,
|
| 63 |
+
) -> bytes: ...
|
| 64 |
+
def request_forward_agent(self, handler: Callable[[Channel], None]) -> bool: ...
|
| 65 |
+
def get_transport(self) -> Transport: ...
|
| 66 |
+
def set_name(self, name: str) -> None: ...
|
| 67 |
+
def get_name(self) -> str: ...
|
| 68 |
+
def get_id(self) -> int: ...
|
| 69 |
+
def set_combine_stderr(self, combine: bool) -> bool: ...
|
| 70 |
+
def settimeout(self, timeout: Optional[float]) -> None: ...
|
| 71 |
+
def gettimeout(self) -> Optional[float]: ...
|
| 72 |
+
def setblocking(self, blocking: bool) -> None: ...
|
| 73 |
+
def getpeername(self) -> str: ...
|
| 74 |
+
def close(self) -> None: ...
|
| 75 |
+
def recv_ready(self) -> bool: ...
|
| 76 |
+
def recv(self, nbytes: int) -> bytes: ...
|
| 77 |
+
def recv_stderr_ready(self) -> bool: ...
|
| 78 |
+
def recv_stderr(self, nbytes: int) -> bytes: ...
|
| 79 |
+
def send_ready(self) -> bool: ...
|
| 80 |
+
def send(self, s: bytes) -> int: ...
|
| 81 |
+
def send_stderr(self, s: bytes) -> int: ...
|
| 82 |
+
def sendall(self, s: bytes) -> None: ...
|
| 83 |
+
def sendall_stderr(self, s: bytes) -> None: ...
|
| 84 |
+
def makefile(self, *params: Any) -> ChannelFile: ...
|
| 85 |
+
def makefile_stderr(self, *params: Any) -> ChannelStderrFile: ...
|
| 86 |
+
def makefile_stdin(self, *params: Any) -> ChannelStdinFile: ...
|
| 87 |
+
def fileno(self) -> int: ...
|
| 88 |
+
def shutdown(self, how: int) -> None: ...
|
| 89 |
+
def shutdown_read(self) -> None: ...
|
| 90 |
+
def shutdown_write(self) -> None: ...
|
| 91 |
+
|
| 92 |
+
class ChannelFile(BufferedFile):
|
| 93 |
+
channel: Channel
|
| 94 |
+
def __init__(self, channel: Channel, mode: str = ..., bufsize: int = ...) -> None: ...
|
| 95 |
+
|
| 96 |
+
class ChannelStderrFile(ChannelFile): ...
|
| 97 |
+
|
| 98 |
+
class ChannelStdinFile(ChannelFile):
|
| 99 |
+
def close(self) -> None: ...
|