id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/pulumi_fortios-0.0.9.tar.gz/pulumi_fortios-0.0.9/pulumi_fortios/system_virtual_wire_pair.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * __all__ = ['SystemVirtualWirePairArgs', 'SystemVirtualWirePair'] @pulumi.input_type class SystemVirtualWirePairArg...
PypiClean
/djimporter-0.4.tar.gz/djimporter-0.4/README.md
# django-importer Another CSV importer based on Django. ## Default import log views If you want to use the default import log views (list and detail), you should include in the template folder of your project `djimporter/base.html` template. This way you could set the layout and style of your project. For example the...
PypiClean
/PyBrain2-0.4.0.tar.gz/PyBrain2-0.4.0/pybrain2/rl/learners/modelbased/policyiteration.py
__author__ = 'Tom Schaul, tom@idsia.ch' """ Doing RL when an environment model (transition matrices and rewards) are available. Representation: - a policy is a 2D-array of probabilities, one row per state (summing to 1), one column per action. - a transition matrix (T) maps from originating states to desti...
PypiClean
/graphe-0.0.2.tar.gz/graphe-0.0.2/docs/docs/source/utils.rst
Utilities ========= Draw ---- .. py:class:: Draw(digraph=False) Prepares for drawing a graph/digraph. Creates a graphviz object and sets the initial graph attributes .. py:method:: set_names(names) Provide figure with names (from SymbolGraph) instead of ids :param names: array [] of names for each v...
PypiClean
/robonomics_interface-1.6.1-py3-none-any.whl/robonomicsinterface/classes/service_functions.py
import typing as tp from logging import getLogger from scalecodec.types import GenericCall, GenericExtrinsic from substrateinterface import Keypair, SubstrateInterface, ExtrinsicReceipt from substrateinterface.exceptions import ExtrinsicFailedException from .account import Account from ..decorators import check_socke...
PypiClean
/unified_planning-1.0.0-py3-none-any.whl/unified_planning/engines/pddl_planner.py
"""This module defines an interface for a generic PDDL planner.""" from abc import ABCMeta, abstractmethod import asyncio from asyncio.subprocess import PIPE import select import subprocess import sys import tempfile import os import re import time import unified_planning as up import unified_planning.engines as engin...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/automanage/v20200630preview/get_account.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs __all__ = [ 'GetAccountResult', 'AwaitableGetAccountResult', 'get_account', ] @pulumi.output_type class GetAccountResult: """ De...
PypiClean
/elementary_data-0.10.0.tar.gz/elementary_data-0.10.0/elementary/monitor/api/alerts/alerts.py
from collections import defaultdict from datetime import datetime from typing import DefaultDict, Dict, List, Sequence, Union from elementary.clients.api.api_client import APIClient from elementary.clients.dbt.dbt_runner import DbtRunner from elementary.config.config import Config from elementary.monitor.alerts.alert ...
PypiClean
/video_bot_handle_credits-0.0.3-py3-none-any.whl/handle_credits/models/page.py
from typing import AnyStr, List class Author: def __init__(self, name: AnyStr = None, link: AnyStr = None) -> None: self.name = name self.link = link class Meta: def __init__(self, description: AnyStr = None, duration: AnyStr = None, uploadDate: Any...
PypiClean
/pillow-scripts-5.0.0.tar.gz/pillow-scripts-5.0.0/Scripts/pildriver.py
# by Eric S. Raymond <esr@thyrsus.com> # $Id$ # TO DO: # 1. Add PILFont capabilities, once that's documented. # 2. Add PILDraw operations. # 3. Add support for composing and decomposing multiple-image files. # from __future__ import print_function from PIL import Image class PILDriver(object): verbose = 0 ...
PypiClean
/dagster_custom-0.12.14.tar.gz/dagster_custom-0.12.14/dagster/core/workspace/dynamic_workspace.py
from dagster import check from dagster.core.host_representation.origin import RepositoryLocationOrigin from dagster.core.host_representation.repository_location import GrpcServerRepositoryLocation from dagster.core.workspace import IWorkspace class DynamicWorkspace(IWorkspace): """An IWorkspace that maintains a d...
PypiClean
/mxnet_cu115-1.9.1-py3-none-manylinux2014_x86_64.whl/mxnet/tools/caffe_converter/convert_model.py
from __future__ import print_function import argparse import sys import re import numpy as np import caffe_parser import mxnet as mx from convert_symbol import convert_symbol def prob_label(arg_names): candidates = [arg for arg in arg_names if not arg.endswith('data') and not ar...
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/zwave_js/device_condition.py
from __future__ import annotations from typing import cast import voluptuous as vol from zwave_js_server.const import CommandClass from zwave_js_server.model.value import ConfigurationValue from homeassistant.components.device_automation.exceptions import ( InvalidDeviceAutomationConfig, ) from homeassistant.con...
PypiClean
/uca-apollo-1.0.tar.gz/uca-apollo-1.0/apollo/model/pacer_import_case_results.py
import re # noqa: F401 import sys # noqa: F401 from apollo.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, validat...
PypiClean
/certora-cli-alpha-jtoman-infinite-loop-fix-20230516.23.6.855064.tar.gz/certora-cli-alpha-jtoman-infinite-loop-fix-20230516.23.6.855064/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
/xnni-0.7.4-py3-none-manylinux1_x86_64.whl/xnni-0.7.4.data/data/nni/node_modules/rx/ts/core/linq/observable/replay.ts
module Rx { export interface Observable<T> { /** * Returns an observable sequence that is the result of invoking the selector on a connectable observable sequence that shares a single subscription to the underlying sequence replaying notifications subject to a maximum time length for the replay buff...
PypiClean
/disco-py-0.0.14rc1.tar.gz/disco-py-0.0.14rc1/disco/bot/command.py
import re import argparse from holster.enum import Enum from six import integer_types from disco.bot.parser import ArgumentSet, ArgumentError from disco.util.functional import simple_cached_property ARGS_REGEX = '(?: ((?:\n|.)*)$|$)' ARGS_UNGROUPED_REGEX = '(?: (?:\n|.)*$|$)' SPLIT_SPACES_NO_QUOTE = re.compile(r'["...
PypiClean
/listenerplugins-0.0.1-py3-none-any.whl/plugins/Weather.py
import re import datetime import struct import urllib.request, urllib.parse, urllib.error import feedparser import requests import bs4 from client.app_utils import get_timezone from semantic.dates import DateService WORDS = ["WEATHER", "TODAY", "TOMORROW"] def replace_acronyms(text): """ Replaces some common...
PypiClean
/Pyrogram-2.0.34.tar.gz/Pyrogram-2.0.34/pyrogram/utils.py
import asyncio import base64 import functools import hashlib import os import struct from concurrent.futures.thread import ThreadPoolExecutor from datetime import datetime, timezone from getpass import getpass from typing import Union, List, Dict, Optional import pyrogram from pyrogram import raw, enums from pyrogram...
PypiClean
/firefox_bookmarks-1.1.0.post1.tar.gz/firefox_bookmarks-1.1.0.post1/firefox_bookmarks/locate.py
import os import sys from .constants import ProfileCriterion FILE_NAME = "places.sqlite" def locate_db( *, look_under_path: str | None = None, criterion: ProfileCriterion = ProfileCriterion.LATEST, ) -> str: """Returns the path to a Places database according to the chosen criterion Args: ...
PypiClean
/facebook_business-17.0.4.tar.gz/facebook_business-17.0.4/facebook_business/adobjects/helpers/reachfrequencypredictionmixin.py
# You are hereby granted a non-exclusive, worldwide, royalty-free license to # use, copy, modify, and distribute this software in source code or binary # form for use in connection with the web services and APIs provided by # Facebook. # As with any software that integrates with the Facebook platform, your use # of t...
PypiClean
/Chula-0.13.3.tar.gz/Chula-0.13.3/chula/queue/messages/mail.py
from chula import collection from chula.mail import Mail from chula.queue.messages import message class Message(message.Message): def fill(self, msg): super(Message, self).fill(msg) self.message = Contract() # Update the contract if not msg is None: if not msg['message'...
PypiClean
/GoogleAppEngineMapReduce-1.9.22.0.tar.gz/GoogleAppEngineMapReduce-1.9.22.0/mapreduce/mapper_pipeline.py
__all__ = [ "MapperPipeline", ] from mapreduce import control from mapreduce import model from mapreduce import parameters from mapreduce import pipeline_base # pylint: disable=g-bad-name # pylint: disable=protected-access class MapperPipeline(pipeline_base._OutputSlotsMixin, pipeline_...
PypiClean
/mozilla_voice_stt_tflite-0.9.0a5-cp37-cp37m-win_amd64.whl/mozilla_voice_stt/client.py
from __future__ import absolute_import, division, print_function import argparse import numpy as np import shlex import subprocess import sys import wave import json import mozilla_voice_stt as stt from timeit import default_timer as timer try: from shhlex import quote except ImportError: from pipes import q...
PypiClean
/core-humanresources-0.7.tar.gz/core-humanresources-0.7/humanresources/apps/reports/headcounts.py
from pyforms.basewidget import BaseWidget from pyforms.controls import ControlInteger from pyforms.controls import ControlButton from pyforms.controls import ControlBarsChart from pyforms.controls import ControlPieChart from pyforms.controls import ControlList from pyforms.controls import ControlDate from pyforms.contr...
PypiClean
/sas_log_viewer-0.2.0-py3-none-any.whl/sas_log_viewer/labextension/static/534.ed468e0622ba96d66fe5.js
(self.webpackChunksas_log_viewer=self.webpackChunksas_log_viewer||[]).push([[534],{150:(n,e,o)=>{"use strict";o.d(e,{Z:()=>p});var t=o(645),r=o.n(t),a=o(667),i=o.n(a),s=o(605),l=o.n(s),c=r()((function(n){return n[1]})),d=i()(l());c.push([n.id,".jp-saslog-view .jp-saslog-toolbar {\n border-bottom: var(--jp-border-wid...
PypiClean
/nni_daily-1.5.2005180104-py3-none-manylinux1_x86_64.whl/nni_daily-1.5.2005180104.data/data/nni/node_modules/readable-stream/lib/_stream_readable.js
'use strict'; /*<replacement>*/ var pna = require('process-nextick-args'); /*</replacement>*/ module.exports = Readable; /*<replacement>*/ var isArray = require('isarray'); /*</replacement>*/ /*<replacement>*/ var Duplex; /*</replacement>*/ Readable.ReadableState = ReadableState; /*<replacement>*/ var EE = requ...
PypiClean
/gym_http_server-0.0.1-py3-none-any.whl/gym_http_server/example_client.py
import requests import six.moves.urllib.parse as urlparse import json import os import logging logger = logging.getLogger(__name__) logger.setLevel(logging.INFO) class Client(object): """ Gym client to interface with gym_http_server """ def __init__(self, remote_base): self.remote_base = remot...
PypiClean
/common_framework-2023.5.28-py3-none-any.whl/common/utils.py
import abc import ast import collections import hashlib import inspect import json import logging import mimetypes import os import re import socket import sys import threading from collections.abc import MutableMapping from contextlib import contextmanager from datetime import date, datetime, time, timedelta from deci...
PypiClean
/pf_dre_database_client-0.4.14-py3-none-any.whl/mms/real_time_ts_client.py
# Built-in Modules import logging import json from abc import ABC # Third Party Modules import pandas as pd from psycopg2 import sql # Project Specific Modules from mms import TimescaleClient from mms import helpers as h # Logging logger = logging.getLogger('timescale') class TimescaleClientNarrow(TimescaleClient...
PypiClean
/gigachain-0.0.277.tar.gz/gigachain-0.0.277/langchain/tools/amadeus/flight_search.py
import logging from datetime import datetime as dt from typing import Dict, Optional, Type from langchain.callbacks.manager import CallbackManagerForToolRun from langchain.pydantic_v1 import BaseModel, Field from langchain.tools.amadeus.base import AmadeusBaseTool logger = logging.getLogger(__name__) class FlightSe...
PypiClean
/django-pyres-0.1.5.tar.gz/django-pyres-0.1.5/django_pyres/decorators.py
from functools import update_wrapper, wraps from django_pyres.conf import settings from django import db from .core import pyres def close_connection_after(func): def wrapper(*args, **kwargs): result = func(*args, **kwargs) if settings.PYRES_USE_QUEUE: db.close_connection() ret...
PypiClean
/tensorflow-gpu-macosx-1.8.1.tar.gz/tensorflow/contrib/learn/python/learn/utils/input_fn_utils.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections from tensorflow.python.framework import dtypes from tensorflow.python.framework import tensor_shape from tensorflow.python.ops import array_ops from tensorflow.python.ops import parsing_ops ...
PypiClean
/RecordKeeper_Client-3.3.0.tar.gz/RecordKeeper_Client-3.3.0/rkclient/admin.py
import logging import time from typing import Tuple from importlib.metadata import version from rkclient.query import RKQuery from rkclient.request import RequestHelper log = logging.getLogger("rkclient") RK_VERSION = version('RecordKeeper_Client') class RKAdmin: """ This class is not supposed to be used b...
PypiClean
/django_queue_mailer-0.2.7.tar.gz/django_queue_mailer-0.2.7/CHANGELOG.rst
Changelog ========= v0.1.6 (2013-11-08) ------------------------------------------------------------- * [Feature] Added migration command `migrate_django_mailer` which copies LogMessages from django-mailer to Log table * [Feature] Sends sentry message while deferring when raven configuration can be found * [Fix] Add...
PypiClean
/bsfc-1.0.1.tar.gz/bsfc-1.0.1/helpers/bsfc_cmod_shots.py
def get_shot_info(shot): ''' Function to output key information for BSFC fitting of atomic lines ''' if shot==1121002022: primary_impurity = 'Ar' primary_line = 'lya1' tbin=5; chbin=40 t_min=0.7; t_max=0.8 tht=0 elif shot==1120914029: #I-mode FS primary_i...
PypiClean
/edge_testing_framework-0.1.7.tar.gz/edge_testing_framework-0.1.7/edge_testing_framework/utility.py
from edge_testing_framework.pytransform import pyarmor_runtime pyarmor_runtime() __pyarmor__(__name__, __file__, b'\x50\x59\x41\x52\x4d\x4f\x52\x00\x00\x03\x07\x00\x42\x0d\x0d\x0a\x09\x33\xe0\x02\x00\x00\x00\x00\x01\x00\x00\x00\x40\x00\x00\x00\x7c\x2e\x00\x00\x00\x00\x00\x00\x71\xef\xe5\x34\x55\x55\x3e\x90\xf3\xcc\xc7\...
PypiClean
/dask-hpcconfig-2023.3.1.tar.gz/dask-hpcconfig-2023.3.1/docs/getting-started/quickstart.rst
Quickstart ========== .. ipython:: In [1]: import distributed ...: import dask_hpcconfig Starting a cluster is easy: .. ipython:: In [2]: # find the available clusters ...: dask_hpcconfig.print_clusters() In [3]: # as an example, let's choose 'local' ...: cluster = dask_hpcconfig.cluste...
PypiClean
/oracle_ads-2.8.8-py3-none-any.whl/ads/dataset/plot.py
# Copyright (c) 2020, 2022 Oracle and/or its affiliates. # Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/ from __future__ import print_function, absolute_import import random from collections import defaultdict from math import pi import pandas as pd import num...
PypiClean
/backpack-for-pytorch-1.6.0.tar.gz/backpack-for-pytorch-1.6.0/docs_src/splash/index.md
--- layout: default --- BackPACK is a library built on top of [PyTorch](https://pytorch.org/) to make it easy to extract more information from a backward pass. Some of the things you can compute: {% include code-samples.html %} --- **Install with** ``` pip install backpack-for-pytorch ``` --- If you use BackPACK...
PypiClean
/django-epiced-0.4.3.tar.gz/django-epiced-0.4.3/epiced/static/epiced/js/epiceditor.js
(function (window, undefined) { /** * Applies attributes to a DOM object * @param {object} context The DOM obj you want to apply the attributes to * @param {object} attrs A key/value pair of attributes you want to apply * @returns {undefined} */ function _applyAttrs(context, attrs) { for (var a...
PypiClean
/z3wingdbg-0.2.0.tar.gz/z3wingdbg-0.2.0/browser/debuggercontrol.py
from zope import component from zope.publisher.browser import BrowserView from zope.i18n import MessageFactory from z3wingdbg.interfaces import IWingDebuggerVersion, IWingDebugService from z3wingdbg.interfaces import DebugServerStartError, IDEConnectionError _ = MessageFactory('z3wingdbg') class ControlView(Browse...
PypiClean
/tensorflow_fedora28-1.9.0rc01-cp27-cp27mu-manylinux1_x86_64.whl/tensorflow_fedora28-1.9.0rc0.data/purelib/tensorflow/core/util/event_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf i...
PypiClean
/intake-ids-0.0.5.tar.gz/intake-ids-0.0.5/intake_ids/catalog.py
from intake.catalog import Catalog from intake.catalog.local import LocalCatalogEntry from .connector_controller import driver_args from .sources import get_source_for_representation from .vendor.idsapi import IdsApi class ConnectorCatalog(Catalog): # if only one catalog in ids, use it. otherwise load all def...
PypiClean
/ukmon_meteortools-2023.7.10.tar.gz/ukmon_meteortools-2023.7.10/ukmon_meteortools/rmsutils/multiDayRadiant.py
import os import glob import datetime try: from Utils.ShowerAssociation import showerAssociation import RMS.ConfigReader as cr except Exception: print('RMS not available') import argparse import shutil def multiDayRadiant(camlist, start, end, outdir=None, shwr=None, datadir=None): """ Create a mu...
PypiClean
/stacs-0.4.6.tar.gz/stacs-0.4.6/README.md
[![Shield](https://img.shields.io/github/workflow/status/stacscan/stacs/Check?label=Tests&style=flat-square)](https://github.com/stacscan/stacs/actions?workflow=Check) [![Shield](https://img.shields.io/github/workflow/status/stacscan/stacs/Publish?label=Deploy&style=flat-square)](https://github.com/stacscan/stacs/actio...
PypiClean
/django_linux-2.2.8-py3-none-any.whl/django/contrib/gis/db/backends/base/features.py
import re from django.contrib.gis.db.models import aggregates class BaseSpatialFeatures: gis_enabled = True # Does the database contain a SpatialRefSys model to store SRID information? has_spatialrefsys_table = True # Does the backend support the django.contrib.gis.utils.add_srs_entry() utility? ...
PypiClean
/Products.Archetypes-1.16.6.tar.gz/Products.Archetypes-1.16.6/Products/Archetypes/skins/archetypes/jscalendar/calendar-pt.js
// Calendar pt_BR language // Author: Adalberto Machado, <betosm@terra.com.br> // Encoding: any // Distributed under the same terms as the calendar itself. // For translators: please use UTF-8 if possible. We strongly believe that // Unicode is the answer to a real internationalized world. Also please // include yo...
PypiClean
/text_extensions_for_pandas-0.2.1-py3-none-any.whl/text_extensions_for_pandas/io/spacy.py
################################################################################ # spacy.py # """ The ``io.spacy`` module contains I/O functions related to the SpaCy_ NLP library. .. _SpaCy: https://spacy.io """ import re import string import numpy as np import pandas as pd from text_extensions_for_pandas.array.sp...
PypiClean
/racetrack-client-2.18.0.tar.gz/racetrack-client-2.18.0/racetrack_client/utils/time.py
from datetime import datetime, timezone from typing import Optional def datetime_to_timestamp(dt: datetime) -> int: """Convert datetime.datetime to integer timestamp in seconds""" return int(dt.timestamp()) def timestamp_to_datetime(timestamp: int) -> datetime: """Convert integer timestamp in seconds to...
PypiClean
/pip_services3_expressions-3.3.6.tar.gz/pip_services3_expressions-3.3.6/pip_services3_expressions/calculator/variables/VariableCollection.py
import copy from typing import List from pip_services3_expressions.calculator.variables.IVariable import IVariable from pip_services3_expressions.calculator.variables.IVariableCollection import IVariableCollection from pip_services3_expressions.calculator.variables.Variable import Variable from pip_services3_expressio...
PypiClean
/b2gperf-v2.2-0.1.tar.gz/b2gperf-v2.2-0.1/b2gperf/b2gperf.py
from optparse import OptionParser import os import pkg_resources import time import traceback from urlparse import urlparse import sys from b2gpopulate import B2GPopulate from b2gpopulate import B2GPopulateError import dzclient import gaiatest from marionette import Marionette from marionette.errors import Marionette...
PypiClean
/humblesetuptools-3.4.5.tar.gz/humblesetuptools-3.4.5/setuptools/command/sdist.py
import os import re import sys from glob import glob import pkg_resources from distutils.command.sdist import sdist as _sdist from distutils.util import convert_path from distutils import log from setuptools import svn_utils READMES = ('README', 'README.rst', 'README.txt') def walk_revctrl(dirname=''): """Find ...
PypiClean
/aiida-core-bot-1.0.0b5.tar.gz/aiida-core-bot-1.0.0b5/aiida/orm/users.py
"""Module for the ORM user class.""" from __future__ import division from __future__ import print_function from __future__ import absolute_import from aiida.common.hashing import is_password_usable from aiida.common import exceptions from aiida.manage.manager import get_manager from . import entities __all__ = ('Use...
PypiClean
/stups_sevenseconds-1.2.112-py3-none-any.whl/sevenseconds/config/policysimulator.py
import json import botocore.exceptions from ..helper import ActionOnExit, error, warning def check_policy_simulator(account: object): # return roles = account.config.get('roles', {}) checks = account.config.get('roles_simulator', {}) errorcount = 0 for rolename, rolechecks in sorted(checks.items()...
PypiClean
/django-dojo-0.0.1.tar.gz/django-dojo-0.0.1/dojo/static/dojo/dojox/dtl/_base.js
define([ "dojo/_base/kernel", "dojo/_base/lang", "dojox/string/tokenize", "dojo/_base/json", "dojo/dom", "dojo/_base/xhr", "dojox/string/Builder", "dojo/_base/Deferred"], function(kernel, lang, Tokenize, json, dom, xhr, StringBuilder, deferred){ kernel.experimental("dojox.dtl"); var dd = lang.getObject("do...
PypiClean
/splunk-appinspect-2.37.0.tar.gz/splunk-appinspect-2.37.0/splunk_appinspect/check_routine/util.py
import json import os import re import bs4 from lxml import etree class xml_node(object): """ XML Node Definition """ def __init__(self, name): self.name = name def get_dashboard_nodes(xmlfiles): """ Helper function to return SXML dashboard root nodes """ findings = [] ...
PypiClean
/magical_sqlserver-0.4.0.tar.gz/magical_sqlserver-0.4.0/README.md
# Magical SQL Server A tool that integrates Microsoft SQL Server into applications like magic. ## What is this? Do you have an application that needs to consume data stored on SQL Server Database, or needs to post data into this database? Magical SQL Server will handle that for you easily. ## Requirements To use t...
PypiClean
/nodejs_bin-18.4.0a3-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl/nodejs/lib/node_modules/npm/node_modules/readable-stream/lib/internal/streams/destroy.js
'use strict'; // undocumented cb() API, needed for core, not for public API function destroy(err, cb) { var _this = this; var readableDestroyed = this._readableState && this._readableState.destroyed; var writableDestroyed = this._writableState && this._writableState.destroyed; if (readableDestroyed || writab...
PypiClean
/WordGolf-0.2.3.tar.gz/WordGolf-0.2.3/serge/camera.py
import common import math import serialize import geometry class Camera(common.Loggable, geometry.Rectangle): """Represents a camera""" my_parameters = ( serialize.F('zoom', 1.0, 'the camera zoom'), ) def __init__(self): """Initialise the Camera""" self.target = Non...
PypiClean
/onlinepayments-sdk-python2-4.14.0.zip/onlinepayments-sdk-python2-4.14.0/onlinepayments/sdk/domain/additional_order_input.py
from onlinepayments.sdk.data_object import DataObject from onlinepayments.sdk.domain.airline_data import AirlineData from onlinepayments.sdk.domain.loan_recipient import LoanRecipient from onlinepayments.sdk.domain.lodging_data import LodgingData from onlinepayments.sdk.domain.order_type_information import OrderTypeInf...
PypiClean
/cloudmesh-openapi-4.0.20.tar.gz/cloudmesh-openapi-4.0.20/cloudmesh/openapi/registry/RegistryMongoDB.py
from cloudmesh.common.Printer import Printer from cloudmesh.common.Shell import Shell from cloudmesh.mongo.CmDatabase import CmDatabase from cloudmesh.mongo.DataBaseDecorator import DatabaseUpdate class RegistryMongoDB: """ This class will help to register service into db. which later use to stop serv...
PypiClean
/server_messenger_prog-0.1.tar.gz/server_messenger_prog-0.1/server/forms_gui/add_user.py
from PyQt5.QtWidgets import QDialog, QPushButton, QLineEdit, QApplication, \ QLabel, QMessageBox from PyQt5.QtCore import Qt import hashlib import binascii from server_files.database import ServerStorage class RegisterUser(QDialog): """Класс диалог регистрации пользователя на сервере.""" def __init__(se...
PypiClean
/isedit-0.3.0.tar.gz/isedit-0.3.0/js/node_modules/vexflow/build/esm/src/frethandfinger.js
import { Font, FontStyle, FontWeight } from './font.js'; import { Modifier, ModifierPosition } from './modifier.js'; import { Tables } from './tables.js'; import { TextFormatter } from './textformatter.js'; import { RuntimeError } from './util.js'; export class FretHandFinger extends Modifier { constructor(finger) ...
PypiClean
/api.video-1.3.0.tar.gz/api.video-1.3.0/apivideo/api/live_streams_api.py
import os # noqa: F401 import re # noqa: F401 import sys # noqa: F401 from types import MethodType from types import FunctionType from apivideo.api_client import ApiClient from apivideo.endpoint import EndPoint as _EndPoint, ChunkIO from apivideo.model.video_id import VideoId from apivideo.model_utils import ( # n...
PypiClean
/MeUtils-2023.8.29.13.9.44-py3-none-any.whl/meutils/plot_utils/mecharts.py
from meutils.pipe import * from pyecharts import options as opts from pyecharts.charts import Bar, WordCloud, HeatMap, Polar, Graph class Chart(object): def __init__(self, width='1000px', height='400px', title='', render='notebook', jupyter_port=9955): self.init_opts = opts.InitOpts(width, height) ...
PypiClean
/gradio_orz-3.36.1.tar.gz/gradio_orz-3.36.1/gradio/templates/frontend/assets/index-c9da1bfb.js
import{S as K,i as L,s as U,H as T,e as N,I as W,D as g,h as C,m as B,F as z,al as F,K as q,at as A,q as D,t as S,r as E,o as j,W as V,u as X,ai as Y,J as Z,L as y,a3 as x,y as p,ab as $,b as H,a as I,j as ee,k as ne,l as J,z as k}from"./index-4a731cdb.js";/* empty css *...
PypiClean
/BenchExec-3.17.tar.gz/BenchExec-3.17/contrib/create_yaml_files.py
# This file is part of BenchExec, a framework for reliable benchmarking: # https://github.com/sosy-lab/benchexec # # SPDX-FileCopyrightText: 2007-2020 Dirk Beyer <https://www.sosy-lab.org> # # SPDX-License-Identifier: Apache-2.0 import glob import os import re import argparse from typing import Tuple NAME_TO_PROP_A...
PypiClean
/WhooshES-0.1.tar.gz/WhooshES-0.1/README.rst
WhooshES ======== .. image:: https://img.shields.io/pypi/v/whooshes.svg :target: https://pypi.python.org/pypi/whooshes :alt: PyPI .. image:: https://img.shields.io/badge/license-MIT-red.svg :target: https://en.wikipedia.org/wiki/MIT_License :alt: Licence - MIT .. image:: https://github.com/aiudirog/whoos...
PypiClean
/opal-azure-cli-storage-2.4.6.tar.gz/opal-azure-cli-storage-2.4.6/azure/cli/command_modules/storage/commands.py
from azure.cli.command_modules.storage._client_factory import (cf_sa, cf_blob_container_mgmt, blob_data_service_factory, page_blob_service_factory, file_data_service_factory, queue_data_service...
PypiClean
/fairing-0.5.3.tar.gz/fairing-0.5.3/containerregistry/client/v1/docker_session_.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging from containerregistry.client import docker_creds from containerregistry.client import docker_name from containerregistry.client.v1 import docker_creds as v1_creds from containerregistry.client...
PypiClean
/pytest-xdist-forked-0.0.1.tar.gz/pytest-xdist-forked-0.0.1/src/xdist/dsession.py
import py import pytest from xdist.workermanage import NodeManager from xdist.scheduler import ( EachScheduling, LoadScheduling, LoadScopeScheduling, LoadFileScheduling, ) from six.moves.queue import Empty, Queue class Interrupted(KeyboardInterrupt): """ signals an immediate interruption. """ ...
PypiClean
/tensorflow_cpu-2.14.0rc1-cp311-cp311-macosx_10_15_x86_64.whl/tensorflow/python/tpu/tpu_embedding_v2_utils.py
"""Companion classes for mid level API for TPU Embeddings in TF2.""" import abc import math import typing from typing import Any, Dict, Callable, Iterable, List, Optional, Text, Tuple, TypeVar, Union from absl import logging from tensorflow.core.protobuf.tpu import optimization_parameters_pb2 from tensorflow.core.pr...
PypiClean
/fake_bpy_module_2.79-20230117-py3-none-any.whl/bl_ui/properties_physics_rigidbody.py
import sys import typing import bpy_types GenericType = typing.TypeVar("GenericType") class PHYSICS_PT_rigidbody_panel: bl_context = None ''' ''' bl_region_type = None ''' ''' bl_space_type = None ''' ''' class PHYSICS_PT_rigid_body(PHYSICS_PT_rigidbody_panel, bpy_types.Panel, ...
PypiClean
/cloudmesh-slurm-4.3.3.tar.gz/cloudmesh-slurm-4.3.3/README-patch.md
[![image](https://img.shields.io/travis/TankerHQ/cloudmesh-slurm.svg?branch=main)](https://travis-ci.org/TankerHQ/cloudmesn-slurm) [![image](https://img.shields.io/pypi/pyversions/cloudmesh-slurm.svg)](https://pypi.org/project/cloudmesh-slurm) [![image](https://img.shields.io/pypi/v/cloudmesh-slurm.svg)](https://py...
PypiClean
/eve_panel-0.3.28-py3-none-any.whl/eve_panel/widgets.py
import ast import json import base64 import panel as pn import param from eve.io.mongo.validation import Validator from panel.widgets import LiteralInput class LiteralSchemaInputBase(LiteralInput): """[summary] Args: LiteralInput ([type]): [description] """ def validate_schema(self, value): ...
PypiClean
/authress-sdk-2.0.34.tar.gz/authress-sdk-2.0.34/authress_sdk/models/access_record_statement.py
class AccessRecordStatement(object): """ Attributes: openapi_spec_types (dict): The key is attribute name and the value is attribute type. attribute_serialization_map (dict): The key is attribute name and the value is json key in definition. """ openapi_spec_types = { 'roles': 'lis...
PypiClean
/pyim-0.2.1.tar.gz/pyim-0.2.1/README.rst
PyIM ==== .. image:: https://img.shields.io/travis/jrderuiter/pyim.svg :target: https://travis-ci.org/jrderuiter/pyim PyIM (Python Insertional Mutagenesis) is a python package for analyzing insertional mutagenesis data from targeted sequencing of transposon insertion sites. The package provides several comman...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayOpenOperationPartnerIdentityQueryRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * class AlipayOpenOperationPartnerIdentityQueryRequest(object): def __init__(self, biz_model=None): self._biz_model = biz_model self._version = "1.0" self._terminal_type = None ...
PypiClean
/FinanceScraper-0.2.1-py3-none-any.whl/financescraper/datacontainer/container.py
import copy from abc import ABC, abstractmethod class DataObject(ABC): __slots__ = ('name', 'source') def __init__(self, source): self.source = source self.name = 'No name found' def __eq__(self, other): equality = True for prop in self.__slots__: equality = ...
PypiClean
/os_brick-6.4.0-py3-none-any.whl/os_brick/executor.py
from __future__ import annotations import threading from typing import Callable from oslo_concurrency import processutils as putils from oslo_context import context as context_utils from oslo_utils import encodeutils from os_brick.privileged import rootwrap as priv_rootwrap class Executor(object): def __init__...
PypiClean
/pulumi_alicloud-3.44.0a1693632188.tar.gz/pulumi_alicloud-3.44.0a1693632188/pulumi_alicloud/vpc/get_traffic_mirror_filter_ingress_rules.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__ = [ 'GetTrafficMirrorFilterIngressRulesResult', 'AwaitableGetTrafficMirrorFilterIngressRulesResult', 'get_traffic_mir...
PypiClean
/py3moin-3.0.0a1-py3-none-any.whl/MoinMoin/formatter/text_html.py
from MoinMoin import log logging = log.getLogger(__name__) from MoinMoin.formatter import FormatterBase from MoinMoin import wikiutil, i18n from MoinMoin.Page import Page from MoinMoin.action import AttachFile # insert IDs into output wherever they occur # warning: breaks toggle line numbers javascript _id_debug = Fa...
PypiClean
/paasta-tools-0.198.0.tar.gz/paasta-tools-0.198.0/paasta_tools/paastaapi/model/marathon_app_status.py
import re # noqa: F401 import sys # noqa: F401 import nulltype # noqa: F401 from paasta_tools.paastaapi.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, date...
PypiClean
/bash_quote-1.0.1.tar.gz/bash_quote-1.0.1/README.rst
=============================== bash.org quote viewer =============================== .. image:: https://badge.fury.io/py/bash_quote.png :target: http://badge.fury.io/py/bash_quote .. image:: https://travis-ci.org/ruairif/bash_quote.png?branch=master :target: https://travis-ci.org/ruairif/bash_quote ...
PypiClean
/pulumi_random-4.14.0a1683614825.tar.gz/pulumi_random-4.14.0a1683614825/pulumi_random/random_string.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['RandomStringArgs', 'RandomString'] @pulumi.input_type class RandomStringArgs: def __init__(__self__, *, length: pulumi.Input[i...
PypiClean
/oenv2config-1.3.1-py3-none-any.whl/odoo_env_config/utils.py
import warnings from collections import OrderedDict from typing import Any, Dict, Optional, Set, Union BOOL_ACCEPTED_VALUE: Set[str] = {str(1), str(0), str(True), str(False), "Yes", "No"} BOOL_ACCEPTED_VALUE |= {a[0] for a in BOOL_ACCEPTED_VALUE} BOOL_ACCEPTED_VALUE |= {a.lower() for a in BOOL_ACCEPTED_VALUE} def to...
PypiClean
/gc3pie-2.6.8-py3-none-any.whl/gc3libs/utils.py
# Copyright (C) 2009-2019 University of Zurich. All rights reserved. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later ve...
PypiClean
/pycha-0.8.1.tar.gz/pycha-0.8.1/chavier/dialogs.py
import random import webbrowser import pygtk pygtk.require('2.0') import gtk class TextInputDialog(gtk.Dialog): def __init__(self, toplevel_window, suggested_name): flags = gtk.DIALOG_MODAL | gtk.DIALOG_DESTROY_WITH_PARENT buttons = (gtk.STOCK_CANCEL, gtk.RESPONSE_REJECT, gtk...
PypiClean
/nni_yds-0.3.7-py3-none-any.whl/nni_yds-0.3.7.data/data/nni/node_modules/reflect-metadata/Reflect.js
var Reflect; (function (Reflect) { // Metadata Proposal // https://rbuckton.github.io/reflect-metadata/ (function (factory) { var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : Function(...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/KoubeiTradeItemorderRefundRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.KoubeiTradeItemorderRefundModel import KoubeiTradeItemorderRefundModel class KoubeiTradeItemorderRefundRequest(object): def __init__(self, biz_model=None): self._biz...
PypiClean
/py_gitea_opensuse_org-1.19.4-py3-none-any.whl/py_gitea_opensuse_org/models/user_settings.py
# noqa: E501 from __future__ import annotations import pprint import re # noqa: F401 import json from typing import Optional from pydantic import BaseModel, Field, StrictBool, StrictStr class UserSettings(BaseModel): """ UserSettings represents user settings """ description: Optional[StrictStr] = ...
PypiClean
/tiledb_cloud-0.10.18-py3-none-any.whl/tiledb/cloud/taskgraphs/delayed/_graph.py
import abc import warnings from typing import Any, Callable, Iterable, List, Optional, TypeVar, Union from tiledb.cloud import taskgraphs from tiledb.cloud._common import futures from tiledb.cloud._common import ordered from tiledb.cloud._common import visitor from tiledb.cloud.taskgraphs import builder from tiledb.cl...
PypiClean
/asyncio_workshop-0.1.1.tar.gz/asyncio_workshop-0.1.1/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install asyncio-workshop, run this command in your terminal: .. code-block:: console $ pip install asyncio_workshop This is the preferred method to install asyncio-workshop, as it will always install the most recent ...
PypiClean
/isedit-0.3.0.tar.gz/isedit-0.3.0/js/node_modules/vexflow/build/esm/src/boundingboxcomputation.js
export class BoundingBoxComputation { constructor() { this.x1 = Number.NaN; this.y1 = Number.NaN; this.x2 = Number.NaN; this.y2 = Number.NaN; } getX1() { return this.x1; } getY1() { return this.y1; } width() { return this.x2 - this.x1; ...
PypiClean
/funlib.persistence-0.1.0.tar.gz/funlib.persistence-0.1.0/funlib/persistence/graphs/shared_graph_provider.py
import logging logger = logging.getLogger(__name__) class SharedGraphProvider(object): """Interface for shared graph providers that supports slicing to retrieve subgraphs. Implementations should support the following interactions:: # provider is a SharedGraphProvider # slicing with ROI...
PypiClean
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/ui/uiwx/dMaskedTextBox.py
import datetime import wx import wx.lib.masked as masked import dabo from dabo.ui import makeDynamicProperty if __name__ == "__main__": dabo.ui.loadUI("wx") from dabo.dLocalize import _ import dTextBoxMixin as tbm class dMaskedTextBox(tbm.dTextBoxMixin, masked.TextCtrl): """ This is a specialized textbox class th...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/semver/ranges/subset.js
const Range = require('../classes/range.js') const Comparator = require('../classes/comparator.js') const { ANY } = Comparator const satisfies = require('../functions/satisfies.js') const compare = require('../functions/compare.js') // Complex range `r1 || r2 || ...` is a subset of `R1 || R2 || ...` iff: // - Every si...
PypiClean
/ethical_smart_grid_simulator-0.0.2-py3-none-any.whl/smartgrid/rewards/numeric/per_agent/adaptability.py
from smartgrid.rewards.numeric.per_agent.comfort import Comfort from smartgrid.rewards.numeric.per_agent.equity import EquityPerAgent from smartgrid.rewards.numeric.per_agent.multi_objective_sum import MultiObjectiveSumPerAgent from smartgrid.rewards.numeric.per_agent.over_consumption import OverConsumptionPerAgent fro...
PypiClean
/transition_neural_parser-0.5.1002-py3-none-any.whl/fairseq_ext/sequence_generator_graph.py
import math from copy import deepcopy import json import torch from packaging import version from fairseq import search, utils from fairseq.models import FairseqIncrementalDecoder from transition_amr_parser.action_pointer.o8_state_machine import AMRStateMachine BOOL_TENSOR_TYPE = torch.bool if version.parse(torch...
PypiClean