Skip to content

Commit 368f888

Browse files
committed
Updated typeshed defs for Galaxy-lib?
1 parent 461b10f commit 368f888

File tree

128 files changed

+2746
-71
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+2746
-71
lines changed

typeshed/2.7/galaxy/__init__.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Stubs for galaxy (Python 3.5)
1+
# Stubs for galaxy (Python 3.4)
22
#
33
# NOTE: This dynamically typed stub was automatically generated by stubgen.
44

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,143 @@
1+
# Stubs for galaxy.exceptions (Python 3.4)
2+
#
3+
# NOTE: This dynamically typed stub was automatically generated by stubgen.
4+
5+
from typing import Any, Optional
6+
from ..exceptions import error_codes as error_codes
7+
8+
class MessageException(Exception):
9+
status_code = ... # type: int
10+
err_code = ... # type: Any
11+
err_msg = ... # type: Any
12+
type = ... # type: Any
13+
extra_error_info = ... # type: Any
14+
def __init__(self, err_msg: Optional[Any] = ..., type: str = ..., **extra_error_info) -> None: ...
15+
16+
class ItemDeletionException(MessageException): ...
17+
class ObjectInvalid(Exception): ...
18+
19+
class ActionInputError(MessageException):
20+
status_code = ... # type: int
21+
err_code = ... # type: Any
22+
def __init__(self, err_msg, type: str = ...) -> None: ...
23+
24+
class DuplicatedSlugException(MessageException):
25+
status_code = ... # type: int
26+
err_code = ... # type: Any
27+
28+
class DuplicatedIdentifierException(MessageException):
29+
status_code = ... # type: int
30+
err_code = ... # type: Any
31+
32+
class ObjectAttributeInvalidException(MessageException):
33+
status_code = ... # type: int
34+
err_code = ... # type: Any
35+
36+
class ObjectAttributeMissingException(MessageException):
37+
status_code = ... # type: int
38+
err_code = ... # type: Any
39+
40+
class MalformedId(MessageException):
41+
status_code = ... # type: int
42+
err_code = ... # type: Any
43+
44+
class MalformedContents(MessageException):
45+
status_code = ... # type: int
46+
err_code = ... # type: Any
47+
48+
class UnknownContentsType(MessageException):
49+
status_code = ... # type: int
50+
err_code = ... # type: Any
51+
52+
class RequestParameterMissingException(MessageException):
53+
status_code = ... # type: int
54+
err_code = ... # type: Any
55+
56+
class ToolMetaParameterException(MessageException):
57+
status_code = ... # type: int
58+
err_code = ... # type: Any
59+
60+
class ToolMissingException(MessageException):
61+
status_code = ... # type: int
62+
err_code = ... # type: Any
63+
64+
class RequestParameterInvalidException(MessageException):
65+
status_code = ... # type: int
66+
err_code = ... # type: Any
67+
68+
class AuthenticationFailed(MessageException):
69+
status_code = ... # type: int
70+
err_code = ... # type: Any
71+
72+
class AuthenticationRequired(MessageException):
73+
status_code = ... # type: int
74+
err_code = ... # type: Any
75+
76+
class ItemAccessibilityException(MessageException):
77+
status_code = ... # type: int
78+
err_code = ... # type: Any
79+
80+
class ItemOwnershipException(MessageException):
81+
status_code = ... # type: int
82+
err_code = ... # type: Any
83+
84+
class ConfigDoesNotAllowException(MessageException):
85+
status_code = ... # type: int
86+
err_code = ... # type: Any
87+
88+
class InsufficientPermissionsException(MessageException):
89+
status_code = ... # type: int
90+
err_code = ... # type: Any
91+
92+
class AdminRequiredException(MessageException):
93+
status_code = ... # type: int
94+
err_code = ... # type: Any
95+
96+
class ObjectNotFound(MessageException):
97+
status_code = ... # type: int
98+
err_code = ... # type: Any
99+
100+
class DeprecatedMethod(MessageException):
101+
status_code = ... # type: int
102+
err_code = ... # type: Any
103+
104+
class Conflict(MessageException):
105+
status_code = ... # type: int
106+
err_code = ... # type: Any
107+
108+
class ConfigurationError(Exception):
109+
status_code = ... # type: int
110+
err_code = ... # type: Any
111+
112+
class InconsistentDatabase(MessageException):
113+
status_code = ... # type: int
114+
err_code = ... # type: Any
115+
116+
class InternalServerError(MessageException):
117+
status_code = ... # type: int
118+
err_code = ... # type: Any
119+
120+
class NotImplemented(MessageException):
121+
status_code = ... # type: int
122+
err_code = ... # type: Any
123+
124+
class ContainerCLIError(Exception):
125+
stdout = ... # type: Any
126+
stderr = ... # type: Any
127+
returncode = ... # type: Any
128+
command = ... # type: Any
129+
subprocess_command = ... # type: Any
130+
def __init__(self, msg: Optional[Any] = ..., stdout: Optional[Any] = ..., stderr: Optional[Any] = ..., returncode: Optional[Any] = ..., command: Optional[Any] = ..., subprocess_command: Optional[Any] = ..., **kwargs) -> None: ...
131+
132+
class ContainerNotFound(Exception):
133+
container_id = ... # type: Any
134+
def __init__(self, msg: Optional[Any] = ..., container_id: Optional[Any] = ..., **kwargs) -> None: ...
135+
136+
class ContainerImageNotFound(Exception):
137+
image = ... # type: Any
138+
def __init__(self, msg: Optional[Any] = ..., image: Optional[Any] = ..., **kwargs) -> None: ...
139+
140+
class ContainerRunError(Exception):
141+
image = ... # type: Any
142+
command = ... # type: Any
143+
def __init__(self, msg: Optional[Any] = ..., image: Optional[Any] = ..., command: Optional[Any] = ..., **kwargs) -> None: ...
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Stubs for galaxy.exceptions.error_codes (Python 3.4)
2+
#
3+
# NOTE: This dynamically typed stub was automatically generated by stubgen.
4+
5+
from typing import Any
6+
7+
UNKNOWN_ERROR_MESSAGE = ... # type: str
8+
9+
class ErrorCode:
10+
code = ... # type: Any
11+
default_error_message = ... # type: Any
12+
def __init__(self, code, default_error_message) -> None: ...
13+
def __int__(self): ...
14+
15+
error_codes_json = ... # type: Any
16+
name = ... # type: Any
17+
error_code_obj = ... # type: Any

typeshed/2.7/galaxy/jobs/__init__.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Stubs for galaxy.jobs (Python 3.4)
2+
#
3+
# NOTE: This dynamically typed stub was automatically generated by stubgen.
4+
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
# Stubs for galaxy.jobs.metrics (Python 3.4)
2+
#
3+
# NOTE: This dynamically typed stub was automatically generated by stubgen.
4+
5+
from typing import Any, Optional
6+
from ..metrics import formatting as formatting
7+
8+
log = ... # type: Any
9+
DEFAULT_FORMATTER = ... # type: Any
10+
11+
class JobMetrics:
12+
plugin_classes = ... # type: Any
13+
default_job_instrumenter = ... # type: Any
14+
job_instrumenters = ... # type: Any
15+
def __init__(self, conf_file: Optional[Any] = ..., **kwargs) -> None: ...
16+
def format(self, plugin, key, value): ...
17+
def set_destination_conf_file(self, destination_id, conf_file): ...
18+
def set_destination_conf_element(self, destination_id, element): ...
19+
def set_destination_instrumenter(self, destination_id, job_instrumenter: Optional[Any] = ...): ...
20+
def collect_properties(self, destination_id, job_id, job_directory): ...
21+
22+
class NullJobInstrumenter:
23+
def pre_execute_commands(self, job_directory): ...
24+
def post_execute_commands(self, job_directory): ...
25+
def collect_properties(self, job_id, job_directory): ...
26+
27+
NULL_JOB_INSTRUMENTER = ... # type: Any
28+
29+
class JobInstrumenter:
30+
extra_kwargs = ... # type: Any
31+
plugin_classes = ... # type: Any
32+
plugins = ... # type: Any
33+
def __init__(self, plugin_classes, plugins_source, **kwargs) -> None: ...
34+
def pre_execute_commands(self, job_directory): ...
35+
def post_execute_commands(self, job_directory): ...
36+
def collect_properties(self, job_id, job_directory): ...
37+
@staticmethod
38+
def from_file(plugin_classes, conf_file, **kwargs): ...
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Stubs for galaxy.jobs.metrics.collectl (Python 3.4)
2+
#
3+
# NOTE: This dynamically typed stub was automatically generated by stubgen.
4+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Stubs for galaxy.jobs.metrics.collectl.cli (Python 3.4)
2+
#
3+
# NOTE: This dynamically typed stub was automatically generated by stubgen.
4+
5+
from typing import Any
6+
7+
class CollectlCli:
8+
mode = ... # type: Any
9+
command_args = ... # type: Any
10+
def __init__(self, **kwargs) -> None: ...
11+
def build_command_line(self): ...
12+
def run(self, stdout: Any = ..., stderr: Any = ...): ...
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Stubs for galaxy.jobs.metrics.collectl.processes (Python 3.4)
2+
#
3+
# NOTE: This dynamically typed stub was automatically generated by stubgen.
4+
5+
from typing import Any
6+
7+
def generate_process_statistics(collectl_playback_cli, pid, statistics: Any = ...): ...
8+
9+
class CollectlProcessSummarizer:
10+
pid = ... # type: Any
11+
statistics = ... # type: Any
12+
columns_of_interest = ... # type: Any
13+
tree_statistics = ... # type: Any
14+
process_accum_statistics = ... # type: Any
15+
interval_count = ... # type: int
16+
def __init__(self, pid, statistics) -> None: ...
17+
def handle_interval(self, interval): ...
18+
def get_statistics(self): ...
19+
20+
class CollectlProcessInterval:
21+
rows = ... # type: Any
22+
def __init__(self) -> None: ...
23+
def row_is_in(self, row): ...
24+
def add_row(self, row): ...
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Stubs for galaxy.jobs.metrics.collectl.stats (Python 3.4)
2+
#
3+
# NOTE: This dynamically typed stub was automatically generated by stubgen.
4+
5+
from typing import Any
6+
7+
class StatisticsTracker:
8+
min = ... # type: Any
9+
max = ... # type: Any
10+
count = ... # type: int
11+
sum = ... # type: int
12+
def __init__(self) -> None: ...
13+
def track(self, value): ...
14+
@property
15+
def avg(self): ...
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Stubs for galaxy.jobs.metrics.collectl.subsystems (Python 3.4)
2+
#
3+
# NOTE: This dynamically typed stub was automatically generated by stubgen.
4+
5+
class CollectlSubsystem:
6+
@property
7+
def command_line_arg(self): ...
8+
@property
9+
def name(self, job_directory): ...
10+
11+
class ProcessesSubsystem(CollectlSubsystem):
12+
command_line_arg = ... # type: str
13+
name = ... # type: str
14+
15+
class CpuSubsystem(CollectlSubsystem):
16+
command_line_arg = ... # type: str
17+
name = ... # type: str
18+
19+
class DiskSubsystem(CollectlSubsystem):
20+
command_line_arg = ... # type: str
21+
name = ... # type: str
22+
23+
class NetworkSubsystem(CollectlSubsystem):
24+
command_line_arg = ... # type: str
25+
name = ... # type: str
26+
27+
class EnvironmentSubsystem(CollectlSubsystem):
28+
command_line_arg = ... # type: str
29+
name = ... # type: str
30+
31+
class MemorySubsystem(CollectlSubsystem):
32+
command_line_arg = ... # type: str
33+
name = ... # type: str
34+
35+
def get_subsystem(name): ...

0 commit comments

Comments
 (0)