id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/ansible-8.3.0-py3-none-any.whl/ansible_collections/community/digitalocean/plugins/modules/digital_ocean_project.py
from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r""" --- module: digital_ocean_project short_description: Manage a DigitalOcean project description: - Manage a project in DigitalOcean author: "Tyler Auerbeck (@tylerauerbeck)" version_added: 1.6.0 options: ...
PypiClean
/pdcontextevents-0.0.9.tar.gz/pdcontextevents-0.0.9/README.md
Contains 8 functions: 1. This returns all items under "hashtag". It has 1 argument, enter the hashtag path from the event 2. This returns all items under "symbols". It has 1 argument, enter the symbols path from the event 3. This returns all items under "user_mentions". It has 1 argument, enter the user_mentions ...
PypiClean
/pulumi_okta-4.4.0a1693464337.tar.gz/pulumi_okta-4.4.0a1693464337/pulumi_okta/get_template.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = [ 'GetTemplateResult', 'AwaitableGetTemplateResult', 'get_template', 'get_template_output', ] @pulumi.output_type class GetTemplateRe...
PypiClean
/sepal-ui-2.16.4.tar.gz/sepal-ui-2.16.4/sepal_ui/aoi/aoi_tile.py
from pathlib import Path from typing import List, Optional, Union import ipyvuetify as v from sepal_ui import mapping as sm from sepal_ui import sepalwidgets as sw from sepal_ui.aoi.aoi_view import AoiView from sepal_ui.message import ms __all__ = ["AoiTile"] class AoiTile(sw.Tile): map: Optional[sm.SepalMap...
PypiClean
/js.angular_ui_scroll-1.4.1.tar.gz/js.angular_ui_scroll-1.4.1/js/angular_ui_scroll/resources/ui-scroll.js
(function () { 'use strict'; var _typeof = typeof Symbol === 'function' && typeof Symbol.iterator === 'symbol' ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === 'function' && obj.constructor === Symbol ? 'symbol' : typeof obj; }; /*! globals: angular, window List of used el...
PypiClean
/smartpip2-2.1.9.5.tar.gz/smartpip2-2.1.9.5/airflow/utils/retries.py
import functools import logging from inspect import signature from typing import Any, Optional import tenacity from sqlalchemy.exc import OperationalError from airflow.configuration import conf MAX_DB_RETRIES = conf.getint('core', 'max_db_retries', fallback=3) def run_with_db_retries(max_retries: int = MAX_DB_RET...
PypiClean
/convo5-0.1.tar.gz/convo5-0.1/convo/cli/run.py
import argparse import logging import os from typing import List, Text from convo.cli.arguments import run as arguments from convo.cli.utils import get_validated_path, print_error from convo.constants import ( DEFAULT_ACTIONS_PATH, DEFAULT_CREDENTIALS_PATH, DEFAULT_ENDPOINTS_PATH, DEFAULT_MODELS_PATH, ...
PypiClean
/git_tidy-1.2.0-py3-none-any.whl/tidy/core.py
import collections.abc import io import os import re import subprocess import tempfile import dateutil.parser import formaldict import jinja2 from packaging import version import yaml from tidy import exceptions from tidy import github from tidy import utils # The default tidy log Jinja template DEFAULT_LOG_TEMPLAT...
PypiClean
/django-extended-settings-1.2.1.tar.gz/django-extended-settings-1.2.1/extended_settings/apps.py
import os import sys import imp import glob from django.apps import AppConfig from django.conf import settings # -------------------------------------------------------------------------------------------- # - Import extended settings apps # ---------------------------------------------------------------------------...
PypiClean
/mxnet_cu112-2.0.0b1-py3-none-manylinux2014_x86_64.whl/mxnet/gluon/rnn/rnn_layer.py
# coding: utf-8 # pylint: disable=no-member, invalid-name, protected-access, no-self-use # pylint: disable=too-many-branches, too-many-arguments, no-self-use # pylint: disable=too-many-lines, arguments-differ """Definition of various recurrent neural network layers.""" __all__ = ['RNN', 'LSTM', 'GRU'] from ... impor...
PypiClean
/merlinth-mri-0.4.0.tar.gz/merlinth-mri-0.4.0/merlinth/complex.py
import torch def complex_abs(z, eps=1e-9): return torch.sqrt(torch.real(torch.conj(z) * z) + eps) def complex_norm(z, eps=1e-9): return z / complex_abs(z, eps) def complex_angle(z, eps=1e-9): return torch.atan2(torch.imag(z), torch.real(z) + eps) def complex_scale(x, scale): return torch.complex(tor...
PypiClean
/collective.ckeditor-5.0.0a1.tar.gz/collective.ckeditor-5.0.0a1/src/collective/ckeditor/_src/ckeditor/plugins/image2/dialogs/image2.js
* @fileOverview Image plugin based on Widgets API */ 'use strict'; CKEDITOR.dialog.add( 'image2', function( editor ) { // RegExp: 123, 123px, empty string "" var regexGetSizeOrEmpty = /(^\s*(\d+)(px)?\s*$)|^$/i, lockButtonId = CKEDITOR.tools.getNextId(), resetButtonId = CKEDITOR.tools.getNextId(), lang =...
PypiClean
/django-admintheme-0.2.tar.gz/django-admintheme-0.2/admintheme/static/admin/js/SelectBox.js
var SelectBox = { cache: new Object(), init: function(id) { var box = document.getElementById(id); var node; SelectBox.cache[id] = new Array(); var cache = SelectBox.cache[id]; for (var i = 0; (node = box.options[i]); i++) { cache.push({value: node.value, text...
PypiClean
/PythonToolkit-22.10.tar.gz/PythonToolkit-22.10/ptk_lib/core_tools/inspector/inspector_icons.py
from wx.lib.embeddedimage import PyEmbeddedImage #---------------------------------------------------------------------- inspector16 = PyEmbeddedImage( "iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABHNCSVQICAgIfAhkiAAAAzdJ" "REFUOI2Vk11om2UUx//P834k75vmqyZNqymzjG1V3KZNp2vQTalerOzCsZXBhG5SQVz82IWr" "1RWHM...
PypiClean
/trytond_nereid_catalog-4.0.2.4.tar.gz/trytond_nereid_catalog-4.0.2.4/product.py
from collections import deque from nereid import render_template, route from nereid.globals import session, request, current_app from nereid.helpers import slugify, url_for from nereid import jsonify, Markup, current_locale from nereid.contrib.pagination import Pagination from nereid.contrib.sitemap import SitemapInde...
PypiClean
/c65ryu-5.0.0.tar.gz/c65ryu-5.0.0/ryu/ofproto/ofproto_v1_0_parser.py
import struct import base64 import six import netaddr from ryu.ofproto.ofproto_parser import StringifyMixin, MsgBase from ryu.lib import addrconv from ryu.lib import ip from ryu.lib import mac from ryu.lib.packet import packet from ryu.lib.pack_utils import msg_pack_into from ryu.ofproto import nx_match from ryu.ofpr...
PypiClean
/sendbird_platform_sdk-0.0.16-py3-none-any.whl/sendbird_platform_sdk/model/list_my_group_channels_response.py
import re # noqa: F401 import sys # noqa: F401 from sendbird_platform_sdk.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_ty...
PypiClean
/fishnet_cod-1.1.0.tar.gz/fishnet_cod-1.1.0/src/fishnet_cod/api/main.py
import asyncio import logging import os from os import listdir from typing import List, Optional, Dict, Union, Tuple import pandas as pd # type: ignore from aars.utils import PageableRequest, PageableResponse from aleph.sdk.exceptions import BadSignatureError # type: ignore from aleph_message.models import PostMessa...
PypiClean
/softwaretestingmaterial-zh-2022.9.14.0.tar.gz/softwaretestingmaterial-zh-2022.9.14.0/SoftwaretestingmaterialZh/docs/008.md
# Java 中的变量| Java 教程 > 原文:[https://www.softwaretestingmaterial.com/variables-in-java/](https://www.softwaretestingmaterial.com/variables-in-java/) 在 Java 中,变量是给一个内存位置的名字,这个变量与一个值相关联。 *int x = 99;* int–数据类型 x–变量 99–值 变量 x 保存整数值,其当前值为 99。 *data_type 变量=值;* 示例: int x = 99 ### Java 中的变量命名约定: 前面我们已经了解到 Java 是一种区分大...
PypiClean
/lark-oapi-1.0.19.tar.gz/lark-oapi-1.0.19/lark_oapi/api/corehr/v2/model/company.py
from typing import * from lark_oapi.core.construct import init from .custom_field_data import CustomFieldData from .enum import Enum from .hiberarchy_common import HiberarchyCommon from .i18n import I18n class Company(object): _types = { "company_id": str, "hiberarchy_common": HiberarchyCommon, ...
PypiClean
/nfelib-xsdata-0.9.2.zip/nfelib-xsdata-0.9.2/nfelib/bindings/mdfe/v3_0/tipos_geral_mdfe_v3_00.py
from enum import Enum __NAMESPACE__ = "http://www.portalfiscal.inf.br/mdfe" class Tamb(Enum): """ Tipo Ambiente. """ VALUE_1 = "1" VALUE_2 = "2" class TcorgaoIbge(Enum): """ Tipo Código de orgão (UF da tabela do IBGE + 90 SUFRAMA + 91 RFB + 92 BRId) """ VALUE_11 = "11" VALUE...
PypiClean
/wechatpayv3-fix-1.2.38.tar.gz/wechatpayv3-fix-1.2.38/wechatpayv3/businesscircle.py
from .type import RequestType def points_notify(self, transaction_id, openid, earn_points, increased_points, points_update_time, no_points_remarks=None, total_points=None, appid=None, sub_mchid=None): """智慧商圈积分同步 :param transaction_id: 微信订单号,示例值:'1217752501201407033233368018' :param openid: 用户标识,示例值:'oWm...
PypiClean
/pyignite-0.5.1.tar.gz/pyignite-0.5.1/examples/async_sql.py
import asyncio from decimal import Decimal from pyignite import AioClient COUNTRY_TABLE_NAME = 'Country' CITY_TABLE_NAME = 'City' LANGUAGE_TABLE_NAME = 'CountryLanguage' COUNTRY_CREATE_TABLE_QUERY = '''CREATE TABLE Country ( Code CHAR(3) PRIMARY KEY, Name CHAR(52), Continent CHAR(50), Region CHAR(2...
PypiClean
/vmess-3-py3-none-any.whl/request/models.py
import datetime import sys # Import encoding now, to avoid implicit import later. # Implicit import within threads may cause LookupError when standard library is in a ZIP, # such as in Embedded Python. See https://github.com/requests/requests/issues/3578. import encodings.idna from urllib3.fields import RequestField ...
PypiClean
/django-ckeditor-updated-4.4.4.tar.gz/django-ckeditor-updated-4.4.4/ckeditor/static/ckeditor/ckeditor/plugins/smiley/dialogs/smiley.js
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.dialog.add("smiley",function(f){for(var e=f.config,a=f.lang.smiley,h=e.smiley_images,g=e.smiley_columns||8,i,k=function(j){var c=j.data.getTarget(),b=c.getName();if(...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/device_management/group_policy_configurations/item/definition_values/item/presentation_values/item/definition_value/definition_value_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
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/docdb/reboot-db-instance.rst
**To reboot an Amazon DocumentDB instance** The following ``reboot-db-instance`` example reboots the Amazon DocumentDB instance ``sample-cluster2``. :: aws docdb reboot-db-instance \ --db-instance-identifier sample-cluster2 This command produces no output. Output:: { "DBInstance": { ...
PypiClean
/azure-mgmt-security-5.0.0.zip/azure-mgmt-security-5.0.0/azure/mgmt/security/v2019_08_01/_configuration.py
from typing import Any, TYPE_CHECKING from azure.core.configuration import Configuration from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy from ._version import VERSION if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/codemirror/mode/sparql/sparql.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use s...
PypiClean
/git_linter-0.0.7.tar.gz/git_linter-0.0.7/docs/strategies.rst
Strategies ---------- git-lint has a couple of phases in which it develops its strategy for what to run: 1. Load the configuration file. a. On the command line? b. In the base directory as .git-lint? c. In the base directory as .git-lint/config? d. In the user's home directory as .git-lint? e. In the u...
PypiClean
/zamia-prolog-0.1.0.tar.gz/zamia-prolog-0.1.0/zamiaprolog/logicdb.py
# # Copyright 2015, 2016, 2017 Guenter Bartsch # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This progra...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/check_point/mgmt/plugins/modules/cp_mgmt_lsm_cluster_profile_facts.py
from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { "metadata_version": "1.1", "status": ["preview"], "supported_by": "community", } DOCUMENTATION = """ --- module: cp_mgmt_lsm_cluster_profile_facts short_description: Get lsm-cluster-profile objects...
PypiClean
/polarscnj-1.0.21-cp38-cp38-manylinux_2_31_x86_64.whl/polars/internals/expr/struct.py
from __future__ import annotations import polars.internals as pli class ExprStructNameSpace: """Namespace for struct related expressions.""" _accessor = "struct" def __init__(self, expr: pli.Expr): self._pyexpr = expr._pyexpr def __getitem__(self, item: str | int) -> pli.Expr: if i...
PypiClean
/nni_daily-1.5.2005180104-py3-none-manylinux1_x86_64.whl/nni_daily-1.5.2005180104.data/data/nni/node_modules/validator/lib/isMobilePhone.js
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = isMobilePhone; var _assertString = require('./util/assertString'); var _assertString2 = _interopRequireDefault(_assertString); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }...
PypiClean
/sr.tools-1.2.0.tar.gz/sr.tools-1.2.0/docs/commands/inv-findpart.rst
inv-findpart ============ Synopsis -------- ``sr inv-findpart [-h] [-s] [-r] <asset_code> [<asset_code> ...]`` Description ----------- Searches the inventory for an asset and gets the location of it. Options ------- --help, -h Display help and exit. --stat, -s Show the status field of the assets from the...
PypiClean
/scikit_learn-1.3.0-cp311-cp311-macosx_12_0_arm64.whl/sklearn/ensemble/_forest.py
import threading from abc import ABCMeta, abstractmethod from numbers import Integral, Real from warnings import catch_warnings, simplefilter, warn import numpy as np from scipy.sparse import hstack as sparse_hstack from scipy.sparse import issparse from ..base import ( ClassifierMixin, MultiOutputMixin, ...
PypiClean
/ebook-converter-noimage-4.12.2.tar.gz/ebook-converter-noimage-4.12.2/ebook_converter/ebooks/lrf/html/convert_from.py
import copy import glob import os import re import sys import tempfile import urllib.parse import collections import functools import itertools import math import bs4 from PIL import Image as PILImage from ebook_converter.constants_old import __appname__, filesystem_encoding, \ preferred_encoding from ebook_c...
PypiClean
/qiskit-aqua-0.9.5.tar.gz/qiskit-aqua-0.9.5/qiskit/aqua/algorithms/classifiers/sklearn_svm/_sklearn_svm_multiclass.py
import logging import numpy as np from qiskit.aqua.utils import map_label_to_class_name from ._sklearn_svm_abc import _SklearnSVMABC logger = logging.getLogger(__name__) # pylint: disable=invalid-name class _SklearnSVMMulticlass(_SklearnSVMABC): """ the multiclass classifier the classifier is built by...
PypiClean
/teatien-ccxt-2.0.6.tar.gz/teatien-ccxt-2.0.6/ccxt/static_dependencies/ecdsa/keys.py
import binascii from . import ecdsa from . import der from . import rfc6979 from .curves import NIST192p, find_curve from .ecdsa import RSZeroError from .util import string_to_number, number_to_string, randrange from .util import sigencode_string, sigdecode_string from .util import oid_ecPublicKey, encoded_oid_ecPubli...
PypiClean
/python-sources-3.10.5.tar.gz/python-sources-3.10.5/Python-3.10.5/Lib/uu.py
# Copyright 1994 by Lance Ellinghouse # Cathedral City, California Republic, United States of America. # All Rights Reserved # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose and without fee is hereby granted, # provided that the above copyri...
PypiClean
/lida_zk-0.1.0.tar.gz/lida_zk-0.1.0/lida/web/ui/~partytown/partytown-sw.js
const e=new Map,t=(e,t)=>({F:e.F,p:t}),r=(e,t)=>new Response(e,{headers:{"content-type":t||"text/html","Cache-Control":"no-store"}});self.oninstall=()=>self.skipWaiting(),self.onactivate=()=>self.clients.claim(),self.onmessage=t=>{const r=t.data,n=e.get(r.F);n&&(e.delete(r.F),clearTimeout(n[1]),n[0](r))},self.onfetch=n...
PypiClean
/pulumi_aws_native-0.75.1a1693503310.tar.gz/pulumi_aws_native-0.75.1a1693503310/pulumi_aws_native/servicediscovery/service.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 ._inputs import * __all__ = ['ServiceArgs', 'Service'] @pulumi.input_type class ServiceArgs: def __init__(__self__, *, ...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@types/node/util.d.ts
declare module 'util' { import * as types from 'node:util/types'; export interface InspectOptions { /** * If `true`, object's non-enumerable symbols and properties are included in the formatted result. * `WeakMap` and `WeakSet` entries are also included as well as user defined prototyp...
PypiClean
/kwallet-dump-1.0.2.tar.gz/kwallet-dump-1.0.2/README.md
# About A Python script to dump contents of a .kwl kwallet file for accessing passwords away from KDE desktop. Should work on wallets created on KDE 4 (written on KDE 4.10). The output is not polished because it serves a simple utility - to get passwords when not around a KDE desktop. Pipe the output to grep to make i...
PypiClean
/anime_api-1.0.1.tar.gz/anime_api-1.0.1/anime_api/__init__.py
from anime_api import apis # List of tuples (api_name, api_class, api_docs_url, is_available) api_list = [ ( "Anime Facts Rest API", apis.AnimeFactsRestAPI, "https://chandan-02.github.io/anime-facts-rest-api/", True, ), ( "Trace.moe API", apis.TraceMoeAPI, ...
PypiClean
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/rolesanywhere/_inputs.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = [ 'TrustAnchorSourceArgs', 'TrustAnchorSourceSourceDataArgs', ] @pulumi.input_type class TrustAnchorSourceArgs: def __init__(__self__, *...
PypiClean
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/lobby/operations/friends/user_get_friendship_status.py
# template file: ags_py_codegen # pylint: disable=duplicate-code # pylint: disable=line-too-long # pylint: disable=missing-function-docstring # pylint: disable=missing-module-docstring # pylint: disable=too-many-arguments # pylint: disable=too-many-branches # pylint: disable=too-many-instance-attributes # pylint: dis...
PypiClean
/graph4nlp-cu102-0.5.5.tar.gz/graph4nlp-cu102-0.5.5/graph4nlp/pytorch/modules/prediction/classification/node_classification/BiLSTMFeedForwardNNLayer.py
import torch as th import torch.autograd as autograd from torch import nn from ..base import NodeClassifierLayerBase class BiLSTMFeedForwardNNLayer(NodeClassifierLayerBase): r"""Specific class for node classification layer. Parameters ---------- input_size : int The length of inpu...
PypiClean
/azure-multiapi-storage-1.2.0.tar.gz/azure-multiapi-storage-1.2.0/azure/multiapi/storagev2/queue/v2019_07_07/_generated/aio/operations_async/_queue_operations_async.py
from azure.core.exceptions import map_error from ... import models class QueueOperations: """QueueOperations async operations. You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. :param client: Client for service requests...
PypiClean
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/examples/benchmarking/benchmarker.py
from __future__ import print_function from __future__ import division from __future__ import unicode_literals from builtins import str import os import sys import re from tempfile import mkstemp from subprocess import Popen, PIPE from textwrap import dedent from fipy.tools.parser import parse from fipy.tools.numerix i...
PypiClean
/pyfb-rating-1.0.0.tar.gz/pyfb-rating-1.0.0/pyfb_rating/models.py
from django.core.validators import MaxValueValidator from django.urls import reverse from django.db import models as models from django.db.models import * from django.conf import settings from django.contrib.postgres.fields import DateTimeRangeField from django.utils import timezone from django.utils.translation impor...
PypiClean
/kiara_plugin.tabular-0.4.29.tar.gz/kiara_plugin.tabular-0.4.29/src/kiara_plugin/tabular/models/table.py
from typing import TYPE_CHECKING, Any, Dict, Iterable, Mapping, Union import pyarrow as pa from pydantic import Field, PrivateAttr from kiara.exceptions import KiaraException from kiara.models import KiaraModel from kiara.models.values.value import Value from kiara.models.values.value_metadata import ValueMetadata fr...
PypiClean
/ally-py-0.9.0.tar.gz/ally-py-0.9.0/ally/cdm/support.py
from .spec import ICDM # -------------------------------------------------------------------- class ExtendPathCDM(ICDM): ''' Provides a CDM that delegates the call to a wrapped CDM but before that it alters the path. @see: ICDM ''' def __init__(self, wrapped, format): ''' Construc...
PypiClean
/parse/grammars/numpy_receives_section.py
from darglint2.token import ( TokenType, ) from darglint2.parse.identifiers import ( NoqaIdentifier, ) from darglint2.parse.grammar import ( BaseGrammar, P, ) class ReceivesGrammar(BaseGrammar): productions = [ P("receives-section", ([], "receives-header", "newlines", 0), ([], "receives-...
PypiClean
/CodeManager-1.0.0-py3-none-any.whl/code_manager/core/cache_container.py
import json import logging import os from code_manager.core.configuration import ConfigurationAware from code_manager.utils.read_input import promt_yes_no class CacheContainer(ConfigurationAware): loaded = False dirty = False cache = {} def __init__(self): pass def _internal_rebuild(se...
PypiClean
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/synapse/manual/operations/sqlpool.py
from azure.cli.core.util import sdk_no_wait from azure.mgmt.synapse.models import SqlPool, SqlPoolPatchInfo, Sku from knack.util import CLIError from .._client_factory import cf_synapse_client_workspace_factory from ..constant import SynapseSqlCreateMode, SqlPoolConnectionClientAuthenticationType, SqlPoolConnectionClie...
PypiClean
/infoauth-1.4.tar.gz/infoauth-1.4/README.rst
infoauth ======== A small but handy module and script to load/save tokens from/to disk. It does: - Save tokens in a file in disk, pickled and zipped - Change the file to read-only, and only by yourself - Load the tokens from disk In which case this module is useful? Say you have a script or program that needs to ...
PypiClean
/boto3_type_annotations_with_docs-0.3.1.tar.gz/boto3_type_annotations_with_docs-0.3.1/boto3_type_annotations/route53resolver/paginator.py
from typing import Dict from botocore.paginate import Paginator class ListTagsForResource(Paginator): def paginate(self, ResourceArn: str, PaginationConfig: Dict = None) -> Dict: """ Creates an iterator that will paginate through responses from :py:meth:`Route53Resolver.Client.list_tags_for_resour...
PypiClean
/luizalabs-django-toolkit-2.2.0.tar.gz/luizalabs-django-toolkit-2.2.0/django_toolkit/fallbacks/circuit_breaker/circuit_breaker.py
import inspect import logging from functools import wraps logger = logging.getLogger(__name__) class CircuitBreaker: def __init__( self, rule, cache, failure_exception, failure_timeout=None, circuit_timeout=None, catch_exceptions=None, ): self....
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/tailscale/config_flow.py
from __future__ import annotations from collections.abc import Mapping from typing import Any from tailscale import Tailscale, TailscaleAuthenticationError, TailscaleError import voluptuous as vol from homeassistant.config_entries import ConfigEntry, ConfigFlow from homeassistant.const import CONF_API_KEY from homea...
PypiClean
/pypolicyd-spf-2.0.2.tar.gz/pypolicyd-spf-2.0.2/policydspfuser.py
import syslog import re import os ############################################################### commentRx = re.compile(r'^(.*)#.*$') def _readUserConfigFile(path, recipient, configData): '''Reads a configuration file from the specified path, merging it with the configuration data specified in configData for ...
PypiClean
/bakers_registry-0.2.1-py3-none-any.whl/bakers_registry/encoding.py
import re from decimal import Decimal def decode_mutez(value): return Decimal(value) / 10000 def decode_percent(value, decimals=2): return Decimal(value) / 10 ** decimals def decode_split(value): return 1 - decode_percent(value, decimals=4) def decode_hex(value): return value.decode() def deco...
PypiClean
/fastapi_crud_code_generator-0.0.25-py3-none-any.whl/fastapi_quickcrud_codegen/crud_generator.py
from typing import \ List, \ TypeVar, Optional import sqlalchemy from pydantic import \ BaseModel from .db_model import DbModel from .generator.common_module_template_generator import CommonModuleTemplateGenerator from .misc.type import SqlType from .model.common_builder import CommonCodeGen CRUDModelTyp...
PypiClean
/django-fcm-vp-0.1.3.tar.gz/django-fcm-vp-0.1.3/fcm/admin.py
from functools import update_wrapper from django.contrib import admin from django.shortcuts import redirect, render from django.template import RequestContext from django.utils.translation import ugettext_lazy as _ from .forms import MessageForm from .utils import get_device_model Device = get_device_model() class ...
PypiClean
/cn_hyperarr-0.0.1.tar.gz/cn_hyperarr-0.0.1/docs/build/html/_static/localization/scn/TeX.js
MathJax.Localization.addTranslation("scn","TeX",{version:"2.7.4",isLoaded:true,strings:{ExtraOpenMissingClose:"Par\u00E8ntisi graffa graputa suverchia o par\u00E8ntisi graffa chiusa ammancanti",ExtraCloseMissingOpen:"Par\u00E8ntisi graffa chiusa suverchia o par\u00E8ntisi graffa graputa ammancanti",MissingLeftExtraRigh...
PypiClean
/pyndb-3.5.0.tar.gz/pyndb-3.5.0/README.md
[![PyPI version pyndb](https://raw.githubusercontent.com/jvadair/pyndb/main/github_assets/pypi_badge.svg)](https://pypi.org/project/pyndb/) # pyndb pyndb, short for Python Node Database, is a pacakge which makes it easy to save data to a file while also providing syntactic convenience. It utilizes a Node structure whic...
PypiClean
/python-opensesame-3.3.15a1.tar.gz/python-opensesame-3.3.15a1/openexp/_coordinates/coordinates.py
from libopensesame.py3compat import * from openexp._canvas.canvas import Canvas from openexp._mouse.mouse import Mouse from libopensesame.exceptions import osexception class Coordinates(object): """ desc: A base class for classes that need to perform coordinate conversions. """ def __init__(self): """ de...
PypiClean
/robot_grpc-0.0.4.tar.gz/robot_grpc-0.0.4/robot_grpc/node_modules/lodash/memoize.js
var MapCache = require('./_MapCache'); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a function'; /** * Creates a function that memoizes the result of `func`. If `resolver` is * provided, it determines the cache key for storing the result based on the * arguments provided to the memoized function...
PypiClean
/pytorch_clip_interrogator-2023.5.30.0-py3-none-any.whl/pytorch_clip_interrogator/prompt_engineer.py
import os from typing import Union, List import torch import PIL from PIL import Image from .blip import BLIP from .clip_interrogator import CLIPInterrogator class PromptEngineer: """ Find prompt that best match to input image. Args: blip_model (str): BLIP model name. clip_model (str): CLIP m...
PypiClean
/ask-smapi-model-1.36.0.tar.gz/ask-smapi-model-1.36.0/ask_smapi_model/v1/smart_home_evaluation/evaluate_sh_capability_response.py
# # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file # except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accomp...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/documentdb/v20160331/get_database_account_mongo_db_database.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ 'GetDatabaseAccountMongoDBDatabaseResult', 'AwaitableGetDatabaseAccountMongoDBDatabaseResult', 'get_database_account_mongo_db_database', ] @pulumi...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/vport/protocolstack/range_9d890958a285636b6a8f974eb82514e9.py
import sys from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files if sys.version_info >= (3, 5): from typing import List, Any, Union class Range(Base): """ The Range class encapsulates a list of range resources that are managed by the user. A list of resources can be retrieve...
PypiClean
/pulumi_aws_native-0.75.1a1693503310.tar.gz/pulumi_aws_native-0.75.1a1693503310/pulumi_aws_native/servicecatalog/cloud_formation_product.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 ._inputs import * __all__ = ['CloudFormationProductArgs', 'CloudFormationProduct'] @pulumi.input_type class CloudFormationProductAr...
PypiClean
/neural_compressor_full-2.1.1.tar.gz/neural_compressor_full-2.1.1/neural_compressor/metric/metric.py
import numpy as np from abc import abstractmethod from ctypes import Union from neural_compressor.utils.utility import LazyImport, singleton from neural_compressor.utils import logger from sklearn.metrics import accuracy_score torch = LazyImport('torch') tf = LazyImport('tensorflow') mx = LazyImport('mxnet') transform...
PypiClean
/bit_cryptocompare-1.0a1.tar.gz/bit_cryptocompare-1.0a1/bit_cryptocompare/util/validate.py
import math import re import sys import uuid from datetime import datetime from typing import Any, Sequence, Mapping # define set of regex patterns for known field types email_pattern = r'(^[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+$)' request_id = r'^[0-9a-f]{32}$' query_pattern = r'.+' def validate(data: Any,...
PypiClean
/puresec-cli-1.2.1.tar.gz/puresec-cli-1.2.1/puresec_cli/resources/node_modules/core-js/library/es6/index.js
require('../modules/es6.symbol'); require('../modules/es6.object.create'); require('../modules/es6.object.define-property'); require('../modules/es6.object.define-properties'); require('../modules/es6.object.get-own-property-descriptor'); require('../modules/es6.object.get-prototype-of'); require('../modules/es6.object...
PypiClean
/onshape_client-1.6.3-py3-none-any.whl/onshape_client/oas/models/parameter.py
from __future__ import absolute_import import re # noqa: F401 import sys # noqa: F401 import six # noqa: F401 from onshape_client.oas.model_utils import ( # noqa: F401 ModelComposed, ModelNormal, ModelSimple, date, datetime, file_type, int, none_type, str, validate_get_comp...
PypiClean
/novastella-0.0.1.zip/novastella-0.0.1/nova/DDplot.py
import pylab as pl import numpy as np import shelve class topo(object): def __init__(self, config): from eqlib import eq self.config = config self.path = './coil_data/' self.file = 'Double_Decker_Coils' self.coil_eq = eq(config).coil def sol(self): ...
PypiClean
/baserow_open_api_client-0.0.6.tar.gz/baserow_open_api_client-0.0.6/baserow_open_api_client/models/specific_application.py
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar import attr if TYPE_CHECKING: from ..models.workspace import Workspace T = TypeVar("T", bound="SpecificApplication") @attr.s(auto_attribs=True) class SpecificApplication: """ Attributes: id (int): name (str): orde...
PypiClean
/work_helper-0.1.5-py3-none-any.whl/helper/hello.py
import os import sys from openpyxl import load_workbook, Workbook from openpyxl.worksheet.worksheet import Worksheet from sqlalchemy import create_engine, MetaData, Table from helper.base.logger import log # add hidden import for pyinstaller. from cryptography.hazmat.primitives.kdf import pbkdf2 FILES = [ "cbo...
PypiClean
/uploadossfile-0.1.2.tar.gz/uploadossfile-0.1.2/README.md
### 上传阿里云oss文件 ####安装 pip install uploadossfile ### 使用方法: ``` # coding: utf-8 import typing import oss2 from uploadOss.upload_oss_file import ( UploadOssFile, unquote_gbk, ) def upload_file( file_path: str, doc_ext: str = 'xls', acl: typing.Any = oss2.OBJECT_ACL_PUBLIC_READ, if_h...
PypiClean
/git-cola-4.3.2.tar.gz/git-cola-4.3.2/cola/widgets/text.py
# pylint: disable=unexpected-keyword-arg from __future__ import absolute_import, division, print_function, unicode_literals from functools import partial import math from qtpy import QtCore from qtpy import QtGui from qtpy import QtWidgets from qtpy.QtCore import Qt from qtpy.QtCore import Signal from ..models import...
PypiClean
/js.extjs-4.2.1.883.tar.gz/js.extjs-4.2.1.883/js/extjs/resources/locale/ext-lang-mk.js
* Macedonia translation * By PetarD petar.dimitrijevic@vorteksed.com.mk (utf8 encoding) * 23 April 2007 */ Ext.onReady(function() { if (Ext.Date) { Ext.Date.monthNames = ["Јануари", "Февруари", "Март", "Април", "Мај", "Јуни", "Јули", "Август", "Септември", "Октомври", "Ноември", "Декември"]; E...
PypiClean
/srun-cli-0.1.1.tar.gz/srun-cli-0.1.1/srun/shell.py
from __future__ import absolute_import, division, print_function, \ with_statement import os import json import sys import getopt import logging #from srun.common import action from srun.common import to_bytes, to_str VERBOSE_LEVEL = 5 verbose = 0 def check_python(): info = sys.version_info if info[0]...
PypiClean
/tof-simulator-3.5.tar.gz/tof-simulator-3.5/tofsim/nist_elem.py
import os import re import itertools import collections as col import numpy as np from sys import stdout from configparser import SafeConfigParser try: datafile = os.path.join(os.path.dirname(os.path.realpath(__file__)), "nist_data.txt") except BaseException: datafile = 'nist_data.txt' if not os.path.exists(da...
PypiClean
/earth-vision-1.0.0.tar.gz/earth-vision-1.0.0/earthvision/datasets/xview.py
from PIL import Image import os import shutil import numpy as np import json from typing import Any, Callable, Optional, Tuple from .utils import _urlretrieve, _load_img from .vision import VisionDataset from ..constants.XView.config import index_mapping, CLASS_ENC, CLASS_DEC class XView(VisionDataset): """Datas...
PypiClean
/pensando_cloud-1.16.3.tar.gz/pensando_cloud-1.16.3/pensando_cloud/psm/model/cluster_dsc_profile_spec.py
import re # noqa: F401 import sys # noqa: F401 import nulltype # noqa: F401 from pensando_cloud.psm.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime...
PypiClean
/edx_enterprise-4.1.6-py3-none-any.whl/enterprise/admin/forms.py
import re from logging import getLogger from uuid import UUID from config_models.admin import ConfigurationModelAdmin from edx_rbac.admin.forms import UserRoleAssignmentAdminForm from django import forms from django.conf import settings from django.contrib import admin, auth from django.core.exceptions import Validat...
PypiClean
/fds.sdk.QuotesAPIforDigitalPortals-0.11.1-py3-none-any.whl/fds/sdk/QuotesAPIforDigitalPortals/model/inline_response20062_data_costs_and_charges_ex_post_distribution_fee.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.QuotesAPIforDigitalPortals.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...
PypiClean
/vastai_client-0.1.1.tar.gz/vastai_client-0.1.1/vastai_client/models.py
from dataclasses import dataclass QueryType = dict[str, bool | str | list[list[str]] | dict[str, str | bool]] @dataclass class Instance: """Class for storing information about a created instance.""" actual_status: str | None = None bundle_id: int | None = None bw_nvlink: float | None = None com...
PypiClean
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/es-to-primitive/test/es6.js
'use strict'; var test = require('tape'); var toPrimitive = require('../es6'); var is = require('object-is'); var forEach = require('foreach'); var functionName = require('function.prototype.name'); var debug = require('object-inspect'); var hasSymbols = typeof Symbol === 'function' && typeof Symbol.iterator === 'sym...
PypiClean
/idlewild-0.4.0.tar.gz/idlewild-0.4.0/README.md
Idlewild ======= Use the amazing Python PLY library to parse GraphQL IDL into a schema. ### Purpose Idlewild is a Python library for creating GraphQL schemas from GraphQL IDL format. Optionally it also allows you to register data fetchers for fields and these can be implemented in your own application. It was inspi...
PypiClean
/tq-huobi-client-sdk-2.0.0.tar.gz/tq-huobi-client-sdk-2.0.0/huobi/model/trade/matchresult.py
from huobi.constant import * class MatchResult: """ The match result information. :member created_timestamp: The UNIX formatted timestamp in UTC when the match and fill is done. filled_amount: The amount which has been filled. filled_fees: The transaction fee paid so far. ...
PypiClean
/mlflow_by_johnsnowlabs-2.20.0-py3-none-any.whl/mlflow/pyfunc/spark_model_cache.py
from mlflow.utils._spark_utils import _SparkDirectoryDistributor class SparkModelCache: """Caches models in memory on Spark Executors, to avoid continually reloading from disk. This class has to be part of a different module than the one that _uses_ it. This is because Spark will pickle classes that are ...
PypiClean
/version-comparator-0.0.2.tar.gz/version-comparator-0.0.2/CONTRIBUTING.rst
============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. Bug reports =========== When `reporting a bug <https://github.com/pcu4dros/pedro_cuadros_test/python-version-comparator/issues>`_ please include: * Your op...
PypiClean
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/tensorboard/_vendor/html5lib/treebuilders/etree.py
from __future__ import absolute_import, division, unicode_literals # pylint:disable=protected-access from six import text_type import re from copy import copy from . import base from .. import _ihatexml from .. import constants from ..constants import namespaces from .._utils import moduleFactoryFactory tag_regexp...
PypiClean
/drf_prettify_json_serializer_field-0.3.1.tar.gz/drf_prettify_json_serializer_field-0.3.1/README.md
# drf-prettify-json-serializer *You got ugly json, we got a serializer that can massage that data into something useful* Sometimes you get "*json*", that you have NO control over and the json is ugly. I mean really Ugly and Inconsistant. So, being the control-freak that you are you decide to bring order to the chao...
PypiClean
/pix2pixhd-1.0.tar.gz/pix2pixhd-1.0/README.md
<img src='imgs/teaser_720.gif' align="right" width=360> <br><br><br><br> # pix2pixHD ### [Project](https://tcwang0509.github.io/pix2pixHD/) | [Youtube](https://youtu.be/3AIpPlzM_qs) | [Paper](https://arxiv.org/pdf/1711.11585.pdf) <br> Pytorch implementation of our method for high-resolution (e.g. 2048x1024) photoreal...
PypiClean
/sympy.keras-1.0.23.tar.gz/sympy.keras-1.0.23/sympy/polys/agca/extensions.py
from sympy.polys.polyerrors import CoercionFailed from sympy.polys.polytools import Poly class ExtensionElement(object): """ Element of a finite extension. A class of univariate polynomials modulo the ``modulus`` of the extension ``ext``. It is represented by the unique polynomial ``rep`` of lowe...
PypiClean
/nb_offline_convert-0.1.1.tar.gz/nb_offline_convert-0.1.1/share/jupyter/nbconvert/templates/lab_offline/static/MathJax/jax/output/SVG/fonts/STIX-Web/Alphabets/Italic/Main.js
MathJax.OutputJax.SVG.FONTDATA.FONTS["STIXMathJax_Alphabets-italic"]={directory:"Alphabets/Italic",family:"STIXMathJax_Alphabets",style:"italic",id:"STIXWEBALPHABETSI",32:[0,0,250,0,0,""],160:[0,0,250,0,0,""],900:[649,-494,289,160,322,"160 494l94 132c11 15 22 23 43 23c11 0 25 -7 25 -22s-17 -31 -40 -52l-88 -81h-34"],901...
PypiClean