id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/LundPDFMaster-1.1.1.tar.gz/LundPDFMaster-1.1.1/lund_pdf_master/OfficeToPDFConverter.py
import os import traceback import requests import logging import concurrent.futures from rest_framework.exceptions import APIException class OfficeToPDFConverter: def __init__(self, public_key, secret_key): """ Initialize the converter with the public and secret keys. Parameters: p...
PypiClean
/selenium-webdriver-extender-0.0.0.tar.gz/selenium-webdriver-extender-0.0.0/src/_selenium_webdriver_extender/timer.py
import os import time import sys from typing import Callable from datetime import date, datetime, timedelta import logging import json def timer_function(func: Callable) -> None: """ Decorator function calculates the time it took function func to finish, result is printed out. Args: func (Callabl...
PypiClean
/omnipose_theme-1.1.2-py3-none-any.whl/qdarktheme/themes/light/palette.py
from qdarktheme.qtpy.QtGui import QColor, QPalette _palette = QPalette() # base _palette.setColor(QPalette.ColorRole.WindowText, QColor("#4d4d4d")) _palette.setColor(QPalette.ColorRole.Button, QColor("#f6f6f6")) _palette.setColor(QPalette.ColorRole.Text, QColor("#888888")) _palette.setColor(QPalette.ColorRole.ButtonT...
PypiClean
/peek-core-user-3.4.11.tar.gz/peek-core-user-3.4.11/peek_core_user/_private/server/ClientTupleDataObservable.py
import logging from vortex.DeferUtil import deferToThreadWrapWithLogger from vortex.Payload import Payload from vortex.handler.TupleDataObservableHandler import ( TupleDataObservableHandler, TuplesProviderABC, ) from peek_core_user._private.server.tuple_providers.UserLoginUiSettingTupleProvider import ( U...
PypiClean
/ainodes_engine-0.1.1-py3-none-any.whl/ainodes_backend/cnet_preprocessors/midas/utils.py
import sys import re import numpy as np import cv2 import torch def read_pfm(path): """Read pfm file. Args: path (str): path to file Returns: tuple: (data, scale) """ with open(path, "rb") as file: color = None width = None height = None scale = N...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_17/models/software_patches.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_17 import models class SoftwarePatches(object): """ Attributes: swagger_types (dict): The key is attribute name and the value i...
PypiClean
/c3s_magic_wps-1.0.0rc1-py3-none-any.whl/c3s_magic_wps/processes/utils/data_finder.py
import os import tempfile import glob import json import sys import copy import logging from pywps import configuration LOGGER = logging.getLogger("PYWPS") # Builds up a tree of folders with their contentaining folders # Not unlike the output of the "tree -J" command in linux def _dir_entry(path, name): resul...
PypiClean
/openedx-learning-0.1.5.tar.gz/openedx-learning-0.1.5/openedx_tagging/core/tagging/import_export/api.py
from io import BytesIO from django.utils.translation import gettext_lazy as _ from ..models import Taxonomy, TagImportTask, TagImportTaskState from .parsers import get_parser, ParserFormat from .import_plan import TagImportPlan, TagImportTask def import_tags( taxonomy: Taxonomy, file: BytesIO, parser_fo...
PypiClean
/fluentcheck-0.2.0.tar.gz/fluentcheck-0.2.0/README.md
# Fluentcheck _Fluent assertion framework for Python_ Bored of using `assert` multiple times to check types, intervals, etc. on data passed as input to your Python functions? This generates a lot of boilerplate code. __fluentcheck__ helps you reducing the lines of code providing a human-friendly and fluent way to mak...
PypiClean
/scikit_hubness-0.21.2-py3-py37-win_amd64.whl/skhubness/neighbors/graph.py
# Author: Jake Vanderplas <vanderplas@astro.washington.edu> # Roman Feldbauer <roman.feldbauer@univie.ac.at> # # License of sklearn code: BSD 3 clause (C) INRIA, University of Amsterdam from .base import KNeighborsMixin, RadiusNeighborsMixin from .unsupervised import NearestNeighbors def _check_params(X, met...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/device_app_management/ios_lob_app_provisioning_configurations/has_payload_links/has_payload_links_response.py
from __future__ import annotations from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from ....models import base_collection_pagination_count_response, has_payload_link_result_item fro...
PypiClean
/odoo13_addon_l10n_br_fiscal-13.0.3.1.0-py3-none-any.whl/odoo/addons/l10n_br_fiscal/models/document_line.py
from odoo import _, api, fields, models from odoo.exceptions import UserError class DocumentLine(models.Model): _name = "l10n_br_fiscal.document.line" _inherit = "l10n_br_fiscal.document.line.mixin" _description = "Fiscal Document Line" @api.model def _operation_domain(self): domain = [(...
PypiClean
/qiskit_metal-0.1.2.tar.gz/qiskit_metal-0.1.2/qiskit_metal/analyses/hamiltonian/transmon_charge_basis.py
# This code is part of Qiskit. # # (C) Copyright IBM 2017, 2021. # # This code is licensed under the Apache License, Version 2.0. You may # obtain a copy of this license in the LICENSE.txt file in the root directory # of this source tree or at http://www.apache.org/licenses/LICENSE-2.0. # # Any modifications or deriva...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/blueprint/assignment.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs from ._enums import * from ._inputs import * __all__ = ['AssignmentArgs', 'Assignment'] @pulumi.input_type class AssignmentArgs: def...
PypiClean
/video_bot_handle_logointro-0.0.1-py3-none-any.whl/handle_logointro/models/page.py
from typing import AnyStr, List class Author: def __init__(self, name: AnyStr = None, link: AnyStr = None) -> None: self.name = name self.link = link class Meta: def __init__(self, description: AnyStr = None, duration: AnyStr = None, uploadDate: Any...
PypiClean
/invenio-comments-0.1.1.tar.gz/invenio-comments-0.1.1/AUTHORS.rst
.. This file is part of Invenio. Copyright (C) 2015 CERN. Invenio is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. ...
PypiClean
/zoosync-3.0.2.tar.gz/zoosync-3.0.2/DESCRIPTION.rst
Zoosync ======= Zoosync is a simple service discovery tool using Zookeeper as database backend. Usage ===== See `zoosync --help` for brief usage or manual page for more detailed usage. The output is in the form of shell variable assignement. Tool could be used this way:: ZOO='zoo1.example.com,zoo2.example.com,zoo...
PypiClean
/moon_coverage-0.12.0.tar.gz/moon_coverage-0.12.0/src/moon_coverage/spice/fov.py
import numpy as np import matplotlib.pyplot as plt from matplotlib.patches import Circle, Ellipse, Polygon import spiceypy as sp from spiceypy.utils.exceptions import SpiceFRAMEMISSING from ..math.vectors import boresight_rot_m, cs, norm from ..misc import cached_property class SpiceFieldOfView: """SPICE Inst...
PypiClean
/veriservice-0.0.34.tar.gz/veriservice-0.0.34/README.md
# Veri Python Client Python client for veri ```shell script pip install veriservice ``` ```python import veriservice ``` ```python service = "localhost:5678" veriservice.init_service(service, "./tmp") client = veriservice.VeriClient(service, "example_data") data_conf = {} client.create_data_if_not_exists(data_co...
PypiClean
/testit-api-client-3.2.0.tar.gz/testit-api-client-3.2.0/src/testit_api_client/model/project_custom_attributes_templates_filter_model.py
import re # noqa: F401 import sys # noqa: F401 from testit_api_client.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, ...
PypiClean
/django_nats_nkeys-0.10.1-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/django_nats_nkeys/management/commands/nsc_account_jwt.py
from multiprocessing.sharedctypes import Value from click import BaseCommand from django.core.management.base import BaseCommand, CommandParser from django_nats_nkeys.services import run_nsc_and_log_output class Command(BaseCommand): def add_arguments(self, parser: CommandParser) -> None: parser.add_argu...
PypiClean
/Harambe-0.10.0.tar.gz/Harambe-0.10.0/harambe/contrib/auth/decorators.py
import functools import flask_login import signals import inspect from harambe import (utils, abort, request, ) from harambe.core import apply_function_to_members from . import (is_authenticated, not_authenticated, ROLES_ADMIN, ...
PypiClean
/flex-6.14.1.tar.gz/flex-6.14.1/README.md
# FLEX [![Build Status](https://badgen.net/travis/pipermerriam/flex)](https://travis-ci.org/pipermerriam/flex) [![Documentation Status](https://readthedocs.org/projects/flex-swagger/badge/?version=latest)](https://readthedocs.org/projects/flex-swagger/?badge=latest) [![PyPi version](https://badgen.net/pypi/v/flex)](ht...
PypiClean
/cuplcodec-2.1.0-cp36-cp36m-manylinux2010_x86_64.whl/wscodec/decoder/exceptions.py
# Helpful: https://julien.danjou.info/python-exceptions-guide/ class DecoderError(Exception): """Base cupl Decoder error class.""" def __init__(self, msg="cupl Decoder Error"): super().__init__(msg) class InvalidMajorVersionError(DecoderError): def __init__(self, encoderversion, decoderversion,...
PypiClean
/osssdk-0.4.2.tar.gz/osssdk-0.4.2/oss/oss_api.py
# Copyright (C) 2011, Alibaba Cloud Computing #Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, d...
PypiClean
/malaya_speech-1.4.0rc1-py3-none-any.whl/malaya_speech/train/model/revsic_glowtts/wavenet/__init__.py
from typing import Optional import tensorflow as tf from .block import WaveNetBlock class WaveNet(tf.keras.Model): """WaveNet structure. """ def __init__(self, block_num_per_cycle: int, cycle: int, channels: int, kernel_size: int, ...
PypiClean
/cr-features-0.1.7.tar.gz/cr-features-0.1.7/cr_features/pipeline_functions.py
import pandas as pd import numpy as np from hmmlearn import hmm from sklearn.feature_selection import mutual_info_classif from scipy.stats import pearsonr from sklearn.metrics import accuracy_score def normalizeMatrix(matrix, rows=False): mtrx = np.array(matrix).astype(float) if rows: for row in range...
PypiClean
/leetcode_django_cachalot-2.1.2-py3-none-any.whl/cachalot/settings.py
from django.conf import settings from django.utils.module_loading import import_string SUPPORTED_DATABASE_ENGINES = { 'django.db.backends.sqlite3', 'django.db.backends.postgresql', 'django.db.backends.mysql', # TODO: Remove when we drop Django 2.x support. 'django.db.backends.postgresql_psycopg2',...
PypiClean
/instagrapi-markatsteps-1.16.41.3.tar.gz/instagrapi-markatsteps-1.16.41.3/instagrapi/mixins/user.py
from copy import deepcopy from json.decoder import JSONDecodeError from typing import Dict, List, Tuple from instagrapi.exceptions import ( ClientError, ClientJSONDecodeError, ClientLoginRequired, ClientNotFoundError, UserNotFound, ) from instagrapi.extractors import extract_user_gql, extract_user_...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/iam/create-login-profile.rst
**To create a password for an IAM user** To create a password for an IAM user, we recommend using the ``--cli-input-json`` parameter to pass a JSON file that contains the password. Using this method, you can create a strong password with non-alphanumeric characters. It can be difficult to create a password with non-al...
PypiClean
/cocktail_apikit-0.1.22-py3-none-any.whl/cocktail_apikit/bottle_kit.py
import importlib import inspect import json import logging import pkgutil from datetime import datetime from decimal import Decimal from typing import List, Any, Optional from uuid import UUID from apispec import APISpec from apispec_webframeworks.bottle import BottlePlugin from apispec.ext.marshmallow import Marshmal...
PypiClean
/carefree-learn-0.4.7.tar.gz/carefree-learn-0.4.7/cflearn/api/cv/third_party/iharm/model/modeling/hrnet_ocr.py
import os import torch import torch._utils import numpy as np import torch.nn as nn import torch.nn.functional as F from cftool.misc import print_info from .ocr import SpatialOCR_Module from .ocr import SpatialGather_Module from .resnetv1b import BottleneckV1b from .resnetv1b import BasicBlockV1b relu_inplace = Tr...
PypiClean
/nni-3.0rc1-py3-none-macosx_10_9_x86_64.whl/nni_node/node_modules/moment/src/locale/mr.js
import moment from '../moment'; var symbolMap = { 1: '१', 2: '२', 3: '३', 4: '४', 5: '५', 6: '६', 7: '७', 8: '८', 9: '९', 0: '०', }, numberMap = { '१': '1', '२': '2', '३': '3', '४': '4', '५'...
PypiClean
/route_optimization_constrained-0.1.3.tar.gz/route_optimization_constrained-0.1.3/README.md
## Route Optimization Constrained [![Build Status](https://travis-ci.org/jingw2/size_constrained_clustering.svg?branch=master)](https://travis-ci.org/jingw2/size_constrained_clustering) [![PyPI version](https://badge.fury.io/py/size-constrained-clustering.svg)](https://badge.fury.io/py/size-constrained-clustering) ![Gi...
PypiClean
/dve_lumipy_preview-0.1.684-py3-none-any.whl/lumipy/lumiflex/table.py
from __future__ import annotations from functools import reduce from typing import Tuple, Union from pydantic import StrictStr, Field, root_validator from lumipy.lumiflex._column.make import make from lumipy.lumiflex._column.ordering import Ordering from lumipy.lumiflex._common.node import Node from lumipy.lumiflex....
PypiClean
/toptica_lasersdk-3.1.0.tar.gz/toptica_lasersdk-3.1.0/toptica/lasersdk/dlcpro/v2_3_0.py
from typing import Tuple from typing import Optional from toptica.lasersdk.client import UserLevel from toptica.lasersdk.client import Client from toptica.lasersdk.client import DecopError from toptica.lasersdk.client import DeviceNotFoundError from toptica.lasersdk.client import DecopBoolean from toptica.lasersdk....
PypiClean
/geowatch-0.9.4.tar.gz/geowatch-0.9.4/watch/utils/util_data.py
import ubelt as ub import warnings import os class DataRegistry: """ Provide a quick way of storing and querying for machine specific paths Ignore: from watch.utils.util_data import * # NOQA self = DataRegistry() self.read() test_dpath = ub.Path.appdir('watch/tests/dvc_r...
PypiClean
/mr.bob2-0.2.3.tar.gz/mr.bob2-0.2.3/mrbob/docs/source/userguide.rst
.. highlight:: bash User guide ========== Installation ------------ :: $ pip install mr.bob Usage ----- Once you install mr.bob, the ``mrbob`` command is available:: $ mrbob --help usage: mrbob [-h] [-O TARGET_DIRECTORY] [-v] [-c CONFIG] [-V] [-l] [-w] [-n] [-q] [...
PypiClean
/rasafou-1.7.49-py3-none-any.whl/rasa/core/channels/rasa_chat.py
import json from typing import Text, Optional, Dict, Any import aiohttp import logging from sanic.exceptions import abort import jwt from rasa.core import constants from rasa.core.channels.channel import RestInput, InputChannel from rasa.core.constants import DEFAULT_REQUEST_TIMEOUT from sanic.request import Request ...
PypiClean
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/dkc_returns/archetypes/RambiCrateData.py
import dataclasses import struct import typing from retro_data_structures.game_check import Game from retro_data_structures.properties.base_property import BaseProperty from retro_data_structures.properties.dkc_returns.archetypes.DamageVulnerability import DamageVulnerability from retro_data_structures.properties.dkc_...
PypiClean
/pupil_labs_realtime_api-1.2.0a3-py3-none-any.whl/pupil_labs/realtime_api/simple/device.py
import asyncio import collections import enum import threading import typing as T import weakref try: from typing import Literal except ImportError: # FIXME: Remove when dropping py3.7 support from typing_extensions import Literal from ..base import DeviceBase from ..device import Device as _DeviceAsync f...
PypiClean
/kTBS-0.6.tar.gz/kTBS-0.6/lib/ktbs/methods/hrules.py
import logging import json from rdflib import Literal, RDF, URIRef, XSD from rdfrest.util import check_new from .abstract import AbstractMonosourceMethod, NOT_MON, PSEUDO_MON, STRICT_MON from .utils import copy_obsel, translate_node from ..engine.builtin_method import register_builtin_method_impl from ..namespace impo...
PypiClean
/beepy_web-0.7.1.tar.gz/beepy_web-0.7.1/beepy/attrs.py
from __future__ import annotations as _ import builtins import keyword from typing import Optional, Callable, Union, Sequence, Type, get_type_hints, ForwardRef, TypeVar, Any from collections import defaultdict from beepy.types import AttrType, AttrValue from beepy.utils.common import NONE_TYPE, wraps_with_name, to_ke...
PypiClean
/django-adminlte-3-0.1.6.tar.gz/django-adminlte-3-0.1.6/adminlte3/static/admin-lte/plugins/summernote/lang/summernote-gl-ES.min.js
!function(e,a){if("object"==typeof exports&&"object"==typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var r=a();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(window,(function(){return function(e){var a={};function r(o){if(a[o])return a[o].exports;var t=a[...
PypiClean
/image_augment-0.1.tar.gz/image_augment-0.1/README.md
# Basic image augmenter Basic image augmentation for CNN's. Aiming to add regularisation to your model at the input layer. Can be used in a pytorch pipeline ## Setup Use pip to install `pip install image-augment` [pypi link ](https://www.google.com) ## Basic Usage. Cutout - bocking out random segments of the...
PypiClean
/SALTISE_course_flow-0.8.9.tar.gz/SALTISE_course_flow-0.8.9/course_flow/static/course_flow/js/ImportMenu.js
import * as Redux from "redux"; import * as React from "react"; import * as reactDom from "react-dom"; import {setUserPermission,getUsersForObject,getUserList} from "./PostFunctions"; import {Loader} from "./Constants"; export class ImportMenu extends React.Component{ constructor(props){ super(props); ...
PypiClean
/pyflation-0.2.3.tar.gz/pyflation-0.2.3/docs/publications.rst
************ Publications ************ Pyflation is released under an open source modified BSD license (:doc:`license`). In addition, as a courtesy, we request that you include a citation to one or more of the following papers in any publication that includes results produced using the Pyflation package: * Ian Hus...
PypiClean
/youtube_dl_fork-2022.6.30.tar.gz/youtube_dl_fork-2022.6.30/youtube_dl/extractor/urplay.py
from __future__ import unicode_literals from .common import InfoExtractor from ..utils import ( dict_get, ExtractorError, int_or_none, ISO639Utils, parse_age_limit, try_get, unified_timestamp, ) class URPlayIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?ur(?:play|skola)\.se/(?:p...
PypiClean
/pii-extract-0.0.2.tar.gz/pii-extract-0.0.2/src/pii_extract/app/task_info.py
import sys import argparse from typing import List, TextIO from .. import VERSION from ..api import PiiFinder from ..api.file import add_taskfile from ..helper.taskdict import language_list, country_list from ..helper.plugins import list_plugins def print_tasks(proc: PiiFinder, out: TextIO): print(f". Installe...
PypiClean
/kingdon-0.1.0.tar.gz/kingdon-0.1.0/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install Kingdon, run this command in your terminal: .. code-block:: console $ pip install kingdon This is the preferred method to install Kingdon, as it will always install the most recent stable release. If you don...
PypiClean
/gcp-airflow-foundations-0.3.7.tar.gz/gcp-airflow-foundations-0.3.7/gcp_airflow_foundations/operators/gcp/create_dataset.py
from typing import Optional, Sequence from airflow.models import BaseOperator from google.cloud.bigquery.dataset import Dataset from airflow.providers.google.cloud.hooks.bigquery import BigQueryHook class CustomBigQueryCreateEmptyDatasetOperator(BaseOperator): """ This operator is used to create new dataset...
PypiClean
/turbine_design-1.1.0-py3-none-any.whl/turbine_design/turbine_design.py
from sklearn.gaussian_process import GaussianProcessRegressor, kernels from sklearn.metrics import mean_squared_error # import sklearn.preprocessing as pre import numpy as np import pandas as pd import scipy.stats as st import matplotlib.pyplot as plt import matplotlib.colors as mcol from collections import OrderedDict...
PypiClean
/pybrake-1.10.1.tar.gz/pybrake-1.10.1/examples/sanic/main.py
from contextvars import ContextVar from datetime import * import requests from pybrake.middleware.sanic import init_app from sanic import Sanic from sanic import response from sqlalchemy import INTEGER, Column, String, select, insert from sqlalchemy.ext.asyncio import AsyncSession from sqlalchemy.ext.asyncio import cr...
PypiClean
/arxiv_decent_feeds-0.0.2-py3-none-any.whl/arxiv_decent_feeds-0.0.2.dist-info/DESCRIPTION.rst
# arXiv decent feeds Ever wanted to follow arXiv feeds on Slack, but try as you might slackbot was unable to show arXiv updates? Wonder no more! arXiv decent feeds reads and converts arXiv RSS feeds to valid RSS 2.0 feeds that slackbot will (hopefully) read! ## Installation ``` pip install https://github.com/trovao...
PypiClean
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/tpu/v2alpha1/get_node.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . import outputs __all__ = [ 'GetNodeResult', 'AwaitableGetNodeResult', 'get_node', 'get_node_output', ] @pulumi.output_type class GetNo...
PypiClean
/schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/EnergyEfficiencyEnumeration.py
from __future__ import annotations from datetime import * from time import * from typing import * from pydantic import * class EnergyEfficiencyEnumeration(BaseModel): """Enumerates energy efficiency levels (also known as "classes" or "ratings") and certifications that are part of several international energy ef...
PypiClean
/pylxca-3.0.0.tar.gz/pylxca-3.0.0/README
Lenovo xClarity Python Client ============================= What is PyLXCA? --------------- PyLXCA is Python based interface for Lenovo xClarity Administration APIs. PyLXCA command-line interface (CLI) provides a Python-based library of commands to automate provisioning and resource management from an OpenStack env...
PypiClean
/cs.pfg.xmlmailer-0.2.zip/cs.pfg.xmlmailer-0.2/cs/pfg/xmlmailer/mailadapter.py
import os from AccessControl import ClassSecurityInfo from Acquisition import aq_parent from Products.Archetypes.atapi import * from Products.PloneFormGen.content.formMailerAdapter import FormMailerAdapter, formMailerAdapterSchema from StringIO import StringIO from email import Encoders from email.Header import Hea...
PypiClean
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/servicebus/aaz/latest/servicebus/georecovery_alias/_exists.py
# pylint: skip-file # flake8: noqa from azure.cli.core.aaz import * @register_command( "servicebus georecovery-alias exists", ) class Exists(AAZCommand): """Check the give namespace name availability. """ _aaz_info = { "version": "2022-10-01-preview", "resources": [ ["mg...
PypiClean
/dephell-archive-0.1.7.tar.gz/dephell-archive-0.1.7/dephell_archive/_stream.py
from contextlib import suppress from pathlib import Path, PurePath from typing import List, Optional, Set # external import attr # app from ._cached_property import cached_property def _dir_list(filelist: List[str]) -> Set[str]: # paths starting with '/' or containing '.' are not supported dir_list = set() ...
PypiClean
/qmpy-tri-2022.7.21.tar.gz/qmpy-tri-2022.7.21/qmpy/web/static/js/jsmol/j2s/JZ/InflaterInputStream.js
Clazz.declarePackage ("JZ"); Clazz.load (["java.io.FilterInputStream"], "JZ.InflaterInputStream", ["java.io.EOFException", "$.IOException", "java.lang.IllegalArgumentException", "$.IndexOutOfBoundsException", "$.NullPointerException"], function () { c$ = Clazz.decorateAsClass (function () { this.inflater = null; this.b...
PypiClean
/handi-0.10.4.1.tar.gz/handi-0.10.4.1/handy/youdao/zh2ko.py
import sys import uuid import requests import hashlib import time if sys.version_info[0] == 3: from imp import reload reload(sys) if sys.version_info[0] == 2: sys.setdefaultencoding('utf-8') YOUDAO_URL = 'https://openapi.youdao.com/api' APP_KEY = '1f17d393214b29f2' APP_SECRET = 'p24tXj2SUPuJqzoYqcFbXWIA5er5...
PypiClean
/ml_ops-1.2.1-py3-none-any.whl/parallelm/mlops/time_capture/plot_functions.py
import pandas as pd import numpy as np en_plt = False en_tabulate = False try: import matplotlib.pyplot as plt en_plt = True except Exception as err: print("not able to load matplotlib.pyplot") pass try: from tabulate import tabulate en_tabulate = True except Exception as err: print("not abl...
PypiClean
/gnuhealth_insurance-4.2.1.tar.gz/gnuhealth_insurance-4.2.1/health_insurance.py
from trytond.model import ModelView, ModelSQL, fields from trytond.pyson import Eval from trytond.i18n import gettext from trytond.pool import PoolMeta from .exceptions import (DiscountPctOutOfRange, NeedAPolicy, DiscountWithoutElement) __all__ = ['InsurancePlanProductPolicy', 'InsurancePl...
PypiClean
/mxnet_cu75mkl-0.9.5-cp35-cp35m-manylinux1_x86_64.whl/mxnet_cu75mkl-0.9.5.data/purelib/mxnet/image.py
"""Read invidual image files and perform augmentations.""" from __future__ import absolute_import, print_function import os import random import logging import numpy as np try: import cv2 except ImportError: cv2 = None from .base import numeric_types from . import ndarray as nd from . import _ndarray_intern...
PypiClean
/genoml2-1.0.0b3.tar.gz/genoml2-1.0.0b3/genoml/cli/munging.py
import argparse import sys import genoml.dependencies from genoml import preprocessing def main(prefix, impute, geno, skip_prune, pheno, addit, feature_selection, gwas, p, vif, iter, ref_cols_harmonize, data_type): genoml.dependencies.check_dependencies() run_prefix = prefix impute_type = impute ge...
PypiClean
/webresource-1.2.tar.gz/webresource-1.2/CHANGES.rst
Changelog ========= 1.2 (2022-12-21) ---------------- - Accept additional keyword arguments in resources. They get rendered as additional attributes on resource tag. [rnix, aormazabal] 1.1 (2022-07-01) ---------------- - Remove relative directory resolving. [rnix] - Add ``remove`` function to ``ResourceMixi...
PypiClean
/django-report-builder-6.4.2.tar.gz/django-report-builder-6.4.2/README.md
# django-report-builder A GUI for Django ORM. Build custom queries and display results. Targets sys admins and capable end users who might not be able to program or gain direct interactive shell access. [![pipeline status](https://gitlab.com/burke-software/django-report-builder/badges/master/pipeline.svg)](https://gi...
PypiClean
/fretbursts-0.7.1.tar.gz/fretbursts-0.7.1/notebooks/Example - 2CDE Method.ipynb
# Example - 2CDE Method *This notebook is part of smFRET burst analysis software [FRETBursts](http://opensmfs.github.io/FRETBursts/).* > This notebook implements the 2CDE method from [Tomov 2012](http://dx.doi.org/10.1016%2Fj.bpj.2011.11.4025). > > For a complete tutorial on burst analysis see > [FRETBursts - us-ALE...
PypiClean
/Djaloha-0.4.2.tar.gz/Djaloha-0.4.2/djaloha/static/aloha.0.20/plugins/common/format/lib/format-plugin.js
define( ['aloha', 'aloha/plugin', 'aloha/jquery', 'aloha/floatingmenu', 'i18n!format/nls/i18n', 'i18n!aloha/nls/i18n', 'aloha/console', 'css!format/css/format.css'], function(Aloha, Plugin, jQuery, FloatingMenu, i18n, i18nCore) { var GENTICS = window.GENTICS; /** * register the plugin with unique name */ ...
PypiClean
/smart_data_science-0.1.2.tar.gz/smart_data_science-0.1.2/src/smart_data_science/dev/modelling/ml_classifier_old_format/prediction.py
# import json # import pandas as pd # import uvicorn # from fastapi import FastAPI, Request # from fastapi.responses import JSONResponse # # import joblib # from sklearn.externals import joblib deprecated # from . import ml, ml_explainer # PYCARET_PIPELINE = False # Optional: Pycaret pipelines can be also used. D...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/chime/associate-signin-delegate-groups-with-account.rst
**To associate sign-in delegate groups** The following ``associate-signin-delegate-groups-with-account`` example associates the specified sign-in delegate group with the specified Amazon Chime account. :: aws chime associate-signin-delegate-groups-with-account \ --account-id 12a3456b-7c89-012d-3456-78901e...
PypiClean
/cognite_sdk-6.17.0.tar.gz/cognite_sdk-6.17.0/cognite/client/data_classes/data_modeling/ids.py
from __future__ import annotations from abc import ABC from dataclasses import asdict, dataclass, field from typing import Any, ClassVar, Literal, Protocol, Sequence, Tuple, TypeVar, Union, cast from cognite.client.utils._auxiliary import rename_and_exclude_keys from cognite.client.utils._identifier import DataModeli...
PypiClean
/cTPnet-0.2.6.tar.gz/cTPnet-0.2.6/ctpnet/predict.py
import numpy as np import torch.nn as nn import pandas as pd import torch.nn.functional as F import torch import sys from . import network def predict(X,model_file_path,d=24): """ Main function: imputation of 12 or 24 surface protein abundance from single cell RNA-seq matrix. Parameters ----------...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/me/managed_devices/item/play_lost_mode_sound/play_lost_mode_sound_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/mutesync/__init__.py
from __future__ import annotations import logging import async_timeout import mutesync from homeassistant.config_entries import ConfigEntry from homeassistant.const import Platform from homeassistant.core import HomeAssistant from homeassistant.helpers import update_coordinator from homeassistant.helpers.aiohttp_cli...
PypiClean
/wre_commit-1.0.7.tar.gz/wre_commit-1.0.7/README.md
# Wrapper for https://pre-commit.com, so `wre-commit` ## Extensions * Run `pre-commit`: * in Docker container when `### wre-commit-docker-image: ...` is found in the config file * or directly calling locally installed `pre-commit` * Support multiple configurations using: * multiple config files using shell w...
PypiClean
/remote_mole-1.3.0.tar.gz/remote_mole-1.3.0/README.md
[![Documentation Status](https://readthedocs.org/projects/remote-mole/badge/?version=latest)](https://remote-mole.readthedocs.io/en/latest/) [![pipeline](https://gitlab.com/acesrg/remote-ninja/badges/master/pipeline.svg)](https://gitlab.com/acesrg/remote-ninja/-/commits/master) [![coverage](https://gitlab.com/acesrg/re...
PypiClean
/flockwave-server-2.0.0.tar.gz/flockwave-server-2.0.0/src/flockwave/server/ext/mavlink/driver.py
from __future__ import annotations from collections import defaultdict from colour import Color from contextlib import asynccontextmanager from dataclasses import dataclass from datetime import datetime, timezone from functools import partial from logging import Logger from math import inf, isfinite from time import ...
PypiClean
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/less/dist/less.min.js
*/ !function(a){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var b;b="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,b.less=a()}}(function(){return function a(b,c,d){fun...
PypiClean
/bbox-utils-0.1.1.tar.gz/bbox-utils-0.1.1/src/bbox_utils/utils.py
import numpy as np def pointwise_distance(pts1, pts2): """Calculates the distance between pairs of points Args: pts1 (np.ndarray): array of form [[x1, y1], [x2, y2], ...] pts2 (np.ndarray): array of form [[x1, y1], [x2, y2], ...] Returns: np.array: distances between corresponding...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/teamwork_peripheral_health.py
from __future__ import annotations from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from . import teamwork_connection, teamwork_peripheral class TeamworkPeriphe...
PypiClean
/dataclass_factory-2.16-py3-none-any.whl/dataclass_factory/parsers.py
import collections.abc from collections import deque from dataclasses import is_dataclass from typing import ( Any, Callable, Collection, Deque, Dict, FrozenSet, List, Optional, Sequence, Set, Tuple, Type, Union, Iterable, MutableSequence, MutableSet, Reversible, ) from .common import AbstractFactory, Pars...
PypiClean
/kdp_api_python_client-4.81.0-py3-none-any.whl/kdp_api/model/attribute_assignment_create_request.py
import re # noqa: F401 import sys # noqa: F401 from kdp_api.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, valida...
PypiClean
/rosie-1.5.0.tar.gz/rosie-1.5.0/README.md
# A Python Module for Rosie Pattern Language This module can be installed using `pip install rosie`. It requires a Rosie installation, which is done separately. (See the [Rosie repository](https://gitlab.com/rosie-pattern-language/rosie).) ## Documentation This module follows the API established by the Python `r...
PypiClean
/aiohttp_swagger3-0.7.4-py3-none-any.whl/aiohttp_swagger3/index_templates.py
import string SWAGGER_UI_TEMPLATE = string.Template( """ <!-- HTML for static distribution bundle build --> <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Swagger UI</title> <link rel="stylesheet" type="text/css" href="./swagger_ui_static/swagger-ui.css" > <link rel="icon" ...
PypiClean
/django-generic-ratings-0.7.tar.gz/django-generic-ratings-0.7/doc/getting_started.rst
Getting started =============== Requirements ~~~~~~~~~~~~ ====== ====== Python >= 2.5 Django >= 1.0 ====== ====== jQuery >= 1.4 is required if you want to take advantage of *AJAX* voting, or if you want to use customized rating methods like slider rating or star rating. This application, out of the box, provides...
PypiClean
/js.momentjs-2.13.1.tar.gz/js.momentjs-2.13.1/js/momentjs/resources/locale/sv.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['moment'], factory) : factory(global.moment) }(this, function (moment) { 'use strict'; ...
PypiClean
/zc.form-2.0.tar.gz/zc.form-2.0/src/zc/form/browser/interfaces.py
from zope import interface class ISchemaView(interface.Interface): "the basic schema view interface suitable for extension and for display" extra = interface.Attribute( """A dictionary to store values desired by a given schema view. The add view is the only standard interface that explicitly ...
PypiClean
/ray_delvewheel-1.3.0.0-cp38-cp38-win_amd64.whl/ray-1.3.0.data/purelib/ray/tune/schedulers/async_hyperband.py
import logging from typing import Dict, Optional, Union import numpy as np from ray.tune import trial_runner from ray.tune.result import DEFAULT_METRIC from ray.tune.schedulers.trial_scheduler import FIFOScheduler, TrialScheduler from ray.tune.trial import Trial logger = logging.getLogger(__name__) class AsyncHype...
PypiClean
/django-wikidata-api-0.0.15.tar.gz/django-wikidata-api-0.0.15/django_wikidata_api/serializers.py
""" django-rest-framework serializers that have specialized Wikidata context """ from rest_framework.fields import ( BooleanField, CharField, IntegerField, RegexField, ) from rest_framework.serializers import ( Serializer, SerializerMetaclass, ) from .constants import ( WIKIDATA_ENTITY_REGE...
PypiClean
/momotor_bundles-7.0.2-py3-none-any.whl/momotor/bundles/elements/properties.py
import typing from pathlib import PurePosixPath import momotor.bundles from momotor.bundles.binding import PropertyComplexType, PropertiesComplexType from momotor.bundles.elements.base import Element from momotor.bundles.elements.content import ContentFullElement, NoContent from momotor.bundles.elements.wildcard impor...
PypiClean
/sdss_coordio-1.8.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/coordio/telescope.py
from __future__ import annotations from typing import TYPE_CHECKING import numpy from . import conv, defaults from .conv import cart2FieldAngle, sph2Cart from .coordinate import ( Coordinate, Coordinate2D, Coordinate3D, verifySite, verifyWavelength ) from .exceptions import CoordIOError if TYPE...
PypiClean
/igorpy-0.0.5-py3-none-any.whl/pygor3/scripts/naive_align_id.py
import pygor3 as p3 # TODO: THERE IS A WAY TO GET def generate_str_fasta(indexed_sequence, list_vdj_alignments:dict): """ Given an Sequence index and the corresponding alignments vj/ vdj return a string with considering only offset""" indexed_sequence.sequence = indexed_sequence.sequence.lower() # ad...
PypiClean
/azure_keyvault_administration-4.4.0b1-py3-none-any.whl/azure/keyvault/administration/_generated/v7_2/operations/_key_vault_client_operations.py
import sys from typing import Any, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, map_error, ) from azure.core.pipeline import Pi...
PypiClean
/openimis_be_calculation-1.5.1-py3-none-any.whl/calculation/config.py
CLASS_RULE_PARAM_VALIDATION = [ { "class": "ContributionPlan", "parameters": [ { "type": "select", "name": "rate", "label": { "en": "Percentage of income", "fr": "Pourcentage du salaire" ...
PypiClean
/diligence-fuzzing-0.11.3.tar.gz/diligence-fuzzing-0.11.3/fuzzing_cli/fuzz/ide/truffle.py
import json import os import tempfile from functools import lru_cache from json import JSONDecodeError from pathlib import Path from subprocess import PIPE, CompletedProcess, TimeoutExpired, run from typing import Any, Dict, List, Optional, Tuple from fuzzing_cli.fuzz.config import FuzzingOptions from fuzzing_cli.fuzz...
PypiClean
/django-dojo-0.0.1.tar.gz/django-dojo-0.0.1/dojo/static/dojo/dojox/charting/plot2d/OHLC.js
define(["dojo/_base/lang", "dojo/_base/array", "dojo/_base/declare", "./CartesianBase", "./_PlotEvents", "./common", "dojox/lang/functional", "dojox/lang/functional/reversed", "dojox/lang/utils", "dojox/gfx/fx"], function(lang, arr, declare, CartesianBase, _PlotEvents, dc, df, dfr, du, fx){ var purgeGroup = dfr.lam...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/onenote/pages/item/onenote_patch_content/onenote_patch_content_post_request_body.py
from __future__ import annotations from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from .......models import onenote_patch_content_command class OnenotePatchCo...
PypiClean
/ffmpeg-python-patched-0.1.12.tar.gz/ffmpeg-python-patched-0.1.12/ffmpeg/_filters.py
from __future__ import unicode_literals from .nodes import FilterNode, filter_operator from ._utils import escape_chars @filter_operator() def filter_multi_output(stream_spec, filter_name, *args, **kwargs): """Apply custom filter with one or more outputs. This is the same as ``filter_`` except that the filt...
PypiClean