id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/SimpleWallet-1.0.0-py3-none-any.whl/simplewallet/bitcoin/privkey.py
# Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell # cop...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/datashare/v20210801/get_adls_gen2_file_data_set_mapping.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__ = [ 'GetADLSGen2FileDataSetMappingResult', 'AwaitableGetADLSGen2FileDataSetMappingResult', 'get_adls_gen2_file_data_...
PypiClean
/fluke_api-0.5.0-py3-none-any.whl/fluke/storage.py
__all__ = [ 'AmazonS3Dir', 'AmazonS3File', 'AzureBlobDir', 'AzureBlobFile', 'GCPStorageDir', 'GCPStorageFile', 'LocalFile', 'LocalDir', 'RemoteFile', 'RemoteDir' ] import os as _os import typing as _typ import warnings as _warn from abc import ABC as _ABC from abc import abstra...
PypiClean
/toil-ionox0-0.0.10.tar.gz/toil-ionox0-0.0.10/src/toil/batchSystems/gridengine.py
from __future__ import absolute_import from __future__ import division from builtins import map from builtins import str from builtins import range from past.utils import old_div import logging import os from pipes import quote from toil import subprocess import time import math # Python 3 compatibility imports from ...
PypiClean
/SW_wrapper-1.0.6.tar.gz/SW_wrapper-1.0.6/sw_wrapper/pyssw.py
import sys import os.path as op import argparse as ap import ctypes as ct import timeit as ti import gzip import math import ssw_lib def read(sFile): """ read a sequence file @param sFile sequence file """ def read_one_fasta(f): """ read a fasta file @param f file ...
PypiClean
/smscx-0.1.11.tar.gz/smscx-0.1.11/smscx_client/model/get_inbound_sms_response.py
import re # noqa: F401 import sys # noqa: F401 from smscx_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, v...
PypiClean
/ya_aioclient-0.6.4-py3-none-any.whl/ya_net/api_client.py
import atexit import datetime from dateutil.parser import parse import json import mimetypes from multiprocessing.pool import ThreadPool import os import re import tempfile # python 2 and python 3 compatibility library from urllib.parse import quote from ya_net.configuration import Configuration import ya_net.models ...
PypiClean
/coinor.gimpy-2.1.1-py3-none-any.whl/coinor/gimpy/graph.py
from __future__ import division from __future__ import print_function from __future__ import absolute_import from future import standard_library standard_library.install_aliases() from builtins import str from builtins import range from past.utils import old_div from builtins import object from .global_constants impor...
PypiClean
/cdktf-cdktf-provider-google_beta-9.0.1.tar.gz/cdktf-cdktf-provider-google_beta-9.0.1/src/cdktf_cdktf_provider_google_beta/google_dataproc_cluster_iam_member/__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 GoogleDataprocClusterIamMember( _cdktf_9a9027ec.Te...
PypiClean
/vdynamics-0.1.tar.gz/vdynamics-0.1/third_party/pybind11/docs/advanced/cast/strings.rst
Strings, bytes and Unicode conversions ###################################### .. note:: This section discusses string handling in terms of Python 3 strings. For Python 2.7, replace all occurrences of ``str`` with ``unicode`` and ``bytes`` with ``str``. Python 2.7 users may find it best to use ``from ...
PypiClean
/uniohomeassistant-0.1.3.tar.gz/uniohomeassistant-0.1.3/homeassistant/components/apple_tv/__init__.py
import asyncio import logging from random import randrange from pyatv import connect, exceptions, scan from pyatv.const import Protocol from homeassistant.components.media_player import DOMAIN as MP_DOMAIN from homeassistant.components.remote import DOMAIN as REMOTE_DOMAIN from homeassistant.const import ( CONF_A...
PypiClean
/labs_integration_fec_dbsynca-0.1.5a0-py3-none-any.whl/fec_dbsync/migrations/0007_auto_20180608_0858.py
from __future__ import unicode_literals from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('fec_dbsync', '0006_auto_20180607_2053'), ] operations = [ migrations.RemoveField( model_name='roboidtview', name='ACCRUED_DM...
PypiClean
/tcp-tls-tunnel-1.0.2.tar.gz/tcp-tls-tunnel-1.0.2/tcp_tls_tunnel/requests_adapter.py
from urllib.parse import urlparse import gzip import brotli import zlib import requests import requests.cookies import requests.utils from requests.structures import CaseInsensitiveDict from requests.adapters import BaseAdapter from tcp_tls_tunnel.dto import AdapterOptions, TunnelOptions, ProxyOptions from tcp_tls_t...
PypiClean
/bob.bio.htface-1.0.6.zip/bob.bio.htface-1.0.6/bob/bio/htface/database/cbsr_nir_vis_2.py
from bob.bio.face.database import FaceBioFile from bob.bio.base.database import ZTBioDatabase, BioFile import bob.io.base import os class CBSR_NIR_VIS_2BioFile(FaceBioFile): def __init__(self, f, db): super(CBSR_NIR_VIS_2BioFile, self).__init__(client_id=f.client_id, path=f.path, file_id=f.id) ...
PypiClean
/bpy_nibbler-0.1.tar.gz/bpy_nibbler-0.1/bpy_lambda/2.78/scripts/addons/mesh_extra_tools/mesh_edges_length.py
bl_info = { "name": "Set edges length", "description": "Edges length", "author": "Giuseppe De Marco [BlenderLab] inspired by NirenYang", "version": (0, 1, 0), "blender": (2, 7, 1), "location": "Toolbar > Tools > Mesh Tools: set Length(Shit+Alt+E)", "warning": "", "wiki_url": "", "ca...
PypiClean
/nni_upload_test-0.7.1904290925-py3-none-win_amd64.whl/nni_upload_test-0.7.1904290925.data/data/nni/node_modules/ajv/lib/dotjs/_limitItems.js
'use strict'; module.exports = function generate__limitItems(it, $keyword, $ruleType) { var out = ' '; var $lvl = it.level; var $dataLvl = it.dataLevel; var $schema = it.schema[$keyword]; var $schemaPath = it.schemaPath + it.util.getProperty($keyword); var $errSchemaPath = it.errSchemaPath + '/' + $keyword;...
PypiClean
/dirdf-0.11-py3-none-any.whl/dirdf-0.11.dist-info/LICENSE.rst
The MIT License (MIT) Copyright (c) 2022 Johannes Fischer Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, ...
PypiClean
/mflowgen-0.4.0-py3-none-any.whl/docs/ug-param-space.rst
Sweeping Large Design Spaces ========================================================================== .. In contrast to software, hardware design includes both logical .. design-space exploration (i.e., architecture, RTL source code) and .. physical design-space exploration (e.g., floorplanning and power .. strategy...
PypiClean
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/cloud9/environment_membership.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['EnvironmentMembershipArgs', 'EnvironmentMembership'] @pulumi.input_type class EnvironmentMembershipArgs: def __init__(__self__, *, ...
PypiClean
/django_restit-4.1.34-py3-none-any.whl/medialib/forms.py
from django.forms import ModelForm from django import forms from .models import * from .utils import * class MediaLibraryForm(ModelForm): class Meta: model = MediaLibrary fields = ('name', 'description', 'allowed_kinds') class MediaItemForm(ModelForm): class Meta: model = MediaItem ...
PypiClean
/PgsFile-0.0.7.tar.gz/PgsFile-0.0.7/README.md
Purpose: This module is to facilitate Python beginners, especially instructors and students of foreign languages and literature, for the convenience of easily operating txt, xlsx and json files as well as making word list. Function 1: Useful for getting data from the files directly and saving processing results in th...
PypiClean
/ovos_lingua_franca-0.4.8a1-py3-none-any.whl/lingua_franca/lang/common_data_da.py
_FUNCTION_NOT_IMPLEMENTED_WARNING = "Denne funktion er ikke implementeret i 'dk'." _DA_NUMBERS = { 'nul': 0, 'en': 1, 'et': 1, 'to': 2, 'tre': 3, 'fire': 4, 'fem': 5, 'seks': 6, 'syv': 7, 'otte': 8, 'ni': 9, 'ti': 10, 'elve': 11, 'tolv': 12, 'tretten': 13, ...
PypiClean
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/v2/stable/models/plate.py
import datetime from typing import Any, cast, Dict, Optional, Type, TypeVar, Union import attr from dateutil.parser import isoparse from ..extensions import NotPresentError from ..models.archive_record import ArchiveRecord from ..models.fields import Fields from ..models.plate_type import PlateType from ..models.plat...
PypiClean
/freedomrobotics_api-1.2.0-py3-none-any.whl/freedomrobotics_api/api_handler.py
import requests from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry from requests.exceptions import ConnectTimeout, ReadTimeout from freedomrobotics_api.credentials import credentials_exist, get_credentials, URLS, DEFAULT_URL default_api = None def set_default_api(api): ...
PypiClean
/lark067-0.6.7.tar.gz/lark067-0.6.7/lark/exceptions.py
from .utils import STRING_TYPE ###{standalone class LarkError(Exception): pass class GrammarError(LarkError): pass class ParseError(LarkError): pass class LexError(LarkError): pass class UnexpectedInput(LarkError): pos_in_stream = None def get_context(self, text, span=40): pos = se...
PypiClean
/pyscxml-0.8-20111128-full.tar.gz/pyscxml-0.8-20111128-full/examples/scxml_sandbox/lib/codemirror/mode/clike/clike.js
CodeMirror.defineMode("clike", function(config, parserConfig) { var indentUnit = config.indentUnit, keywords = parserConfig.keywords || {}, blockKeywords = parserConfig.blockKeywords || {}, atoms = parserConfig.atoms || {}, hooks = parserConfig.hooks || {}, multiLineStrings = parserConfi...
PypiClean
/xyz_school-0.1.17-py3-none-any.whl/xyz_school/stats.py
from __future__ import unicode_literals from . import models from xyz_util import dateutils, statutils from django.db.models import Count def student_funnel(qset): return [ ['注册', qset.count()], ['绑定', qset.filter(is_bind=True).count()], ['答题', qset.annotate(num_answers=Count('user__exam_a...
PypiClean
/scipion-em-xmipp-23.7.0.0.tar.gz/scipion-em-xmipp-23.7.0.0/xmipp3/viewers/viewer_resolution_fso.py
from pyworkflow.gui.plotter import Plotter from pyworkflow.protocol.params import LabelParam, StringParam, EnumParam, IntParam, LEVEL_ADVANCED from pyworkflow.viewer import ProtocolViewer, DESKTOP_TKINTER from pyworkflow.utils import getExt, removeExt from pwem.emlib.metadata import MetaData from pwem.wizards import ...
PypiClean
/PyMeta3-0.5.1.tar.gz/PyMeta3-0.5.1/pymeta/runtime.py
import operator class ParseError(Exception): """ ?Redo from start """ @property def position(self): return self.args[0] @property def error(self): return self.args[1] def __init__(self, *a): Exception.__init__(self, *a) if len(a) > 2: self.m...
PypiClean
/baoshare-0.5.5-py3-none-any.whl/baoshare-0.5.5.dist-info/DESCRIPTION.rst
baoshare =============== * It's easy to use because most of the data returned are pandas DataFrame objects * We have our own data server, efficient and stable operation * Free china stock market data * Friendly to machine learning and data mining Target Users -------------- * China Financial Market Analyst * Financ...
PypiClean
/asym_crypto_yaml-0.1.2.tar.gz/asym_crypto_yaml-0.1.2/README.rst
asym-crypto-yaml ================ .. image:: https://github.com/edx/asym-crypto-yaml/workflows/Python%20CI/badge.svg?branch=master Encrypt secrets in YAML alongside non secrets in YAML. Can be used as a cli tool or as a dependency. Installation ------------- pip install asym-crypto-yaml Cli Usage ----------...
PypiClean
/mitocyto-0.0.23.tar.gz/mitocyto-0.0.23/mitocyto_scripts/warpim.py
from PIL import Image, ImageTk, ImageDraw Image.MAX_IMAGE_PIXELS = None import numpy as np import cv2 import tkinter as tk global count, C_edge, edges, C, C_newedge def RBGAImage(path): return Image.open(path).convert("RGBA") def next_image(event): global edgex, edgey, lastx, lasty dx, dy = event.x - la...
PypiClean
/cdpcli-beta-0.9.96.tar.gz/cdpcli-beta-0.9.96/cdpcli/text.py
from cdpcli.compat import six def format_text(data, stream): _format_text(data, stream) def _format_text(item, stream, identifier=None, scalar_keys=None): if isinstance(item, dict): _format_dict(scalar_keys, item, identifier, stream) elif isinstance(item, list): _format_list(item, ident...
PypiClean
/tw.dojo-0.9.181.tar.gz/tw.dojo-0.9.181/tw/dojo/static/1.8.1/debug/dojox/grid/enhanced/nls/ca/Filter.js
define("dojox/grid/enhanced/nls/ca/Filter",({"clearFilterDialogTitle":"Netejar el filtre","filterDefDialogTitle":"Filtre","ruleTitleTemplate":"Regla ${0}","conditionEqual":"igual que","conditionNotEqual":"no és igual que","conditionLess":"és menys que","conditionLessEqual":"és menys o igual que","conditionLarger":"és m...
PypiClean
/petsc-3.19.5.tar.gz/petsc-3.19.5/config/BuildSystem/config/compilers.py
import config.base import re import os import shutil def remove_xcode_verbose(buf): retbuf =[] for line in buf.splitlines(): if not line.startswith('ld: warning: text-based stub file'): retbuf.append(line) return ('\n').join(retbuf) class MissingProcessor(AttributeError): pass class Configure(config.ba...
PypiClean
/flask_uio-0.1.6.2.tar.gz/flask_uio-0.1.6.2/flask_uio/static/vendor/summernote-0.8.18-dist/lang/summernote-fi-FI.min.js
!function(e,i){if("object"==typeof exports&&"object"==typeof module)module.exports=i();else if("function"==typeof define&&define.amd)define([],i);else{var t=i();for(var a in t)("object"==typeof exports?exports:e)[a]=t[a]}}(window,(function(){return function(e){var i={};function t(a){if(i[a])return i[a].exports;var o=i[...
PypiClean
/finance_manager-1.1.1.tar.gz/finance_manager-1.1.1/finance_manager/database/replaceable.py
from alembic.operations import Operations, MigrateOperation from datetime import datetime from getpass import getuser import pkg_resources # part of setuptools version = pkg_resources.require("finance_manager")[0].version stamp = f""" -- =================================================== -- FINANCE MANA...
PypiClean
/politico-civic-utils-0.0.8.tar.gz/politico-civic-utils-0.0.8/civic_utils/serializers.py
from collections import OrderedDict from io import StringIO # Imports from Django. from django.core.serializers.base import DeserializedObject from django.core.serializers.base import ProgressBar from django.db import models from django.utils.functional import cached_property # Imports from other dependencies. from...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_19/models/policy.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_19 import models class Policy(object): """ Attributes: swagger_types (dict): The key is attribute name and the value is attribu...
PypiClean
/provbook-1.1.0.tar.gz/provbook-1.1.0/setupbase.py
# Copyright (c) Jupyter Development Team. # Distributed under the terms of the Modified BSD License. """ This file originates from the 'jupyter-packaging' package, and contains a set of useful utilities for including npm packages within a Python package. """ from collections import defaultdict from os.path import joi...
PypiClean
/asteriskrealtimedata-1.1.15-py3-none-any.whl/AsteriskRealtimeData/infrastructure/repositories/mongo/mongo_repository.py
from AsteriskRealtimeData.shared.errors.data_not_found_error import DataNotFound from AsteriskRealtimeData.domain.update_vo import UpdateVo from uuid import UUID from antidote import service, Provide, inject from pymongo.collection import Collection from AsteriskRealtimeData.domain.entity import Entity from AsteriskRe...
PypiClean
/sense2-0.3.7-py3-none-any.whl/conan/tools/cmake/cmakedeps/templates/config.py
import textwrap from conan.tools.cmake.cmakedeps.templates import CMakeDepsFileTemplate """ FooConfig.cmake foo-config.cmake """ class ConfigTemplate(CMakeDepsFileTemplate): @property def filename(self): if self.generating_module: return "Find{}.cmake".format(self.file_name) e...
PypiClean
/purplship.fedex-2022.2-py3-none-any.whl/purplship/providers/fedex/tracking.py
from typing import List, Tuple, Optional from fedex_lib.track_service_v19 import ( TrackDetail, TrackRequest, TransactionDetail, Localization, VersionId, TrackSelectionDetail, TrackPackageIdentifier, TrackingDateOrTimestamp, ) from purplship.core.utils import Serializable, Element, XP, D...
PypiClean
/nicotine-plus-3.2.9.tar.gz/nicotine-plus-3.2.9/pynicotine/plugins/examplars/port_checker/__init__.py
import socket import threading from pynicotine.pluginsystem import BasePlugin, ResponseThrottle, returncode from pynicotine.slskmessages import GetPeerAddress class Plugin(BasePlugin): def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self.settings = { 'keywor...
PypiClean
/opendr-toolkit-facial-expression-recognition-2.2.0.tar.gz/opendr-toolkit-facial-expression-recognition-2.2.0/README.md
<div align="center"> <img src="docs/reference/images/opendr_logo.png" width="400px"> **A modular, open and non-proprietary toolkit for core robotic functionalities by harnessing deep learning** ______________________________________________________________________ <p align="center"> <a href="https://www.opendr.eu/...
PypiClean
/hl.pas.samlplugin-1.3.tar.gz/hl.pas.samlplugin-1.3/hl/pas/samlplugin/saml2/pack.py
import urlparse from hl.pas.samlplugin.saml2 import create_class_from_element_tree, BINDING_HTTP_REDIRECT, BINDING_HTTP_POST import base64 import urllib from .s_utils import deflate_and_base64_encode from .s_utils import Unsupported import logging from .sigver import RSA_SHA1 from .sigver import REQ_ORDER from .sigver ...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/apimanagement/v20200601preview/tag_by_product.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = ['TagByProduct'] class TagByProduct(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts: Optional[pul...
PypiClean
/DeepGMAP-0.2.0.tar.gz/DeepGMAP-0.2.0/deepgmap/post_train_tools/activation_maximization.py
import sys import gzip import cPickle import tensorflow as tf import numpy as np import time import math import os import matplotlib as mpl mpl.use("WebAgg") import matplotlib.pyplot as plt import pylab from deepgmap.post_train_tools import unpooling import importlib as il import getopt import deepgmap.post_train_tools...
PypiClean
/lottie-ps-0.7.0.tar.gz/lottie-ps-0.7.0/lib/lottie/parsers/baseporter.py
import sys import os import pkgutil import argparse import importlib class Baseporter: def __init__(self, name, extensions, callback, extra_options=[], generic_options=set(), slug=None): self.name = name self.extensions = extensions self.callback = callback self.extra_options = ext...
PypiClean
/sentry-nos-9.0.0.tar.gz/sentry-nos-9.0.0/src/sentry/api/endpoints/project_plugin_details.py
from __future__ import absolute_import import logging import six from django import forms from django.core.urlresolvers import reverse from rest_framework import serializers from rest_framework.response import Response from requests.exceptions import HTTPError from sentry.exceptions import InvalidIdentity, PluginErr...
PypiClean
/drl-model-0.1.tar.gz/drl-model-0.1/preprocessing/preprocessors.py
import numpy as np import pandas as pd from stockstats import StockDataFrame as Sdf from config import config def load_dataset(*, file_name: str) -> pd.DataFrame: """ load csv dataset from path :return: (df) pandas dataframe """ #_data = pd.read_csv(f"{config.DATASET_DIR}/{file_name}") _data = ...
PypiClean
/nalogapi-0.1.0.tar.gz/nalogapi-0.1.0/nalogapi.py
import requests import json import random import string from datetime import datetime, timezone class ConfigurationError(Exception): pass class AuthenticationError(Exception): pass class NalogAPI(): apiUrl = 'https://lknpd.nalog.ru/api/v1' username = None password = None autologin = False...
PypiClean
/fitting-slaven92-0.0.1.tar.gz/fitting-slaven92-0.0.1/fitting/convertDataToJson.py
import numpy as np from tkinter.filedialog import askopenfilename import tkinter import os import json class Convert(): def __init__(self, file_location = None, threshold=70): self.results = [] # array of fitted data. Name is contained in outParams self.file_location = file_location self....
PypiClean
/measuresoftgram3-3.0.0.tar.gz/measuresoftgram3-3.0.0/README.md
# 2021-2-MeasureSoftGram-CLI [![codecov](https://codecov.io/gh/fga-eps-mds/2021-2-MeasureSoftGram-CLI/branch/master/graph/badge.svg?token=XRPXP8LH9I)](https://codecov.io/gh/fga-eps-mds/2021-2-MeasureSoftGram-CLI) ## What is the MeasureSoftGram-CLI? The CLI is a command-line interface to the software. ## How to use C...
PypiClean
/lfl-admin-0.0.9.tar.gz/lfl-admin-0.0.9/lfl_admin/region/views/interregion.py
from isc_common.http.DSResponse import DSResponseUpdate , DSResponseAdd , DSResponse , JsonResponseWithException from isc_common.http.RPCResponse import RPCResponseConstant from isc_common.http.response import JsonResponse from lfl_admin.region.models.interregion import Interregion , InterregionManager @JsonResponse...
PypiClean
/gtrpy-1.9.tar.gz/gtrpy-1.9/demos/demo_1.md
# Demo 1 In this demo, we will explore the usage of the LaTeX in the GTRPy. By following this tutorial, you'll learn how to perform basic mathematical operations and define variables. ## Mathematical Operations and Greek Letters In GRTPy, the metric tensor and field components can be written by using LaTeX rules. Fo...
PypiClean
/robot_grpc-0.0.4.tar.gz/robot_grpc-0.0.4/robot_grpc/node_modules/lodash/README.md
# lodash v4.17.11 The [Lodash](https://lodash.com/) library exported as [Node.js](https://nodejs.org/) modules. ## Installation Using npm: ```shell $ npm i -g npm $ npm i --save lodash ``` In Node.js: ```js // Load the full build. var _ = require('lodash'); // Load the core build. var _ = require('lodash/core'); //...
PypiClean
/vivisect-1.1.1-py3-none-any.whl/vqt/menubuilder.py
import logging from PyQt5.QtWidgets import * logger = logging.getLogger(__name__) class FieldAdder: def __init__(self, splitchar='.'): self.kids = {} self.splitchar = splitchar self._dyn_callback = None def _addMenuFields(self, plist): parent = self kid = self ...
PypiClean
/pyf.services-2.0.2.tar.gz/pyf.services-2.0.2/pyf/services/public/scripts/wireit/js/LayerMap.js
(function() { var Dom = YAHOO.util.Dom, Event = YAHOO.util.Event; /** * Widget to display a minimap on a layer * @class LayerMap * @namespace WireIt * @extends WireIt.CanvasElement * @constructor * @param {WireIt.Layer} layer the layer object it is attached to * @param {Obj} options configuration object */...
PypiClean
/monk_pytorch_cuda102_test-0.0.1-py3-none-any.whl/monk/gluon/models/layers.py
from monk.gluon.models.imports import * from monk.system.imports import * @accepts(dict, post_trace=False) #@TraceFunction(trace_args=True, trace_rv=True) def get_layer(network_layer): ''' Get layer for appending it to transfer learning base model Args: network_layer (dict): Dictionary conatining ...
PypiClean
/localgpt-0.0.26-py3-none-any.whl/pautobot/engine/bot_context.py
import copy import json import os import pathlib import shutil import uuid from pautobot import db_models from pautobot.config import DATA_ROOT from pautobot.database import session from pautobot.engine.bot_enums import BotStatus from pautobot.utils import open_file DEFAULT_ANSWER = { "status": BotStatus.READY, ...
PypiClean
/fictional_names-0.1.1.tar.gz/fictional_names-0.1.1/src/fictional_names/english.py
from random import choice female_names = [ "Abigail", "Addison", "Adeline", "Alice", "Amelia", "Anna", "Aria", "Aubrey", "Audrey", "Aurora", "Autumn", "Ava", "Avery", "Bella", "Brooklyn", "Camila", "Caroline", "Charlotte", "Chloe", "Clair...
PypiClean
/hassmart_homeassistant-0.65.4.tar.gz/hassmart_homeassistant-0.65.4/homeassistant/components/google_assistant/http.py
import asyncio import logging from aiohttp.hdrs import AUTHORIZATION from aiohttp.web import Request, Response # NOQA # Typing imports # pylint: disable=using-constant-test,unused-import,ungrouped-imports from homeassistant.components.http import HomeAssistantView from homeassistant.core import HomeAssistant, callba...
PypiClean
/cronut-0.1.0.tar.gz/cronut-0.1.0/README.md
Cronut ====== **cronut** is a barebones event processing library using Kafka. ## Quickstart ```python from collections import deque import json from cronut import App d = deque(maxlen=30) app = App('myapp', broker='kafka://localhost:9096') @app.process('topic1') def stateless(message): event = json.loads(mes...
PypiClean
/echarts-themes-pypkg-0.0.3.tar.gz/echarts-themes-pypkg-0.0.3/echarts_themes_pypkg/resources/echarts-themes-js/wonderland.js
!function(e,o){"function"==typeof define&&define.amd?define(["exports","echarts"],o):"object"==typeof exports&&"string"!=typeof exports.nodeName?o(exports,require("echarts")):o({},e.echarts)}(this,function(e,o){var r;if(!o)return r="ECharts is not Loaded",void("undefined"!=typeof console&&console&&console.error&&consol...
PypiClean
/antchain_ldc-1.12.83.tar.gz/antchain_ldc-1.12.83/antchain_sdk_ldc/client.py
import time from Tea.exceptions import TeaException, UnretryableException from Tea.request import TeaRequest from Tea.core import TeaCore from antchain_alipay_util.antchain_utils import AntchainUtils from typing import Dict from antchain_sdk_ldc import models as ldc_models from alibabacloud_tea_util.client import Cli...
PypiClean
/json_timeseries-0.1.4.tar.gz/json_timeseries-0.1.4/json_timeseries/jts.py
import json import uuid from datetime import datetime from typing import Union, List from dateutil import parser TimeSeriesDataType = ('NUMBER', 'TEXT', 'TIME', 'COORDINATES') class TsRecord: """ A record of TimeSeries object :param timestamp: Timestamp :type timestamp: datetime :param value: V...
PypiClean
/azure-mgmt-security-5.0.0.zip/azure-mgmt-security-5.0.0/azure/mgmt/security/v2019_08_01/models/_models_py3.py
import datetime from typing import Any, Dict, List, Optional, TYPE_CHECKING, Union from ... import _serialization if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-imports from .. import models as _models class CustomAlertRule(_serialization.Model): """A custom alert rule. You probably w...
PypiClean
/ni-core-server-0.1.4.tar.gz/ni-core-server-0.1.4/README.md
# Core Server ## Quick Start ### With Pypi Install product with: ```shell script pip install ni-core-server==0.1.1 ``` To launch server: ```shell script core_server ``` Some options are available: * `-p` | `--port` server port listening. Default: 8888 * `-l` | `--log-level` log level. Default 'INFO' ### With D...
PypiClean
/Openkst-0.0.1.tar.gz/Openkst-0.0.1/Text_Entity/openks/distributed/utils.py
import functools import logging import socket import time import os import signal import copy import sys import subprocess from contextlib import closing import socket logger = logging.getLogger("root") logger.propagate = False class Hdfs(object): def __init__(self): self.hdfs_ugi = None self.hd...
PypiClean
/openspeech_py-0.2-py3-none-any.whl/openspeech/models/joint_ctc_transformer/configurations.py
from dataclasses import dataclass, field from openspeech.dataclass.configurations import OpenspeechDataclass @dataclass class JointCTCTransformerConfigs(OpenspeechDataclass): r""" This is the configuration class to store the configuration of a :class:`~openspeech.models.JointCTCTransformer`. It is ...
PypiClean
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/babel-plugin-proto-to-assign/lib/index.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } var _lodashArrayPull = require("lodash/array/pull"); var _lodashArrayPull2 = _interopRequireDefault(_lodashArrayPull); exports["default"] ...
PypiClean
/bool-to-int8-ray-0.2.0.tar.gz/bool-to-int8-ray-0.2.0/bool_to_int8_ray/serialize.py
import numpy as np from typing import List import logging import ray import os import psutil import gc logger = logging.getLogger(__name__) logging.basicConfig( level=logging.DEBUG, format="%(asctime)s - %(levelname)s - %(name)s: %(message)s", datefmt="%y-%m-%d %H:%M:%S" ) PCT_CPU = float(os.environ.get(...
PypiClean
/quantrocket-utils-0.2.0.tar.gz/quantrocket-utils-0.2.0/README.md
# QuantRocket Utility Library Utility methods for common tasks in QuantRocket. ## Installation `quantrocket-utils` can be installed via `pip`: ```bash $ pip install quantrocket-utils ``` ## Development This project uses [poetry](https://poetry.eustace.io/) for development and release management. ``` $ git clone git@...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/cache/redis_enterprise.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__ = ['RedisEnterpriseArgs', 'RedisEnterprise'] @pulumi.input_type class RedisEnterpri...
PypiClean
/idealoom-0.1.0-py3-none-any.whl/assembl/static/widget/session/bower_components/messageformat/doc/scripts/prettify/prettify.js
var q=null;window.PR_SHOULD_USE_CONTINUATION=!0; (function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.to...
PypiClean
/ra_engine-0.0.1.post6-py3-none-any.whl/ra_engine/core/app.py
from ra_engine.type_def.creds import Credentials import requests from typing import Union class XAPIKey: key = None def __init__(self, key: str): self.key = key class RAEApp: def __init__(self, credentials: Credentials, debug=False): self.credentials = credentials self.debug = d...
PypiClean
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/prime_remastered/objects/ColorSampler.py
import dataclasses import struct import typing from retro_data_structures.game_check import Game from retro_data_structures.properties.base_property import BaseProperty import base64 @dataclasses.dataclass() class ColorSampler(BaseProperty): unknown_properties: dict[int, bytes] = dataclasses.field(default_factor...
PypiClean
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/lib/robot/parsing/settings.py
from robotide.lib.robot.utils import is_string, py2to3, unicode from .comments import Comment from ..version import ALIAS_MARKER @py2to3 class Setting(object): def __init__(self, setting_name, parent=None, comment=None): self.setting_name = setting_name self.parent = parent self._set_in...
PypiClean
/jdgalileo-gpu-1.0.0.tar.gz/jdgalileo-gpu-1.0.0/galileo/framework/tf/python/callbacks/callbacks.py
import os import tensorflow as tf from galileo.platform.export import export from galileo.framework.tf.python.callbacks.metrics_time \ import MetricsTimeCallback from galileo.framework.tf.python.callbacks.gpu_status \ import GPUStatusCallback from galileo.framework.tf.python.callbacks.dump_graph \ ...
PypiClean
/stix-1.2.0.11.tar.gz/stix-1.2.0.11/docs/api/common/kill_chains.rst
:mod:`stix.common.kill_chains` Module ===================================== .. module:: stix.common.kill_chains Classes ------- .. autoclass:: KillChain :show-inheritance: :members: .. autoclass:: KillChains :show-inheritance: :members: .. autoclass:: KillChainPhase :show-inheritance: :memb...
PypiClean
/rest_toolkit-0.17.tar.gz/rest_toolkit-0.17/doc/comparison.rst
Comparison with other frameworks ================================ cornice ------- - Cornice has both a Service and a resource concept, but does not explain how they relate. Internally a resource creates a Service and adds views to it, but the rationale for the distinction is unclear. It mostly seems to be a des...
PypiClean
/flexflow-23.8.2.tar.gz/flexflow-23.8.2/deps/json/doc/mkdocs/docs/api/basic_json/operator_ge.md
# <small>nlohmann::basic_json::</small>operator>= ```cpp bool operator>=(const_reference lhs, const_reference rhs) noexcept, template<typename ScalarType> bool operator>=(const_reference lhs, const ScalarType rhs) noexcept; template<typename ScalarType> bool operator>=(ScalarType lhs, const const_reference rhs) noex...
PypiClean
/imo_vmdb-1.3.1-py3-none-any.whl/imo_vmdb/csv_import/magnitudes.py
import json import math from datetime import timedelta from imo_vmdb.csv_import import CsvParser, ImportException from imo_vmdb.db import DBException class MagnitudesParser(CsvParser): _required_columns = { 'magnitude id', 'user id', 'obs session id', 'shower', 'start date...
PypiClean
/Weblate_a1az-4.3.2.2-py3-none-any.whl/weblate/accounts/pipeline.py
import re import time import unicodedata from django.conf import settings from django.shortcuts import redirect from django.urls import reverse from django.utils.encoding import force_str from django.utils.http import url_has_allowed_host_and_scheme from django.utils.translation import gettext as _ from social_core.e...
PypiClean
/couler_scanflow-0.1.2-py3-none-any.whl/couler/core/config.py
from collections import OrderedDict from couler.core import states, utils def config_workflow( name=None, user_id=None, timeout=None, time_to_clean=None, cluster_config_file=None, cron_config=None, service_account=None, affinity=None, ): """ Config some workflow-level informa...
PypiClean
/azure-servicebus-7.11.1.zip/azure-servicebus-7.11.1/azure/servicebus/_pyamqp/aio/_authentication_async.py
from functools import partial from ..authentication import ( _generate_sas_access_token, SASTokenAuth, JWTTokenAuth ) from ..constants import AUTH_DEFAULT_EXPIRATION_SECONDS async def _generate_sas_token_async(auth_uri, sas_name, sas_key, expiry_in=AUTH_DEFAULT_EXPIRATION_SECONDS): return _generate_s...
PypiClean
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/run_targets_configuration.py
import re # noqa: F401 import sys # noqa: F401 from cohesity_sdk.cluster.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_typ...
PypiClean
/monk_keras_cpu_test-0.0.11.tar.gz/monk_keras_cpu_test-0.0.11/monk/tf_keras_1/finetune/level_2_model_base.py
from monk.tf_keras_1.finetune.imports import * from monk.system.imports import * from monk.tf_keras_1.finetune.level_1_dataset_base import finetune_dataset class finetune_model(finetune_dataset): ''' Base class for Model setup Args: verbose (int): Set verbosity levels 0 - ...
PypiClean
/azure-synapse-artifacts-0.17.0.zip/azure-synapse-artifacts-0.17.0/azure/synapse/artifacts/aio/operations/_data_flow_debug_session_operations.py
from io import IOBase from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFound...
PypiClean
/setupmeta-3.4.0.tar.gz/setupmeta-3.4.0/examples/hierarchical/README.rst
hierarchical: A hierarchical package (code under src/) ====================================================== This is a project that keeps its code under a ``src/`` subfolder: * ``name`` is given explicitly in ``setup.py`` * module + submodule in ``src/hierarchical/`` -> ``packages`` is properly set to ``['hierarchi...
PypiClean
/ghlint-0.2.7.tar.gz/ghlint-0.2.7/README.rst
ghlint ====== |build| |pypi| Linting utility for GitHub. Getting Started --------------- Set the environment variables ``GITHUB_USERNAME`` and ``GITHUB_PASSWORD`` to your GitHub credentials. Alternatively, configure your username and `access token <https://github.com/settings/tokens>`_ in the ``[SETTINGS]`` section...
PypiClean
/proximity-forest-dtw-1.1.tar.gz/Proximity-Forest-dtw-1.1/core/FileReader.py
import time from numpy import double from scipy.io import arff from dataStructures import ListDataset class FileReader: @staticmethod def read_file(fileName, has_header=True, labelLastColumn=True, separator=","): file = fileName.split(".")[1] if file == "arff" or file == "ts": ret...
PypiClean
/labmanager-1.0.1.tar.gz/labmanager-1.0.1/suds/xsd/schema.py
from logging import getLogger from suds.xsd.sxbuiltin import * from suds.xsd.sxbasic import Factory as BasicFactory from suds.xsd.deplist import DepList from suds.sax.element import Element from suds.sax import splitPrefix, Namespace log = getLogger(__name__) class SchemaCollection: """ A collection of sch...
PypiClean
/onnxruntime_azure-1.15.0-cp38-cp38-win32.whl/onnxruntime/transformers/shape_optimizer.py
# This tool is not used directly in bert optimization. It could assist developing the optimization script on the following senarios: # (1) It could simplify graph by removing many sub-graphs related to reshape. # (2) It could reduce extra inputs and outputs to fit other tools. The script compare_bert_results.py or ber...
PypiClean
/python-domintell-0.0.17.tar.gz/python-domintell-0.0.17/domintell/module_directory.py
import domintell MODULE_DIRECTORY = { 'IS4': { 'type': 'DISM4', 'name': 'Control of 4 inputs (buttons)', 'io': 'di'}, 'IS8': { 'type': 'DISM8', 'name': 'Control of 8 inputs (buttons)', 'io': 'di'}, 'BU1': { 'type': 'DPBU01', 'name': '1 button module', 'io': 'di'}, 'BU2': { 'type': 'DPBU02', 'name': '2 ...
PypiClean
/pikendus_backend-0.2.8-py3-none-any.whl/pikendus_backend/PikendusWheelBuilder.py
from pathlib import Path from typing import IO, Iterable, Tuple from importlib.metadata import version as get_version from pdm.backend.hooks import Context from pdm.backend.wheel import WheelBuilder from .structure import generateTypeHeaders, generateFunctionHeaders from .compile import compile from .gene_py_src impo...
PypiClean
/pybbt-1.0.1.tar.gz/pybbt-1.0.1/README.md
# pybbt: Python Black Box Testing Tool pybbt is a Python-based tool that simplifies black box testing of software. It provides a range of auxiliary functions and the ability to filter test cases, making your testing process more efficient and manageable. ## Projects Tested with pybbt - [Tair](https://www.alibabaclou...
PypiClean
/Kahi_openalex_person-0.0.2a0-py3-none-any.whl/kahi_openalex_person/Kahi_openalex_person.py
from kahi.KahiBase import KahiBase from pymongo import MongoClient, TEXT from time import time from joblib import Parallel, delayed def process_one(oa_author, url, db_name, empty_person): client = MongoClient(url) db = client[db_name] collection = db["person"] author = None for source, idx in oa_...
PypiClean
/kp-0.8.1.tar.gz/kp-0.8.1/external/Vulkan-Headers/registry/spec_tools/util.py
# Copyright (c) 2018-2019 Collabora, Ltd. # Copyright (c) 2013-2020 The Khronos Group Inc. # # SPDX-License-Identifier: Apache-2.0 def getElemName(elem, default=None): """Get the name associated with an element, either a name child or name attribute.""" name_elem = elem.find('name') if name_elem is not No...
PypiClean