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
import keras from keras.applications.resnet50 import ResNet50 from keras.models import Model from keras.layers import Conv2D, concatenate, BatchNormalization, Lambda, Input, multiply, add, ZeroPadding2D, Activation, Layer, MaxPooling2D, Dropout from keras import regularizers import keras.backend as K import tensorflow ...
/scene-text-0.2.3.tar.gz/scene-text-0.2.3/scene_text/detector/EAST/model.py
0.921344
0.558207
model.py
pypi
from __future__ import annotations import json import logging import os import posixpath import re import shlex import tempfile from platform import system from typing import Literal, Optional, TypedDict, Union, cast from ffmpeg_progress_yield import FfmpegProgress from tqdm import tqdm IS_WIN = system() in ["Window...
/scenecut_extractor-0.6.2.tar.gz/scenecut_extractor-0.6.2/scenecut_extractor/_scenecut_extractor.py
0.805938
0.23699
_scenecut_extractor.py
pypi
# scenedataset PyTorch dataset which uses PySceneDetect to split videos into scenes. This dataset is useful when you have a large video dataset and you want to train a model on each scene of each video. Instead of splitting the videos into scenes manually, this dataset uses PySceneDetect to automatically split the v...
/scenedataset-1.0.2.tar.gz/scenedataset-1.0.2/README.md
0.871966
0.989957
README.md
pypi
__author__ = 'Dirk Meulenbelt' __date__ = '10.05.22' import datetime import json import logging import random import requests import urllib3 from .jwt_decode import validate_jwt_token from .logger import configure_logger from .nodesequencer_header_schema import nodesequencer_header_schema from .scenemark_schema import...
/scenera.node-0.3.19.tar.gz/scenera.node-0.3.19/scenera/node/scenemark.py
0.498291
0.209955
scenemark.py
pypi
nodesequencer_header_schema = { "$schema": "http://json-schema.org/draft-06/schema#", "$ref": "#/definitions/Welcome6", "definitions": { "Welcome6": { "type": "object", "additionalProperties": False, "properties": { "Ingress": { ...
/scenera.node-0.3.19.tar.gz/scenera.node-0.3.19/scenera/node/nodesequencer_header_schema.py
0.583797
0.437583
nodesequencer_header_schema.py
pypi
scenemark_schema = { "$schema": "http://json-schema.org/draft-06/schema#", "definitions": { "Encryption": { "type": ["object", "null"], "required": [], "oneOf": [ { "type": "object", "properties": { "EncryptionOn": { "type": "boolean", ...
/scenera.node-0.3.19.tar.gz/scenera.node-0.3.19/scenera/node/scenemark_schema.py
0.629775
0.48182
scenemark_schema.py
pypi
import logging from .logger import configure_logger from .validators import ValidationError from .spec import DataType logger = logging.getLogger(__name__) logger = configure_logger(logger, debug=True) def get_my_version_number(scenemark): """ Used internally to infer the Node's VersionNumer in the node s...
/scenera.node-0.3.19.tar.gz/scenera.node-0.3.19/scenera/node/utils.py
0.712632
0.401072
utils.py
pypi
*Please note:* at the moment this package is being actively developed and might not always be stable. # SCEPIA - Single Cell Epigenome-based Inference of Activity SCEPIA predicts transcription factor motif activity from single cell RNA-seq data. It uses computationally inferred epigenomes of single cells to identify ...
/scepia-0.5.0.tar.gz/scepia-0.5.0/README.md
0.92427
0.947235
README.md
pypi
from six import string_types from sceptre.hooks import Hook from sceptre.exceptions import InvalidHookArgumentTypeError from sceptre.exceptions import InvalidHookArgumentSyntaxError from sceptre.exceptions import InvalidHookArgumentValueError class ASGScalingProcesses(Hook): """ Resumes or suspends autoscali...
/sceptre-aws-asg-scaling-processes-hook-1.0.1.tar.gz/sceptre-aws-asg-scaling-processes-hook-1.0.1/hook/asg_scaling_processes.py
0.76769
0.230454
asg_scaling_processes.py
pypi
import abc import six import logging import shlex from botocore.exceptions import ClientError from sceptre.resolvers import Resolver from sceptre.exceptions import DependencyStackMissingOutputError from sceptre.exceptions import StackDoesNotExistError TEMPLATE_EXTENSION = ".yaml" @six.add_metaclass(abc.ABCMeta) c...
/sceptre-aws-stackoutput-external-resolver-1.0.0.tar.gz/sceptre-aws-stackoutput-external-resolver-1.0.0/resolver/stack_output_external.py
0.760651
0.235988
stack_output_external.py
pypi
import abc import six import logging from botocore.exceptions import ClientError from sceptre.resolvers import Resolver from sceptre.helpers import normalise_path, sceptreise_path from sceptre.exceptions import DependencyStackMissingOutputError from sceptre.exceptions import StackDoesNotExistError TEMPLATE_EXTENSIO...
/sceptre-aws-stackoutput-resolver-1.0.0.tar.gz/sceptre-aws-stackoutput-resolver-1.0.0/resolver/stack_output.py
0.776623
0.254631
stack_output.py
pypi
import importlib.machinery import importlib.util import sys from pathlib import Path from typing import Type from sceptre import exceptions from sceptre_cdk_handler.cdk_builder import SceptreCdkStack class ClassImporter: def import_class(self, template_path: Path, class_name: str) -> Type[SceptreCdkStack]: ...
/sceptre-cdk-handler-2.1.0.tar.gz/sceptre-cdk-handler-2.1.0/sceptre_cdk_handler/class_importer.py
0.575349
0.230075
class_importer.py
pypi
import functools import logging import threading import time import boto3 from os import environ from botocore.exceptions import ClientError from .helpers import mask_key from .exceptions import InvalidAWSCredentialsError, RetryLimitExceededError def _retry_boto_call(func): """ Retries a Boto3 call up to 30...
/sceptre-core-0.0.2.tar.gz/sceptre-core-0.0.2/sceptre/connection_manager.py
0.723993
0.162347
connection_manager.py
pypi
from os import path from sceptre.helpers import normalise_path class SceptreContext(object): """ SceptreContext is a place that holds data that is relevant to the project, including references to the project paths such as the path to your Sceptre project, templates path, config path, and the default ...
/sceptre-core-0.0.2.tar.gz/sceptre-core-0.0.2/sceptre/context.py
0.81468
0.301041
context.py
pypi
import logging from typing import Mapping, Sequence from sceptre.connection_manager import ConnectionManager from sceptre.helpers import get_external_stack_name from sceptre.helpers import sceptreise_path from sceptre.hooks import HookProperty from sceptre.resolvers import ResolvableProperty from sceptre.template imp...
/sceptre-core-0.0.2.tar.gz/sceptre-core-0.0.2/sceptre/stack.py
0.909689
0.384017
stack.py
pypi
from os import sep from functools import partial import six import yaml from sceptre.exceptions import PathConversionError def get_external_stack_name(project_code, stack_name): """ Returns the name given to a stack in CloudFormation. :param project_code: The project code, as defined in config.yaml. ...
/sceptre-core-0.0.2.tar.gz/sceptre-core-0.0.2/sceptre/helpers.py
0.844409
0.360911
helpers.py
pypi
import imp import logging import os import sys import threading import botocore import jinja2 from .exceptions import UnsupportedTemplateFileTypeError from .exceptions import TemplateSceptreHandlerError class Template(object): """ Template represents an AWS CloudFormation template. It is responsible for ...
/sceptre-core-0.0.2.tar.gz/sceptre-core-0.0.2/sceptre/template.py
0.672762
0.150247
template.py
pypi
class SceptreException(Exception): """ Base class for all Sceptre errors """ pass class ProjectAlreadyExistsError(SceptreException): """ Error raised when Sceptre project already exists. """ pass class InvalidSceptreDirectoryError(SceptreException): """ Error raised if a sc...
/sceptre-core-0.0.2.tar.gz/sceptre-core-0.0.2/sceptre/exceptions.py
0.780955
0.158337
exceptions.py
pypi
import abc import logging from functools import wraps from sceptre.context import SceptreContext from sceptre.helpers import _call_func_on_values class HookData(object): def __init__(self, context): if isinstance(context, SceptreContext): self.context = context class Hook(HookData): """...
/sceptre-core-0.0.2.tar.gz/sceptre-core-0.0.2/sceptre/hooks/__init__.py
0.790126
0.255164
__init__.py
pypi
import logging import networkx as nx from sceptre.exceptions import CircularDependenciesError class StackGraph(object): """ A Directed Acyclic Graph representing the relationship between a Stack and its dependencies. Responsible for initalising the graph based on a set of Stacks. """ def __in...
/sceptre-core-0.0.2.tar.gz/sceptre-core-0.0.2/sceptre/config/graph.py
0.875121
0.458106
graph.py
pypi
import collections import datetime import fnmatch import logging from os import environ, path, walk from pkg_resources import iter_entry_points import yaml import jinja2 from packaging.specifiers import SpecifierSet from packaging.version import Version from sceptre import __version__ from sceptre.exceptions import I...
/sceptre-core-0.0.2.tar.gz/sceptre-core-0.0.2/sceptre/config/reader.py
0.573678
0.178454
reader.py
pypi
import abc import logging from contextlib import contextmanager import six from sceptre.context import SceptreContext from sceptre.helpers import _call_func_on_values class RecursiveGet(Exception): pass class ResolverData(object): def __init__(self, context): if isinstance(context, SceptreContext)...
/sceptre-core-0.0.2.tar.gz/sceptre-core-0.0.2/sceptre/resolvers/__init__.py
0.781414
0.200949
__init__.py
pypi
from os import path, walk from sceptre.exceptions import ConfigFileNotFoundError from sceptre.config.graph import StackGraph from sceptre.config.reader import ConfigReader from sceptre.plan.executor import SceptrePlanExecutor from sceptre.helpers import sceptreise_path class SceptrePlan(object): def __init__(se...
/sceptre-core-0.0.2.tar.gz/sceptre-core-0.0.2/sceptre/plan/plan.py
0.77907
0.270334
plan.py
pypi
import logging import time from os import path from datetime import datetime, timedelta import botocore import json from dateutil.tz import tzutc from sceptre.connection_manager import ConnectionManager from sceptre.hooks import add_stack_hooks from sceptre.stack_status import StackStatus from sceptre.stack_status i...
/sceptre-core-0.0.2.tar.gz/sceptre-core-0.0.2/sceptre/plan/actions.py
0.579876
0.233095
actions.py
pypi
import inspect import json from datetime import datetime from sceptre.hooks import Hook from sceptre.plan.actions import StackActions from hook.constants import GIT_BRANCH_NAME, JOB_ID, AWS_REGION, AWS_ACCOUNT_ID, APP_VPC, LAST_GIT_COMMIT_MESSAGE class CustomHook(Hook): def __init__(self, *args, **kwargs): ...
/sceptre-deployment-hook-0.0.16.tar.gz/sceptre-deployment-hook-0.0.16/hook/hook.py
0.428114
0.16529
hook.py
pypi
from argparse import ArgumentParser from shlex import split as args_split from sceptre.resolvers import Resolver from kubernetes import client from kubernetes import config __author__ = "Gustavo Pantuza <gustavopantuza@gmail.com>" class EksLbUri(Resolver): """ Resolver for getting Load Balancer DNS on a K...
/sceptre_eks_lb_resolver-0.2.1-py3-none-any.whl/resolver/eks_lb_uri.py
0.866669
0.211824
eks_lb_uri.py
pypi
import abc import base64 import six import logging from botocore.exceptions import ClientError from sceptre.resolvers import Resolver from resolver.exceptions import ParameterNotFoundError TEMPLATE_EXTENSION = ".yaml" @six.add_metaclass(abc.ABCMeta) class KmsBase(Resolver): """ A abstract base class which...
/sceptre-kms-resolver-1.0.2.tar.gz/sceptre-kms-resolver-1.0.2/resolver/kms.py
0.768733
0.160661
kms.py
pypi
import jsonschema import yaml import zipfile import urllib.request import urllib.error import tempfile import shutil from os import path import sceptre.template_handlers.file from sceptre.template_handlers import TemplateHandler from sceptre.helpers import normalise_path from sceptre.exceptions import SceptreExcepti...
/sceptre_package_template_handler-0.1.1.tar.gz/sceptre_package_template_handler-0.1.1/package_template_handler.py
0.562177
0.159054
package_template_handler.py
pypi
import requests from validator_collection import checkers from sceptre.resolvers import Resolver from sceptre.exceptions import SceptreException from jsonschema import validate from requests.auth import HTTPBasicAuth VALID_AUTH_TYPES = ["basic"] RESOLVER_ARGS_SCHEMA = { "type": "object", "properties": { ...
/sceptre_request_resolver-0.4.0.tar.gz/sceptre_request_resolver-0.4.0/resolver/request.py
0.664867
0.191384
request.py
pypi
# README ## What is this? `sceptre-sam-handler` is a TemplateHandler for Sceptre (versions 2.7 and up) that lets you use an AWS SAM template (and its associated project) as a stack's template. This template handler will run `sam build` and then `sam package` from the indicated SAM Template's directory in order to com...
/sceptre-sam-handler-1.0.0.tar.gz/sceptre-sam-handler-1.0.0/README.md
0.477067
0.768473
README.md
pypi
import posixpath import subprocess import sys import tempfile from pathlib import Path from sceptre.connection_manager import ConnectionManager from sceptre.exceptions import UnsupportedTemplateFileTypeError from sceptre.template_handlers import TemplateHandler, helper class SamInvoker: def __init__( sel...
/sceptre-sam-handler-1.0.0.tar.gz/sceptre-sam-handler-1.0.0/sam_handler/handler.py
0.640636
0.188436
handler.py
pypi
import abc import six import logging from botocore.exceptions import ClientError from sceptre.resolvers import Resolver from resolver.exceptions import ParameterNotFoundError TEMPLATE_EXTENSION = ".yaml" @six.add_metaclass(abc.ABCMeta) class SsmBase(Resolver): """ A abstract base class which provides metho...
/sceptre-ssm-resolver-1.2.2.tar.gz/sceptre-ssm-resolver-1.2.2/resolver/ssm.py
0.75985
0.196518
ssm.py
pypi
import abc import six import logging from botocore.exceptions import ClientError from sceptre.hooks import Hook @six.add_metaclass(abc.ABCMeta) class StackTerminationProtection(Hook): """ Hook for cloudformation stack protection. :param argument: The stack termination protection setting :type argu...
/sceptre-stack-termination-protection-hook-1.1.0.tar.gz/sceptre-stack-termination-protection-hook-1.1.0/hook/stack_termination_protection.py
0.550124
0.18508
stack_termination_protection.py
pypi
# Sceptre [![CircleCI](https://img.shields.io/circleci/build/github/Sceptre/sceptre?logo=circleci)](https://app.circleci.com/pipelines/github/Sceptre) [![Docker Image Version (latest semver)](https://img.shields.io/docker/v/sceptreorg/sceptre?logo=docker&sort=semver)](https://hub.docker.com/r/sceptreorg/sceptre) [![Py...
/sceptre-4.2.2.tar.gz/sceptre-4.2.2/README.md
0.593963
0.925129
README.md
pypi
import re # The regex captures any path information before the {proxy+}. This is to support paths that have other params in # them. Otherwise the regex will match the first { with the last +} giving incorrect results. # Example: /id/{id}/user/{proxy+}. g<1> = '/id/{id}/user/' g<2> = 'proxy' PROXY_PATH_PARAMS_ESCAPED =...
/scf-0.2.8.tar.gz/scf-0.2.8/tcfcli/cmds/local/libs/apigw/path_converter.py
0.742702
0.226121
path_converter.py
pypi
from .tcsam_macro import TcSamMacro as macro from .tcsam_macro import TriggerMacro as trmacro apigw_schema = { "$schema": "http://json-schema.org/draft-07/schema#", "$id": "tcsam.ns.func.event.apigw", "type": "object", "properties": { macro.Type: {"const": macro.TrApiGw}, macro.Propertie...
/scf-0.2.8.tar.gz/scf-0.2.8/tcfcli/common/tcsam/event.py
0.408631
0.343452
event.py
pypi
from .event import apigw_schema from .event import cmq_schema from .event import timer_schema from .event import cos_schema from .event import ckafka_schema from .tcsam_macro import TcSamMacro as macro func_schema = { "$schema": "http://json-schema.org/draft-07/schema#", "$id": "tcsam.resource.ns.func", "...
/scf-0.2.8.tar.gz/scf-0.2.8/tcfcli/common/tcsam/function.py
0.406273
0.207716
function.py
pypi
from datetime import datetime import json import os import random from warnings import warn class LocalDataManager: _runinfofile = 'runinfo.json' _samplesheetsfile = 'samplesheets.json' _solexarunsfile = 'solexaruns.json' _solexaflowcellsfile = 'solexaflowcells.json' _pipelinerunsfile = 'pipeline...
/scgpm_seqresults_dnanexus-0.5.0-py3-none-any.whl/scgpm_lims/components/local.py
0.507812
0.174868
local.py
pypi
import re # These are convenience classes. You can work directly with the Connection class # and the data objects that it returns, but any methods for working with those # data objects live here. class SolexaRun: STATUS_SEQUENCING = 'sequencing' STATUS_SEQUENCING_DONE = 'sequencing_done' STATUS_SEQUENCIN...
/scgpm_seqresults_dnanexus-0.5.0-py3-none-any.whl/scgpm_lims/components/models.py
0.612426
0.184859
models.py
pypi
# scGPT This is the official codebase for **scGPT: Towards Building a Foundation Model for Single-Cell Multi-omics Using Generative AI**. [Preprint](https://www.biorxiv.org/content/10.1101/2023.04.30.538439) [Documentation](https://scgpt.readthedocs.io/en/latest/) !UPDATE: We have released several new pretrained sc...
/scGPT-0.1.3.tar.gz/scGPT-0.1.3/README.md
0.517815
0.97631
README.md
pypi
# scgraph [![PyPI version](https://badge.fury.io/py/scgraph.svg)](https://badge.fury.io/py/scgraph) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) Supply chain graph package for Python ![scgraph](https://raw.githubusercontent.com/connor-makowski/scgraph/ma...
/scgraph-1.0.1.tar.gz/scgraph-1.0.1/README.md
0.728941
0.985129
README.md
pypi
import scanpy as sc import numpy as np import pandas as pd import dgl import torch from .graph import construct_gene_graph, add_degree def preprocess(adata, filter_min_counts=True, size_factors=True, normalize_input=False, logtrans_input=True): if size_factors or normalize_input or logtrans_input: adata.ra...
/data/data_utils.py
0.489503
0.459015
data_utils.py
pypi
import math from django import template from django.template import RequestContext from django.template.loader import get_template from django.utils.safestring import mark_safe from django.utils.translation import ugettext as _ from django.core.urlresolvers import reverse from askbot.utils import functions from askbot....
/sch-askbot-1.0.1.tar.gz/sch-askbot-1.0.1/askbot/templatetags/extra_tags.py
0.40439
0.189352
extra_tags.py
pypi
from __future__ import print_function import sys from django.core.management.base import NoArgsCommand from django.db import transaction from askbot import signals from askbot.utils import console class NoArgsJob(NoArgsCommand): """Base class for a job command - the one that runs the same operation on sets...
/sch-askbot-1.0.1.tar.gz/sch-askbot-1.0.1/askbot/management/base.py
0.430387
0.177704
base.py
pypi
from django.core.management.base import NoArgsCommand from django.conf import settings as django_settings from django.utils import translation from askbot import const from askbot.mail.messages import ModerationQueueNotification from askbot.models import Activity from askbot.models import User from askbot.models.user i...
/sch-askbot-1.0.1.tar.gz/sch-askbot-1.0.1/askbot/management/commands/askbot_send_moderation_alerts.py
0.584627
0.16896
askbot_send_moderation_alerts.py
pypi
from django.db import models class Badge(models.Model): id = models.IntegerField(primary_key=True) class_type = models.IntegerField(null=True) name = models.CharField(max_length=50, null=True) description = models.TextField(null=True) single = models.NullBooleanField(null=True) secret = models.N...
/sch-askbot-1.0.1.tar.gz/sch-askbot-1.0.1/askbot/importers/stackexchange/models.py
0.527073
0.190479
models.py
pypi
from __future__ import unicode_literals from django.db import models, migrations from django.conf import settings class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( name=...
/sch-askbot-1.0.1.tar.gz/sch-askbot-1.0.1/askbot/deps/group_messaging/migrations/0001_initial.py
0.622
0.165762
0001_initial.py
pypi
import logging from django.conf import settings as django_settings from django.contrib.auth.models import User from django.forms import EmailField, ValidationError from askbot.conf import settings as askbot_settings from askbot.deps.django_authopenid.models import UserAssociation from askbot.signals import user_registe...
/sch-askbot-1.0.1.tar.gz/sch-askbot-1.0.1/askbot/deps/django_authopenid/ldap_auth.py
0.409457
0.166845
ldap_auth.py
pypi
__version__ = "0.1.1" __author__ = 'Joe Gregorio' __email__ = "joe@bitworking.org" __credits__ = "" def parse_mime_type(mime_type): """Carves up a mime_type and returns a tuple of the (type, subtype, params) where 'params' is a dictionary of all the parameters for the media range. For example,...
/sch-askbot-1.0.1.tar.gz/sch-askbot-1.0.1/askbot/deps/django_authopenid/mimeparse.py
0.688468
0.325976
mimeparse.py
pypi
from django import template from django.contrib.sites.models import Site from django.core import urlresolvers from askbot.deps.livesettings import config_value from askbot.deps.livesettings.utils import url_join import logging log = logging.getLogger('configuration.config_tags') register = template.Library() def for...
/sch-askbot-1.0.1.tar.gz/sch-askbot-1.0.1/askbot/deps/livesettings/templatetags/config_tags.py
0.425128
0.166066
config_tags.py
pypi
from askbot.conf import settings as askbot_settings import simplejson def get_leaf_index(tree, leaf_name): children = tree[1] for index, child in enumerate(children): if child[0] == leaf_name: return index return None def _get_subtree(tree, path): clevel = tree for pace in path...
/sch-askbot-1.0.1.tar.gz/sch-askbot-1.0.1/askbot/utils/category_tree.py
0.520984
0.422386
category_tree.py
pypi
import datetime import os import re import random import simplejson import time import warnings import zlib import zipfile from django.core.validators import validate_email from django.utils.translation import ugettext as _ from django.utils.translation import ungettext from django.utils.html import escape from django....
/sch-askbot-1.0.1.tar.gz/sch-askbot-1.0.1/askbot/utils/functions.py
0.428712
0.154823
functions.py
pypi
class LazyList(list): def __init__(self, get_data): self.data = get_data def flatten(x): """ Returns a single, flat list which contains all elements retrieved from the sequence and all recursively contained sub-sequences (iterables). Examples: >>> [1, 2, [3, 4], (5, 6)] [1, 2,...
/sch-askbot-1.0.1.tar.gz/sch-askbot-1.0.1/askbot/utils/lists.py
0.809163
0.677647
lists.py
pypi
import askbot from askbot.utils.translation import get_language from django.db import connection, models #mapping of "django" language names to postgres LANGUAGE_NAMES = { 'da': 'danish', 'de': 'german', 'en': 'english', 'es': 'spanish', 'fi': 'finnish', 'fr': 'french', 'h...
/sch-askbot-1.0.1.tar.gz/sch-askbot-1.0.1/askbot/search/postgresql/__init__.py
0.406626
0.217795
__init__.py
pypi
import askbot from django.conf import settings from django.utils.translation import override from haystack import indexes from .utils import language_from_alias class BaseIndex(indexes.SearchIndex): i18n_enabled = askbot.is_multilingual() text = indexes.CharField(document=True, use_template=True) def...
/sch-askbot-1.0.1.tar.gz/sch-askbot-1.0.1/askbot/search/haystack/base.py
0.500244
0.204978
base.py
pypi
from django.db.models import signals as django_signals from haystack.signals import RealtimeSignalProcessor from askbot import signals as askbot_signals class AskbotRealtimeSignalProcessor(RealtimeSignalProcessor): ''' Based on haystack RealTimeSignalProcessor with some modifications to work with askbot...
/sch-askbot-1.0.1.tar.gz/sch-askbot-1.0.1/askbot/search/haystack/signals.py
0.435301
0.3039
signals.py
pypi
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from ._jsii import * import aws_cdk import aws_cdk.aws_ec2 import aws_cdk.aws_iam import aws_cdk.aws_lambda import aws_cdk.aws_logs import aws_cdk.aws_rds import aws_cdk.aws_sqs import aws_cdk...
/schadem_cdk_construct_csv_to_aurora-0.0.0-py3-none-any.whl/schadem_cdk_construct_csv_to_aurora/__init__.py
0.650245
0.212722
__init__.py
pypi
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from ._jsii import * import aws_cdk import aws_cdk.aws_iam import aws_cdk.aws_lambda import aws_cdk.aws_logs import aws_cdk.aws_sqs import aws_cdk.aws_stepfunctions import aws_cdk.aws_stepfunc...
/schadem-cdk-construct-sfn-comprehend-classifier-0.0.1.tar.gz/schadem-cdk-construct-sfn-comprehend-classifier-0.0.1/src/schadem_cdk_construct_sfn_comprehend_classifier/__init__.py
0.639961
0.184217
__init__.py
pypi
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from ._jsii import * import aws_cdk import aws_cdk.aws_iam import aws_cdk.aws_lambda import aws_cdk.aws_logs import aws_cdk.aws_stepfunctions import constructs class TextractGenerateCSV( ...
/schadem-cdk-construct-sfn-generate-csv-0.0.3.tar.gz/schadem-cdk-construct-sfn-generate-csv-0.0.3/src/schadem_cdk_construct_sfn_generate_csv/__init__.py
0.657538
0.206014
__init__.py
pypi
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from ._jsii import * import aws_cdk.aws_stepfunctions import constructs @jsii.data_type( jsii_type="schadem-cdk-construct-sfn-idp-decider.TextractDPPOCDeciderProps", jsii_struct_base...
/schadem-cdk-construct-sfn-idp-decider-0.0.3.tar.gz/schadem-cdk-construct-sfn-idp-decider-0.0.3/src/schadem_cdk_construct_sfn_idp_decider/__init__.py
0.683208
0.190347
__init__.py
pypi
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from ._jsii import * import aws_cdk.aws_stepfunctions import constructs class TextractAsyncToJSON( aws_cdk.aws_stepfunctions.StateMachineFragment, metaclass=jsii.JSIIMeta, jsii_t...
/schadem-cdk-construct-sfn-textract-output-config-to-json-0.0.0.tar.gz/schadem-cdk-construct-sfn-textract-output-config-to-json-0.0.0/src/schadem_cdk_construct_sfn_textract_output_config_to_json/__init__.py
0.729905
0.193662
__init__.py
pypi
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from ._jsii import * import aws_cdk import aws_cdk.aws_dynamodb import aws_cdk.aws_iam import aws_cdk.aws_lambda import aws_cdk.aws_logs import aws_cdk.aws_sns import aws_cdk.aws_sqs import aw...
/schadem_cdk_construct_textract_generic_async-0.0.4-py3-none-any.whl/schadem_cdk_construct_textract_generic_async/__init__.py
0.661158
0.155046
__init__.py
pypi
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from ._jsii import * import aws_cdk import aws_cdk.aws_iam import aws_cdk.aws_lambda import aws_cdk.aws_logs import aws_cdk.aws_sqs import aws_cdk.aws_stepfunctions import aws_cdk.aws_stepfunc...
/schadem_cdk_construct_textract_generic_sync-0.0.0-py3-none-any.whl/schadem_cdk_construct_textract_generic_sync/__init__.py
0.659295
0.211071
__init__.py
pypi
# python-scheckcli Python CLI application to compare schema of two yaml objects. ## Getting started To make it easy for you to get started with GitLab, here's a list of recommended next steps. Already a pro? Just edit this README.md and make it your own. Want to make it easy? [Use the template at the bottom](#editi...
/scheckcli-1.1.0.tar.gz/scheckcli-1.1.0/README.md
0.460774
0.838151
README.md
pypi
from datetime import timedelta from functools import partial import sched __all__ = ["scheduler"] _sentinel = object() class scheduler(sched.scheduler): """A subclass of the `sched.scheduler` class from the standard library. This subclass adds additional functionality to the `scheduler` class, includi...
/sched2-0.5.0.tar.gz/sched2-0.5.0/sched2.py
0.905708
0.42322
sched2.py
pypi
import copy from .utils.cst import EMPTY, START, NONE, SINK, SELF, PLOT, END from .utils.dsp import ( bypass, combine_dicts, selector, parent_func, kk_dict ) from .utils.gen import counter from .utils.base import Base from .utils.utl import get_unused_node_id __all__ = ['Dispatcher'] __author__ = 'Vincenzo Arcidia...
/schedula-core-1.4.9.tar.gz/schedula-core-1.4.9/schedula/dispatcher.py
0.80271
0.559711
dispatcher.py
pypi
import math import inspect import functools import itertools import collections import copy as _copy from .cst import START from .gen import Token from .base import Base from .exc import DispatcherError from dataclasses import dataclass __author__ = 'Vincenzo Arcidiacono <vinci1it2000@gmail.com>' def stlp(s): ""...
/schedula-core-1.4.9.tar.gz/schedula-core-1.4.9/schedula/utils/dsp.py
0.785309
0.280465
dsp.py
pypi
import copy from .cst import NONE class Base: """Base class for dispatcher objects.""" def __new__(cls, *args, **kwargs): return super(Base, cls).__new__(cls) def __deepcopy__(self, memo): cls = self.__class__ memo[id(self)] = result = cls.__new__(cls) for k, v in self.__...
/schedula-core-1.4.9.tar.gz/schedula-core-1.4.9/schedula/utils/base.py
0.893617
0.205436
base.py
pypi
import collections from .gen import counter from .cst import EMPTY, NONE from .dsp import SubDispatch, bypass, selector, stlp, parent_func, NoSub, inf __author__ = 'Vincenzo Arcidiacono <vinci1it2000@gmail.com>' def add_func_edges(dsp, fun_id, nodes_bunch, edge_weights=None, input=True, data_nodes...
/schedula-core-1.4.9.tar.gz/schedula-core-1.4.9/schedula/utils/alg.py
0.799521
0.534612
alg.py
pypi
from .cst import EMPTY from ..dispatcher import Dispatcher def _init(obj, memo=None): return obj.register(memo=memo) if isinstance(obj, Blueprint) else obj def _safe_call(fn, *args, memo=None, **kwargs): return fn( *(_init(a, memo) for a in args), **{k: _init(v, memo=memo) for k, v in kwargs...
/schedula-core-1.4.9.tar.gz/schedula-core-1.4.9/schedula/utils/blue.py
0.859339
0.161717
blue.py
pypi
class DiGraph: __slots__ = 'nodes', 'succ', 'pred' def __reduce__(self): return self.__class__, (self.nodes, self.succ) def __init__(self, nodes=None, adj=None): if nodes is None and adj is None: self.nodes = {} self.succ = {} self.pred = {} else...
/schedula-core-1.4.9.tar.gz/schedula-core-1.4.9/schedula/utils/graph.py
0.610221
0.272649
graph.py
pypi
import time import logging import collections from .base import Base from .imp import finalize, Future from .cst import START, NONE, PLOT from heapq import heappop, heappush from .dsp import stlp, get_nested_dicts, inf from .alg import get_full_pipe, _sort_sk_wait_in from .exc import DispatcherError, DispatcherAbort, S...
/schedula-core-1.4.9.tar.gz/schedula-core-1.4.9/schedula/utils/sol.py
0.644673
0.160003
sol.py
pypi
from ..imp import Future from ..cst import EMPTY from .factory import ExecutorFactory from ..exc import DispatcherError, DispatcherAbort from ..dsp import parent_func, SubDispatch, NoSub, run_model def _sync_executor(): from .executors import PoolExecutor, Executor # noinspection PyTypeChecker return Pool...
/schedula-core-1.4.9.tar.gz/schedula-core-1.4.9/schedula/utils/asy/__init__.py
0.583085
0.261897
__init__.py
pypi
from typing import Any, Optional import numbers import re from bisect import bisect, bisect_left from collections.abc import Iterable from datetime import datetime, timedelta, date from calendar import monthrange DAYNAMES = "sun", "mon", "tue", "wed", "thu", "fri", "sat" WEEKDAYS = dict(zip(DAYNAMES, range(7))) CRON...
/schedule_cronjob-1.3.1-py3-none-any.whl/schedule/crontab.py
0.903324
0.356391
crontab.py
pypi
import datetime import calendar import functools def nth_day_yearly(n, job_func, *args, **kwargs): """ addition to schedule.every().day.do() or schedule.every().day.at(time).do() with this function, its possible to define the day of the year, where the function works example: ...
/schedule_filter-0.2.1.tar.gz/schedule_filter-0.2.1/schedule_filter/__init__.py
0.603581
0.632304
__init__.py
pypi
import threading import uuid import re import time from datetime import datetime, timedelta import math from .exceptions import TaskNameDuplicateError from .exceptions import TaskNotFoundError from .exceptions import TimeFormatError from .exceptions import OperationFailError class ScheduleManager: """Task schedu...
/schedule_manager-0.1.1-py3-none-any.whl/schedule_manager/manager.py
0.801081
0.154983
manager.py
pypi
from datetime import datetime class Lesson: __current_string = '' def __init__(self, string_to_parse): self.discipline = '' self.room = '' self.building = '0' self.groups = [Lesson.get_course(string_to_parse[:6].strip())] self.__current_string = string_to_parse[6:].str...
/schedule_parser_portal_petrocollege-0.0.6.tar.gz/schedule_parser_portal_petrocollege-0.0.6/src/Lesson.py
0.571169
0.25389
Lesson.py
pypi
import time from abc import ABCMeta, abstractmethod DEFAULT_INTERVAL = 5.0 class Scheduled_poller(object): """ Base class for classes that polls a task regularly, with a constant minimum time interval between each poll. Warning: Each polling interval is the maximum of a) polling_interval_secs and b) the t...
/scheduled_poller-1.3-py3-none-any.whl/scheduled_poller/scheduled_poller.py
0.708818
0.307839
scheduled_poller.py
pypi
import time from abc import ABCMeta, abstractmethod DEFAULT_INTERVAL = 5.0 class Poller(object): """ Base class for classes that polls a task regularly, with a constant minimum time interval between each poll. Warning: Each polling interval is the maximum of a) polling_interval_secs and b) the time taken ...
/scheduled_poller-1.3-py3-none-any.whl/scheduled_poller/poller.py
0.699357
0.3295
poller.py
pypi
import time from abc import ABCMeta, abstractmethod DEFAULT_INTERVAL = 5.0 class Poller(object): """ Base class for classes that polls a task regularly, with a constant minimum time interval between each poll. Warning: Each polling interval is the maximum of a) polling_interval_secs and b) the time taken ...
/scheduled_poller-1.3-py3-none-any.whl/poller/poller.py
0.699357
0.3295
poller.py
pypi
from datetime import datetime from enum import Enum from copy import copy from .utils import get_biggest_value_less_or_equal_to, get_smallest_value_greater_or_equal_to, last, first, \ weekday_num, weekday_and_num_to_day, num_days_in_month, weekday_and_week_to_day, week_num, max_week_num class DateTimeHolder: ...
/scheduled_task-1.0.1.tar.gz/scheduled_task-1.0.1/scheduled_task/timeconverter.py
0.850453
0.391988
timeconverter.py
pypi
from datetime import datetime from calendar import monthrange def get_biggest_value_less_or_equal_to(iter: list or range, value): """Returns the biggest element from the list that is less or equal to the value. Return None if not found """ if type(iter) == list: i = [x for x in iter if x <= value]...
/scheduled_task-1.0.1.tar.gz/scheduled_task-1.0.1/scheduled_task/utils.py
0.817028
0.667751
utils.py
pypi
import os import argparse import xmltodict import pandas as pd import re class CLIHandler: def __init__(self): self.columns = [ "task_path", "task_name", "enabled", "hidden", "triggers", "exec_command", "exec_args", ...
/scheduled_tasks_reader-0.1.1.tar.gz/scheduled_tasks_reader-0.1.1/scheduled_tasks_reader.py
0.571049
0.215691
scheduled_tasks_reader.py
pypi
from pathlib import Path from scheduler_tools.types import PrefDict class PrefectPreferences: """ This class handles reading of a ~/.prefect/ssh.json file. This file has settings for the name of the gateway, the username to authenticate with, the path to the local ssh identity file. """ def _...
/scheduler_tools-0.1.5.tar.gz/scheduler_tools-0.1.5/scheduler_tools/PrefectPreferences.py
0.722918
0.268027
PrefectPreferences.py
pypi
<p align="center"> <a href="https://gitlab.com/DigonIO/scheduler"><img alt="scheduler" src="https://gitlab.com/DigonIO/scheduler/-/raw/master/doc/_assets/logo_name.svg" width="60%"></a> </p> <p>A simple in-process python scheduler library with asyncio, threading and timezone support. Schedule tasks by their time cycl...
/scheduler-0.8.4.tar.gz/scheduler-0.8.4/README.md
0.635562
0.959421
README.md
pypi
from timeit import default_timer __all__ = ["Scheduler"] class Scheduler(object): def __init__(self): self.remove_all() def add(self, interval, count, callback, *args, **kwargs): """ Append a task to the scheduler and return the assigned ID. Arguments: ...
/scheduler2-1.0.2a1.zip/scheduler-1.0.0a1/scheduler/scheduler.py
0.787523
0.252799
scheduler.py
pypi
import argparse from datetime import datetime import json import logging from schedules_tools import jsondate, discovery from schedules_tools.converter import ScheduleConverter from schedules_tools.models import Task, Schedule import sys log = logging.getLogger(__name__) REPORT_NO_CHANGE = '' REPORT_ADDED = '_added...
/schedules_tools-8.16.1-py3-none-any.whl/schedules_tools/diff.py
0.547222
0.207958
diff.py
pypi
# Test as "python -m schedules_tools.batches.schedule_batch" import argparse import re from schedules_tools.batches.utils import initialize_ss_handler, load_template from schedules_tools.models import Task from smartsheet.models import Row, Cell, ObjectValue, PredecessorList, Predecessor, Duration GA_NAME_REGEX =...
/schedules_tools-8.16.1-py3-none-any.whl/schedules_tools/batches/schedule_batch.py
0.667256
0.295014
schedule_batch.py
pypi
from schedules_tools.schedule_handlers import ScheduleHandlerBase import logging from lxml.html import etree log = logging.getLogger(__name__) css = """ a[href=""] {display:none} table.schedule { border-collapse: collapse; } table.schedule th, table.schedule td { border: 2px solid black; padding: 3px 5...
/schedules_tools-8.16.1-py3-none-any.whl/schedules_tools/schedule_handlers/html.py
0.548432
0.169097
html.py
pypi
from datetime import datetime import logging import pytz log = logging.getLogger(__name__) # Handle implementation must be in format ScheduleHandler_format # where 'format' is used as a uniq label for the format and # 'ScheduleHandler' can be whatever. class ScheduleHandlerBase(object): handle = None sched...
/schedules_tools-8.16.1-py3-none-any.whl/schedules_tools/schedule_handlers/__init__.py
0.405096
0.164516
__init__.py
pypi
import io import qrcode from PIL import Image, ImageDraw, ImageFont, ImageOps from qrcode.image.styledpil import StyledPilImage from qrcode.image.styles.colormasks import RadialGradiantColorMask from qrcode.image.styles.moduledrawers import RoundedModuleDrawer from schedulesy_qrcode.config import FONT_CONF, QR_CONF ...
/schedulesy_qrcode-1.0.3-py3-none-any.whl/schedulesy_qrcode/generate.py
0.565539
0.263608
generate.py
pypi
from abc import ABC, abstractmethod import math class Scheduler(ABC): """ Base abstract class for all schedulers """ def __init__(self, start_step: int, stop_step: int, start_value: float, stop_value: float): if start_step >= stop_step: raise AttributeError('In the scheduler, star...
/scheduling_utils-0.1.2.tar.gz/scheduling_utils-0.1.2/scheduling_utils/schedulers.py
0.8758
0.304617
schedulers.py
pypi
from typing import Any, Dict, NoReturn, TypeVar, Union, Type, Tuple, Callable, Iterable ObjType = TypeVar('ObjType') SchemaType = Union[str, Type, Tuple[Type], Dict[Union[str, Type], Any]] def _get_type(sch: Dict[Union[str, Type], Any]) -> Any: return sch[type if type in sch else 'type'] def _default(value: An...
/schema_checker-1.1.1.tar.gz/schema_checker-1.1.1/schema_checker/jschema.py
0.629661
0.227491
jschema.py
pypi
from typing import List from pprint import pformat from baseblock import Stopwatch from baseblock import BaseObject from schema_classification.dto import NormalizedSchema from schema_classification.dto import MappingResultDict from schema_classification.dmo import FilterIncludeAllOf from schema_classification.dmo i...
/schema_classification-0.1.8-py3-none-any.whl/schema_classification/svc/filter_mapping.py
0.813313
0.242329
filter_mapping.py
pypi
from typing import List from typing import Dict from typing import Any from pprint import pprint from collections import defaultdict from baseblock import BaseObject from schema_classification.dto import ListOfDicts from schema_classification.dto import NormalizedSchema from schema_classification.dto import Mapping...
/schema_classification-0.1.8-py3-none-any.whl/schema_classification/svc/select_mapping.py
0.858896
0.316818
select_mapping.py
pypi
from typing import Dict from baseblock import FileIO from baseblock import BaseObject from schema_classification.dmo import IndexScoring from schema_classification.dmo import IndexExcludeAllOf from schema_classification.dmo import IndexExcludeOneOf from schema_classification.dmo import IndexIncludeAllOf from schema_c...
/schema_classification-0.1.8-py3-none-any.whl/schema_classification/svc/read_mapping.py
0.85814
0.214301
read_mapping.py
pypi
from pprint import pprint from pprint import pformat from typing import List from typing import Dict from baseblock import Stopwatch from baseblock import BaseObject from schema_classification.svc import ReadMapping from schema_classification.svc import FilterMapping from schema_classification.svc import SelectMappi...
/schema_classification-0.1.8-py3-none-any.whl/schema_classification/bp/schema_orchestrator.py
0.841468
0.354685
schema_orchestrator.py
pypi
from typing import Dict from baseblock import BaseObject from schema_classification.dto import Markers from schema_classification.dto import MappingResult class ConfidenceExcludeAllOf(BaseObject): """ Determine Confidence Level for Selected Mapping """ def __init__(self, mapping: Dict, ...
/schema_classification-0.1.8-py3-none-any.whl/schema_classification/dmo/confidence_exclude_allof.py
0.902588
0.282468
confidence_exclude_allof.py
pypi
from typing import Set from typing import List from typing import Dict from pprint import pformat from baseblock import Stopwatch from baseblock import BaseObject class FilterStartsWith(BaseObject): """ Check if Input Text Starts with Value Reference: https://github.com/grafflr/graffl-core/issues/2...
/schema_classification-0.1.8-py3-none-any.whl/schema_classification/dmo/filter_startswith.py
0.849222
0.297866
filter_startswith.py
pypi
from typing import List from typing import Dict from pprint import pprint from baseblock import Stopwatch from baseblock import BaseObject from schema_classification.dto import NormalizedSchema class FilterExcludeAllOf(BaseObject): """ Filter Classifications using EXCLUDE_ALL_OF Rulesets - Remove invalid...
/schema_classification-0.1.8-py3-none-any.whl/schema_classification/dmo/filter_exclude_allof.py
0.843122
0.283763
filter_exclude_allof.py
pypi