id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/relations_sql-0.6.7-py3-none-any.whl/relations_sql/clause.py
import relations_sql class CLAUSE(relations_sql.CRITERIA): """ Base class for clauses """ KWARG = None KWARGS = None DELIMITTER = "," PARENTHESES = False NAME = None query = None def __init__(self, *args, **kwargs): self.expressions = [] self(*args, **kwar...
PypiClean
/cacophonyapi-0.0.2.tar.gz/cacophonyapi-0.0.2/README.md
# Cacophony Project API Client for Python Python client for the [Cacophony REST API](https://github.com/TheCacophonyProject/cacophony-api). ## Installation This API client requires Python 3.6 or later. At present the library is not yet available on PyPI. To install, create a virtualenv using your preferred method t...
PypiClean
/python_pptx_fork-0.6.18-py3-none-any.whl/pptx/parts/image.py
from __future__ import absolute_import, division, print_function, unicode_literals import hashlib import os try: from PIL import Image as PIL_Image except ImportError: import Image as PIL_Image from ..compat import BytesIO, is_string from ..opc.package import Part from ..opc.spec import image_content_types f...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/helpers/schema_config_entry_flow.py
from __future__ import annotations from abc import ABC, abstractmethod from collections.abc import Callable, Coroutine, Mapping import copy from dataclasses import dataclass import types from typing import Any, cast import voluptuous as vol from homeassistant import config_entries from homeassistant.core import Home...
PypiClean
/rabbitstew-0.1.0.tar.gz/rabbitstew-0.1.0/README.rst
rabbitstew ========== A small command-line tool that adheres to the Unix philospohy for publishing messages to RabbitMQ. ``rabbitstew`` takes input from ``stdin`` and publishes a message per line received. You can customize the exchange and routing key used, along with message properties. Additionally, you can enable ...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/purview/v20210701/private_endpoint_connection.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__ = ['PrivateEndpointConnectionArgs', 'PrivateEndpointConnection'] @pulumi.input_typ...
PypiClean
/flaightkit-0.4.0.tar.gz/flaightkit-0.4.0/flytekit/common/nodes.py
import abc as _abc import logging as _logging import os as _os import six as _six from flyteidl.core import literals_pb2 as _literals_pb2 from sortedcontainers import SortedDict as _SortedDict from flytekit.clients.helpers import iterate_task_executions as _iterate_task_executions from flytekit.common import componen...
PypiClean
/ivy-testing-release-0.0.0.1.tar.gz/ivy-testing-release-0.0.0.1/ivy/utils/inspection.py
from typing import get_type_hints # local import ivy def _is_optional(typ): # noinspection PyBroadException try: rep = typ.__repr__().split(".")[1] if rep.startswith("Optional") or ( rep.startswith("Union") and type(None) in typ.__args__ ): return True exc...
PypiClean
/ams_dott_runtime-1.1.0-py3-none-win_amd64.whl/ams_dott_runtime-1.1.0.data/data/dott_data/apps/python27/python-2.7.13/Lib/bdb.py
import fnmatch import sys import os import types __all__ = ["BdbQuit","Bdb","Breakpoint"] class BdbQuit(Exception): """Exception to give up completely""" class Bdb: """Generic Python debugger base class. This class takes care of details of the trace facility; a derived class should implement user...
PypiClean
/tf_agents-0.17.0rc1-py3-none-any.whl/tf_agents/networks/q_network.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import gin import tensorflow as tf # pylint: disable=g-explicit-tensorflow-version-import from tf_agents.networks import encoding_network from tf_agents.networks import network def validate_specs(action_spe...
PypiClean
/libdw-4.3.0-py3-none-any.whl/eBot/Locator_EKF.py
import numpy as np from math import pi from time import * class Locator_EKF: def __init__(self, pos, heading, wheel_distance = 0.1): self.l = wheel_distance self.R = np.asmatrix( np.diag(np.array([1,1,1])) ) # The measurment covariance matrix self.Q = np.asmatrix( 0.01*np.identity(5) ) # Pr...
PypiClean
/rondsspark-0.0.4.23.tar.gz/rondsspark-0.0.4.23/ronds_sdk/tools/utils.py
import datetime import json from typing import Callable, List, Union from ronds_sdk import error class WrapperFunc(object): def call(self, *args, **kwargs): raise NotImplementedError class ForeachBatchFunc(WrapperFunc): def __init__(self, func, # type: Callable **...
PypiClean
/dot_blaster-1.0.3.tar.gz/dot_blaster-1.0.3/gamelib/dot_blaster/sparks.py
import math import random import pygame class Spark: def __init__(self, loc, angle, speed, color, scale=1): self.loc = loc self.angle = angle self.speed = speed self.scale = scale self.color = color self.alive = True def point_towards(self, angle, rate): ...
PypiClean
/bip_utils-2.7.1-py3-none-any.whl/bip_utils/utils/misc/base32.py
# Imports import base64 import binascii from typing import Optional, Union from bip_utils.utils.misc.algo import AlgoUtils class Base32Const: """Class container for Base32 constants.""" # Alphabet ALPHABET: str = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567" # Padding character PADDING_CHAR: str = "=" cl...
PypiClean
/gbptesthorizonui-0.9.0.tar.gz/horizon-2014.2.0.dev282.g7faf497/openstack_dashboard/openstack/common/log.py
import inspect import itertools import logging import logging.config import logging.handlers import os import re import sys import traceback from oslo.config import cfg import six from six import moves from openstack_dashboard.openstack.common.gettextutils import _ from openstack_dashboard.openstack.common import imp...
PypiClean
/catana-2.0.0b3.tar.gz/catana-2.0.0b3/external/pybind11/docs/advanced/cast/custom.rst
Custom type casters =================== In very rare cases, applications may require custom type casters that cannot be expressed using the abstractions provided by pybind11, thus requiring raw Python C API calls. This is fairly advanced usage and should only be pursued by experts who are familiar with the intricacies...
PypiClean
/PyRECONSTRUCT-2.2.0.tar.gz/PyRECONSTRUCT-2.2.0/pyrecon/classes/Series.py
import os, re from Section import Section as Section # handleXML is imported in Series.update() class Series: def __init__(self, *args, **kwargs): self.index = None self.viewport = None self.units = None self.autoSaveSeries = None self.autoSaveSection = None self.wa...
PypiClean
/cloudformation_validator-0.6.36-py3-none-any.whl/cloudformation_validator/custom_rules/IamManagedPolicyWildcardResourceRule.py
from __future__ import absolute_import, division, print_function import sys import inspect from builtins import (str) from cloudformation_validator.custom_rules.BaseRule import BaseRule def lineno(): """Returns the current line number in our program.""" return str(' - IamManagedPolicyWildcardResourceRule - c...
PypiClean
/discord-ui-5.1.6.tar.gz/discord-ui-5.1.6/discord_ui/receive.py
from __future__ import annotations from .enums import InteractionResponseType from .slash.http import ModifiedSlashState from .errors import InvalidEvent, WrongType from .http import BetterRoute, get_message_payload, send_files from .slash.errors import AlreadyDeferred, EphemeralDeletion from .tools import EMPTY_CHEC...
PypiClean
/tati-0.9.5-py3-none-any.whl/TATi/samplers/dynamics/hamiltonianmontecarlosamplersecondordersampler.py
# This is heavily inspired by https://github.com/openai/iaf/blob/master/tf_utils/adamax.py import tensorflow as tf from tensorflow.python.framework import ops from tensorflow.python.ops import control_flow_ops from tensorflow.python.ops import math_ops from tensorflow.python.ops import state_ops from TATi.samplers.d...
PypiClean
/pysnmp-bw-5.0.3.tar.gz/pysnmp-bw-5.0.3/docs/source/examples/hlapi/v1arch/asyncore/manager/cmdgen/modifying-variables.rst
.. toctree:: :maxdepth: 2 Modifying variables ------------------- .. include:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-spec.py :start-after: """ :end-before: """# .. literalinclude:: /../../examples/hlapi/v1arch/asyncore/sync/manager/cmdgen/coerce-set-value-to-mib-...
PypiClean
/ResourceReservation-1.0.4-src.tar.gz/ResourceReservation-1.0.4/resreservation/README.txt
Resource Reservation plugin for Trac Copyright 2010 Roberto Longobardi Project web page on TracHacks: http://trac-hacks.org/wiki/ResourceReservationPlugin Project web page on SourceForge.net: http://sourceforge.net/projects/resreserv4trac/ Project web page on Pypi: http://pypi.python.org/pypi/ResourceRe...
PypiClean
/sdss-opscore-3.0.4.tar.gz/sdss-opscore-3.0.4/python/opscore/RO/Astro/Cnv/ICRSFromFK4.py
import numpy __all__ = ["icrsFromFK4"] import opscore.RO.PhysConst import opscore.RO.MathUtil from opscore.RO.Astro import llv # Constants _MatPP = numpy.array(( (+0.999925678186902E+00, -0.111820596422470E-01, -0.485794655896000E-02), (+0.111820595717660E-01, +0.999937478448132E+00, -0.271764411850000E-04),...
PypiClean
/sents_client_chat-1.0-py3-none-any.whl/client/Client/add_contact.py
import sys import logging sys.path.append('../') from PyQt5.QtWidgets import QDialog, QLabel, QComboBox, QPushButton from PyQt5.QtCore import Qt from PyQt5.QtGui import QStandardItemModel, QStandardItem from client_db import ClientStorage from PyQt5.QtWidgets import QMainWindow, qApp, QMessageBox, QApplication, QListV...
PypiClean
/numtostr_rus-1.0.1.tar.gz/numtostr_rus-1.0.1/numtostr_rus/mult.py
from itertools import chain, repeat from typing import MutableSequence, Tuple, Iterable, Sequence, Iterator from numtostr_rus import db # Currently all powers of multipliers for both long and short scales are # multiples of 3. But let's not rely on this fact and implement more general # logic. class AnchorMult: def...
PypiClean
/megadetector-5.0.0.tar.gz/megadetector-5.0.0/archive/classification_marcel/tf-slim/nets/inception_v1.py
"""Contains the definition for inception v1 classification network.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf from nets import inception_utils slim = tf.contrib.slim trunc_normal = lambda stddev: tf.truncated_normal_initia...
PypiClean
/bigdl_orca_spark321-2.1.0b202207291-py3-none-macosx_10_11_x86_64.whl/bigdl/orca/data/utils.py
import os import numpy as np from bigdl.dllib.utils.file_utils import get_file_list from bigdl.dllib.utils.utils import convert_row_to_numpy from bigdl.dllib.utils.log4Error import * def list_s3_file(file_path, env): path_parts = file_path.split('/') bucket = path_parts.pop(0) key = "/".join(path_parts) ...
PypiClean
/organize-media-files-1.0.1.tar.gz/organize-media-files-1.0.1/README.rst
What is OMF? ============ Organize Media Files (OMF) is a command-line utility, which helps user to dispatch unsorted media files according meta data tags and configurable rules. OMF is using `Mutagen <https://mutagen.readthedocs.io>`_ to handle audio files. Later more media files support would be added. Installation ...
PypiClean
/client_chat_pyqt_march_24-0.0.1-py3-none-any.whl/client/client/transport.py
import socket import time import logging import json import threading import hashlib import hmac import binascii from PyQt5.QtCore import pyqtSignal, QObject from common.variables import ACTION, PRESENCE, TIME, USER, \ ACCOUNT_NAME, PUBLIC_KEY, ERROR, RESPONSE, DATA, RESPONSE_511, MESSAGE, \ MESSAGE_TEXT, DES...
PypiClean
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/firmata/__init__.py
import asyncio from copy import copy import logging import voluptuous as vol from homeassistant import config_entries from homeassistant.const import ( CONF_BINARY_SENSORS, CONF_LIGHTS, CONF_MAXIMUM, CONF_MINIMUM, CONF_NAME, CONF_PIN, CONF_SENSORS, CONF_SWITCHES, EVENT_HOMEASSISTAN...
PypiClean
/fabric_fim-1.5.5b0-py3-none-any.whl/fim/user/component.py
from typing import Any, Dict, List, Tuple import recordclass import uuid from fim.view_only_dict import ViewOnlyDict from ..graph.abc_property_graph import ABCPropertyGraph from .model_element import ModelElement, ElementType, TopologyException from .network_service import NetworkService, ServiceType from .interface ...
PypiClean
/pyTenable-1.4.13.tar.gz/pyTenable-1.4.13/tenable/io/exclusions.py
from datetime import datetime from restfly.utils import dict_merge from tenable.io.base import TIOEndpoint class ExclusionsAPI(TIOEndpoint): ''' This will contain all methods related to exclusions ''' def create(self, name, members, start_time=None, end_time=None, timezone=None, descript...
PypiClean
/beets-1.6.0.tar.gz/beets-1.6.0/docs/reference/pathformat.rst
Path Formats ============ The ``paths:`` section of the config file (see :doc:`config`) lets you specify the directory and file naming scheme for your music library. Templates substitute symbols like ``$title`` (any field value prefixed by ``$``) with the appropriate value from the track's metadata. Beets adds the fil...
PypiClean
/gpt_index-0.8.17-py3-none-any.whl/llama_index/retrievers/recursive_retriever.py
from typing import Dict, List, Optional, Tuple, Union from llama_index.callbacks.base import CallbackManager from llama_index.callbacks.schema import CBEventType, EventPayload from llama_index.indices.query.base import BaseQueryEngine from llama_index.indices.query.schema import QueryBundle from llama_index.schema imp...
PypiClean
/plone.app.async-1.7.0.zip/plone.app.async-1.7.0/src/plone/app/async/browser/queue.py
import inspect from DateTime import DateTime from datetime import datetime from zope.cachedescriptors.property import Lazy as lazy_property from zope.component import getUtility from Products.Five import BrowserView from zc.async.interfaces import ACTIVE, COMPLETED from zc.async.utils import custom_repr from zc.twist i...
PypiClean
/django-settings-env-4.3.0.tar.gz/django-settings-env-4.3.0/README.md
------------------- django-settings-env ------------------- 12-factor.net settings environment handler for Django envex --------- The functionality outlined in this section is derived from the dependent package `envex`, the docs for which are partially repeated below. Skip to the Django Support section for functiona...
PypiClean
/PyRATA-0.4.1.tar.gz/PyRATA-0.4.1/pyrata/state.py
""" Description of the NFA elementary object namely as the state""" import logging class State(object): START_STATE = '#S' MATCHING_STATE = '#M' EMPTY_STATE = '#E' class_counter = 0 # make each State object have a unique id @classmethod def get_state_description(cls, state): ...
PypiClean
/ka-lite-0.17.6b4.tar.gz/ka-lite-0.17.6b4/kalite/distributed/static/js/distributed/perseus/ke/local-only/localeplanet/icu.gaa-GH.js
(function() { var dfs = {"am_pm":["AM","PM"],"day_name":["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],"day_short":["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],"era":["BC","AD"],"era_name":["Before Christ","Anno Domini"],"month_name":["January","February","March","April","May","June","July","...
PypiClean
/cctbx_base-2020.8-0_py38h167b89d-cp38-cp38m-manylinux2010_x86_64.whl/mmtbx/command_line/validate_ligands.py
from __future__ import absolute_import, division, print_function from iotbx.cli_parser import run_program from mmtbx.programs import validate_ligands if __name__ == '__main__': run_program(program_class=validate_ligands.Program) #old stuff #from __future__ import absolute_import, division, print_function #from li...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/MybankPaymentTradeNormalpayOrderCreateRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.MybankPaymentTradeNormalpayOrderCreateModel import MybankPaymentTradeNormalpayOrderCreateModel class MybankPaymentTradeNormalpayOrderCreateRequest(object): def __init__(self...
PypiClean
/adam-robotics-0.0.7.tar.gz/adam-robotics-0.0.7/src/adam/parametric/computations.py
import casadi as cs import numpy as np from adam.casadi.casadi_like import SpatialMath from adam.core import RBDAlgorithms from adam.model import Model from adam.parametric import ParametricModelFactory class KinDynComputations: """This is a small class that retrieves robot quantities represented in a symbolic ...
PypiClean
/tensorleap-openapi-client-1.2.0.tar.gz/tensorleap-openapi-client-1.2.0/tensorleap_openapi_client/paths/visualizations_get_visualization/post.py
from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from tensorleap_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 im...
PypiClean
/lbrlabs_pulumi_launchdarkly-0.0.6.tar.gz/lbrlabs_pulumi_launchdarkly-0.0.6/lbrlabs_pulumi_launchdarkly/get_project.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs __all__ = [ 'GetProjectResult', 'AwaitableGetProjectResult', 'get_project', 'get_project_output', ] @pulumi.output_type c...
PypiClean
/fireblocks_py-1.0.0-py3-none-any.whl/fireblocks_client/paths/vault_public_key_info_/get.py
from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from fireblocks_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
/nti.schema-1.16.0.tar.gz/nti.schema-1.16.0/docs/interfaces.rst
======================= nti.schema.interfaces ======================= .. automodule:: nti.schema.interfaces :members: :undoc-members: .. exception:: InvalidValue(*args, field=None, value=None) Adds a field specifically to carry the value that is invalid. .. deprecated:: 1.4.0 This is now ju...
PypiClean
/django-easy-notify-1.1.tar.gz/django-easy-notify-1.1/django_notifications/settings.py
import os from pathlib import Path # Build paths inside the project like this: BASE_DIR / 'subdir'. BASE_DIR = Path(__file__).resolve().parent.parent # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/4.2/howto/deployment/checklist/ # SECURITY WARNING: keep the se...
PypiClean
/quara-poetry-core-next-1.1.0a6.tar.gz/quara-poetry-core-next-1.1.0a6/src/poetry/core/masonry/utils/module.py
from pathlib import Path from typing import TYPE_CHECKING from typing import Any from typing import Dict from typing import List from typing import Optional if TYPE_CHECKING: from poetry.core.masonry.utils.include import Include class ModuleOrPackageNotFound(ValueError): pass class Module: def __init...
PypiClean
/avh_api-1.0.5-py3-none-any.whl/avh_api/rest.py
import io import json import logging import re import ssl from urllib.parse import urlencode from urllib.parse import urlparse from urllib.request import proxy_bypass_environment import urllib3 import ipaddress from avh_api.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundException, S...
PypiClean
/bpy_cuda-2.82-cp37-cp37m-win_amd64.whl/bpy_cuda-2.82.data/scripts/2.82/scripts/startup/bl_ui/properties_data_empty.py
# <pep8 compliant> from bpy.types import Panel class DataButtonsPanel: bl_space_type = 'PROPERTIES' bl_region_type = 'WINDOW' bl_context = "data" @classmethod def poll(cls, context): ob = context.object return (ob and ob.type == 'EMPTY') class DATA_PT_empty(DataButtonsPanel, Pa...
PypiClean
/dsl-james-0.1.4.tar.gz/dsl-james-0.1.4/james/cli.py
import sys from pathlib import Path from loguru import logger import click from termcolor import colored from james import __version__ from james.utils import check_path, cmd, timeit, PythonVersionType from james.config import IgniteConfig, IgniteInvalidStateError from james.azure import AzureSetup from james.james i...
PypiClean
/paho-mqtt-1.6.1.tar.gz/paho-mqtt-1.6.1/examples/loop_trio.py
import socket import uuid import trio import paho.mqtt.client as mqtt client_id = 'paho-mqtt-python/issue72/' + str(uuid.uuid4()) topic = client_id print("Using client_id / topic: " + client_id) class TrioAsyncHelper: def __init__(self, client): self.client = client self.sock = None se...
PypiClean
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/@blueprintjs/select/lib/esm/common/listItemsProps.d.ts
import { Props } from "@blueprintjs/core"; import { ItemListRenderer } from "./itemListRenderer"; import { ItemRenderer } from "./itemRenderer"; import { ICreateNewItem } from "./listItemsUtils"; import { ItemListPredicate, ItemPredicate } from "./predicate"; /** * Equality test comparator to determine if two {@link I...
PypiClean
/pytest-7.4.1.tar.gz/pytest-7.4.1/src/_pytest/nodes.py
import os import warnings from inspect import signature from pathlib import Path from typing import Any from typing import Callable from typing import cast from typing import Iterable from typing import Iterator from typing import List from typing import MutableMapping from typing import Optional from typing import ove...
PypiClean
/flet_django-0.4.5-py3-none-any.whl/flet_django/controls/modeltable.py
import flet as ft from django.utils.translation import gettext as _ from django.core.paginator import Paginator from django.db.models import Q ERROR_MSG = "-Err-" FIELDS_MODELS = { 'IntegerField': 'text', 'DurationField': None, 'ManyToOneRel': None, 'DateTimeField': 'date', 'FileField': 'file', ...
PypiClean
/bpy36-1.0.0-py3-none-any.whl/bpy2/2.79/scripts/addons/sequencer_kinoraw_tools/random_editor.py
# Note: the Operator LoadRandomEditOperator was removed since is not # working. If it is fixed, reimplemented it can be reintroduced later import bpy from bpy.types import ( Operator, Panel, ) from . import functions # classes class RandomScratchOperator(Operator): bl_idname = "sequencer...
PypiClean
/crown_pycurl-0.2.tar.gz/crown_pycurl-0.2/crown_pycurl/client.py
import json from io import BytesIO from pycurl import Curl # Base curl client, with initial parameters for Crown class Client(): def __init__(self, user, passwd, host, testnet=False): self.client = Curl() self.set_headers(user, passwd, host, testnet=testnet) # Sets the connection headers ...
PypiClean
/obs_cli-0.6.2-py3-none-any.whl/obs_cli.py
import argparse import json import logging import os import re import sys import obsws_python as obs from rich import print, print_json from rich.console import Console from rich.table import Table def parse_args(): parser = argparse.ArgumentParser() parser.add_argument("-D", "--debug", action="store_true",...
PypiClean
/dnv_bladed_models-0.3.44.tar.gz/dnv_bladed_models-0.3.44/src/dnv_bladed_models/standard_pitch_limit_switches.py
from __future__ import annotations from datetime import date, datetime # noqa: F401 from enum import Enum, IntEnum import re # noqa: F401 from typing import Any, Dict, List, Optional, Type, Union, Callable # noqa: F401 from pathlib import Path from typing import TypeVar Model = TypeVar('Model', bound='BaseModel') ...
PypiClean
/azure_mgmt_containerservice-26.0.0-py3-none-any.whl/azure/mgmt/containerservice/v2020_02_01/aio/_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 ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy from .._version import VERSION if TYPE_CHECKING: # pylint: disable=unused-import,ungr...
PypiClean
/git_upm_publisher-0.0.5-py3-none-any.whl/git_upm_publisher/utils/git_manager.py
from pathlib import Path from git import Repo import os from datetime import datetime import subprocess class Git: def __init__(self, repo_root_path): self.repo_root_path = repo_root_path self.dotgit_path = os.path.join(repo_root_path, ".git/") assert os.path.exists(self.dotgit_path), "Can...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/sql/v20211101/geo_backup_policy.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from ._enums import * __all__ = ['GeoBackupPolicyArgs', 'GeoBackupPolicy'] @pulumi.input_type class GeoBackupPolicyArgs: def __init__(__self__, *, ...
PypiClean
/mlm-pytorch-0.1.0.tar.gz/mlm-pytorch-0.1.0/mlm_pytorch/mlm_pytorch.py
import math from functools import reduce import torch from torch import nn import torch.nn.functional as F # helpers def prob_mask_like(t, prob): return torch.zeros_like(t).float().uniform_(0, 1) < prob def mask_with_tokens(t, token_ids): init_no_mask = torch.full_like(t, False, dtype=torch.bool) mask =...
PypiClean
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/docs/gw/kafka.rst
.. _kafka: Kafka ===== You can export statistics to a ``Kafka`` server. The connection should be defined in the Glances configuration file as following: .. code-block:: ini [kafka] host=localhost port=9092 topic=glances #compression=gzip # Tags will be added for all events #tags=foo:bar,...
PypiClean
/gow/io.py
import re from typing import Tuple, List, Sequence, Callable from gowpy.gow.builder import mk_undirected_edge, mk_directed_edge from gowpy.gow.builder import GraphOfWords from gowpy.gow.typing import Edge_label def gow_to_data(gows: Sequence[GraphOfWords]) -> str: """ Convert a sequence of graph-of-words in...
PypiClean
/cdktf-cdktf-provider-azurerm-10.0.1.tar.gz/cdktf-cdktf-provider-azurerm-10.0.1/src/cdktf_cdktf_provider_azurerm/network_packet_capture/__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 NetworkPacketCapture( _cdktf_9a9027ec.TerraformRes...
PypiClean
/gs2-cdk-1.0.22.tar.gz/gs2-cdk-1.0.22/src/gs2_cdk/lottery/model/Namespace.py
from __future__ import annotations from typing import * from ...core.model import CdkResource, Stack from ...core.func import GetAttr from ...core.model import TransactionSetting from ...core.model import LogSetting from ..ref.NamespaceRef import NamespaceRef from .CurrentMasterData import CurrentMasterData from .Lot...
PypiClean
/ciefunctions-1.0.2.tar.gz/ciefunctions-1.0.2/tc1_97/MathJax-2.7.5/jax/output/SVG/fonts/TeX/Typewriter/Regular/CombDiacritMarks.js
MathJax.Hub.Insert(MathJax.OutputJax.SVG.FONTDATA.FONTS.MathJax_Typewriter,{768:[611,-485,0,-409,-195,"-409 569Q-409 586 -399 596T-377 610Q-376 610 -372 610T-365 611Q-355 610 -284 588T-210 563Q-195 556 -195 537Q-195 533 -197 522T-208 498T-229 485Q-238 485 -312 508T-388 533Q-400 538 -405 552Q-409 559 -409 569"],769:[611...
PypiClean
/monk_pytorch_cuda90_test-0.0.1-py3-none-any.whl/monk/pytorch/finetune/level_14_master_main.py
from monk.pytorch.finetune.imports import * from monk.system.imports import * from monk.pytorch.finetune.level_13_updates_main import prototype_updates class prototype_master(prototype_updates): ''' Main class for all functions in expert mode Args: verbose (int): Set verbosity levels ...
PypiClean
/sympy.keras-1.0.23.tar.gz/sympy.keras-1.0.23/sympy/stats/matrix_distributions.py
from sympy import S, Basic, exp, multigamma, pi from sympy.core.sympify import sympify, _sympify from sympy.matrices import (ImmutableMatrix, Inverse, Trace, Determinant, MatrixSymbol, MatrixBase, Transpose, MatrixSet, matrix2numpy) from sympy.stats.rv import (_va...
PypiClean
/xadrpy-0.6.3.tar.gz/xadrpy-0.6.3/src/ckeditor/static/ckeditor/ckeditor/_source/plugins/forms/dialogs/checkbox.js
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'checkbox', function( editor ) { return { title : editor.lang.checkboxAndRadio.checkboxTitle, minWidth : 350, minHeight : 140, onShow : function...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/peering/v20221001/get_registered_prefix.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities __all__ = [ 'GetRegisteredPrefixResult', 'AwaitableGetRegisteredPrefixResult', 'get_registered_prefix', 'get_registered_prefix_output', ] @pu...
PypiClean
/django_xblog-0.1.0-py3-none-any.whl/xblog/metaWeblog.py
import string import xmlrpclib import urllib import re import time import datetime import os import urlparse import sys from django.conf import settings try: from django.contrib.auth import get_user_model User = get_user_model() # settings.AUTH_USER_MODEL except ImportError: from django.contrib.auth.models ...
PypiClean
/site24x7_openai_observability-1.0.0-py3-none-any.whl/site24x7_openai_observability/instrumentation.py
import time import platform from importlib import import_module def check_module(): global apm_module_status if apm_module_status is not None: return apm_module_status try: module_status = import_module("apminsight") if module_status is not None: apm_module_status = Tru...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/@typescript-eslint/eslint-plugin/dist/rules/no-for-in-array.js
"use strict"; var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { if (k2 === undefined) k2 = k; var desc = Object.getOwnPropertyDescriptor(m, k); if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) { desc = { enumerable: true...
PypiClean
/runml_checks-1.0.0-py3-none-any.whl/runml_checks/core/serialization/suite_result/json.py
"""Module containing JSON serializer for the SuiteResult type.""" import typing as t from runml_checks.core import check_result as check_types from runml_checks.core import suite from runml_checks.core.serialization.abc import JsonSerializer from runml_checks.core.serialization.check_failure.json import CheckFailureSe...
PypiClean
/cis_checks_2023_u1_3-2.1.2-py3-none-any.whl/cis_checks_2023_u1_3/utils.py
import csv import json import logging.config import os import re import tempfile import time from datetime import datetime import botocore.exceptions logging.basicConfig(level=logging.INFO) logger = logging.getLogger("Simple Logger") # BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) LOG_CONF_P...
PypiClean
/squirrel_datasets_core-0.3.1-py3-none-any.whl/squirrel_datasets_core/datasets/adult_dataset/driver.py
from __future__ import annotations import os from typing import TYPE_CHECKING import pandas as pd from squirrel.driver import IterDriver from squirrel.iterstream import IterableSource from squirrel_datasets_core.datasets.utils import proportionate_sample_df if TYPE_CHECKING: from squirrel.iterstream import Com...
PypiClean
/aiolirc-0.1.2.tar.gz/aiolirc-0.1.2/README.rst
aiolirc ======= .. image:: http://img.shields.io/pypi/v/aiolirc.svg :target: https://pypi.python.org/pypi/aiolirc .. image:: https://img.shields.io/badge/license-GPLv3-brightgreen.svg :target: https://github.com/pylover/aiolirc/blob/master/LICENSE Jump To ------- * `Documentation <http://aiolirc.dobi...
PypiClean
/dnv_bladed_models-0.3.44.tar.gz/dnv_bladed_models-0.3.44/src/dnv_bladed_models/midpoint_method_fixed_step.py
from __future__ import annotations from datetime import date, datetime # noqa: F401 from enum import Enum, IntEnum import re # noqa: F401 from typing import Any, Dict, List, Optional, Type, Union, Callable # noqa: F401 from pathlib import Path from typing import TypeVar Model = TypeVar('Model', bound='BaseModel') ...
PypiClean
/columbia-discord-bot-0.2.1.tar.gz/columbia-discord-bot-0.2.1/docs/_build/html/_static/aiohttp/web.py
import asyncio import logging import socket import sys from argparse import ArgumentParser from collections.abc import Iterable from importlib import import_module from typing import ( Any, Awaitable, Callable, Iterable as TypingIterable, List, Optional, Set, Type, Union, cast, )...
PypiClean
/habitat-lab-0.2.520230802.tar.gz/habitat-lab-0.2.520230802/habitat/tasks/rearrange/actions/actions.py
# Copyright (c) Meta Platforms, Inc. and its affiliates. # This source code is licensed under the MIT license found in the # LICENSE file in the root directory of this source tree. from typing import Optional import magnum as mn import numpy as np from gym import spaces import habitat_sim from habitat.core.embodied...
PypiClean
/collective.upgrade-1.7.tar.gz/collective.upgrade-1.7/bootstrap.py
import os import shutil import sys import tempfile from optparse import OptionParser tmpeggs = tempfile.mkdtemp() usage = '''\ [DESIRED PYTHON FOR BUILDOUT] bootstrap.py [options] Bootstraps a buildout-based project. Simply run this script in a directory containing a buildout.cfg, using the Python that you want bi...
PypiClean
/spyder-terminal-1.2.2.tar.gz/spyder-terminal-1.2.2/spyder_terminal/server/static/components/caniuse-lite/data/regions/MZ.js
module.exports={C:{"52":0.022,"57":0.0176,"66":0.0044,"68":0.0088,"72":0.0044,"78":0.0176,"84":0.0264,"85":0.0044,"88":0.0132,"89":0.022,"90":0.0044,"91":0.0088,"92":0.0132,"93":0.3124,"94":1.518,"95":0.0132,_:"2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 ...
PypiClean
/Fumagalli_Motta_Tarantino_2020-0.5.3.tar.gz/Fumagalli_Motta_Tarantino_2020-0.5.3/Fumagalli_Motta_Tarantino_2020/Models/Types.py
from dataclasses import dataclass from enum import Enum class MergerPolicies(Enum): """ Defines the available merger policies in the models. """ Strict = "Strict" """The AA authorises only takeovers that, at the moment in which they are reviewed, are expected to increase total welfare.""" Int...
PypiClean
/cognite-air-sdk-4.0.0.tar.gz/cognite-air-sdk-4.0.0/cognite/air/_spaces_api.py
from typing import Optional from cognite.air._admin_config import AdminAPI class SpacesAPI(AdminAPI): def create(self, id: str, name: str, description: str = ""): """Create a Space Args: id (str): An id given to the Space. Needs to be unique and will be part of the URL na...
PypiClean
/sdformat-0.23.2.tar.gz/sdformat-0.23.2/SDF/sdf_object.py
from . import sdf_rc from .sdf_gen_val import sdf_gen_val from .sdf_name import sdf_name from .sdf_date import sdf_date from .sdf_owner import sdf_owner from .sdf_comment import sdf_comment from .sdf_sample import sdf_sample from .sdf_instrument import sdf_instrument from .sdf_par import sdf_par from .sdf_data import s...
PypiClean
/sheepdog-tables-1.2.0.tar.gz/sheepdog-tables-1.2.0/sheepdog_tables/table.py
from inspect import getmembers from django.core.exceptions import ImproperlyConfigured from django.conf import settings from django.forms.models import ModelForm, BaseModelFormSet from django.forms.formsets import formset_factory from django.utils.translation import ugettext_lazy as _ from .column import Column, ASC, ...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/calendar/events/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
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayCommerceMedicalInstcardCreateandpayRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayCommerceMedicalInstcardCreateandpayModel import AlipayCommerceMedicalInstcardCreateandpayModel class AlipayCommerceMedicalInstcardCreateandpayRequest(object): def __in...
PypiClean
/pymouser-0.8.tar.gz/pymouser-0.8/README.md
# PyMouser ## Installation Install the package with pip. ```pip install --user pymouser``` ## Usage: ```python import pymouser # Initialize the package with your API key mouser = pymouser.MouserAPI('your-search-key') # Search by Part-Number err, res = mouser.search_by_PN('your-part-number') # Check for errors ...
PypiClean
/steelscript.appfwk-1.8.tar.gz/steelscript.appfwk-1.8/steelscript/appfwk/apps/plugins/builtin/whois/reports/whois.py
from steelscript.appfwk.apps.plugins.builtin.whois.datasource.whois import \ WhoisTable, whois_function from steelscript.appfwk.apps.datasource.modules.analysis import AnalysisTable from steelscript.netprofiler.appfwk.datasources.netprofiler import \ NetProfilerGroupbyTable from steelscript.appfwk.apps.repor...
PypiClean
/gdbfrontend-0.6.2.tar.gz/gdbfrontend-0.6.2/frontend/thirdparty/ace/mode-cobol.js
ace.define("ace/mode/cobol_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="ACCEPT|MERGE|SUM|ADD||MESSAGE|TABLE|ADVANCING|MODE|TAPE|AFTER|MULTIPLY|TEST|ALL...
PypiClean
/lintrunner-0.11.0.tar.gz/lintrunner-0.11.0/CHANGELOG.md
# Changelog All notable changes to this project will be documented in this file. ## [0.11.0] - 2023-08-23 ### Features\ - Add command line argument `--only-lint-under-config-dir` ([a604812](https://github.com/suo/lintrunner/commit/a604812e11c5c5bf3c1160f9ee7ccd9a9680f43a)) - Allow multiple toml files in config([4926...
PypiClean
/fake_bpy_module_2.82-20230117-py3-none-any.whl/bl_ui/properties_physics_softbody.py
import sys import typing import bpy_types GenericType = typing.TypeVar("GenericType") class PhysicButtonsPanel: bl_context = None ''' ''' bl_region_type = None ''' ''' bl_space_type = None ''' ''' def poll(self, context): ''' ''' pass class PHYSICS_PT_softbo...
PypiClean
/ansible-kkvesper-2.3.2.0.tar.gz/ansible-kkvesper-2.3.2.0/lib/ansible/modules/web_infrastructure/jboss.py
# (c) 2013, Jeroen Hoekx <jeroen.hoekx@dsquare.be> # # This file is part of Ansible # # Ansible 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 3 of the License, or # (at your option) any later...
PypiClean
/rinohtype-0.5.4.tar.gz/rinohtype-0.5.4/src/rinoh/attribute.py
import re from collections import OrderedDict from configparser import ConfigParser from io import StringIO from itertools import chain from pathlib import Path from token import NUMBER, ENDMARKER, MINUS, PLUS, NAME, NEWLINE from tokenize import generate_tokens from warnings import warn from .util import (NamedDesc...
PypiClean
/plone.app.debugtoolbar-1.3.0.tar.gz/plone.app.debugtoolbar-1.3.0/src/plone/app/debugtoolbar/browser/resources/debugtoolbar.js
_read_debug_cookie = function() { key = "plone.app.debugtoolbar"; var result, decode = decodeURIComponent; var cookie = (result = new RegExp('(?:^|; )' + encodeURIComponent(key) + '=([^;]*)').exec(document.cookie)) ? decode(result[1]) : null; if(cookie == null) { return {}; } return j...
PypiClean
/yt-dlp-cp-2.9.9.tar.gz/yt-dlp-cp-2.9.9/yt_dlp/extractor/breakcom.py
from .common import InfoExtractor from .youtube import YoutubeIE from ..utils import ( int_or_none, url_or_none, ) class BreakIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?break\.com/video/(?P<display_id>[^/]+?)(?:-(?P<id>\d+))?(?:[/?#&]|$)' _TESTS = [{ 'url': 'http://www.break.com/vide...
PypiClean
/bitmovin_api_sdk-1.171.0-py3-none-any.whl/bitmovin_api_sdk/encoding/filters/unsharp/unsharp_api.py
from __future__ import absolute_import from bitmovin_api_sdk.common import BaseApi, BitmovinApiLoggerBase from bitmovin_api_sdk.common.poscheck import poscheck_except from bitmovin_api_sdk.models.bitmovin_response import BitmovinResponse from bitmovin_api_sdk.models.response_envelope import ResponseEnvelope from bitm...
PypiClean
/GRFloodMaster-1.1.0-py3-none-any.whl/FloodMaster/utils/CategoryEncoder.py
import category_encoders as ce import pandas as pd import joblib import os import json class LooEncoder(): """采用 LeaveOneOut 方法编码类别变量,从而可进行机器学习。 由于该方法属于有监督方法,要求数据集中标签变量为非类别变量。 同时,该编码方法可以适应不断增加的类别。 此外,该编码方式为不唯一编码、无法逆编码,不适合标签的编码。 """ def __init__(self, ID: str, features: list = None): ...
PypiClean