id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/response/AlipayInsSceneProductAgreementQueryResponse.py | import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayInsSceneProductAgreementQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayInsSceneProductAgreementQueryResponse, self).__init__()
self._agreeement_sign_type = None
self._alipay_user_id ... | PypiClean |
/eve_utils-0.9.44-py3-none-any.whl/eve_utils/addins/serverless.py | import os
import sys
import sys
import click
from subprocess import Popen, PIPE
import eve_utils
def warning():
print('''
NOTE: this feature is still under development - use at your own risk!
*** DO NOT USE THIS UNLESS YOU KNOW WHAT YOU ARE DOING ***
This script will
- check for node/npm
- install serverless gl... | PypiClean |
/rws-0.6.tar.gz/rws-0.6/cmsranking/User.py |
# Contest Management System - http://cms-dev.github.io/
# Copyright © 2011-2013 Luca Wehrstedt <luca.wehrstedt@gmail.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/sites/item/term_store/groups/item/sets/item/children/item/children/item/set/set_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 |
/compute_api_client-0.0.3-py3-none-any.whl/compute_api_client/api/pipeline_controller/pipeline_controller_update_by_id.py | from http import HTTPStatus
from typing import Any, Dict, Optional
import httpx
from ... import errors
from ...client import Client
from ...models.pipeline_partial import PipelinePartial
from ...types import Response
def _get_kwargs(
id: str,
*,
client: Client,
json_body: PipelinePartial,
) -> Dict[... | PypiClean |
/nurses_2-0.18.8.tar.gz/nurses_2-0.18.8/nurses_2/widgets/scroll_view/scroll_view.py | from ...clamp import clamp
from ...io import KeyEvent, MouseEventType, MouseEvent
from ..behaviors.grabbable_behavior import GrabbableBehavior
from ..widget import Widget, subscribable, Size
from .scrollbars import _HorizontalBar, _VerticalBar
class ScrollView(GrabbableBehavior, Widget):
"""
A scrollable view... | PypiClean |
/nni_daily-1.5.2005180104-py3-none-manylinux1_x86_64.whl/nni_daily-1.5.2005180104.data/data/nni/node_modules/moment/dist/locale/gd.js |
import moment from '../moment';
var months = [
'Am Faoilleach',
'An Gearran',
'Am Màrt',
'An Giblean',
'An Cèitean',
'An t-Ògmhios',
'An t-Iuchar',
'An Lùnastal',
'An t-Sultain',
'An Dàmhair',
'An t-Samhain',
'An Dùbhlachd... | PypiClean |
/conduktor_public_api_client-0.0.1.tar.gz/conduktor_public_api_client-0.0.1/conduktor_public_api_client/models/kafka_connect_with_id.py | from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
from attrs import define, field
from ..types import UNSET, Unset
if TYPE_CHECKING:
from ..models.kafka_connect_basic_auth import KafkaConnectBasicAuth
from ..models.kafka_connect_bearer_token import KafkaConnectBearerToken
from ..mod... | PypiClean |
/aiida_quantumespresso-4.4.0.tar.gz/aiida_quantumespresso-4.4.0/src/aiida_quantumespresso/utils/convert.py | """Utilties to convert between python and fortran data types and formats."""
import numbers
def conv_to_fortran(val, quote_strings=True):
"""Convert a python value to a format suited for fortran input.
:param val: the value to be read and converted to a Fortran-friendly string.
"""
import numpy
... | PypiClean |
/snowflake_snowpark_python3-1.0.0-py3-none-any.whl/snowflake/snowpark/udtf.py | """User-defined table functions (UDTFs) in Snowpark. Refer to :class:`~snowflake.snowpark.udtf.UDTFRegistration` for details and sample code."""
import collections.abc
import sys
from types import ModuleType
from typing import (
Callable,
Dict,
Iterable,
List,
Optional,
Tuple,
Type,
Unio... | PypiClean |
/drf-auth-service-2.0.tar.gz/drf-auth-service-2.0/drf_auth_service/authentication/views.py | from urllib.parse import urlparse
from django.utils import timezone
from drf_yasg import openapi
from drf_yasg.utils import swagger_auto_schema, no_body
from rest_framework import status
from rest_framework.decorators import action
from rest_framework.generics import GenericAPIView
from rest_framework.response import ... | PypiClean |
/letigre-moto-0.0.1.tar.gz/letigre-moto-0.0.1/moto/dynamodb2/models.py | from __future__ import unicode_literals
from collections import defaultdict
import copy
import datetime
import decimal
import json
import re
import uuid
import boto3
from moto.compat import OrderedDict
from moto.core import BaseBackend, BaseModel
from moto.core.utils import unix_time
from moto.core.exceptions import J... | PypiClean |
/dngsmgmt-0.0.1a3.tar.gz/dngsmgmt-0.0.1a3/README.md |
dngsmgmt
-----------
dngsmgmt is a Django app to manage NGS projects
Quick start
-----------
1. Add "dngsmgmt" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'dngsmgmt',
]
2. Include the dgenome URLconf in your project urls.py like this::
url(r'^dngsmgmt/', include... | PypiClean |
/pyVME-1.0.1.tar.gz/pyVME-1.0.1/README.md | # pyVME
This package uses exposed cpp functions using [```pybind11```](https://pybind11.readthedocs.io/en/stable/index.html) to use the VMEbus (Versa Module Eurocard-bus) to interact with FPGAs.
The shared object used for this was compiled on a 64bit Linux machine and supports no other platforms.
It is intended for t... | PypiClean |
/GSAS-II-WONDER_linux-1.0.1.tar.gz/GSAS-II-WONDER_linux-1.0.1/GSAS-II-WONDER/FormFactors.py | #
# The atomic scattering factor is calculated using the method developed by D. Waasmaier & A. Kirfel
#
# New Analytical Scattering Factor Functions for Free Atoms
# and Ions for Free Atoms and Ions
# D. Waasmaier & A. Kirfel
# Acta Cryst. (1995).... | PypiClean |
/refind_btrfs-0.6.0-py3-none-any.whl/refind_btrfs/boot/migrations/icon_migration_strategies.py | # endregion
from abc import ABC, abstractmethod
from pathlib import Path
from refind_btrfs.common import BtrfsLogo, Icon
from refind_btrfs.common.abc.commands import IconCommand
from refind_btrfs.common.enums import BootStanzaIconGenerationMode
class BaseIconMigrationStrategy(ABC):
def __init__(
self, i... | PypiClean |
/armory_testbed-0.18.1-py3-none-any.whl/armory/art_experimental/attacks/carla_obj_det_patch.py | import math
import os
import random
from typing import Dict, List, Optional
from art.attacks.evasion import RobustDPatch
import cv2
import numpy as np
from tqdm.auto import trange
from armory.art_experimental.attacks.carla_obj_det_utils import (
linear_depth_to_rgb,
linear_to_log,
log_to_linear,
rgb_d... | PypiClean |
/ka-lite-static-0.17.6b2.tar.gz/ka-lite-static-0.17.6b2/kalite/packages/dist/requests/cookies.py | import copy
import time
import calendar
import collections
from .compat import cookielib, urlparse, urlunparse, Morsel
try:
import threading
# grr, pyflakes: this fixes "redefinition of unused 'threading'"
threading
except ImportError:
import dummy_threading as threading
class MockRequest(object):
... | PypiClean |
/pgsql-1.2.tar.gz/pgsql-1.2/README | Pgsql
=====
PostgreSQL client library for Python 3. Simple, fast and lightweight.
Installation
------------
::
$ pip install pgsql
Example
-------
.. code-block:: python
import pgsql
# address defaults to ("localhost", 5432), a string must point to a unix socket
# user defaults to "postgres"
# password def... | PypiClean |
/ntnx-files-py-client-4.0.1a2.tar.gz/ntnx-files-py-client-4.0.1a2/ntnx_files_py_client/Ntnx/files/v4/infra/NotifyPlatform.py | import pprint
import json
import ast
import re # noqa: F401
import six
from ntnx_files_py_client.Ntnx.files.v4.infra.PcConfig import PcConfig # noqa: F401,E501
from ntnx_files_py_client.Ntnx.files.v4.infra.PeConfig import PeConfig # noqa: F401,E501
from ntnx_files_py_client.Ntnx.files.v4.infra.PreUpgradeNvm import ... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/apimanagement/latest/gateway_hostname_configuration.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = ['GatewayHostnameConfiguration']
warnings.warn("""The 'latest' version is deprecated. Please migrate to the resource in the top-level module: 'azure-nextgen:api... | PypiClean |
/luminesce_sdk_preview-1.13.409-py3-none-any.whl/luminesce/rest.py | from __future__ import absolute_import
import io
import json
import logging
import re
import ssl
import certifi
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import urlencode
import urllib3
from luminesce.exceptions import ApiException, ApiValueError
from fbnsdkutilities.tcp.tc... | PypiClean |
/tyba_cvxpy-1.4.4-cp311-cp311-macosx_10_9_universal2.whl/cvxpy/atoms/elementwise/huber.py | from typing import Tuple
import numpy as np
import scipy.special
from cvxpy.atoms.elementwise.elementwise import Elementwise
# TODO(akshayka): DGP support.
class huber(Elementwise):
"""The Huber function
.. math::
\\operatorname{Huber}(x, M) =
\\begin{cases}
2M|x|-M^2 ... | PypiClean |
/django-oscar-datacash-0.8.3.tar.gz/django-oscar-datacash-0.8.3/datacash/migrations/0003_auto__del_unique_fraudresponse_t3m_id.py | import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Removing unique constraint on 'FraudResponse', fields ['t3m_id']
db.delete_unique('datacash_fraudresponse', ['t3m_id'])
#... | PypiClean |
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/ui/form.py | from warnings import warn
from muntjac.data.item import IEditor, IItem
from muntjac.data.buffered import IBuffered, SourceException
from muntjac.data.validatable import IValidatable
from muntjac.data.validator import InvalidValueException
from muntjac.data.property import IValueChangeListener
from muntjac.event.action... | PypiClean |
/django_webpack_custom_loader-0.7.0-py3-none-any.whl/webpack_loader/loader.py | import json
import time
from io import open
from django.conf import settings
from django.contrib.staticfiles.storage import staticfiles_storage
from .exceptions import (
WebpackError,
WebpackLoaderBadStatsError,
WebpackLoaderTimeoutError,
WebpackBundleLookupError
)
class WebpackLoader(object):
_... | PypiClean |
/bcdup-2.3.2.tar.gz/bcdup-2.3.2/src/bc_acc_dup/feature_handler.py |
from typing import Any, Union
from . import (
helper,
user_input_handler,
config_manager,
)
from .edits import basic, cats, gamototo, levels, other, save_management
def fix_elsewhere_old(save_stats: dict[str, Any]) -> dict[str, Any]:
"""Fix the elsewhere error using 2 save files"""
main_token =... | PypiClean |
/volatility261-2.6.2.tar.gz/volatility261-2.6.2/volatility/plugins/overlays/windows/win7_sp1_x64_632B36E0_vtypes.py | ntkrnlmp_types = {
'_FILE_BASIC_INFORMATION' : [ 0x28, {
'CreationTime' : [ 0x0, ['_LARGE_INTEGER']],
'LastAccessTime' : [ 0x8, ['_LARGE_INTEGER']],
'LastWriteTime' : [ 0x10, ['_LARGE_INTEGER']],
'ChangeTime' : [ 0x18, ['_LARGE_INTEGER']],
'FileAttributes' : [ 0x20, ['unsigned long']],
} ],
'_SE... | PypiClean |
/ndn_storage-0.2.3-py3-none-any.whl/ndn_storage-0.2.3.dist-info/LICENSE.rst | Apache License
Version 2.0, January 2004
https://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... | PypiClean |
/easy_boto3-0.1.7.tar.gz/easy_boto3-0.1.7/easy_boto3/ec2/config_parser.py | import yaml
from easy_boto3.ec2.script import read_startup_script, inject_aws_creds, add_ssh_forwarding, add_github_host
from easy_boto3.profile.validation import check_credentials
from easy_boto3.profile.active import set_active_profile, check_active_profile
def parse(base_config):
# read in base_config
with... | PypiClean |
/pulumi_oci-1.9.0a1693465256.tar.gz/pulumi_oci-1.9.0a1693465256/pulumi_oci/mediaservices/media_workflow_configuration.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['MediaWorkflowConfigurationArgs', 'MediaWorkflowConfiguration']
@pulumi.input_type
class MediaWorkflowConfigurationArgs:
def __init__(__self__,... | PypiClean |
/thickly-1.2.3.tar.gz/thickly-1.2.3/locust/user/task.py | import logging
import random
import sys
import traceback
from time import time
import gevent
from gevent import GreenletExit
from locust.exception import InterruptTaskSet, RescheduleTask, RescheduleTaskImmediately, \
StopUser, MissingWaitTimeError
logger = logging.getLogger(__name__)
LOCUST_STATE_RUNNING, LOCUS... | PypiClean |
/qmpy-tri-2022.7.21.tar.gz/qmpy-tri-2022.7.21/qmpy/web/static/js/jsmol/j2s/J/jvxl/readers/VolumeDataReader.js | Clazz.declarePackage ("J.jvxl.readers");
Clazz.load (["J.jvxl.readers.SurfaceReader"], "J.jvxl.readers.VolumeDataReader", ["J.jvxl.data.JvxlCoder", "J.util.ArrayUtil", "$.Logger", "$.SB"], function () {
c$ = Clazz.decorateAsClass (function () {
this.dataType = 0;
this.precalculateVoxelData = false;
this.allowMapData = ... | PypiClean |
/android_strings_converter-0.1.3-py3-none-any.whl/android_strings_converter/__main__.py | import argparse
from pathlib import Path
import converter as conv
from console_style import ConsoleStyle
def main():
parser = argparse.ArgumentParser()
parser.add_argument(
"input_filepath",
type=str,
help="Input XML filepath with the Android strings.",
)
parser.add_argument(
... | PypiClean |
/aiida_wien2k-0.1.1.tar.gz/aiida_wien2k-0.1.1/aiida_wien2k/workflows/scf123_workchain.py | from aiida.engine import ToContext, WorkChain
from aiida.orm import Code, Dict, Int, StructureData
from aiida.plugins.factories import CalculationFactory
Wien2kRun123Lapw = CalculationFactory("wien2k-run123_lapw") # plugin entry point
class Wien2kScf123WorkChain(WorkChain):
"""WorkChain to add two integers."""
... | PypiClean |
/efficientteacher-1.0.0.tar.gz/efficientteacher-1.0.0/utils/loggers/wandb/wandb_utils.py |
import logging
import os
import sys
from contextlib import contextmanager
from pathlib import Path
import pkg_resources as pkg
import yaml
from tqdm import tqdm
FILE = Path(__file__).resolve()
ROOT = FILE.parents[3] # YOLOv5 root directory
if str(ROOT) not in sys.path:
sys.path.append(str(ROOT)) # add ROOT to ... | PypiClean |
/novartis-pisces-0.1.5.4.tar.gz/novartis-pisces-0.1.5.4/pisces/submit.py | from signal import signal, SIGINT, SIGTERM
from subprocess import Popen, PIPE, call
from tqdm import tqdm
import logging
import sys
import os
import stat
import pickle
import pandas as pd
import time
from pkg_resources import get_distribution
__version__ = get_distribution("novartis_pisces").version
def _submit_drmaa... | PypiClean |
/KeralaPyApiV2-2.0.2020.tar.gz/KeralaPyApiV2-2.0.2020/compiler/api/compiler.py |
import os
import re
import shutil
HOME = "compiler/api"
DESTINATION = "pyrogram/api"
NOTICE_PATH = "NOTICE"
SECTION_RE = re.compile(r"---(\w+)---")
LAYER_RE = re.compile(r"//\sLAYER\s(\d+)")
COMBINATOR_RE = re.compile(r"^([\w.]+)#([0-9a-f]+)\s(?:.*)=\s([\w<>.]+);(?: // Docs: (.+))?$", re.MULTILINE)
ARGS_RE = re.compi... | PypiClean |
/discord-api-wrapper-1.0.0.tar.gz/discord-api-wrapper-1.0.0/discord/components.py | from __future__ import annotations
from typing import ClassVar, List, Literal, Optional, TYPE_CHECKING, Tuple, Union, overload
from .enums import try_enum, ComponentType, ButtonStyle, TextStyle, ChannelType
from .utils import get_slots, MISSING
from .partial_emoji import PartialEmoji, _EmojiTag
if TYPE_CHECKING:
... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/AddressInfoDTO.py | import json
from alipay.aop.api.constant.ParamConstants import *
class AddressInfoDTO(object):
def __init__(self):
self._account_id = None
self._address = None
self._address_id = None
self._city_code = None
self._city_name = None
self._community = None
sel... | PypiClean |
/lingjixian-x3-2022.9.29.0.tar.gz/lingjixian-x3-2022.9.29.0/LingjixianX3/js/plugins/search.js | EPUBJS.reader.search = {};
// Search Server -- https://github.com/futurepress/epubjs-search
EPUBJS.reader.search.SERVER = "https://pacific-cliffs-3579.herokuapp.com";
EPUBJS.reader.search.request = function(q, callback) {
var fetch = $.ajax({
dataType: "json",
url: EPUBJS.reader.search.SERVER + "/search?q=" + en... | PypiClean |
/dnpak.py-2.0.0-py3-none-any.whl/dnpak/etfilesystem.py | import binascii
import os
import struct
import zlib
from glob import glob
from typing import Final, List
from .etfile import EtFile
from . import utils
class EtFileSystem:
__type = None
__current_file = None
_HEADER_MAGIC: Final[str] = "EyedentityGames Packing File 0.1"
_HEADER_VERSION: Final[int] =... | PypiClean |
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/appconfig/keyvalue.py |
# pylint: disable=line-too-long, too-many-locals, too-many-statements, too-many-branches
import json
import time
import sys
from itertools import chain
from knack.log import get_logger
from knack.util import CLIError
from azure.appconfiguration import (ConfigurationSetting,
Resou... | PypiClean |
/aws_audit-0.1.0-py3-none-any.whl/aws_audit/config/regions.py | import os
all_regions = [
'us-east-1',
'us-east-2',
'us-west-1',
'us-west-2',
"af-south-1",
'ap-east-1',
'ap-south-1',
'ap-southeast-1',
'ap-southeast-2',
'ap-northeast-1',
'ap-northeast-2',
'ca-central-1',
'eu-central-1',
'eu-west-1',
'eu-west-2',
'eu-west-3',
'eu-north-1',
'me-south-1',
'sa-east-1... | PypiClean |
/pylops_gpu-0.0.1.tar.gz/pylops_gpu-0.0.1/pylops_gpu/basicoperators/VStack.py | import torch
import numpy as np
from scipy.sparse.linalg.interface import _get_dtype
from pylops_gpu.LinearOperator import LinearOperator
class VStack(LinearOperator):
r"""Vertical stacking.
Stack a set of N linear operators vertically.
Parameters
----------
ops : :obj:`list`
Linear ope... | PypiClean |
/django-siteajax-1.0.0.tar.gz/django-siteajax-1.0.0/docs/source/advanced.rst | Advanced
========
Additional info from the client
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
``request.ajax`` object is ``siteajax.toolbox.Ajax``. It given you an access
to additional information received from the client:
* ``ajax.is_used`` - a flag indicating whether the request is Ajax or not
* ``ajax.restore_history`` - in... | PypiClean |
/wavefront_sdk_python-2.0.0-py3-none-any.whl/wavefront_sdk/common/metrics/registry.py | import logging
import threading
import time
from wavefront_sdk.common.metrics import counter, deltacounter, gauge
LOGGER = logging.getLogger('wavefront_sdk.WavefrontSdkMetricsRegistry')
# pylint: disable=too-many-instance-attributes,E0012,R0205
class WavefrontSdkMetricsRegistry(object):
"""Wavefront SDK Metrics... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/ZhimaMerchantOrderCreditPayModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class ZhimaMerchantOrderCreditPayModel(object):
def __init__(self):
self._coupon_amount = None
self._order_operate_type = None
self._out_order_no = None
self._out_trans_no = None
self._pay_amount = None
... | PypiClean |
/notebooksmz-7.0.0-py3-none-any.whl/notebook/static/components/MathJax/localization/ja/FontWarnings.js | MathJax.Localization.addTranslation("ja","FontWarnings",{version:"2.7.8",isLoaded:true,strings:{webFont:"MathJax \u306F\u3053\u306E\u30DA\u30FC\u30B8\u3067\u3001\u6570\u5F0F\u3092\u8868\u793A\u3059\u308B\u305F\u3081\u306B\u30A6\u30A7\u30D6 \u30D9\u30FC\u30B9\u306E\u30D5\u30A9\u30F3\u30C8\u3092\u4F7F\u7528\u3057\u3066\u... | PypiClean |
/gaeframework-2.0.10.tar.gz/gaeframework-2.0.10/google_appengine/google/appengine/tools/gen_protorpc.py | import errno
import logging
import optparse
import os
import sys
from protorpc import descriptor
from protorpc import generate_python
from protorpc import protobuf
from protorpc import registry
from protorpc import transport
from protorpc import util
EXCLUDED_PACKAGES = frozenset(['protorpc.registry',
... | PypiClean |
/swh.web-0.2.37.tar.gz/swh.web-0.2.37/swh/web/browse/assets/origin_visits/visits-histogram.js |
import {visitStatusColor} from './utils';
export async function createVisitsHistogram(container, visitsData, currentYear, yearClickCallback) {
const d3 = await import(/* webpackChunkName: "d3" */ 'utils/d3');
// remove previously created histogram and tooltip if any
d3.select(container).select('svg').remove()... | PypiClean |
/prob_distributions_sb-0.3-py3-none-any.whl/prob_distributions_sb/Binomialdistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Binomial(Distribution):
""" Binomial distribution class for calculating and
visualizing a Binomial distribution.
Attributes:
mean (float) representing the mean value of the distribution
std... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/groups/item/sites/item/lists/item/columns/columns_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 |
/lizard-ui-5.3.tar.gz/lizard-ui-5.3/lizard_ui/static/openlayers/1.12-r7/lib/OpenLayers/Format/WPSDescribeProcess.js | * @requires OpenLayers/Format/XML.js
* @requires OpenLayers/Format/OWSCommon/v1_1_0.js
*/
/**
* Class: OpenLayers.Format.WPSDescribeProcess
* Read WPS DescribeProcess responses.
*
* Inherits from:
* - <OpenLayers.Format.XML>
*/
OpenLayers.Format.WPSDescribeProcess = OpenLayers.Class(
OpenLayers.Format.X... | PypiClean |
/bpy_nibbler-0.1.tar.gz/bpy_nibbler-0.1/bpy_lambda/2.78/scripts/addons_contrib/curve_tools/Operators.py | import time
import threading
import bpy
from bpy.props import *
from . import Properties
from . import Curves
from . import CurveIntersections
from . import Util
from . import Surfaces
class OperatorSelectionInfo(bpy.types.Operator):
bl_idname = "curvetools2.operatorselectioninfo"
bl_label = "Selection Inf... | PypiClean |
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/api/remote_storage.py | import re # noqa: F401
import sys # noqa: F401
from cohesity_sdk.cluster.api_client import ApiClient, Endpoint as _Endpoint
from cohesity_sdk.cluster.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_type... | PypiClean |
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/healthcare/v1beta1/dataset_fhir_store_iam_policy.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__ = ['DatasetFhirStoreIamPolicyArgs', 'DatasetFhirStoreIamPolicy']
@pulumi.input_typ... | PypiClean |
/ScaffoldGraphDG-1.1.8.tar.gz/ScaffoldGraphDG-1.1.8/scaffoldgraph/tree.py | from pickle import FALSE
from rdkit.Chem import rdmolops, MolToMolBlock, MolFromMolBlock, SetAromaticity, AROMATICITY_SIMPLE
from .core import ScaffoldGraph, Scaffold, MurckoRingFragmenter
from .core.fragment import get_murcko_scaffold
from .prioritization import original_ruleset
from .utils import suppress_rdlogger
... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/MybankCreditLoantradeBillBudgetQueryModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.MultiCurrencyMoney import MultiCurrencyMoney
from alipay.aop.api.domain.UserVo import UserVo
class MybankCreditLoantradeBillBudgetQueryModel(object):
def __init__(self):
self._apply_amount = None
self._bi... | PypiClean |
/intel_extension_for_pytorch-2.0.100-cp38-cp38-manylinux2014_x86_64.whl/intel_extension_for_pytorch/tpp/fused_bert.py | import math
import torch
from torch import nn
from torch.nn.parameter import Parameter
from torch.nn import init
from torch.autograd import Function
from .utils.blocked_layout import (
BlockedParameter,
BlockedModule,
BlockedTensor,
get_blocking_signature,
)
import time
from contextlib import contextman... | PypiClean |
/xnni-0.7.4-py3-none-manylinux1_x86_64.whl/xnni-0.7.4.data/data/nni/core/nniDataStore.js | 'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
const assert = require("assert");
const ts_deferred_1 = require("ts-deferred");
const component = require("../common/component");
const datastore_1 = require("../common/datastore");
const errors_1 = require("../common/errors");
const experimen... | PypiClean |
/Orange3_Timeseries-0.6.0-py3-none-any.whl/orangecontrib/timeseries/widgets/owvarmodel.py | from AnyQt.QtCore import Qt
from orangewidget.utils.widgetpreview import WidgetPreview
from Orange.widgets import gui, settings
from orangecontrib.timeseries import Timeseries, VAR
from orangecontrib.timeseries.widgets._owmodel import OWBaseModel
class OWVARModel(OWBaseModel):
name = 'VAR Model'
description ... | PypiClean |
/pybanyan-openapi-client-1.0.0.tar.gz/pybanyan-openapi-client-1.0.0/openapi_client/paths/v2_bundle/get.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from openapi_client import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re # ... | PypiClean |
/client_chat_pyqt_June-0.2.tar.gz/client_chat_pyqt_June-0.2/client/common/metaclasses.py | import dis
class ServerMaker(type):
'''
Метакласс, проверяющий что в результирующем классе нет клиентских
вызовов таких как: connect. Также проверяется, что серверный
сокет является TCP и работает по IPv4 протоколу.
'''
def __init__(cls, clsname, bases, clsdict):
# Список методов, кото... | PypiClean |
/stag-ssg-0.10.1.tar.gz/stag-ssg-0.10.1/src/stag/config.py |
import os
import copy
from functools import cache
from typing import Optional, List, Any
import attr
import tomli
from stag.utils import attr_access
class ConfigError(Exception):
pass
@attr.s(auto_attribs=True)
class TemplateTable:
name: str = os.path.join("themes", "default")
templates: dict = attr... | PypiClean |
/huobi_sdk_hash_7-2.3.7-py3-none-any.whl/huobi/utils/print_mix_object.py | import sys
import time
BASIC_DATA_TYPE = (int, str, float)
BASIC_DATA_TYPE_BOOL = (bool)
TYPE_BASIC = "type_basic"
TYPE_BOOL = "type_bool"
TYPE_OBJECT = "type_object"
TYPE_LIST = "type_list"
TYPE_DICT = "type_dict"
TYPE_UNDEFINED = "type_undefined"
class TypeCheck:
@staticmethod
def is_list(obj):
re... | PypiClean |
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/request/AlipayMobilePublicGisGetRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
class AlipayMobilePublicGisGetRequest(object):
def __init__(self, biz_model=None):
self._biz_model = biz_model
self._biz_content = None
self._version = "1.0"
self._term... | PypiClean |
/matts-majestic-monads-0.0.5.tar.gz/matts-majestic-monads-0.0.5/monads/maybe.py | from .base import Monad
from .operators import MonadOperator
class Maybe(Monad, MonadOperator): # pylint: disable=abstract-method
@classmethod
def lift(cls, value):
return Just(value)
@classmethod
def convert(cls, function):
def wrapper(*args, **kwargs):
try:
... | PypiClean |
/HtmlNode-0.1.8.tar.gz/HtmlNode-0.1.8/html_node/templates.py | from .tags import Node, Tag, html_node as n
__all__ = ['Placeholder', 'placeholder', 'BaseTemplate', 'BaseLayout']
class Placeholder(Node):
"""Stub to fill in other template."""
def __init__(self, name):
self.name = name
def fill(tag, placeholders):
"""Recursively fill in the placeholders of de... | PypiClean |
/Nevow-0.14.5.tar.gz/Nevow-0.14.5/examples/athenademo/calculator.py | import sys
from twisted.python.filepath import FilePath
from twisted.python import log
from twisted.internet import reactor
from nevow.athena import LivePage, LiveElement, expose
from nevow.loaders import xmlfile
from nevow.appserver import NevowSite
# Handy helper for finding external resources nearby.
sibling = Fi... | PypiClean |
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/recover_cassandra_snapshot_params_all_of.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 |
/django2_bootstrap3_datetimepicker-3.0.3-py3-none-any.whl/bootstrap3_datetime/static/bootstrap3_datetime/js/locales/bootstrap-datetimepicker.uk.js |
(function (factory) {
if (typeof define === 'function' && define.amd) {
define(['moment'], factory); // AMD
} else if (typeof exports === 'object') {
module.exports = factory(require('../moment')); // Node
} else {
factory(window.moment); // Browser global
}
}(function (moment) ... | PypiClean |
/OctoBot-Pro-0.0.10.tar.gz/OctoBot-Pro-0.0.10/CHANGELOG.md | # Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.0.10] - 2022-05-13
### Update
- Added python 3.9 and 3.10 supp... | PypiClean |
/VIP-yt-2022.7.26.tar.gz/VIP-yt-2022.7.26/VIP_yt/extractor/fivetv.py | from .common import InfoExtractor
from ..utils import int_or_none
class FiveTVIE(InfoExtractor):
_VALID_URL = r'''(?x)
https?://
(?:www\.)?5-tv\.ru/
(?:
(?:[^/]+/)+(?P<id>\d+)|
(?P<path>[^/?... | PypiClean |
/SQLAlchemy-2.0.20.tar.gz/SQLAlchemy-2.0.20/doc/build/index.rst | :orphan:
.. _index_toplevel:
========================
SQLAlchemy Documentation
========================
.. container:: left_right_container
.. container:: leftmost
.. rst-class:: h2
Getting Started
.. container::
New to SQLAlchemy? Start here:
* **For Python Beginners:** :ref:`Insta... | PypiClean |
/elixirnote-4.0.0a28-py3-none-any.whl/jupyterlab/static/9030.2ba1a8d0e8831066ca6c.js | "use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9030],{9030:(e,t,O)=>{O.r(t);O.d(t,{completeFromSchema:()=>j,xml:()=>A,xmlLanguage:()=>Z});var r=O(11705);var n=O(96006);const a=1,s=2,o=3,l=4,i=5,d=35,c=36,p=37,u=11,$=13;function f(e){return e==45... | PypiClean |
/hirise_tools-0.7.3.tar.gz/hirise_tools-0.7.3/docs/pyrise.rst | hirise\_tools package
=====================
Submodules
----------
hirise\_tools\.cli module
-------------------------
.. automodule:: pyrise.cli
:members:
:undoc-members:
:show-inheritance:
hirise\_tools\.data module
--------------------------
.. automodule:: pyrise.data
:members:
:undoc-member... | PypiClean |
/lightdash_client_python-0.753.0-py3-none-any.whl/lightdash_client/models/additional_metric_filters_item.py | from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union, cast
import attr
from ..models.additional_metric_filters_item_operator import (
AdditionalMetricFiltersItemOperator,
)
from ..types import UNSET, Unset
if TYPE_CHECKING:
from ..models.additional_metric_filters_item_target import (
... | PypiClean |
/elixirnote-4.0.0a28-py3-none-any.whl/jupyterlab/static/9362.e17eaf97a4562063f27b.js | "use strict";(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[9362],{19362:(e,t,n)=>{n.r(t);n.d(t,{tiki:()=>_});function r(e,t,n){return function(r,i){while(!r.eol()){if(r.match(t)){i.tokenize=u;break}r.next()}if(n)i.tokenize=n;return e}}function i(e){return f... | PypiClean |
/odoo14_addon_ssi_project_type-14.0.1.3.0-py3-none-any.whl/odoo/addons/ssi_project_type/README.rst | .. image:: https://img.shields.io/badge/licence-LGPL--3-blue.svg
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
:alt: License: LGPL-3
============
Project Type
============
Installation
============
To install this module, you need to:
1. Clone the branch 14.0 of the repository https://github... | PypiClean |
/performanceplatform-client-0.11.5.tar.gz/performanceplatform-client-0.11.5/performanceplatform/client/admin.py | import json
import logging
import urllib
from .base import BaseClient, return_none_on
log = logging.getLogger(__name__)
try:
url_quote = urllib.quote_plus
except AttributeError:
url_quote = urllib.parse.quote_plus
class AdminAPI(BaseClient):
def __init__(self, base_url, token, dry_run=False, request_... | PypiClean |
/odoo_addon_stock_picking_kind-16.0.1.0.0.4-py3-none-any.whl/odoo/addons/stock_picking_kind/hooks.py |
import logging
from odoo.tools import sql
_logger = logging.getLogger(__name__)
def pre_init_hook(cr):
"""Initialize picking_kind field based on location_id and location_dest_id"""
if not sql.column_exists(cr, "stock_picking", "picking_kind"):
_logger.info("Create picking_kind column")
cr.e... | PypiClean |
/uniohomeassistant-0.1.3.tar.gz/uniohomeassistant-0.1.3/homeassistant/components/tcp/sensor.py | import logging
import select
import socket
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import (
CONF_HOST,
CONF_NAME,
CONF_PAYLOAD,
CONF_PORT,
CONF_TIMEOUT,
CONF_UNIT_OF_MEASUREMENT,
CONF_VALUE_TEMPLATE,
)
from homeassistant... | PypiClean |
/azure-multiapi-storage-1.2.0.tar.gz/azure-multiapi-storage-1.2.0/azure/multiapi/storagev2/blob/v2021_08_06/_shared_access_signature.py |
from typing import ( # pylint: disable=unused-import
Union, Optional, Any, TYPE_CHECKING
)
from ._shared import sign_string, url_quote
from ._shared.constants import X_MS_VERSION
from ._shared.models import Services, UserDelegationKey
from ._shared.shared_access_signature import SharedAccessSignature, _SharedAcc... | PypiClean |
/ethereum-tester-0.1.0b2.tar.gz/ethereum-tester-0.1.0b2/eth_tester/backends/pyethereum/v16/serializers.py | from __future__ import unicode_literals
import rlp
from eth_tester.utils.encoding import (
zpad,
zpad32,
int_to_32byte_big_endian,
)
def serialize_transaction_receipt(block, transaction, transaction_index, is_pending):
transaction_receipt = block.get_receipt(transaction_index)
origin_gas = block... | PypiClean |
/valer.jsonapi-1.2.3rc5.zip/valer.jsonapi-1.2.3rc5/src/senaite/jsonapi/dataproviders.py |
from zope import interface
from zope import component
from plone.dexterity.interfaces import IDexterityContent
from AccessControl import Unauthorized
from Products.CMFCore.interfaces import ISiteRoot
from Products.ZCatalog.interfaces import ICatalogBrain
from Products.ATContentTypes.interfaces import IATContentType
... | PypiClean |
/python_amazon_ad_api-0.4.9-py3-none-any.whl/ad_api/api/sb/product_targeting.py | from ad_api.base import Client, sp_endpoint, fill_query_params, ApiResponse
class Targets(Client):
"""
Use the Amazon Advertising API for Sponsored Brands for campaign, ad group, keyword, negative keyword, drafts, Stores, landing pages, and Brands management operations. For more information about Sponsored Bra... | PypiClean |
/domain-paas-sdk-python-1.0.7.tar.gz/domain-paas-sdk-python-1.0.7/src/identity_service/api_client.py | from __future__ import absolute_import
import atexit
import datetime
from dateutil.parser import parse
import json
import mimetypes
from multiprocessing.pool import ThreadPool
import os
import re
import tempfile
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import quote
from id... | PypiClean |
/django-static-angular-v1.3.15.tar.gz/django-static-angular-v1.3.15/django_static_angular/static/static_angular/js/i18n/angular-locale_si-lk.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... | PypiClean |
/mypy-boto3-cloudcontrol-1.28.36.tar.gz/mypy-boto3-cloudcontrol-1.28.36/mypy_boto3_cloudcontrol/literals.py | import sys
if sys.version_info >= (3, 12):
from typing import Literal
else:
from typing_extensions import Literal
__all__ = (
"HandlerErrorCodeType",
"ListResourceRequestsPaginatorName",
"ListResourcesPaginatorName",
"OperationStatusType",
"OperationType",
"ResourceRequestSuccessWaite... | PypiClean |
/pybnfalabuda-1.2.0-py3-none-any.whl/pybnf/pybnf.py | from .parse import load_config
from .config import init_logging
from .printing import print0, print1, print2, PybnfError
from .cluster import Cluster
from .pset import Trajectory
import pybnf.algorithms as algs
import pybnf.printing as printing
from subprocess import run
from numpy import inf
import logging
import ar... | PypiClean |
/django_nested_inline_bug_fixed-0.4.4-py3-none-any.whl/nested_inline/admin.py | from django import VERSION, forms
from django.conf import settings
from django.contrib import admin
from django.contrib.admin import helpers
from django.contrib.admin.options import InlineModelAdmin, reverse
from django.contrib.admin.utils import unquote
from django.core.exceptions import FieldDoesNotExist
from django.... | PypiClean |
/keras_segmentation-0.3.0.tar.gz/keras_segmentation-0.3.0/keras_segmentation/models/segnet.py | from keras.models import *
from keras.layers import *
from .config import IMAGE_ORDERING
from .model_utils import get_segmentation_model
from .vgg16 import get_vgg_encoder
from .mobilenet import get_mobilenet_encoder
from .basic_models import vanilla_encoder
from .resnet50 import get_resnet50_encoder
def segnet_deco... | PypiClean |
/nonebot-plugin-kawaii-robot-4.0.0.tar.gz/nonebot-plugin-kawaii-robot-4.0.0/README.md | <!-- markdownlint-disable MD031 MD033 MD036 MD041 -->
<div align="center">
<a href="https://v2.nonebot.dev/store">
<img src="https://raw.githubusercontent.com/A-kirami/nonebot-plugin-template/resources/nbp_logo.png" width="180" height="180" alt="NoneBotPluginLogo">
</a>
<p>
<img src="https://raw.githubuserconten... | PypiClean |
/zipline_crypto-0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/zipline/finance/blotter/blotter.py | from abc import ABCMeta, abstractmethod
from zipline.extensions import extensible
from zipline.finance.cancel_policy import NeverCancel
@extensible
class Blotter(metaclass=ABCMeta):
def __init__(self, cancel_policy=None):
self.cancel_policy = cancel_policy if cancel_policy else NeverCancel()
self.... | PypiClean |
/EARL-pytorch-0.5.1.tar.gz/EARL-pytorch-0.5.1/earl_pytorch/dataset/create_dataset_v3.py | import json
import os
import subprocess
import sys
import ballchasing as bc
import numpy as np
import pandas as pd
from earl_pytorch import EARL
command = r'carball.exe -i "{}" -o "{}" parquet'
ENV = os.environ.copy()
ENV["NO_COLOR"] = "1"
class CarballAnalysis:
METADATA_FNAME = "metadata.json"
ANALYZER_F... | PypiClean |
/sphinxcontrib-getthecode-1.2.1.tar.gz/sphinxcontrib-getthecode-1.2.1/sphinxcontrib/getthecode.py |
from pathlib import Path
import codecs
import os
from docutils import nodes
from docutils.parsers.rst import Directive, directives
from docutils.writers.html4css1 import HTMLTranslator as BaseTranslator
from sphinx.util.nodes import set_source_info
import jinja2
####################################################... | PypiClean |
/juno_sdk-0.0.1-py3-none-any.whl/juno_sdk/client/lcd/api/tendermint.py | from typing import Optional
from ._base import BaseAsyncAPI, sync_bind
from ..params import APIParams
__all__ = ["AsyncTendermintAPI", "TendermintAPI"]
class AsyncTendermintAPI(BaseAsyncAPI):
async def node_info(self, params: Optional[APIParams] = None) -> dict:
"""Fetches the curent connected node's i... | PypiClean |
/discord-pda-1.0.1a0.tar.gz/discord-pda-1.0.1a0/pda/shard.py | from __future__ import annotations
import asyncio
import logging
import aiohttp
from .state import AutoShardedConnectionState
from .client import Client
from .backoff import ExponentialBackoff
from .gateway import *
from .errors import (
ClientException,
HTTPException,
GatewayNotFound,
ConnectionClos... | PypiClean |
/microsoft_kiota_serialization_json-0.4.0.tar.gz/microsoft_kiota_serialization_json-0.4.0/CHANGELOG.md | # Changelog
All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
## [0.4.0] - 2023-07-27
### Added
### Changed
- Enabled backing s... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.