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 rdkit import Geometry
from rdkit.Chem.FeatMaps import FeatMaps, FeatMapPoint
import re
"""
ScoreMode=All
DirScoreMode=Ignore
BeginParams
family=Aromatic radius=2.5 width=1.0 profile=Gaussian
family=Acceptor radius=1.5
EndParams
# optional
BeginPoints
family=Acceptor pos=(1.0, 0.0, 5.0) weight=1.25 dir=(1,... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/FeatMaps/FeatMapParser.py | 0.489015 | 0.265901 | FeatMapParser.py | pypi |
import copy
from rdkit.Chem.FeatMaps import FeatMaps
class MergeMethod(object):
# Put the new point at the weighted average position of the two fused points
WeightedAverage = 0
# Put the new point at the un-weighted average position of the two fused points
Average = 1
# Put the new point at the position of ... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/FeatMaps/FeatMapUtils.py | 0.607197 | 0.505432 | FeatMapUtils.py | pypi |
import logging
from rdkit import Chem
from rdkit.Chem import AllChem
from .utils import memoized_property
log = logging.getLogger(__name__)
class Normalization(object):
"""A normalization transform defined by reaction SMARTS."""
def __init__(self, name, transform):
"""
:param string name:... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/MolStandardize/normalize.py | 0.54577 | 0.436922 | normalize.py | pypi |
import logging
from rdkit import Chem
log = logging.getLogger(__name__)
MAX_STRUCTURES = 1000
class ResonanceEnumerator(object):
"""Simple wrapper around RDKit ResonanceMolSupplier.
"""
def __init__(self, kekule_all=False, allow_incomplete_octets=False, unconstrained_cations=False,
... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/MolStandardize/resonance.py | 0.864782 | 0.472501 | resonance.py | pypi |
import logging
import sys
from rdkit import Chem
from .errors import StopValidateError
from .validations import VALIDATIONS
#: The default format for log messages.
SIMPLE_FORMAT = '%(levelname)s: [%(validation)s] %(message)s'
#: A more detailed format for log messages. Specify when initializing a Validator.
LONG_F... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/MolStandardize/validate.py | 0.734405 | 0.288403 | validate.py | pypi |
import logging
from rdkit import Chem
from rdkit.Chem import rdMolDescriptors
from .utils import memoized_property
log = logging.getLogger(__name__)
class FragmentPattern(object):
"""A fragment defined by a SMARTS pattern."""
def __init__(self, name, smarts):
"""Initialize a FragmentPattern with ... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/MolStandardize/fragment.py | 0.508544 | 0.252154 | fragment.py | pypi |
import copy
import logging
from rdkit import Chem
from rdkit.Chem.rdchem import BondDir, BondStereo, BondType
from .utils import memoized_property, pairwise
log = logging.getLogger(__name__)
class TautomerTransform(object):
"""Rules to transform one tautomer to another.
Each TautomerTransform is defined b... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/MolStandardize/tautomer.py | 0.562537 | 0.558568 | tautomer.py | pypi |
import copy
import logging
from rdkit import Chem
from .metal import MetalDisconnector
from .fragment import PREFER_ORGANIC, LargestFragmentChooser, FragmentRemover
from .normalize import NORMALIZATIONS, MAX_RESTARTS, Normalizer
from .tautomer import TAUTOMER_TRANSFORMS, TAUTOMER_SCORES, MAX_TAUTOMERS, TautomerCanoni... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/MolStandardize/standardize.py | 0.696681 | 0.391784 | standardize.py | pypi |
import logging
from rdkit import Chem
from .errors import StopValidateError
from .fragment import REMOVE_FRAGMENTS
class Validation(object):
"""The base class that all :class:`~molvs.validations.Validation` subclasses must inherit from."""
def __init__(self, log):
self.log = logging.LoggerAdapter(l... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/MolStandardize/validations.py | 0.772101 | 0.306981 | validations.py | pypi |
import logging
from rdkit import Chem
log = logging.getLogger(__name__)
# TODO: This won't disconnect e.g. covalent [Na]Cl...
class MetalDisconnector(object):
"""Class for breaking covalent bonds between metals and organic atoms under certain conditions."""
def __init__(self):
log.debug('Initial... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/MolStandardize/metal.py | 0.433981 | 0.340184 | metal.py | pypi |
import copy
import logging
from rdkit import Chem
from .utils import memoized_property
log = logging.getLogger(__name__)
class AcidBasePair(object):
"""An acid and its conjugate base, defined by SMARTS.
A strength-ordered list of AcidBasePairs can be used to ensure the strongest acids in a molecule ionize... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/MolStandardize/charge.py | 0.68595 | 0.214167 | charge.py | pypi |
import pickle
from rdkit import Chem, DataStructs
similarityMethods = {
'RDK': DataStructs.ExplicitBitVect,
'AtomPairs': DataStructs.IntSparseIntVect,
'TopologicalTorsions': DataStructs.LongSparseIntVect,
'Pharm2D': DataStructs.SparseBitVect,
'Gobbi2D': DataStructs.SparseBitVect,
'Morgan': DataStructs.UI... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/MolDb/FingerprintUtils.py | 0.438545 | 0.472014 | FingerprintUtils.py | pypi |
import sys
import argparse
from rdkit import Chem
from rdkit import Geometry
from rdkit.Chem import rdDepictor
def AlignDepict(mol, core, corePattern=None, acceptFailure=False):
"""
Arguments:
- mol: the molecule to be aligned, this will come back
with a single conformer.
- c... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/ChemUtils/AlignDepict.py | 0.408985 | 0.381104 | AlignDepict.py | pypi |
from rdkit import DataStructs
from rdkit.DataStructs import TopNContainer
class SimilarityScreener(object):
""" base class
important attributes:
probe: the probe fingerprint against which we screen.
metric: a function that takes two arguments and returns a similarity
measur... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/Fingerprints/SimilarityScreener.py | 0.670069 | 0.47524 | SimilarityScreener.py | pypi |
import pickle
import numpy
from rdkit import DataStructs
from rdkit.Chem.Fingerprints import FingerprintMols, MolSimilarity
from rdkit.ML.Cluster import Murtagh
message = FingerprintMols.message
error = FingerprintMols.error
def GetDistanceMatrix(data, metric, isSimilarity=1):
""" data should be a list of tuples ... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/Fingerprints/ClusterMols.py | 0.753648 | 0.416737 | ClusterMols.py | pypi |
import numpy
from rdkit import Geometry
from rdkit.Chem import ChemicalFeatures
from rdkit.RDLogger import logger
logger = logger()
class Pharmacophore:
def __init__(self, feats, initMats=True):
self._initializeFeats(feats)
nf = len(feats)
self._boundsMat = numpy.zeros((nf, nf), dtype=numpy.float64)
... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/Pharm3D/Pharmacophore.py | 0.516352 | 0.278398 | Pharmacophore.py | pypi |
from matplotlib.lines import Line2D
from matplotlib.patches import Polygon
from matplotlib.pyplot import figure
from rdkit.Chem.Draw.canvasbase import CanvasBase
class Canvas(CanvasBase):
def __init__(self, size, name='', imageType='png'):
self._name = name
self.size = size
dpi = max(size[0], size[1])... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/Draw/mplCanvas.py | 0.628293 | 0.583619 | mplCanvas.py | pypi |
import re
from rdkit.Chem.Draw.canvasbase import CanvasBase
from rdkit.sping import pid
faceMap = {'sans': 'helvetica', 'serif': 'times'}
def convertColor(color):
return pid.Color(color[0], color[1], color[2])
class Canvas(CanvasBase):
def __init__(self, size, name, imageType='png'):
if imageType == "pdf... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/Draw/spingCanvas.py | 0.478773 | 0.413951 | spingCanvas.py | pypi |
""" Interactive molecule rendering through rdkit-structure-renderer.js """
from xml.dom import minidom
import uuid
import base64
import json
import re
import logging
from . import rdMolDraw2D
from IPython.display import HTML, display
from rdkit import Chem
from rdkit.Chem import Draw
log = logging.getLogger(__name__)
... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/Draw/InteractiveRenderer.py | 0.585101 | 0.247348 | InteractiveRenderer.py | pypi |
import math
class CanvasBase:
"""Base class for specialized canvas backends"""
def addCanvasLine(self, p1, p2, color=(0, 0, 0), color2=None, **kwargs):
"""Draw a single line on the canvas
This function will draw a line between `p1` and `p2` with the
given `color`.
If `co... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/Draw/canvasbase.py | 0.600305 | 0.776538 | canvasbase.py | pypi |
import os
import warnings
from collections import namedtuple
from importlib.util import find_spec
from io import BytesIO
import numpy
from rdkit import Chem
from rdkit import RDConfig
from rdkit import rdBase
from rdkit.Chem import rdDepictor
from rdkit.Chem.Draw import rdMolDraw2D
from rdkit.Chem.Draw.MolDrawing impo... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/Draw/__init__.py | 0.566258 | 0.341363 | __init__.py | pypi |
from rdkit.Chem.Draw.canvasbase import CanvasBase
from rdkit.Chem.Draw.rdMolDraw2DQt import rdkitQtVersion
if rdkitQtVersion.startswith('6'):
try:
from PyQt6 import QtCore
from PyQt6 import QtGui
except ImportError:
# PySide version numbers leapt at Qt6
from PySide6 import QtCore
from PySide6 ... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/Draw/qtCanvas.py | 0.444324 | 0.173166 | qtCanvas.py | pypi |
import copy
import time
from rdkit import Chem, Geometry
from rdkit.Chem import AllChem
from rdkit.Chem.Subshape import BuilderUtils
from rdkit.Chem.Subshape import SubshapeObjects
import pickle
class SubshapeCombineOperations(object):
UNION = 0
SUM = 1
INTERSECT = 2
class SubshapeBuilder(object):
gridDi... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/Subshape/SubshapeBuilder.py | 0.420481 | 0.306644 | SubshapeBuilder.py | pypi |
class SkeletonPoint(object):
location = None
shapeMoments = None
shapeDirs = None
molFeatures = None
featmapFeatures = None
fracVol = 0.0
def __init__(self, *args, **kwargs):
self._initMemberData()
self.location = kwargs.get('location', None)
def _initMemberData(self):
self.shapeMoments ... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/Chem/Subshape/SubshapeObjects.py | 0.498779 | 0.191914 | SubshapeObjects.py | pypi |
class Color:
"""This class is used to represent color. Components red, green, blue
are in the range 0 (dark) to 1 (full intensity)."""
def __init__(self, red=0, green=0, blue=0):
"Initialize with red, green, blue in range [0-1]."
_float = float
d = self.__dict__
d[... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/sping/colors.py | 0.729616 | 0.331904 | colors.py | pypi |
from math import sin, cos, pi, ceil
def bezierArc(x1, y1, x2, y2, startAng=0, extent=90):
"""bezierArc(x1,y1, x2,y2, startAng=0, extent=90) --> List of Bezier
curve control points.
(x1, y1) and (x2, y2) are the corners of the enclosing rectangle. The
coordinate system has coordinates that increase to the right an... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/sping/PDF/pdfgeom.py | 0.831725 | 0.725065 | pdfgeom.py | pypi |
from wxPython.wx import *
from rdkit.sping import pid as sping_pid
class WxCanvasError(RuntimeError):
pass
class PiddleWxDc(sping_pid.Canvas):
def __init__(self, aWxDc, size=(300, 300), name="piddleWX"):
sping_pid.Canvas.__init__(self, size, name)
self.dc = aWxDc
self.dc.BeginDrawing()
def __del... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/sping/WX/pidWxDc.py | 0.799129 | 0.205456 | pidWxDc.py | pypi |
"""
Functionality implemented:
x drawLine
x drawPolygon
x drawString
x drawImage
Known problems:
"""
from rdkit.sping import pid
from qt import *
from qtcanvas import *
from math import *
import copy
def _ColorToQt(color):
""" convenience function for converting a sping.pid color to a Qt color
"""... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/sping/Qt/pidQt.py | 0.674908 | 0.387516 | pidQt.py | pypi |
import os
import re
from rdkit import RDConfig
if not RDConfig.usePgSQL:
_atomDbName = os.path.join(RDConfig.RDDataDir, 'atomdb.gdb')
else:
_atomDbName = "::RDData"
def GetAtomicData(atomDict, descriptorsDesired, dBase=_atomDbName, table='atomic_data', where='',
user='sysdba', password='ma... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/utils/chemutils.py | 0.470493 | 0.269857 | chemutils.py | pypi |
from sping import pid as piddle
class VisOpts(object):
circRad = 10
minCircRad = 4
maxCircRad = 16
circColor = piddle.Color(0.6, 0.6, 0.9)
terminalEmptyColor = piddle.Color(.8, .8, .2)
terminalOnColor = piddle.Color(0.8, 0.8, 0.8)
terminalOffColor = piddle.Color(0.2, 0.2, 0.2)
outlineColor = piddle.tr... | /rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/DataStructs/HierarchyVis.py | 0.486575 | 0.363421 | HierarchyVis.py | pypi |
import rdkit_step
class RdkitStep(object):
"""Helper class needed for the stevedore integration.
This must provide a description() method that returns a dict containing a
description of this node, and create_node() and create_tk_node() methods
for creating the graphical and non-graphical nodes.
... | /rdkit_step-2023.2.22.tar.gz/rdkit_step-2023.2.22/rdkit_step/rdkit_step.py | 0.829803 | 0.526404 | rdkit_step.py | pypi |
properties = {
"3D-Descriptors": {
"Asphericity": {
"name": "asphericity",
"dimensionality": "scalar",
"type": "float",
"units": "",
"description": "Molecular asphericity",
"citations": ["doi:10.1063/1.464689"],
},
"Ecce... | /rdkit_step-2023.2.22.tar.gz/rdkit_step-2023.2.22/rdkit_step/metadata.py | 0.686685 | 0.639328 | metadata.py | pypi |
import pprint # noqa: F401
import rdkit_step # noqa: F401
import seamm
from seamm_util import ureg, Q_, units_class # noqa: F401
import seamm_widgets as sw
class TkRdkit(seamm.TkNode):
"""
The graphical part of a RDKit step in a flowchart.
Paramaters
----------
tk_flowchart : TkFlowchart = No... | /rdkit_step-2023.2.22.tar.gz/rdkit_step-2023.2.22/rdkit_step/tk_rdkit.py | 0.741019 | 0.543651 | tk_rdkit.py | pypi |
import logging
import seamm
import pprint # noqa: F401
logger = logging.getLogger(__name__)
class RdkitParameters(seamm.Parameters):
"""
The control parameters for RDKit.
The developer will add a dictionary of Parameters to this class.
The keys are parameters for the current plugin, which themselve... | /rdkit_step-2023.2.22.tar.gz/rdkit_step-2023.2.22/rdkit_step/rdkit_parameters.py | 0.839109 | 0.481759 | rdkit_parameters.py | pypi |
import itertools
from typing import Optional, Dict, List, Union, Set, Tuple
from typing_extensions import Literal
import numpy as np
from rdkit import Chem as rdChem
from rdkit.Chem import AllChem as rdAllChem
from rdkit_utilities import rdForceFieldHelpers
def GetExclusions(mol: rdChem.Mol) -> Set[Tuple[int, int]... | /rdkit_utilities-0.2.1.tar.gz/rdkit_utilities-0.2.1/rdkit_utilities/rdDistGeom.py | 0.906161 | 0.537952 | rdDistGeom.py | pypi |
from typing import List, Tuple, Union, Dict, Any
from rdkit import Chem as rdChem
import numpy as np
from .utilities import isiterable
def AddConformerWithCoordinates(
mol: rdChem.Mol,
coordinates: np.ndarray,
) -> int:
"""Add conformer to molecule with coordinates in angstrom"""
from rdkit import G... | /rdkit_utilities-0.2.1.tar.gz/rdkit_utilities-0.2.1/rdkit_utilities/rdchem.py | 0.845081 | 0.760517 | rdchem.py | pypi |
from typing import Union, List, Tuple
from typing_extensions import Literal
from rdkit import Chem as rdChem
from rdkit.Chem import rdForceFieldHelpers as rdFF
from rdkit.ForceField.rdForceField import ForceField as RDForceField
RDKIT_FF_NAMES = ["UFF", "MMFF", "MMFF94", "MMFF94S"]
RDKIT_FF_NAME_TYPE = Literal[(*RDKI... | /rdkit_utilities-0.2.1.tar.gz/rdkit_utilities-0.2.1/rdkit_utilities/rdForceFieldHelpers.py | 0.948334 | 0.396302 | rdForceFieldHelpers.py | pypi |
from typing import List, Set, Union
import numpy as np
from rdkit import Chem as rdChem
_RDPROP_ATOM_SMARTS = "_smarts_query"
def GetAtomNeighborIndices(
mol: rdChem.Mol,
centralAtomIndices: Union[Set[int], List[int]] = [],
includeCentralAtoms: bool = True,
numAtomNeighbors: int = 0,
) -> Set[int]:
... | /rdkit_utilities-0.2.1.tar.gz/rdkit_utilities-0.2.1/rdkit_utilities/rdmolops.py | 0.889244 | 0.767951 | rdmolops.py | pypi |
from typing import Tuple, List
import itertools
from rdkit import Chem as rdChem
from rdkit.Chem import rdChemReactions
def ClickReaction(
reaction: rdChemReactions.ChemicalReaction,
reactants: Tuple[rdChem.Mol, ...],
) -> List[rdChem.Mol]:
"""Run a "click" reaction by manually building a molecule
O... | /rdkit_utilities-0.2.1.tar.gz/rdkit_utilities-0.2.1/rdkit_utilities/rdChemReactions.py | 0.782372 | 0.640327 | rdChemReactions.py | pypi |
from typing import Optional, List, Any
import numpy as np
def compute_atom_distance_matrix(coordinates: np.ndarray) -> np.ndarray:
"""Compute atom-to-atom distance for each conformer
Parameters
----------
coordinates: numpy.ndarray
3D matrix of coordinates, with shape (n_conformers, n_atoms,... | /rdkit_utilities-0.2.1.tar.gz/rdkit_utilities-0.2.1/rdkit_utilities/utilities.py | 0.956594 | 0.783119 | utilities.py | pypi |
import functools
from typing import Optional, Dict
from rdkit import Chem as rdChem
__all__ = [
"reorder_constructed_molecule",
"MolFromSmiles",
"MolFromSmarts",
]
def reorder_constructed_molecule(func):
@functools.wraps(func)
def wrapper(
*args,
orderByMapNumber: bool = False,
... | /rdkit_utilities-0.2.1.tar.gz/rdkit_utilities-0.2.1/rdkit_utilities/_io/_rdmolfiles.py | 0.900595 | 0.49048 | _rdmolfiles.py | pypi |
See:
https://rdkit.readthedocs.org/en/latest/Cartridge.html#reference-guide
https://github.com/rdkit/rdkit/issues/1762
Types:
mol : rdkit molecule
qmol : rdkit query molecule
sfp : sparse fp
bfp : bitvector fp
Parameters:
rdkit.tanimoto_threshold : threshold value for the Tanimoto similarity
rdkit.dice_thres... | /rdktools-0.9.5.tar.gz/rdktools-0.9.5/pgsql/NOTES.md | 0.86681 | 0.76432 | NOTES.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 ... | /rdm_distributions-0.5.tar.gz/rdm_distributions-0.5/rdm_distributions/Gaussiandistribution.py | 0.688364 | 0.853058 | Gaussiandistribution.py | pypi |
|Build_Status| |Coverage_Status| |PyPi_version|
|RDMCL|
--------------
Recursive Dynamic Markov Clustering
===================================
A method for identifying hierarchical orthogroups among homologous sequences
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
'Orthology' is a t... | /rdmcl-1.1.0.tar.gz/rdmcl-1.1.0/README.rst | 0.90825 | 0.703422 | README.rst | pypi |
from behave import *
import re
import os
from rdopkg.utils import distgitmagic
from rdopkg.utils import specfile
from rdopkg.utils.distgitmagic import git
from rdopkg.utils.testing import exdiff
def _create_distgit(context, version, release, magic_comments=None):
name = 'foo-bar'
context.execute_steps(u'Give... | /rdopkg-1.6.0.tar.gz/rdopkg-1.6.0/features/steps/distgit.py | 0.490724 | 0.219798 | distgit.py | pypi |
import socket
import json
__RDOS_Host__ = '127.0.0.1'
__RDOS_Port__ = '9393'
# List to save REQUEST Parameters send FROM SERVER for query Match
__RDOS_Req__ = {"parameters": "request"}
__RDOS_Gen__ = {}
class RdosClient():
# Function client_init connects to server and sends JSON Parameters needed
# Function... | /rdospy-0.1.3-py3-none-any.whl/rdospy-0.1.3.data/scripts/client.py | 0.488039 | 0.162779 | client.py | pypi |
from __future__ import annotations
from typing import TypeVar
import numpy as np
import numpy.typing as npt
Array = TypeVar("Array", npt.NDArray, list)
def _compute_distances(
points: npt.NDArray[float], start: npt.NDArray[float], end: npt.NDArray[float]
) -> npt.NDArray[float]:
"""Compute the distances be... | /rdp-algo-0.1.1.tar.gz/rdp-algo-0.1.1/rdp_algo/__init__.py | 0.935546 | 0.472257 | __init__.py | pypi |
import re
from pathlib import Path
from playwright.sync_api import sync_playwright, Playwright, Browser, Page
from typing import Optional, Literal
from rdp_manipulations.logger import logger
from image_processing.main import is_image_contain, is_image_identic, image_locate_center
BASE_DIR = Path(__file__).parent.reso... | /rdp_manipulations-0.3.4-py3-none-any.whl/rdp_manipulations/main.py | 0.416915 | 0.418816 | main.py | pypi |
import numpy as np
import cv2 # type: ignore
from rdp_manipulations.logger import logger
from typing import Optional
ImageLocatorType = Optional[dict[str, float]]
ImageLocatorCenterType = Optional[tuple[float, float]]
def image_diff(image_path1: str, image_path2: str) -> float:
image1 = cv2.imread(image_path1)... | /rdp_manipulations-0.3.4-py3-none-any.whl/image_processing/main.py | 0.759939 | 0.45048 | main.py | pypi |
import numpy as np
import numpy.typing as npt
from numba import njit, prange, float64
from numba.np.extensions import cross2d
_rdp_quick_use_cache_ = True
@njit(float64[:](float64[:], float64[:, :]), parallel=True, cache=_rdp_quick_use_cache_)
def _compute_distance_single_point(p1: npt.NDArray[float], p_array: npt.N... | /rdp_quick-1.0.3-py3-none-any.whl/rdp_quick/compute_distance.py | 0.835215 | 0.781831 | compute_distance.py | pypi |
import numpy as np
import numpy.typing as npt
import typing
from scipy.signal import find_peaks
def compute_curvature_2d(x: npt.NDArray[float], y: npt.NDArray[float], gradient_nargs: typing.Union[dict, None] = None) -> npt.NDArray[float]:
"""
Computes the curvature of the line made of the points x and y
:... | /rdp_quick-1.0.3-py3-none-any.whl/rdp_quick/curvature.py | 0.903592 | 0.706558 | curvature.py | pypi |
import numpy as np
import numpy.typing as npt
from rdp_quick.check_window import check_windows
from rdp_quick.curvature import compute_curvature_and_build_windows
import typing
def rdp_initial_windows(p_array: npt.NDArray[float], epsilon: float,
initial_windows: typing.List[typing.Tuple[int, i... | /rdp_quick-1.0.3-py3-none-any.whl/rdp_quick/__init__.py | 0.916724 | 0.698542 | __init__.py | pypi |
# rdpy3- for Python3
**this is a fork for porting rdpy3to Python3**
Remote Desktop Protocol in twisted python.
rdpy3is a pure Python implementation of the Microsoft RDP (Remote Desktop Protocol) protocol (client and server side). rdpy3is built over the event driven network engine Twisted. rdpy3support standard RDP ... | /rdpy3-3.0.4.tar.gz/rdpy3-3.0.4/README.md | 0.633297 | 0.924722 | README.md | pypi |
from __future__ import print_function
import sys, os, getopt
from PyQt5 import QtCore, QtGui
from rdpy3.protocol.rfb import rfb
import rdpy3.core.log as log
from rdpy3.ui.qt5 import qtImageFormatFromRFBPixelFormat
from twisted.internet import task
#set log level
log._LOG_LEVEL = log.Level.INFO
class RFBScreenShotFac... | /rdpy3-3.0.4.tar.gz/rdpy3-3.0.4/bin/rdpy3-vncscreenshot.py | 0.408277 | 0.150403 | rdpy3-vncscreenshot.py | pypi |
# RDROBUST
The `rdrobust` package implements the statistical inference and graphical procedures for Regression Discontinuity designs employing local polynomial and partitioning methods. It provides point estimators, confidence intervals estimators, bandwidth selectors, automatic RD plots, and many other features.
Thi... | /rdrobust-1.0.8.tar.gz/rdrobust-1.0.8/README.md | 0.421909 | 0.949153 | README.md | pypi |
from typing import Any, List, Dict
import logging
import json
from os import getenv
import importlib
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
def str2bool(v):
TRUE_STRS = ("true", "verdade", "yes", "sim", "t", "v", "y", "s", "1")
FALSE_STRS = ("false", "falso", "no", "nao", "não", ... | /rds-core-0.2.3.tar.gz/rds-core-0.2.3/rds/core/helpers/__init__.py | 0.555556 | 0.199016 | __init__.py | pypi |
import datetime
from typing import Dict, Union, Any, List
from dynaconf.utils.boxing import DynaBox
from rds.core.config import settings
from rds.core.helpers import instantiate_class
__search_engine_cache: Dict[str, Any] = {}
def get_search_engine_config(alias: str = "default") -> DynaBox:
return settings.SEAR... | /rds-core-0.2.3.tar.gz/rds-core-0.2.3/rds/core/searchengine/__init__.py | 0.781289 | 0.244126 | __init__.py | pypi |
from typing import Any, List, Dict, Union
from rds.core.cache.base import BaseCache
from rds.core.searchengine import search_engine as search_engine_func
class SearchEngineCache(BaseCache):
def __init__(self, **params: Dict[str, Any]) -> None:
super(SearchEngineCache, self).__init__(**params)
sel... | /rds-core-0.2.3.tar.gz/rds-core-0.2.3/rds/core/cache/search_engine.py | 0.835249 | 0.196152 | search_engine.py | pypi |
from typing import Any, Union, List, Dict
from rds.core.cache import MISSING_KEY, DEFAULT_TTL
class BaseCache:
def __init__(self, **params: Dict[str, Any]) -> None:
self.default_ttl = int(str(params.get("ttl", DEFAULT_TTL)))
def get_ttl(self, ttl: Union[int, None] = None) -> int:
return ttl i... | /rds-core-0.2.3.tar.gz/rds-core-0.2.3/rds/core/cache/base.py | 0.931455 | 0.297451 | base.py | pypi |
import logging
from typing import Union, Dict, Any, List
from datetime import datetime
from rds.core.helpers import get_dict_by_pathname
strptime = datetime.strptime
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
class Field:
def __init__(self, source_field: Union[str, object, None], none_a... | /rds-core-0.2.3.tar.gz/rds-core-0.2.3/rds/core/transformers/fields/__init__.py | 0.872639 | 0.152979 | __init__.py | pypi |
import boto.ec2
import boto.rds2
from docopt import docopt
from boto.ec2.cloudwatch import MetricAlarm
from .constants import VERSION
DEBUG = False
def get_rds_instances(region):
"""
Retrieves the list of all RDS instances
Args:
region (str)
Returns:
(list) List of valid state RDS ... | /rds-create-cpu-alarms-1.6.tar.gz/rds-create-cpu-alarms-1.6/rds_create_cpu_alarms/main.py | 0.708616 | 0.377713 | main.py | pypi |
from typing import Any, List, Dict
import opensearchpy
import elasticsearch
from rds_framework.cache.base import BaseCache
from rds_framework.searchengine import search_engine as search_engine_func
class SearchEngineCache(BaseCache):
def __init__(self, **params: Dict[str, Any]) -> None:
super(SearchEngi... | /rds-framework-0.0.9.tar.gz/rds-framework-0.0.9/rds_framework/cache/search_engine.py | 0.810891 | 0.163212 | search_engine.py | pypi |
from typing import Any, Union, List, Dict
DEFAULT_TTL = 300
MISSING_KEY = object()
class BaseCache:
def __init__(self, **params: Dict[str, Any]) -> None:
self.default_ttl = int(str(params.get("ttl", DEFAULT_TTL)))
def get_ttl(self, ttl: Union[int, None] = None) -> int:
return ttl if (isins... | /rds-framework-0.0.9.tar.gz/rds-framework-0.0.9/rds_framework/cache/base.py | 0.92138 | 0.317387 | base.py | pypi |
```{todo} THIS IS SUPPOSED TO BE AN EXAMPLE. MODIFY IT ACCORDING TO YOUR NEEDS!
The document assumes you are using a source repository service that promotes a
contribution model similar to [GitHub's fork and pull request workflow].
While this is true for the majority of services (like GitHub, GitLab,
BitBu... | /rds2py-0.2.0.tar.gz/rds2py-0.2.0/CONTRIBUTING.md | 0.606382 | 0.921781 | CONTRIBUTING.md | pypi |
from typing import Union, Dict, Optional
from bertopic import _ctfidf
import numpy as np
from sklearn.feature_extraction.text import CountVectorizer
from scipy.sparse.csr import csr_matrix
from rdsmproj.preprocess import tokenize_text
def _top_n_idx_sparse(matrix: csr_matrix, n: int) -> np.ndarray:
""" Return indi... | /tm_lda/_ctfidf.py | 0.950273 | 0.733953 | _ctfidf.py | pypi |
from pathlib import Path
from typing import Union, Optional
import time
import logging
from gensim.models.ldamodel import LdaModel
from gensim.test.utils import datapath
from gensim.corpora.dictionary import Dictionary
import psutil
from hyperopt import STATUS_OK
from rdsmproj import utils
from rdsmproj.tm_lda import ... | /tm_lda/lda_model.py | 0.822296 | 0.249722 | lda_model.py | pypi |
from typing import Dict, Union, Optional
from pathlib import Path
from wordcloud import WordCloud
import matplotlib.pyplot as plt
import seaborn as sns
import numpy as np
import gensim
from gensim.models.coherencemodel import CoherenceModel
from gensim.corpora.dictionary import Dictionary
from rdsmproj import utils
f... | /tm_lda/topic_tools.py | 0.935876 | 0.592136 | topic_tools.py | pypi |
from pathlib import Path
from typing import Optional, Union
import optuna
from hyperopt import hp, tpe, Trials, fmin, atpe, rand
from gensim.models.phrases import ENGLISH_CONNECTOR_WORDS
from rdsmproj.tm_lda import lda_model as lm
from rdsmproj import preprocess as pp
from rdsmproj import utils
from rdsmproj.tm_t2v.top... | /tm_lda/main_legacy.py | 0.770033 | 0.211865 | main_legacy.py | pypi |
import os
import sys
def which(cmd, mode=os.F_OK | os.X_OK, path=None):
"""Given a command, mode, and a PATH string, return the path which
conforms to the given mode on the PATH, or None if there is no such
file.
`mode` defaults to os.F_OK | os.X_OK. `path` defaults to the result
of os.environ.ge... | /rdspgbadger-1.2.2.tar.gz/rdspgbadger-1.2.2/package/which.py | 0.432183 | 0.293341 | which.py | pypi |
from typing import List, Iterator, Union
from rdsr_navigator.concept_name import ConceptName
from rdsr_navigator.repr_display import reper_html
from rdsr_navigator.sr_exceptions import SrMissingContentException
import rdsr_navigator.value_extractors as ves
_VALUE_EXTRACTORS: List[ves.ValueExtractorBase] = [ves.CodeMea... | /rdsr_navigator-0.3.1.tar.gz/rdsr_navigator-0.3.1/rdsr_navigator/sr_element.py | 0.883783 | 0.252315 | sr_element.py | pypi |
# rdstation-python
 
*rdstation-python* is an API wrapper for RD Station, written in Python.
1. [RD Station Marketing](#1-rd-station-marketing) (This p... | /rdstation_python-0.2.2.tar.gz/rdstation_python-0.2.2/README.md | 0.413122 | 0.839701 | README.md | pypi |
<div align="center">
<br/>
<p align="center">
<i>This repository is part of <a href="https://sdv.dev">The Synthetic Data Vault Project</a>, a project from <a href="https://datacebo.com">DataCebo</a>.</i>
</p>
[... | /rdt_identity-1.7.0.tar.gz/rdt_identity-1.7.0/README.md | 0.834306 | 0.989129 | README.md | pypi |
# Release workflow
The process of releasing a new version involves several steps:
1. [Install RDT from source](#install-rdt-from-source)
2. [Linting and tests](#linting-and-tests)
3. [Documentation](#documentation)
4. [Milestone](#milestone)
5. [HISTORY.md](#history.md)
6. [Distribution](#distribution)
7. [Inte... | /rdt_identity-1.7.0.tar.gz/rdt_identity-1.7.0/RELEASE.md | 0.415254 | 0.907845 | RELEASE.md | pypi |
# History
## 1.7.0 - 2023-08-22
This release adds 3 new transformers:
1. `UniformEncoder` - A categorical and boolean transformer that converts the column into a uniform distribution.
2. `OrderedUniformEncoder` - The same as above, but the order for the categories can be specified, changing which range in the unifor... | /rdt_identity-1.7.0.tar.gz/rdt_identity-1.7.0/HISTORY.md | 0.86012 | 0.758063 | HISTORY.md | pypi |
<div align="center">
<br/>
<p align="center">
<i>This repository is part of <a href="https://sdv.dev">The Synthetic Data Vault Project</a>, a project from <a href="https://datacebo.com">DataCebo</a>.</i>
</p>
[... | /rdt-1.7.0.tar.gz/rdt-1.7.0/README.md | 0.834306 | 0.989129 | README.md | pypi |
# Release workflow
The process of releasing a new version involves several steps:
1. [Install RDT from source](#install-rdt-from-source)
2. [Linting and tests](#linting-and-tests)
3. [Documentation](#documentation)
4. [Milestone](#milestone)
5. [HISTORY.md](#history.md)
6. [Distribution](#distribution)
7. [Inte... | /rdt-1.7.0.tar.gz/rdt-1.7.0/RELEASE.md | 0.415254 | 0.907845 | RELEASE.md | pypi |
# History
## 1.7.0 - 2023-08-22
This release adds 3 new transformers:
1. `UniformEncoder` - A categorical and boolean transformer that converts the column into a uniform distribution.
2. `OrderedUniformEncoder` - The same as above, but the order for the categories can be specified, changing which range in the unifor... | /rdt-1.7.0.tar.gz/rdt-1.7.0/HISTORY.md | 0.86012 | 0.758063 | HISTORY.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 ... | /rdto_probability-0.1.tar.gz/rdto_probability-0.1/rdto_probability/Gaussiandistribution.py | 0.679604 | 0.85318 | Gaussiandistribution.py | pypi |
import asyncio
from datetime import datetime
from functools import wraps
from pathlib import Path
import aiohttp
import click
from rdwatch_cli import api
from rdwatch_cli.config import get_credentials, set_credentials
from rdwatch_cli.exceptions import ImageNotFound, ServerError
from rdwatch_cli.validators import val... | /rdwatch_cli-0.0.5.tar.gz/rdwatch_cli-0.0.5/src/rdwatch_cli/__init__.py | 0.573917 | 0.174024 | __init__.py | pypi |
import asyncio
import io
from dataclasses import dataclass
from datetime import datetime
import aiohttp
import mercantile
from PIL import Image
from rdwatch_cli.exceptions import ImageNotFound, ServerError
@dataclass
class WebpTile:
tile: mercantile.Tile
timestamp: datetime
image: Image.Image
async de... | /rdwatch_cli-0.0.5.tar.gz/rdwatch_cli-0.0.5/src/rdwatch_cli/api/image.py | 0.568895 | 0.30072 | image.py | pypi |
from typing import Any
from typing import Optional
from typing import Pattern
import regex
class Matches: # TODO: Generic[AnyStr] (binary pattern support)
def __init__(self, pattern: str, *args: Any, **kwargs: Any) -> None:
self._pattern = regex.compile(pattern, *args, **kwargs)
self._fail: Opti... | /re_assert-1.1.0.tar.gz/re_assert-1.1.0/re_assert.py | 0.603114 | 0.222236 | re_assert.py | pypi |
import socket
import struct
PROXY_TYPE_SOCKS4 = 1
PROXY_TYPE_SOCKS5 = 2
PROXY_TYPE_HTTP = 3
_defaultproxy = None
_orgsocket = socket.socket
class ProxyError(Exception):
def __init__(self, value):
self.value = value
def __str__(self):
return repr(self.value)
class GeneralProxyError(ProxyEr... | /re_common-0.2.53.tar.gz/re_common-0.2.53/re_common/baselibrary/pakge_other/socks.py | 0.522446 | 0.175009 | socks.py | pypi |
import pymssql
class BaseMsSql(object):
def __init__(self, host, user, pwd, db, charset, **kwargs):
"""
as_dict 作为字典返回
:param host:
:param user:
:param pwd:
:param db:
:param kwargs:
"""
self.host = host
self.user = user
sel... | /re_common-0.2.53.tar.gz/re_common-0.2.53/re_common/baselibrary/utils/basemssql.py | 0.421909 | 0.230389 | basemssql.py | pypi |
import os
import sys
import importlib
def import_fun(obj, mod, m=[], modename=""):
"""
这个方法只能在类里面设置属性
:param obj:
:param mod:
:param m:
:return:
"""
if m:
for item in m:
module = getattr(mod, item)
setattr(obj, item, module)
elif modename:
se... | /re_common-0.2.53.tar.gz/re_common-0.2.53/re_common/baselibrary/utils/importfun.py | 0.447943 | 0.206674 | importfun.py | pypi |
import re
import string
# 7-bit C1 ANSI escape sequences
# https://www.cnblogs.com/longdouhzt/archive/2012/09/25/2703173.html
ANSI_ESCAPE = re.compile(r'\x1B[@-_][0-?]*[ -/]*[@-~]')
class BaseString():
@classmethod
def r_strip_one_char(cls, string):
"""
去除右边的一个字符
:param string:
... | /re_common-0.2.53.tar.gz/re_common-0.2.53/re_common/baselibrary/utils/basestring.py | 0.445047 | 0.429669 | basestring.py | pypi |
import datetime
import time
from calendar import monthrange, Calendar
# timedalte 是datetime中的一个对象,该对象表示两个时间的差值
from datetime import timedelta
# microseconds (毫秒) 1 second = 1000 milliseconds
# milliseconds (微秒) 1 milliseconds = 1000 milliseconds
"""
%Y 完整的年份
%m 月份(01 - 12)
%d 一个月中的第几天(01 - 31)
%H 一天中的第几个小时(24小时制,00 -... | /re_common-0.2.53.tar.gz/re_common-0.2.53/re_common/baselibrary/utils/basetime.py | 0.400867 | 0.323701 | basetime.py | pypi |
import pydash
from pydash import without, py_, reject, power
class BasePyDash(object):
@classmethod
def find_index(cls, lists, callback):
"""
lists = [
{'name': 'Michelangelo', 'active': False},
{'name': 'Donatello', 'active': False},
{'name': 'Leonardo', '... | /re_common-0.2.53.tar.gz/re_common-0.2.53/re_common/baselibrary/utils/basepydash.py | 0.478529 | 0.319148 | basepydash.py | pypi |
from re_common.baselibrary.utils.baselist import BaseList
class JavaCodeDeal(object):
def __init__(self):
self.strings = """
"""
self.lists = []
self.baselist = BaseList()
self.keylist = []
def set_strings(self, strings):
"""
设置源数据
:param strin... | /re_common-0.2.53.tar.gz/re_common-0.2.53/re_common/baselibrary/tools/java_code_deal.py | 0.430028 | 0.185966 | java_code_deal.py | pypi |
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
import smtplib
def build_mime_message(
mail_from: str,
mail_to: str,
subject: str,
html_content: str,
mime_subtype: str = 'mixed',
mime_charset: str = 'utf-8'):
"""
Build a MIME message that can be used ... | /re_data-0.10.8b1-py3-none-any.whl/re_data/notifications/email.py | 0.552298 | 0.174709 | email.py | pypi |
from re import sub
from tabulate import tabulate
import requests
from typing import Any, Dict, Optional, List, Tuple
from datetime import datetime
def slack_notify(webhook_url: str, body: dict) -> None:
"""
Send a message to a slack webhook
:param webhook_url: str
Slack incoming webhook url e.g ht... | /re_data-0.10.8b1-py3-none-any.whl/re_data/notifications/slack.py | 0.76708 | 0.434041 | slack.py | pypi |
from enum import Enum
try:
from typing import Literal, Union
except ImportError:
from typing_extensions import Literal
from typing import Optional
class LocationHint(Enum):
USA = {
"locale": "en-US",
"LocationHint": [
{
"country": "United States",
... | /re_edge_gpt-0.0.6-py3-none-any.whl/re_edge_gpt/locale.py | 0.712832 | 0.36591 | locale.py | pypi |
import uuid
from datetime import datetime
from typing import Union
from .conversation_style import CONVERSATION_STYLE_TYPE
from .conversation_style import ConversationStyle
from .utilities import get_location_hint_from_locale
from .utilities import get_ran_hex
from .utilities import guess_locale
class ChatHubRequest... | /re_edge_gpt-0.0.6-py3-none-any.whl/re_edge_gpt/request.py | 0.505371 | 0.176814 | request.py | pypi |
import collections
import importlib.util
import inspect
import logging
import os
import re
import sys
from functools import wraps
from typing import Callable, TypeVar
has_validators = False
try:
import validators
has_validators = True
except:
pass
from .message import Message
from .shortestPrefix import... | /re-ircbot-1.7.0.tar.gz/re-ircbot-1.7.0/IrcBot/utils.py | 0.607896 | 0.155206 | utils.py | pypi |
import socket
import struct
from enum import Enum
from IrcBot.utils import debug, log
BUFFSIZE = 2048
class DccServer(Enum):
SEND = 0
GET = 1
# Stolen from https://github.com/jaraco/irc/blob/5ee34d886507aea3a9edb045d258098a78d1117b/irc/client.py
def ip_num_to_quad(num: int):
"""Convert an IP number as... | /re-ircbot-1.7.0.tar.gz/re-ircbot-1.7.0/IrcBot/dcc.py | 0.798933 | 0.468243 | dcc.py | pypi |
from __future__ import annotations
import re
__pdoc__ = {}
class Rstr(str):
"""
Subclass of str which adds methods for composing regex patterns
"""
re = re
"""
`Rstr` contains a reference to the standard library's `re` module.
It is not necessary to import `re` separately, you can acces... | /re_patterns-1.1.0-py3-none-any.whl/re_patterns/__init__.py | 0.861276 | 0.86771 | __init__.py | pypi |
import random
from unicorn_binance_websocket_api.exceptions import StreamRecoveryError, UnknownExchange
from unicorn_binance_websocket_api.sockets import BinanceWebSocketApiSocket
from unicorn_binance_websocket_api.restclient import BinanceWebSocketApiRestclient
from unicorn_binance_websocket_api.restserver import Bi... | /re_unicorn_binance_websocket_api-1.41.2-py3-none-any.whl/unicorn_binance_websocket_api/manager.py | 0.751101 | 0.165627 | manager.py | pypi |
<p align="center">
<img src="https://github.com/chriskiehl/re-wx-images/raw/images/logo/rewx.png">
</p>
<p align="center">A Python library for building modern declarative desktop applications</p>
<hr/>
<table>
<tr>
<td>
<img src="https://github.com/chriskiehl/re-wx-images/raw/images/screenshots/basic-... | /re-wx-0.1.0.tar.gz/re-wx-0.1.0/README.md | 0.698227 | 0.913252 | README.md | pypi |
import wx
from random import randint, random
from typing import Callable
from typing_extensions import TypedDict
from rewx import Component, wsx, create_element, render
import rewx.components as c
class Parent(Component):
"""
The main 'container' component. It's the root for all
state management. It pass... | /re-wx-0.1.0.tar.gz/re-wx-0.1.0/rewx/examples/issue0003c.py | 0.661486 | 0.244617 | issue0003c.py | pypi |
import ruamel.yaml
from lark import Lark
from y.yreference import YReference
parser = Lark('''%import common.NUMBER
%import common.SIGNED_NUMBER
%import common.ESCAPED_STRING
%import common.CNAME
%import common.WS
?expression: "(" ... | /re_y-2.1.7-py3-none-any.whl/y/yinterpreter.py | 0.718594 | 0.376251 | yinterpreter.py | pypi |
from ruamel.yaml.comments import CommentedMap, CommentedSeq
class YReference:
"""
A reference to a value in a YAML document.
Can be used to interact with YAML documents regardless of whether the value and its parent values exist.
"""
def __init__(self, context):
"""
:param contex... | /re_y-2.1.7-py3-none-any.whl/y/yreference.py | 0.627951 | 0.359786 | yreference.py | pypi |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.