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
# Calibration guide This guide describes `recOrder`'s calibration routine with details about its goals, parameters, and evaluation metrics. ## Why calibrate? `recOrder` sends commands via Micro-Manager (or a TriggerScope) to apply voltages to the liquid crystals which modify the polarization of the light that illumi...
/recOrder-napari-0.4.0.tar.gz/recOrder-napari-0.4.0/docs/calibration-guide.md
0.950755
0.990936
calibration-guide.md
pypi
from pathlib import Path import click import numpy as np from iohub import open_ome_zarr from waveorder.models import ( inplane_oriented_thick_pol3d, isotropic_fluorescent_thick_3d, isotropic_thin_3d, phase_thick_3d, ) from recOrder.cli.parsing import ( config_filepath, input_position_dirpaths...
/recOrder-napari-0.4.0.tar.gz/recOrder-napari-0.4.0/recOrder/cli/compute_transfer_function.py
0.875121
0.397295
compute_transfer_function.py
pypi
import itertools from functools import partial from pathlib import Path import click import numpy as np import torch import torch.multiprocessing as mp from iohub import open_ome_zarr from recOrder.cli import apply_inverse_models from recOrder.cli.parsing import ( config_filepath, input_position_dirpaths, ...
/recOrder-napari-0.4.0.tar.gz/recOrder-napari-0.4.0/recOrder/cli/apply_inverse_transfer_function.py
0.723212
0.224204
apply_inverse_transfer_function.py
pypi
import numpy as np import torch from waveorder.models import ( inplane_oriented_thick_pol3d, isotropic_fluorescent_thick_3d, isotropic_thin_3d, phase_thick_3d, ) def radians_to_nanometers(retardance_rad, wavelength_illumination_um): """ waveorder returns retardance in radians, while recorder d...
/recOrder-napari-0.4.0.tar.gz/recOrder-napari-0.4.0/recOrder/cli/apply_inverse_models.py
0.916391
0.579757
apply_inverse_models.py
pypi
from pathlib import Path from typing import Callable import click import torch.multiprocessing as mp from iohub.ngff import Plate, open_ome_zarr from natsort import natsorted from recOrder.cli.option_eat_all import OptionEatAll def _validate_and_process_paths( ctx: click.Context, opt: click.Option, value: str )...
/recOrder-napari-0.4.0.tar.gz/recOrder-napari-0.4.0/recOrder/cli/parsing.py
0.656108
0.265374
parsing.py
pypi
import glob import json import os import time import numpy as np from iohub import read_micromanager from pycromanager import Studio def generate_acq_settings( mm, channel_group, channels=None, zstart=None, zend=None, zstep=None, save_dir=None, prefix=None, keep_shutter_open_chann...
/recOrder-napari-0.4.0.tar.gz/recOrder-napari-0.4.0/recOrder/acq/acq_functions.py
0.599837
0.219861
acq_functions.py
pypi
import shutil from pathlib import Path from iohub import open_ome_zarr from napari.utils.notifications import show_warning from platformdirs import user_data_dir from wget import download def download_and_unzip() -> tuple[Path]: """Downloads sample data .zip from zenodo, unzips, and returns Paths to the .zarr da...
/recOrder-napari-0.4.0.tar.gz/recOrder-napari-0.4.0/recOrder/scripts/samples.py
0.49707
0.424233
samples.py
pypi
import random import time from contextlib import contextmanager import napari from pycromanager import Core from recOrder.plugin.main_widget import MainWidget SAVE_DIR = "." SWING = 0.05 CAL_REPEATS = 3 BKG_REPEATS = 3 @contextmanager def stage_detour(app: MainWidget, dx: float, dy: float, wait=5): """Context...
/recOrder-napari-0.4.0.tar.gz/recOrder-napari-0.4.0/recOrder/scripts/repeat-cal-acq-rec.py
0.617974
0.594257
repeat-cal-acq-rec.py
pypi
import time from contextlib import contextmanager import numpy as np @contextmanager def suspend_live_sm(snap_manager): """Context manager that suspends/unsuspends MM live mode for `SnapLiveManager`. Parameters ---------- snap_manager : object `org.micromanager.internal.SnapLiveManager` obje...
/recOrder-napari-0.4.0.tar.gz/recOrder-napari-0.4.0/recOrder/io/core_functions.py
0.848157
0.741417
core_functions.py
pypi
import os import textwrap from pathlib import Path from typing import Literal, Union import numpy as np import psutil import torch import yaml from colorspacious import cspace_convert from iohub import open_ome_zarr from matplotlib.colors import hsv_to_rgb from waveorder.waveorder_reconstructor import waveorder_micros...
/recOrder-napari-0.4.0.tar.gz/recOrder-napari-0.4.0/recOrder/io/utils.py
0.853364
0.465691
utils.py
pypi
import json import os from natsort import natsorted def load_json(path): with open(path, "r") as f: data = json.load(f) return data def get_last_metadata_file(path): last_metadata_file = natsorted( [ file for file in os.listdir(path) if file.startswi...
/recOrder-napari-0.4.0.tar.gz/recOrder-napari-0.4.0/recOrder/io/metadata_reader.py
0.675015
0.175167
metadata_reader.py
pypi
from __future__ import annotations import json import logging from pathlib import Path # type hint/check from typing import TYPE_CHECKING import numpy as np from iohub import open_ome_zarr from napari.qt.threading import WorkerBase, WorkerBaseSignals, thread_worker from qtpy.QtCore import Signal from recOrder.calib...
/recOrder-napari-0.4.0.tar.gz/recOrder-napari-0.4.0/recOrder/calib/calibration_workers.py
0.868994
0.172694
calibration_workers.py
pypi
[![DOI](https://joss.theoj.org/papers/10.21105/joss.02014/status.svg)](https://doi.org/10.21105/joss.02014) [recan](#recan) [recan web version](#recan-web-version) [Requirements](#requirements) [Intallation](#intallation) [Usage example](#usage-example) [Some notes on usage](#some-notes-on-usage) [Automated test...
/recan-0.5.tar.gz/recan-0.5/README.md
0.448909
0.909063
README.md
pypi
from __future__ import absolute_import, annotations import csv import itertools import json import logging import re import typing as t from enum import Enum from pathlib import Path import graphviz as gv import networkx as nx import pendulum from lxml import html from . import dt, utils from .edge import Edge from ...
/ReCAP-Argument-Graph-0.1.45.tar.gz/ReCAP-Argument-Graph-0.1.45/recap_argument_graph/graph.py
0.841631
0.288494
graph.py
pypi
from __future__ import annotations import copy import inspect from re import fullmatch from typing import Any ALIAS_REGEX = r"^[a-zA-Z_][a-zA-Z0-9_]*(?:\.[a-zA-Z_][a-zA-Z0-9_]*)+$" class RecapType: """Base class for all Recap types.""" def __init__( self, type_: str, logical: str | ...
/recap_core-0.8.9.tar.gz/recap_core-0.8.9/recap/types.py
0.909857
0.254578
types.py
pypi
from __future__ import annotations from abc import ABC from typing import Any, List, Protocol, Tuple from recap.types import StructType class DbapiClient(ABC): def __init__(self, connection: Connection, converter: DbapiConverter) -> None: self.connection = connection self.converter = converter ...
/recap_core-0.8.9.tar.gz/recap_core-0.8.9/recap/clients/dbapi.py
0.882047
0.271949
dbapi.py
pypi
from __future__ import annotations from contextlib import contextmanager from typing import Any, Generator from pymetastore.metastore import HMS, HTable from pymetastore.stats import ( BinaryTypeStats, BooleanTypeStats, DateTypeStats, DecimalTypeStats, DoubleTypeStats, LongTypeStats, Strin...
/recap_core-0.8.9.tar.gz/recap_core-0.8.9/recap/clients/hive_metastore.py
0.823044
0.272534
hive_metastore.py
pypi
from __future__ import annotations from contextlib import contextmanager from importlib import import_module from typing import Generator, Protocol from urllib.parse import parse_qs, urlparse from recap.types import StructType CLIENTS = { "bigquery": "recap.clients.bigquery.BigQueryClient", "http+csr": "reca...
/recap_core-0.8.9.tar.gz/recap_core-0.8.9/recap/clients/__init__.py
0.880052
0.287962
__init__.py
pypi
from __future__ import annotations from pymetastore.htypes import ( HCharType, HDecimalType, HListType, HMapType, HPrimitiveType, HStructType, HType, HUnionType, HVarcharType, PrimitiveCategory, ) from pymetastore.metastore import HColumn, HTable from recap.types import ( B...
/recap_core-0.8.9.tar.gz/recap_core-0.8.9/recap/converters/hive_metastore.py
0.422505
0.353066
hive_metastore.py
pypi
from typing import Any from recap.converters.dbapi import DbapiConverter from recap.types import BoolType, BytesType, FloatType, IntType, RecapType, StringType class SnowflakeConverter(DbapiConverter): def _parse_type(self, column_props: dict[str, Any]) -> RecapType: data_type = column_props["DATA_TYPE"]...
/recap_core-0.8.9.tar.gz/recap_core-0.8.9/recap/converters/snowflake.py
0.716417
0.337531
snowflake.py
pypi
import json from typing import Any from recap.types import ( BoolType, BytesType, EnumType, FloatType, IntType, ListType, MapType, NullType, ProxyType, RecapType, RecapTypeRegistry, StringType, StructType, UnionType, ) class AvroConverter: def __init__(self...
/recap_core-0.8.9.tar.gz/recap_core-0.8.9/recap/converters/avro.py
0.71403
0.329769
avro.py
pypi
from math import ceil from typing import Any from recap.converters.dbapi import DbapiConverter from recap.types import BoolType, BytesType, FloatType, IntType, RecapType, StringType MAX_FIELD_SIZE = 1073741824 class PostgresqlConverter(DbapiConverter): def _parse_type(self, column_props: dict[str, Any]) -> Reca...
/recap_core-0.8.9.tar.gz/recap_core-0.8.9/recap/converters/postgresql.py
0.66236
0.292772
postgresql.py
pypi
from __future__ import annotations from google.cloud import bigquery from recap.types import ( BoolType, BytesType, FloatType, IntType, ListType, StringType, StructType, ) class BigQueryConverter: def to_recap(self, fields: list[bigquery.SchemaField]) -> StructType: recap_fie...
/recap_core-0.8.9.tar.gz/recap_core-0.8.9/recap/converters/bigquery.py
0.63443
0.265729
bigquery.py
pypi
from typing import Any from recap.converters.dbapi import DbapiConverter from recap.types import BytesType, FloatType, IntType, RecapType, StringType class MysqlConverter(DbapiConverter): def _parse_type(self, column_props: dict[str, Any]) -> RecapType: data_type = column_props["DATA_TYPE"].lower() ...
/recap_core-0.8.9.tar.gz/recap_core-0.8.9/recap/converters/mysql.py
0.831417
0.345574
mysql.py
pypi
import shutil import typing as t from enum import Enum from pathlib import Path import arguebuf as ag import typer from recap_utils import graph_translator, model cli = typer.Typer() @cli.command() def translate( input_folder: Path, source_lang: str, target_lang: str, auth_key: str, input_glob:...
/ReCAP-Utils-0.2.1.tar.gz/ReCAP-Utils-0.2.1/recap_utils/graph.py
0.439988
0.26947
graph.py
pypi
import base64 import cgi try: from Crypto.Cipher import AES except: raise Exception ("You need the pycrpyto library: http://cheeseshop.python.org/pypi/pycrypto/") MAIL_HIDE_BASE="http://www.google.com/recaptcha/mailhide" def asurl (email, public_key, private_key): """Wra...
/recaptcha-appengine-1.0.3.tar.gz/recaptcha-appengine-1.0.3/recaptcha/client/mailhide.py
0.581422
0.195249
mailhide.py
pypi
import os import time import typing from contextlib import suppress from urllib.parse import quote from urllib.request import getproxies import pydub import requests from loguru import logger from playwright.sync_api import Page, Locator, expect, FrameLocator from playwright.sync_api import TimeoutError from speech_re...
/recaptcha-challenger-0.0.1.tar.gz/recaptcha-challenger-0.0.1/recaptcha_challenger/core.py
0.579995
0.150746
core.py
pypi
import cv2 import numpy as np from .kernel import ModelHub class YOLO: """YOLO model for image classification""" classes = [ "person", "bicycle", "car", "motorcycle", "airplane", "bus", "train", "truck", "boat", "traffic light",...
/recaptcha-challenger-0.0.1.tar.gz/recaptcha-challenger-0.0.1/recaptcha_challenger/solutions/yolo.py
0.738198
0.426501
yolo.py
pypi
import base64 import cgi try: from Crypto.Cipher import AES except: raise Exception ("You need the pycrpyto library: http://cheeseshop.python.org/pypi/pycrypto/") MAIL_HIDE_BASE="http://www.google.com/recaptcha/mailhide" def asurl (email, public_key, private_key): """Wra...
/recaptcha-client-1.0.6.tar.gz/recaptcha-client-1.0.6/recaptcha/client/mailhide.py
0.581422
0.195249
mailhide.py
pypi
import recastapi import recastapi.user.read from termcolor import colored import urllib import yaml import json def scan_response(scan_response_id = None, scan_request_id = None): """List request depending on criteria If all variables are none all requests returned :param uuid: ID of the request(option...
/recast-api-0.1.0.tar.gz/recast-api-0.1.0/recastapi/response/read.py
0.440951
0.172346
read.py
pypi
import recastapi.request.read import recastapi.user.read import uuid import os def scan_request(analysis_id, title, description_model, reason_for_request, additional_information, status="Incomplete", ): """Creates...
/recast-api-0.1.0.tar.gz/recast-api-0.1.0/recastapi/request/write.py
0.564339
0.217109
write.py
pypi
# [Bootstrap](http://getbootstrap.com) [![Slack](https://bootstrap-slack.herokuapp.com/badge.svg)](https://bootstrap-slack.herokuapp.com) ![Bower version](https://img.shields.io/bower/v/bootstrap.svg) [![npm version](https://img.shields.io/npm/v/bootstrap.svg)](https://www.npmjs.com/package/bootstrap) [![Build Status]...
/recast-control-center-prototype-0.1.0.tar.gz/recast-control-center-prototype-0.1.0/recastcontrolcenter/static/bower_components/bootstrap/README.md
0.716913
0.881819
README.md
pypi
# vis.js [![Join the chat at https://gitter.im/vis-js/Lobby](https://badges.gitter.im/vis-js/Lobby.svg)](https://gitter.im/vis-js/Lobby?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) <a href="https://github.com/almende/vis/blob/develop/misc/we_need_help.md"> <img align="right" src="https...
/recast-control-center-prototype-0.1.0.tar.gz/recast-control-center-prototype-0.1.0/recastcontrolcenter/static/bower_components/vis/README.md
0.667581
0.85741
README.md
pypi
import boto3 import logging from tenacity import * from re import search, sub __REGION__ = 'us-east-1' def set_region(region): global __REGION__ __REGION__ = region def get_queues(queue_name_regex: str = None, region: str = __REGION__): """ This function will return a list of queue information. If...
/recastpy-0.0.72-py3-none-any.whl/RecastPy/aws/batch.py
0.67822
0.358465
batch.py
pypi
import colorama from colorama import Fore, Back, Style import StringIO colorama.init() class Column(object): def __init__(self, layout): self.width = layout.config.get_column_width(self) def format(self, data): return self.FORMAT % data class DateColumn(Column): NAME = "date" FORMAT ...
/recat-color-0.1.1.tar.gz/recat-color-0.1.1/logcatcolor/column.py
0.488039
0.172886
column.py
pypi
import logging from logging import getLogger import torch from recbole.utils import init_logger, init_seed, set_color from recbole_cdr.config import CDRConfig from recbole_cdr.data import create_dataset, data_preparation from recbole_cdr.utils import get_model, get_trainer def run_recbole_cdr(model=None, config_fil...
/recbole-cdr-0.1.0.tar.gz/recbole-cdr-0.1.0/recbole_cdr/quick_start/quick_start.py
0.850624
0.260201
quick_start.py
pypi
import os import copy from recbole.config.configurator import Config from recbole.evaluator import metric_types, smaller_metrics from recbole.utils import EvaluatorType, ModelType, InputType from recbole_cdr.utils import get_model, train_mode2state class CDRConfig(Config): """ Configurator module that load the d...
/recbole-cdr-0.1.0.tar.gz/recbole-cdr-0.1.0/recbole_cdr/config/configurator.py
0.643105
0.268914
configurator.py
pypi
import os from collections import ChainMap import torch import numpy as np import pandas as pd from logging import getLogger from scipy.sparse import coo_matrix from recbole.data.dataset import Dataset from recbole.utils import FeatureSource, FeatureType, set_color class CrossDomainSingleDataset(Dataset): def _...
/recbole-cdr-0.1.0.tar.gz/recbole-cdr-0.1.0/recbole_cdr/data/dataset.py
0.656878
0.216239
dataset.py
pypi
from logging import getLogger import numpy as np import torch from recbole.data.interaction import Interaction from recbole.data.dataloader.abstract_dataloader import AbstractDataLoader from recbole.data.dataloader.general_dataloader import TrainDataLoader, FullSortEvalDataLoader from recbole_cdr.utils import CrossDo...
/recbole-cdr-0.1.0.tar.gz/recbole-cdr-0.1.0/recbole_cdr/data/dataloader.py
0.866147
0.290138
dataloader.py
pypi
import importlib import os import pickle from recbole.data.dataloader import NegSampleEvalDataLoader from recbole.data.utils import load_split_dataloaders, save_split_dataloaders, create_samplers from recbole.utils import set_color from recbole.utils.argument_list import dataset_arguments from recbole_cdr.data.datalo...
/recbole-cdr-0.1.0.tar.gz/recbole-cdr-0.1.0/recbole_cdr/data/utils.py
0.746416
0.26149
utils.py
pypi
![RecBole Logo](asset/logo.png) -------------------------------------------------------------------------------- # RecBole (伯乐) *“世有伯乐,然后有千里马。千里马常有,而伯乐不常有。”——韩愈《马说》* [![PyPi Latest Release](https://img.shields.io/pypi/v/recbole)](https://pypi.org/project/recbole/) [![Conda Latest Release](https://anaconda.org/aibox...
/recbole-1.0.1.tar.gz/recbole-1.0.1/README.md
0.752104
0.93611
README.md
pypi
from asyncio import Task, TimeoutError, create_task from inspect import iscoroutinefunction, isfunction from typing import Any, Awaitable, Callable, Dict, Final, List, Optional, Set, Union from aioredis import ConnectionPool, Redis from aioredis.client import PubSub from async_timeout import timeout as async_timeout_...
/recc_cache-2.1.0-py3-none-any.whl/recc_cache/redis/redis_cache.py
0.752104
0.222806
redis_cache.py
pypi
from abc import ABCMeta, abstractmethod from enum import Enum from typing import Any, List, Tuple QueryString = str Arguments = List[Any] BuildResult = Tuple[QueryString, Arguments] NO_SKIP_NULL_IN_WHERE = False """ NULLs in the where clause are not skipped. """ class Operator(Enum): EQUAL = (0, "=") GREAT...
/recc_database-2.1.0-py3-none-any.whl/recc_database/database/query_builder.py
0.875973
0.19235
query_builder.py
pypi
from typing import Any, List, Optional, Type, TypeVar from asyncpg import InvalidCatalogNameError, connect, create_pool from asyncpg.connection import Connection from asyncpg.pool import Pool, PoolAcquireContext from asyncpg.protocol import Record from orjson import dumps, loads from recc_database.database.query_uti...
/recc_database-2.1.0-py3-none-any.whl/recc_database/database/mixin/_pg_base.py
0.824709
0.164651
_pg_base.py
pypi
from dataclasses import dataclass from datetime import datetime from hashlib import sha256 from typing import Optional from recc_database.packet.preference import PreferenceA @dataclass class User: """It is mapped to the `user` table in the database.""" uid: int username: str password: str salt...
/recc_database-2.1.0-py3-none-any.whl/recc_database/packet/user.py
0.903837
0.212324
user.py
pypi
from dataclasses import dataclass from datetime import datetime from io import BytesIO from typing import Dict, Iterable, List, Optional, Tuple from minio import Minio, S3Error from minio.commonconfig import ENABLED, Filter, Tag, Tags from minio.deleteobjects import DeleteObject from minio.lifecycleconfig import Expi...
/recc_storage-2.1.0-py3-none-any.whl/recc_storage/storage.py
0.863679
0.191347
storage.py
pypi
from typing import Optional, List, Union, Dict from itertools import combinations import pandas as pd # type: ignore from pymystem3 import Mystem # type: ignore try: from cat_model import PredictCategory # type: ignore except ImportError: from receipt_parser.cat_model import PredictCategory # type: ignore ...
/receipt_parser-0.0.28-py3-none-any.whl/receipt_parser/finder.py
0.944587
0.58053
finder.py
pypi
# pylint: skip-file from typing import Dict, List import youtokentome as yttm # type: ignore import torch from torch import nn class CategoryClassifier(nn.Module): """A simple perceptron baseline moedel.""" def __init__( self, vocab_size: int, embed_dim: int, num_class: int, pad_idx: int = 0 ): ...
/receipt_parser-0.0.28-py3-none-any.whl/receipt_parser/cat_model.py
0.928425
0.58059
cat_model.py
pypi
import os from typing import Union, Optional, Dict import wget # type: ignore import pandas as pd # type: ignore try: from receipt_parser.finder import Finder # type: ignore from receipt_parser.normalizer import Normalizer # type: ignore except ImportError: from finder import Finder # type: ignore ...
/receipt_parser-0.0.28-py3-none-any.whl/receipt_parser/receipt_parser.py
0.876092
0.226784
receipt_parser.py
pypi
import re from typing import Optional, Union, Dict import pandas as pd # type: ignore from pandarallel import pandarallel # type: ignore pandarallel.initialize(progress_bar=False, verbose=0) try: # pylint: disable=line-too-long from receipt_parser.dicts import PRODUCTS, BRANDS, SLASH_PRODUCTS, BRANDS_WITH_N...
/receipt_parser-0.0.28-py3-none-any.whl/receipt_parser/normalizer.py
0.867106
0.370795
normalizer.py
pypi
import argparse import re from typing import TypedDict import receipt_scanner from receipt_scanner.core import scan class Arguments(TypedDict): image_location: str allowed_characters: str | None regular_expression: re.Pattern | None debug: bool def dispatcher() -> None: parser = generate_parser...
/receipt_scanner-0.3.2-py3-none-any.whl/receipt_scanner/cli.py
0.575588
0.204878
cli.py
pypi
from logging import getLogger import cv2 import numpy as np from receipt_scanner.image.debug import debug_show from receipt_scanner.image.errors import NoContourFoundError logger = getLogger(__name__) def contour_to_rect(contour: np.ndarray, resize_ratio: float) -> np.ndarray: points = contour.reshape(4, 2) ...
/receipt_scanner-0.3.2-py3-none-any.whl/receipt_scanner/image/contour.py
0.641759
0.465995
contour.py
pypi
from logging import getLogger import numpy as np from receipt_scanner.image.constants import ( EDGE_DETECTION_TARGET_WIDTH, TEXT_CLEANUP_TARGET_WIDTH, ) from receipt_scanner.image.contour import find_contour from receipt_scanner.image.debug import visualize_contour_on_image from receipt_scanner.image.filters ...
/receipt_scanner-0.3.2-py3-none-any.whl/receipt_scanner/image/core.py
0.50415
0.164617
core.py
pypi
from logging import getLogger import cv2 import numpy as np from receipt_scanner.image.contour import contour_to_rect from receipt_scanner.image.debug import debug_show from receipt_scanner.image.filters.base_filter import Filter logger = getLogger(__name__) class PerspectiveWrapperFilter(Filter): def __init__...
/receipt_scanner-0.3.2-py3-none-any.whl/receipt_scanner/image/filters/perspective_wrapper.py
0.823612
0.277072
perspective_wrapper.py
pypi
import numpy as np from typing import List from shapely.geometry import Polygon class Metrics: @staticmethod def shape_shifter(arr): return [(arr[0,0], arr[0,1]), (arr[1,0], arr[0,1]), (arr[1,0], arr[1,1]), (arr[0,0], arr[1,1])] @staticmethod def polygon_IOU_old(arr1:np.array, arr2:np.array):...
/analyzer/metrics.py
0.934138
0.625896
metrics.py
pypi
import requests import datetime # Class for messages class message(): def __init__(self, text='', from_number='', to_number='', date=datetime.datetime.now()) -> None: self.text = text self.from_number = from_number self.to_number = to_number self.date = date def help(): retu...
/receive_sms-1.0.4-py3-none-any.whl/receive_sms/__init__.py
0.456168
0.219714
__init__.py
pypi
import calendar import time from recently_played_playlists.spotify.util import get_spotify_client_for_username from recently_played_playlists.db.db import get_all_users, get_time_of_last_track_play, save_track_if_not_exists, save_played_song, update_time_of_last_track_play def iso_8601_timestamp_with_millis_and_timez...
/recently_played_playlists-1.0.1-py3-none-any.whl/recently_played_playlists/spotify/save_recently_played_tracks.py
0.666931
0.266551
save_recently_played_tracks.py
pypi
<p align="center"><a href="http://www.recentrifuge.org" target="_blank"> <img src="https://raw.githubusercontent.com/khyox/rcf-aux/master/RCFheader.png" alt="Recentrifuge" width="900px"/></a></p><hr> <p align="center"><b>Robust comparative analysis and contamination removal for metagenomics</b> </p> ____ [![Retest](...
/recentrifuge-1.12.1.tar.gz/recentrifuge-1.12.1/README.md
0.72086
0.846006
README.md
pypi
import argparse from collections import defaultdict import random from digger.motif import Motif import csv def get_parser(): parser = argparse.ArgumentParser(description='Given a set of gene features, create motif matrices') parser.add_argument('feat_file', help='feature file, created, for example, by pars...
/receptor_digger-0.5.10-py3-none-any.whl/digger/calc_motifs.py
0.441673
0.263434
calc_motifs.py
pypi
import argparse from receptor_utils import simple_bio_seq as simple import csv try: from dig_utils import set_motif_params, read_motifs, read_vs, process_sequence, process_output, get_genbank_sequence except: from digger.dig_utils import set_motif_params, read_motifs, read_vs, process_sequence, process_output,...
/receptor_digger-0.5.10-py3-none-any.whl/digger/dig_sequence.py
0.457621
0.164987
dig_sequence.py
pypi
# Copyright (c) 2023 William Lees # This source code, and any executable file compiled or derived from it, is governed by the European Union Public License v. 1.2, # the English version of which is available here: https://perma.cc/DK5U-NDVE import argparse import json import csv try: from receptor_germline_tool...
/receptor_germline_tools-0.0.4-py3-none-any.whl/receptor_germline_tools/annotate_rearrangements.py
0.616474
0.151059
annotate_rearrangements.py
pypi
# Copyright (c) 2021 William Lees # This source code, and any executable file compiled or derived from it, is governed by the European Union Public License v. 1.2, # the English version of which is available here: https://perma.cc/DK5U-NDVE import csv from receptor_utils import simple_bio_seq as simple import argpa...
/receptor_utils-0.0.15-py3-none-any.whl/receptor_utils/make_igblast_ndm.py
0.61832
0.243148
make_igblast_ndm.py
pypi
# Copyright (c) 2021 William Lees # This source code, and any executable file compiled or derived from it, is governed by the European Union Public License v. 1.2, # the English version of which is available here: https://perma.cc/DK5U-NDVE import re from receptor_utils import simple_bio_seq as simple def nt_diff(...
/receptor_utils-0.0.15-py3-none-any.whl/receptor_utils/number_ighv.py
0.573798
0.456228
number_ighv.py
pypi
# Copyright (c) 2021 William Lees # This source code, and any executable file compiled or derived from it, is governed by the European Union Public License v. 1.2, # the English version of which is available here: https://perma.cc/DK5U-NDVE from Bio import SeqIO from Bio.Seq import Seq from Bio.SeqRecord import Seq...
/receptor_utils-0.0.15-py3-none-any.whl/receptor_utils/simple_bio_seq.py
0.845337
0.345326
simple_bio_seq.py
pypi
# Copyright (c) 2021 William Lees # This source code, and any executable file compiled or derived from it, is governed by the European Union Public License v. 1.2, # the English version of which is available here: https://perma.cc/DK5U-NDVE import csv from receptor_utils import simple_bio_seq as simple import argpa...
/receptor_utils-0.0.15-py3-none-any.whl/receptor_utils/annotate_j.py
0.655336
0.294913
annotate_j.py
pypi
import logging import time from urllib.parse import urlencode import requests log = logging.getLogger(__name__) class RechargeResource(object): """ Resource from the Recharge API. This class handles logging, sending requests, parsing JSON, and rate limiting. Refer to the API docs to see the ex...
/recharge-api-1.4.1.tar.gz/recharge-api-1.4.1/recharge/resources.py
0.636918
0.221256
resources.py
pypi
## Rechtspraak extractor This library contains two functions to get rechtspraak data and metadata from the API. ## Version Python 3.9 ## Contributors <!-- readme: contributors,gijsvd -start --> <table> <tr> <td align="center"> <a href="https://github.com/pranavnbapat"> <img src="https://avata...
/rechtspraak_extractor-1.1.19.tar.gz/rechtspraak_extractor-1.1.19/README.md
0.576304
0.847084
README.md
pypi
``` from zarr_rechunker import zarr_rechunker import numpy as np max_mem = 2 shape = (16,) source_chunks = (3,) target_chunks = (7,) itemsize = 4 rc, ic, wc = zarr_rechunker.rechunking_plan(shape, source_chunks, target_chunks, itemsize, max_mem) print(rc, ic, wc) print(itemsize * np.prod(rc) / max_mem) print(itemsiz...
/rechunker-0.5.2.tar.gz/rechunker-0.5.2/algorithm.ipynb
0.627152
0.419588
algorithm.ipynb
pypi
# Recipe Box ![Recipe Box](recipe_box.jpg) This program takes a recipe URL, scrapes the recipe website, converts it to [Markdown](https://daringfireball.net/projects/markdown/syntax) format and store it in your local [Zettelkasten](https://www.youtube.com/watch?v=XUltI4v_UU4). I use the free [Obsidian](https://obsidi...
/recipe_box-0.1.2.tar.gz/recipe_box-0.1.2/README.md
0.641198
0.952442
README.md
pypi
import threading import unicodedata from dogpile.cache import make_region from dogpile.cache.util import sha1_mangle_key def async_creation_runner(cache, somekey, creator, mutex): """ Used by build_region as the async_creation_runner to create keys asyncronously. So dogpile.core:Lock when appropriate can avo...
/recipe_caching-0.6.0.tar.gz/recipe_caching-0.6.0/recipe_caching/regions.py
0.677047
0.420362
regions.py
pypi
from sqlalchemy.orm.interfaces import MapperOption class FromCache(MapperOption): """Specifies that a Query should load results from a cache.""" propagate_to_loaders = False def __init__(self, region='default', cache_key=None, cache_prefix=None): """Construct a new FromCache. :param regi...
/recipe_caching-0.6.0.tar.gz/recipe_caching-0.6.0/recipe_caching/mappers.py
0.916961
0.503174
mappers.py
pypi
r""" Recipe Grid extends Markdown syntax to provide a convenient way of describing recipes within a document. See the :ref:`markdown_reference` for an overview of these extensions. A recipe markdown document is compiled using: .. autofunction:: compile_markdown This produces a :py:class:`MarkdownRecipe` object which...
/recipe_grid-2.0.3-py3-none-any.whl/recipe_grid/markdown.py
0.943653
0.52829
markdown.py
pypi
from typing import ( Optional, Union, List, NamedTuple, Set, Tuple, Mapping, MutableMapping, Iterable, Iterator, ) from fractions import Fraction from dataclasses import dataclass, field import re __all__ = [ "Definition", "Unit", "RelatedUnitSet", "UNIT_SYST...
/recipe_grid-2.0.3-py3-none-any.whl/recipe_grid/units.py
0.953934
0.568835
units.py
pypi
import math from typing import Callable, Union, FrozenSet from fractions import Fraction __all__ = [ "format_float", "format_fraction", "format_number", ] def format_float(number: float, significant_figures: int = 3) -> str: """ Format a floating point value in a concise, human-friendly way. ...
/recipe_grid-2.0.3-py3-none-any.whl/recipe_grid/number_formatting.py
0.91384
0.564999
number_formatting.py
pypi
from typing import Union, Callable, List, Sequence, Tuple, Any from collections.abc import Iterable from fractions import Fraction from recipe_grid.number_formatting import format_number Number = Union[int, float, Fraction] __all__ = ["ScaledValueString"] class ScaledValueString: """ A string which cont...
/recipe_grid-2.0.3-py3-none-any.whl/recipe_grid/scaled_value_string.py
0.930821
0.463748
scaled_value_string.py
pypi
r""" The :py:mod:`recipe_grid.recipe` module defines the Directed Acyclic Graph (DAG) data structure used to describe recipes. Overview ======== Recipes are defined as a series of trees, principally consisting of :py:class:`Ingredient` nodes and :py:class:`Step` nodes. An :py:class:`Ingredient` node contains a name...
/recipe_grid-2.0.3-py3-none-any.whl/recipe_grid/recipe.py
0.91685
0.851274
recipe.py
pypi
from typing import Union, Optional from fractions import Fraction from functools import partial from pathlib import Path # NB: Used in favour of recipe_grid.markdown.compile_markdown due to unified # exceptions. from recipe_grid.static_site.recipe_directory import compile_recipe_markdown from recipe_grid.static_si...
/recipe_grid-2.0.3-py3-none-any.whl/recipe_grid/static_site/standalone_page.py
0.936619
0.223547
standalone_page.py
pypi
from typing import Tuple, NamedTuple, Optional, List from pathlib import Path from functools import lru_cache import re import marko # type: ignore from html import unescape from peggie import ParseError from recipe_grid.compiler import RecipeCompileError from recipe_grid.markdown import compile_markdown, Markd...
/recipe_grid-2.0.3-py3-none-any.whl/recipe_grid/static_site/recipe_directory.py
0.89643
0.245096
recipe_directory.py
pypi
from typing import ( Union, List, Mapping, MutableMapping, Optional, Tuple, Iterator, Any, cast, ) from pathlib import Path from functools import partial from fractions import Fraction from dataclasses import dataclass, field from shutil import copyfile from recipe_grid.static_...
/recipe_grid-2.0.3-py3-none-any.whl/recipe_grid/static_site/website.py
0.917344
0.246593
website.py
pypi
from typing import cast, Optional, MutableMapping, List, Union, Tuple import re import html from textwrap import indent from fractions import Fraction from xml.sax.saxutils import quoteattr from recipe_grid.scaled_value_string import ScaledValueString as SVS from recipe_grid.renderer.table import Table, Cell, B...
/recipe_grid-2.0.3-py3-none-any.whl/recipe_grid/renderer/html.py
0.891194
0.295312
html.py
pypi
from typing import cast from recipe_grid.recipe import ( RecipeTreeNode, Ingredient, Reference, Step, SubRecipe, ) from recipe_grid.renderer.table import ( BorderType, Cell, Table, right_pad_table, combine_tables, set_border_around_table, ) def recipe_tree_to_table( ...
/recipe_grid-2.0.3-py3-none-any.whl/recipe_grid/renderer/recipe_to_table.py
0.892545
0.559471
recipe_to_table.py
pypi
r""" The following output-agnostic data structure is used to represent a recipe in tabular form. The basic data structure consists of a :py:class:`Table` object which contains a set of nested lists containing a 2D array of :py:class:`Cell` and :py:class:`ExtendedCell` objects. Each entry in the array represents a cell...
/recipe_grid-2.0.3-py3-none-any.whl/recipe_grid/renderer/table.py
0.969843
0.928733
table.py
pypi
import os from peggie import compile_grammar, ParseError, RuleExpr, RegexExpr from recipe_grid.units import ALL_UNITS_REGEX_LITERAL __all__ = [ "grammar", "grammar_source", "prettify_parse_error", ] grammar_source_path = os.path.join(os.path.dirname(__file__), "grammar.peg") with open(grammar_source_pa...
/recipe_grid-2.0.3-py3-none-any.whl/recipe_grid/parser/grammar.py
0.461017
0.158272
grammar.py
pypi
import sys from argparse import ArgumentParser from pathlib import Path from recipe_grid.number_parser import number from recipe_grid.static_site.exceptions import StaticSiteError from recipe_grid.static_site.standalone_page import generate_standalone_page def main() -> None: parser = ArgumentParser( ...
/recipe_grid-2.0.3-py3-none-any.whl/recipe_grid/scripts/recipe_grid.py
0.459804
0.167866
recipe_grid.py
pypi
from typing import Dict, Optional, Tuple, Union from requests import Session from ._abstract import HEADERS, AbstractScraper class BettyBossi(AbstractScraper): """Scrape BettyBossi.ch recipes. This scraper is particular as the website implements a refresh after loading the page the first time. It is th...
/recipe_scrapers_ap_fork-14.24.7-py3-none-any.whl/recipe_scrapers/bettybossi.py
0.895222
0.338487
bettybossi.py
pypi
from ._abstract import AbstractScraper from ._utils import get_minutes, get_yields, normalize_string class AllRecipes: @classmethod def host(cls): return "allrecipes.com" def __new__(cls, url, *args, **kwargs): if AllRecipesUser.host() in url: return AllRecipesUser(url, *args,...
/recipe_scrapers_ap_fork-14.24.7-py3-none-any.whl/recipe_scrapers/allrecipes.py
0.776496
0.260519
allrecipes.py
pypi
from dataclasses import dataclass from typing import List, Optional from ._abstract import AbstractScraper from ._exceptions import ElementNotFoundInHtml from ._utils import get_minutes, get_yields, normalize_string @dataclass class IngredientGroup: ingredients: List[str] purpose: Optional[ str ]...
/recipe_scrapers_ap_fork-14.24.7-py3-none-any.whl/recipe_scrapers/nihhealthyeating.py
0.824427
0.218013
nihhealthyeating.py
pypi
import re from ._abstract import AbstractScraper from ._exceptions import ElementNotFoundInHtml from ._utils import normalize_string class Valdemarsro(AbstractScraper): @classmethod def host(cls): return "valdemarsro.dk" def title(self): return self.soup.h1.get_text().strip() def ca...
/recipe_scrapers_ap_fork-14.24.7-py3-none-any.whl/recipe_scrapers/valdemarsro.py
0.531696
0.241881
valdemarsro.py
pypi
import re from ._abstract import AbstractScraper from ._utils import get_minutes, get_yields, normalize_string class NHSHealthierFamilies(AbstractScraper): @classmethod def host(cls): return "nhs.uk" def author(self): return "NHS Better Health" def title(self): title = norma...
/recipe_scrapers_ap_fork-14.24.7-py3-none-any.whl/recipe_scrapers/nhshealthierfamilies.py
0.536556
0.163612
nhshealthierfamilies.py
pypi
import re from bs4 import Tag from ._abstract import AbstractScraper from ._utils import normalize_string """ NOTE: This website has at least 2 prominent layouts styles, so there are two logic blocks and 2 test cases to support in ingredients and instructions processing sections. """ class FarmhouseDeliver...
/recipe_scrapers_ap_fork-14.24.7-py3-none-any.whl/recipe_scrapers/farmhousedelivery.py
0.433981
0.173778
farmhousedelivery.py
pypi
import re from ._abstract import AbstractScraper from ._utils import get_minutes, get_yields, normalize_string class WeightWatchers(AbstractScraper): @classmethod def host(cls): return "www.weightwatchers.com" def author(self): return "WeightWatchers" def title(self): retur...
/recipe_scrapers_ap_fork-14.24.7-py3-none-any.whl/recipe_scrapers/weightwatchers.py
0.569613
0.310753
weightwatchers.py
pypi
from ._abstract import AbstractScraper from ._utils import get_minutes, get_yields class Bodybuilding(AbstractScraper): @classmethod def host(cls): return "bodybuilding.com" def author(self): return self.soup.find("span", {"class": "bb-recipe-author-name"}).get_text() def title(self)...
/recipe_scrapers_ap_fork-14.24.7-py3-none-any.whl/recipe_scrapers/bodybuilding.py
0.472683
0.174973
bodybuilding.py
pypi
from ._utils import normalize_string from .weightwatchers import WeightWatchers # collect the differences between public and non-public weightwatcher recipes in this class class WeightWatchersPublic(WeightWatchers): @classmethod def host(cls): return "www.weightwatchers.com" def _findDataContain...
/recipe_scrapers_ap_fork-14.24.7-py3-none-any.whl/recipe_scrapers/weightwatcherspublic.py
0.707203
0.281952
weightwatcherspublic.py
pypi
from ._abstract import AbstractScraper from ._utils import get_minutes, get_yields, normalize_string class Vegolosi(AbstractScraper): @classmethod def host(cls): return "vegolosi.it" def title(self): return self.soup.find("h1").get_text().strip() def author(self): return sel...
/recipe_scrapers_ap_fork-14.24.7-py3-none-any.whl/recipe_scrapers/vegolosi.py
0.615781
0.265565
vegolosi.py
pypi
import re from ._abstract import AbstractScraper from ._utils import change_keys def fix_json_ld_property_keys(k): if k == "ItemListElement": return "itemListElement" return k class TineNo(AbstractScraper): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) #...
/recipe_scrapers_ap_fork-14.24.7-py3-none-any.whl/recipe_scrapers/tineno.py
0.581422
0.169131
tineno.py
pypi
import re from ._abstract import AbstractScraper from ._utils import get_minutes, get_yields, normalize_string class SunBasket(AbstractScraper): @classmethod def host(self, domain="com"): return f"sunbasket.{domain}" def title(self): return self.soup.find("h1").get_text() def total_...
/recipe_scrapers_ap_fork-14.24.7-py3-none-any.whl/recipe_scrapers/sunbasket.py
0.555435
0.188903
sunbasket.py
pypi
import inspect from collections import OrderedDict from typing import Dict, List, Optional, Tuple, Union from urllib.parse import urljoin import requests from bs4 import BeautifulSoup from recipe_scrapers.settings import settings from ._schemaorg import SchemaOrg # some sites close their content for 'bots', so user...
/recipe_scrapers_ap_fork-14.24.7-py3-none-any.whl/recipe_scrapers/_abstract.py
0.814643
0.178025
_abstract.py
pypi
from ._abstract import AbstractScraper from ._utils import get_minutes, get_yields, normalize_string class MonsieurCuisine(AbstractScraper): @classmethod def host(cls): return "monsieur-cuisine.com" def author(self): container = self.soup.find("p", {"class": "recipe_author"}) ret...
/recipe_scrapers_ap_fork-14.24.7-py3-none-any.whl/recipe_scrapers/monsieurcuisine.py
0.570331
0.218024
monsieurcuisine.py
pypi
from ._abstract import AbstractScraper from ._utils import get_minutes, get_yields, normalize_string class WikiCookbook(AbstractScraper): @classmethod def host(cls): return "en.wikibooks.org" def title(self): return self.soup.find("h1").get_text().replace("Cookbook:", "") def total_t...
/recipe_scrapers_ap_fork-14.24.7-py3-none-any.whl/recipe_scrapers/wikicookbook.py
0.510496
0.201617
wikicookbook.py
pypi
import re from datetime import timedelta from ._types import Duration, ISO8601_Duration ISO8601_DURATION_REGEX = re.compile( r"^P(?!$)" r"(?P<PY>\d+(?:\.\d+)?Y)?" r"(?P<PM>\d+(?:\.\d+)?M)?" r"(?P<PW>\d+(?:\.\d+)?W)?" r"(?P<PD>\d+(?:\.\d+)?D)?" r"(T(?=\d)" r"(?P<TH>\d+(?:\.\d+)?H)?" r"...
/recipe_scrapers_sage-0.1.0-py3-none-any.whl/recipe_scrapers_sage/utils.py
0.699768
0.304636
utils.py
pypi