types-capturer 3.0.0.20240408__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-capturer-3.0.0.20240408/CHANGELOG.md +4 -0
- types-capturer-3.0.0.20240408/MANIFEST.in +1 -0
- types-capturer-3.0.0.20240408/PKG-INFO +37 -0
- types-capturer-3.0.0.20240408/capturer-stubs/METADATA.toml +2 -0
- types-capturer-3.0.0.20240408/capturer-stubs/__init__.pyi +122 -0
- types-capturer-3.0.0.20240408/capturer-stubs/py.typed +0 -0
- types-capturer-3.0.0.20240408/setup.cfg +4 -0
- types-capturer-3.0.0.20240408/setup.py +51 -0
- types-capturer-3.0.0.20240408/types_capturer.egg-info/PKG-INFO +37 -0
- types-capturer-3.0.0.20240408/types_capturer.egg-info/SOURCES.txt +10 -0
- types-capturer-3.0.0.20240408/types_capturer.egg-info/dependency_links.txt +1 -0
- types-capturer-3.0.0.20240408/types_capturer.egg-info/top_level.txt +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
include CHANGELOG.md
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: types-capturer
|
|
3
|
+
Version: 3.0.0.20240408
|
|
4
|
+
Summary: Typing stubs for capturer
|
|
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/capturer.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
|
+
Requires-Python: >=3.8
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
|
|
17
|
+
## Typing stubs for capturer
|
|
18
|
+
|
|
19
|
+
This is a [PEP 561](https://peps.python.org/pep-0561/)
|
|
20
|
+
type stub package for the [`capturer`](https://github.com/xolox/python-capturer) package.
|
|
21
|
+
It can be used by type-checking tools like
|
|
22
|
+
[mypy](https://github.com/python/mypy/),
|
|
23
|
+
[pyright](https://github.com/microsoft/pyright),
|
|
24
|
+
[pytype](https://github.com/google/pytype/),
|
|
25
|
+
PyCharm, etc. to check code that uses
|
|
26
|
+
`capturer`.
|
|
27
|
+
|
|
28
|
+
This version of `types-capturer` aims to provide accurate annotations
|
|
29
|
+
for `capturer==3.0.*`.
|
|
30
|
+
The source for this package can be found at
|
|
31
|
+
https://github.com/python/typeshed/tree/main/stubs/capturer. All fixes for
|
|
32
|
+
types and metadata should be contributed there.
|
|
33
|
+
|
|
34
|
+
See https://github.com/python/typeshed/blob/main/README.md for more details.
|
|
35
|
+
This package was generated from typeshed commit `1d33abb91749cfa070fbc1482f186ff6b2ecbbbb` and was tested
|
|
36
|
+
with mypy 1.9.0, pyright 1.1.357, and
|
|
37
|
+
pytype 2024.3.19.
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
from _typeshed import FileDescriptorOrPath, SupportsWrite
|
|
2
|
+
from collections.abc import Callable
|
|
3
|
+
from io import BufferedReader
|
|
4
|
+
from multiprocessing import Process
|
|
5
|
+
from multiprocessing.queues import Queue
|
|
6
|
+
from multiprocessing.synchronize import Event
|
|
7
|
+
from signal import Signals
|
|
8
|
+
from types import FrameType, TracebackType
|
|
9
|
+
from typing import IO, Any, NoReturn
|
|
10
|
+
from typing_extensions import Self
|
|
11
|
+
|
|
12
|
+
__version__: str
|
|
13
|
+
aliases: dict[str, Any]
|
|
14
|
+
DEFAULT_TEXT_ENCODING: str
|
|
15
|
+
GRACEFUL_SHUTDOWN_SIGNAL: Signals
|
|
16
|
+
TERMINATION_DELAY: float
|
|
17
|
+
PARTIAL_DEFAULT: bool
|
|
18
|
+
STDOUT_FD: int
|
|
19
|
+
STDERR_FD: int
|
|
20
|
+
|
|
21
|
+
def enable_old_api() -> None: ...
|
|
22
|
+
def create_proxy_method(name: str) -> Callable[..., Any]: ...
|
|
23
|
+
|
|
24
|
+
class MultiProcessHelper:
|
|
25
|
+
processes: list[Process]
|
|
26
|
+
def __init__(self) -> None: ...
|
|
27
|
+
def start_child(self, target: Callable[[Event], Any]) -> None: ...
|
|
28
|
+
def stop_children(self) -> None: ...
|
|
29
|
+
def wait_for_children(self) -> None: ...
|
|
30
|
+
def enable_graceful_shutdown(self) -> None: ...
|
|
31
|
+
def raise_shutdown_request(self, signum: int, frame: FrameType | None) -> NoReturn: ...
|
|
32
|
+
|
|
33
|
+
class CaptureOutput(MultiProcessHelper):
|
|
34
|
+
chunk_size: int
|
|
35
|
+
encoding: str
|
|
36
|
+
merged: bool
|
|
37
|
+
relay: bool
|
|
38
|
+
termination_delay: float
|
|
39
|
+
pseudo_terminals: list[PseudoTerminal]
|
|
40
|
+
streams: list[tuple[int, Stream]]
|
|
41
|
+
stdout_stream: Stream
|
|
42
|
+
stderr_stream: Stream
|
|
43
|
+
output: PseudoTerminal
|
|
44
|
+
output_queue: Queue[tuple[Any, bytes]]
|
|
45
|
+
stdout: PseudoTerminal
|
|
46
|
+
stderr: PseudoTerminal
|
|
47
|
+
def __init__(
|
|
48
|
+
self, merged: bool = True, encoding: str = ..., termination_delay: float = ..., chunk_size: int = 1024, relay: bool = True
|
|
49
|
+
) -> None: ...
|
|
50
|
+
def initialize_stream(self, file_obj: IO[str], expected_fd: int) -> Stream: ...
|
|
51
|
+
def __enter__(self) -> Self: ...
|
|
52
|
+
def __exit__(
|
|
53
|
+
self,
|
|
54
|
+
exc_type: type[BaseException] | None = None,
|
|
55
|
+
exc_val: BaseException | None = None,
|
|
56
|
+
exc_tb: TracebackType | None = None,
|
|
57
|
+
) -> bool | None: ...
|
|
58
|
+
@property
|
|
59
|
+
def is_capturing(self) -> bool: ...
|
|
60
|
+
def start_capture(self) -> None: ...
|
|
61
|
+
def finish_capture(self) -> None: ...
|
|
62
|
+
def allocate_pty(
|
|
63
|
+
self, relay_fd: int | None = None, output_queue: Queue[tuple[Any, bytes]] | None = None, queue_token: Any | None = None
|
|
64
|
+
) -> PseudoTerminal: ...
|
|
65
|
+
def merge_loop(self, started_event: Event) -> None: ...
|
|
66
|
+
def get_handle(self, partial: bool = ...) -> BufferedReader: ...
|
|
67
|
+
def get_bytes(self, partial: bool = ...) -> bytes: ...
|
|
68
|
+
def get_lines(self, interpreted: bool = True, partial: bool = ...) -> list[str]: ...
|
|
69
|
+
def get_text(self, interpreted: bool = ..., partial: bool = ...) -> str: ...
|
|
70
|
+
def save_to_handle(self, handle: SupportsWrite[bytes], partial: bool = ...) -> None: ...
|
|
71
|
+
def save_to_path(self, filename: FileDescriptorOrPath, partial: bool = ...) -> None: ...
|
|
72
|
+
|
|
73
|
+
class OutputBuffer:
|
|
74
|
+
fd: int
|
|
75
|
+
buffer: bytes
|
|
76
|
+
def __init__(self, fd: int) -> None: ...
|
|
77
|
+
def add(self, output: bytes) -> None: ...
|
|
78
|
+
def flush(self) -> None: ...
|
|
79
|
+
|
|
80
|
+
class PseudoTerminal(MultiProcessHelper):
|
|
81
|
+
encoding: str
|
|
82
|
+
termination_delay: float
|
|
83
|
+
chunk_size: int
|
|
84
|
+
relay_fd: int | None
|
|
85
|
+
output_queue: Queue[tuple[Any, bytes]] | None
|
|
86
|
+
queue_token: Any | None
|
|
87
|
+
streams: list[Stream]
|
|
88
|
+
master_fd: int
|
|
89
|
+
slave_fd: int
|
|
90
|
+
output_fd: int
|
|
91
|
+
output_handle: BufferedReader
|
|
92
|
+
def __init__(
|
|
93
|
+
self,
|
|
94
|
+
encoding: str,
|
|
95
|
+
termination_delay: float,
|
|
96
|
+
chunk_size: int,
|
|
97
|
+
relay_fd: int | None,
|
|
98
|
+
output_queue: Queue[tuple[int, bytes]] | None,
|
|
99
|
+
queue_token: Any | None,
|
|
100
|
+
) -> None: ...
|
|
101
|
+
def attach(self, stream: Stream) -> None: ...
|
|
102
|
+
def start_capture(self) -> None: ...
|
|
103
|
+
def finish_capture(self) -> None: ...
|
|
104
|
+
def close_pseudo_terminal(self) -> None: ...
|
|
105
|
+
def restore_streams(self) -> None: ...
|
|
106
|
+
def get_handle(self, partial: bool = ...) -> BufferedReader: ...
|
|
107
|
+
def get_bytes(self, partial: bool = ...) -> bytes: ...
|
|
108
|
+
def get_lines(self, interpreted: bool = True, partial: bool = ...) -> list[str]: ...
|
|
109
|
+
def get_text(self, interpreted: bool = ..., partial: bool = ...) -> str: ...
|
|
110
|
+
def save_to_handle(self, handle: SupportsWrite[bytes], partial: bool = ...) -> None: ...
|
|
111
|
+
def save_to_path(self, filename: FileDescriptorOrPath, partial: bool = ...) -> None: ...
|
|
112
|
+
def capture_loop(self, started_event: Event) -> None: ...
|
|
113
|
+
|
|
114
|
+
class Stream:
|
|
115
|
+
fd: int
|
|
116
|
+
original_fd: int
|
|
117
|
+
is_redirected: bool
|
|
118
|
+
def __init__(self, fd: int) -> None: ...
|
|
119
|
+
def redirect(self, target_fd: int) -> None: ...
|
|
120
|
+
def restore(self) -> None: ...
|
|
121
|
+
|
|
122
|
+
class ShutdownRequested(Exception): ...
|
|
File without changes
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
from setuptools import setup
|
|
2
|
+
|
|
3
|
+
name = "types-capturer"
|
|
4
|
+
description = "Typing stubs for capturer"
|
|
5
|
+
long_description = '''
|
|
6
|
+
## Typing stubs for capturer
|
|
7
|
+
|
|
8
|
+
This is a [PEP 561](https://peps.python.org/pep-0561/)
|
|
9
|
+
type stub package for the [`capturer`](https://github.com/xolox/python-capturer) package.
|
|
10
|
+
It can be used by type-checking tools like
|
|
11
|
+
[mypy](https://github.com/python/mypy/),
|
|
12
|
+
[pyright](https://github.com/microsoft/pyright),
|
|
13
|
+
[pytype](https://github.com/google/pytype/),
|
|
14
|
+
PyCharm, etc. to check code that uses
|
|
15
|
+
`capturer`.
|
|
16
|
+
|
|
17
|
+
This version of `types-capturer` aims to provide accurate annotations
|
|
18
|
+
for `capturer==3.0.*`.
|
|
19
|
+
The source for this package can be found at
|
|
20
|
+
https://github.com/python/typeshed/tree/main/stubs/capturer. All fixes for
|
|
21
|
+
types and metadata should be contributed there.
|
|
22
|
+
|
|
23
|
+
See https://github.com/python/typeshed/blob/main/README.md for more details.
|
|
24
|
+
This package was generated from typeshed commit `1d33abb91749cfa070fbc1482f186ff6b2ecbbbb` and was tested
|
|
25
|
+
with mypy 1.9.0, pyright 1.1.357, and
|
|
26
|
+
pytype 2024.3.19.
|
|
27
|
+
'''.lstrip()
|
|
28
|
+
|
|
29
|
+
setup(name=name,
|
|
30
|
+
version="3.0.0.20240408",
|
|
31
|
+
description=description,
|
|
32
|
+
long_description=long_description,
|
|
33
|
+
long_description_content_type="text/markdown",
|
|
34
|
+
url="https://github.com/python/typeshed",
|
|
35
|
+
project_urls={
|
|
36
|
+
"GitHub": "https://github.com/python/typeshed",
|
|
37
|
+
"Changes": "https://github.com/typeshed-internal/stub_uploader/blob/main/data/changelogs/capturer.md",
|
|
38
|
+
"Issue tracker": "https://github.com/python/typeshed/issues",
|
|
39
|
+
"Chat": "https://gitter.im/python/typing",
|
|
40
|
+
},
|
|
41
|
+
install_requires=[],
|
|
42
|
+
packages=['capturer-stubs'],
|
|
43
|
+
package_data={'capturer-stubs': ['__init__.pyi', 'METADATA.toml', 'py.typed']},
|
|
44
|
+
license="Apache-2.0 license",
|
|
45
|
+
python_requires=">=3.8",
|
|
46
|
+
classifiers=[
|
|
47
|
+
"License :: OSI Approved :: Apache Software License",
|
|
48
|
+
"Programming Language :: Python :: 3",
|
|
49
|
+
"Typing :: Stubs Only",
|
|
50
|
+
]
|
|
51
|
+
)
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
Metadata-Version: 2.1
|
|
2
|
+
Name: types-capturer
|
|
3
|
+
Version: 3.0.0.20240408
|
|
4
|
+
Summary: Typing stubs for capturer
|
|
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/capturer.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
|
+
Requires-Python: >=3.8
|
|
15
|
+
Description-Content-Type: text/markdown
|
|
16
|
+
|
|
17
|
+
## Typing stubs for capturer
|
|
18
|
+
|
|
19
|
+
This is a [PEP 561](https://peps.python.org/pep-0561/)
|
|
20
|
+
type stub package for the [`capturer`](https://github.com/xolox/python-capturer) package.
|
|
21
|
+
It can be used by type-checking tools like
|
|
22
|
+
[mypy](https://github.com/python/mypy/),
|
|
23
|
+
[pyright](https://github.com/microsoft/pyright),
|
|
24
|
+
[pytype](https://github.com/google/pytype/),
|
|
25
|
+
PyCharm, etc. to check code that uses
|
|
26
|
+
`capturer`.
|
|
27
|
+
|
|
28
|
+
This version of `types-capturer` aims to provide accurate annotations
|
|
29
|
+
for `capturer==3.0.*`.
|
|
30
|
+
The source for this package can be found at
|
|
31
|
+
https://github.com/python/typeshed/tree/main/stubs/capturer. All fixes for
|
|
32
|
+
types and metadata should be contributed there.
|
|
33
|
+
|
|
34
|
+
See https://github.com/python/typeshed/blob/main/README.md for more details.
|
|
35
|
+
This package was generated from typeshed commit `1d33abb91749cfa070fbc1482f186ff6b2ecbbbb` and was tested
|
|
36
|
+
with mypy 1.9.0, pyright 1.1.357, and
|
|
37
|
+
pytype 2024.3.19.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
CHANGELOG.md
|
|
2
|
+
MANIFEST.in
|
|
3
|
+
setup.py
|
|
4
|
+
capturer-stubs/METADATA.toml
|
|
5
|
+
capturer-stubs/__init__.pyi
|
|
6
|
+
capturer-stubs/py.typed
|
|
7
|
+
types_capturer.egg-info/PKG-INFO
|
|
8
|
+
types_capturer.egg-info/SOURCES.txt
|
|
9
|
+
types_capturer.egg-info/dependency_links.txt
|
|
10
|
+
types_capturer.egg-info/top_level.txt
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
capturer-stubs
|