id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/groups/item/calendar/events/item/exception_occurrences/item/cancel/cancel_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
/stix_shifter_modules_synchronous_dummy-3.0.3.tar.gz/stix_shifter_modules_synchronous_dummy-3.0.3/stix_shifter_modules/synchronous_dummy/stix_translation/query_constructor.py
from stix_shifter_utils.stix_translation.src.patterns.pattern_objects import ObservationExpression, ComparisonExpression, \ ComparisonExpressionOperators, ComparisonComparators, Pattern, \ CombinedComparisonExpression, CombinedObservationExpression, ObservationOperators from stix_shifter_utils.stix_translation....
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/devspaces/v20190401/controller.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs from ._enums import * from ._inputs import * __all__ = ['Controller'] class Controller(pulumi.CustomResource): def __init__(__self__, ...
PypiClean
/neatdend-0.9.1.tar.gz/neatdend-0.9.1/neat/trees/compartmenttree.py
import numpy as np import scipy.linalg as la import scipy.optimize as so from .stree import SNode, STree from ..tools import kernelextraction as ke import copy import warnings import itertools from operator import mul from functools import reduce class CompartmentNode(SNode): """ Implements a node for `Comp...
PypiClean
/nbtools-23.7.0.tar.gz/nbtools-23.7.0/docs/toolmanager.md
# Notebook Tool Manager API The Notebook Tool Manager API consists of two components: a singleton manager which registers and lists tools, as well as a simple interface a tool can implement to provide its metadata and rendering instructions. ### Tool Manager Singleton * **register(tool): id** * Registers a tool w...
PypiClean
/dc_auth-1.2.9.tar.gz/dc_auth-1.2.9/src/dc_auth/testing_support/factories/user.py
import datetime as dt from random import randint from django.db.models.signals import post_save from django.template.defaultfilters import slugify import faker import factory import factory.django from factory import ( lazy_attribute, BUILD_STRATEGY, ) import pytz from . import SECURE_PASSWORD faker = faker....
PypiClean
/Grid2Op-1.9.3-py3-none-any.whl/grid2op/Environment/_obsEnv.py
import copy import numpy as np import warnings from grid2op.Exceptions.EnvExceptions import EnvError from grid2op.dtypes import dt_int, dt_float, dt_bool from grid2op.Environment.baseEnv import BaseEnv from grid2op.Chronics import ChangeNothing from grid2op.Rules import RulesChecker from grid2op.operator_attention im...
PypiClean
/yourls-1.2.3.tar.gz/yourls-1.2.3/README.rst
yourls ------ |PyPI Version| |Documentation| |Travis| |Coverage| |Python Version| |MIT License| Installation ~~~~~~~~~~~~ .. code:: bash $ pip install yourls Example ~~~~~~~ .. code:: python >>> from yourls import YOURLSClient >>> yourls = YOURLSClient('http://example.com/yourls-api.php', signature='6...
PypiClean
/audio_mouse-1.0.2-py3-none-any.whl/mouse/mouse.py
import logging from datetime import datetime import aubio import numpy as np import pyaudio import autopy from mouse import constants from mouse import utils from mouse.constants import Binds class LineIn: """ Line input (mic, instrument etc) """ def __init__(self, *args, **kwargs): self.pya...
PypiClean
/AEI-1.3.0.tar.gz/AEI-1.3.0/pyrimaa/analyze.py
from __future__ import print_function import logging import socket import sys import time from argparse import ArgumentParser try: from ConfigParser import SafeConfigParser, NoOptionError ConfigParser = SafeConfigParser except ModuleNotFoundError: from configparser import ConfigParser, NoOptionError fro...
PypiClean
/metabolights_utils-0.9.8.tar.gz/metabolights_utils-0.9.8/metabolights_utils/tsv/actions/update_column.py
import pathlib import uuid from typing import Dict, List from metabolights_utils.tsv import model as actions from metabolights_utils.tsv.actions.base import BaseTsvAction class UpdateColumnsTsvAction(BaseTsvAction): def apply_action( self, source_file_path: pathlib.Path, target_file_path:...
PypiClean
/ni_measurement_service-0.11.1.tar.gz/ni_measurement_service-0.11.1/ni_measurement_service/_internal/service_manager.py
import logging from typing import Callable, List import grpc from grpc.framework.foundation import logging_pool from ni_measurement_service._internal.discovery_client import DiscoveryClient from ni_measurement_service._internal.grpc_servicer import MeasurementServiceServicer from ni_measurement_service._internal.para...
PypiClean
/monk_pytorch_cuda90-0.0.1.tar.gz/monk_pytorch_cuda90-0.0.1/monk/gluon/models/features.py
from monk.gluon.models.imports import * class CNNVisualizer(): ''' Base class for visualizing features and feature maps of gluon models Args: model (): Trained model is_notebook: Check environment type True - Using Jupyter-like environment (Notebook) ...
PypiClean
/Orange-Bioinformatics-2.6.25.tar.gz/Orange-Bioinformatics-2.6.25/orangecontrib/bio/widgets/OWGeneAtlasTissueExpression.py
from __future__ import absolute_import import os, sys from collections import defaultdict import shelve import Orange from Orange.utils import lru_cache from Orange.OrangeWidgets import OWGUI from Orange.OrangeWidgets.OWWidget import * from Orange.orng import orngDataCaching, orngServerFiles from .. import obiArray...
PypiClean
/databricks_sdk_python-0.0.3-py3-none-any.whl/databricks_sdk_python/api_client/account/aws/workspaces.py
from typing import List, Optional from uuid import UUID from databricks_sdk_python.api_client.account.aws.client import AwsAccountClient from databricks_sdk_python.api_client.utils import UnknownApiResponse from databricks_sdk_python.resources.account.aws.workspaces import Workspace class AwsWorkspacesClient(object)...
PypiClean
/pulumi_gcp_native-0.0.2a1617829075.tar.gz/pulumi_gcp_native-0.0.2a1617829075/pulumi_gcp_native/compute/beta/firewall.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs from ._inputs import * __all__ = ['Firewall'] class Firewall(pulumi.CustomResource): def __init__(__self__, resource_name: str...
PypiClean
/netoprmgr-1.3.5.tar.gz/netoprmgr-1.3.5/urllib3/contrib/securetransport.py
from __future__ import absolute_import import contextlib import ctypes import errno import os.path import shutil import socket import ssl import threading import weakref from .. import util from ._securetransport.bindings import Security, SecurityConst, CoreFoundation from ._securetransport.low_level import ( _as...
PypiClean
/time_series_analysis_plugin-0.0.1-py3-none-any.whl/TimeSeriesAnalysisPlugin/maga/maga_plugin_service.py
import os import json from flask import jsonify import uuid import time import shutil from requests import Request from common.plugin_service import PluginService from common.util.constant import STATUS_SUCCESS, STATUS_FAIL from common.util.constant import ModelState from common.util.constant import InferenceState fro...
PypiClean
/Eskapade_Core-1.0.0-py3-none-any.whl/escore/core/process_manager.py
import glob import importlib import os, sys import multiprocessing from multiprocessing import Manager from escore.core import persistence from escore.core.definitions import StatusCode from escore.core.element import Chain from escore.core.meta import Processor, ProcessorSequence from escore.core.mixin import TimerM...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/models/reference_attachment_collection_response.py
from __future__ import annotations from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, Union from . import base_collection_pagination_count_response, reference_attachment class ReferenceAttachmentCollectionResponse(base_collecti...
PypiClean
/python-continuum-0.1.1.tar.gz/python-continuum-0.1.1/README.txt
python-continuum - Consistent hashing ======================================================================== Copyright (c) 2010 by Joachim Bauch, mail@joachim-bauch.de http://www.joachim-bauch.de/projects/python-continuum/ python-continuum provides a function to do consistent hashing. See wikipedia [1]_ for more in...
PypiClean
/myams_js-1.16.0.tar.gz/myams_js-1.16.0/pkg/js/ext/ace/keybinding-vscode.js
define("ace/keyboard/vscode",["require","exports","module","ace/keyboard/hash_handler","ace/config"], function(require, exports, module) { "use strict"; var HashHandler = require("../keyboard/hash_handler").HashHandler; var config = require("../config"); exports.handler = new HashHandler(); exports.handler.$id = "ace...
PypiClean
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v3_2_0/report_job_run_broker.py
from ..broker import Broker class ReportJobRunBroker(Broker): controller = "report_job_runs" def index(self, **kwargs): """Lists the available report job runs. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the various ways to query lists, using this meth...
PypiClean
/tf_gpu-2.11.0.2301-cp38-cp38-manylinux2014_x86_64.whl/tensorflow/python/training/warm_starting_util.py
"""Utilities to warm-start TF.Learn Estimators.""" import collections from tensorflow.python.framework import errors from tensorflow.python.framework import ops from tensorflow.python.ops import state_ops from tensorflow.python.ops import variable_scope from tensorflow.python.ops import variables as variables_lib fro...
PypiClean
/django-read-only-admin-0.17.5.zip/django-read-only-admin-0.17.5/read_only_admin/templatetags/read_only_admin_tags.py
# django-read-only-admin # read_only_admin/templatetags/read_only_admin_tags.py from typing import Dict, List from django.template import Context, Library, RequestContext from django.contrib.admin.templatetags.admin_modify import submit_row from read_only_admin.utils import get_read_only_permission_codename __al...
PypiClean
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/v2/alpha/api/apps/get_benchling_app_by_id.py
from typing import Any, Dict, Optional, Union import httpx from ...client import Client from ...models.bad_request_error import BadRequestError from ...models.benchling_app import BenchlingApp from ...models.forbidden_error import ForbiddenError from ...models.not_found_error import NotFoundError from ...types import...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/check_point/mgmt/plugins/modules/cp_mgmt_show_software_packages_per_targets.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_show_software_packages_per_targets short_descript...
PypiClean
/jai_sdk-0.24.0-py3-none-any.whl/jai/task/vectors.py
from fnmatch import fnmatch from typing import Optional from pandas.api.types import is_numeric_dtype from tqdm import trange from ..core.utils_funcs import data2json from ..core.validations import check_dtype_and_clean from ..types.generic import PossibleDtypes from .base import TaskBase __all__ = ["Vectors"] def...
PypiClean
/lib_platform-1.2.9.tar.gz/lib_platform-1.2.9/lib_platform/lib_platform.py
import ctypes import getpass import os import platform import socket import subprocess # OWN import lib_registry def get_hostname() -> str: """ Returns fqdn hostname lowercase, also for WINE >>> result = get_hostname() >>> assert len(result) > 1 """ if get_is_platform_windows_wine(): # fo...
PypiClean
/gns3-server-3.0.0a2.tar.gz/gns3-server-3.0.0a2/gns3server/compute/vmware/__init__.py
import os import sys import re import shutil import asyncio import subprocess import logging import codecs import ipaddress import shlex from collections import OrderedDict from gns3server.utils.interfaces import interfaces from gns3server.utils.asyncio import subprocess_check_output from gns3server.utils import parse...
PypiClean
/opspipe-0.0.24.tar.gz/opspipe-0.0.24/examples/cv/utils/table-cell-to-coco.py
# -*- coding: utf-8 -*-# #------------------------------------------------------------------------------- # Name: table-cell-to-coco.py # Author: wdf # Date: 2019/7/20 # IDE: PyCharm # Parameters: # @param: # @param: # Return: # # Description: 把左上角、右下角坐标转换为coco格式 # Usage:...
PypiClean
/pyxeed-0.1.4.tar.gz/pyxeed-0.1.4/README.md
[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) [![PyPI version](https://badge.fury.io/py/pyxeed.svg)](https://pypi.org/project/pyxeed) [![codecov](https://codecov.io/gh/X-I-A/pyxeed/branch/master/graph/badge.svg)](https://codecov.io/gh/X-I-A/pyxeed) [!...
PypiClean
/PySimpleBGC-0.1.zip/PySimpleBGC-0.1/docs/index.rst
========================================================== PySimpleBGC : Query the Basecam SimpleBGC controller board ========================================================== .. module:: pysimplebgc About ----- This project was conducted by the laboratories `UMR5133-Archéorient`_ (FR) and `UMR56000-Environnement ...
PypiClean
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/doorbird/__init__.py
import logging from aiohttp import web from doorbirdpy import DoorBird import requests import voluptuous as vol from homeassistant.components.http import HomeAssistantView from homeassistant.config_entries import ConfigEntry from homeassistant.const import ( ATTR_ENTITY_ID, CONF_HOST, CONF_NAME, CONF_...
PypiClean
/azure_purview_sharing-1.0.0b3-py3-none-any.whl/azure/purview/sharing/_serialization.py
# pylint: skip-file # pyright: reportUnnecessaryTypeIgnoreComment=false from base64 import b64decode, b64encode import calendar import datetime import decimal import email from enum import Enum import json import logging import re import sys import codecs from typing import ( Dict, Any, cast, Optional...
PypiClean
/threatware-0.9.2-py3-none-any.whl/verifiers/field_validation_conditional_mandatory.py
from data import find import logging from verifiers.verifier_error import VerifierIssue from utils import match from utils import keymaster import utils.logging logger = logging.getLogger(utils.logging.getLoggerName(__name__)) def verify(common_config:dict, verifier_config:dict, model:dict, template_model:dict) -> l...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/onenote/section_groups/item/parent_section_group/parent_section_group_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
/Deliverance.Rewrite-0.6.3.tar.gz/Deliverance.Rewrite-0.6.3/deliverance/editor/media/editarea/edit_area/reg_syntax/vb.js
editAreaLoader.load_syntax["vb"] = { 'COMMENT_SINGLE' : {1 : "'"} ,'COMMENT_MULTI' : { } ,'QUOTEMARKS' : {1: '"'} ,'KEYWORD_CASE_SENSITIVE' : false ,'KEYWORDS' : { 'statements' : [ 'if','then','for','each','while','do','loop', 'else','elseif','select','case','end select', 'until'...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/webcomponentsjs/MutationObserver.js
if (typeof WeakMap === "undefined") { (function() { var defineProperty = Object.defineProperty; var counter = Date.now() % 1e9; var WeakMap = function() { this.name = "__st" + (Math.random() * 1e9 >>> 0) + (counter++ + "__"); }; WeakMap.prototype = { set: function(key, value) { ...
PypiClean
/pyAutoMark-0.7.1.tar.gz/pyAutoMark-0.7.1/pyam/fixtures/common.py
from pathlib import Path from typing import Union import pytest import pyam from pyam.config import CONFIG from pyam.cohort import get_cohort def pytest_addoption(parser): """Add in pyAutoTest control options for pytest""" parser.addoption("--cohort", action="store", default=None) parser.addoption("--stud...
PypiClean
/vmware-nsx-tempest-plugin-1.0.0.0rc1.tar.gz/vmware-nsx-tempest-plugin-1.0.0.0rc1/vmware_nsx_tempest_plugin/services/nsx_client.py
from oslo_log import log as logging from vmware_nsx_tempest_plugin.services import nsxv3_client LOG = logging.getLogger(__name__) class NSXClient(object): """Base NSX REST client""" def __init__(self, backend, host, username, password, *args, **kwargs): self.backend = backend.lower() self.ho...
PypiClean
/mysql-utilities-1.4.3.tar.gz/mysql-utilities-1.4.3/mysql/fabric/services/__init__.py
import socket import logging import pkgutil import os import inspect import mysql.fabric.protocols.xmlrpc as _protocol from mysql.fabric.utils import ( Singleton ) from mysql.fabric.errors import ( ServiceError ) from mysql.fabric.command import ( get_groups, get_commands, get_command, ...
PypiClean
/mmseg_ext-0.0.2-py3-none-any.whl/mmseg_ext/models/edge_heads/multi_supervision_head.py
import warnings from abc import ABCMeta, abstractmethod import torch import torch.nn as nn from mmcv.runner import BaseModule, auto_fp16, force_fp32 from mmseg.core import build_pixel_sampler from mmseg.ops import resize from ..builder import build_edge_loss from ..losses import edge_accuracy class BaseMultiSuperv...
PypiClean
/haystack-client-0.2.4.tar.gz/haystack-client-0.2.4/haystack/http_recorder.py
import logging import json from requests import Session from requests import RequestException from requests_futures.sessions import FuturesSession from .recorder import SpanRecorder from .util import span_to_proto, span_to_json from .constants import DEFAULT_HTTP_TIMEOUT logger = logging.getLogger(__name__) def resp...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/wafv2/put-logging-configuration.rst
**To add a logging configuration to a web ACL** The following ``put-logging-configuration`` adds the Amazon Kinesis Data Firehose logging configuration ``aws-waf-logs-custom-transformation`` to the specified web ACL, with no fields redacted from the logs. :: aws wafv2 put-logging-configuration \ --logging...
PypiClean
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/tensorflow/lite/experimental/microfrontend/python/ops/audio_microfrontend_op.py
"""AudioMicrofrontend Op creates filterbanks from audio data.""" from tensorflow.lite.experimental.microfrontend.ops import gen_audio_microfrontend_op from tensorflow.python.framework import dtypes from tensorflow.python.framework import load_library from tensorflow.python.framework import ops from tensorflow.python.o...
PypiClean
/gym_vecenv-1.0.tar.gz/gym_vecenv-1.0/gym_vecenv/vec_env.py
from abc import ABC, abstractmethod class AlreadySteppingError(Exception): """ Raised when an asynchronous step is running while step_async() is called again. """ def __init__(self): msg = 'already running an async step' Exception.__init__(self, msg) class NotSteppingError(Exceptio...
PypiClean
/gpt_index-0.8.17-py3-none-any.whl/llama_index/readers/steamship/file_reader.py
from typing import List, Optional from llama_index.readers.base import BaseReader from llama_index.schema import Document class SteamshipFileReader(BaseReader): """Reads persistent Steamship Files and converts them to Documents. Args: api_key: Steamship API key. Defaults to STEAMSHIP_API_KEY value i...
PypiClean
/in_dbt_core-1.5.1-py3-none-any.whl/dbt/contracts/graph/nodes.py
import os import time from dataclasses import dataclass, field from enum import Enum import hashlib from mashumaro.types import SerializableType from typing import ( Optional, Union, List, Dict, Any, Sequence, Tuple, Iterator, ) from dbt.dataclass_schema import dbtClassMixin, Extensibl...
PypiClean
/autonet-api-0.2.1.tar.gz/autonet-api-0.2.1/autonet/core/objects/interfaces.py
import logging import macaddress from dataclasses import dataclass, field from ipaddress import ip_interface from typing import Optional, Union import autonet.core.exceptions as exc import autonet.core.objects.validators as v @dataclass class InterfaceAddress(object): address: str family: Optional[str] = fi...
PypiClean
/multitenancy-helpdesk-0.1.0b5.tar.gz/multitenancy-helpdesk-0.1.0b5/helpdesk/static/helpdesk/vendor/morrisjs/morris.js
(function() { var $, Morris, minutesSpecHelper, secondsSpecHelper, __slice = [].slice, __bind = function(fn, me){ return function(){ return fn.apply(me, arguments); }; }, __hasProp = {}.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) chi...
PypiClean
/import_ai-1.3.16-py3-none-any.whl/ai/batch_norm.py
import numpy as np from ai.parameter import Parameter from ai.graph import ComputationalGraph, G from ai.module import Module # batch normalization layer class BatchNorm(Module): def __init__(self, hidden_shape, axis=-1, momentum=0.9, bias=True, graph=G): super(BatchNorm, self).__init__() self.hid...
PypiClean
/designate-tempest-plugin-0.19.0.tar.gz/designate-tempest-plugin-0.19.0/designate_tempest_plugin/schemas/v1/records_schema.py
list_records = { "status_code": [200], "response_body": { "type": "object", "properties": { "records": { "type": "array", "items": { "type": "object", "properties": { "created_at": {"type"...
PypiClean
/OBP_reliability_pillar_4-0.0.14-py3-none-any.whl/OBP_reliability_pillar_4/rds/rds_automatic_minor_version_upgrade_enabled.py
import logging import botocore logging.basicConfig(level=logging.INFO) logger = logging.getLogger() # checks compliance.py for rds automatic minor version enabled def rds_automatic_minor_version_upgrade_enabled(self) -> dict: """ :param self: :return dict: AWS RDS automatic minor version enabled complian...
PypiClean
/pm2mp-0.0.98-py3-none-any.whl/pm2mp-0.0.98.data/data/node_modules/listbar.js
* Modules */ var helpers = require('../helpers'); var Node = require('./node'); var Box = require('./box'); /** * Listbar / HorizontalList */ function Listbar(options) { var self = this; if (!(this instanceof Node)) { return new Listbar(options); } options = options || {}; this.items = []; th...
PypiClean
/esi_client-0.1.0a1.tar.gz/esi_client-0.1.0a1/esi_client/model/get_universe_stations_station_id_not_found.py
import re # noqa: F401 import sys # noqa: F401 from esi_client.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, val...
PypiClean
/ngs-smap-4.6.5.tar.gz/ngs-smap-4.6.5/docs/design/design_examples.rst
.. raw:: html <style> .purple {color:purple} </style> .. role:: purple .. raw:: html <style> .white {color:white} </style> .. role:: white ######## Examples ######## .. _SMAPdesignex: Illustration of primer and gRNA design -------------------------------------- Below, we present the command to run **SM...
PypiClean
/marie-ai-3.0.5.tar.gz/marie-ai-3.0.5/marie/boxes/dit/ditod/concern/icdar2015_eval/detection/icdar2013.py
import math from collections import namedtuple import numpy as np from shapely.geometry import Polygon class DetectionICDAR2013Evaluator(object): def __init__( self, area_recall_constraint=0.8, area_precision_constraint=0.4, ev_param_ind_center_diff_thr=1, mtype_oo_o=1.0, ...
PypiClean
/stronglib-0.1.1.tar.gz/stronglib-0.1.1/strongarm/dns_integration.py
import strongarm class DnsBlackholeUpdaterException(strongarm.StrongarmException): """ An error occurred in the DNS blackhole updater. """ class DnsBlackholeUpdater(object): """ Abstract base class for a DNS server integration that updates the list of blackholed domains. Each DNS serve...
PypiClean
/gridappsd_cim_profile-0.11.20230209012720a0-py3-none-any.whl/cimlab/loaders/sparql/rc4_2021/fuse.py
from __future__ import annotations from typing import List, Dict, Optional from dataclasses import dataclass, field import cimlab.data_profile.rc4_2021 as cim def get_all_attributes(feeder_mrid: str, typed_catalog: dict[type, dict[str, object]]) -> str: """ Generates SPARQL query string for a given catalog of obje...
PypiClean
/djangocms-static-ace-1.1.0.tar.gz/djangocms-static-ace-1.1.0/djangocms_static_ace/static/admin/vendor/ace/snippets/c_cpp.js
define("ace/snippets/c_cpp.snippets",["require","exports","module"],function(e,t,n){n.exports="## STL Collections\n# std::array\nsnippet array\n std::array<${1:T}, ${2:N}> ${3};${4}\n# std::vector\nsnippet vector\n std::vector<${1:T}> ${2};${3}\n# std::deque\nsnippet deque\n std::deque<${1:T}> ${2};${3}\n# std::forward...
PypiClean
/pantsbuild.pants.contrib.android-1.6.0rc2.tar.gz/pantsbuild.pants.contrib.android-1.6.0rc2/src/pants/contrib/android/tasks/sign_apk.py
from __future__ import (absolute_import, division, generators, nested_scopes, print_function, unicode_literals, with_statement) import logging import os from pants.base.exceptions import TaskError from pants.base.workunit import WorkUnitLabel from pants.java.distribution.distribution import D...
PypiClean
/MultiAssayExperiment-0.3.0.tar.gz/MultiAssayExperiment-0.3.0/src/multiassayexperiment/io/interface.py
from collections import OrderedDict from typing import MutableMapping, Union import pandas as pd import singlecellexperiment as sce from anndata import AnnData from summarizedexperiment import SummarizedExperiment from ..MultiAssayExperiment import MultiAssayExperiment __author__ = "jkanche" __copyright__ = "jkanche...
PypiClean
/usefulpython-0.2.1-py3-none-any.whl/usefulpy/formatting.py
__version__ = '0.2.4' __author__ = 'Austin Garcia' if __name__ == '__main__': __package__ = 'usefulpy' from . import validation as _validation vowels = 'aeiou' endingpuncuation = '.?!' phrasepuncuation = '",–—()\';:' inwordpunctuation = '-_' # The letters are in an inconsistant and incorrect order to prevent the...
PypiClean
/gridmeld-0.6.0.tar.gz/gridmeld-0.6.0/bin/meld.py
# # Copyright 2018 Palo Alto Networks, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or a...
PypiClean
/klein-23.5.0.tar.gz/klein-23.5.0/docs/introduction/2-twistdtap.rst
========================================================== Introduction -- Using ``twistd`` to Start Your Application ========================================================== ``twistd`` (pronounced "twist-dee") is an application runner for Twisted applications. It takes care of starting your app, setting up loggers,...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/KoubeiCateringPosDishSyncRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.KoubeiCateringPosDishSyncModel import KoubeiCateringPosDishSyncModel class KoubeiCateringPosDishSyncRequest(object): def __init__(self, biz_model=None): self._biz_mo...
PypiClean
/Webifi-1.3.0.tar.gz/Webifi-1.3.0/README.rst
Control Your Way Python Library =============================== This project contains the library files Python V2.7 and V3. For examples on how to use this library please check out our other repositories on https://github.com/webifi-me The latest library uses WebSocket for communication. This means websocket client n...
PypiClean
/fsplit3-0.0.1.tar.gz/fsplit3-0.0.1/fsplit/oswrapper.py
## # fsplit # https://github.com/leosartaj/fsplit.git # # Copyright (c) 2014 Sartaj Singh # Licensed under the MIT license. ## """ Wraps OS module Gives useful functions """ import os import shutil def pDir(): """ gives the present working directory """ return os.getcwd() def getpath(dire=pDir(), f...
PypiClean
/smartautomatic_server_frontend-20220907.2-py3-none-any.whl/sas_frontend/frontend_es5/d554a973.js
"use strict";(self.webpackChunksmartautomatic_server_frontend=self.webpackChunksmartautomatic_server_frontend||[]).push([[80985],{23682:function(t,e,n){function r(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}n.d(e,{Z:function(){return r}})},90394:function...
PypiClean
/conan-server-2.0.10.tar.gz/conan-server-2.0.10/conans/model/graph_lock.py
import json import os from collections import OrderedDict from conan.api.output import ConanOutput from conans.client.graph.graph import RECIPE_VIRTUAL, RECIPE_CONSUMER, CONTEXT_BUILD, Overrides from conans.errors import ConanException from conans.model.recipe_ref import RecipeReference from conans.util.files import l...
PypiClean
/django_htmx_ui_adminlte-0.1.13-py3-none-any.whl/django_htmx_ui_adminlte/static/adminlte/plugins/moment/locale/se.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; ...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/AlipayUserFunditemGetRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * class AlipayUserFunditemGetRequest(object): def __init__(self, biz_model=None): self._biz_model = biz_model self._biz_content = None self._version = "1.0" self._termina...
PypiClean
/altb-0.3.1.tar.gz/altb-0.3.1/README.md
# altb altb is a cli utility influenced by `update-alternatives` of ubuntu. Linked paths are added to `$HOME/.local/bin` according to [XDG Base Directory Specification](https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html). Config file is located at `$HOME/.config/altb/config.yaml`. ### How...
PypiClean
/luma.lcd-2.11.0.tar.gz/luma.lcd-2.11.0/luma/lcd/const.py
class st7567(object): DISPLAYON = 0xAF DISPLAYOFF = 0xAE class pcd8544(object): DISPLAYON = 0x0C DISPLAYOFF = 0x08 class st7735(object): DISPLAYON = 0x29 DISPLAYOFF = 0x28 class ili9341(object): DISPLAYON = 0x29 DISPLAYOFF = 0x28 class ili9486(object): DISPLAYON = 0x29 ...
PypiClean
/evo-spotis-0.0.9.tar.gz/evo-spotis-0.0.9/evo_spotis/mcda_methods/spotis.py
import numpy as np from .mcda_method import MCDA_method class SPOTIS(MCDA_method): def __init__(self): """ Create the SPOTIS method object. """ pass def __call__(self, matrix, weights, types, bounds): """Score alternatives provided in decision matrix `matrix` using crit...
PypiClean
/django-m2m-fix-1.0.0.tar.gz/django-m2m-fix-1.0.0/django/utils/html.py
import json import re from html.parser import HTMLParser from urllib.parse import ( parse_qsl, quote, unquote, urlencode, urlsplit, urlunsplit, ) from django.utils.functional import Promise, keep_lazy, keep_lazy_text from django.utils.http import RFC3986_GENDELIMS, RFC3986_SUBDELIMS from django.utils.safestring i...
PypiClean
/ansible-lint-6.18.0.tar.gz/ansible-lint-6.18.0/test/schemas/negative_test/playbooks/gather_subset4.yml.md
# ajv errors ```json [ { "instancePath": "/0", "keyword": "required", "message": "must have required property 'ansible.builtin.import_playbook'", "params": { "missingProperty": "ansible.builtin.import_playbook" }, "schemaPath": "#/oneOf/0/required" }, { "instancePath": "/0", ...
PypiClean
/csv2graph-2.0.1.tar.gz/csv2graph-2.0.1/README.md
# csv2graph `'csv2graph'` is a Python class that can read a CSV file and create a NetworkX graph from its content. Description The csv2graph class can read a CSV file and create a NetworkX graph from it, where the nodes and edges are defined by the columns of the CSV file. The class provides methods to add nodes and ...
PypiClean
/vehicle_lang-0.11.0-cp37-cp37m-macosx_13_0_arm64.whl/vehicle_lang/ast/__init__.py
import json from abc import ABCMeta, abstractmethod from dataclasses import dataclass, field from pathlib import Path from typing import Iterable, Optional, Sequence, Union from typing_extensions import Self, TypeAlias, override from .. import session from ..error import VehicleError from ..typing import DeclarationN...
PypiClean
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/fritz/switch.py
from __future__ import annotations from collections import OrderedDict from functools import partial import logging from typing import Any from fritzconnection.core.exceptions import ( FritzActionError, FritzActionFailedError, FritzConnectionException, FritzSecurityError, FritzServiceError, ) impo...
PypiClean
/google-cloud-aiplatform-1.31.1.tar.gz/google-cloud-aiplatform-1.31.1/google/cloud/aiplatform_v1/types/specialist_pool_service.py
from __future__ import annotations from typing import MutableMapping, MutableSequence import proto # type: ignore from google.cloud.aiplatform_v1.types import operation from google.cloud.aiplatform_v1.types import specialist_pool as gca_specialist_pool from google.protobuf import field_mask_pb2 # type: ignore __...
PypiClean
/python_microscopy-20.12.8-cp36-cp36m-win_amd64.whl/PYME/DSView/modules/fourierRingCorrelation.py
import numpy as np import wx #import pylab from PYME.DSView.dsviewer import ViewIm3D, ImageStack class ColocSettingsDialog(wx.Dialog): def __init__(self, parent, pxSize=100, names = []): wx.Dialog.__init__(self, parent, title='Colocalisation Settings') sizer1 = wx.BoxSizer(wx.VERTICAL) ...
PypiClean
/zbxtool_cfomp-0.11.12-py3-none-any.whl/lib/commands/multi_interfaces.py
import argparse import re import logging import sys from ast import literal_eval import pandas as pd from lib.utils.zbxapis import ZabbixApiGet, ZabbixApiCreate, ZabbixApiDel from lib.utils.format import jmes_search, to_excel_, pretty_tbl from lib.utils.format import get_value, re_search, re_findall, IPS def show(res...
PypiClean
/tacker-9.0.0.0rc1.tar.gz/tacker-9.0.0.0rc1/doc/source/contributor/vnfd_template_description.rst
VNF Descriptor (VNFD) Template Guide ==================================== .. warning:: Legacy Tacker features excluding VIM feature are deprecated and will be removed in the first major release after the Tacker server version 9.0.0 (2023.1 Antelope release). Overview -------- This document explains VNFD ...
PypiClean
/salsita-gitflow-1.6.0.tar.bz2/salsita-gitflow-1.6.0/docs/_subcmd-track.rst
.. -*- mode: rst ; ispell-local-dictionary: "american" -*- git flow |BRANCH| track - Track a |BRANCH| branch from a remote peer ======================================================================= Synopsis ----------- .. parsed-literal:: `git flow` |`BRANCH`| `track` name Description ----------- Start tra...
PypiClean
/panda3d-frame-22.10.tar.gz/panda3d-frame-22.10/panda3d_frame/Frame.py
import sys import os import logging import json import importlib from dataclasses import dataclass from panda3d.core import ( Filename, loadPrcFileData, TextNode, ConfigVariableBool, WindowProperties ) from direct.showbase.DirectObject import DirectObject from direct.gui import DirectGuiGlobals a...
PypiClean
/python_opendota-1.0.2-py3-none-any.whl/python_opendota/model/parsed_matches_response.py
import re # noqa: F401 import sys # noqa: F401 from python_opendota.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, ...
PypiClean
/logcat-color-0.6.0.tar.gz/logcat-color-0.6.0/logcatcolor/reader.py
import asyncore import asynchat from cStringIO import StringIO import fcntl import inspect from logcatcolor.format import Format, detect_format from logcatcolor.layout import Layout import os import sys import traceback # Parts copied from asyncore.file_dispatcher class FileLineReader(asynchat.async_chat): LINE_TE...
PypiClean
/tiddlywebplugins.tiddlydocs-0.11.tar.gz/tiddlywebplugins.tiddlydocs-0.11/room_script.py
from space import Space from tiddlyweb.web.http import HTTP403 from cgi import FieldStorage from tiddlyweb.model.bag import Bag from tiddlyweb.model.recipe import Recipe from tiddlyweb.manage import make_command from tiddlyweb.store import Store import simplejson as json ROOM = """{ "bags": { "ROOMNAME_co...
PypiClean
/lorax-0.94.86.tar.gz/lorax-0.94.86/docs/lorax.rst
lorax package ============= Submodules ---------- lorax\.cli module ----------------- .. automodule:: lorax.cli :members: :undoc-members: :show-inheritance: lorax\.config module -------------------- .. automodule:: lorax.config :members: :undoc-members: :show-inheritance: lorax\.config\_fi...
PypiClean
/tw.dojo-0.9.181.tar.gz/tw.dojo-0.9.181/tw/dojo/static/1.8.1/min/dojox/widget/DocTester.js
define("dojox/widget/DocTester",["dijit","dojo","dojox","dojo/require!dojo/string,dijit/_Widget,dijit/_Templated,dojox/form/BusyButton,dojox/testing/DocTest"],function(_1,_2,_3){ _2.provide("dojox.widget.DocTester"); _2.require("dojo.string"); _2.require("dijit._Widget"); _2.require("dijit._Templated"); _2.require("doj...
PypiClean
/ansys_optislang_core-0.3.0-py3-none-any.whl/ansys/optislang/core/examples/00_run_script/oscillator/scripts/oscillator_sensitivity_mop.py
############################################################################### # (c) 2021 ANSYS, Inc. Unauthorized use, distribution, or duplication is prohibited. # create sensitivity flow for oscillator python example # in batch: # optislang --new oscillator_py.opf --python oscillator_sensitivity_mop.py --run...
PypiClean
/napalm-yang-0.1.0.tar.gz/napalm-yang-0.1.0/napalm_yang/models/openconfig/network_instances/network_instance/policy_forwarding/policies/policy/rules/rule/ip/__init__.py
from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListType from pyangbind.lib.ya...
PypiClean
/punctuator-isl-1.1.1.tar.gz/punctuator-isl-1.1.1/README.md
# README # Punctuation Prediction A python package that punctuates Icelandic text. The input data is unpunctuated text and punctuated text is returned. The user can choose between two punctuation models, a bidirectional RNN ([Punctuator 2](www.github.com/ottokart/punctuator2)) in Tensorflow 2, and a pretrained ELECTR...
PypiClean
/lcyframe-3.7.7.tar.gz/lcyframe-3.7.7/deploy/FunBoots/webserver_result.py
from funboost.function_result_web.app import app from flask import render_template, Flask, request, url_for, jsonify, flash, redirect """ web代码在funboost包里面,所以可以直接使用命令行运行起来,不需要用户现亲自下载代码就可以直接运行。 4.11 开启消费状态、结果web页面 (1)需要安装mongodb,并且设置 MONGO_URL 的值;安装pymongo3.13.0版本: pip install pymongo==3.13.0 如果需要使用这个页面,那么无论选择何种中间件...
PypiClean
/certora_cli_beta-4.11.0-py3-none-macosx_10_9_universal2.whl/certora_cli/EVMVerifier/certoraNodeFilters.py
from typing import Any, Dict import os import sys sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) from Shared.certoraUtils import NoValEnum class NodeFilters: class NodeType(NoValEnum): def is_this_node_type(self, type_name_node: Dict[str, Any]) -> bool: return type_name_node...
PypiClean
/tsboost-0.1.0.tar.gz/tsboost-0.1.0/CONTRIBUTING.rst
.. highlight:: shell ============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com...
PypiClean
/cdktf-cdktf-provider-google-9.0.1.tar.gz/cdktf-cdktf-provider-google-9.0.1/src/cdktf_cdktf_provider_google/compute_http_health_check/__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 ComputeHttpHealthCheck( _cdktf_9a9027ec.TerraformR...
PypiClean
/crfm_helm-0.2.3-py3-none-any.whl/helm/benchmark/adaptation/adapters/adapter.py
from abc import ABC, abstractmethod from typing import List import numpy as np from helm.benchmark.adaptation.adapter_spec import AdapterSpec from helm.benchmark.adaptation.request_state import RequestState from helm.benchmark.adaptation.scenario_state import ScenarioState from helm.benchmark.scenarios.scenario impor...
PypiClean