id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/twitchchatget-1.0.2rc0.tar.gz/twitchchatget-1.0.2rc0/docs/modules/twitchstream.rst
twitchstream package ==================== Submodules ---------- twitchstream.chat module ------------------------ .. automodule:: twitchstream.chat :members: :undoc-members: :show-inheritance: twitchstream.inputvideo module ------------------------------ .. automodule:: twitchstream.inputvideo :mem...
PypiClean
/djangoldp_needle-0.1.102.tar.gz/djangoldp_needle-0.1.102/djangoldp_needle/views/booklet_contributor.py
from django.core.exceptions import ObjectDoesNotExist from djangoldp.serializers import LDPSerializer from djangoldp.views import LDPViewSet from django.db.models import Q from djangoldp_account.models import LDPUser from rest_framework.exceptions import ValidationError from rest_framework.generics import get_object_o...
PypiClean
/clickhouse_orm-2.2.2-py3-none-any.whl/clickhouse_orm/engines.py
import logging from .utils import comma_join, get_subclass_names logger = logging.getLogger("clickhouse_orm") class Engine(object): def create_table_sql(self, db): raise NotImplementedError() # pragma: no cover class TinyLog(Engine): def create_table_sql(self, db): return "TinyLog" clas...
PypiClean
/examples/quadrotor.py
import os import sys import crocoddyl import pinocchio import numpy as np import example_robot_data WITHDISPLAY = 'display' in sys.argv or 'CROCODDYL_DISPLAY' in os.environ WITHPLOT = 'plot' in sys.argv or 'CROCODDYL_PLOT' in os.environ hector = example_robot_data.load('hector') robot_model = hector.model target_po...
PypiClean
/autodeploy-0.2.5.2.tar.gz/fablib.py
import yaml import os import sys from fabric.api import run, env, cd, puts class ServerSSH(object): # В конструктор класса передается объект класса Settings, # который содержит в себе все необходимые настройки def __init__(self, yaml_file, host): with open(yaml_file) as f: yaml_config...
PypiClean
/pulumi_oci-1.9.0a1693465256.tar.gz/pulumi_oci-1.9.0a1693465256/pulumi_oci/meteringcomputation/get_schedules.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__ = [ 'GetSchedulesResult', 'AwaitableGetSchedulesResult', 'get_schedules', 'get_schedules_o...
PypiClean
/txt_to_html-0.0.1.tar.gz/txt_to_html-0.0.1/resources/MathJax-2.7.2/unpacked/extensions/TeX/mediawiki-texvc.js
MathJax.Extension["TeX/mediawiki-texvc"] = { version: "2.7.2" }; MathJax.Hub.Register.StartupHook("TeX Jax Ready", function () { MathJax.InputJax.TeX.Definitions.Add({ macros: { AA: ["Macro", "\u00c5"], alef: ["Macro", "\\aleph"], alefsym: ["Macro", "\\aleph"], Alpha: ["Macro", "\\mathr...
PypiClean
/pyboozo-1.0.8-py3-none-any.whl/boozo/__main__.py
__author__ = 'mangalbhaskar' import logging import logging.config import os import pathlib import shutil import sys import click this = sys.modules[__name__] this_dir = os.path.dirname(__file__) clear = lambda: os.system('clear') clear() from .config._log_ import logcfg log = logging.getLogger('__main__.'+__name__...
PypiClean
/onlinepayments-sdk-python2-4.14.0.zip/onlinepayments-sdk-python2-4.14.0/onlinepayments/sdk/domain/mandate_address.py
from onlinepayments.sdk.data_object import DataObject class MandateAddress(DataObject): """ | Object containing billing address details. | Required for Create mandate and Create payment calls. | Required for Create hostedCheckout calls where the IBAN is also provided. """ __city = None __...
PypiClean
/time_interpret-0.3.0-py3-none-any.whl/tint/metrics/weights/lime_weights.py
import torch from torch.nn import CosineSimilarity def lime_weights( distance_mode: str = "cosine", kernel_width: float = 1.0, ): """ Compute lime similarity weights given original and perturbed inputs. Args: distance_mode (str, optional): Mode to compute distance. Either ``'...
PypiClean
/sage-superset-1.0.0.tar.gz/sage-superset-1.0.0/superset/static/assets/node_modules_svgr_webpack_lib_index_js_-svgo_titleProp_ref_src_assets_images_icons_error_solid_svg.79b8632d.chunk.js
"use strict"; /* * ATTENTION: An "eval-source-map" devtool has been used. * This devtool is neither made for production nor for readable output files. * It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools. * If you are trying to read the output file, select a dif...
PypiClean
/msoiflood-1.0-py3-none-any.whl/flood_tool/geo.py
from numpy import array, asarray, mod, sin, cos, tan, sqrt, arctan2, floor, rad2deg, deg2rad, stack, pi from scipy.linalg import inv import numpy as np __all__ = ['get_easting_northing_from_gps_lat_long', 'get_gps_lat_long_from_easting_northing'] class Ellipsoid(object): """ Data structure for a globa...
PypiClean
/D-Collector-0.9.2.tar.gz/D-Collector-0.9.2/README.md
# D-Collector **TLDR; D-Collector is a tool that fetches DNS records from various DNS management and cloud providers and normalize all records to a unified format.** --- ## Description Most of the enterprises nowadays are using multiple different cloud providers and DNS registrars. That creates a fertile ground for...
PypiClean
/airflow-provider-fivetran-async-1.1.2.tar.gz/airflow-provider-fivetran-async-1.1.2/fivetran_provider_async/sensors.py
from __future__ import annotations from typing import TYPE_CHECKING, Any from airflow.exceptions import AirflowException from airflow.sensors.base import BaseSensorOperator if TYPE_CHECKING: from airflow.utils.context import Context from fivetran_provider_async.hooks import FivetranHook from fivetran_provider_a...
PypiClean
/cloud_ml_sdk-0.3.71.tar.gz/cloud_ml_sdk-0.3.71/cloud_ml_sdk/models/models_util.py
import json import re from datetime import datetime import time import os import errno import tarfile import netaddr import tempfile from cloud_ml_sdk.client import CloudMlClient from cloud_ml_sdk.client import CLOUDML_UPLOAD_PACKAGE_DIR from . import constant kube_resource_name_regex = "[a-z0-9]([-a-z0-9]*[a-z0-9])...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/doctrine/README.md
[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] [![Downloads][downloads-image]][downloads-url] [![Join the chat at https://gitter.im/eslint/doctrine](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/eslint/doctrine?utm_sourc...
PypiClean
/prefab_cloud_python-0.5.1-py3-none-any.whl/prefab_cloud_python/context.py
from threading import current_thread class InvalidContextFormatException(Exception): "Raised when a provided context is neither a NamedContext nor a dict" def __init__(self, context): super().__init__( "Expected a NamedContext or dict, received a", str(type(context)) ) class Con...
PypiClean
/approw-py-sdk-1.0.8.tar.gz/approw-py-sdk-1.0.8/approw/v2/common/utils.py
import rsa import base64 import json import re import string import random from dateutil import parser try: # python 3 from urllib.parse import urlencode except: # python 2 from urllib import urlencode def encrypt(plainText, publicKey): # type:(str,str) -> str data = rsa.encrypt( plai...
PypiClean
/scico-0.0.4.tar.gz/scico-0.0.4/examples/scripts/sparsecode_pgm.py
r""" Basis Pursuit DeNoising (APGM) ============================== This example demonstrates the solution of the the sparse coding problem $$\mathrm{argmin}_{\mathbf{x}} \; (1/2) \| \mathbf{y} - D \mathbf{x} \|_2^2 + \lambda \| \mathbf{x} \|_1\;,$$ where $D$ the dictionary, $\mathbf{y}$ the signal to be represe...
PypiClean
/salt-ssh-9000.tar.gz/salt-ssh-9000/doc/topics/channels/index.rst
.. _channels: ============= Salt Channels ============= One of the fundamental features of Salt is remote execution. Salt has two basic "channels" for communicating with minions. Each channel requires a client (minion) and a server (master) implementation to work within Salt. These pairs of channels will work togethe...
PypiClean
/suji-0.1.0.tar.gz/suji-0.1.0/README.ja.rst
==== suji ==== suji は日本語や数字で表記された数値表現の文字列を実際の数値へ変換するライブラリです。 また、数値表現を漢数字に変換することもできます。 日本語数値表現から数値への変換: ------------------------- 漢数字を数値変換できます。 文字列 `1つの価格が二兆30万五千十7円になります。` から値 `1` と `2000000005017` を抽出します。 また、 `打率は三割二分五厘です。` を値 `0.325` に抽出します。 **value:** 返却される値は文字列です。 入力文字列に数値表現がない場合、 `value` は入力文字列を返却します。 **va...
PypiClean
/scphylo_tools-0.0.4-cp39-cp39-manylinux_2_12_i686.manylinux2010_i686.whl/scphylo/commands/solver/_phiscs.py
import os import click import scphylo as scp @click.command(short_help="Run PhISCS (CSP version).") @click.argument( "genotype_file", required=True, type=click.Path( exists=True, file_okay=True, dir_okay=False, readable=True, resolve_path=True ), ) @click.argument( "alpha", required=...
PypiClean
/package_helper_2_test-0.2.0.tar.gz/package_helper_2_test-0.2.0/CONTRIBUTING.rst
.. highlight:: shell ============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com...
PypiClean
/Heralding-1.0.7.tar.gz/Heralding-1.0.7/heralding/capabilities/http.py
# This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along...
PypiClean
/azure_mgmt_containerservice-26.0.0-py3-none-any.whl/azure/mgmt/containerservice/v2022_07_02_preview/aio/operations/_fleets_operations.py
from io import IOBase from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ...
PypiClean
/telegramexplorer-0.2.5.tar.gz/telegramexplorer-0.2.5/TEx/modules/telegram_report_generator/telegram_export_file_generator.py
import hashlib import logging import os import shutil from configparser import ConfigParser from operator import attrgetter from typing import Dict, List from _hashlib import HASH from sqlalchemy.engine import ChunkedIteratorResult from TEx.core.base_module import BaseModule from TEx.core.dir_manager import Director...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/offazure/get_private_endpoint_connection.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs __all__ = [ 'GetPrivateEndpointConnectionResult', 'AwaitableGetPrivateEndpointConnectionResult', 'get_private_endpoint_connec...
PypiClean
/garmindb-3.4.0.tar.gz/garmindb-3.4.0/scripts/mshealth.py
__author__ = "Tom Goetz" __copyright__ = "Copyright Tom Goetz" __license__ = "GPL" import sys import argparse import logging from garmindb import ConfigManager, format_version from garmindb.mshealthdb import MSHealthDb, MSHealthData, MSVaultData, Analyze logging.basicConfig(filename='mshealth.log', filemode='w', le...
PypiClean
/kcai_bentoml-1.0.20.post2-py3-none-any.whl/bentoml/_internal/yatai_rest_api_client/yatai.py
import io import logging from typing import Optional from urllib.parse import urljoin import requests from .schemas import UserSchema from .schemas import BentoSchema from .schemas import ModelSchema from .schemas import schema_to_json from .schemas import schema_from_json from .schemas import CreateBentoSchema from ...
PypiClean
/synapse_token_authenticator-0.3.2.tar.gz/synapse_token_authenticator-0.3.2/synapse_token_authenticator/token_authenticator.py
import re from typing import Awaitable, Callable, Optional, Tuple import logging from jwcrypto import jwt, jwk from jwcrypto.common import JWException, json_decode import os import base64 import synapse from synapse.module_api import ModuleApi from synapse.types import UserID, create_requester logger = logging.getLog...
PypiClean
/django-frontend-static-1.2.0.tar.gz/django-frontend-static-1.2.0/djfrontend/static/djfrontend/js/jquery/jquery.formset/1.2/jquery.formset.min.js
;(function($){$.fn.formset=function(opts) {var options=$.extend({},$.fn.formset.defaults,opts),flatExtraClasses=options.extraClasses.join(' '),$$=$(this),applyExtraClasses=function(row,ndx){if(options.extraClasses){row.removeClass(flatExtraClasses);row.addClass(options.extraClasses[ndx%options.extraClasses.length]);}},...
PypiClean
/fprime_tools-3.3.3-py3-none-any.whl/fprime/util/help_text.py
import os import sys # Attempt to get pkg_resources from "setuptools" try: import pkg_resources VERSION = pkg_resources.get_distribution("fprime-tools").version except ImportError: VERSION = "(unknown version)" EXECUTABLE = os.path.basename(sys.argv[0]) MNEMONIC_HELP_MAP = { "global_help": f"""{EXEC...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/uhd_restpy/testplatform/sessions/ixnetwork/topology/ovsdbcontroller_789ff2911c009a5ce719da4041ccbf73.py
import sys from uhd_restpy.base import Base from uhd_restpy.files import Files if sys.version_info >= (3, 5): from typing import List, Any, Union class Ovsdbcontroller(Base): """ The Ovsdbcontroller class encapsulates a list of ovsdbcontroller resources that are managed by the user. A list of resource...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/setuptools/command/egg_info.py
from distutils.filelist import FileList as _FileList from distutils.errors import DistutilsInternalError from distutils.util import convert_path from distutils import log import distutils.errors import distutils.filelist import os import re import sys import io import warnings import time import collections from setup...
PypiClean
/INDIpy-0.4.0.tar.gz/INDIpy-0.4.0/indi/client/vectors.py
from typing import Tuple, Type, Union from indi import message from indi.client import elements from indi.client.events import StateUpdate from indi.message import checks class Vector: def_message_class: Type[message.DefVector] set_message_class: Union[ Type[message.SetBLOBVector], Type[messa...
PypiClean
/rezdy_api_for_suppliers_client-1.0.1.tar.gz/rezdy_api_for_suppliers_client-1.0.1/rezdy_api_for_suppliers_client/models/form_data_content_disposition.py
import datetime from typing import Any, Dict, List, Type, TypeVar, Union import attr from dateutil.parser import isoparse from ..models.form_data_content_disposition_parameters import FormDataContentDispositionParameters from ..types import UNSET, Unset T = TypeVar("T", bound="FormDataContentDisposition") @attr.s(...
PypiClean
/neuro-flow-23.7.0.tar.gz/neuro-flow-23.7.0/src/neuro_flow/config_loader.py
import dataclasses import abc import asyncio import logging from contextlib import asynccontextmanager, suppress from io import StringIO, TextIOWrapper from neuro_sdk import Client from pathlib import PureWindowsPath from subprocess import CalledProcessError from tempfile import TemporaryDirectory from typing import A...
PypiClean
/swh.web-0.2.37.tar.gz/swh.web-0.2.37/static/jssources/@sentry/utils/esm/instrument.js
import { isString } from './is.js'; import { logger, CONSOLE_LEVELS } from './logger.js'; import { fill } from './object.js'; import { getFunctionName } from './stacktrace.js'; import { supportsNativeFetch } from './supports.js'; import { getGlobalObject } from './worldwide.js'; import { supportsHistory } from './vendo...
PypiClean
/rekall_gui-1.5.0.post4.tar.gz/rekall_gui-1.5.0.post4/manuskript/static/bower_components/ng-file-upload-shim/angular-file-upload-shim.min.js
!function(){var a=function(){try{var a=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");if(a)return!0}catch(b){if(void 0!=navigator.mimeTypes["application/x-shockwave-flash"])return!0}return!1},b=function(a,b){window.XMLHttpRequest.prototype[a]=b(window.XMLHttpRequest.prototype[a])};if(window.XMLHttpRequest){if(!wind...
PypiClean
/oblv_ctl-0.4.1.tar.gz/oblv_ctl-0.4.1/oblv_ctl/models/static_service.py
import json from typing import Any, Dict, List, Type, TypeVar, Union, cast import attr from ..types import UNSET, Unset from .static_service_arguments import StaticServiceArguments T = TypeVar("T", bound="StaticService") @attr.s(auto_attribs=True, repr=False) class StaticService: """ Attributes: id...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_0/models/host_group_get_response.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_0 import models class HostGroupGetResponse(object): """ Attributes: swagger_types (dict): The key is attribute name and the val...
PypiClean
/brkt-cli-1.0.15.tar.gz/brkt-cli-1.0.15/brkt_cli/version.py
import json import urllib2 from distutils.version import LooseVersion import logging import datetime import iso8601 log = logging.getLogger(__name__) VERSION = '1.0.15' def _is_version_supported(version, supported_versions): """ Return True if the given version string is at least as high as the earliest...
PypiClean
/asyncrpc-0.1.4.tar.gz/asyncrpc-0.1.4/README.rst
Installation ------------- :: $ pip install asyncrpc Getting started ---------------- Client ~~~~~~ .. code-block:: python import asyncio from asyncrpc.client import UniCastClient if __name__ == '__main__': client = UniCastClient( interfaces_info=[('127.0.0.1', 9001)] ) ...
PypiClean
/openstack_heat-20.0.0.0rc2-py3-none-any.whl/heat/engine/resources/openstack/ironic/port.py
from heat.common import exception from heat.common.i18n import _ from heat.engine import attributes from heat.engine import constraints from heat.engine import properties from heat.engine import resource from heat.engine import support from heat.engine import translation class Port(resource.Resource): """A resou...
PypiClean
/gesture_recognizer-0.3.11-py3-none-any.whl/gesture_recognizer/FistRecognizer.py
import cv2 import os import time class FistRecognizer(object): def __init__(self, interval=1.0/30.0, print_pos=True): ''' Threading The recognize_fist method will be started and it will run in the background until the application exits. :type interval: int :param interval: Check interval, in seconds '''...
PypiClean
/django_simple_notes-0.0.3-py3-none-any.whl/django_simple_notes/migrations/0001_initial.py
# Django import django.db.models.deletion from django.conf import settings from django.db import migrations, models # Third party import djangocms_text_ckeditor.fields import taggit_autosuggest.managers class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dep...
PypiClean
/cointraderkr-0.2.0-py3-none-any.whl/collectors/metric_collector.py
import os import pytz import pandas as pd from dotenv import load_dotenv from typing import Any, List, Dict from datetime import datetime, timezone from influxdb_client.client.write_api import ASYNCHRONOUS, SYNCHRONOUS from influxdb_client import InfluxDBClient, Point, WritePrecision load_dotenv(override=True) INFLU...
PypiClean
/amuse-tutorial-2023.5.0.tar.gz/amuse-tutorial-2023.5.0/tutorial/03-Generic_units.ipynb
``` %%bash # preamble script to check and install AMUSE components if necessary # required packages for this tutorial: PACKAGES="amuse-framework" # skip in case a full development install is present pip show amuse-devel && exit 0 for package in ${PACKAGES} do pip show ${package} || pip install ${package} done # th...
PypiClean
/GSAE-0.2-py3-none-any.whl/gsae/utils/load_splits.py
import numpy as np import torch import torch.utils.data from torch import nn, optim from torch.nn import functional as F from gsae.utils import eval_metrics # DEFINE THESE GLOBAL VARIABLES WITH YOUR OWN PATHS TO DATA ######################################## SEQ3_DATA_DIR = '' SEQ4_DATA_DIR = '' HIVTAR_DATA_DIR = '' ...
PypiClean
/log_utils-0.4.1-py3-none-any.whl/log_utils/data_logger/core.py
import logging import time from typing import List, Union, Iterable from .handlers import DataHandlerBase # noinspection PyPep8Naming class DataLogger(logging.Logger): def __init__(self, name='', level=logging.NOTSET) -> None: super().__init__(name, level) self.handlers_data = [] # type: List[D...
PypiClean
/os_sys-2.1.4-py3-none-any.whl/server/db/backends/oracle/compiler.py
from server.db import NotSupportedError from server.db.models.sql import compiler class SQLCompiler(compiler.SQLCompiler): def as_sql(self, with_limits=True, with_col_aliases=False): """ Create the SQL for this query. Return the SQL string and list of parameters. This is overridden from th...
PypiClean
/pawpaw-1.0.0rc1.tar.gz/pawpaw-1.0.0rc1/docs/1. Segment and Span.md
# Segments and Span ## Definitions **string:** an ordered sequence of **n** characters; the *length* of a string is equivalent to **n**: $$0 \leq n \equiv length$$ **substring:** an ordered sequence of **m** characters *contained in* or *equal to* a reference string of length **n**; may exist in more than one *...
PypiClean
/icing-0.1.9.tar.gz/icing-0.1.9/scripts/ici_analysis.py
from __future__ import print_function import argparse import cPickle as pkl import gzip import imp import logging import os import time from icing import __version__ from icing.core import analyse_results from icing.utils import extra def main(dumpfile): """Run icing analysis.""" # Load the configuration fi...
PypiClean
/gqrx_client-0.0.1a4.tar.gz/gqrx_client-0.0.1a4/docs/index.rst
.. Gqrx Client documentation master file, created by sphinx-quickstart on Sun Aug 27 11:30:00 2023. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to Gqrx Client's documentation! ======================================= .. toctree:: :...
PypiClean
/bowler-0.9.0.tar.gz/bowler-0.9.0/docs/api-filters.md
--- id: api-filters title: Filters --- Filters in Bowler are intermediate functions that optionally restrict the set of syntax tree elements originally matched by [selectors](api-selectors) before being modified. Matched elements must "pass" all filters to get modified – elements that fail a filter will be dropped imm...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/esphome/dashboard.py
from __future__ import annotations import asyncio from datetime import timedelta import logging from typing import Any import aiohttp from awesomeversion import AwesomeVersion from esphome_dashboard_api import ConfiguredDevice, ESPHomeDashboardAPI from homeassistant.config_entries import SOURCE_REAUTH, ConfigEntrySt...
PypiClean
/cs.threads-20230331-py3-none-any.whl/cs/threads.py
from collections import defaultdict, namedtuple from contextlib import contextmanager from heapq import heappush, heappop from inspect import ismethod import sys from threading import ( current_thread, Semaphore, Thread as builtin_Thread, Lock, local as thread_local, ) from typing import Any, Mappin...
PypiClean
/fullpy-0.1.tar.gz/fullpy-0.1/client/auth.py
# 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 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be usefu...
PypiClean
/Sauri-0.4.tar.gz/Sauri-0.4/sauri/messaging/blocking/factory.py
from messaging.types import Type from messaging.blocking.protocols import Protocol from messaging.blocking.amqppublisher import AMQPPublisher from messaging.blocking.amqpsubscriber import AMQPSubscriber import logging logger = logging.getLogger(__name__) class BlockingMessagerFactory(object): """ Factory to creat...
PypiClean
/intelliw_onnx-1.0.0rc1-py3-none-any.whl/intelliw_onnx/convert/pt2onnx.py
import os import sys import importlib import importlib.util import numpy as np from intelliw_onnx.utils.logger import get_logger logger = get_logger("CONVERT") try: import torch except Exception as e: logger.error( f"\033[33mError: {e}, Please install torch(pip install torch)\033[0m") sys.exit(-1)...
PypiClean
/dpytest-0.7.0.tar.gz/dpytest-0.7.0/HISTORY.md
# History ## 0.7.0 ⚠️ Warning ⚠️: This can be **breaking** : The `configure` function has changed. It nows accepts either an `int` (like in the previous version) OR a `list` of `string` for the parameters `guilds`, `text_channels`, `voice_channels` and `members`. But the names of the parameters had to be changed. ...
PypiClean
/cpas_toolbox-1.0.0-py3-none-any.whl/cpas_toolbox/cpas_methods/_rbppose/tools/geom_utils.py
import numpy as np import torch import torch.nn as nn from .rot_utils import get_rot_mat_y_first, get_vertical_rot_vec def azel2uni(view_para, homo=True): """ :param view_para: tensor in shape of (N, 6 / 2) az, el, scale, x, y, z :return: scale: (N, 1), trans: (N, 3). rot: (N, 4, 4) """ if view_p...
PypiClean
/consensual_http-0.1.0.tar.gz/consensual_http-0.1.0/consensual_http/core/sender.py
from asyncio import (Queue, get_event_loop) from typing import (Any, Collection, Dict, Union) from aiohttp import (ClientError, ClientSession, web_ws) from consensual.raft import (MessageKind, ...
PypiClean
/copasi_basico-0.52-py3-none-any.whl/basico/compartment_array_tools.py
from basico import * import matplotlib.pyplot as plt from matplotlib.animation import FuncAnimation import numpy as np from . import model_io try: from PIL import Image except ImportError: pass _DEFAULT_Y_LABEL = 'volume y' _DEFAULT_X_LABEL = 'volume x' _TITLE_FORMAT_STRING = 'concentrations of "{0}" for eac...
PypiClean
/monk_cuda100_test-0.0.1-py3-none-any.whl/monk/tf_keras_1/finetune/level_12_losses_main.py
from monk.tf_keras_1.finetune.imports import * from monk.system.imports import * from monk.tf_keras_1.finetune.level_11_optimizers_main import prototype_optimizers class prototype_losses(prototype_optimizers): ''' Main class for all parameters in expert mode Args: verbose (int): Set verbosity le...
PypiClean
/gbptestheat-2014.2.tar.gz/gbptestheat-2014.2.dev114.gc2f22b1/heat/engine/api.py
from heat.common.i18n import _ from heat.common import param_utils from heat.common import template_format from heat.engine import constraints as constr from heat.openstack.common import log as logging from heat.openstack.common import timeutils from heat.rpc import api LOG = logging.getLogger(__name__) def extract...
PypiClean
/py_snatch-2.26.0-py3-none-any.whl/snatch/receita_federal_pj.py
from dataclasses import dataclass from datetime import date from enum import Enum from typing import Any, Dict, List, Optional, Type from loguru import logger from marshmallow import EXCLUDE, Schema, fields, post_load, pre_load from snatch.base.data import BaseData from snatch.base.data_source import BaseSnatch from ...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/networkrepository/cage10.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def Cage10( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/networkrepository", **additional_graph_kwargs: Dict...
PypiClean
/mera_tvm_full-1.4.0-cp36-cp36m-manylinux_2_27_x86_64.whl/tvm/relay/frontend/tensorflow.py
"""TF: Tensorflow frontend.""" import warnings from collections import defaultdict # Numpy support import numpy as np import tvm from tvm.ir import IRModule from tvm.relay.prelude import Prelude from tvm.relay.transform import InferType from .. import analysis from .. import expr as _expr from .. import function as ...
PypiClean
/consumetpy-0.1.2.tar.gz/consumetpy-0.1.2/README.md
# consumetpy A Python wrapper for the [Consumet API](https://api.consumet.org/) that provides easy access to the different categories and providers of the API. ## Installation To install consumetpy, run the following command: ```bash pip install consumetpy ``` ## Usage The package includes different classes for t...
PypiClean
/h2o_pysparkling_2.1-3.32.1.7-1.tar.gz/h2o_pysparkling_2.1-3.32.1.7-1/ai/h2o/sparkling/ml/models/H2OGBMMOJOModel.py
from ai.h2o.sparkling.ml.params.H2OMOJOModelParams import H2OTreeBasedSupervisedMOJOModelParams from pyspark.ml.util import _jvm from ai.h2o.sparkling.Initializer import Initializer from ai.h2o.sparkling.ml.models.H2OMOJOSettings import H2OMOJOSettings from ai.h2o.sparkling.ml.params.H2OTypeConverters import H2OTypeCo...
PypiClean
/highcharts_stock-1.3.0.tar.gz/highcharts_stock-1.3.0/highcharts_stock/options/series/bar.py
from typing import Optional, List from highcharts_stock.options.series.data.cartesian import CartesianData, Cartesian3DData from highcharts_stock.options.series.data.bar import (BarData, WaterfallData, WindBarbD...
PypiClean
/noc-0.7(3).tar.gz/noc-0.7(3)/static/img/fam/silk/readme.txt
Silk icon set 1.3 _________________________________________ Mark James http://www.famfamfam.com/lab/icons/silk/ _________________________________________ This work is licensed under a Creative Commons Attribution 2.5 License. [ http://creativecommons.org/licenses/by/2.5/ ] This means you may use it for any purpose, ...
PypiClean
/smartdata-1.0.tar.gz/smartdata-1.0/smartui/static/admin/simpleui-x/elementui/umd/locale/sk.js
(function (global, factory) { if (typeof define === "function" && define.amd) { define('element/locale/sk', ['module', 'exports'], factory); } else if (typeof exports !== "undefined") { factory(module, exports); } else { var mod = { exports: {} }; factory(mod, mod.exports); global.EL...
PypiClean
/saml2art-0.0.5.tar.gz/saml2art-0.0.5/README.md
# saml2art CLI tool which enables you to login and retrieve Artifactory credentials using OKTA Identity Provider. The process is: * Configure Okta app url, Artifactory host, username * Prompt user for credentials * Log in to Okta Identity Provider using form based authentication * Build a SAML assertion * Login to A...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/web/v20160301/get_certificate.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__ = [ 'GetCertificateResult', 'AwaitableGetCertificateResult', 'get_certificate', 'get_certificate_output', ] @pu...
PypiClean
/sberpm-2.5.1.tar.gz/sberpm-2.5.1/tutorials/tutorial_en.ipynb
# Process Mining with sberpm __`sberpm`__ library is designed to analyse and investigate processes, display them as graphs and solve related classification and clustering problems using machine learning algorithms. To get the full version of the library, write an email with a request to aabugaenko@sberbank.ru The ...
PypiClean
/monk_cuda92-0.0.1-py3-none-any.whl/monk/gluon/models/return_model.py
from monk.gluon.models.imports import * from monk.system.imports import * from monk.gluon.models.models import * from monk.gluon.models.common import create_final_layer from monk.gluon.models.common import get_layer_uid from monk.gluon.models.layers import custom_model_get_layer from monk.gluon.models.layers import add...
PypiClean
/aolab-bmi3d-0.9.6.tar.gz/aolab-bmi3d-0.9.6/riglib/bmi/sskfdecoder.py
import numpy as np from . import bmi from . import kfdecoder class SteadyStateKalmanFilter(bmi.GaussianStateHMM): """ Low-level KF in steady-state Model: x_{t+1} = Ax_t + w_t; w_t ~ N(0, W) y_t = Cx_t + q_t; q_t ~ N(0, Q) """ model_attrs = ['F', 'K'] def __init__(self,...
PypiClean
/pysen_plugins-2023.5.22-py3-none-any.whl/pysen_plugins/cmake_format.py
import dataclasses import logging import pathlib from typing import Optional, Sequence import dacite from pysen import ( CommandBase, ComponentBase, Config, PluginBase, PluginConfig, RunOptions, SingleFileFormatCommandBase, Source, process_utils, ) from pysen.component import LintC...
PypiClean
/sqlalchemy-hana-0.5.0.tar.gz/sqlalchemy-hana-0.5.0/docs/index.rst
sqlalchemy-hana documentation ============================= .. toctree:: :maxdepth: 2 :caption: Contents: This dialect allows you to use the SAP HANA database with SQLAlchemy. It can use the supported SAP HANA Python Driver `hdbcli` (supported since SAP HANA SPS 2) or the open-source pure Python client `PyHDB`...
PypiClean
/gspread-formatting-1.1.2.tar.gz/gspread-formatting-1.1.2/gspread_formatting/models.py
from .util import _props_to_component, _extract_props, _extract_fieldrefs, \ _parse_string_enum, _underlower, _range_to_gridrange_object import re class FormattingComponent(object): _FIELDS = () _DEFAULTS = {} @classmethod def from_props(cls, props): return _props_to_co...
PypiClean
/python-docx-0.8.11.tar.gz/python-docx-0.8.11/docs/dev/analysis/features/text/breaks.rst
Breaks ====== Word supports a variety of breaks that interrupt the flow of text in the document: * line break * page break * column break * section break (new page, even page, odd page) In addition, a page break can be forced by formatting a paragraph with the "page break before" setting. This analysis is limited ...
PypiClean
/bluesky-simulator-2022.12.22.tar.gz/bluesky-simulator-2022.12.22/bluesky/plugins/ilsgate.py
in BlueSky as the description of your plugin. """ import numpy as np # Import the global bluesky objects. Uncomment the ones you need from bluesky import stack #, settings, navdb, traf, sim, scr, tools from bluesky import navdb from bluesky.tools.aero import ft from bluesky.tools import geo, areafilter ### Initia...
PypiClean
/celery-yywing-4.4.7.tar.gz/celery-yywing-4.4.7/celery/backends/consul.py
from __future__ import absolute_import, unicode_literals from kombu.utils.encoding import bytes_to_str from kombu.utils.url import parse_url from celery.backends.base import KeyValueStoreBackend from celery.exceptions import ImproperlyConfigured from celery.utils.log import get_logger try: import consul except I...
PypiClean
/arango_crud-1.0.5.tar.gz/arango_crud-1.0.5/arango_crud/helper.py
import logging import requests import time from http.client import responses logger = logging.getLogger(__name__) def http_get(config, url: str, **kwargs): return http_method('get', config, url, **kwargs) def http_post(config, url: str, **kwargs): return http_method('post', config, url, **kwargs) def htt...
PypiClean
/nlp-text-search-0.6.16.tar.gz/nlp-text-search-0.6.16/nlp_text_search/models/bilstm_siamese_network.py
from deeppavlov.core.common.registry import register from keras import backend as K from keras import losses from keras.initializers import glorot_uniform, Orthogonal from keras.layers import (Input, LSTM, Embedding, GlobalMaxPooling1D, Lambda, Dense, Layer, Multiply, Bidirectional) from keras.models import Model from ...
PypiClean
/efmlrs-2.3.6.tar.gz/efmlrs-2.3.6/docs/efmlrs.util.rst
efmlrs.util package =================== Submodules ---------- efmlrs.util.convert\_matrix module ---------------------------------- .. automodule:: efmlrs.util.convert_matrix :members: :undoc-members: :show-inheritance: efmlrs.util.data module ----------------------- .. automodule:: efmlrs.util.data :m...
PypiClean
/logicmin-0.4.0.tar.gz/logicmin-0.4.0/README.rst
LogicMin: Logic Minimization in Python ====================================== Minimize logic functions. Description ----------- LogicMin is a Python package that minimize boolean functions using the tabular method of minimization (Quine-McCluskey). An object represent a truth table to which rows are added. After al...
PypiClean
/cvisp_demo-0.1.0-py3-none-any.whl/cvisp/utils.py
import os import numpy as np import rawpy import cv2 import torch from tqdm import tqdm import torch.nn as nn # from colour_demosaicing import demosaicing_CFA_Bayer_bilinear, demosaicing_CFA_Bayer_Malvar2004, demosaicing_CFA_Bayer_Menon2007 class Demosaic_RAW(): def __init__(self, mode : str = None, input_data_pat...
PypiClean
/yak_server-0.33.0-py3-none-any.whl/yak_server/database/migrations/env.py
import logging from logging.config import fileConfig from alembic import context from yak_server.database import engine from yak_server.database.models import Base # this is the Alembic Config object, which provides # access to the values within the .ini file in use. config = context.config # Interpret the config f...
PypiClean
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/categories/migrations/0001_initial.py
import django.db.models.deletion import mptt.fields from django.conf import settings from django.db import migrations, models from ...acl.models import permissions_default class Migration(migrations.Migration): initial = True dependencies = [ ("misago_acl", "0001_initial"), migrations.swappa...
PypiClean
/isedit-0.3.0.tar.gz/isedit-0.3.0/js/node_modules/vexflow/README.md
# VexFlow VexFlow is an open-source library for rendering music notation. It is written in TypeScript (compiled to ES6), and outputs scores to HTML Canvas and SVG. It works in browsers and also in Node.js projects (e.g., a command line script to save a score as a PDF). The guide below refers to VexFlow 4. If you need...
PypiClean
/pyglyph-0.5.3-py3-none-any.whl/glyph/observer.py
import logging import matplotlib import matplotlib.pyplot as plt import numpy as np logger = logging.getLogger(__name__) def get_limits(x, factor=1.1): """Calculates the plot range given an array x.""" avg = np.nanmean(x) range_ = np.nanmax(x) - np.nanmin(x) if range_ == 0: range_ = 0.5 ...
PypiClean
/OSG-Gratia-Viewer-0.1.tar.gz/OSG-Gratia-Viewer-0.1/ez_setup/__init__.py
import sys DEFAULT_VERSION = "0.6c7" DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3] md5_data = { 'setuptools-0.6b1-py2.3.egg': '8822caf901250d848b996b7f25c6e6ca', 'setuptools-0.6b1-py2.4.egg': 'b79a8a403e4502fbb85ee3f1941735cb', 'setuptools-0.6b2-py2.3.egg': '5657759...
PypiClean
/rpdb2-2.0.0.1.2.tar.gz/rpdb2-2.0.0.1.2/rpdb/breakpoint.py
import copyreg as copy_reg import threading from rpdb.events import CEventBreakpoint from rpdb.utils import as_bytes, as_unicode, print_debug, winlower from rpdb.source_provider import ENCODING_SOURCE, MODULE_SCOPE, MODULE_SCOPE2, SCOPE_SEP from rpdb.breakinfo import CBreakInfoManager class CBreakPoint(object): ...
PypiClean
/datasette-surveys-1.1.8.tar.gz/datasette-surveys-1.1.8/datasette_surveys/static/lib/ckeditor/plugins/a11yhelp/dialogs/lang/es.js
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","es",{title:"Instrucciones de accesibilidad",contents:"Ayuda. Para cerrar presione ESC.",legend:[{name:"General",items:[{name:"Barra de he...
PypiClean
/entur-api-1.0.tar.gz/entur-api-1.0/entur_api/Activity.py
from xml.etree import ElementTree class Activity: activity = None namespaces = {'siri': 'http://www.siri.org.uk/siri'} def __init__(self, activity): self.activity = activity if not type(activity) == ElementTree.Element: raise ValueError('Invalid argument type: %s, should be ' ...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/sites/item/term_stores/item/sets/item/parent_group/sets/item/children/item/relations/item/set/set_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/rdf_cty_ccy-0.1.7.tar.gz/rdf_cty_ccy-0.1.7/README.md
# RDF Country and Currency Graph Library This library builds an RDF graph of country and currency codes based on the following ontologies: + https://www.omg.org/spec/LCC/Countries/ISO3166-1-CountryCodes/ + https://spec.edmcouncil.org/fibo/ontology/FND/Accounting/ISO4217-CurrencyCodes/ Both of these graphs are in Tur...
PypiClean