id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/django_queue_mailer-0.2.7.tar.gz/django_queue_mailer-0.2.7/django_queue_mailer/models.py
import logging from django.core.exceptions import ImproperlyConfigured from importlib import import_module import os import datetime from django.utils.translation import ugettext_lazy as _ from django.db import models from django.core.mail import EmailMultiAlternatives from django.conf import settings from django_queue...
PypiClean
/domino_py-0.4.1-py3-none-any.whl/domino/client/airflow_client.py
import uuid from datetime import datetime import requests from urllib.parse import urljoin import os class AirflowRestClient(requests.Session): def __init__(self, *args, **kwargs): """ _summary_ """ super(AirflowRestClient, self).__init__(*args, **kwargs) self.base_url = o...
PypiClean
/ansys_fluent_core-0.17.0-py3-none-any.whl/ansys/fluent/core/solver/settings_231/outflow_child.py
from ansys.fluent.core.solver.flobject import * from ansys.fluent.core.solver.flobject import _ChildNamedObjectAccessorMixin from ansys.fluent.core.solver.flobject import _CreatableNamedObjectMixin from ansys.fluent.core.solver.flobject import _NonCreatableNamedObjectMixin from ansys.fluent.core.solver.flobject im...
PypiClean
/mimeta_pytorch-0.0.4.tar.gz/mimeta_pytorch-0.0.4/mimeta/task_presampling.py
import os import pickle as pkl from mimeta import MIMeta from torchcross.data.metadataset import FewShotMetaDataset, SubTaskRandomFewShotMetaDataset from torchcross.data.task import Task overwrite = False def available_tasks(data_path) -> list[tuple[str, str]]: task_dict = MIMeta.get_available_tasks(data_path) ...
PypiClean
/home_assistant_frontend-20230901.0-py3-none-any.whl/hass_frontend/frontend_latest/80363-JgjlUYz7nXc.js
export const id=80363;export const ids=[80363];export const modules={80363:(t,e,s)=>{s.r(e),s.d(e,{CastManager:()=>h,getCastManager:()=>d});var n=s(69470);let a;var i=s(54049),r=s(66628),o=s(91794);let c;class h{constructor(t){this.auth=void 0,this.status=void 0,this._eventListeners={},this._sessionStateChanged=t=>{"SE...
PypiClean
/karrio.server.core-2023.5-py3-none-any.whl/karrio/server/core/views/api.py
import pydoc import typing from django.conf import settings from django.http import JsonResponse from rest_framework import generics, views from rest_framework.permissions import IsAuthenticated from rest_framework.throttling import UserRateThrottle, AnonRateThrottle from rest_framework_tracking import mixins from rest...
PypiClean
/recognizers_text_date_time-1.0.2a1-py3-none-any.whl/recognizers_date_time/date_time/spanish/datetimeperiod_extractor_config.py
from typing import List, Pattern from recognizers_number import BaseNumberExtractor, SpanishCardinalExtractor from recognizers_text.utilities import RegExpUtility from ...resources.spanish_date_time import SpanishDateTime from ..extractors import DateTimeExtractor from ..base_datetimeperiod import DateTimePeriodExtrac...
PypiClean
/nnunet_inference_on_cpu_and_gpu-1.6.6-py3-none-any.whl/nnunet/experiment_planning/nnUNet_convert_decathlon_task.py
from batchgenerators.utilities.file_and_folder_operations import * from nnunet.configuration import default_num_threads from nnunet.experiment_planning.utils import split_4d from nnunet.utilities.file_endings import remove_trailing_slash def crawl_and_remove_hidden_from_decathlon(folder): folder = remove_trailing...
PypiClean
/neuralpy-torch-0.2.1.tar.gz/neuralpy-torch-0.2.1/neuralpy/layers/linear/dense.py
from torch.nn import Linear as _Dense from neuralpy.utils import CustomLayer class Dense(CustomLayer): """ A Dense is a normal densely connected Neural Network. It performs a linear transformation of the input. To learn more about Dense layers, please check PyTorch documentation at https://pytor...
PypiClean
/rainforest_mch-1.3.3.tar.gz/rainforest_mch-1.3.3/rainforest/qpe/evaluation.py
# global imports import logging logging.basicConfig(level=logging.INFO) import numpy as np import copy import datetime import matplotlib.pyplot as plt import pandas as pd # Local imports from ..common.utils import read_df, get_qpe_files, get_qpe_files_multiple_dirs, perfscores from ..common.utils import timestamp_from...
PypiClean
/burnysc2-6.4.0-py3-none-any.whl/sc2/action.py
from __future__ import annotations from itertools import groupby from typing import TYPE_CHECKING, Union from s2clientprotocol import raw_pb2 as raw_pb from sc2.position import Point2 from sc2.unit import Unit if TYPE_CHECKING: from sc2.ids.ability_id import AbilityId from sc2.unit_command import UnitComman...
PypiClean
/autogluon.eda-0.8.3b20230717.tar.gz/autogluon.eda-0.8.3b20230717/src/autogluon/eda/analysis/explain.py
import logging import warnings from typing import List, Optional import numpy as np import pandas as pd import shap from autogluon.core.constants import REGRESSION from autogluon.eda import AnalysisState from autogluon.eda.analysis.base import AbstractAnalysis __all__ = ["ShapAnalysis"] logger = logging.getLogger(_...
PypiClean
/askbot-tuan-1.5.tar.gz/askbot-tuan-1.5/askbot/utils/url_utils.py
import os import urlparse from django.core.urlresolvers import reverse from django.conf import settings def strip_path(url): """srips path, params and hash fragments of the url""" purl = urlparse.urlparse(url) return urlparse.urlunparse( urlparse.ParseResult( purl.scheme, pu...
PypiClean
/starlink-pywrapper-0.3.tar.gz/starlink-pywrapper-0.3/starlink/kappa_help/fitstext.rst
FITSTEXT ======== Purpose ~~~~~~~ Creates an NDF FITS extension from a text file Description ~~~~~~~~~~~ This application takes a version of a FITS header stored in a text file, and inserts it into the FITS extension of an NDF. The header is not copied verbatim as some validation of the headers as legal FITS occu...
PypiClean
/trading_calendars_korea-0.0.1.tar.gz/trading_calendars_korea-0.0.1/trading_calendars/trading_calendar.py
from abc import ABCMeta, abstractproperty from collections import OrderedDict import warnings from pandas.tseries.holiday import AbstractHolidayCalendar from six import with_metaclass from pytz import UTC import numpy as np from numpy import searchsorted import pandas as pd from pandas import ( DataFrame, date...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/me/events/item/exception_occurrences/item/single_value_extended_properties/item/single_value_legacy_extended_property_item_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
/py_do-0.1.1-py3-none-any.whl/pydo/model/date.py
import re from datetime import datetime from typing import Optional from dateutil._common import weekday from dateutil.relativedelta import FR, MO, SA, SU, TH, TU, WE, relativedelta from ..exceptions import DateParseError def convert_date(human_date: str, starting_date: Optional[datetime] = None) -> datetime: ...
PypiClean
/odoo12_addon_base_tier_validation-12.0.3.9.3-py3-none-any.whl/odoo/addons/base_tier_validation/readme/CONFIGURE.rst
To configure this module, you need to: #. Go to *Settings > Technical > Tier Validations > Tier Definition*. #. Create as many tiers as you want for any model having tier validation functionality. **Note:** * If check **Notify Reviewers on Creation**, all possible reviewers will be notified by email when this def...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/apimanagement/api_operation_policy.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ._enums import * __all__ = ['ApiOperationPolicy'] class ApiOperationPolicy(pulumi.CustomResource): def __init__(__self__, resource_name: str, ...
PypiClean
/django-poll-system-0.2.3.tar.gz/django-poll-system-0.2.3/poll/templatetags/polls_tags.py
from django import template from poll.models import Poll, Item, Queue from django.conf import settings from django.utils.safestring import SafeUnicode from django.utils.datetime_safe import datetime from poll.ajax import authpass register = template.Library() @register.inclusion_tag('polls.html', takes_context=True...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_7/models/certificate_certificate_group_response.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flashblade.FB_2_7 import models class CertificateCertificateGroupResponse(object): """ Attributes: swagger_types (dict): The key is attribute name ...
PypiClean
/webf-0.1.0.tar.gz/webf-0.1.0/docs/api/epydoc.js
function toggle_private() { // Search for any private/public links on this page. Store // their old text in "cmd," so we will know what action to // take; and change their text to the opposite action. var cmd = "?"; var elts = document.getElementsByTagName("a"); for(var ...
PypiClean
/get_mac-0.9.2-py3-none-any.whl/getmac/shutilwhich.py
import os import sys # Everything below this point has been copied verbatim from the Python-3.3 # sources. def which(cmd, mode=os.F_OK | os.X_OK, path=None): """Given a command, mode, and a PATH string, return the path which conforms to the given mode on the PATH, or None if there is no such file. `m...
PypiClean
/molecule_libvirt-0.0.6-py3-none-any.whl/molecule_libvirt/driver.py
import os import getpass import grp from molecule import logger from molecule.api import Driver from molecule import util LOG = logger.get_logger(__name__) class LibVirt(Driver): """ The class responsible for managing `libvirt`_ guests. `libvirt`_ is ``not`` the default driver used in Molecule. .....
PypiClean
/restructuredtext_lint-1.4.0.tar.gz/restructuredtext_lint-1.4.0/restructuredtext_lint/cli.py
from __future__ import absolute_import import argparse from collections import OrderedDict import json import os import sys from docutils.utils import Reporter from restructuredtext_lint.lint import lint_file # Generate our levels mapping constant # DEV: We use an ordered dict for ordering in `--help` # http://repo....
PypiClean
/ipaparser-1.0.0.tar.gz/ipaparser-1.0.0/README.md
# IPA parser for Python ## Installation ``` pip install ipaparser ``` ## Quick start ```python from ipaparser import IPA print([str(symbol) for symbol in IPA('[ˈpʰɹɛʔt͡sɫ̩]') if 'consonant' in symbol.features()]) ``` ```python ['pʰ', 'ɹ', 'ʔ', 't͡s', 'ɫ̩'] ``` ## Usage/reference ### `IPA` The `IPA` class can be u...
PypiClean
/pano_airflow-2.7.1-py3-none-any.whl/airflow/api_connexion/schemas/task_schema.py
from __future__ import annotations from typing import NamedTuple from marshmallow import Schema, fields from airflow.api_connexion.schemas.common_schema import ( ClassReferenceSchema, ColorField, TimeDeltaSchema, WeightRuleField, ) from airflow.api_connexion.schemas.dag_schema import DAGSchema from a...
PypiClean
/koku_nise-4.4.0-py3-none-any.whl/nise/yaml_generators/azure/generator.py
"""Utility to generate koku-nise Azure yaml files""" import os import random from calendar import monthrange from datetime import date from uuid import uuid4 import faker from dateutil.relativedelta import relativedelta from nise.util import LOG from nise.yaml_generators.generator import Generator from nise.yaml_gener...
PypiClean
/PyAMF2-0.6.1.5.tar.gz/PyAMF2-0.6.1.5/doc/tutorials/examples/gateways/appengine/demo/simplejson/decoder.py
import re import sys from simplejson.scanner import Scanner, pattern try: from simplejson import _speedups except: _speedups = None FLAGS = re.VERBOSE | re.MULTILINE | re.DOTALL def _floatconstants(): import struct import sys _BYTES = '7FF80000000000007FF0000000000000'.decode('hex') if sys.by...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/extern/pygments/formatters/svg.py
from pygments.formatter import Formatter from pygments.util import get_bool_opt, get_int_opt __all__ = ['SvgFormatter'] def escape_html(text): """Escape &, <, > as well as single and double quotes for HTML.""" return text.replace('&', '&amp;'). \ replace('<', '&lt;'). \ rep...
PypiClean
/network-importer-3.1.0.tar.gz/network-importer-3.1.0/network_importer/tasks.py
import logging import os import socket from typing import Optional, List import yaml from nornir.core.task import Result, Task import network_importer.config as config LOGGER = logging.getLogger("network-importer") # pylint: disable=C0103 def device_save_hostvars(task: Task) -> Result: """Save the device host...
PypiClean
/codepy-2023.1.tar.gz/codepy-2023.1/README.rst
.. image:: https://gitlab.tiker.net/inducer/codepy/badges/main/pipeline.svg :alt: Gitlab Build Status :target: https://gitlab.tiker.net/inducer/codepy/commits/main .. image:: https://github.com/inducer/codepy/workflows/CI/badge.svg :alt: Github Build Status :target: https://github.com/inducer/codepy/act...
PypiClean
/pyyIP-0.0.2.tar.gz/pyyIP-0.0.2/pyyIP.py
# @Author: fsxchen # @Date: 2016-04-19T11:21:46+08:00 # @Last modified by: fsxchen # @Last modified time: 2016-04-19T11:24:18+08:00 """ 产生ip地址 """ import sys import os import re import socket import struct #ip address Reg ipReg = "^(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[0-9]{1,2})(\.(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/cisco/dnac/plugins/modules/service_provider_update.py
# Copyright (c) 2021, Cisco Systems # GNU General Public License v3.0+ (see LICENSE or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r""" --- module: service_provider_update short_description: Resource module for Service Provider Update description: - Manage operation update of the resource Service Provid...
PypiClean
/dj_ajax_raw_id_fields-0.2.1.tar.gz/dj_ajax_raw_id_fields-0.2.1/dj_ajax_raw_id_fields/static/dj_ajax_raw_id_fields/js/dj_ajax_raw_id_fields.js
function dismissRelatedLookupPopup(win, chosenId) { var name = windowname_to_id(win.name); var elem = document.getElementById(name); if (elem.className.indexOf('vManyToManyRawIdAdminField') != -1 && elem.value) { elem.value += ',' + chosenId; } else { elem.value = chosenId; } dja...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/v20200601/get_record_set.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs __all__ = [ 'GetRecordSetResult', 'AwaitableGetRecordSetResult', 'get_record_set', ] @pulumi.output_type class GetRecordSetResult: "...
PypiClean
/bagua_cuda111-0.9.0-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/bagua_cuda111-0.9.0.data/scripts/bagua_install_deps.py
import os import platform import shutil import tempfile import urllib.request import pathlib from tqdm import tqdm _nccl_records = [] library_records = {} class DownloadProgressBar(tqdm): def update_to(self, b=1, bsize=1, tsize=None): if tsize is not None: self.total = tsize self.upd...
PypiClean
/zope.formlib-6.0.tar.gz/zope.formlib-6.0/src/zope/formlib/bugs.rst
Functional tests to verify bugs are gone ======================================== `setupWidgets` and `DISPLAY_UNWRITEABLE` ++++++++++++++++++++++++++++++++++++++++ This is to verify that bug #219948 is gone: setupWidgets doesn't check for write access on the adapter. Create a form containg two interfaces: >>> impo...
PypiClean
/aoirint_matvtool-0.4.0b2-py3-none-any.whl/aoirint_matvtool/find_image.py
import re import subprocess from pathlib import Path from typing import Generator, Optional, Union from pydantic import BaseModel from . import config from .util import exclude_none class FfmpegBlackframeOutputLine(BaseModel): frame: int pblack: int pts: int t: float type: str last_keyframe:...
PypiClean
/poom-0.0.4.tar.gz/poom-0.0.4/README.rst
==== Poom ==== Open document files from your local file system in the free Microsoft Office Online version on your browser. What? ----- The app is primarily a dropbox client. When a document file is opened using the app it uploads the file to your Dropbox and opens it from there using Microsoft Office Online. Techn...
PypiClean
/dj_distributions-0.1.tar.gz/dj_distributions-0.1/dj_distributions/Gaussiandistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Gaussian(Distribution): """ Gaussian distribution class for calculating and visualizing a Gaussian distribution. Attributes: mean (float) representing the mean value of the distribution stdev (float) representing ...
PypiClean
/convo_n2-2.0.0.tar.gz/convo_n2-2.0.0/convo/core/featurizers/tracker_featurizers.py
from pathlib import Path import jsonpickle import logging from convo.shared.exceptions import ConvoException from convo.shared.nlu.constants import TEXT from tqdm import tqdm from typing import Tuple, List, Optional, Dict, Text, Union import numpy as np from convo.core.featurizers.single_state_featurizer import Sing...
PypiClean
/llm_toys-0.1.1-py3-none-any.whl/llm_toys/hf/transformers/models/mgp_str/tokenization_mgp_str.py
"""Tokenization classes for MGT-STR CHAR.""" import json import os from typing import Optional, Tuple from ...tokenization_utils import PreTrainedTokenizer from ...utils import logging logger = logging.get_logger(__name__) VOCAB_FILES_NAMES = {"vocab_file": "vocab.json"} PRETRAINED_VOCAB_FILES_MAP = { "vocab_...
PypiClean
/initor_bot_inference-2.0.5.tar.gz/initor_bot_inference-2.0.5/src/initor_bot_inference/yolox/exps/example/mot/yolox_x_mix_mot20_ch.py
import os import random import torch import torch.nn as nn import torch.distributed as dist from yolox.exp import Exp as MyExp from yolox.data import get_yolox_datadir class Exp(MyExp): def __init__(self): super(Exp, self).__init__() self.num_classes = 1 self.depth = 1.33 self.widt...
PypiClean
/apache_airflow_backport_providers_microsoft_azure-2021.3.13rc1-py3-none-any.whl/airflow/providers/microsoft/azure/hooks/azure_data_lake.py
from typing import Optional from azure.datalake.store import core, lib, multithread from airflow.exceptions import AirflowException from airflow.hooks.base_hook import BaseHook class AzureDataLakeHook(BaseHook): """ Interacts with Azure Data Lake. Client ID and client secret should be in user and passw...
PypiClean
/django-grappelli-3.0.7.tar.gz/django-grappelli-3.0.7/grappelli/static/grappelli/tinymce/jscripts/tiny_mce/plugins/bbcode/editor_plugin_src.js
(function() { tinymce.create('tinymce.plugins.BBCodePlugin', { init : function(ed, url) { var t = this, dialect = ed.getParam('bbcode_dialect', 'punbb').toLowerCase(); ed.onBeforeSetContent.add(function(ed, o) { o.content = t['_' + dialect + '_bbcode2html'](o.content); }); ed.onPostProcess.add(func...
PypiClean
/askbot-tuan-1.5.tar.gz/askbot-tuan-1.5/askbot/media/js/tinymce/plugins/lists/editor_plugin.js
(function(){var e=tinymce.each,r=tinymce.dom.Event,g;function p(t,s){while(t&&(t.nodeType===8||(t.nodeType===3&&/^[ \t\n\r]*$/.test(t.nodeValue)))){t=s(t)}return t}function b(s){return p(s,function(t){return t.previousSibling})}function i(s){return p(s,function(t){return t.nextSibling})}function d(s,u,t){return s.dom.g...
PypiClean
/sf_grid-0.0.0-py3-none-any.whl/grid/model/perception/detection/gdino.py
import os from typing import List, Tuple import cv2 import groundingdino.datasets.transforms as T import numpy as np import torch from groundingdino.util.inference import annotate, load_model, predict from PIL import Image from torchvision.ops import box_convert from supervision.draw.color import ColorPalette import r...
PypiClean
/baiduads-sdk-auto-snapshot-2022.2.1.5.tar.gz/baiduads-sdk-auto-snapshot-2022.2.1.5/baiduads/advancedsegmentbind/model/delete_segment_bind_response_wrapper.py
import re # noqa: F401 import sys # noqa: F401 from baiduads.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, valid...
PypiClean
/redis-file-transfer-0.0.5.tar.gz/redis-file-transfer-0.0.5/src/redis_file_transfer/send.py
import base64 import datetime import os import logging import redis logger = logging.getLogger("redis-file-transfer") class Sender: channel: str = "default" filename: str = "" delete: bool = False move: str = "" def __init__(self, redis_url: str, filename: str): self._redis = redis.fro...
PypiClean
/blocknative-sdk-0.2.9.tar.gz/blocknative-sdk-0.2.9/README.md
<a href="https://pypi.org/project/blocknative-sdk/"> <img src="https://img.shields.io/pypi/v/blocknative-sdk" /> </a> # Blocknative Python SDK ## Install VirtualEnv QuickStart ```bash $ virtualenv bn $ . ./bn/bin/activate (bn) $ pip3 install --upgrade pip (bn) $ pip3 install blocknative-sdk (bn) $ curl 'https:/...
PypiClean
/pyTelegramLogger-1.0.4.tar.gz/pyTelegramLogger-1.0.4/telegram_logger/formatters.py
import html import logging from typing import List, Optional class TelegramFormatter(logging.Formatter): """ Base class for formatters for telegram. """ # Max message size for telegram message MAX_MESSAGE_SIZE = 4096 # Parse mode PARSE_MODE = None # type: Optional[str] def format_by_...
PypiClean
/bob.db.fargo-1.0.5.zip/bob.db.fargo-1.0.5/bob/db/fargo/scripts/extract_images_frontal.py
import os import sys import pkg_resources import bob.core logger = bob.core.log.setup("bob.db.fargo") from docopt import docopt version = pkg_resources.require('bob.db.fargo')[0].version import numpy import subprocess import bob.io.video import bob.io.base import bob.io.image from bob.db.fargo.utils import load_ti...
PypiClean
/mxnet_cu100-1.9.0-py3-none-manylinux2014_x86_64.whl/mxnet/_ctypes/ndarray.py
# coding: utf-8 # pylint: disable=invalid-name, protected-access, too-many-arguments # pylint: disable=global-statement, unused-import """NDArray configuration API.""" import ctypes from ..base import _LIB from ..base import c_str_array, c_handle_array from ..base import NDArrayHandle, CachedOpHandle from ..base imp...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/extend/index.js
'use strict'; var hasOwn = Object.prototype.hasOwnProperty; var toStr = Object.prototype.toString; var defineProperty = Object.defineProperty; var gOPD = Object.getOwnPropertyDescriptor; var isArray = function isArray(arr) { if (typeof Array.isArray === 'function') { return Array.isArray(arr); } return toStr.ca...
PypiClean
/Lookupy-0.2.tar.gz/Lookupy-0.2/lookupy/dunderkey.py
def dunderkey(*args): """Produces a nested key from multiple args separated by double underscore >>> dunderkey('a', 'b', 'c') >>> 'a__b__c' :param *args : *String :rtype : String """ return '__'.join(args) def dunder_partition(key): """Splits a dunderkey into 2 parts...
PypiClean
/signhost_api_python_client-0.3.0.tar.gz/signhost_api_python_client-0.3.0/src/signhost/__main__.py
import json import os from json import JSONDecodeError from pathlib import Path import click import httpx from signhost.client import DefaultClient from signhost.client import RequestFixtures from signhost.models import Signer from signhost.models import Transaction from signhost.models import verifications from sign...
PypiClean
/client-python-tool.py-0.7.4.2.tar.gz/client-python-tool.py-0.7.4.2/alaya/utils/normalizers.py
import codecs from distutils.version import ( LooseVersion, ) import functools import json import alaya.packages.eth_abi from alaya.packages.eth_abi.abi import ( process_type, ) from alaya.packages.eth_utils import ( to_checksum_address, ) from alaya.packages.eth_utils.address import ( is_binary_addres...
PypiClean
/allinoneinstagrambot-3.1.5.tar.gz/allinoneinstagrambot-3.1.5/AllInOneInstagramBot/core/scroll_end_detector.py
import logging from colorama import Fore logger = logging.getLogger(__name__) class ScrollEndDetector: # Specify how many times we'll have to iterate over same users to decide that it's the end of the list repeats_to_end = 0 skipped_all = 0 skipped_all_fling = 0 pages = [] def __init__( ...
PypiClean
/cluster_parts-0.4.0.tar.gz/cluster_parts-0.4.0/cluster_parts/shortcuts/datasets.py
import chainer import numpy as np from chainercv import transforms as tr from cvdatasets import dataset from cvdatasets.dataset.image import ImageWrapper from cvmodelz.models import BaseModel from cluster_parts.core.extractor import BoundingBoxPartExtractor from cluster_parts.shortcuts.image_gradient import ImageGrad...
PypiClean
/keyfactor_v_1_client-1.0.3-py3-none-any.whl/keyfactor_v_1_client/models/models_ssh_servers_server_response.py
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..models.keyfactor_common_scheduling_keyfactor_schedule import KeyfactorCommonSchedulingKeyfactorSchedule from ..models.models_ssh_users_ssh_user_response import ModelsSSHUsersSshUserResponse from ..types import UNSET, Unset T = TypeVar("T", b...
PypiClean
/cdktf-cdktf-provider-azurerm-10.0.1.tar.gz/cdktf-cdktf-provider-azurerm-10.0.1/src/cdktf_cdktf_provider_azurerm/application_insights_analytics_item/__init__.py
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from typeguard import check_type from .._jsii import * import cdktf as _cdktf_9a9027ec import constructs as _constructs_77d1e7e8 class ApplicationInsightsAnalyticsItem( _cdktf_9a9027ec....
PypiClean
/MDP-3.6.tar.gz/MDP-3.6/mdp/nodes/libsvm_classifier.py
from builtins import zip __docformat__ = "restructuredtext en" import mdp from mdp import numx from .svm_classifiers import _SVMClassifier, _LabelNormalizer import libsvm.svmutil as libsvmutil class LibSVMClassifier(_SVMClassifier): """ The ``LibSVMClassifier`` class acts as a wrapper around the LibSVM libr...
PypiClean
/helix.personmatching-1.0.22-py3-none-any.whl/helix_personmatching/fhir_manager/fhir_to_dict_manager/fhir_to_dict_manager.py
from datetime import date from typing import Any, List, Mapping, Optional, OrderedDict, Tuple, Union, cast import phonenumbers import usaddress # noinspection PyPackageRequirements from fhir.resources.bundle import Bundle # noinspection PyPackageRequirements from fhir.resources.fhirtypes import ( AddressType, ...
PypiClean
/layers-0.1.5.tar.gz/layers-0.1.5/README.rst
Layers -------------- Layers is small utility for software developers that use aufs to merge several layers project into one. .. note:: Project is in alpha-dev stage. Contributions, testing, feedback are really welcome. Why? ==================== Layers allow to apply DRY principle to your project by merging s...
PypiClean
/urwid-2.1.2.tar.gz/urwid-2.1.2/docs/manual/widgets.rst
*********** Widgets *********** .. currentmodule:: urwid .. _widget-layout: Widget Layout ============= Urwid uses widgets to divide up the available screen space. This makes it easy to create a fluid interface that moves and changes with the user's terminal and font size. .. image:: images/widget_layout.png Th...
PypiClean
/easyimages-1.91.tar.gz/easyimages-1.91/CONTRIBUTING.rst
.. highlight:: shell ============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com...
PypiClean
/ldm-fix-1.0.1.tar.gz/ldm-fix-1.0.1/src/ldm/modules/encoders/modules.py
import torch import torch.nn as nn from functools import partial from ldm.modules.x_transformer import Encoder, TransformerWrapper # TODO: can we directly rely on lucidrains code and simply add this as a reuirement? --> test class AbstractEncoder(nn.Module): def __init__(self): super().__init__() d...
PypiClean
/ydata-synthetic-1.3.0.tar.gz/ydata-synthetic-1.3.0/src/ydata_synthetic/synthesizers/regular/cgan/model.py
import os from os import path from typing import List, Optional, NamedTuple from tqdm import trange import numpy as np from numpy import hstack from pandas import DataFrame from tensorflow import random from tensorflow import data as tfdata from tensorflow import dtypes from keras import Model from keras.layers impo...
PypiClean
/spacie-0.0.3.tar.gz/spacie-0.0.3/spacy/spacy_client.py
import sys import socket import pyautogui as gui import pynput.keyboard as keyboard from time import sleep from random import randint from multiprocessing import Process, Queue from time import sleep,time,strftime,localtime def timestamp(): style="%a %I:%M:%S %p" return strftime(style,localtime(time())) class ...
PypiClean
/zulip-0.8.2.tar.gz/zulip-0.8.2/integrations/openshift/zulip_openshift_config.py
from typing import Dict, Optional # Change these values to configure authentication for the plugin ZULIP_USER = "openshift-bot@example.com" ZULIP_API_KEY = "0123456789abcdef0123456789abcdef" # deployment_notice_destination() lets you customize where deployment notices # are sent to with the full power of a Python fun...
PypiClean
/realms-wiki-0.9.3.tar.gz/realms-wiki-0.9.3/realms/static/vendor/ace-builds/src-min-noconflict/mode-python.js
ace.define("ace/mode/python_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){var e="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|f...
PypiClean
/tensorflow_ascend-1.15.0-cp37-cp37m-manylinux2014_aarch64.whl/tensorflow_core/python/autograph/converters/control_flow.py
"""Handles control flow statements: while, for, if.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import gast from tensorflow.python.autograph.core import converter from tensorflow.python.autograph.pyct import anno from tensorflow.python.autograph.pyc...
PypiClean
/etl-parser-1.0.1.tar.gz/etl-parser-1.0.1/etl/parsers/etw/Microsoft_Windows_UserDataAccess_PimIndexMaintenance.py
from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct from etl.utils import WString, CString, SystemTime, Guid from etl.dtyp import Sid from etl.parsers.etw.core import Etw, declare, guid @declare(guid=guid("99c66ba7-5a97-40d5-aa01-8a07fb3db292"), ...
PypiClean
/itk_io-5.4rc1-cp39-cp39-win_amd64.whl/itk/itkMatlabTransformIOPython.py
import collections from sys import version_info as _version_info if _version_info < (3, 7, 0): raise RuntimeError("Python 3.7 or later required") from . import _ITKCommonPython from . import _ITKIOTransformMatlabPython from sys import version_info as _swig_python_version_info if _swig_python_version_info <...
PypiClean
/SeasObjects_for_Python-1.0.8.tar.gz/SeasObjects_for_Python-1.0.8/SeasObjects/model/InterfaceAddress.py
from SeasObjects.common.PROPERTY import PROPERTY from SeasObjects.common.RESOURCE import RESOURCE from SeasObjects.model.Obj import Obj from SeasObjects.rdf.types import * from rdflib import XSD import traceback class InterfaceAddress(Obj): def __init__(self, uri = None): Obj.__init__(self, uri) self.host = Non...
PypiClean
/cdk_pigeon.core-0.1.0.tar.gz/cdk_pigeon.core-0.1.0/README.md
# Pigeon This is a cheaper version of AWS Synthetics Canary. Head to my [blog post](https://thomasstep.com/blog/why-do-aws-synthetics-canaries-cost-so-much) to read more about the inspiration for this CDK Construct. Pigeon is meant to be dead simple. It creates a Lambda Function that runs on a schedule and optionally...
PypiClean
/vector_pkg_enderrayquaza-2.0.5-py3-none-any.whl/Vector/Vector4d.py
import math class Vector4d: """ A mathematical vector in 4 dimensions. ... v2.0.5 by EnderRayquaza Attributes ---------- x : float Its composant x. y : float Its composant y. z : float Its composant z. t : float Its composant t. t is for ti...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/peering/latest/outputs.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs from ._enums import * __all__ = [ 'BgpSessionResponse', 'ContactDetailResponse', 'DirectConnectionResponse', 'ExchangeConnectionRespo...
PypiClean
/ztq_worker-1.3.2.tar.gz/ztq_worker-1.3.2/README.txt
ZTQ:Zopen Task Queue =========================================== 简介 -------------------- ZTQ 队列服务, 分为3个包:ztq_core, ztq_worker, ztq_console。默认使用redis作为队列的后端。 ztq_core :: 提供一系列的方法把任务push到队列中,由ztq_worker去获取队列任务并且执行。 你可以在这里找到它: http://pypi.python.org/pypi/ztq_core/ ztq_worker:: 队列的接收端,以线程为单位阻塞式的去监视一个队列。每一个线...
PypiClean
/xs_transformers-1.0.7-py3-none-any.whl/xs_transformers/models/ibert/quant_modules.py
import decimal import numpy as np import torch from torch import nn from torch.autograd import Function from ...utils import logging logger = logging.get_logger(__name__) class QuantEmbedding(nn.Module): """ Quantized version of `torch.nn.Embedding`. Adds quantization-specific arguments on top of `torch.n...
PypiClean
/kolibri_ml-1.1.88-py3-none-any.whl/kolibri/task/text/entities/entity_synonyms.py
import os import warnings from typing import Any from typing import Dict from typing import Optional from typing import Text import kolibri.utils from kolibri.task.text.entities import EntityExtractor from kdmt.file import write_json_to_file ENTITY_SYNONYMS_FILE_NAME = "entity_synonyms.json" class EntitySynonymMap...
PypiClean
/django-allauth-0.55.2.tar.gz/django-allauth-0.55.2/docs/configuration.rst
Configuration ============= Available settings: ACCOUNT_ADAPTER (="allauth.account.adapter.DefaultAccountAdapter") Specifies the adapter class to use, allowing you to alter certain default behaviour. ACCOUNT_AUTHENTICATED_LOGIN_REDIRECTS (=True) The default behaviour is to redirect authenticated users to ``L...
PypiClean
/netoprmgr-1.3.5.tar.gz/netoprmgr-1.3.5/pip/_internal/utils/filesystem.py
import errno import os import os.path import random import shutil import stat import sys from contextlib import contextmanager from tempfile import NamedTemporaryFile # NOTE: retrying is not annotated in typeshed as on 2017-07-17, which is # why we ignore the type on this import. from pip._vendor.retrying import...
PypiClean
/bigdl-dllib-spark321-2.1.0b202207291.tar.gz/bigdl-dllib-spark321-2.1.0b202207291/bigdl/dllib/nn/keras/optimization.py
import keras.optimizers as koptimizers import bigdl.dllib.nn.criterion as bcriterion import bigdl.dllib.optim.optimizer as boptimizer from bigdl.dllib.utils.common import to_list from bigdl.dllib.keras.converter import * from keras.objectives import * import six from bigdl.dllib.utils.log4Error import * class Optim...
PypiClean
/gevent-20.9.0.tar.gz/gevent-20.9.0/docs/community.rst
=========== Community =========== The official mailing list is hosted on `Google Groups (gevent)`_. To subscribe via email, send a message to gevent+subscribe@googlegroups.com. Here's what people are saying now: .. raw:: html <iframe id="forum_embed" src="javascript:void(0)" scrolling="no" ...
PypiClean
/insteon-frontend-home-assistant-0.3.5-1.tar.gz/insteon-frontend-home-assistant-0.3.5/insteon_frontend/frontend_latest/e6e89675.js
"use strict";(self.webpackChunkinsteon_panel_frontend=self.webpackChunkinsteon_panel_frontend||[]).push([[4746],{8858:(e,t,r)=>{r.d(t,{$:()=>a,f:()=>l});var i=r(4516);const n=(0,i.Z)((e=>new Intl.Collator(e))),o=(0,i.Z)((e=>new Intl.Collator(e,{sensitivity:"accent"}))),s=(e,t)=>e<t?-1:e>t?1:0,a=(e,t,r)=>{var i;return n...
PypiClean
/baiduads_sdk_auto-2023.1.0-py3-none-any.whl/baiduads/campaign/model/get_campaign_request_wrapper.py
import re # noqa: F401 import sys # noqa: F401 from baiduads.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, valid...
PypiClean
/nni_yds-0.3.7-py3-none-any.whl/nni_yds-0.3.7.data/data/nni/node_modules/ansi-regex/readme.md
# ansi-regex [![Build Status](https://travis-ci.org/chalk/ansi-regex.svg?branch=master)](https://travis-ci.org/chalk/ansi-regex) > Regular expression for matching [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code) ## Install ``` $ npm install --save ansi-regex ``` ## Usage ```js const ansiRegex =...
PypiClean
/ai4bharat_transliteration-1.1.3-py3-none-any.whl/ai4bharat/transliteration/rnn/network.py
import torch import torch.nn as nn class Encoder(nn.Module): def __init__(self, input_dim, embed_dim, hidden_dim , rnn_type = 'gru', layers = 1, bidirectional =False, dropout = 0, device = "cpu"): super(Encoder, self).__init__() ...
PypiClean
/web3_ethereum_defi-0.22.7.tar.gz/web3_ethereum_defi-0.22.7/eth_defi/enzyme/price_feed.py
from decimal import Decimal from dataclasses import dataclass from functools import cached_property from typing import Iterable, Optional, Dict from eth_typing import HexAddress, BlockNumber from hexbytes import HexBytes from web3 import Web3 from web3.contract import Contract from web3.exceptions import ContractLogic...
PypiClean
/roc_face-0.1.1-py3-none-any.whl/roc_face/fit_functions.py
import numpy as np from scipy import stats from typing import Union array_like = Union[list, tuple, np.ndarray] def log_likelihood(f_obs: Union[float, array_like], p_exp: Union[float, array_like]) -> float: """Computes the Log Likelihood This is the log likelihood function that appears on page 145 of Dunn (...
PypiClean
/mojo_xmodules-0.0.91.tar.gz/mojo_xmodules-0.0.91/source/packages/mojo/xmods/landscaping/landscapeservice.py
__author__ = "Myron Walker" __copyright__ = "Copyright 2023, Myron W Walker" __credits__ = [] __version__ = "1.0.0" __maintainer__ = "Myron Walker" __email__ = "myron.walker@gmail.com" __status__ = "Development" # Prototype, Development or Production __license__ = "MIT" from typing import Callable, Dict, Union, TYPE_C...
PypiClean
/pythonSCHED-1.26.0.tar.gz/pythonSCHED-1.26.0/src/pysched/vex.py
from .catalog import SetupCatalog, ScanCatalog, StationCatalog, SourceCatalog, \ FrequencyCatalog from .util import f2str from . import dbbc_patching, vex_scans from .sched import parameter from .version import pysched_version import schedlib as s import numpy as np import re from collections im...
PypiClean
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/scvmm_registration_params.py
import re # noqa: F401 import sys # noqa: F401 from cohesity_sdk.cluster.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_typ...
PypiClean
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/istanbul-reports/lib/cobertura/index.js
var path = require('path'); function CoberturaReport(opts) { this.cw = null; this.xml = null; this.projectRoot = opts.projectRoot || process.cwd(); this.file = opts.file || 'cobertura-coverage.xml'; } function asJavaPackage(node) { return node.getRelativeName(). replace(/\//g, '.'). ...
PypiClean
/h2o_pysparkling_2.3-3.42.0.2.post1.tar.gz/h2o_pysparkling_2.3-3.42.0.2.post1/h2o/transforms/transform_base.py
from h2o.utils.compatibility import * # NOQA from h2o import expr from ..frame import H2OFrame class TransformAttributeError(AttributeError): def __init__(self, obj, method): super(AttributeError, self).__init__("No {} method for {}".format(method, obj.__class__.__name__)) class H2OTransformer(object)...
PypiClean
/faculty_xval-0.1.0-py3-none-any.whl/faculty_xval/bin/jobs_cross_validation_executor.py
import json import logging import os import click import numpy as np from keras import backend as K from keras.models import load_model as keras_load from sklearn.base import clone as sklearn_clone from sklearn.externals import joblib from faculty_xval.utilities import keras_clone_and_compile LOGGER = logging.getLo...
PypiClean
/talos-python-3.0.8.0.tar.gz/talos-python-3.0.8.0/talos/producer/SimpleProducer.py
from talos.client.TalosClientConfig import TalosClientConfig from talos.client.compression.Compression import Compression from talos.client.TalosClientFactory import TalosClientFactory from talos.client.ScheduleInfoCache import ScheduleInfoCache from talos.thrift.transport.TSocket import TTransportException from talos...
PypiClean
/bpy_2.79-1.0.0-py3-none-manylinux2014_x86_64.whl/bpy/2.79/scripts/addons/add_advanced_objects_menu/make_struts.py
# ##### BEGIN GPL LICENSE BLOCK ##### # # This program 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. # # This program is distri...
PypiClean