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 datetime import datetime from py4j.compat import long from pyspark.sql import SparkSession from pyspark.sql.dataframe import DataFrame class ConfKeys: DATASOURCE_INIT = "druid.datasource.init" # Segment config DATA_SOURCE = "druid.datasource" TIME_COLUMN = "druid.time_column" DIMENSIONS_SPE...
/rovio_ingest-1.0.5-py3-none-any.whl/rovio_ingest/extensions/dataframe_extension.py
0.501465
0.199756
dataframe_extension.py
pypi
#Licensed under the Apache License, Version 2.0 (the "License"). #You may not use this file except in compliance with the License. #You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 #Unless required by applicable law or agreed to in writing, software #distributed under th...
/row_estimator_for_apache_cassandra-0.0.3-py3-none-any.whl/row_estimator_for_apache_cassandra/__main__.py
0.487795
0.190272
__main__.py
pypi
#Licensed under the Apache License, Version 2.0 (the "License"). #You may not use this file except in compliance with the License. #You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 #Unless required by applicable law or agreed to in writing, software #distributed under th...
/row_estimator_for_apache_cassandra-0.0.3-py3-none-any.whl/row_estimator_for_apache_cassandra/estimator.py
0.493164
0.210381
estimator.py
pypi
import os import re from os.path import exists from google.cloud import storage # Need to save service account JSON under root_repo_name directory class GCP: def __init__( self, service_account_name="omd-emea-daimler-a8c6772fb5f7.json", ): """ Args: service_accou...
/rowan_ds_tools-0.14.tar.gz/rowan_ds_tools-0.14/rowan_ds_tools/io/GCP_bucket.py
0.575827
0.245752
GCP_bucket.py
pypi
import functools import time import pandas as pd import sqlalchemy as sqa from ..utils._param_validation import validate_params def _db_connector_decorator(func): """Decorator which 1. sets up connections to the db 2. peforms decorated function 3. closes connections to the DB Args: fun...
/rowan_ds_tools-0.14.tar.gz/rowan_ds_tools-0.14/rowan_ds_tools/io/db_helper.py
0.636692
0.278407
db_helper.py
pypi
from abc import ABC from abc import abstractmethod from collections.abc import Iterable import functools import math from inspect import signature from numbers import Integral from numbers import Real import operator import warnings import numpy as np from scipy.sparse import issparse from scipy.sparse import csr_matr...
/rowan_ds_tools-0.14.tar.gz/rowan_ds_tools-0.14/rowan_ds_tools/utils/_param_validation.py
0.912165
0.450722
_param_validation.py
pypi
import logging import socket from typing import Optional, Tuple import mysql.connector from mysql.connector import errorcode from mysql.connector.pooling import MySQLConnectionPool, PooledMySQLConnection from starlette import status from starlette.exceptions import HTTPException from rowantree.auth.sdk import User f...
/rowantree.auth.service-0.13.0-py3-none-any.whl/rowantree/auth/service/services/db/dao.py
0.86056
0.157396
dao.py
pypi
import os from typing import Optional from .environment_variable_not_found_error import EnvironmentVariableNotFoundError def demand_env_var(name: str) -> str: """ Returns an environment variable as a string, or throws an exception. Parameters ---------- name: str The name of the environ...
/rowantree.common.sdk-1.0.0.tar.gz/rowantree.common.sdk-1.0.0/src/rowantree/common/sdk/config/environment.py
0.921816
0.504211
environment.py
pypi
import json import random from pathlib import Path from typing import Any, Optional from pydantic import ValidationError from rowantree.contracts import StoreType, UserEvent, UserStore from ..abstract.abstract_loremaster import AbstractLoremaster class WorldStoryTeller(AbstractLoremaster): """ The Story Te...
/rowantree.content.service-0.20.0.tar.gz/rowantree.content.service-0.20.0/src/rowantree/content/service/common/world/storyteller.py
0.770896
0.194196
storyteller.py
pypi
from starlette import status from starlette.exceptions import HTTPException from rowantree.contracts import ( FeatureType, IncomeSourceType, StoreType, UserFeatureState, UserIncome, UserNotification, UserState, UserStore, ) from ..services.db.incorrect_row_count_error import Incorrect...
/rowantree.game.service-0.23.0-py3-none-any.whl/rowantree/game/service/controllers/user_state_get.py
0.74826
0.192103
user_state_get.py
pypi
import logging import socket from datetime import datetime from typing import Optional, Tuple import mysql.connector from mysql.connector import IntegrityError, errorcode from mysql.connector.pooling import MySQLConnectionPool, PooledMySQLConnection from starlette import status from starlette.exceptions import HTTPEx...
/rowantree.game.service-0.23.0-py3-none-any.whl/rowantree/game/service/services/db/dao.py
0.762203
0.185947
dao.py
pypi
import copy import random from typing import Optional from rowantree.contracts import UserPopulation, UserStore, UserStores class StoryTeller: MAX_ENCOUNTER_TRIES = 10 # pylint: disable=line-too-long events = { "global": [ { "title": "a stranger arrives in the night",...
/rowantree.server-0.3.0-py3-none-any.whl/rowantree/server/common/storyteller.py
0.527073
0.629604
storyteller.py
pypi
from starlette import status from starlette.exceptions import HTTPException from rowantree.contracts import ( FeatureType, IncomeSourceType, StoreType, UserFeatureState, UserIncome, UserNotification, UserState, UserStore, ) from ..services.db.incorrect_row_count_error import Incorrect...
/rowantree.service-0.22.0.tar.gz/rowantree.service-0.22.0/src/rowantree/service/controllers/user_state_get.py
0.74826
0.192103
user_state_get.py
pypi
import logging import socket from datetime import datetime from typing import Optional, Tuple import mysql.connector from mysql.connector import IntegrityError, errorcode from mysql.connector.pooling import MySQLConnectionPool, PooledMySQLConnection from starlette import status from starlette.exceptions import HTTPEx...
/rowantree.service-0.22.0.tar.gz/rowantree.service-0.22.0/src/rowantree/service/services/db/dao.py
0.771327
0.17614
dao.py
pypi
Transforms ========== Transforms are series of functions that can be applied to columns, to perform manipulations on the columns values while a table is being iterated. The transforms are usually simple functions, with some special argument names defined; when iterating, values are automatically injected according to ...
/rowgenerators-0.9.24.tar.gz/rowgenerators-0.9.24/docs/transforms/index.rst
0.942546
0.973869
index.rst
pypi
# world_rowing Collection of code to load, process and analyse rowing data from [World Rowing](https://worldrowing.com/). Can view the world rowing data by running `streamlit run world_rowing_app/home.py` or visiting https://matthewghgriffiths-worldrowing.streamlit.app/ # rowing.analysis A python library for analysin...
/rowing-0.3.1.tar.gz/rowing-0.3.1/README.md
0.461259
0.841891
README.md
pypi
# Rownd bindings for Django Easily add Rownd instant accounts to your Django-backed apps. ## Installation Begin by adding the `rownd_django` package to your dependencies. In `requirements.txt`, this would look like: ``` rownd_django>=1.0.0 ``` > NOTE: This plugin only works with Django v3 and above. We strongly reco...
/rownd_django-1.0.1.tar.gz/rownd_django-1.0.1/README.md
0.499756
0.823293
README.md
pypi
[![Build Status](https://travis-ci.org/dumitrescustefan/RoWordNet.svg?branch=master)](https://travis-ci.org/dumitrescustefan/RoWordNet) [![Python 3](https://img.shields.io/badge/python-3-blue.svg)](https://www.python.org/downloads/) [![Version 1.1](https://img.shields.io/badge/version-1.1-red.svg)]() # RoWordNet **Ro...
/rowordnet-1.1.0.tar.gz/rowordnet-1.1.0/README.md
0.720172
0.938576
README.md
pypi
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Gaussian(Distribution): """ Gaussian distribution class for calculating and visualizing a Gaussian distribution. Attributes: mean (float) representing the mean value of the distribution stdev (float) representing ...
/rox_distributions-0.1.tar.gz/rox_distributions-0.1/rox_distributions/Gaussiandistribution.py
0.688364
0.853058
Gaussiandistribution.py
pypi
import operator from typing import Any import matplotlib # type: ignore import numpy as np import pandas as pd import plotly.express as px # type: ignore import plotly.graph_objects as go # type: ignore import pyvista as pv import vtk # type: ignore from roxieapi.xml_api import X_COORDINATE, Y_COORDINATE ROXIE_C...
/roxie_api-0.0.15-py3-none-any.whl/roxieapi/plot_api.py
0.88993
0.342049
plot_api.py
pypi
import re from io import StringIO from typing import Dict, List, Tuple, Union import pandas as pd from pymbse.commons import text_file def extract_objective_table( output_lines: List[str], index_start_objective_table: int, n_objectives: int, ) -> pd.DataFrame: """Function extracting an objective tabl...
/roxie_api-0.0.15-py3-none-any.whl/roxieapi/api.py
0.836087
0.450662
api.py
pypi
import os import xml.etree.ElementTree as ET from pathlib import Path from typing import List import numpy as np import pandas as pd from pymbse.commons import text_file # type: ignore Y_COORDINATE = "y, [mm]" X_COORDINATE = "x, [mm]" def correct_xml_file(input_xml_path: str, output_xml_path: str) -> None: ""...
/roxie_api-0.0.15-py3-none-any.whl/roxieapi/xml_api.py
0.647575
0.406685
xml_api.py
pypi
import json from typing import List, Union, TypeVar import pandas as pd from roxieapi.cadata.CableDefinition import CableDefinition from roxieapi.cadata.ConductorDefinition import ConductorDefinition from roxieapi.cadata.Definition import Definition from roxieapi.cadata.FilamentDefinition import FilamentDefinition fr...
/roxie_api-0.0.15-py3-none-any.whl/roxieapi/cadata/CableDatabase.py
0.837354
0.2838
CableDatabase.py
pypi
from typing import Optional from pydantic.dataclasses import dataclass from roxieapi.cadata.Definition import Definition @dataclass class QuenchDefinition(Definition): """Class for quench definition. Attributes: cp_sc (str): The fit function for the specific heat of the superconductor. See ...
/roxie_api-0.0.15-py3-none-any.whl/roxieapi/cadata/QuenchDefinition.py
0.900757
0.459501
QuenchDefinition.py
pypi
import math from pydantic.dataclasses import dataclass from roxieapi.cadata.Definition import Definition @dataclass class StrandDefinition(Definition): """Class for strand definition. Attributes: d_strand (float): The strand diameter (mm). f_cu_nocu (float): The Copper to superconductor rati...
/roxie_api-0.0.15-py3-none-any.whl/roxieapi/cadata/StrandDefinition.py
0.845656
0.72059
StrandDefinition.py
pypi
import os from pathlib import Path import jinja2 import pandas as pd from roxieapi.api import convert_bottom_header_table_to_str, convert_table_to_str class RoxieInputBuilder: """Class RoxieInputBuilder builds a ROXIE input""" comment = "" bhdata_path = "" cadata_path = "" iron_path = "" fl...
/roxie_api-0.0.15-py3-none-any.whl/roxieapi/input_builder/RoxieInputBuilder.py
0.451568
0.182062
RoxieInputBuilder.py
pypi
from __future__ import annotations from typing import Union from pathlib import Path from logging import getLogger from os import environ, getpid from mmap import mmap, ACCESS_READ, ACCESS_WRITE from shutil import rmtree log = getLogger(__name__) class _RingBufferSet(): def __init__(self): """ リング式バッファセ...
/roxyai-api-1.13.6.tar.gz/roxyai-api-1.13.6/roxyai_api/inspect_buffer.py
0.525856
0.154376
inspect_buffer.py
pypi
from __future__ import annotations import struct from .connection import Connection from .com_definition import ( Probability, LabeledProbability, CommandCode, ProbabilityType, ) from .com_base import BaseCommand class GetProbabilitiesCommand(BaseCommand): _CODE = CommandCode.GET_PROBABILITIES ...
/roxyai-api-1.13.6.tar.gz/roxyai-api-1.13.6/roxyai_api/com_get_probabilities.py
0.486088
0.275161
com_get_probabilities.py
pypi
from __future__ import annotations from typing import Callable, Any from logging import getLogger from time import perf_counter_ns from .com_definition import CommandStatus log = getLogger(__name__) class ServerBaseHandler(): code = None name = None # コマンド送受信ログ出力用 last_command = None repeat_cou...
/roxyai-api-1.13.6.tar.gz/roxyai-api-1.13.6/roxyai_api/svr_base_handler.py
0.601242
0.168994
svr_base_handler.py
pypi
from __future__ import annotations from pathlib import Path import json5 as json from logging import getLogger from dataclasses import dataclass log = getLogger(__name__) # 共通のラベル情報定義 OK_LABEL_NAME = 'OK' OK_LABEL_COLOR = 'R=256,G=256,B=256' OTHER_LABEL_NAME = 'Other' OTHER_LABEL_COLOR = 'R=127,G=127,B=127' def _c...
/roxyai-api-1.13.6.tar.gz/roxyai-api-1.13.6/roxyai_api/label_info.py
0.533397
0.194444
label_info.py
pypi
from __future__ import annotations from typing import Union import json from .connection import Connection from .com_definition import CommandCode from .com_base import BaseCommand class InitializeCommand(BaseCommand): _CODE = CommandCode.INITIALIZE send_json = '' def __init__( self, se...
/roxyai-api-1.13.6.tar.gz/roxyai-api-1.13.6/roxyai_api/com_initialize.py
0.669961
0.297795
com_initialize.py
pypi
from __future__ import annotations from typing import List, Union import struct from datetime import datetime from .connection import Connection from .com_definition import ( Probability, LabeledProbability, CommandCode, Judgment, ProbabilityType, ) from .com_base import ( BaseCommand, HEAD...
/roxyai-api-1.13.6.tar.gz/roxyai-api-1.13.6/roxyai_api/com_inspect.py
0.723212
0.268923
com_inspect.py
pypi
from __future__ import annotations import time from struct import pack, unpack from io import BytesIO from .connection import Connection from .com_definition import ( SIGN_CODE, HEADER_SIZE, CommandStatus, CommandCode, ) from logging import getLogger log = getLogger(__name__) class CommandError(Runt...
/roxyai-api-1.13.6.tar.gz/roxyai-api-1.13.6/roxyai_api/com_base.py
0.441553
0.167627
com_base.py
pypi
import click import os class ProjectCreator(): def __init__(self, project_name: str): self.project_name = project_name self.package_name = project_name.replace('-', '_').replace(' ', '_') def create_readme(self) -> None: with open(f'{self.project_name}/README.md', 'w') as f: ...
/royman_tools-0.0.3-py3-none-any.whl/royman_tools/project_creator.py
0.70202
0.436262
project_creator.py
pypi
import bz2 import csv import gzip import io import lzma import sys import time from bz2 import BZ2File from collections import OrderedDict from gzip import GzipFile from math import floor, log10 from pathlib import Path from typing import Optional, Callable, TextIO, Union, BinaryIO, TypeVar, Iterable, Dict, Any, Genera...
/roys_pyxtension-1.0.2-py3-none-any.whl/pyxtension/fileutils.py
0.499023
0.163045
fileutils.py
pypi
from typing import Any, Callable, cast, Optional from json_composite_encoder import JSONCompositeEncoder from pydantic import BaseModel, Extra class ExtModel(BaseModel): """ Extended Model with custom JSON encoder. Extends the standard Pydantic model functionality by allowing arbitrary types and providin...
/roys_pyxtension-1.0.2-py3-none-any.whl/pyxtension/models.py
0.921415
0.226142
models.py
pypi
import copy import json from typing import MutableMapping from pyxtension.streams import * __author__ = 'andrei.suiu@gmail.com' supermethod = lambda self: super(self.__class__, self) class JsonList(slist): @classmethod def __decide(cls, j): if isinstance(j, dict): return Json(j) ...
/roys_pyxtension-1.0.2-py3-none-any.whl/pyxtension/Json.py
0.815306
0.384825
Json.py
pypi
# Royston An end-to-end machine learning library for detect trending stories and content in real time. An open source Python framework that currently works in memory on a single node and can comfortably perform with around 500k-1m articles. Parallelisation is very much on the near term road map (next 6 months). Trend...
/royston-0.0.19.tar.gz/royston-0.0.19/README.md
0.425725
0.98104
README.md
pypi
import os from typing import List, Tuple, Optional import json import pathlib import tarfile from contextlib import closing from requests import Response, get from autocorrect import Speller from sentry_sdk import capture_exception from rozental_as_a_service.common_types import TypoInfo from rozental_as_a_service.con...
/rozental_as_a_service-1.2.2.tar.gz/rozental_as_a_service-1.2.2/rozental_as_a_service/typos_backends.py
0.664431
0.203075
typos_backends.py
pypi
import json import os import sqlite3 from typing import List, Mapping, Any, Tuple, Optional, Dict, Set from rozental_as_a_service.config import OBSCENE_BASE_TABLE_NAME from rozental_as_a_service.list_utils import flat def save_ya_speller_results_to_db( speller_result: List[List[Mapping[str, Any]]], w...
/rozental_as_a_service-1.2.2.tar.gz/rozental_as_a_service-1.2.2/rozental_as_a_service/db_utils.py
0.60743
0.164584
db_utils.py
pypi
import re from typing import List, Tuple from rozental_as_a_service.text_utils import split_camel_case_words, is_camel_case_word def extract_words( raw_constants: List[str], min_word_length: int = 3, only_russian: bool = True, strip_urls: bool = True, ) -> List[str]: common_replacements = [ ...
/rozental_as_a_service-1.2.2.tar.gz/rozental_as_a_service-1.2.2/rozental_as_a_service/extractors_utils.py
0.446253
0.26583
extractors_utils.py
pypi
# Python ZipInfo processing for RISC OS archives This repository contains a pair of modules for handling the Zip archives with RISC OS information present. The `rozipinfo` module provides a subclass of ZipInfo which is able to both parse the extra field used by RISC OS Zip archives, and generate these extra fields. T...
/rozipinfo-1.0.43.tar.gz/rozipinfo-1.0.43/README.md
0.91855
0.788705
README.md
pypi
import keyword from attrs import define from bs4.element import Tag reserved_names = keyword.kwlist @define class BaseClass: """Provides common base for descendants""" def __init__(self, *args, **kwargs): """Mock to allow using __init__ with args and kwargs (see Parser class)""" def get_as_str...
/rozklad_ontu_parser_makisukurisu-0.0.4.1.tar.gz/rozklad_ontu_parser_makisukurisu-0.0.4.1/ontu_parser/classes/base.py
0.696784
0.21564
base.py
pypi
import functools from datetime import datetime from sqlalchemy.orm import declarative_base, relationship from sqlalchemy import Column, Table from sqlalchemy import create_engine from sqlalchemy import ( Boolean, DateTime, Integer, Float, String, Text, ForeignKey ) from rp_tagger.conf impo...
/rp_tagger-1.1.0-py3-none-any.whl/rp_tagger/db.py
0.453504
0.20003
db.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.254/Olde/rp 11.48.10 PM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.254/Olde/rp 11.48.10 PM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.254/Olde/rp 5.45.01 PM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.254/Olde/rp 5.45.01 PM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.254/Olde/rp 7.24.17 AM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.254/Olde/rp 7.24.17 AM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.254/Olde/rp 5.38.10 PM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.254/Olde/rp 5.38.10 PM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.673/Olde/rp 11.48.10 PM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.673/Olde/rp 11.48.10 PM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.673/Olde/rp 5.45.01 PM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.673/Olde/rp 5.45.01 PM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.673/Olde/rp 7.24.17 AM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.673/Olde/rp 7.24.17 AM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.673/Olde/rp 5.38.10 PM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.673/Olde/rp 5.38.10 PM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.676/Olde/rp 11.48.10 PM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.676/Olde/rp 11.48.10 PM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.676/Olde/rp 5.45.01 PM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.676/Olde/rp 5.45.01 PM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.676/Olde/rp 7.24.17 AM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.676/Olde/rp 7.24.17 AM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.676/Olde/rp 5.38.10 PM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.676/Olde/rp 5.38.10 PM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
from __future__ import print_function, unicode_literals import os import re import warnings from .utils import trace DEFAULT_TAG_REGEX = r"^(?:[\w-]+-)?(?P<version>[vV]?\d+(?:\.\d+){0,2}[^\+]*)(?:\+.*)?$" DEFAULT_VERSION_SCHEME = "guess-next-dev" DEFAULT_LOCAL_SCHEME = "node-and-date" def _check_tag_regex(value): ...
/rp-0.1.923.tar.gz/rp-0.1.923/.eggs/setuptools_scm-4.1.2-py3.7.egg/setuptools_scm/config.py
0.441914
0.20093
config.py
pypi
from __future__ import print_function import datetime import warnings import re from .config import Configuration from .utils import trace, string_types, utc from pkg_resources import iter_entry_points from pkg_resources import parse_version as pkg_parse_version SEMVER_MINOR = 2 SEMVER_PATCH = 3 SEMVER_LEN = 3 de...
/rp-0.1.923.tar.gz/rp-0.1.923/.eggs/setuptools_scm-4.1.2-py3.7.egg/setuptools_scm/version.py
0.593845
0.183191
version.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.259/Olde/rp 11.48.10 PM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.259/Olde/rp 11.48.10 PM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.259/Olde/rp 5.45.01 PM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.259/Olde/rp 5.38.10 PM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.259/Olde/rp 5.38.10 PM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.595/Olde/rp 11.48.10 PM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.595/Olde/rp 11.48.10 PM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.595/Olde/rp 5.45.01 PM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.595/Olde/rp 5.45.01 PM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.595/Olde/rp 7.24.17 AM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.595/Olde/rp 7.24.17 AM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.595/Olde/rp 5.38.10 PM/rp_ptpython/history_browser.py
0.754101
0.161982
history_browser.py
pypi
from __future__ import unicode_literals from prompt_toolkit.mouse_events import MouseEventTypes import re __all__ = ( 'has_unclosed_brackets', 'get_jedi_script_from_document', 'document_is_multiline_python', ) def has_unclosed_brackets(text): """ Starting at the end of the string. If we find an ...
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.595/Olde/rp 5.38.10 PM/rp_ptpython/utils.py
0.516839
0.157234
utils.py
pypi
<!--- Copyright 2021 eprbell ---> <!--- Licensed under the Apache License, Version 2.0 (the "License"); ---> <!--- you may not use this file except in compliance with the License. ---> <!--- You may obtain a copy of the License at ---> <!--- http://www.apache.org/licenses/LICENSE-2.0 ---> <!--- Unless required b...
/rp2-1.5.0.tar.gz/rp2-1.5.0/README.dev.md
0.650689
0.741463
README.dev.md
pypi
from dataclasses import replace from typing import Callable, Generator, List, Tuple from .instruction import Instruction, ProgramCounterAdvance from .instruction_decoder import InstructionDecoder from .shift_register import ShiftRegister from .state import State def emulate( opcodes: List[int], *, stop_wh...
/rp2040_pio_emulator-0.81.0-py3-none-any.whl/pioemu/emulation.py
0.867892
0.496643
emulation.py
pypi
from functools import partial from typing import Callable, List, Tuple from .conditions import ( always, gpio_low, gpio_high, input_shift_register_full, negate, output_shift_register_empty, x_register_equals_zero, x_register_not_equal_to_y_register, x_register_not_equal_to_zero, ...
/rp2040_pio_emulator-0.81.0-py3-none-any.whl/pioemu/instruction_decoder.py
0.798658
0.316765
instruction_decoder.py
pypi
from typing import Tuple try: from typing import Self except: # For versions of Python < 3.11 from typing import TypeVar Self = TypeVar("_Self", bound="A") class ShiftRegister: """Immutable shift register for 32-bit values. The value held can be shifted by an arbitrary number of bits in eit...
/rp2040_pio_emulator-0.81.0-py3-none-any.whl/pioemu/shift_register.py
0.961125
0.606236
shift_register.py
pypi
from dataclasses import replace from typing import Callable, Tuple from .shift_register import ShiftRegister from .state import State def read_from_isr(state: State) -> int: """Reads the contents of the input shift register.""" return state.input_shift_register.contents def shift_into_isr( data_supplie...
/rp2040_pio_emulator-0.81.0-py3-none-any.whl/pioemu/primitive_operations.py
0.940875
0.705529
primitive_operations.py
pypi
import time import utime import uasyncio from machine import Pin, PWM, ADC class SimpleOut: def __init__(self, pin, default=0): self.pin = Pin(pin, Pin.OUT) self.pin.value(default) def read(self): return self.pin.value() def write(self, value): return self.pin.value(valu...
/rp2040-tools-0.0.8.tar.gz/rp2040-tools-0.0.8/rp2040/base.py
0.608129
0.256378
base.py
pypi
import utime def _clamp(value, limits): lower, upper = limits if value is None: return None elif (upper is not None) and (value > upper): return upper elif (lower is not None) and (value < lower): return lower return value class PID(object): """A simple PID controller...
/rp2040-tools-0.0.8.tar.gz/rp2040-tools-0.0.8/rp2040/algorithm/PID.py
0.89762
0.480418
PID.py
pypi
from machine import Pin, PWM class SimpleServo360: def __init__(self, pin): """ :param pin: pin """ self.pwm = PWM(Pin(pin)) self.pwm.freq(50) self.stop() def stop(self): """ 停止 """ self.pwm.duty_ns(1_500_000) def clockwise...
/rp2040-tools-0.0.8.tar.gz/rp2040-tools-0.0.8/rp2040/powerhouse/servo.py
0.696268
0.390302
servo.py
pypi
from machine import UART import time def func_timeout_ms(timeout: int = 1000): """ 调用函数,超时返回 :param timeout: 超时时间 :return: 函数返回值 """ def A(func): def B(*args, **kwargs): start_time = time.ticks_ms() while True: if time.ticks_ms() - start_time > ...
/rp2040-tools-0.0.8.tar.gz/rp2040-tools-0.0.8/rp2040/drives/HC/__init__.py
0.460046
0.24983
__init__.py
pypi
def calculate_crc(data): """ 计算数据校验码 :param data: 2进制数据 :return: 16位数据校验码 """ crc = 0xFFFF for i in data: crc ^= i for _ in range(8): crc = (crc >> 1) ^ 0xA001 if crc & 0x01 else crc >> 1 return crc.to_bytes(2, 'big') class UartProtocol1: """ 串口协议1 ...
/rp2040-tools-0.0.8.tar.gz/rp2040-tools-0.0.8/rp2040/message/protocol.py
0.448426
0.682428
protocol.py
pypi
import os import yaml from rdkit.Chem import MolFromSmiles, MolFromInchi, AddHs def default_config(): """ Return the default configuration as a dictionnary. """ path = os.path.join(os.path.dirname(__file__), "conf", "default.yaml") with open(path, 'r') as fh: cfg = yaml.load(fh, Loader=yam...
/rp3_cache-1.2-py3-none-any.whl/rp3_cache/Utils.py
0.533641
0.302971
Utils.py
pypi
import logging import re import smbus __author__ = "Fernando Chorney <fchorney@djsbx.com>" __version__ = "1.0.1" log = logging.getLogger(__name__) class I2C(object): def __init__(self, address, bus=None): log.debug("Initializing I2C bus for address: 0x%02X" % address) self.address = address ...
/rpI2C-1.0.1.tar.gz/rpI2C-1.0.1/rpI2C.py
0.465387
0.243777
rpI2C.py
pypi
from typing import Literal import requests class Vault: """ The library wraps Automation Anywhere 360 API, giving robots the ability to manage the values stored in the Credential Vault. Args: control_room_uri (str): URL of Automation Anywhere A360 Control Room username (str): use...
/rpa-automationanywhere-1.0.0.tar.gz/rpa-automationanywhere-1.0.0/rpa_automationanywhere/Vault/Vault.py
0.845656
0.167083
Vault.py
pypi
from typing import Literal import datetime import calendar from dateutil.relativedelta import relativedelta import requests class Dates: """ Delivers methods to operate with dates and times objects. """ def __init__(self) -> None: self._date: datetime.datetime = datetime.date.today() self.week...
/rpa_dates-1.0.2-py3-none-any.whl/rpa_dates/Dates.py
0.906287
0.334019
Dates.py
pypi
from sys import stdout from textwrap import indent from threading import Event, Thread from typing import Callable, Hashable, Tuple, TextIO from .task import * from .utils.terminal import ( bold, clear_current_row, color, print_spinner_and_text, remove_ansi_escapes) def get_indicator(status: str,...
/rpa_logger-0.4.1.tar.gz/rpa_logger-0.4.1/rpa_logger/logger.py
0.761361
0.233542
logger.py
pypi
from collections import Counter from dataclasses import dataclass from typing import Any, Dict, Hashable, List, Union from uuid import uuid4 from .utils import timestamp from .utils.output import OutputText STARTED = 'STARTED' SUCCESS = 'SUCCESS' IGNORED = 'IGNORED' FAILURE = 'FAILURE' ERROR = 'ERROR' SKIPPED = 'SKIP...
/rpa_logger-0.4.1.tar.gz/rpa_logger-0.4.1/rpa_logger/task.py
0.919448
0.247612
task.py
pypi
import re from shutil import get_terminal_size from sys import stdout from threading import Event from typing import TextIO # From cli-spinners (https://www.npmjs.com/package/cli-spinners) INTERVAL = 0.080 # seconds ASCII_FRAMES = ['|', '/', '-', '\\'] FRAMES = ['⠋', '⠙', '⠹', '⠸', '⠼', '⠴', '⠦', '⠧', '⠇', '⠏'] CO...
/rpa_logger-0.4.1.tar.gz/rpa_logger-0.4.1/rpa_logger/utils/terminal.py
0.663342
0.304029
terminal.py
pypi