types-pexpect 4.8.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- types-pexpect-4.8.0.0/CHANGELOG.md +4 -0
- types-pexpect-4.8.0.0/MANIFEST.in +1 -0
- types-pexpect-4.8.0.0/PKG-INFO +31 -0
- types-pexpect-4.8.0.0/pexpect-stubs/ANSI.pyi +43 -0
- types-pexpect-4.8.0.0/pexpect-stubs/FSM.pyi +39 -0
- types-pexpect-4.8.0.0/pexpect-stubs/METADATA.toml +1 -0
- types-pexpect-4.8.0.0/pexpect-stubs/__init__.pyi +20 -0
- types-pexpect-4.8.0.0/pexpect-stubs/_async.pyi +17 -0
- types-pexpect-4.8.0.0/pexpect-stubs/exceptions.pyi +6 -0
- types-pexpect-4.8.0.0/pexpect-stubs/expect.pyi +38 -0
- types-pexpect-4.8.0.0/pexpect-stubs/fdpexpect.pyi +32 -0
- types-pexpect-4.8.0.0/pexpect-stubs/popen_spawn.pyi +34 -0
- types-pexpect-4.8.0.0/pexpect-stubs/pty_spawn.pyi +73 -0
- types-pexpect-4.8.0.0/pexpect-stubs/pxssh.pyi +59 -0
- types-pexpect-4.8.0.0/pexpect-stubs/replwrap.pyi +25 -0
- types-pexpect-4.8.0.0/pexpect-stubs/run.pyi +24 -0
- types-pexpect-4.8.0.0/pexpect-stubs/screen.pyi +80 -0
- types-pexpect-4.8.0.0/pexpect-stubs/spawnbase.pyi +79 -0
- types-pexpect-4.8.0.0/pexpect-stubs/utils.pyi +9 -0
- types-pexpect-4.8.0.0/setup.cfg +4 -0
- types-pexpect-4.8.0.0/setup.py +45 -0
- types-pexpect-4.8.0.0/types_pexpect.egg-info/PKG-INFO +31 -0
- types-pexpect-4.8.0.0/types_pexpect.egg-info/SOURCES.txt +23 -0
- types-pexpect-4.8.0.0/types_pexpect.egg-info/dependency_links.txt +1 -0
- types-pexpect-4.8.0.0/types_pexpect.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include CHANGELOG.md
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: types-pexpect
|
|
3
|
+
Version: 4.8.0.0
|
|
4
|
+
Summary: Typing stubs for pexpect
|
|
5
|
+
Home-page: https://github.com/python/typeshed
|
|
6
|
+
License: Apache-2.0 license
|
|
7
|
+
Project-URL: GitHub, https://github.com/python/typeshed
|
|
8
|
+
Project-URL: Changes, https://github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/pexpect.md
|
|
9
|
+
Project-URL: Issue tracker, https://github.com/python/typeshed/issues
|
|
10
|
+
Project-URL: Chat, https://gitter.im/python/typing
|
|
11
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Typing :: Stubs Only
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
## Typing stubs for pexpect
|
|
17
|
+
|
|
18
|
+
This is a PEP 561 type stub package for the `pexpect` package. It
|
|
19
|
+
can be used by type-checking tools like
|
|
20
|
+
[mypy](https://github.com/python/mypy/),
|
|
21
|
+
[pyright](https://github.com/microsoft/pyright),
|
|
22
|
+
[pytype](https://github.com/google/pytype/),
|
|
23
|
+
PyCharm, etc. to check code that uses
|
|
24
|
+
`pexpect`. The source for this package can be found at
|
|
25
|
+
https://github.com/python/typeshed/tree/main/stubs/pexpect. All fixes for
|
|
26
|
+
types and metadata should be contributed there.
|
|
27
|
+
|
|
28
|
+
See https://github.com/python/typeshed/blob/main/README.md for more details.
|
|
29
|
+
This package was generated from typeshed commit `06c2fb047abe52e329ff854fba2675293173bf50` and was tested
|
|
30
|
+
with mypy 1.3.0, pyright 1.1.314, and
|
|
31
|
+
pytype 2023.6.2.
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from . import screen
|
|
4
|
+
|
|
5
|
+
def DoEmit(fsm) -> None: ...
|
|
6
|
+
def DoStartNumber(fsm) -> None: ...
|
|
7
|
+
def DoBuildNumber(fsm) -> None: ...
|
|
8
|
+
def DoBackOne(fsm) -> None: ...
|
|
9
|
+
def DoBack(fsm) -> None: ...
|
|
10
|
+
def DoDownOne(fsm) -> None: ...
|
|
11
|
+
def DoDown(fsm) -> None: ...
|
|
12
|
+
def DoForwardOne(fsm) -> None: ...
|
|
13
|
+
def DoForward(fsm) -> None: ...
|
|
14
|
+
def DoUpReverse(fsm) -> None: ...
|
|
15
|
+
def DoUpOne(fsm) -> None: ...
|
|
16
|
+
def DoUp(fsm) -> None: ...
|
|
17
|
+
def DoHome(fsm) -> None: ...
|
|
18
|
+
def DoHomeOrigin(fsm) -> None: ...
|
|
19
|
+
def DoEraseDown(fsm) -> None: ...
|
|
20
|
+
def DoErase(fsm) -> None: ...
|
|
21
|
+
def DoEraseEndOfLine(fsm) -> None: ...
|
|
22
|
+
def DoEraseLine(fsm) -> None: ...
|
|
23
|
+
def DoEnableScroll(fsm) -> None: ...
|
|
24
|
+
def DoCursorSave(fsm) -> None: ...
|
|
25
|
+
def DoCursorRestore(fsm) -> None: ...
|
|
26
|
+
def DoScrollRegion(fsm) -> None: ...
|
|
27
|
+
def DoMode(fsm) -> None: ...
|
|
28
|
+
def DoLog(fsm) -> None: ...
|
|
29
|
+
|
|
30
|
+
class term(screen.screen):
|
|
31
|
+
def __init__(self, r: int = 24, c: int = 80, *args, **kwargs) -> None: ...
|
|
32
|
+
|
|
33
|
+
class ANSI(term):
|
|
34
|
+
state: Incomplete
|
|
35
|
+
def __init__(self, r: int = 24, c: int = 80, *args, **kwargs) -> None: ...
|
|
36
|
+
def process(self, c) -> None: ...
|
|
37
|
+
def process_list(self, l) -> None: ...
|
|
38
|
+
def write(self, s) -> None: ...
|
|
39
|
+
def flush(self) -> None: ...
|
|
40
|
+
def write_ch(self, ch) -> None: ...
|
|
41
|
+
def do_sgr(self, fsm) -> None: ...
|
|
42
|
+
def do_decsca(self, fsm) -> None: ...
|
|
43
|
+
def do_modecrap(self, fsm) -> None: ...
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
class ExceptionFSM(Exception):
|
|
4
|
+
value: Incomplete
|
|
5
|
+
def __init__(self, value) -> None: ...
|
|
6
|
+
|
|
7
|
+
class FSM:
|
|
8
|
+
state_transitions: Incomplete
|
|
9
|
+
state_transitions_any: Incomplete
|
|
10
|
+
default_transition: Incomplete
|
|
11
|
+
input_symbol: Incomplete
|
|
12
|
+
initial_state: Incomplete
|
|
13
|
+
current_state: Incomplete
|
|
14
|
+
next_state: Incomplete
|
|
15
|
+
action: Incomplete
|
|
16
|
+
memory: Incomplete
|
|
17
|
+
def __init__(self, initial_state, memory: Incomplete | None = None) -> None: ...
|
|
18
|
+
def reset(self) -> None: ...
|
|
19
|
+
def add_transition(
|
|
20
|
+
self, input_symbol, state, action: Incomplete | None = None, next_state: Incomplete | None = None
|
|
21
|
+
) -> None: ...
|
|
22
|
+
def add_transition_list(
|
|
23
|
+
self, list_input_symbols, state, action: Incomplete | None = None, next_state: Incomplete | None = None
|
|
24
|
+
) -> None: ...
|
|
25
|
+
def add_transition_any(self, state, action: Incomplete | None = None, next_state: Incomplete | None = None) -> None: ...
|
|
26
|
+
def set_default_transition(self, action, next_state) -> None: ...
|
|
27
|
+
def get_transition(self, input_symbol, state): ...
|
|
28
|
+
def process(self, input_symbol) -> None: ...
|
|
29
|
+
def process_list(self, input_symbols) -> None: ...
|
|
30
|
+
|
|
31
|
+
PY3: Incomplete
|
|
32
|
+
|
|
33
|
+
def BeginBuildNumber(fsm) -> None: ...
|
|
34
|
+
def BuildNumber(fsm) -> None: ...
|
|
35
|
+
def EndBuildNumber(fsm) -> None: ...
|
|
36
|
+
def DoOperator(fsm) -> None: ...
|
|
37
|
+
def DoEqual(fsm) -> None: ...
|
|
38
|
+
def Error(fsm) -> None: ...
|
|
39
|
+
def main() -> None: ...
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
version = "4.8.*"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
from .exceptions import EOF as EOF, TIMEOUT as TIMEOUT, ExceptionPexpect as ExceptionPexpect
|
|
2
|
+
from .pty_spawn import spawn as spawn, spawnu as spawnu
|
|
3
|
+
from .run import run as run, runu as runu
|
|
4
|
+
from .utils import split_command_line as split_command_line, which as which
|
|
5
|
+
|
|
6
|
+
__version__: str
|
|
7
|
+
__revision__: str
|
|
8
|
+
__all__ = [
|
|
9
|
+
"ExceptionPexpect",
|
|
10
|
+
"EOF",
|
|
11
|
+
"TIMEOUT",
|
|
12
|
+
"spawn",
|
|
13
|
+
"spawnu",
|
|
14
|
+
"run",
|
|
15
|
+
"runu",
|
|
16
|
+
"which",
|
|
17
|
+
"split_command_line",
|
|
18
|
+
"__version__",
|
|
19
|
+
"__revision__",
|
|
20
|
+
]
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import asyncio
|
|
2
|
+
from _typeshed import Incomplete
|
|
3
|
+
|
|
4
|
+
async def expect_async(expecter, timeout: Incomplete | None = None): ...
|
|
5
|
+
async def repl_run_command_async(repl, cmdlines, timeout: int = -1): ...
|
|
6
|
+
|
|
7
|
+
class PatternWaiter(asyncio.Protocol):
|
|
8
|
+
transport: Incomplete
|
|
9
|
+
expecter: Incomplete
|
|
10
|
+
fut: Incomplete
|
|
11
|
+
def set_expecter(self, expecter) -> None: ...
|
|
12
|
+
def found(self, result) -> None: ...
|
|
13
|
+
def error(self, exc) -> None: ...
|
|
14
|
+
def connection_made(self, transport) -> None: ...
|
|
15
|
+
def data_received(self, data) -> None: ...
|
|
16
|
+
def eof_received(self) -> None: ...
|
|
17
|
+
def connection_lost(self, exc) -> None: ...
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from io import BytesIO, StringIO
|
|
3
|
+
|
|
4
|
+
from .exceptions import EOF, TIMEOUT
|
|
5
|
+
from .spawnbase import SpawnBase
|
|
6
|
+
|
|
7
|
+
class searcher_string:
|
|
8
|
+
eof_index: int
|
|
9
|
+
timeout_index: int
|
|
10
|
+
longest_string: int
|
|
11
|
+
def __init__(self, strings) -> None: ...
|
|
12
|
+
match: Incomplete
|
|
13
|
+
start: Incomplete
|
|
14
|
+
end: Incomplete
|
|
15
|
+
def search(self, buffer, freshlen, searchwindowsize: Incomplete | None = None): ...
|
|
16
|
+
|
|
17
|
+
class searcher_re:
|
|
18
|
+
eof_index: int
|
|
19
|
+
timeout_index: int
|
|
20
|
+
def __init__(self, patterns) -> None: ...
|
|
21
|
+
start: Incomplete
|
|
22
|
+
match: Incomplete
|
|
23
|
+
end: Incomplete
|
|
24
|
+
def search(self, buffer, freshlen: int, searchwindowsize: int | None = None): ...
|
|
25
|
+
|
|
26
|
+
class Expecter:
|
|
27
|
+
spawn: BytesIO | StringIO
|
|
28
|
+
searcher: searcher_re | searcher_string
|
|
29
|
+
searchwindowsize: int | None
|
|
30
|
+
lookback: searcher_string | searcher_re | int | None
|
|
31
|
+
def __init__(self, spawn: SpawnBase, searcher: searcher_re | searcher_string, searchwindowsize: int = -1) -> None: ...
|
|
32
|
+
def do_search(self, window: str, freshlen: int): ...
|
|
33
|
+
def existing_data(self): ...
|
|
34
|
+
def new_data(self, data: Incomplete): ...
|
|
35
|
+
def eof(self, err: Incomplete | None = None) -> int | EOF: ...
|
|
36
|
+
def timeout(self, err: object | None = None) -> int | TIMEOUT: ...
|
|
37
|
+
def errored(self) -> None: ...
|
|
38
|
+
def expect_loop(self, timeout: int = -1): ...
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from .spawnbase import SpawnBase
|
|
4
|
+
|
|
5
|
+
class fdspawn(SpawnBase):
|
|
6
|
+
args: Incomplete
|
|
7
|
+
command: Incomplete
|
|
8
|
+
child_fd: Incomplete
|
|
9
|
+
own_fd: bool
|
|
10
|
+
closed: bool
|
|
11
|
+
name: Incomplete
|
|
12
|
+
use_poll: Incomplete
|
|
13
|
+
def __init__(
|
|
14
|
+
self,
|
|
15
|
+
fd,
|
|
16
|
+
args: Incomplete | None = None,
|
|
17
|
+
timeout: int = 30,
|
|
18
|
+
maxread: int = 2000,
|
|
19
|
+
searchwindowsize: Incomplete | None = None,
|
|
20
|
+
logfile: Incomplete | None = None,
|
|
21
|
+
encoding: Incomplete | None = None,
|
|
22
|
+
codec_errors: str = "strict",
|
|
23
|
+
use_poll: bool = False,
|
|
24
|
+
) -> None: ...
|
|
25
|
+
def close(self) -> None: ...
|
|
26
|
+
def isalive(self) -> bool: ...
|
|
27
|
+
def terminate(self, force: bool = False) -> None: ...
|
|
28
|
+
def send(self, s: str | bytes) -> bytes: ...
|
|
29
|
+
def sendline(self, s: str | bytes) -> bytes: ...
|
|
30
|
+
def write(self, s) -> None: ...
|
|
31
|
+
def writelines(self, sequence) -> None: ...
|
|
32
|
+
def read_nonblocking(self, size: int = 1, timeout: int | None = -1) -> bytes: ...
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from .spawnbase import SpawnBase
|
|
4
|
+
|
|
5
|
+
class PopenSpawn(SpawnBase):
|
|
6
|
+
crlf: Incomplete
|
|
7
|
+
proc: Incomplete
|
|
8
|
+
pid: Incomplete
|
|
9
|
+
closed: bool
|
|
10
|
+
def __init__(
|
|
11
|
+
self,
|
|
12
|
+
cmd,
|
|
13
|
+
timeout: int = 30,
|
|
14
|
+
maxread: int = 2000,
|
|
15
|
+
searchwindowsize: Incomplete | None = None,
|
|
16
|
+
logfile: Incomplete | None = None,
|
|
17
|
+
cwd: Incomplete | None = None,
|
|
18
|
+
env: Incomplete | None = None,
|
|
19
|
+
encoding: Incomplete | None = None,
|
|
20
|
+
codec_errors: str = "strict",
|
|
21
|
+
preexec_fn: Incomplete | None = None,
|
|
22
|
+
) -> None: ...
|
|
23
|
+
flag_eof: bool
|
|
24
|
+
def read_nonblocking(self, size, timeout): ...
|
|
25
|
+
def write(self, s) -> None: ...
|
|
26
|
+
def writelines(self, sequence) -> None: ...
|
|
27
|
+
def send(self, s): ...
|
|
28
|
+
def sendline(self, s: str = ""): ...
|
|
29
|
+
exitstatus: Incomplete
|
|
30
|
+
signalstatus: Incomplete
|
|
31
|
+
terminated: bool
|
|
32
|
+
def wait(self): ...
|
|
33
|
+
def kill(self, sig) -> None: ...
|
|
34
|
+
def sendeof(self) -> None: ...
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from io import TextIOWrapper
|
|
4
|
+
from os import _Environ
|
|
5
|
+
|
|
6
|
+
from .spawnbase import SpawnBase
|
|
7
|
+
|
|
8
|
+
PY3: Incomplete
|
|
9
|
+
|
|
10
|
+
class spawn(SpawnBase):
|
|
11
|
+
use_native_pty_fork: bool
|
|
12
|
+
STDIN_FILENO: Incomplete
|
|
13
|
+
STDOUT_FILENO: Incomplete
|
|
14
|
+
STDERR_FILENO: Incomplete
|
|
15
|
+
str_last_chars: int
|
|
16
|
+
env: Incomplete
|
|
17
|
+
name: str
|
|
18
|
+
def __init__(
|
|
19
|
+
self,
|
|
20
|
+
command: str,
|
|
21
|
+
args: list[str] = [],
|
|
22
|
+
timeout: int = 30,
|
|
23
|
+
maxread: int = 2000,
|
|
24
|
+
searchwindowsize: int | None = None,
|
|
25
|
+
logfile: TextIOWrapper | None = None,
|
|
26
|
+
cwd: str | bytes | None = None,
|
|
27
|
+
env: _Environ[Incomplete] | None = None,
|
|
28
|
+
ignore_sighup: bool = False,
|
|
29
|
+
echo: bool = True,
|
|
30
|
+
preexec_fn: Callable[[Incomplete], Incomplete] | None = None,
|
|
31
|
+
encoding: str | None = None,
|
|
32
|
+
codec_errors: str = "strict",
|
|
33
|
+
dimensions: tuple[int, int] | None = None,
|
|
34
|
+
use_poll: bool = False,
|
|
35
|
+
) -> None: ...
|
|
36
|
+
child_fd: int
|
|
37
|
+
closed: bool
|
|
38
|
+
def close(self, force: bool = True) -> None: ...
|
|
39
|
+
def isatty(self): ...
|
|
40
|
+
def waitnoecho(self, timeout: int = -1): ...
|
|
41
|
+
def getecho(self): ...
|
|
42
|
+
def setecho(self, state: bool): ...
|
|
43
|
+
def read_nonblocking(self, size: int = 1, timeout: int | None = -1) -> bytes: ...
|
|
44
|
+
def write(self, s: str | bytes) -> None: ...
|
|
45
|
+
def writelines(self, sequence: list[str | bytes]) -> None: ...
|
|
46
|
+
def send(self, s: str | bytes): ...
|
|
47
|
+
def sendline(self, s: str | bytes = ""): ...
|
|
48
|
+
def sendcontrol(self, char: str): ...
|
|
49
|
+
def sendeof(self) -> None: ...
|
|
50
|
+
def sendintr(self) -> None: ...
|
|
51
|
+
@property
|
|
52
|
+
def flag_eof(self) -> bool: ...
|
|
53
|
+
@flag_eof.setter
|
|
54
|
+
def flag_eof(self, value: bool) -> None: ...
|
|
55
|
+
def eof(self) -> bool: ...
|
|
56
|
+
def terminate(self, force: bool = False): ...
|
|
57
|
+
status: int | None
|
|
58
|
+
exitstatus: bool | None
|
|
59
|
+
signalstatus: int | None
|
|
60
|
+
terminated: bool
|
|
61
|
+
def wait(self) -> int: ...
|
|
62
|
+
def isalive(self) -> bool: ...
|
|
63
|
+
def kill(self, sig: int) -> None: ...
|
|
64
|
+
def getwinsize(self) -> tuple[int, int]: ...
|
|
65
|
+
def setwinsize(self, rows, cols) -> None: ...
|
|
66
|
+
def interact(
|
|
67
|
+
self,
|
|
68
|
+
escape_character="\x1d",
|
|
69
|
+
input_filter: Callable[[Incomplete], Incomplete] | None = None,
|
|
70
|
+
output_filter: Callable[[Incomplete], Incomplete] | None = None,
|
|
71
|
+
) -> None: ...
|
|
72
|
+
|
|
73
|
+
def spawnu(*args: str, **kwargs: str): ...
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
from pexpect import ExceptionPexpect, spawn
|
|
4
|
+
|
|
5
|
+
class ExceptionPxssh(ExceptionPexpect): ...
|
|
6
|
+
|
|
7
|
+
class pxssh(spawn):
|
|
8
|
+
name: str
|
|
9
|
+
UNIQUE_PROMPT: str
|
|
10
|
+
PROMPT: Incomplete
|
|
11
|
+
PROMPT_SET_SH: str
|
|
12
|
+
PROMPT_SET_CSH: str
|
|
13
|
+
SSH_OPTS: Incomplete
|
|
14
|
+
force_password: bool
|
|
15
|
+
debug_command_string: Incomplete
|
|
16
|
+
options: Incomplete
|
|
17
|
+
def __init__(
|
|
18
|
+
self,
|
|
19
|
+
timeout: int = 30,
|
|
20
|
+
maxread: int = 2000,
|
|
21
|
+
searchwindowsize: Incomplete | None = None,
|
|
22
|
+
logfile: Incomplete | None = None,
|
|
23
|
+
cwd: Incomplete | None = None,
|
|
24
|
+
env: Incomplete | None = None,
|
|
25
|
+
ignore_sighup: bool = True,
|
|
26
|
+
echo: bool = True,
|
|
27
|
+
options={},
|
|
28
|
+
encoding: Incomplete | None = None,
|
|
29
|
+
codec_errors: str = "strict",
|
|
30
|
+
debug_command_string: bool = False,
|
|
31
|
+
use_poll: bool = False,
|
|
32
|
+
) -> None: ...
|
|
33
|
+
def levenshtein_distance(self, a, b): ...
|
|
34
|
+
def try_read_prompt(self, timeout_multiplier): ...
|
|
35
|
+
def sync_original_prompt(self, sync_multiplier: float = 1.0): ...
|
|
36
|
+
def login(
|
|
37
|
+
self,
|
|
38
|
+
server,
|
|
39
|
+
username: Incomplete | None = None,
|
|
40
|
+
password: str = "",
|
|
41
|
+
terminal_type: str = "ansi",
|
|
42
|
+
original_prompt: str = "[#$]",
|
|
43
|
+
login_timeout: int = 10,
|
|
44
|
+
port: Incomplete | None = None,
|
|
45
|
+
auto_prompt_reset: bool = True,
|
|
46
|
+
ssh_key: Incomplete | None = None,
|
|
47
|
+
quiet: bool = True,
|
|
48
|
+
sync_multiplier: int = 1,
|
|
49
|
+
check_local_ip: bool = True,
|
|
50
|
+
password_regex: str = "(?i)(?:password:)|(?:passphrase for key)",
|
|
51
|
+
ssh_tunnels={},
|
|
52
|
+
spawn_local_ssh: bool = True,
|
|
53
|
+
sync_original_prompt: bool = True,
|
|
54
|
+
ssh_config: Incomplete | None = None,
|
|
55
|
+
cmd: str = "ssh",
|
|
56
|
+
): ...
|
|
57
|
+
def logout(self) -> None: ...
|
|
58
|
+
def prompt(self, timeout: int = -1): ...
|
|
59
|
+
def set_unique_prompt(self): ...
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
PY3: Incomplete
|
|
4
|
+
basestring = str
|
|
5
|
+
PEXPECT_PROMPT: str
|
|
6
|
+
PEXPECT_CONTINUATION_PROMPT: str
|
|
7
|
+
|
|
8
|
+
class REPLWrapper:
|
|
9
|
+
child: Incomplete
|
|
10
|
+
prompt: Incomplete
|
|
11
|
+
continuation_prompt: Incomplete
|
|
12
|
+
def __init__(
|
|
13
|
+
self,
|
|
14
|
+
cmd_or_spawn,
|
|
15
|
+
orig_prompt,
|
|
16
|
+
prompt_change,
|
|
17
|
+
new_prompt="[PEXPECT_PROMPT>",
|
|
18
|
+
continuation_prompt="[PEXPECT_PROMPT+",
|
|
19
|
+
extra_init_cmd: Incomplete | None = None,
|
|
20
|
+
) -> None: ...
|
|
21
|
+
def set_prompt(self, orig_prompt, prompt_change) -> None: ...
|
|
22
|
+
def run_command(self, command, timeout: int = -1, async_: bool = False): ...
|
|
23
|
+
|
|
24
|
+
def python(command: str = "python"): ...
|
|
25
|
+
def bash(command: str = "bash"): ...
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
def run(
|
|
4
|
+
command,
|
|
5
|
+
timeout: int = 30,
|
|
6
|
+
withexitstatus: bool = False,
|
|
7
|
+
events: Incomplete | None = None,
|
|
8
|
+
extra_args: Incomplete | None = None,
|
|
9
|
+
logfile: Incomplete | None = None,
|
|
10
|
+
cwd: Incomplete | None = None,
|
|
11
|
+
env: Incomplete | None = None,
|
|
12
|
+
**kwargs,
|
|
13
|
+
): ...
|
|
14
|
+
def runu(
|
|
15
|
+
command,
|
|
16
|
+
timeout: int = 30,
|
|
17
|
+
withexitstatus: bool = False,
|
|
18
|
+
events: Incomplete | None = None,
|
|
19
|
+
extra_args: Incomplete | None = None,
|
|
20
|
+
logfile: Incomplete | None = None,
|
|
21
|
+
cwd: Incomplete | None = None,
|
|
22
|
+
env: Incomplete | None = None,
|
|
23
|
+
**kwargs,
|
|
24
|
+
): ...
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
NUL: int
|
|
4
|
+
ENQ: int
|
|
5
|
+
BEL: int
|
|
6
|
+
BS: int
|
|
7
|
+
HT: int
|
|
8
|
+
LF: int
|
|
9
|
+
VT: int
|
|
10
|
+
FF: int
|
|
11
|
+
CR: int
|
|
12
|
+
SO: int
|
|
13
|
+
SI: int
|
|
14
|
+
XON: int
|
|
15
|
+
XOFF: int
|
|
16
|
+
CAN: int
|
|
17
|
+
SUB: int
|
|
18
|
+
ESC: int
|
|
19
|
+
DEL: int
|
|
20
|
+
SPACE: str
|
|
21
|
+
PY3: Incomplete
|
|
22
|
+
unicode = str
|
|
23
|
+
|
|
24
|
+
def constrain(n, min, max): ...
|
|
25
|
+
|
|
26
|
+
class screen:
|
|
27
|
+
rows: Incomplete
|
|
28
|
+
cols: Incomplete
|
|
29
|
+
encoding: Incomplete
|
|
30
|
+
encoding_errors: Incomplete
|
|
31
|
+
decoder: Incomplete
|
|
32
|
+
cur_r: int
|
|
33
|
+
cur_c: int
|
|
34
|
+
cur_saved_r: int
|
|
35
|
+
cur_saved_c: int
|
|
36
|
+
scroll_row_start: int
|
|
37
|
+
scroll_row_end: Incomplete
|
|
38
|
+
w: Incomplete
|
|
39
|
+
def __init__(self, r: int = 24, c: int = 80, encoding: str = "latin-1", encoding_errors: str = "replace") -> None: ...
|
|
40
|
+
def dump(self): ...
|
|
41
|
+
def pretty(self): ...
|
|
42
|
+
def fill(self, ch=" ") -> None: ...
|
|
43
|
+
def fill_region(self, rs, cs, re, ce, ch=" ") -> None: ...
|
|
44
|
+
def cr(self) -> None: ...
|
|
45
|
+
def lf(self) -> None: ...
|
|
46
|
+
def crlf(self) -> None: ...
|
|
47
|
+
def newline(self) -> None: ...
|
|
48
|
+
def put_abs(self, r, c, ch) -> None: ...
|
|
49
|
+
def put(self, ch) -> None: ...
|
|
50
|
+
def insert_abs(self, r, c, ch) -> None: ...
|
|
51
|
+
def insert(self, ch) -> None: ...
|
|
52
|
+
def get_abs(self, r, c): ...
|
|
53
|
+
def get(self) -> None: ...
|
|
54
|
+
def get_region(self, rs, cs, re, ce): ...
|
|
55
|
+
def cursor_constrain(self) -> None: ...
|
|
56
|
+
def cursor_home(self, r: int = 1, c: int = 1) -> None: ...
|
|
57
|
+
def cursor_back(self, count: int = 1) -> None: ...
|
|
58
|
+
def cursor_down(self, count: int = 1) -> None: ...
|
|
59
|
+
def cursor_forward(self, count: int = 1) -> None: ...
|
|
60
|
+
def cursor_up(self, count: int = 1) -> None: ...
|
|
61
|
+
def cursor_up_reverse(self) -> None: ...
|
|
62
|
+
def cursor_force_position(self, r, c) -> None: ...
|
|
63
|
+
def cursor_save(self) -> None: ...
|
|
64
|
+
def cursor_unsave(self) -> None: ...
|
|
65
|
+
def cursor_save_attrs(self) -> None: ...
|
|
66
|
+
def cursor_restore_attrs(self) -> None: ...
|
|
67
|
+
def scroll_constrain(self) -> None: ...
|
|
68
|
+
def scroll_screen(self) -> None: ...
|
|
69
|
+
def scroll_screen_rows(self, rs, re) -> None: ...
|
|
70
|
+
def scroll_down(self) -> None: ...
|
|
71
|
+
def scroll_up(self) -> None: ...
|
|
72
|
+
def erase_end_of_line(self) -> None: ...
|
|
73
|
+
def erase_start_of_line(self) -> None: ...
|
|
74
|
+
def erase_line(self) -> None: ...
|
|
75
|
+
def erase_down(self) -> None: ...
|
|
76
|
+
def erase_up(self) -> None: ...
|
|
77
|
+
def erase_screen(self) -> None: ...
|
|
78
|
+
def set_tab(self) -> None: ...
|
|
79
|
+
def clear_tab(self) -> None: ...
|
|
80
|
+
def clear_all_tabs(self) -> None: ...
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from re import Pattern
|
|
4
|
+
from typing import AnyStr
|
|
5
|
+
|
|
6
|
+
PY3: bool
|
|
7
|
+
text_type: Callable[[Incomplete], Incomplete]
|
|
8
|
+
|
|
9
|
+
class _NullCoder:
|
|
10
|
+
@staticmethod
|
|
11
|
+
def encode(b: str, final: bool = False): ...
|
|
12
|
+
@staticmethod
|
|
13
|
+
def decode(b: str, final: bool = False): ...
|
|
14
|
+
|
|
15
|
+
class SpawnBase:
|
|
16
|
+
encoding: Incomplete
|
|
17
|
+
pid: Incomplete
|
|
18
|
+
flag_eof: bool
|
|
19
|
+
stdin: Incomplete
|
|
20
|
+
stdout: Incomplete
|
|
21
|
+
stderr: Incomplete
|
|
22
|
+
searcher: Incomplete
|
|
23
|
+
ignorecase: bool
|
|
24
|
+
before: Incomplete
|
|
25
|
+
after: Incomplete
|
|
26
|
+
match: Incomplete
|
|
27
|
+
match_index: Incomplete
|
|
28
|
+
terminated: bool
|
|
29
|
+
exitstatus: Incomplete
|
|
30
|
+
signalstatus: Incomplete
|
|
31
|
+
status: Incomplete
|
|
32
|
+
child_fd: int
|
|
33
|
+
timeout: Incomplete
|
|
34
|
+
delimiter: Incomplete
|
|
35
|
+
logfile: Incomplete
|
|
36
|
+
logfile_read: Incomplete
|
|
37
|
+
logfile_send: Incomplete
|
|
38
|
+
maxread: Incomplete
|
|
39
|
+
searchwindowsize: Incomplete
|
|
40
|
+
delaybeforesend: float
|
|
41
|
+
delayafterclose: float
|
|
42
|
+
delayafterterminate: float
|
|
43
|
+
delayafterread: float
|
|
44
|
+
softspace: bool
|
|
45
|
+
name: Incomplete
|
|
46
|
+
closed: bool
|
|
47
|
+
codec_errors: Incomplete
|
|
48
|
+
string_type: Incomplete
|
|
49
|
+
buffer_type: Incomplete
|
|
50
|
+
crlf: bytes
|
|
51
|
+
allowed_string_types: Incomplete
|
|
52
|
+
linesep: Incomplete
|
|
53
|
+
write_to_stdout: Incomplete
|
|
54
|
+
async_pw_transport: Incomplete
|
|
55
|
+
def __init__(
|
|
56
|
+
self,
|
|
57
|
+
timeout: int = 30,
|
|
58
|
+
maxread: int = 2000,
|
|
59
|
+
searchwindowsize: Incomplete | None = None,
|
|
60
|
+
logfile: Incomplete | None = None,
|
|
61
|
+
encoding: Incomplete | None = None,
|
|
62
|
+
codec_errors: str = "strict",
|
|
63
|
+
) -> None: ...
|
|
64
|
+
buffer: Incomplete
|
|
65
|
+
def read_nonblocking(self, size: int = 1, timeout: int | None = None) -> bytes: ...
|
|
66
|
+
def compile_pattern_list(self, patterns) -> list[Pattern[AnyStr]]: ...
|
|
67
|
+
def expect(self, pattern, timeout: int = -1, searchwindowsize: int = -1, async_: bool = False, **kw) -> int: ...
|
|
68
|
+
def expect_list(self, pattern_list, timeout: int = -1, searchwindowsize: int = -1, async_: bool = False, **kw) -> int: ...
|
|
69
|
+
def expect_exact(self, pattern_list, timeout: int = -1, searchwindowsize: int = -1, async_: bool = False, **kw) -> int: ...
|
|
70
|
+
def expect_loop(self, searcher, timeout: int = -1, searchwindowsize: int = -1) -> int: ...
|
|
71
|
+
def read(self, size: int = -1) -> bytes: ...
|
|
72
|
+
def readline(self, size: int = -1) -> bytes: ...
|
|
73
|
+
def __iter__(self): ...
|
|
74
|
+
def readlines(self, sizehint: int = -1) -> list[str]: ...
|
|
75
|
+
def fileno(self): ...
|
|
76
|
+
def flush(self) -> None: ...
|
|
77
|
+
def isatty(self): ...
|
|
78
|
+
def __enter__(self): ...
|
|
79
|
+
def __exit__(self, etype, evalue, tb) -> None: ...
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
from _typeshed import Incomplete
|
|
2
|
+
|
|
3
|
+
string_types: Incomplete
|
|
4
|
+
|
|
5
|
+
def is_executable_file(path): ...
|
|
6
|
+
def which(filename, env: Incomplete | None = None): ...
|
|
7
|
+
def split_command_line(command_line): ...
|
|
8
|
+
def select_ignore_interrupts(iwtd, owtd, ewtd, timeout: Incomplete | None = None): ...
|
|
9
|
+
def poll_ignore_interrupts(fds, timeout: Incomplete | None = None): ...
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
from setuptools import setup
|
|
2
|
+
|
|
3
|
+
name = "types-pexpect"
|
|
4
|
+
description = "Typing stubs for pexpect"
|
|
5
|
+
long_description = '''
|
|
6
|
+
## Typing stubs for pexpect
|
|
7
|
+
|
|
8
|
+
This is a PEP 561 type stub package for the `pexpect` package. It
|
|
9
|
+
can be used by type-checking tools like
|
|
10
|
+
[mypy](https://github.com/python/mypy/),
|
|
11
|
+
[pyright](https://github.com/microsoft/pyright),
|
|
12
|
+
[pytype](https://github.com/google/pytype/),
|
|
13
|
+
PyCharm, etc. to check code that uses
|
|
14
|
+
`pexpect`. The source for this package can be found at
|
|
15
|
+
https://github.com/python/typeshed/tree/main/stubs/pexpect. All fixes for
|
|
16
|
+
types and metadata should be contributed there.
|
|
17
|
+
|
|
18
|
+
See https://github.com/python/typeshed/blob/main/README.md for more details.
|
|
19
|
+
This package was generated from typeshed commit `06c2fb047abe52e329ff854fba2675293173bf50` and was tested
|
|
20
|
+
with mypy 1.3.0, pyright 1.1.314, and
|
|
21
|
+
pytype 2023.6.2.
|
|
22
|
+
'''.lstrip()
|
|
23
|
+
|
|
24
|
+
setup(name=name,
|
|
25
|
+
version="4.8.0.0",
|
|
26
|
+
description=description,
|
|
27
|
+
long_description=long_description,
|
|
28
|
+
long_description_content_type="text/markdown",
|
|
29
|
+
url="https://github.com/python/typeshed",
|
|
30
|
+
project_urls={
|
|
31
|
+
"GitHub": "https://github.com/python/typeshed",
|
|
32
|
+
"Changes": "https://github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/pexpect.md",
|
|
33
|
+
"Issue tracker": "https://github.com/python/typeshed/issues",
|
|
34
|
+
"Chat": "https://gitter.im/python/typing",
|
|
35
|
+
},
|
|
36
|
+
install_requires=[],
|
|
37
|
+
packages=['pexpect-stubs'],
|
|
38
|
+
package_data={'pexpect-stubs': ['ANSI.pyi', 'FSM.pyi', '__init__.pyi', '_async.pyi', 'exceptions.pyi', 'expect.pyi', 'fdpexpect.pyi', 'popen_spawn.pyi', 'pty_spawn.pyi', 'pxssh.pyi', 'replwrap.pyi', 'run.pyi', 'screen.pyi', 'spawnbase.pyi', 'utils.pyi', 'METADATA.toml']},
|
|
39
|
+
license="Apache-2.0 license",
|
|
40
|
+
classifiers=[
|
|
41
|
+
"License :: OSI Approved :: Apache Software License",
|
|
42
|
+
"Programming Language :: Python :: 3",
|
|
43
|
+
"Typing :: Stubs Only",
|
|
44
|
+
]
|
|
45
|
+
)
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: types-pexpect
|
|
3
|
+
Version: 4.8.0.0
|
|
4
|
+
Summary: Typing stubs for pexpect
|
|
5
|
+
Home-page: https://github.com/python/typeshed
|
|
6
|
+
License: Apache-2.0 license
|
|
7
|
+
Project-URL: GitHub, https://github.com/python/typeshed
|
|
8
|
+
Project-URL: Changes, https://github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/pexpect.md
|
|
9
|
+
Project-URL: Issue tracker, https://github.com/python/typeshed/issues
|
|
10
|
+
Project-URL: Chat, https://gitter.im/python/typing
|
|
11
|
+
Classifier: License :: OSI Approved :: Apache Software License
|
|
12
|
+
Classifier: Programming Language :: Python :: 3
|
|
13
|
+
Classifier: Typing :: Stubs Only
|
|
14
|
+
Description-Content-Type: text/markdown
|
|
15
|
+
|
|
16
|
+
## Typing stubs for pexpect
|
|
17
|
+
|
|
18
|
+
This is a PEP 561 type stub package for the `pexpect` package. It
|
|
19
|
+
can be used by type-checking tools like
|
|
20
|
+
[mypy](https://github.com/python/mypy/),
|
|
21
|
+
[pyright](https://github.com/microsoft/pyright),
|
|
22
|
+
[pytype](https://github.com/google/pytype/),
|
|
23
|
+
PyCharm, etc. to check code that uses
|
|
24
|
+
`pexpect`. The source for this package can be found at
|
|
25
|
+
https://github.com/python/typeshed/tree/main/stubs/pexpect. All fixes for
|
|
26
|
+
types and metadata should be contributed there.
|
|
27
|
+
|
|
28
|
+
See https://github.com/python/typeshed/blob/main/README.md for more details.
|
|
29
|
+
This package was generated from typeshed commit `06c2fb047abe52e329ff854fba2675293173bf50` and was tested
|
|
30
|
+
with mypy 1.3.0, pyright 1.1.314, and
|
|
31
|
+
pytype 2023.6.2.
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
CHANGELOG.md
|
|
2
|
+
MANIFEST.in
|
|
3
|
+
setup.py
|
|
4
|
+
pexpect-stubs/ANSI.pyi
|
|
5
|
+
pexpect-stubs/FSM.pyi
|
|
6
|
+
pexpect-stubs/METADATA.toml
|
|
7
|
+
pexpect-stubs/__init__.pyi
|
|
8
|
+
pexpect-stubs/_async.pyi
|
|
9
|
+
pexpect-stubs/exceptions.pyi
|
|
10
|
+
pexpect-stubs/expect.pyi
|
|
11
|
+
pexpect-stubs/fdpexpect.pyi
|
|
12
|
+
pexpect-stubs/popen_spawn.pyi
|
|
13
|
+
pexpect-stubs/pty_spawn.pyi
|
|
14
|
+
pexpect-stubs/pxssh.pyi
|
|
15
|
+
pexpect-stubs/replwrap.pyi
|
|
16
|
+
pexpect-stubs/run.pyi
|
|
17
|
+
pexpect-stubs/screen.pyi
|
|
18
|
+
pexpect-stubs/spawnbase.pyi
|
|
19
|
+
pexpect-stubs/utils.pyi
|
|
20
|
+
types_pexpect.egg-info/PKG-INFO
|
|
21
|
+
types_pexpect.egg-info/SOURCES.txt
|
|
22
|
+
types_pexpect.egg-info/dependency_links.txt
|
|
23
|
+
types_pexpect.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
pexpect-stubs
|