omnipy.shared.enums.ui
| CLASS | DESCRIPTION |
|---|---|
AutoDetectableUserInterfaceType |
User interface types that can be automatically detected by Omnipy, based |
BrowserPageUserInterfaceType |
|
BrowserTagUserInterfaceType |
|
BrowserUserInterfaceType |
|
HtmlPageOutputUserInterfaceType |
|
HtmlTagOutputUserInterfaceType |
|
IpythonEmbeddedTerminalUserInterfaceType |
|
IpythonTerminalUserInterfaceType |
|
JupyterEmbeddedUserInterfaceType |
|
JupyterInBrowserUserInterfaceType |
|
JupyterUserInterfaceType |
|
PlainTerminalEmbeddedUserInterfaceType |
|
PlainTerminalUserInterfaceType |
|
RgbColorUserInterfaceType |
|
SpecifiedUserInterfaceType |
User interface types that are specified as a particular UI type, either |
SupportsDarkTerminalBgDetection |
|
TerminalOutputUserInterfaceType |
|
TerminalUserInterfaceType |
|
UserInterfaceType |
Describes the type of interface in use for interacting with the user, |
AutoDetectableUserInterfaceType
Bases: PlainTerminalUserInterfaceType, IpythonTerminalUserInterfaceType, JupyterUserInterfaceType
User interface types that can be automatically detected by Omnipy, based on the environment in which the code is running.
| ATTRIBUTE | DESCRIPTION |
|---|---|
Literals |
|
Source code in src/omnipy/shared/enums/ui.py
Literals
class-attribute
instance-attribute
Literals = Literal[
PlainTerminalUserInterfaceType.Literals,
IpythonTerminalUserInterfaceType.Literals,
JupyterUserInterfaceType.Literals,
]
BrowserPageUserInterfaceType
Bases: LiteralEnum[str]
| ATTRIBUTE | DESCRIPTION |
|---|---|
BROWSER_PAGE |
TYPE:
|
Literals |
|
Source code in src/omnipy/shared/enums/ui.py
BrowserTagUserInterfaceType
Bases: LiteralEnum[str]
| ATTRIBUTE | DESCRIPTION |
|---|---|
BROWSER_TAG |
TYPE:
|
Literals |
|
Source code in src/omnipy/shared/enums/ui.py
BrowserUserInterfaceType
Bases: BrowserPageUserInterfaceType, BrowserTagUserInterfaceType
| ATTRIBUTE | DESCRIPTION |
|---|---|
Literals |
|
Source code in src/omnipy/shared/enums/ui.py
Literals
class-attribute
instance-attribute
Literals = Literal[BrowserPageUserInterfaceType.Literals, BrowserTagUserInterfaceType.Literals]
HtmlPageOutputUserInterfaceType
Bases: BrowserPageUserInterfaceType
| ATTRIBUTE | DESCRIPTION |
|---|---|
Literals |
|
Source code in src/omnipy/shared/enums/ui.py
Literals
class-attribute
instance-attribute
Literals = Literal[BrowserPageUserInterfaceType.Literals]
HtmlTagOutputUserInterfaceType
Bases: JupyterInBrowserUserInterfaceType, BrowserTagUserInterfaceType
| ATTRIBUTE | DESCRIPTION |
|---|---|
Literals |
|
Source code in src/omnipy/shared/enums/ui.py
Literals
class-attribute
instance-attribute
Literals = Literal[JupyterInBrowserUserInterfaceType.Literals, BrowserTagUserInterfaceType.Literals]
IpythonEmbeddedTerminalUserInterfaceType
Bases: LiteralEnum[str]
| ATTRIBUTE | DESCRIPTION |
|---|---|
Literals |
|
PYCHARM_IPYTHON |
TYPE:
|
Source code in src/omnipy/shared/enums/ui.py
IpythonTerminalUserInterfaceType
Bases: IpythonEmbeddedTerminalUserInterfaceType, LiteralEnum[str]
| ATTRIBUTE | DESCRIPTION |
|---|---|
IPYTHON |
Same as
TYPE:
|
Literals |
|
Source code in src/omnipy/shared/enums/ui.py
IPYTHON
class-attribute
instance-attribute
Same as TERMINAL, but running within the IPython interactive
interpreter (REPL). The IPython interpreter is a more advanced
interactive interpreter that provides additional features such as syntax
highlighting, tab completion, and better error messages.
Literals
class-attribute
instance-attribute
Literals = Literal['ipython', IpythonEmbeddedTerminalUserInterfaceType.Literals]
JupyterEmbeddedUserInterfaceType
Bases: LiteralEnum[str]
| ATTRIBUTE | DESCRIPTION |
|---|---|
Literals |
|
PYCHARM_JUPYTER |
TYPE:
|
Source code in src/omnipy/shared/enums/ui.py
JupyterInBrowserUserInterfaceType
Bases: LiteralEnum[str]
| ATTRIBUTE | DESCRIPTION |
|---|---|
JUPYTER |
TYPE:
|
Literals |
|
Source code in src/omnipy/shared/enums/ui.py
JupyterUserInterfaceType
Bases: JupyterEmbeddedUserInterfaceType, JupyterInBrowserUserInterfaceType
| ATTRIBUTE | DESCRIPTION |
|---|---|
Literals |
|
Source code in src/omnipy/shared/enums/ui.py
Literals
class-attribute
instance-attribute
Literals = Literal[
JupyterEmbeddedUserInterfaceType.Literals, JupyterInBrowserUserInterfaceType.Literals
]
PlainTerminalEmbeddedUserInterfaceType
Bases: LiteralEnum[str]
| ATTRIBUTE | DESCRIPTION |
|---|---|
Literals |
|
PYCHARM_TERMINAL |
TYPE:
|
Source code in src/omnipy/shared/enums/ui.py
PlainTerminalUserInterfaceType
Bases: PlainTerminalEmbeddedUserInterfaceType, LiteralEnum[str]
| ATTRIBUTE | DESCRIPTION |
|---|---|
Literals |
|
TERMINAL |
A standard Python interactive interpreter (REPL), running within
TYPE:
|
UNKNOWN |
The
TYPE:
|
Source code in src/omnipy/shared/enums/ui.py
Literals
class-attribute
instance-attribute
Literals = Literal['terminal', PlainTerminalEmbeddedUserInterfaceType.Literals, 'unknown']
TERMINAL
class-attribute
instance-attribute
A standard Python interactive interpreter (REPL), running within terminal-emulation software, such as the builtin "Terminal" app on Mac OS or GNOME Terminal on Linux, through a SSH connection to a remote server, or directly on a console.
UNKNOWN
class-attribute
instance-attribute
The UNKNOWN user interface type is used when the user interface type
cannot be determined. This will in practice produce the same output as
for the TERMINAL display type. As is default for terminals, we try
to autodetect color capabilities such as ANSI escape codes for color
and text formatting (see DisplayColorSystem.AUTO).
RgbColorUserInterfaceType
Bases: PlainTerminalEmbeddedUserInterfaceType, IpythonEmbeddedTerminalUserInterfaceType, JupyterUserInterfaceType, BrowserUserInterfaceType
| ATTRIBUTE | DESCRIPTION |
|---|---|
Literals |
|
Source code in src/omnipy/shared/enums/ui.py
Literals
class-attribute
instance-attribute
Literals = Literal[
PlainTerminalEmbeddedUserInterfaceType.Literals,
IpythonEmbeddedTerminalUserInterfaceType.Literals,
JupyterUserInterfaceType.Literals,
BrowserUserInterfaceType.Literals,
]
SpecifiedUserInterfaceType
Bases: PlainTerminalUserInterfaceType, IpythonTerminalUserInterfaceType, JupyterUserInterfaceType, BrowserUserInterfaceType
User interface types that are specified as a particular UI type, either
automatically determined by Omnipy or hard-coded (i.e. for browser
output). This is a union of all supported user interface types
(including UNKNOWN), except for AUTO.
| ATTRIBUTE | DESCRIPTION |
|---|---|
Literals |
|
Source code in src/omnipy/shared/enums/ui.py
Literals
class-attribute
instance-attribute
Literals = Literal[
PlainTerminalUserInterfaceType.Literals,
IpythonTerminalUserInterfaceType.Literals,
JupyterUserInterfaceType.Literals,
BrowserUserInterfaceType.Literals,
]
SupportsDarkTerminalBgDetection
Bases: TerminalUserInterfaceType, JupyterEmbeddedUserInterfaceType
| ATTRIBUTE | DESCRIPTION |
|---|---|
Literals |
|
Source code in src/omnipy/shared/enums/ui.py
Literals
class-attribute
instance-attribute
Literals = Literal[TerminalUserInterfaceType.Literals, JupyterEmbeddedUserInterfaceType.Literals]
TerminalOutputUserInterfaceType
Bases: PlainTerminalUserInterfaceType, IpythonTerminalUserInterfaceType, JupyterEmbeddedUserInterfaceType
| ATTRIBUTE | DESCRIPTION |
|---|---|
Literals |
|
Source code in src/omnipy/shared/enums/ui.py
Literals
class-attribute
instance-attribute
Literals = Literal[
PlainTerminalUserInterfaceType.Literals,
IpythonTerminalUserInterfaceType.Literals,
JupyterEmbeddedUserInterfaceType.Literals,
]
TerminalUserInterfaceType
Bases: PlainTerminalUserInterfaceType, IpythonTerminalUserInterfaceType
| ATTRIBUTE | DESCRIPTION |
|---|---|
Literals |
|
Source code in src/omnipy/shared/enums/ui.py
Literals
class-attribute
instance-attribute
Literals = Literal[
PlainTerminalUserInterfaceType.Literals, IpythonTerminalUserInterfaceType.Literals
]
UserInterfaceType
Bases: SpecifiedUserInterfaceType, LiteralEnum[str]
Describes the type of interface in use for interacting with the user, encompassing the support available for displaying output as well as how the user interacts with the library (including the type of interactive interpreter used, if any).
Should be automatically determined by Omnipy, but the user can also be set the user interface type manually in the config if for some reason needed (e.g. if auto-detection fails). In particular, the user can expect this to fail in other IDEs than PyCharm, which is the only IDE currently supported by Omnipy.
| ATTRIBUTE | DESCRIPTION |
|---|---|
AUTO |
The
TYPE:
|
Literals |
|
Source code in src/omnipy/shared/enums/ui.py
242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 | |
AUTO
class-attribute
instance-attribute
The AUTO user interface type is used to describe that the user
interface type has not yet been determined, and that it should be
automatically determined by Omnipy. This is the default value.
Literals
class-attribute
instance-attribute
Literals = Literal[SpecifiedUserInterfaceType.Literals, 'auto']
is_browser
classmethod
is_browser(ui_type: UserInterfaceType.Literals) -> TypeIs[BrowserUserInterfaceType.Literals]
Source code in src/omnipy/shared/enums/ui.py
is_ipython_terminal
classmethod
is_ipython_terminal(
ui_type: UserInterfaceType.Literals,
) -> TypeIs[IpythonTerminalUserInterfaceType.Literals]
Source code in src/omnipy/shared/enums/ui.py
is_jupyter
classmethod
is_jupyter(ui_type: UserInterfaceType.Literals) -> TypeIs[JupyterUserInterfaceType.Literals]
Source code in src/omnipy/shared/enums/ui.py
is_jupyter_embedded
classmethod
is_jupyter_embedded(
ui_type: UserInterfaceType.Literals,
) -> TypeIs[JupyterEmbeddedUserInterfaceType.Literals]
Source code in src/omnipy/shared/enums/ui.py
is_jupyter_in_browser
classmethod
is_jupyter_in_browser(
ui_type: UserInterfaceType.Literals,
) -> TypeIs[JupyterInBrowserUserInterfaceType.Literals]
Source code in src/omnipy/shared/enums/ui.py
is_plain_terminal
classmethod
is_plain_terminal(
ui_type: UserInterfaceType.Literals,
) -> TypeIs[PlainTerminalUserInterfaceType.Literals]
Source code in src/omnipy/shared/enums/ui.py
is_terminal
classmethod
is_terminal(ui_type: UserInterfaceType.Literals) -> TypeIs[TerminalUserInterfaceType.Literals]
Source code in src/omnipy/shared/enums/ui.py
requires_html_page_output
classmethod
requires_html_page_output(
ui_type: UserInterfaceType.Literals,
) -> TypeIs[HtmlPageOutputUserInterfaceType.Literals]
Source code in src/omnipy/shared/enums/ui.py
requires_html_tag_output
classmethod
requires_html_tag_output(
ui_type: UserInterfaceType.Literals,
) -> TypeIs[HtmlTagOutputUserInterfaceType.Literals]
Source code in src/omnipy/shared/enums/ui.py
requires_terminal_output
classmethod
requires_terminal_output(
ui_type: UserInterfaceType.Literals,
) -> TypeIs[TerminalOutputUserInterfaceType.Literals]
Source code in src/omnipy/shared/enums/ui.py
supports_dark_terminal_bg_detection
classmethod
supports_dark_terminal_bg_detection(
ui_type: UserInterfaceType.Literals,
) -> TypeIs[SupportsDarkTerminalBgDetection.Literals]
Source code in src/omnipy/shared/enums/ui.py
supports_rgb_color_output
classmethod
supports_rgb_color_output(
ui_type: UserInterfaceType.Literals,
) -> TypeIs[RgbColorUserInterfaceType.Literals]