id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/dbpedia_ent-0.1.9-py3-none-any.whl/dbpedia_ent/dto/syn/n3/u/rev_uk.py
d_rev_uk = {'uk-saudi_arms_deal': 'al_yamamah', 'uk_2001_census': 'united_kingdom_census_2001', 'uk_african_americans': 'african_americans_in_the_united_kingdom', 'uk_agency_workers': 'united_kingdom_agency_worker_law', 'uk_album_chart': 'uk_albums_chart', 'uk_album_charts': 'uk_albums_chart', 'uk_alcohol_units...
PypiClean
/radboud_el-0.0.1-py3-none-any.whl/REL/db/generic.py
import os from functools import lru_cache from time import time import numpy as np from gensim import utils from numpy import float32 as REAL from numpy import zeros from REL.db.base import DB class GenericLookup(DB): def __init__( self, name, save_dir, table_name="embeddings", ...
PypiClean
/fastly-3.0.0.tar.gz/fastly-3.0.0/docs/RelationshipWafFirewallVersionWafFirewallVersion.md
# RelationshipWafFirewallVersionWafFirewallVersion ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **data** | [**[RelationshipMemberWafFirewallVersion]**](RelationshipMemberWafFirewallVersion.md) | | [optional] **any string name** | **bool, date, datetime...
PypiClean
/dynamo_db_resource-0.6.0-py3-none-any.whl/dynamo_db_resource/dynamo_db_table.py
from aws_schema import SchemaValidator from aws_schema.nested_dict_helper import find_path_values_in_dict from ._number_types_in_objects import ( object_with_float_to_decimal, object_with_decimal_to_float, ) from ._schema import DynamoDBValidator from .exceptions import ( ConditionalCheckFailedException, ...
PypiClean
/odoo12_addon_l10n_es_aeat-12.0.3.0.0-py3-none-any.whl/odoo/addons/l10n_es_aeat/models/l10n_es_aeat_report_tax_mapping.py
from odoo import _, api, exceptions, fields, models class L10nEsAeatReportTaxMapping(models.AbstractModel): _name = "l10n.es.aeat.report.tax.mapping" _inherit = "l10n.es.aeat.report" _description = ("Inheritable abstract model to add taxes by code mapping " "in any AEAT report") ...
PypiClean
/relic_game_tool-2022.0a7-py3-none-any.whl/relic/chunky_formats/dow/fda/audio_converter.py
import math import os import subprocess from io import BytesIO from os.path import exists, dirname from tempfile import NamedTemporaryFile from typing import BinaryIO from .chunky import FdaChunky, FdaChunk, FdaDataChunk, FdaInfoChunk from ..common_chunks.fbif import FbifChunk from ....file_formats.aiff import Aiff, M...
PypiClean
/nni-3.0rc1-py3-none-macosx_10_9_x86_64.whl/nni_node/node_modules/validator/lib/isURL.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = isURL; var _assertString = _interopRequireDefault(require("./util/assertString")); var _isFQDN = _interopRequireDefault(require("./isFQDN")); var _isIP = _interopRequireDefault(require("./isIP")); var _merge = _interop...
PypiClean
/odoo14_addon_crm_phone-14.0.1.1.0-py3-none-any.whl/odoo/addons/crm_phone/wizard/number_not_found.py
from odoo import _, fields, models from odoo.exceptions import UserError class NumberNotFound(models.TransientModel): _inherit = "number.not.found" to_update_lead_id = fields.Many2one( "crm.lead", string="Lead or Opportunity to Update", help="Lead or opportunity on which the phone nu...
PypiClean
/scflowpy-0.7.4.tar.gz/scflowpy-0.7.4/README.rst
======== scflowpy ======== .. image:: https://img.shields.io/pypi/v/scflowpy.svg :target: https://pypi.python.org/pypi/scflowpy .. image:: https://github.com/combiz/scflowpy/workflows/CI/badge.svg?branch=main :target: https://github.com/combiz/scflowpy/actions?workflow=CI :alt: CI Status .. image::...
PypiClean
/sparkpipelineframework-2.0.7-py3-none-any.whl/spark_pipeline_framework/transformers/send_automapper_to_fhir/v1/automapper_to_fhir_transformer.py
import json from typing import Any, Callable, Dict, List, Optional from spark_pipeline_framework.transformers.athena_table_creator.v1.athena_table_creator import ( AthenaTableCreator, ) from spark_pipeline_framework.transformers.fhir_exporter.v1.fhir_exporter import ( FhirExporter, ) from spark_pipeline_framew...
PypiClean
/alpha_vantage-2.3.1.tar.gz/alpha_vantage-2.3.1/alpha_vantage/techindicators.py
from .alphavantage import AlphaVantage as av class TechIndicators(av): """This class implements all the technical indicator api calls """ def __init__(self, *args, **kwargs): """ Inherit AlphaVantage base class with its default arguments """ super(TechIndicators, self).__i...
PypiClean
/openapi_python_embyapi-4.8.0.36.tar.gz/openapi_python_embyapi-4.8.0.36/openapi_python_embyapi/api/library_service/get_library_physicalpaths.py
from http import HTTPStatus from typing import Any, Dict, List, Optional, Union, cast import httpx from ... import errors from ...client import AuthenticatedClient, Client from ...types import Response def _get_kwargs( *, client: AuthenticatedClient, ) -> Dict[str, Any]: url = "{}/Library/PhysicalPaths"...
PypiClean
/ahab_py-1.0.0.tar.gz/ahab_py-1.0.0/bin/performSliceStitch.py
import ssl import xmlrpc.client import configparser from optparse import OptionParser parser = OptionParser() parser.add_option("-f", "--from-slice-id", dest="fromSliceID", help="From Slice ID, unique string") parser.add_option("-t", "--to-slice-id", dest="toSliceID", help="To Slic...
PypiClean
/trxtools-0.2.2.tar.gz/trxtools-0.2.2/LICENSE.rst
Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defi...
PypiClean
/sectools-1.3.9.tar.gz/sectools-1.3.9/README.md
![](./.github/banner.png) </br></br> # sectools - The Offensive Security Python Toolbox [![PyPI - License](https://img.shields.io/pypi/l/sectools?color=gree)](../LICENSE.md) ![PyPI - Python Version](https://img.shields.io/pypi/pyversions/sectools) ![PyPI](https://img.shields.io/pypi/v/sectools) [![Python pip build](...
PypiClean
/ivy-testing-release-0.0.0.1.tar.gz/ivy-testing-release-0.0.0.1/ivy/functional/ivy/experimental/random.py
from typing import Optional, Union, Sequence import ivy from ivy.func_wrapper import ( handle_out_argument, to_native_arrays_and_back, inputs_to_native_shapes, handle_nestable, infer_dtype, infer_device, handle_device_shifting, handle_backend_invalid, ) from ivy.utils.exceptions import h...
PypiClean
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/project.py
import os from glob import glob from sphinx.locale import __ from sphinx.util import get_matching_files from sphinx.util import logging from sphinx.util import path_stabilize from sphinx.util.matching import compile_matchers from sphinx.util.osutil import SEP, relpath if False: # For type annotation from typi...
PypiClean
/bloxroute_cli-1.109.9-py3-none-any.whl/bxutils/logging/custom_logger.py
import logging from logging import LogRecord from typing import Type from bxutils.logging.log_level import LogLevel from bxutils.logging_messages_utils import LogMessage logger_class: Type[logging.Logger] = logging.getLoggerClass() log_record_class: Type[LogRecord] = logging.getLogRecordFactory() # pyre-ignore # p...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/core/export/pytorch2onnx.py
from functools import partial import mmcv import numpy as np import torch from mmcv.runner import load_checkpoint def generate_inputs_and_wrap_model(config_path, checkpoint_path, input_config, cfg_options=None): ...
PypiClean
/nuradiomc-2.1.8.tar.gz/nuradiomc-2.1.8/NuRadioReco/examples/cr_efficiency_analysis/helper_cr_eff.py
import scipy.constants import numpy as np import json import scipy.signal from NuRadioReco.framework.event import Event from NuRadioReco.framework.station import Station from NuRadioReco.framework.channel import Channel from NuRadioReco.utilities import units import astropy class NumpyEncoder(json.JSONEncoder): "...
PypiClean
/pod-store-0.1.6.tar.gz/pod-store-0.1.6/pod_store/commands/tagging.py
from typing import Any, Callable, List, Optional, Tuple import click from ..store import Store from .filtering import Filter TAG_EPISODES_INTERACTIVE_MODE_HELP_MESSAGE_TEMPLATE = """{presenter.capitalized_performing_action} in interactive mode. Options are: h = help (display this message) y = yes ({presente...
PypiClean
/DixLibrary-0.0.1.tar.gz/DixLibrary-0.0.1/__init__.py
from sympy.core.mul import (Mul, prod) from sympy.matrices.dense import (Matrix, diag) from sympy.polys.polytools import (Poly, degree_list, rem) from sympy.simplify.simplify import simplify from sympy.tensor.indexed import IndexedBase from sympy.polys.monomials import itermonomials, monomial_deg from sympy.polys.order...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/@blueprintjs/core/lib/cjs/common/utils/compareUtils.js
"use strict"; /* * Copyright 2017 Palantir Technologies, Inc. All rights reserved. * * 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 *...
PypiClean
/fabric_cf-1.5.0b2.tar.gz/fabric_cf-1.5.0b2/fabric_cf/actor/fim/asm_update_thread.py
import logging import queue import threading import time import traceback import re from fim.slivers.base_sliver import BaseSliver from fim.slivers.capacities_labels import ReservationInfo from fabric_cf.actor.core.util.iterable_queue import IterableQueue from fabric_cf.actor.fim.fim_helper import FimHelper class A...
PypiClean
/openmetadata-ingestion-core-0.10.0.tar.gz/openmetadata-ingestion-core-0.10.0/src/metadata/generated/schema/entity/data/metrics.py
from __future__ import annotations from typing import List, Optional from pydantic import BaseModel, Extra, Field from ...type import basic, entityHistory, entityReference, tagLabel, usageDetails class Metrics(BaseModel): class Config: extra = Extra.forbid id: basic.Uuid = Field( ..., des...
PypiClean
/genie.libs.parser-23.8-py3-none-any.whl/genie/libs/parser/asa/show_failover.py
import re from genie.metaparser import MetaParser from genie.metaparser.util.schemaengine import Any, Optional from genie import parsergen class ShowFailoverSchema(MetaParser): '''Schema for: * show failover ''' schema = { 'failover_enabled': bool, 'failover_unit': str, 'f...
PypiClean
/new_sigproextractor-0.0.0.1-py3-none-any.whl/new_sigproextractor/subroutines.py
from scipy.cluster import hierarchy import matplotlib.pyplot as plt plt.switch_backend('agg') import nimfa import numpy as np import pandas as pd from sklearn import metrics import time import multiprocessing from functools import partial from scipy.optimize import minimize from numpy import linalg as LA from random i...
PypiClean
/tensorflow_object_detection-0.0.6.tar.gz/tensorflow_object_detection-0.0.6/tf_object_detection/research/object_detection/models/faster_rcnn_mobilenet_v1_feature_extractor.py
"""Mobilenet v1 Faster R-CNN implementation.""" import numpy as np import tensorflow as tf from object_detection.meta_architectures import faster_rcnn_meta_arch from object_detection.utils import shape_utils from nets import mobilenet_v1 slim = tf.contrib.slim def _get_mobilenet_conv_no_last_stride_defs(conv_dept...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/express/lib/router/route.js
'use strict'; /** * Module dependencies. * @private */ var debug = require('debug')('express:router:route'); var flatten = require('array-flatten'); var Layer = require('./layer'); var methods = require('methods'); /** * Module variables. * @private */ var slice = Array.prototype.slice; var toString = Object....
PypiClean
/aws_request_signer-1.2.0.tar.gz/aws_request_signer-1.2.0/aws_request_signer/__init__.py
import base64 import datetime import hashlib import hmac import json from typing import Any, Dict, List, Mapping, Optional, Tuple from urllib.parse import parse_qsl, quote, urlencode, urlsplit, urlunsplit __all__ = ["AwsRequestSigner", "UNSIGNED_PAYLOAD"] METHODS_WITHOUT_BODY = {"DELETE", "HEAD", "GET"} UNSIGNED_PAYL...
PypiClean
/dewloosh.geom-0.0.1a3-py3-none-any.whl/dewloosh/geom/cells/q4.py
from dewloosh.geom.polygon import Quadrilateral from dewloosh.math.array import flatten2dC from numba import njit, prange import numpy as np from numpy import ndarray __cache = True @njit(nogil=True, cache=__cache) def monoms_Q4(pcoord: np.ndarray): r, s = pcoord[:2] return np.array([1, r, s, r*s], dtype=pcoo...
PypiClean
/victron_ble-0.6.0.tar.gz/victron_ble-0.6.0/victron_ble/devices/dc_energy_meter.py
from enum import Enum from typing import Optional from construct import Int16sl, Int16ul, Int24sl, Struct from victron_ble.devices.base import AlarmReason, Device, DeviceData, kelvin_to_celsius from victron_ble.devices.battery_monitor import AuxMode class MeterType(Enum): SOLAR_CHARGER = -7 WIND_CHARGER = -...
PypiClean
/dmp-cli-0.1.5.tar.gz/dmp-cli-0.1.5/docs/_build/html/_static/underscore-1.3.1.js
(function() { // Baseline setup // -------------- // Establish the root object, `window` in the browser, or `global` on the server. var root = this; // Save the previous value of the `_` variable. var previousUnderscore = root._; // Establish the object that gets returned to break out of a loop itera...
PypiClean
/dsin100daysv31-6.0.1.tar.gz/dsin100daysv31-6.0.1/notebook/static/components/codemirror/mode/ntriples/ntriples.js
/* The following expression defines the defined ASF grammar transitions. pre_subject -> { ( writing_subject_uri | writing_bnode_uri ) -> pre_predicate -> writing_predicate_uri -> pre_object -> writing_object_uri | writing_o...
PypiClean
/client_chat_pyqt_still190494-0.1.tar.gz/client_chat_pyqt_still190494-0.1/client/client/main_window_conv.py
from PyQt5 import QtCore, QtWidgets class Ui_MainClientWindow(object): """Класс отображения основного окна""" def setupUi(self, MainClientWindow): MainClientWindow.setObjectName("MainClientWindow") MainClientWindow.resize(756, 534) MainClientWindow.setMinimumSize(QtCore.QSize(756, 534)...
PypiClean
/momo_cropper-0.0.2.tar.gz/momo_cropper-0.0.2/tools/rgb_utils.py
import cv2 import numpy as np HSV_RANGES = { # testified 'red': [ { 'lower': np.array([30, 62, 254]), 'upper': np.array([32, 64, 256]) } ], # testified 'yellow': [ { 'lower': np.array([50, 236, 254]), 'upper': np.array([70, 238...
PypiClean
/PyNormaliz-2.18.tar.gz/PyNormaliz-2.18/README.md
[![Build Status](https://github.com/Normaliz/PyNormaliz/workflows/Run%20tests/badge.svg)](https://github.com/Normaliz/PyNormaliz/actions) # PyNormaliz - A python interface to Normaliz PyNormaliz provides an interface to [Normaliz](https://www.normaliz.uni-osnabrueck.de) via libNormaliz. It offers the complete functi...
PypiClean
/kaze_python-0.8.9-py3-none-any.whl/kaze/bin/sign_message.py
import argparse from kaze.Wallets.utils import to_aes_key from kaze.Implementations.Wallets.peewee.UserWallet import UserWallet from prompt_toolkit import prompt from kaze.Core.Helper import Helper from kazecore.KeyPair import KeyPair from kaze.SmartContract.Contract import Contract from kazecore.Cryptography.Crypto im...
PypiClean
/ns-kafka-python-1.4.7.tar.gz/ns-kafka-python-1.4.7/kafka/metrics/metric_name.py
from __future__ import absolute_import import copy class MetricName(object): """ This class encapsulates a metric's name, logical group and its related attributes (tags). group, tags parameters can be used to create unique metric names. e.g. domainName:type=group,key1=val1,key2=val2 Usage l...
PypiClean
/Watson-0.1.05.tar.gz/Watson-0.1.05/watson/modules/quips.py
import datetime from watson.modules.chatmodule import ChatModule, command_function from watson.modules.mathchallenge import protect_with_math class QuipsModule(ChatModule): ''' This module contains commands for silly one-liners. Because it has a function that uses protect_with_math, it must be added to t...
PypiClean
/package_delivery_app-0.9.3-py3-none-any.whl/package_delivery_app/load.py
import csv import re from collections import namedtuple from .classes.package import Package from .classes.time_custom import Time_Custom class DistanceCsv_ValueError(BaseException): pass class PackageCsv_ValueError(BaseException): pass def read_distance_csv(csv_file): '''Return list-of-lists represen...
PypiClean
/bio-embeddings-allennlp-0.9.2.tar.gz/bio-embeddings-allennlp-0.9.2/allennlp/training/metrics/attachment_scores.py
from typing import Optional, List from overrides import overrides import torch from allennlp.training.metrics.metric import Metric @Metric.register("attachment_scores") class AttachmentScores(Metric): """ Computes labeled and unlabeled attachment scores for a dependency parse, as well as sentence level ...
PypiClean
/carrier.dhl_ecom_am-2021.10rc0-py3-none-any.whl/dhl_ecom_am_lib/tracking_response.py
from attr import s from typing import Optional, List from jstruct import JStruct, JList @s(auto_attribs=True) class Links: previous: Optional[str] = None next: Optional[str] = None @s(auto_attribs=True) class Event: location: Optional[str] = None date: Optional[str] = None time: Optional[str] = ...
PypiClean
/pyfbsdk_stub_generator-1.0.2-py3-none-any.whl/pyfbsdk_stub_generator/native_generator.py
from __future__ import annotations import inspect import types from types import ModuleType from importlib import reload from . import module_types from .module_types import StubClass, StubFunction, StubParameter, StubProperty reload(module_types) ENUMERATION_NAME = "Enumeration" ALLOWED_BUILTIN_OVERRIDES = {"__g...
PypiClean
/in-transformers-1.0.0.tar.gz/in-transformers-1.0.0/src/transformers/models/ibert/modeling_ibert.py
import math from typing import Optional, Tuple, Union import torch import torch.utils.checkpoint from torch import nn from torch.nn import BCEWithLogitsLoss, CrossEntropyLoss, MSELoss from ...activations import gelu from ...modeling_outputs import ( BaseModelOutputWithPastAndCrossAttentions, BaseModelOutputWi...
PypiClean
/petl_retouched_version-0.1.2-py3-none-any.whl/petl/util/lookups.py
from __future__ import absolute_import, print_function, division import operator from petl.compat import text_type from petl.errors import DuplicateKeyError from petl.util.base import Table, asindices, asdict, Record, rowgetter def _setup_lookup(table, key, value): # obtain iterator and header row it = i...
PypiClean
/ak_simulator-0.0.9.tar.gz/ak_simulator-0.0.9/src/data_features_processor/features_extraction.py
import pandas as pd from data_features_processor.data_features_config import SizeEstimationSelectorPx from depth_estimation_s.depth_estimation_methods import DepthEstimation from size_estimation_s.size_estimation_methods import SizeEstimationPx from weight_prediction_s.weight_prediction_methods import WeightPredictionM...
PypiClean
/wt-superset-0.34.0.tar.gz/wt-superset-0.34.0/superset/static/assets/dist/10.24c86a49e5d8450e2f06.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[10],{2669:function(n,t,e){"use strict";function r(n){var t=0,e=n.children,r=e&&e.length;if(r)for(;--r>=0;)t+=e[r].value;else t=1;n.value=t}function i(n,t){var e,r,i,o,c,f=new h(n),l=+n.value&&(f.value=n.value),p=[f];for(null==t&&(t=u);e=p.pop();)if(l&&(e.value=+e.dat...
PypiClean
/nomnomdata_engine-1.1.89-py3-none-any.whl/nomnomdata/engine/engine.py
import json import logging from collections import defaultdict from dataclasses import dataclass from enum import Enum from functools import wraps from typing import Any, Callable, Dict, List, Tuple import click import requests import yaml from nomnomdata.engine.errors import ParameterError, ValidationError from nomn...
PypiClean
/drawtf-0.11.0.tar.gz/drawtf-0.11.0/drawtf.py
import sys import time import click from watchdog.observers import Observer from watchdog.events import PatternMatchingEventHandler from app.common.drawing import commonDraw from dotenv import load_dotenv @click.group() def main(): """Top level command for drawtf.""" pass @click.command() @click.option('--na...
PypiClean
/xingyunlib_user_bin-0.0.20201206-py3-none-any.whl/xingyunlib/data.py
class Data(object): def __init__(self,initfile="",find=False): if initfile=="": raise FileExistsError("未指定打开的文件") try: if find==False: try: a = open(initfile, "r") self.data = eval(a.read()) except: a = open(initfile,"w") self.data = eval(a.read()) else: a = open(initfile, ...
PypiClean
/mlflow_tmp-2.2.26-py3-none-any.whl/mlflow/tracking/llm_utils.py
import csv import logging import mlflow import os import tempfile from mlflow.tracking.client import MlflowClient from mlflow.utils.annotations import experimental from typing import Dict, List, Union _logger = logging.getLogger(__name__) @experimental def log_predictions( inputs: List[Union[str, Dict[str, str]...
PypiClean
/deker_shell-1.0.1.tar.gz/deker_shell-1.0.1/deker_shell/main.py
import asyncio import datetime # noqa F401 import runpy import sys from typing import TYPE_CHECKING, Optional # noqa: I101 import numpy as np # noqa F401 from deker import * # noqa F403 from ptpython.repl import embed from deker_shell.config import configure from deker_shell.consts import help_start from deker...
PypiClean
/autogluon.tabular-0.7.0b20230217-py3-none-any.whl/autogluon/tabular/models/tab_transformer/pretexts.py
from copy import deepcopy import numpy as np import torch import torch.nn as nn from autogluon.core.constants import REGRESSION """ possible TODO: although there is a supervised pretext option below, i.e. pretrain using labeled data presumably from a different but related task, currently this cannot be handled by t...
PypiClean
/napalm-fork-3.4.0.post3.tar.gz/napalm-fork-3.4.0.post3/napalm/base/clitools/cl_napalm.py
from napalm.base import get_network_driver from napalm.base.clitools import helpers # stdlib import json import logging import argparse import getpass import pkg_resources from functools import wraps def debugging(name): def real_decorator(func): @wraps(func) def wrapper(*args, **kwargs): ...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/configservice/describe-config-rules.rst
**To get details for an AWS Config rule** The following command returns details for an AWS Config rule named ``InstanceTypesAreT2micro``:: aws configservice describe-config-rules --config-rule-names InstanceTypesAreT2micro Output:: { "ConfigRules": [ { "ConfigRuleState": ...
PypiClean
/signalfx_tracing-2.2.0-py3-none-any.whl/signalfx_tracing/libraries/celery_/instrument.py
from wrapt import wrap_function_wrapper import opentracing from signalfx_tracing import utils # Configures Celery tracing as described by # https://github.com/signalfx/python-celery/blob/master/README.md config = utils.Config( propagate=True, span_tags=None, tracer=None, ) _celery_new = [None] _celery_...
PypiClean
/Presentations-0.0.2.tar.gz/Presentations-0.0.2/presentations/vendor/revealjs/plugin/markdown/markdown.js
(function( root, factory ) { if( typeof exports === 'object' ) { module.exports = factory( require( './marked' ) ); } else { // Browser globals (root is window) root.RevealMarkdown = factory( root.marked ); root.RevealMarkdown.initialize(); } }( this, function( marked ) { if( typeof marked === 'undefined'...
PypiClean
/keyfactor_v_1_client-1.0.3-py3-none-any.whl/keyfactor_v_1_client/models/keyfactor_api_models_orchestrators_agent_blueprint_stores_response.py
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse") @attr.s(auto_attribs=True) class KeyfactorApiModelsOrchestratorsAgentBlueprintStoresResponse: """ Attributes: a...
PypiClean
/graudio-3.35.2-py3-none-any.whl/gradio/themes/builder_app.py
import inspect import time from typing import Iterable from gradio_client.documentation import document_fn import gradio as gr themes = [ gr.themes.Base, gr.themes.Default, gr.themes.Soft, gr.themes.Monochrome, gr.themes.Glass, ] colors = gr.themes.Color.all sizes = gr.themes.Size.all palette_ra...
PypiClean
/console_alarm-1.0.3.tar.gz/console_alarm-1.0.3/README.md
# Console Alarm **Console alarm** is a small alarm function for your console. ## Important * For now just tested on ubuntu. ## Dependencies * [PyGame](https://www.pygame.org/) and [NumPy](https://numpy.org) for creating the alarm sound. ## Usage **Console alarm** is usable with one or two numeric arguments ### One ...
PypiClean
/interlegis.portalmodelo.pl-1.0rc3.tar.gz/interlegis.portalmodelo.pl-1.0rc3/README.rst
************************************************************** Portal Modelo: Integração com sistemas do processo legislativo ************************************************************** .. contents:: Conteúdo :depth: 2 Introdução ========== Este pacote permite a integração do `Sistema de Apoio ao Processo Legi...
PypiClean
/fds.sdk.StocksAPIforDigitalPortals-0.10.12-py3-none-any.whl/fds/sdk/StocksAPIforDigitalPortals/model/inline_response200_data_share_instrument_key_figures_ratios_price_cash_flow.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.StocksAPIforDigitalPortals.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...
PypiClean
/factly_downloads-0.1.6-py3-none-any.whl/factly/downloads/wasabi_download.py
import json import os import sys from pathlib import Path import boto3 def get_obj_key(bucket): """Funtion to yield all possible file path present inside bucket Args: bucket (Bucket): s3 bucket Yields: [path]: [str] """ for obj in bucket.objects.all(): yield obj.key de...
PypiClean
/holoviews-1.17.1.tar.gz/holoviews-1.17.1/examples/reference/elements/plotly/ErrorBars.ipynb
<div class="contentcontainer med left" style="margin-left: -50px;"> <dl class="dl-horizontal"> <dt>Title</dt> <dd> ErrorBars Element</dd> <dt>Dependencies</dt> <dd>Plotly</dd> <dt>Backends</dt> <dd><a href='./ErrorBars.ipynb'>Plotly</a></dd> <dd><a href='../matplotlib/ErrorBars.ipynb'>Matplotlib</a></dd> ...
PypiClean
/ckanext_cloudstorage_api-0.2.0-py3-none-any.whl/ckanext/cloudstorage_api/storage.py
import binascii import cgi import hashlib import logging import os import ssl import traceback import boto3 import libcloud.common.types as types import libcloud.security from botocore.config import Config as BotoConfig from ckan import model from ckan.lib import munge from ckan.plugins.toolkit import ( asbool, ) ...
PypiClean
/gui/view.py
import logging import sys from tkinter import ( Tk, PanedWindow, Text, Listbox, ttk, font, StringVar, ) from .. import conf from ..document import ( GeminiNode, H1Node, H2Node, H3Node, LinkNode, ListItemNode, PreformattedNode, TextNode, ) from .model import T...
PypiClean
/fast-cat-0.0.5.tar.gz/fast-cat-0.0.5/advanced.md
## Installation Most users should just install the program locally `pip install setup.py` This document gives some additional details only interesting for some users. * [Requisites](#requisites) * [Install a scientific python distribution](#install-a-scientific-python-distribution) * [Install python and the packag...
PypiClean
/omni-data-0.1.1.tar.gz/omni-data-0.1.1/omnidata/data/budgeting.py
from typing import Tuple, List, Dict, Optional, Union, Any, Callable, Sequence, Iterator, Iterable, Type, Set import math from ..features import Prepared from ..tools.moguls import BatchMogul, EpochStatMogul, SeedingMogul, SimpleMogul from ..parameters import hparam, Parameterized from .abstract import AbstractProgre...
PypiClean
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/route53recoverycontrol/cluster.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__ = ['ClusterArgs', 'Cluster'] @pulumi.input_type class ClusterArgs: def __init__(__self__, *, ...
PypiClean
/ro-manager-0.2.20.tar.gz/ro-manager-0.2.20/rocommand/test/TestBasicCommands.py
__author__ = "Graham Klyne (GK@ACM.ORG)" __copyright__ = "Copyright 2011-2013, University of Oxford" __license__ = "MIT (http://opensource.org/licenses/MIT)" import os, os.path import sys import re import shutil import unittest import logging import datetime import StringIO from urlparse import urljoin try...
PypiClean
/AADeepLearning-1.0.8.tar.gz/AAdeepLearning-1.0.8/develop/aa_dnn_mnist_svm.py
from aa_deep_learning.AADeepLearning import AADeepLearning from aa_deep_learning.AADeepLearning.datasets import mnist from aa_deep_learning.AADeepLearning.datasets import np_utils import numpy as np np.random.seed(0) # mnist数据集已经被划分成了60,000个训练集,10,000个测试集的形式,如果数据不存在则自动下载 (x_train, y_train), (x_test, y_test) = mnist.lo...
PypiClean
/pytest-django-lite-0.1.1.tar.gz/pytest-django-lite-0.1.1/README.rst
A minimal plugin to integrate Django and py.test. Usage ===== Install the plugin: :: pip install pytest-django-lite Configuring Django ================== You have two options to configure your testsuite's Django settings. 1. Create a conftest.py ----------------------- .. code:: python def pytest_conf...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/contact_folders/item/contacts/delta/delta_response.py
from __future__ import annotations from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, Union from ......models import base_delta_function_response, contact class DeltaResponse(base_delta_function_response.BaseDeltaFunctionRespon...
PypiClean
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/themes/basic/static/underscore-1.3.1.js
(function() { // Baseline setup // -------------- // Establish the root object, `window` in the browser, or `global` on the server. var root = this; // Save the previous value of the `_` variable. var previousUnderscore = root._; // Establish the object that gets returned to break out of a loop itera...
PypiClean
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/ms/readme.md
# ms [![Build Status](https://travis-ci.org/zeit/ms.svg?branch=master)](https://travis-ci.org/zeit/ms) [![Join the community on Spectrum](https://withspectrum.github.io/badge/badge.svg)](https://spectrum.chat/zeit) Use this package to easily convert various time formats to milliseconds. ## Examples ```js ms('2 days...
PypiClean
/Pyrogram-2.0.34.tar.gz/Pyrogram-2.0.34/pyrogram/methods/messages/get_media_group.py
import logging from typing import Union, List import pyrogram from pyrogram import types log = logging.getLogger(__name__) class GetMediaGroup: async def get_media_group( self: "pyrogram.Client", chat_id: Union[int, str], message_id: int ) -> List["types.Message"]: """Get th...
PypiClean
/openimu-2.6.1.tar.gz/openimu-2.6.1/src/aceinna/devices/upgrade_workers/sdk_8100Bx_worker.py
import time import math from ..base.upgrade_worker_base import UpgradeWorkerBase from . import UPGRADE_EVENT XLDR_TESEO5_BOOTLOADER_CUT2 = \ [ 0x02, 0xf0, 0x02, 0xb8, 0x3d, 0x00, 0x00, 0x00, 0x3d, 0x00, 0x00, 0x00, 0x3d, 0x00, 0x00, 0x00, 0x3d, 0x00, 0x00, 0x00, 0x3d, 0x00, 0x00, 0x00, 0x00, 0x00,...
PypiClean
/wire-mafia-0.0.1.tar.gz/wire-mafia-0.0.1/wiremafia/cli.py
from wiremafia.blocker import block_program from wiremafia.ansi import * import os, sys import draftlog draft = draftlog.inject() def list_processes(): return os.popen("ps -A").read().split("\n")[1:-1] def list_range(offset, length, l): # this handles both negative offsets and offsets larger than list length...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/MybankCreditGuaranteeWriteoffPayRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.MybankCreditGuaranteeWriteoffPayModel import MybankCreditGuaranteeWriteoffPayModel class MybankCreditGuaranteeWriteoffPayRequest(object): def __init__(self, biz_model=None):...
PypiClean
/onshape_client-1.6.3-py3-none-any.whl/onshape_client/oas/models/tag.py
from __future__ import absolute_import import re # noqa: F401 import sys # noqa: F401 import six # noqa: F401 from onshape_client.oas.model_utils import ( # noqa: F401 ModelComposed, ModelNormal, ModelSimple, date, datetime, file_type, int, none_type, str, validate_get_comp...
PypiClean
/liquidctl-1.13.0.tar.gz/liquidctl-1.13.0/extra/windows/LQiNFO.py
import logging import sys import time import winreg import liquidctl.cli as _borrow import usb from docopt import docopt from liquidctl.driver import * LOGGER = logging.getLogger(__name__) if __name__ == '__main__': args = docopt(__doc__, version='0.0.2') frwd = _borrow._make_opts(args) devs = list(find...
PypiClean
/whylabs_toolkit-0.0.11-py3-none-any.whl/whylabs_toolkit/monitor/manager/manager.py
import logging import json from pathlib import Path from typing import Optional, Union, Any, List from jsonschema import validate, ValidationError from whylabs_client.api.notification_settings_api import NotificationSettingsApi from whylabs_client.api.models_api import ModelsApi from whylabs_toolkit.monitor.manager.m...
PypiClean
/numericube-twistranet-2.0.0.zip/numericube-twistranet-2.0.0/twistranet/themes/twistheme/static/js/tiny_mce/themes/advanced/langs/th.js
tinyMCE.addI18n('th.advanced',{ style_select:"\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A", font_size:"\u0E02\u0E19\u0E32\u0E14\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", fontdefault:"\u0E40\u0E25\u0E37\u0E2D\u0E01\u0E15\u0E31\u0E27\u0E2D\u0E31\u0E01\u0E29\u0E23", block:"\u0E23\u0E39\u0E1B\u0E41\u0E1A\u0E1A", paragraph...
PypiClean
/pyhumod-0.4.tar.gz/pyhumod-0.4/docs/CoolApps.rst
Sample applications =================== sms_exec.py ----------- The program executes remote commands sent in via SMS and replies with the command output. .. code:: python #!/usr/bin/env python # sms_exec.py # A sample application import os import humod def sms_exec(modem, message): ...
PypiClean
/slack_types-0.0.2-py3-none-any.whl/slack_types/web_api/conversations_history_response.py
from dataclasses import dataclass from typing import Optional, Any, List, Dict, TypeVar, Callable, Type, cast T = TypeVar("T") def from_str(x: Any) -> str: assert isinstance(x, str) return x def from_none(x: Any) -> Any: assert x is None return x def from_union(fs, x): for f in fs: ...
PypiClean
/smolder-0.6.0.0.tar.gz/smolder-0.6.0.0/docs/outcomes.md
Outcomes ======== Outcomes are where the logic goes. We verify the response from the server against these defined outcomes. Pass or fail scenarios are defined below. Outcomes | Description ----------------------|----------------------------- response_body_contains | PASS if string in body. response_body_doesnt_cont...
PypiClean
/scphylo_tools-0.0.4-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl/scphylo/tl/solver/huntress/_huntress.py
import itertools import time from multiprocessing import Process, Queue import numpy as np __author__ = "Can Kizilkale" __date__ = "12/30/21" prfp = 5 def Reconstruct( df_input, Algchoice="FPNA", auto_tune=1, overlapp_coeff=0.3, hist_coeff=20, fnfp=100, fnc=1, postprcoef=5, post...
PypiClean
/roseau_load_flow-0.5.0-py3-none-any.whl/roseau/load_flow/models/loads/loads.py
import logging from abc import ABC from collections.abc import Sequence from typing import Any, Literal, Optional import numpy as np from roseau.load_flow.converters import calculate_voltage_phases, calculate_voltages from roseau.load_flow.exceptions import RoseauLoadFlowException, RoseauLoadFlowExceptionCode from ro...
PypiClean
/django_image_sourceset-0.3.4.tar.gz/django_image_sourceset-0.3.4/django_image_sourceset/utils.py
import hashlib import os import requests from django.conf import settings from django.contrib.staticfiles.storage import staticfiles_storage from django.core.files.base import ContentFile from django.core.files.storage import FileSystemStorage, default_storage from django.db.models.fields.files import ImageFieldFile f...
PypiClean
/critic-review-2.0.1.tar.gz/critic-review-2.0.1/src/background/githook.py
import asyncio import io import json import logging import os import sys import time import traceback logger = logging.getLogger("background.githook") import api import base import dbutils import gitutils import textutils import background.service import background.utils import dbutils import auth try: from cus...
PypiClean
/django-stachoutils-4.2.1.tar.gz/django-stachoutils-4.2.1/README.rst
====================== Stachou's Django Utils ====================== .. image:: https://coveralls.io/repos/github/Starou/django-stachoutils/badge.svg?branch=master :target: https://coveralls.io/github/Starou/django-stachoutils?branch=master .. image:: https://img.shields.io/pypi/v/django_stachoutils.svg :target...
PypiClean
/distri_bak-0.1.tar.gz/distri_bak-0.1/distri_bak/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution std...
PypiClean
/pymech-1.4.1.tar.gz/pymech-1.4.1/docs/exadata.rst
.. _exadata: exadata.py ========== This module contains the classes for the data structures used by :ref:`neksuite` and :ref:`simsonsuite`. The :ref:`exadata-contents` are reported at the bottom of this page. exadata ------- The main data class is :py:class:`pymech.exadata.exadata` which is a structure for general ...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/ofp.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def ofp(path): """Visits to Physician Office a cross-section *number of observations* : 440...
PypiClean
/causal_world-1.2-py3-none-any.whl/causal_world/evaluation/protocols/protocol_generator.py
from causal_world.evaluation.protocols.protocol import ProtocolBase import numpy as np import re class ProtocolGenerator(ProtocolBase): def __init__(self, name, first_level_regex, second_level_regex, variable_space='space_a_b'): """ This specifies a fully random ...
PypiClean
/funkiio-1.0.1-py3-none-any.whl/homeassistant/components/sony_projector/switch.py
import logging import voluptuous as vol from homeassistant.components.switch import (SwitchDevice, PLATFORM_SCHEMA) from homeassistant.const import ( STATE_ON, STATE_OFF, CONF_NAME, CONF_HOST) import homeassistant.helpers.config_validation as cv _LOGGER = logging.getLogger(__name__) DEFAULT_NAME = 'Sony Project...
PypiClean
/zcatalyst_cliq-0.0.1-py3-none-any.whl/zcatalyst_cliq/response_types.py
from dataclasses import dataclass from typing import Any, Dict, List, Literal from .request_types import User SlideType = Literal['table', 'list', 'images', 'text', 'label'] ButtonType = Literal['+', '-'] ActionType = Literal['invoke.function', 'system.api', 'open.url', 'preview.url'] CardTheme = Literal['default', 'p...
PypiClean
/spare_blockchain-1.0.3-py3-none-any.whl/spare/consensus/deficit.py
from typing import Optional from spare.consensus.block_record import BlockRecord from spare.consensus.constants import ConsensusConstants from spare.util.ints import uint8, uint32 def calculate_deficit( constants: ConsensusConstants, height: uint32, prev_b: Optional[BlockRecord], overflow: bool, ...
PypiClean
/pulumi_azure-5.50.0a1693462503.tar.gz/pulumi_azure-5.50.0a1693462503/pulumi_azure/network/network_interface_nat_rule_association.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['NetworkInterfaceNatRuleAssociationArgs', 'NetworkInterfaceNatRuleAssociation'] @pulumi.input_type class NetworkInterfaceNatRuleAssociationArgs: ...
PypiClean