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
"""Module of functions to partition columns into segments.""" from collections import defaultdict from copy import deepcopy from typing import Callable, List import numpy as np import pandas as pd from sklearn.tree import _tree from runml_checks.tabular.dataset import Dataset from runml_checks.utils.strings import fo...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/utils/performance/partition.py
0.845241
0.720467
partition.py
pypi
"""Module for base tabular context.""" import typing as t import numpy as np import pandas as pd from runml_checks import CheckFailure, CheckResult from runml_checks.core import DatasetKind from runml_checks.core.errors import (DatasetValidationError, runml_checksNotSupportedError, runml_checksValueError, ...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/context.py
0.907876
0.451206
context.py
pypi
"""This file changes default 'ignore' action of DeprecationWarnings for specific deprecation messages.""" import warnings # Added in version 0.6.2, deprecates max_num_categories in all drift checks warnings.filterwarnings( action='always', message=r'.*max_num_categories.*', category=DeprecationWarning, ...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/deprecation_warnings.py
0.54698
0.1602
deprecation_warnings.py
pypi
"""The dataset module containing the tabular Dataset class and its functions.""" # pylint: disable=inconsistent-quotes,protected-access import typing as t import numpy as np import pandas as pd from IPython.display import HTML, display_html from pandas.api.types import infer_dtype from sklearn.model_selection import t...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/dataset.py
0.937017
0.75566
dataset.py
pypi
"""Module for base tabular abstractions.""" # pylint: disable=broad-except from typing import Callable, Mapping, Optional, Tuple, Union import numpy as np import pandas as pd from runml_checks.core import DatasetKind from runml_checks.core.check_result import CheckFailure from runml_checks.core.errors import runml_ch...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/suite.py
0.884595
0.325762
suite.py
pypi
"""Module for base tabular model abstractions.""" # pylint: disable=broad-except from typing import Any, List, Mapping, Tuple, Union from runml_checks.core.check_result import CheckFailure, CheckResult from runml_checks.core.errors import runml_checksNotSupportedError, runml_checksValueError from runml_checks.core.sui...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/model_base.py
0.936503
0.524882
model_base.py
pypi
"""Module for tabular base checks.""" import abc from typing import Callable, List, Mapping, Optional, Union import numpy as np import pandas as pd from runml_checks.core.check_result import CheckFailure, CheckResult from runml_checks.core.checks import (BaseCheck, DatasetKind, ModelOnlyBaseCheck, SingleDatasetBaseCh...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/base_checks.py
0.942619
0.395835
base_checks.py
pypi
"""Module importing all tabular checks.""" from .data_integrity import (ColumnsInfo, ConflictingLabels, DataDuplicates, FeatureLabelCorrelation, IsSingleValue, MixedDataTypes, MixedNulls, OutlierSampleDetection, SpecialCharacters, StringLengthOutOfBounds, String...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/__init__.py
0.851645
0.445831
__init__.py
pypi
"""The feature label correlation check module.""" import typing as t import runml_checks.ppscore as pps from runml_checks.core import CheckResult, ConditionCategory, ConditionResult from runml_checks.core.check_utils.feature_label_correlation_utils import get_pps_figure, pd_series_to_trace from runml_checks.tabular im...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/data_integrity/feature_label_correlation.py
0.945261
0.553928
feature_label_correlation.py
pypi
"""module contains Invalid Chars check.""" from collections import defaultdict from typing import List, Union import pandas as pd from pandas.api.types import infer_dtype from runml_checks.core import CheckResult, ConditionCategory, ConditionResult from runml_checks.tabular import Context, SingleDatasetCheck from run...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/data_integrity/special_chars.py
0.9357
0.519826
special_chars.py
pypi
"""module contains Data Duplicates check.""" from typing import List, Union import pandas as pd from typing_extensions import TypedDict from runml_checks.core import CheckResult, ConditionCategory, ConditionResult from runml_checks.tabular import Context, SingleDatasetCheck from runml_checks.utils.strings import form...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/data_integrity/conflicting_labels.py
0.947223
0.696778
conflicting_labels.py
pypi
"""Module contains Mixed Nulls check.""" import math from typing import Dict, Iterable, List, Union import numpy as np import pandas as pd from pandas.api.types import is_categorical_dtype from runml_checks.core import CheckResult, ConditionCategory, ConditionResult from runml_checks.core.errors import runml_checksVa...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/data_integrity/mixed_nulls.py
0.935729
0.471041
mixed_nulls.py
pypi
"""String length outlier check.""" from typing import Dict, List, Tuple, Union import numpy as np import pandas as pd from pandas import DataFrame, Series from scipy import stats from runml_checks.core import CheckResult, ConditionCategory, ConditionResult from runml_checks.tabular import Context, SingleDatasetCheck ...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/data_integrity/string_length_out_of_bounds.py
0.934701
0.554591
string_length_out_of_bounds.py
pypi
"""module contains Mixed Types check.""" from typing import List, Tuple, Union import numpy as np import pandas as pd from runml_checks.core import CheckResult, ConditionCategory, ConditionResult from runml_checks.tabular import Context, SingleDatasetCheck from runml_checks.utils.dataframes import select_from_datafra...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/data_integrity/mixed_data_types.py
0.912033
0.513303
mixed_data_types.py
pypi
"""Module contains is_single_value check.""" from typing import List, Union import pandas as pd from runml_checks.core import CheckResult, ConditionCategory, ConditionResult from runml_checks.tabular import Context, SingleDatasetCheck from runml_checks.tabular.utils.messages import get_condition_passed_message from r...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/data_integrity/is_single_value.py
0.938695
0.478468
is_single_value.py
pypi
"""module contains the Identifier-Label Correlation check.""" from typing import Dict import pandas as pd import plotly.express as px import runml_checks.ppscore as pps from runml_checks.core import CheckResult, ConditionCategory, ConditionResult from runml_checks.core.errors import DatasetValidationError from runml_...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/data_integrity/identifier_label_correlation.py
0.953199
0.473231
identifier_label_correlation.py
pypi
"""String mismatch functions.""" import itertools from collections import defaultdict from typing import List, Union import pandas as pd from runml_checks.core import CheckResult, ConditionCategory, ConditionResult from runml_checks.tabular import Context, SingleDatasetCheck from runml_checks.tabular.utils.messages i...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/data_integrity/string_mismatch.py
0.94121
0.479808
string_mismatch.py
pypi
"""module contains Data Duplicates check.""" from typing import List, Union import numpy as np from runml_checks.core import CheckResult, ConditionCategory, ConditionResult from runml_checks.core.errors import DatasetValidationError from runml_checks.tabular import Context, SingleDatasetCheck from runml_checks.utils....
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/data_integrity/data_duplicates.py
0.939311
0.57517
data_duplicates.py
pypi
"""module contains the Feature-Feature Correlation check.""" from typing import List, Union import numpy as np import pandas as pd import plotly.express as px from runml_checks.core import CheckResult, ConditionCategory, ConditionResult from runml_checks.tabular import Context, SingleDatasetCheck from runml_checks.u...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/data_integrity/feature_feature_correlation.py
0.948191
0.64692
feature_feature_correlation.py
pypi
"""Module of model error analysis check.""" from typing import Callable, Dict, Tuple, Union from sklearn import preprocessing from runml_checks import CheckFailure from runml_checks.core import CheckResult, ConditionCategory, ConditionResult from runml_checks.core.errors import runml_checksProcessError from runml_che...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/model_evaluation/model_error_analysis.py
0.937383
0.709994
model_error_analysis.py
pypi
"""The roc_report check module.""" from typing import Dict, List import numpy as np import plotly.graph_objects as go import sklearn from runml_checks.core import CheckResult, ConditionResult from runml_checks.core.condition import ConditionCategory from runml_checks.tabular import Context, SingleDatasetCheck from ru...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/model_evaluation/roc_report.py
0.952475
0.430686
roc_report.py
pypi
"""Module containing simple comparison check.""" from collections import defaultdict from typing import Callable, Dict, Hashable, List import numpy as np import pandas as pd import plotly.express as px from sklearn.dummy import DummyClassifier, DummyRegressor from sklearn.pipeline import Pipeline from sklearn.tree imp...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/model_evaluation/simple_model_comparison.py
0.911913
0.593433
simple_model_comparison.py
pypi
"""Boosting overfit check module.""" from copy import deepcopy from typing import Callable, Tuple, Union import numpy as np import plotly.graph_objects as go from sklearn.pipeline import Pipeline from runml_checks.core import CheckResult, ConditionCategory, ConditionResult from runml_checks.core.errors import runml_c...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/model_evaluation/boosting_overfit.py
0.957675
0.515132
boosting_overfit.py
pypi
"""The calibration score check module.""" import typing as t import plotly.graph_objects as go from sklearn.calibration import calibration_curve from sklearn.metrics import brier_score_loss from runml_checks.core import CheckResult from runml_checks.tabular import Context, SingleDatasetCheck from runml_checks.utils.t...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/model_evaluation/calibration_score.py
0.956043
0.562777
calibration_score.py
pypi
"""The model inference time check module.""" import timeit import typing as t import numpy as np from runml_checks.core import CheckResult, ConditionResult from runml_checks.core.condition import ConditionCategory from runml_checks.core.errors import runml_checksValueError from runml_checks.tabular import Context, Si...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/model_evaluation/model_inference_time.py
0.947636
0.48054
model_inference_time.py
pypi
"""Module of weak segments performance check.""" from collections import defaultdict from typing import Callable, Dict, List, Union import numpy as np import pandas as pd import plotly.express as px import sklearn from category_encoders import TargetEncoder from packaging import version from sklearn.model_selection im...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/model_evaluation/weak_segments_performance.py
0.938717
0.54698
weak_segments_performance.py
pypi
"""The regression_error_distribution check module.""" import pandas as pd import plotly.express as px from scipy.stats import kurtosis from runml_checks.core import CheckResult, ConditionCategory, ConditionResult from runml_checks.tabular import Context, SingleDatasetCheck from runml_checks.utils.strings import format...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/model_evaluation/regression_error_distribution.py
0.953177
0.699588
regression_error_distribution.py
pypi
"""Module containing multi model performance report check.""" from typing import Callable, Dict, cast import pandas as pd import plotly.express as px from runml_checks.core import CheckResult from runml_checks.tabular import ModelComparisonCheck, ModelComparisonContext from runml_checks.tabular.utils.task_type import...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/model_evaluation/multi_model_performance_report.py
0.946535
0.482368
multi_model_performance_report.py
pypi
"""The RegressionSystematicError check module.""" import plotly.graph_objects as go from sklearn.metrics import mean_squared_error from runml_checks.core import CheckResult, ConditionResult from runml_checks.core.condition import ConditionCategory from runml_checks.tabular import Context, SingleDatasetCheck from runml...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/model_evaluation/regression_systematic_error.py
0.961552
0.572603
regression_systematic_error.py
pypi
"""Module containing performance report check.""" from typing import Callable, Dict, TypeVar, Union, cast import pandas as pd import plotly.express as px from runml_checks.core import CheckResult from runml_checks.core.check_utils.class_performance_utils import ( get_condition_class_performance_imbalance_ratio_le...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/checks/model_evaluation/performance_report.py
0.955345
0.567277
performance_report.py
pypi
"""The avocado dataset contains historical data on avocado prices and sales volume in multiple US markets.""" import typing as t from urllib.request import urlopen import joblib import pandas as pd import sklearn from category_encoders import OneHotEncoder from sklearn.compose import ColumnTransformer from sklearn.ens...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/datasets/regression/avocado.py
0.911548
0.705924
avocado.py
pypi
"""The data set contains features for binary prediction of the income of an adult (the adult dataset).""" import typing as t from urllib.request import urlopen import joblib import pandas as pd import sklearn from category_encoders import OrdinalEncoder from sklearn.compose import ColumnTransformer from sklearn.ensemb...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/datasets/classification/adult.py
0.910598
0.680786
adult.py
pypi
"""The data set contains features for binary prediction of breast cancer.""" import typing as t from urllib.request import urlopen import joblib import pandas as pd import sklearn from sklearn.ensemble import AdaBoostClassifier from runml_checks.tabular.dataset import Dataset __all__ = ['load_data', 'load_fitted_mod...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/datasets/classification/breast_cancer.py
0.932928
0.690716
breast_cancer.py
pypi
"""The data set contains 3 classes of 50 instances each, where each class refers to a type of iris plant.""" import typing as t from urllib.request import urlopen import joblib import pandas as pd import sklearn from sklearn.ensemble import RandomForestClassifier from runml_checks.tabular.dataset import Dataset __al...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/datasets/classification/iris.py
0.943263
0.66792
iris.py
pypi
"""The phishing dataset contains a slightly synthetic dataset of urls - some regular and some used for phishing.""" import typing as t from urllib.request import urlopen import joblib import pandas as pd import sklearn from category_encoders import OneHotEncoder from sklearn.compose import ColumnTransformer from sklea...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/datasets/classification/phishing.py
0.918763
0.584004
phishing.py
pypi
"""The data set contains features for binary prediction of whether a loan will be approved or not.""" import typing as t import warnings from urllib.request import urlopen import joblib import numpy as np import pandas as pd import sklearn from category_encoders import OrdinalEncoder from sklearn.compose import Column...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/datasets/classification/lending_club.py
0.875388
0.541045
lending_club.py
pypi
"""Tabular objects validation utilities.""" import typing as t import numpy as np import pandas as pd from runml_checks import tabular from runml_checks.core import errors from runml_checks.utils.typing import BasicModel __all__ = [ 'model_type_validation', 'validate_model', 'ensure_dataframe_type', ...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/utils/validation.py
0.906259
0.566678
validation.py
pypi
import warnings from typing import Callable, Dict, List, Union from runml_checks.tabular import Suite from runml_checks.tabular.checks import (BoostingOverfit, CalibrationScore, CategoryMismatchTrainTest, ConflictingLabels, ConfusionMatrixReport, DataDuplicates, DatasetsSizeCompa...
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/tabular/suites/default_suites.py
0.896115
0.584864
default_suites.py
pypi
import inspect from typing import Callable import torch from deepchecks.core.errors import DeepchecksBaseError from deepchecks.vision import Context, SingleDatasetCheck, TrainTestCheck, checks from deepchecks.vision.datasets.classification import mnist from deepchecks.vision.datasets.detection import coco from deepch...
/runml_checks-1.0.0-py3-none-any.whl/benchmarks/vision_bench.py
0.641198
0.414366
vision_bench.py
pypi
from .runnerlog import RunnerLog as Logger class Assertion: '''Assertion class provides the assert statement in test case''' def __init__(self, order = None): self.failureException = AssertionError self.order = order def assertTrue(self, expr=True, msg=None): '''Fail the ...
/runner-easyuiautomator-1.3.tar.gz/runner-easyuiautomator-1.3/runner/common/assertion.py
0.501709
0.186003
assertion.py
pypi
import logging import traceback from time import perf_counter from typing import List, Optional, Sequence import pandas as pd # type: ignore from mate.alerts import Alert, AlertTarget, FeatureAlertKind, InferenceException from mate.checks import is_out_of_bounds, is_outlier from mate.db import ( Feature, Fea...
/running_mate-0.0.6-py3-none-any.whl/mate/run.py
0.781664
0.196055
run.py
pypi
import json import logging from abc import ABC, abstractmethod from dataclasses import asdict, dataclass from enum import Enum from typing import Dict, List, Optional, Union import requests # type: ignore from mate.db import FeatureAlert logger = logging.getLogger("mate") class FeatureAlertKind(Enum): OUTLIER...
/running_mate-0.0.6-py3-none-any.whl/mate/alerts.py
0.809276
0.170404
alerts.py
pypi
import datetime import logging import os import pathlib from typing import List, Union from peewee import ( # type: ignore CharField, DatabaseProxy, DateTimeField, FloatField, ForeignKeyField, IntegerField, Model, SqliteDatabase, ) logger = logging.getLogger("mate") db = DatabasePro...
/running_mate-0.0.6-py3-none-any.whl/mate/db.py
0.661923
0.190799
db.py
pypi
import pandas as pd # type: ignore from mate.db import Feature, NumericalStats, StringStats, get_current_mate from mate.stats import ( CommonStatistics, FeatureStatistics, FeatureType, NumericalStatistics, Statistics, StringStatistics, ) def generate_baseline_stats(df: pd.DataFrame, name: st...
/running_mate-0.0.6-py3-none-any.whl/mate/generators.py
0.518302
0.415195
generators.py
pypi
from typing import Any, Dict import yaml from running.suite import BenchmarkSuite from running.runtime import Runtime from running.modifier import Modifier from pathlib import Path import functools import copy import logging import os def load_class(cls, config): return {k: cls.from_config(k, v) for (k, v) in con...
/running-ng-0.4.1.tar.gz/running-ng-0.4.1/src/running/config.py
0.674158
0.290477
config.py
pypi
from pathlib import Path from typing import Any, Dict, Optional, Union, List, Sequence from running.benchmark import JavaBenchmark, BinaryBenchmark, Benchmark, JavaScriptBenchmark, JuliaBenchmark from running.runtime import OpenJDK, Runtime from running.modifier import JVMArg, Modifier import logging from running.util ...
/running-ng-0.4.1.tar.gz/running-ng-0.4.1/src/running/suite.py
0.850608
0.214445
suite.py
pypi
from typing import Optional, Iterable, Callable import subprocess def fillin(callback: Callable[[int, Iterable[int]], None], levels: int, start: Optional[int] = None): """Fill the parameter space The parameter space is from 0, 1, 2, ..., 2^levels (not right-inclusive). The advantage of using this functi...
/running-ng-0.4.1.tar.gz/running-ng-0.4.1/src/running/command/fillin.py
0.925091
0.585042
fillin.py
pypi
from copy import deepcopy from pathlib import Path import gzip import enum from typing import Any, Callable, Dict, List import functools import re from running.config import Configuration import os MMTk_HEADER = "============================ MMTk Statistics Totals ============================" MMTk_FOOTER = "---------...
/running-ng-0.4.1.tar.gz/running-ng-0.4.1/src/running/command/log_preprocessor.py
0.563258
0.230584
log_preprocessor.py
pypi
import logging from typing import DefaultDict, Dict, List, Any, Optional, Set, Tuple, BinaryIO, TYPE_CHECKING from running.suite import BenchmarkSuite, is_dry_run from running.benchmark import Benchmark, SubprocessrExit from running.config import Configuration from pathlib import Path from running.util import parse_con...
/running-ng-0.4.1.tar.gz/running-ng-0.4.1/src/running/command/runbms.py
0.858021
0.214177
runbms.py
pypi
from pathlib import Path from typing import Any, Dict, Optional, TYPE_CHECKING if TYPE_CHECKING: from running.benchmark import Benchmark class RunbmsPlugin(object): CLS_MAPPING: Dict[str, Any] CLS_MAPPING = {} def __init__(self, **kwargs): self.name = kwargs["name"] self.run_id = None...
/running-ng-0.4.1.tar.gz/running-ng-0.4.1/src/running/plugin/runbms/__init__.py
0.847968
0.172329
__init__.py
pypi
# Quickstart This guide will show you how to use `running-ng` to compare two different builds of JVMs. **Note that for each occurrence in the form `/path/to/*`, you need to replace it with the real path of the respective item in the filesystem.** ## Installation Please follow the [installation guide](./install.md) to...
/running-ng-0.4.1.tar.gz/running-ng-0.4.1/docs/src/quickstart.md
0.436502
0.930774
quickstart.md
pypi
# Configuration File Syntax The configuration file is in YAML format. You can find a good YAML tutorial [here](https://docs.ansible.com/ansible/latest/reference_appendices/YAMLSyntax.html). Below is the documentation for all the top-level keys that are common to all commands. ## `benchmarks` A YAML list of benchmarks ...
/running-ng-0.4.1.tar.gz/running-ng-0.4.1/docs/src/references/index.md
0.598664
0.961207
index.md
pypi
# Benchmark Suite ## `BinaryBenchmarkSuite` (preview ⚠️) A `BinaryBenchmarkSuite` is a suite of programs which can be used to run binary benchmarks such as for C/C++ benchmarking. ### Keys `programs`: A yaml list of benchmarks in the format: ```yaml programs: <BM_NAME_1>: path: /full/path/to/benchmark/binary_1...
/running-ng-0.4.1.tar.gz/running-ng-0.4.1/docs/src/references/suite.md
0.400984
0.928474
suite.md
pypi
from .exceptions import DistanceOutOfBoundsError C_K1 = 0.0654 C_K2 = 0.00258 C_A = 85 C_B = 950 PORTUGESE_TABLE = ( (40, 11), (50, 10.9960), (60, 10.9830), (70, 10.9620), (80, 10.934), (90, 10.9000), (100, 10.8600), (110, 10.8150), (120, 10.765), (130, 10.7110), (140, 10.6...
/running_performance-0.2.1-py3-none-any.whl/running_performance/purdy.py
0.640074
0.439928
purdy.py
pypi
from datetime import datetime, timedelta from .helpers import string_to_date from .helpers import convert_distance class Stats: """It's calculate statistics for the runner""" def __init__(self, runner, **kwargs): self.runner = runner self.from_date = kwargs.get('from_date') self.to_da...
/running_results_fetcher-0.2.2.tar.gz/running_results_fetcher-0.2.2/running_results_fetcher/stats.py
0.870322
0.255448
stats.py
pypi
from datetime import datetime from datetime import timedelta from .helpers import convert_distance class RaceResult: def __init__(self, **kwargs): self.race_name = kwargs.get('race_name', '') self.distance = kwargs.get('distance') self.runner_birth = kwargs.get('runner_birth') self...
/running_results_fetcher-0.2.2.tar.gz/running_results_fetcher-0.2.2/running_results_fetcher/race_result.py
0.716913
0.197599
race_result.py
pypi
from .race_result import RaceResult from .stats import Stats class Runner: "A class represents a Runner" def __init__(self, name, birth): """ Arguments: name {str} -- name and surname of the runner birth {str} --the year of birth of a runner """ self.n...
/running_results_fetcher-0.2.2.tar.gz/running_results_fetcher-0.2.2/running_results_fetcher/runner.py
0.860925
0.414366
runner.py
pypi
import re import enum import click from typing import Tuple, Optional DISTANCE_UNITS = { 'feet': 0.3048, 'foot': 0.3048, 'yard': 0.9144, 'yards': 0.9144, 'm': 1, 'meter': 1, 'meters': 1, 'k': 1000, 'km': 1000, 'kilometer': 1000, 'mile': 1609.344, 'miles': 1609.344, '...
/running-0.1.3.tar.gz/running-0.1.3/running.py
0.786664
0.356839
running.py
pypi
import sys import argparse import inspect import pydoc from typing import Dict, List, Tuple, Callable, Optional from pathlib import Path from types import ModuleType from collections.abc import ItemsView def filter_vars(imported_vars: ItemsView) -> Dict[str, Callable]: """Gets the name and object of the callable ...
/runp3-0.0.6-py3-none-any.whl/runp/runp.py
0.661486
0.328556
runp.py
pypi
[![runpandarun on pypi](https://img.shields.io/pypi/v/runpandarun)](https://pypi.org/project/runpandarun/) [![Python test and package](https://github.com/simonwoerpel/runpandarun/actions/workflows/python.yml/badge.svg)](https://github.com/simonwoerpel/runpandarun/actions/workflows/python.yml) [![pre-commit](https://img...
/runpandarun-0.2.5.tar.gz/runpandarun-0.2.5/README.md
0.688154
0.961606
README.md
pypi
.. image:: https://raw.githubusercontent.com/corriporai/runpandas/master/docs/source/_static/images/runpandas_banner.png RunPandas - Python Package for handing running data from GPS-enabled devices to worldwide race results. =============================================================================================...
/runpandas-0.6.0.tar.gz/runpandas-0.6.0/README.rst
0.857291
0.809878
README.rst
pypi
<div id="top"></div> # Run Jupyter notebooks quietly from command-line [![PyPI](https://img.shields.io/pypi/v/runpynb?color=brightgreen&label=PyPI)](https://pypi.org/project/runpynb/) ![GitHub release (latest by date)](https://img.shields.io/github/v/release/lsys/runpynb?label=Latest%20release) <br> [![PyPI - Python ...
/runpynb-0.2.0.tar.gz/runpynb-0.2.0/README.md
0.578686
0.866472
README.md
pypi
![Build Status](https://github.com/cms-DQM/runregistry_api_client/actions/workflows/test_package.yaml/badge.svg) # Run Registry Client Python client to retrieve and query data from [CMS Run Registry](https://cmsrunregistry.web.cern.ch). To switch to [Dev CMS Run Registry](https://dev-cmsrunregistry.web.cern.ch) do: ...
/runregistry-1.0.0.tar.gz/runregistry-1.0.0/README.md
0.447702
0.906446
README.md
pypi
[![Contributors][contributors-shield]][contributors-url] [![Forks][forks-shield]][forks-url] [![Stargazers][stars-shield]][stars-url] [![Issues][issues-shield]][issues-url] [![MIT License][license-shield]][license-url] [![LinkedIn][linkedin-shield]][linkedin-url] <!-- PROJECT LOGO --> <br /> <div> <p> <a href=...
/runrex-0.4.2.tar.gz/runrex-0.4.2/README.md
0.93408
0.743866
README.md
pypi
RunStats: Computing Statistics and Regression in One Pass ========================================================= `RunStats`_ is an Apache2 licensed Python module for online statistics and online regression. Statistics and regression summaries are computed in a single pass. Previous values are not recorded in summar...
/runstats-1.8.0.tar.gz/runstats-1.8.0/README.rst
0.944511
0.917598
README.rst
pypi
# runtasks A simple task runner for Python that is useful for build scripts. It is designed to allow Python functions to be called from the command line with no frameworks to get in the way. The "run" utility searches up the directory tree for a file named "tasks.py". Any functions decorated with `@task` are callab...
/runtasks-3.6.0.tar.gz/runtasks-3.6.0/README.md
0.780244
0.880951
README.md
pypi
from xml.sax.saxutils import XMLFilterBase class text_normalize_filter(XMLFilterBase): """ SAX filter to ensure that contiguous white space nodes are delivered merged into a single node """ def __init__(self, upstream, downstream): XMLFilterBase.__init__(self, upstream) self._d...
/runtilities-2.2.0.tar.gz/runtilities-2.2.0/running/textnormalize.py
0.669421
0.153296
textnormalize.py
pypi
from argparse import ArgumentParser from csv import DictWriter from datetime import timedelta # pypi from loutilities.xmldict import ConvertXmlToDict class ParameterError(Exception): pass def dist2miles(distel): dist = float(distel['_text']) distunits = distel['unit'] if distunits == 'mi': pass ...
/runtilities-2.2.0.tar.gz/runtilities-2.2.0/running/parseralogxml.py
0.533884
0.174551
parseralogxml.py
pypi
![license](https://img.shields.io/pypi/l/runtime-config-py?style=for-the-badge) ![python version](https://img.shields.io/pypi/pyversions/runtime-config-py?style=for-the-badge) [![version](https://img.shields.io/pypi/v/runtime-config-py?style=for-the-badge)](https://pypi.org/project/runtime-config-py/) [![coverage](http...
/runtime_config_py-0.0.8.tar.gz/runtime_config_py-0.0.8/README.md
0.790732
0.769319
README.md
pypi
import collections import threading from hookery import Registry _thread_local = threading.local() _thread_local.stack = collections.defaultdict(list) class Context(dict): """ Dictionary of current state. Do not work with this directly, instead use RuntimeContextWrapper. Includes a link to the wra...
/runtime-context-3.0.0.tar.gz/runtime-context-3.0.0/runtime_context/runtime_context.py
0.73431
0.16132
runtime_context.py
pypi
from __future__ import annotations __all__ = [ "KeyPath", "KeyPathSupporting", ] # region[Keywords] from typing import TYPE_CHECKING, Final, Generic, Protocol, TypeVar, cast, final # endregion[Keywords] # region[Types] if TYPE_CHECKING: from typing import Any, Sequence # endregion[Types] import th...
/runtime_keypath-0.1.2-py3-none-any.whl/runtime_keypath/_core.py
0.932423
0.333829
_core.py
pypi
`runtime-syspath` is a package to ease programmatically adding src root paths to `sys.path`. This is targeted at python test code that needs to discover a project's solution source to test. > :exclamation: It is generally **frowned upon** to alter the `sys.path` > programmatically as it confuses development, especiall...
/runtime-syspath-0.2.14.tar.gz/runtime-syspath-0.2.14/README.md
0.841696
0.877896
README.md
pypi
import os import re import sys from itertools import chain from pathlib import Path, PurePath from string import Template from types import ModuleType from typing import Dict, List, Optional, Pattern, Set, Tuple, Union from .syspath_path_utils import get_project_root_dir from .syspath_sleuth import get_customize_path ...
/runtime-syspath-0.2.14.tar.gz/runtime-syspath-0.2.14/src/runtime_syspath/syspath_utils.py
0.618896
0.228329
syspath_utils.py
pypi
from abc import ABCMeta, abstractmethod from collections.abc import Mapping as MappingCol, Collection from contextlib import suppress from functools import lru_cache, wraps from inspect import isclass, isfunction, ismethod, signature, unwrap from typing import Any, Callable, Iterable, Mapping, Tuple, Union, get_type_hi...
/runtime_type_checker-0.5.0-py3-none-any.whl/runtime_type_checker/_checkers.py
0.81928
0.171512
_checkers.py
pypi
from inspect import signature import sys from types import FunctionType from typing import ( Any, Callable, get_type_hints, Mapping, Sequence, ) try: from typing import _eval_type except ImportError as e: raise NotImplementedError("runtime-type-checker is incompatible with the version of py...
/runtime_type_checker-0.5.0-py3-none-any.whl/runtime_type_checker/utils.py
0.54577
0.18591
utils.py
pypi
from inspect import _empty, signature from functools import wraps from typing import Callable, Literal, Iterable, Optional from runtime_typing.typed_function import TypedFunction from runtime_typing.utils import optional_arguments_to_decorator @optional_arguments_to_decorator def typed( obj: "Callable", mode...
/runtime_typing-1.0.0.tar.gz/runtime_typing-1.0.0/runtime_typing/typed.py
0.928124
0.541773
typed.py
pypi
from collections.abc import Callable, Iterable from typing import ( get_args, get_type_hints, Any, Callable as TypingCallable, Dict, _GenericAlias, Iterable as TypingIterable, List, Literal, Optional, Tuple, TypeVar, TypedDict, Union, ) from warnings import warn ...
/runtime_typing-1.0.0.tar.gz/runtime_typing-1.0.0/runtime_typing/typed_function.py
0.906614
0.239161
typed_function.py
pypi
from abc import ABC, abstractmethod from contextlib import suppress from typing import Any, List, Literal, Optional from warnings import warn class RuntimeTypingError(Exception): pass class RuntimeTypingWarning(Warning): pass HandleViolationMode = Literal["raise", "warn", "return"] class RuntimeTypingVi...
/runtime_typing-1.0.0.tar.gz/runtime_typing-1.0.0/runtime_typing/violations.py
0.953253
0.283031
violations.py
pypi
import sys from collections import namedtuple from inspect import isfunction, isclass, getmembers from functools import wraps from typing import ( get_args, get_origin, Any, _GenericAlias, Iterable, Literal, Set, Union, TypedDict, TypeVar, ) Parameter = namedtuple("Parameter",...
/runtime_typing-1.0.0.tar.gz/runtime_typing-1.0.0/runtime_typing/utils.py
0.513425
0.177045
utils.py
pypi
from __future__ import annotations import os import re from pathlib import Path class EnvLoader: """Load local .env file into environment variables.""" def __init__(self, working_directory: Path | None = None) -> None: """ Create .env loader. Args: working_directory: Set...
/runtime_yolk-1.2.3-py3-none-any.whl/runtime_yolk/env_loader.py
0.794225
0.246046
env_loader.py
pypi
from __future__ import annotations import os import re from configparser import ConfigParser from pathlib import Path from runtime_yolk.util.file_rule import get_file_name INTERPOLATE_PATTERN = "{{(.+?)}}" class ConfigLoader: """Load and store configuration data""" def __init__(self, *, working_directory:...
/runtime_yolk-1.2.3-py3-none-any.whl/runtime_yolk/config_loader.py
0.841468
0.180089
config_loader.py
pypi
from __future__ import annotations import re from argparse import ArgumentParser from argparse import Namespace def _parse_args(arg_list: list[str] | None = None) -> Namespace: """Parse sys.argv.""" parser = ArgumentParser("Add, update, or remove env values from .env file.") parser.add_argument( ...
/runtime_yolk-1.2.3-py3-none-any.whl/runtime_yolk/env_cli.py
0.593609
0.167627
env_cli.py
pypi
from importlib.resources import Package from pathlib import Path from os import PathLike from setuptools import Command from setuptools.command.build import build from typing import Any, Callable, List, Union PathType = str | PathLike[Any] DEFAULT_FN = "runtime_build" def load_python_config(config_file_path: Path, ...
/runtime_builder-0.1.1.tar.gz/runtime_builder-0.1.1/runtime_builder.py
0.795301
0.326298
runtime_builder.py
pypi
import logging, json from dataclasses import dataclass from datetime import datetime import dateutil.parser from robot.libraries.BuiltIn import BuiltIn from robot.libraries import DateTime as RobotDateTime from RW import platform from RW.Core import Core logger = logging.getLogger(__name__) def _overwrite_shell_r...
/runwhen_cli_keywords-0.0.4-py3-none-any.whl/RW/CLI/cli_utils.py
0.640973
0.257467
cli_utils.py
pypi
import re from typing import Optional, Union import requests from RW import restclient from RW import platform from RW.Utils import utils class Kubectl: #TODO: remove and incorporate into K8s v3 rework """ Kubectl keyword library can be used to interact with Kubernetes clusters via kubectl location servic...
/runwhen_keywords-0.0.1.tar.gz/runwhen_keywords-0.0.1/RW/Kubectl.py
0.464173
0.286168
Kubectl.py
pypi
import jira from typing import Optional from RW.Utils import utils class Jira: #TODO: refactor for new platform use """ Jira is a keyword library for integrating with the Jira system. You need to provide a Jira server URL, a Jira User, and a Jira User Token to use this library. The first step ...
/runwhen_keywords-0.0.1.tar.gz/runwhen_keywords-0.0.1/RW/Jira.py
0.516595
0.49469
Jira.py
pypi
from dataclasses import dataclass from robot.libraries.BuiltIn import BuiltIn from typing import Union from RW.Utils import utils from RW.Utils.utils import Status from RW import platform class Elasticsearch: #TODO: refactor for new platform use """ Elasticsearch is a keyword library for integrating with ...
/runwhen_keywords-0.0.1.tar.gz/runwhen_keywords-0.0.1/RW/Elasticsearch.py
0.634883
0.320017
Elasticsearch.py
pypi
from typing import Union from dataclasses import dataclass from robot.libraries.BuiltIn import BuiltIn from RW.Utils import utils from RW.Utils.utils import Status class Grafana: #TODO: refactor for new platform use """ Grafana is a keyword library for integrating with the Grafana Dashboard. You need ...
/runwhen_keywords-0.0.1.tar.gz/runwhen_keywords-0.0.1/RW/Grafana.py
0.650023
0.336808
Grafana.py
pypi
from pdpyras import APISession from typing import Optional from RW.Utils import utils class PagerDuty: #TODO: refactor for new platform use """ PagerDuty keyword library can be used to create new incident in PagerDuty. """ ROBOT_LIBRARY_SCOPE = "GLOBAL" def __init__(self, api_token: Optional...
/runwhen_keywords-0.0.1.tar.gz/runwhen_keywords-0.0.1/RW/PagerDuty.py
0.623835
0.269612
PagerDuty.py
pypi
import re import requests from typing import Optional, Union from RW.Utils import utils REQUESTS_TIMEOUT = 45 #TODO: delete & cleanup to simplify HTTP interfaces - still in use by HTTP module def create_session(headers: Union[str, object, None]) -> object: session = requests.Session() update_session_headers...
/runwhen_keywords-0.0.1.tar.gz/runwhen_keywords-0.0.1/RW/restclient.py
0.535584
0.184198
restclient.py
pypi
import re, os, random, traceback import requests from typing import Optional, Union, List from robot.libraries.BuiltIn import BuiltIn from RW import platform from RW.Utils import utils class RWUtils: #TODO: merge with utils """Utility keyword library for useful bits and bobs.""" ROBOT_LIBRARY_SCOPE = "G...
/runwhen_keywords-0.0.1.tar.gz/runwhen_keywords-0.0.1/RW/Utils/RWUtils.py
0.672009
0.395689
RWUtils.py
pypi
from typing import Iterable, Any, Union, Optional import os, pprint, functools, time, json, datetime, yaml, logging, re, xml.dom.minidom, urllib.parse import jmespath from enum import Enum from benedict import benedict from robot.libraries.BuiltIn import BuiltIn from RW import platform logger = logging.getLogger(__na...
/runwhen_keywords-0.0.1.tar.gz/runwhen_keywords-0.0.1/RW/Utils/utils.py
0.616474
0.288832
utils.py
pypi
import requests, datetime, re, time, json, os, urllib from dataclasses import dataclass from typing import Union, Optional from RW import platform from RW.Core import Core class Papi: # TODO: refactor & improve docstrings """ Papi is a keyword library that integrates with the RunWhen Public API. """...
/runwhen_keywords-0.0.1.tar.gz/runwhen_keywords-0.0.1/RW/RunWhen/papi.py
0.596551
0.262118
papi.py
pypi
import time, os from dataclasses import dataclass from typing import Union, Optional from RW.Utils import utils from RW import platform from datetime import datetime, timezone from dateutil.relativedelta import relativedelta from datadog_api_client import ApiClient, Configuration from datadog_api_client.v1.api.metric...
/runwhen_keywords-0.0.1.tar.gz/runwhen_keywords-0.0.1/RW/Datadog/datadog.py
0.918352
0.270809
datadog.py
pypi
import re, kubernetes, yaml, logging from struct import unpack import dateutil.parser from benedict import benedict from typing import Optional, Union from RW import platform from enum import Enum from RW.Utils.utils import stdout_to_list logger = logging.getLogger(__name__) class K8sConnectionMixin: """ A mi...
/runwhen_keywords-0.0.1.tar.gz/runwhen_keywords-0.0.1/RW/K8s/k8s_connection_mixin.py
0.830663
0.237753
k8s_connection_mixin.py
pypi
import re, kubernetes, yaml, logging, json, jmespath from struct import unpack import dateutil.parser from benedict import benedict from typing import Optional, Union from RW import platform from RW.Utils import utils from enum import Enum from .namespace_tasks_mixin import NamespaceTasksMixin logger = logging.getLogg...
/runwhen_keywords-0.0.1.tar.gz/runwhen_keywords-0.0.1/RW/K8s/k8s.py
0.827689
0.230551
k8s.py
pypi
import logging from sdcclient import SdMonitorClient from dataclasses import dataclass from typing import Union, Optional from RW.Core import Core from RW import platform from RW.Utils import utils from RW.Utils.utils import Status from RW.Prometheus import Prometheus logger = logging.getLogger(__name__) class Sysdi...
/runwhen_keywords-0.0.1.tar.gz/runwhen_keywords-0.0.1/RW/Sysdig/Sysdig.py
0.912224
0.315736
Sysdig.py
pypi
import requests from RW import platform class StatusPage: """Used to fetch and validate data/metrics from a Uptime.com status page and its components. Returns: _type_: None """ ROBOT_LIBRARY_SCOPE = "GLOBAL" def get_component_status( self, auth_token: platform.Secret, url: str, ...
/runwhen_keywords-0.0.1.tar.gz/runwhen_keywords-0.0.1/RW/Uptime/StatusPage.py
0.769773
0.340759
StatusPage.py
pypi
from datetime import datetime, timezone from enum import Enum from typing import Set from dateutil import parser import requests from RW.Utils.utils import parse_timedelta GITHUB_SUMMARY_PAGE = "https://www.githubstatus.com/api/v2/summary.json" class Status: """ GitHub Status keyword library """ cl...
/runwhen_keywords-0.0.1.tar.gz/runwhen_keywords-0.0.1/RW/GitHub/Status.py
0.867261
0.265601
Status.py
pypi
import github from github import Github from typing import Optional, Union from dataclasses import dataclass from RW.Utils import utils class GitHub: #TODO: refactor and update for platform use """ GitHub keyword library defines keywords for interacting with GitHub services. """ ROBOT_LIBRARY...
/runwhen_keywords-0.0.1.tar.gz/runwhen_keywords-0.0.1/RW/GitHub/__init__.py
0.666605
0.287568
__init__.py
pypi