code
stringlengths
114
1.05M
path
stringlengths
3
312
quality_prob
float64
0.5
0.99
learning_prob
float64
0.2
1
filename
stringlengths
3
168
kind
stringclasses
1 value
from robot.api import logger from TestStack.White.InputDevices import Mouse from WhiteLibrary.keywords.librarycomponent import LibraryComponent from WhiteLibrary.keywords.robotlibcore import keyword from System.Windows import Point class MouseKeywords(LibraryComponent): @keyword def set_mouse_location(self, x...
/robotframework-whitelibrary-1.6.0.20191007.3rc0.zip/robotframework-whitelibrary-1.6.0.20191007.3rc0/src/WhiteLibrary/keywords/mouse.py
0.870377
0.306462
mouse.py
pypi
import os import robot from robot.api import logger from robot.libraries.BuiltIn import BuiltIn, RobotNotRunningError from robot.utils import get_link_path, is_truthy from WhiteLibrary.keywords.librarycomponent import LibraryComponent from WhiteLibrary.keywords.robotlibcore import keyword, PY2 from System.Drawing.Imagi...
/robotframework-whitelibrary-1.6.0.20191007.3rc0.zip/robotframework-whitelibrary-1.6.0.20191007.3rc0/src/WhiteLibrary/keywords/screenshot.py
0.625781
0.166777
screenshot.py
pypi
from System import Enum from TestStack.White import AutomationException, Desktop from TestStack.White.Configuration import CoreAppXmlConfiguration from TestStack.White.Factory import InitializeOption # noqa: E402 from TestStack.White.UIItems.Finders import SearchCriteria # noqa: E402 from TestStack.White.UIItems.Wind...
/robotframework-whitelibrary-1.6.0.20191007.3rc0.zip/robotframework-whitelibrary-1.6.0.20191007.3rc0/src/WhiteLibrary/keywords/window.py
0.887253
0.254416
window.py
pypi
from TestStack.White.UIItems import Button, CheckBox, RadioButton from WhiteLibrary.keywords.librarycomponent import LibraryComponent from WhiteLibrary.keywords.robotlibcore import keyword from WhiteLibrary.utils.click import Clicks class ButtonKeywords(LibraryComponent): @keyword def click_button(self, locat...
/robotframework-whitelibrary-1.6.0.20191007.3rc0.zip/robotframework-whitelibrary-1.6.0.20191007.3rc0/src/WhiteLibrary/keywords/items/buttons.py
0.873862
0.527438
buttons.py
pypi
from robot.utils import timestr_to_secs from TestStack.White.UIItems import UIItem # noqa: F401 #pylint: disable=unused-import from WhiteLibrary.keywords.librarycomponent import LibraryComponent from WhiteLibrary.keywords.robotlibcore import keyword from WhiteLibrary.utils.click import Clicks from WhiteLibrary.utils.w...
/robotframework-whitelibrary-1.6.0.20191007.3rc0.zip/robotframework-whitelibrary-1.6.0.20191007.3rc0/src/WhiteLibrary/keywords/items/uiitem.py
0.829699
0.31254
uiitem.py
pypi
from TestStack.White.UIItems.TreeItems import Tree from WhiteLibrary.keywords.librarycomponent import LibraryComponent from WhiteLibrary.keywords.robotlibcore import keyword class TreeKeywords(LibraryComponent): @keyword def select_tree_node(self, locator, *node_path): """Selects a tree node. ...
/robotframework-whitelibrary-1.6.0.20191007.3rc0.zip/robotframework-whitelibrary-1.6.0.20191007.3rc0/src/WhiteLibrary/keywords/items/tree.py
0.908252
0.436982
tree.py
pypi
from TestStack.White.UIItems import ListView from WhiteLibrary.keywords.librarycomponent import LibraryComponent from WhiteLibrary.keywords.robotlibcore import keyword from WhiteLibrary.utils.click import Clicks class ListViewKeywords(LibraryComponent): @keyword def double_click_listview_cell(self, locator, c...
/robotframework-whitelibrary-1.6.0.20191007.3rc0.zip/robotframework-whitelibrary-1.6.0.20191007.3rc0/src/WhiteLibrary/keywords/items/listview.py
0.924415
0.692551
listview.py
pypi
from robot.api import logger # noqa: F401 #pylint: disable=unused-import from TestStack.White.UIItems.ListBoxItems import ComboBox, ListBox from TestStack.White.UIItems import UIActionException from WhiteLibrary.exceptions import ItemDisabledError from WhiteLibrary.keywords.librarycomponent import LibraryComponent fr...
/robotframework-whitelibrary-1.6.0.20191007.3rc0.zip/robotframework-whitelibrary-1.6.0.20191007.3rc0/src/WhiteLibrary/keywords/items/listcontrols.py
0.812719
0.322713
listcontrols.py
pypi
from typing import List, Optional import winrm from robot.api import logger from robot.utils import ConnectionCache class WinRMLibrary(object): """ Robot Framework library for Windows Remote Management, based on pywinrm. == Enable Windows Remote Shell == - [ http://support.microsoft.com/kb/555966 |...
/robotframework-winrmlibrary-2.0.0.tar.gz/robotframework-winrmlibrary-2.0.0/src/WinRMLibrary.py
0.897249
0.180269
WinRMLibrary.py
pypi
import requests import json from urllib.parse import urljoin from robot.api import logger from .version import VERSION __version__ = VERSION class WireMockLibrary(object): """Robot Framework library for interacting with [http://wiremock.org|WireMock] The purpose of this library is to provide a keyword-base...
/robotframework-wiremock-1.0.1.tar.gz/robotframework-wiremock-1.0.1/src/WireMockLibrary/library.py
0.824603
0.348008
library.py
pypi
import Tkinter as tk class RobotTally(object): '''Class that accumulates robot test results This uses the same listener interface as other modules in this package. It stores the data as tkinter IntVar's so that they can be used as textvariables ''' def __init__(self): self.var = { ...
/robotframework-workbench-0.5.tar.gz/robotframework-workbench-0.5/rwb/runner/robot_tally.py
0.4436
0.228199
robot_tally.py
pypi
import Tkinter as tk import ttk from rwb.widgets import AutoScrollbar class RobotMessages(ttk.Frame): def __init__(self, *args, **kwargs): ttk.Frame.__init__(self, *args, **kwargs) self._show_level = { "TRACE": tk.BooleanVar(self, value=False), "DEBUG": tk.BooleanVar(self, ...
/robotframework-workbench-0.5.tar.gz/robotframework-workbench-0.5/rwb/runner/robot_messages.py
0.420362
0.178186
robot_messages.py
pypi
import tkFont class FontScheme(object): '''A collection of fonts The fonts in a font scheme are all based off of two core fonts: a variable width font and a fixed width font. By default these are the Tkinter "TkDefaultFont" and "TkFixedFont" fonts. ''' def __init__(self, variable_base=None, fi...
/robotframework-workbench-0.5.tar.gz/robotframework-workbench-0.5/rwb/lib/fonts.py
0.560974
0.168583
fonts.py
pypi
import Tkinter as tk class GradientCanvas(tk.Canvas): '''A standard canvas widget with a gradient background''' def __init__(self, *args, **kwargs): tk.Canvas.__init__(self, *args, **kwargs) self._color1 = "red" self._color2 = "black" self._axis = "x" self.bind("<Configu...
/robotframework-workbench-0.5.tar.gz/robotframework-workbench-0.5/rwb/widgets/gradient_canvas.py
0.632049
0.263316
gradient_canvas.py
pypi
import yaml import re from robot.api import logger class FetchYaml(object): """ FetchYaml is a library to fetch sub-document from yaml doc tree, compare it with a matcher doc tree it requires string buffer input that can be loaded by yaml.load() function """ def __init__(self): #self._math...
/robotframework-yamllibrary-0.2.8.zip/robotframework-yamllibrary-0.2.8/src/YamlLibrary/fetchyaml.py
0.650356
0.280604
fetchyaml.py
pypi
from .edityaml import EditYML from .error import CheckError class YamlLib(object): def __init__(self): self._edit = EditYML() def yaml_search_the_word(self, path, word): """Search a ``word`` in yaml code. *Examples* | `Yaml Search The Word` | ${CURDIR}${/}file.yml | ...
/robotframework_ymllib-0.0.7-py3-none-any.whl/YamlLib/__init__.py
0.788135
0.275787
__init__.py
pypi
# python-agent-robot The official Zebrunner Robotframework agent provides the reporting functionality. It can automatically track Selenium sessions and send the info about session details to Zebrunner backend. It can be easily integrated into a project by just installing the library and adding the configuration file. ...
/robotframework_zebrunner-0.3.2.tar.gz/robotframework_zebrunner-0.3.2/README.md
0.531453
0.679943
README.md
pypi
import os from enum import Enum from typing import Dict, List, Optional, Type from .api.models import CiContextModel class BaseContextLoader: """ A class use as base to load environment variables. """ @staticmethod def load_context_variables(prefixes: List[str]) -> Dict[str, str]: """ ...
/robotframework_zebrunner-0.3.2.tar.gz/robotframework_zebrunner-0.3.2/src/robotframework_zebrunner/ci_loaders.py
0.822225
0.227587
ci_loaders.py
pypi
import json import logging import os from pathlib import Path from typing import Any, Dict, List, Optional, Type import dotenv import yaml from pydantic import BaseModel from pydantic.utils import deep_update PREFIX = "reporting" logger = logging.getLogger(__name__) class TestRunSettings(BaseModel): display_nam...
/robotframework_zebrunner-0.3.2.tar.gz/robotframework_zebrunner-0.3.2/src/robotframework_zebrunner/settings.py
0.763528
0.192463
settings.py
pypi
from datetime import datetime, timezone from enum import Enum from typing import Dict, List, Optional from uuid import uuid4 from pydantic import BaseModel, Field def generate_uuid() -> str: """ Generate an universal unique identifier. """ return str(uuid4()) def generate_datetime_str() -> str: ...
/robotframework_zebrunner-0.3.2.tar.gz/robotframework_zebrunner-0.3.2/src/robotframework_zebrunner/api/models.py
0.91266
0.22431
models.py
pypi
from kazoo.client import KazooClient from kazoo.exceptions import NoNodeError class ZookeeperManager(object): """ Working with Apache Zookeeper. Based on Kazoo (Python library). All errors described in "Returns" section are kazoo exceptions (kazoo.exceptions). == Notice == kazoo library work only...
/robotframework-zookeeperlibrary-0.1.4.zip/robotframework-zookeeperlibrary-0.1.4/src/ZookeeperLibrary/zookeepermanager.py
0.853867
0.238439
zookeepermanager.py
pypi
from typing import Dict, List, Optional, Union from JsonValidator import JsonValidator from kazoo.client import KazooClient from kazoo.exceptions import NoNodeError from robot.libraries.BuiltIn import BuiltIn from robot.utils import ConnectionCache # custom types ZkCheckResult = Dict[str, Union[str, bool, Exception]...
/robotframework-zookeepermanager-2.0.2.tar.gz/robotframework-zookeepermanager-2.0.2/src/ZookeeperManager.py
0.93706
0.211071
ZookeeperManager.py
pypi
import itertools from SeleniumLibrary import SeleniumLibrary from robot.libraries.BuiltIn import BuiltIn from robot.api.deco import keyword from robot.libraries.Collections import Collections from time import time from robot.utils import is_string from selenium.webdriver.common.action_chains import ActionChains, Scroll...
/robotframework_zoomba-3.6.1-py3-none-any.whl/Zoomba/GUILibrary.py
0.612541
0.275617
GUILibrary.py
pypi
import datetime import json import warnings from RequestsLibrary import RequestsLibrary, utils from dateutil.parser import parse from urllib3.exceptions import InsecureRequestWarning from requests.packages import urllib3 from robot.libraries.BuiltIn import BuiltIn from robot.utils.dotdict import DotDict from pandas im...
/robotframework_zoomba-3.6.1-py3-none-any.whl/Zoomba/APILibrary.py
0.735831
0.184804
APILibrary.py
pypi
import json from robot.libraries.BuiltIn import BuiltIn from suds.plugin import DocumentPlugin from suds.client import Client from suds import WebFault zoomba = BuiltIn() class _ObjectNamespacePlugin(DocumentPlugin): """_ObjectNamespacePlugin This class contains a plugin for use in fixing broken WSDL Na...
/robotframework_zoomba-3.6.1-py3-none-any.whl/Zoomba/SOAPLibrary.py
0.453262
0.154408
SOAPLibrary.py
pypi
Contribution guidelines ======================= These guidelines instruct how to submit issues and contribute code or documentation to the `Robot Framework project <https://github.com/robotframework/robotframework>`_. There are also many other projects in the larger `Robot Framework ecosystem <http://robotframework.or...
/robotframework-6.1.1.zip/robotframework-6.1.1/CONTRIBUTING.rst
0.811265
0.703269
CONTRIBUTING.rst
pypi
Installation instructions ========================= These instructions cover installing `Robot Framework <https://robotframework.org>`_ and its preconditions on different operating systems. If you already have `Python <http://python.org>`_ installed, you can install Robot Framework using the standard package manager `...
/robotframework-6.1.1.zip/robotframework-6.1.1/INSTALL.rst
0.938103
0.65283
INSTALL.rst
pypi
Creating Robot Framework releases ================================= These instructions cover steps needed to create new Robot Framework releases. Many individual steps are automated, but we don't want to automate the whole procedure because it would be hard to react if something goes terribly wrong. When applicable, t...
/robotframework-6.1.1.zip/robotframework-6.1.1/BUILD.rst
0.800653
0.698548
BUILD.rst
pypi
from pathlib import Path import sys assert Path.cwd().resolve() == Path(__file__).resolve().parent sys.path.insert(0, 'src') from invoke import Exit, task from rellu import initialize_labels, ReleaseNotesGenerator, Version from rellu.tasks import clean from robot.libdoc import libdoc REPOSITORY = 'robotframework/ro...
/robotframework-6.1.1.zip/robotframework-6.1.1/tasks.py
0.695958
0.326473
tasks.py
pypi
# Return codes from Robot and Rebot. # RC below 250 is the number of failed critical tests and exactly 250 # means that number or more such failures. INFO_PRINTED = 251 # --help or --version DATA_ERROR = 252 # Invalid data or cli args STOPPED_BY_USER = 253 # KeyboardInterrupt or SystemExit FRAMEWORK_ERROR...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/errors.py
0.813535
0.382978
errors.py
pypi
from robot.model import BodyItem from robot.utils import is_list_like, is_dict_like, is_string, safe_str class ListenerArguments: def __init__(self, arguments): self._arguments = arguments self._version2 = None self._version3 = None def get_arguments(self, version): if versi...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/output/listenerarguments.py
0.712432
0.19216
listenerarguments.py
pypi
from robot.errors import TimeoutError from robot.utils import get_error_details from .listenerarguments import ListenerArguments from .logger import LOGGER class ListenerMethods: def __init__(self, method_name, listeners): self._methods = [] self._method_name = method_name if listeners:...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/output/listenermethods.py
0.742702
0.180035
listenermethods.py
pypi
from robot.utils import get_timestamp, NullMarkupWriter, safe_str, XmlWriter from robot.version import get_full_version from robot.result.visitor import ResultVisitor from .loggerhelper import IsLogged class XmlLogger(ResultVisitor): def __init__(self, path, log_level='TRACE', rpa=False, generator='Robot'): ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/output/xmllogger.py
0.563498
0.155655
xmllogger.py
pypi
from robot.errors import DataError from robot.utils import get_timestamp, file_writer, seq2str2 from .logger import LOGGER from .loggerhelper import IsLogged def DebugFile(path): if not path: LOGGER.info('No debug file') return None try: outfile = file_writer(path, usage='debug') ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/output/debugfile.py
0.489503
0.205037
debugfile.py
pypi
from robot.errors import DataError, VariableError from robot.utils import DotDict, is_dict_like, is_list_like, NormalizedDict, type_name from .notfound import variable_not_found from .resolvable import GlobalVariableValue, Resolvable from .search import is_assign NOT_SET = object() class VariableStore: def _...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/variables/store.py
0.573798
0.228791
store.py
pypi
import re from robot.errors import VariableError from robot.utils import is_string def search_variable(string, identifiers='$@&%*', ignore_errors=False): if not (is_string(string) and '{' in string): return VariableMatch(string) return _search_variable(string, identifiers, ignore_errors) def conta...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/variables/search.py
0.657428
0.330958
search.py
pypi
import os import tempfile from robot.errors import VariableError from robot.model import Tags from robot.output import LOGGER from robot.utils import abspath, find_file, get_error_details, DotDict, NormalizedDict from .resolvable import GlobalVariableValue from .variables import Variables class VariableScopes: ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/variables/scopes.py
0.55097
0.174305
scopes.py
pypi
from contextlib import contextmanager from robot.errors import DataError from robot.utils import DotDict, is_string, split_from_equals from .resolvable import Resolvable from .search import is_assign, is_list_variable, is_dict_variable class VariableTableSetter: def __init__(self, store): self._store ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/variables/tablesetter.py
0.639961
0.270372
tablesetter.py
pypi
from robot.errors import DataError, VariableError from robot.output import librarylogger as logger from robot.utils import (DotDict, escape, get_error_message, is_dict_like, is_list_like, is_string, safe_str, type_name, unescape) from .finders import VariableFinder from .search import Variabl...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/variables/replacer.py
0.664867
0.281096
replacer.py
pypi
import inspect import io import json try: import yaml except ImportError: yaml = None from robot.errors import DataError from robot.output import LOGGER from robot.utils import (get_error_message, is_dict_like, is_list_like, is_string, seq2str2, type_name, DotDict, Importer) class V...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/variables/filesetter.py
0.516839
0.165323
filesetter.py
pypi
import re from robot.errors import DataError, VariableError from robot.utils import (get_env_var, get_env_vars, get_error_message, normalize, NormalizedDict) from .evaluation import evaluate_expression from .notfound import variable_not_found from .search import search_variable, VariableMatc...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/variables/finders.py
0.531453
0.154727
finders.py
pypi
import re from collections.abc import MutableSequence from robot.errors import (DataError, ExecutionStatus, HandlerExecutionFailed, VariableError) from robot.utils import (DotDict, ErrorDetails, format_assign_message, get_error_message, is_dict_like, is_list_like, ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/variables/assigner.py
0.609989
0.194158
assigner.py
pypi
import logging from robot.output import librarylogger from robot.running.context import EXECUTION_CONTEXTS def write(msg, level='INFO', html=False): """Writes the message to the log file using the given level. Valid log levels are ``TRACE``, ``DEBUG``, ``INFO`` (default), ``WARN``, and ``ERROR``. In add...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/api/logger.py
0.666062
0.365598
logger.py
pypi
import sys from abc import ABC, abstractmethod from pathlib import Path from typing import Any, Dict, List, Optional, Sequence, Tuple, Union # Need to use version check and not try/except to support Mypy's stubgen. if sys.version_info >= (3, 8): from typing import TypedDict else: try: from typing_extens...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/api/interfaces.py
0.78968
0.454654
interfaces.py
pypi
import inspect def not_keyword(func): """Decorator to disable exposing functions or methods as keywords. Examples:: @not_keyword def not_exposed_as_keyword(): # ... def exposed_as_keyword(): # ... Alternatively the automatic keyword discovery can be dis...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/api/deco.py
0.810028
0.37051
deco.py
pypi
r"""Public API for parsing, inspecting and modifying test data. Exposed API ----------- The publicly exposed parsing entry points are the following: * :func:`~.lexer.lexer.get_tokens`, :func:`~.lexer.lexer.get_resource_tokens`, and :func:`~.lexer.lexer.get_init_tokens` functions for `parsing data to tokens`_....
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/api/parsing.py
0.922032
0.724529
parsing.py
pypi
class Failure(AssertionError): """Report failed validation. There is no practical difference in using this exception compared to using the standard ``AssertionError``. The main benefits are HTML support and that the name of this exception is consistent with other exceptions in this module. """ ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/api/exceptions.py
0.883337
0.422505
exceptions.py
pypi
from robot.result import ResultVisitor from robot.utils import XmlWriter class XUnitWriter: def __init__(self, execution_result): self._execution_result = execution_result def write(self, output): xml_writer = XmlWriter(output, usage='xunit') writer = XUnitFileWriter(xml_writer) ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/reporting/xunitwriter.py
0.779154
0.227523
xunitwriter.py
pypi
from robot.conf import RebotSettings from robot.errors import DataError from robot.model import ModelModifier from robot.output import LOGGER from robot.result import ExecutionResult, Result from .jsmodelbuilders import JsModelBuilder from .logreportwriters import LogWriter, ReportWriter from .xunitwriter import XUni...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/reporting/resultwriter.py
0.8575
0.230357
resultwriter.py
pypi
from robot.conf import Languages, LanguageLike, LanguagesLike from robot.utils import normalize_whitespace from .settings import (InitFileSettings, FileSettings, Settings, SuiteFileSettings, ResourceFileSettings, TestCaseSettings, KeywordSettings) from .tokens import StatementTokens, Token cl...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/parsing/lexer/context.py
0.77223
0.18797
context.py
pypi
from abc import ABC, abstractmethod from typing import List from robot.errors import DataError from robot.utils import normalize_whitespace from robot.variables import is_assign from .context import FileContext, LexingContext, KeywordContext, TestCaseContext from .tokens import StatementTokens, Token class Lexer(A...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/parsing/lexer/statementlexers.py
0.74826
0.266262
statementlexers.py
pypi
from abc import ABC, abstractmethod from robot.conf import Languages from robot.utils import normalize, normalize_whitespace, RecommendationFinder from .tokens import StatementTokens, Token class Settings(ABC): names: 'tuple[str, ...]' = () aliases: 'dict[str, str]' = {} multi_use = ( 'Metadata...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/parsing/lexer/settings.py
0.500244
0.219892
settings.py
pypi
import re from collections.abc import Iterator from .tokens import Token class Tokenizer: _space_splitter = re.compile(r'(\s{2,}|\t)', re.UNICODE) _pipe_splitter = re.compile(r'((?:\A|\s+)\|(?:\s+|\Z))', re.UNICODE) def tokenize(self, data: str, data_only: bool = False) -> 'Iterator[list[Token]]': ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/parsing/lexer/tokenizer.py
0.522446
0.251573
tokenizer.py
pypi
from collections.abc import Iterator from typing import cast, List from robot.variables import VariableIterator # Type alias to ease typing elsewhere StatementTokens = List['Token'] class Token: """Token representing piece of Robot Framework data. Each token has type, value, line number, column offset an...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/parsing/lexer/tokens.py
0.731826
0.29922
tokens.py
pypi
from collections.abc import Iterable, Iterator from itertools import chain from robot.conf import LanguagesLike from robot.errors import DataError from robot.utils import get_error_message, FileReader, Source from .blocklexers import FileLexer from .context import (InitFileContext, LexingContext, SuiteFileContext, ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/parsing/lexer/lexer.py
0.821582
0.357483
lexer.py
pypi
from pathlib import Path from robot.utils import Source from ..lexer import Token from ..model import (CommentSection, File, ImplicitCommentSection, InvalidSection, Keyword, KeywordSection, Section, SettingSection, Statement, TestCase, TestCaseSection, VariableSection) from ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/parsing/parser/fileparser.py
0.511229
0.167763
fileparser.py
pypi
from typing import Callable, Iterator from robot.conf import LanguagesLike from robot.utils import Source from ..lexer import get_init_tokens, get_resource_tokens, get_tokens, Token from ..model import File, Config, ModelVisitor, Statement from .blockparsers import Parser from .fileparser import FileParser def ge...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/parsing/parser/parser.py
0.899002
0.419053
parser.py
pypi
from abc import ABC, abstractmethod from ..lexer import Token from ..model import (Block, Container, End, For, If, Keyword, NestedBlock, Statement, TestCase, Try, While) class Parser(ABC): model: Container def __init__(self, model: Container): self.model = model @abstractm...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/parsing/parser/blockparsers.py
0.81549
0.244972
blockparsers.py
pypi
from abc import ABC from contextlib import contextmanager from pathlib import Path from typing import cast, Iterator, Sequence, TextIO, Union from robot.utils import file_writer, test_or_task from .statements import (Break, Continue, ElseHeader, ElseIfHeader, End, ExceptHeader, Error, Finall...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/parsing/model/blocks.py
0.796609
0.218378
blocks.py
pypi
import ast import re from abc import ABC, abstractmethod from collections.abc import Iterator, Sequence from typing import cast, ClassVar, overload, TYPE_CHECKING, Type, TypeVar from robot.conf import Language from robot.running.arguments import UserKeywordArgumentParser from robot.utils import normalize_whitespace, ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/parsing/model/statements.py
0.885576
0.34275
statements.py
pypi
from robot.errors import DataError from robot.output import LOGGER from robot.result import Keyword as KeywordResult from robot.utils import prepr, safe_str from robot.variables import contains_variable, is_list_variable, VariableAssignment from .bodyrunner import BodyRunner from .model import Keyword from .outputcap...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/librarykeywordrunner.py
0.699562
0.158402
librarykeywordrunner.py
pypi
import sys from threading import current_thread, main_thread import signal from robot.errors import ExecutionFailed from robot.output import LOGGER class _StopSignalMonitor: def __init__(self): self._signal_count = 0 self._running_keyword = False self._orig_sigint = None self._o...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/signalhandler.py
0.40157
0.202917
signalhandler.py
pypi
from robot.model import Tags from robot.result import Keyword as KeywordResult from robot.variables import VariableAssignment from .arguments import ArgumentSpec from .statusreporter import StatusReporter class UserErrorHandler: """Created if creating handlers fail. Running it raises DataError. The idea is...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/usererrorhandler.py
0.856692
0.268261
usererrorhandler.py
pypi
from robot.errors import ExecutionFailed, ExecutionStatus, DataError, PassExecution from robot.model import SuiteVisitor, TagPatterns from robot.result import TestSuite, Result from robot.utils import get_timestamp, is_list_like, NormalizedDict, test_or_task from robot.variables import VariableScopes from .bodyrunner...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/suiterunner.py
0.556279
0.169922
suiterunner.py
pypi
from robot.errors import PassExecution from robot.model import TagPatterns from robot.utils import html_escape, test_or_task class Failure: def __init__(self): self.setup = None self.test = None self.teardown = None self.setup_skipped = None self.test_skipped = None ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/status.py
0.655336
0.15444
status.py
pypi
from robot.errors import DataError from robot.utils import get_error_message, is_bytes, is_list_like, is_string, type_name from .arguments import PythonArgumentParser def no_dynamic_method(*args): return None class _DynamicMethod: _underscore_name = NotImplemented def __init__(self, lib): sel...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/dynamicmethods.py
0.797833
0.228339
dynamicmethods.py
pypi
import sys import warnings from pathlib import Path from typing import Any, Mapping, Sequence, TYPE_CHECKING, Union if sys.version_info >= (3, 8): from typing import Literal from robot import model from robot.conf import RobotSettings from robot.errors import BreakLoop, ContinueLoop, DataError, ReturnFromKeyword f...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/model.py
0.669961
0.248358
model.py
pypi
from collections import OrderedDict from contextlib import contextmanager from itertools import zip_longest import re import time from robot.errors import (BreakLoop, ContinueLoop, DataError, ExecutionFailed, ExecutionFailures, ExecutionPassed, ExecutionStatus) from robot.result import (For ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/bodyrunner.py
0.659515
0.213787
bodyrunner.py
pypi
import warnings from robot.utils import NormalizedDict class _RunKeywordRegister: def __init__(self): self._libs = {} def register_run_keyword(self, libname, keyword, args_to_process, deprecation_warning=True, dry_run=False): """Deprecated API for registering "...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/runkwregister.py
0.614047
0.516839
runkwregister.py
pypi
from abc import ABC, abstractmethod from inspect import isclass, signature, Parameter from typing import get_type_hints from robot.errors import DataError from robot.utils import is_string, split_from_equals from robot.variables import is_assign, is_scalar_assign from .argumentspec import ArgumentSpec class Argume...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/arguments/argumentparser.py
0.833053
0.154919
argumentparser.py
pypi
from robot.variables import contains_variable from .typeconverters import TypeConverter class ArgumentConverter: def __init__(self, argspec, converters, dry_run=False, languages=None): """:type argspec: :py:class:`robot.running.arguments.ArgumentSpec`""" self._argspec = argspec self._co...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/arguments/argumentconverter.py
0.800458
0.276518
argumentconverter.py
pypi
from robot.errors import DataError from robot.utils import plural_or_not, seq2str from robot.variables import is_dict_variable, is_list_variable class ArgumentValidator: def __init__(self, argspec): """:type argspec: :py:class:`robot.running.arguments.ArgumentSpec`""" self._argspec = argspec ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/arguments/argumentvalidator.py
0.800224
0.305115
argumentvalidator.py
pypi
from robot.errors import DataError class ArgumentMapper: def __init__(self, argspec): """:type argspec: :py:class:`robot.running.arguments.ArgumentSpec`""" self._argspec = argspec def map(self, positional, named, replace_defaults=True): template = KeywordCallTemplate(self._argspec) ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/arguments/argumentmapper.py
0.834609
0.313472
argumentmapper.py
pypi
from robot.errors import DataError from robot.utils import is_string, is_dict_like, split_from_equals from robot.variables import is_dict_variable from .argumentvalidator import ArgumentValidator class ArgumentResolver: def __init__(self, argspec, resolve_named=True, resolve_variables_until=No...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/arguments/argumentresolver.py
0.816955
0.241009
argumentresolver.py
pypi
from ast import literal_eval from collections import OrderedDict from collections.abc import ByteString, Container, Mapping, Sequence, Set from datetime import datetime, date, timedelta from decimal import InvalidOperation, Decimal from enum import Enum from numbers import Integral, Real from os import PathLike from p...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/arguments/typeconverters.py
0.839471
0.165425
typeconverters.py
pypi
from robot.utils import getdoc, is_union, seq2str, type_name from .argumentparser import PythonArgumentParser class CustomArgumentConverters: def __init__(self, converters): self.converters = converters @classmethod def from_dict(cls, converters, library): valid = [] for type_,...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/arguments/customconverters.py
0.804675
0.180793
customconverters.py
pypi
import sys from collections.abc import Sequence from ..model import TestCase if sys.version_info >= (3, 8): from typing import TypedDict class OptionalItems(TypedDict, total=False): args: 'Sequence[str]' lineno: int class FixtureDict(OptionalItems): """Dictionary containing s...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/builder/settings.py
0.692122
0.409575
settings.py
pypi
from ast import NodeVisitor from robot.errors import DataError from robot.output import LOGGER from robot.parsing import File, Token from robot.variables import VariableIterator from .settings import FileSettings from ..model import ResourceFile, TestSuite class SettingsBuilder(NodeVisitor): def __init__(self...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/builder/transformers.py
0.508056
0.265392
transformers.py
pypi
from abc import ABC from inspect import signature from pathlib import Path from robot.conf import LanguagesLike from robot.errors import DataError from robot.parsing import File, get_init_model, get_model, get_resource_model from robot.utils import FileReader, get_error_message, read_rest_data, type_name from .setti...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/builder/parsers.py
0.747247
0.208985
parsers.py
pypi
import warnings from itertools import chain from os.path import normpath from pathlib import Path from typing import cast, Sequence from robot.conf import LanguagesLike from robot.errors import DataError from robot.output import LOGGER from robot.parsing import (SuiteFile, SuiteDirectory, SuiteStructure, ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/builder/builders.py
0.825941
0.365655
builders.py
pypi
import time from robot.utils import Sortable, secs_to_timestr, timestr_to_secs, WINDOWS from robot.errors import TimeoutError, DataError, FrameworkError if WINDOWS: from .windows import Timeout else: from .posix import Timeout class _Timeout(Sortable): def __init__(self, timeout=None, variables=None):...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/running/timeouts/__init__.py
0.669421
0.166134
__init__.py
pypi
from robot.errors import DataError class XmlElementHandler: def __init__(self, execution_result, root_handler=None): self._stack = [(root_handler or RootHandler(), execution_result)] def start(self, elem): handler, result = self._stack[-1] handler = handler.get_child_handler(elem.ta...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/result/xmlelementhandlers.py
0.743354
0.162912
xmlelementhandlers.py
pypi
from robot.errors import DataError from robot.model import SuiteVisitor, TagPattern from robot.utils import Matcher, plural_or_not def KeywordRemover(how): upper = how.upper() if upper.startswith('NAME:'): return ByNameKeywordRemover(pattern=how[5:]) if upper.startswith('TAG:'): return By...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/result/keywordremover.py
0.596316
0.212528
keywordremover.py
pypi
from robot.errors import DataError from robot.model import Statistics from .executionerrors import ExecutionErrors from .model import TestSuite class Result: """Test execution results. Can be created based on XML output files using the :func:`~.resultbuilder.ExecutionResult` factory method. Also re...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/result/executionresult.py
0.926744
0.425128
executionresult.py
pypi
from robot.model import SuiteVisitor class ResultVisitor(SuiteVisitor): """Abstract class to conveniently travel :class:`~robot.result.executionresult.Result` objects. A visitor implementation can be given to the :meth:`visit` method of a result object. This will cause the result object to be traversed a...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/result/visitor.py
0.869001
0.776835
visitor.py
pypi
import sys import warnings from collections import OrderedDict from datetime import datetime, timedelta from itertools import chain from pathlib import Path from typing import Generic, Mapping, Sequence, Type, Union, TypeVar if sys.version_info >= (3, 8): from typing import Literal from robot import model from ro...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/result/model.py
0.742702
0.262139
model.py
pypi
from robot.errors import DataError from robot.model import SuiteVisitor from robot.utils import html_escape, test_or_task class Merger(SuiteVisitor): def __init__(self, result, rpa=False): self.result = result self.current = None self.rpa = rpa def merge(self, merged): self....
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/result/merger.py
0.615897
0.259403
merger.py
pypi
from robot.errors import DataError from robot.model import TagPatterns from robot.utils import MultiMatcher, is_list_like def validate_flatten_keyword(options): for opt in options: low = opt.lower() # TODO: Deprecate 'foritem' in RF 6.1! if low == 'foritem': low = 'iteration' ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/result/flattenkeywordmatcher.py
0.456168
0.297572
flattenkeywordmatcher.py
pypi
import textwrap from robot.errors import DataError from robot.utils import MultiMatcher, console_encode class ConsoleViewer: def __init__(self, libdoc): self._libdoc = libdoc self._keywords = KeywordMatcher(libdoc) @classmethod def handles(cls, command): return command.lower() ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/libdocpkg/consoleviewer.py
0.513425
0.162845
consoleviewer.py
pypi
from datetime import date, datetime, timedelta from decimal import Decimal from pathlib import Path from typing import Any STANDARD_TYPE_DOCS = { Any: '''\ Any value is accepted. No conversion is done. ''', bool: '''\ Strings ``TRUE``, ``YES``, ``ON`` and ``1`` are converted to Boolean ``True``, the empty st...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/libdocpkg/standardtypes.py
0.923424
0.647171
standardtypes.py
pypi
import re try: from urllib import quote except ImportError: from urllib.parse import quote from robot.errors import DataError from robot.utils import html_escape, html_format, NormalizedDict from robot.utils.htmlformatters import HeaderFormatter class DocFormatter: _header_regexp = re.compile(r'<h([234]...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/libdocpkg/htmlutils.py
0.533397
0.219254
htmlutils.py
pypi
import json import re from itertools import chain from robot.model import Tags from robot.running import ArgInfo, ArgumentSpec, TypeInfo from robot.utils import getshortdoc, Sortable, setter from .htmlutils import DocFormatter, DocToHtml, HtmlToText from .writer import LibdocWriter from .output import LibdocOutput, ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/libdocpkg/model.py
0.798069
0.173253
model.py
pypi
import fnmatch import glob import os import pathlib import re import shutil import tempfile import time from robot.version import get_version from robot.api import logger from robot.api.deco import keyword from robot.utils import (abspath, ConnectionCache, console_decode, del_env_var, get_env...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/libraries/OperatingSystem.py
0.709321
0.489015
OperatingSystem.py
pypi
import os import subprocess import sys try: import wx except ImportError: wx = None try: from gtk import gdk except ImportError: gdk = None try: from PIL import ImageGrab # apparently available only on Windows except ImportError: ImageGrab = None from robot.api import logger from robot.libra...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/libraries/Screenshot.py
0.651466
0.302159
Screenshot.py
pypi
import copy from ast import literal_eval from robot.api import logger from robot.utils import (get_error_message, is_dict_like, is_list_like, is_truthy, Matcher, plural_or_not as s, seq2str, seq2str2, type_name) from robot.utils.asserts import assert_equal from robot.version import get_versio...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/libraries/Collections.py
0.857515
0.539287
Collections.py
pypi
from datetime import datetime, timedelta import time from robot.version import get_version from robot.utils import (elapsed_time_to_string, is_falsy, is_number, is_string, secs_to_timestr, timestr_to_secs, type_name) __version__ = get_version() __all__ = ['convert_time', 'convert_date', 'subt...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/libraries/DateTime.py
0.93938
0.452415
DateTime.py
pypi
from contextlib import contextmanager import inspect import re import socket import struct import telnetlib import time try: import pyte except ImportError: pyte = None from robot.api import logger from robot.api.deco import keyword from robot.utils import (ConnectionCache, is_bytes, is_string, is_truthy, ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/libraries/Telnet.py
0.834103
0.505188
Telnet.py
pypi
import os import re from fnmatch import fnmatchcase from random import randint from string import ascii_lowercase, ascii_uppercase, digits from robot.api import logger from robot.api.deco import keyword from robot.utils import (FileReader, is_bytes, is_string, is_truthy, parse_re_flags, safe_...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/libraries/String.py
0.815085
0.526099
String.py
pypi
from robot.version import get_version from robot.utils import is_truthy from .dialogs_py import (InputDialog, MessageDialog, MultipleSelectionDialog, PassFailDialog, SelectionDialog) __version__ = get_version() __all__ = ['execute_manual_step', 'get_value_from_user', 'get_selectio...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/libraries/Dialogs.py
0.889108
0.329405
Dialogs.py
pypi
import difflib import re import time from collections import OrderedDict from robot.api import logger, SkipExecution from robot.api.deco import keyword from robot.errors import (BreakLoop, ContinueLoop, DataError, ExecutionFailed, ExecutionFailures, ExecutionPassed, PassExecution, ...
/robotframework-6.1.1.zip/robotframework-6.1.1/src/robot/libraries/BuiltIn.py
0.823648
0.317942
BuiltIn.py
pypi