id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/l-thonny-4.1.2.tar.gz/l-thonny-4.1.2/thonny/locale/pt_BR/HELP_CONTENT/program_arguments.rst
Executando seus programas com argumentos de linha de comando ============================================================ Quando você está editando *me_programa.py* e pressiona F5, o Thonny constrói um comando mágico ``%Run meu_programa.py`` e o envia para o Shell, que pede ao backend do Thonny para executar esse prog...
PypiClean
/cdktf-cdktf-provider-azurerm-10.0.1.tar.gz/cdktf-cdktf-provider-azurerm-10.0.1/src/cdktf_cdktf_provider_azurerm/data_azurerm_kubernetes_cluster/__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 DataAzurermKubernetesCluster( _cdktf_9a9027ec.Terr...
PypiClean
/xarray_leaflet-0.1.16.tar.gz/xarray_leaflet-0.1.16/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- You can install xarray-leaflet with pip: .. code-block:: console $ pip install xarray_leaflet Or with conda (or mamba): .. code-block:: console $ conda install xarray_leaflet From sources ------------ The sourc...
PypiClean
/jsonresolver-0.3.2.tar.gz/jsonresolver-0.3.2/CONTRIBUTING.rst
Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com/inveniosoftware/jsonresolver/issues. If you are reporting a bug, pl...
PypiClean
/django-arquea-2.4.17.tar.gz/django-arquea-2.4.17/configuracao/static/js/tiny_mce/themes/advanced/js/about.js
tinyMCEPopup.requireLangPack(); function init() { var ed, tcont; tinyMCEPopup.resizeToInnerSize(); ed = tinyMCEPopup.editor; // Give FF some time window.setTimeout(insertHelpIFrame, 10); tcont = document.getElementById('plugintablecontainer'); document.getElementById('plugins_tab').style.display = 'none'; ...
PypiClean
/gladiaio_torchaudio-2.1.0a0-py3-none-any.whl/torchaudio/prototype/models/conv_emformer.py
import math from typing import List, Optional, Tuple import torch from torchaudio.models.emformer import _EmformerAttention, _EmformerImpl, _get_weight_init_gains def _get_activation_module(activation: str) -> torch.nn.Module: if activation == "relu": return torch.nn.ReLU() elif activation == "gelu":...
PypiClean
/nniv04-0.4.1-py3-none-any.whl/nniv04-0.4.1.data/data/nni/node_modules/gauge/index.js
'use strict' var Plumbing = require('./plumbing.js') var hasUnicode = require('has-unicode') var hasColor = require('./has-color.js') var onExit = require('signal-exit') var defaultThemes = require('./themes') var setInterval = require('./set-interval.js') var process = require('./process.js') var setImmediate = requir...
PypiClean
/aliyun-python-sdk-ens-3.0.13.tar.gz/aliyun-python-sdk-ens-3.0.13/aliyunsdkens/request/v20171110/CreateLoadBalancerUDPListenerRequest.py
from aliyunsdkcore.request import RpcRequest class CreateLoadBalancerUDPListenerRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'Ens', '2017-11-10', 'CreateLoadBalancerUDPListener','ens') self.set_method('POST') def get_LoadBalancerId(self): # String return self.get_query_params().get('Lo...
PypiClean
/tropycal-1.2.tar.gz/tropycal-1.2/examples/tracks.storm.py
import tropycal.tracks as tracks import datetime as dt ########################################### # HURTDAT2 Dataset # ---------------- # Let's start by creating an instance of a TrackDataset object. By default, this reads in the HURDAT2 dataset from the National Hurricane Center (NHC) website. For this example we'l...
PypiClean
/PyNDN-2.13b1.tar.gz/PyNDN-2.13b1/python/pyndn/encoding/protobuf_tlv.py
import sys from pyndn.encoding.tlv.tlv_encoder import TlvEncoder from pyndn.encoding.tlv.tlv_decoder import TlvDecoder from pyndn.util.blob import Blob from pyndn.util.common import Common from pyndn.name import Name class ProtobufTlv(object): @staticmethod def encode(message): """ Encode the P...
PypiClean
/dyconnmap-1.0.3.tar.gz/dyconnmap-1.0.3/docs/sphinxext/numpy_ext/docscrape.py
import inspect import textwrap import re import pydoc from warnings import warn # Try Python 2 first, otherwise load from Python 3 try: from io import StringIO except: from io import StringIO class Reader(object): """A line-based string reader. """ def __init__(self, data): """ P...
PypiClean
/visiology-py-0.10.2.tar.gz/visiology-py-0.10.2/README.md
# visiology-py [![pipeline status](https://gitlab.com/polymedia-orv/orv/visiology-py/badges/master/pipeline.svg)](https://gitlab.com/polymedia-orv/orv/visiology-py/-/commits/master) [![PyPI version](https://badge.fury.io/py/visiology-py.png)](https://badge.fury.io/py/visiology-py) Высокоуровневые обертки и вспомогате...
PypiClean
/moto-ext-4.2.0.post1.tar.gz/moto-ext-4.2.0.post1/moto/transcribe/responses.py
import json from moto.core.responses import BaseResponse from moto.utilities.aws_headers import amzn_request_id from .models import transcribe_backends, TranscribeBackend class TranscribeResponse(BaseResponse): def __init__(self) -> None: super().__init__(service_name="transcribe") @property def...
PypiClean
/apache_tvm-0.12.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/tvm/topi/nn/depth_to_space.py
"""TVM operator depth_to_space compute.""" from __future__ import absolute_import import tvm from tvm import te from .. import tag def depth_to_space(data, block_size, layout="NCHW", mode="DCR"): """Perform depth to space transformation on the data Parameters ---------- data : tvm.te.Tensor 4...
PypiClean
/django-currency_rates-0.4.tar.gz/django-currency_rates-0.4/README.rst
===================== django-currency-rates ===================== Django currencies and exchange rates for django projects You need a key from http://openexchangerates.org/ to get the echange rates Features ======== - Currencies and exchange rates models - Exchange rates with diferent rates for diferent dates - Loa...
PypiClean
/mayan-exif-1.0.0.tar.gz/mayan-exif-1.0.0/README.rst
Description ----------- Mayan EDMS app that extract image documents' EXIF data. License ------- This project is open sourced under the `MIT License`_. .. _`MIT License`: https://gitlab.com/mayan-edms/versionlifespan/raw/master/LICENSE Installation ------------ Clone repository in a directory outside of Mayan EDMS::...
PypiClean
/tensorflow-ml-1.1.3.2.tar.gz/tensorflow-ml-1.1.3.2/README.md
# tensorflow-ml ![Keras](https://img.shields.io/badge/Keras-FF0000?style=for-the-badge&logo=keras&logoColor=white) ![Tensorflow](https://img.shields.io/badge/TensorFlow-FF6F00?style=for-the-badge&logo=tensorflow&logoColor=white) ![PyPI](https://img.shields.io/badge/pypi-3775A9?style=for-the-badge&logo=pypi&logoColor=w...
PypiClean
/django-dojo-0.0.1.tar.gz/django-dojo-0.0.1/dojo/static/dojo/dojo/_base/Color.js
define(["./kernel", "./lang", "./array", "./config"], function(dojo, lang, ArrayUtil, config){ var Color = dojo.Color = function(/*Array|String|Object*/ color){ // summary: // Takes a named string, hex string, array of rgb or rgba values, // an object with r, g, b, and a properties, or another `Color` object ...
PypiClean
/SQLAlchemy-smartnow-1.4.31.tar.gz/SQLAlchemy-smartnow-1.4.31/lib/sqlalchemy/sql/coercions.py
import numbers import re from . import operators from . import roles from . import visitors from .base import ExecutableOption from .base import Options from .traversals import HasCacheKey from .visitors import Visitable from .. import exc from .. import inspection from .. import util from ..util import collections_a...
PypiClean
/combalg_py-0.0.3-py3-none-any.whl/combalg/rooted_tree.py
import random as rng rooted_tree_count = {} def random(nn): ''' Returns a random rooted tree on nn vertices :param nn: number of vertices in the output tree. :type nn: int :return: a random rooted tree :rtype: list The returned list is in `Prufer Code <https://en.wikipedia.org/wiki/Pr%C3%...
PypiClean
/unimatrix.ext.kms-0.10.0.tar.gz/unimatrix.ext.kms-0.10.0/unimatrix/ext/kms/jsonwebkeyset.py
import collections import json import typing from .utils import b64decode from .jsonwebkey import JSONWebKey INT_MEMBERS = {'e', 'n', 'x', 'y'} class JSONWebKeySet: """Contains a JSON Web Key Set (JWKS). The current imlementation of :class:`JSONWebKeySet` only supports public keys for RSA and Elliptic ...
PypiClean
/mka142-apprise-0.9.4.tar.gz/mka142-apprise-0.9.4/apprise/attachment/AttachHTTP.py
import re import os import six import requests from tempfile import NamedTemporaryFile from .AttachBase import AttachBase from ..common import ContentLocation from ..URLBase import PrivacyMode from ..AppriseLocale import gettext_lazy as _ class AttachHTTP(AttachBase): """ A wrapper for HTTP based attachment ...
PypiClean
/datalab_on_jupyter-2.2.1-py3-none-any.whl/datalab_on_jupyter/dist/47-a7619b747f7846fd0a20.bundle.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[47],{1720:function(e,t,o){"use strict";o.r(t),o.d(t,"conf",function(){return n}),o.d(t,"language",function(){return r});var n={wordPattern:/(-?\d*\.\d\w*)|([^\`\~\!\#\%\^\&\*\(\)\-\=\+\[\{\]\}\\\|\;\:\'\"\,\.\<\>\/\?\s]+)/g,comments:{lineComment:"//",blockComment:["{...
PypiClean
/google-cloud-monitoring-2.15.1.tar.gz/google-cloud-monitoring-2.15.1/google/cloud/monitoring_v3/services/snooze_service/pagers.py
from typing import ( Any, AsyncIterator, Awaitable, Callable, Sequence, Tuple, Optional, Iterator, ) from google.cloud.monitoring_v3.types import snooze from google.cloud.monitoring_v3.types import snooze_service class ListSnoozesPager: """A pager for iterating through ``list_snoo...
PypiClean
/mxnet_alas-0.0.5-py3-none-macosx_10_13_x86_64.whl/mxnet/model.py
# pylint: disable=fixme, invalid-name, too-many-arguments, too-many-locals, too-many-lines # pylint: disable=too-many-branches, too-many-statements """MXNet model module""" import os import time import logging import warnings from collections import namedtuple import numpy as np from . import io from . import ndarra...
PypiClean
/jija-orm-0.2.2.tar.gz/jija-orm-0.2.2/jija_orm/config/core.py
from __future__ import annotations import os import pathlib import re import typing if typing.TYPE_CHECKING: from jija_orm.models import Model import asyncpg from jija_orm import config from jija_orm import exceptions class JijaORM: APPS: typing.List = None CONNECTION = None PROJECT_DIR = None ...
PypiClean
/masci_tools-0.15.0-py3-none-any.whl/masci_tools/vis/common.py
from enum import Enum __all__ = ( 'set_default_backend', 'PlotBackend', 'set_defaults', 'reset_defaults', 'show_defaults', 'save_defaults', 'load_defaults', 'get_help', 'get_plotter', 'dos', 'spinpol_dos', 'bands', 'spinpol_bands', 'scatter', 'line', ) _DEFA...
PypiClean
/gooddata-fdw-1.5.0.tar.gz/gooddata-fdw-1.5.0/gooddata_fdw/filter.py
from __future__ import annotations import datetime import re from typing import Union import gooddata_fdw.column_utils as column_utils from gooddata_fdw.environment import ColumnDefinition, Qual from gooddata_fdw.pg_logging import _log_debug, _log_info from gooddata_sdk import AbsoluteDateFilter, Attribute, Filter, N...
PypiClean
/dm-meltingpot-2.2.0.tar.gz/dm-meltingpot-2.2.0/meltingpot/configs/substrates/predator_prey__random_forest.py
from ml_collections import config_dict from meltingpot.configs.substrates import predator_prey as base_config from meltingpot.utils.substrates import map_helpers from meltingpot.utils.substrates import specs build = base_config.build ASCII_MAP = """ /;___________________,/ ;]XAXXXXXXXAXXXXXXXAX[, !XXXXXXXXXXXXXXXXXX...
PypiClean
/pysundials-2.3.0-rc4.zip/pysundials-2.3.0-rc4/examples/cvodes/serial/cvsadjkryx_int.py
try: from pysundials import cvodes from pysundials import nvecserial except ImportError: import cvodes import nvecserial import ctypes import math AA = 1.0 EE = 1.0e4 GG = 0.5e-6 BB = 1.0 DPREY = 1.0 DPRED = 0.5 ALPH = 1.0 NP = 3 NS = (2*NP) MX = 20 MY = 20 MXNS = (MX*NS) AX = 1.0 AY = 1.0 DX = (AX/float(MX-1)) ...
PypiClean
/django-arkid-0.1.3.tar.gz/django-arkid-0.1.3/arkid/siteapi/v1/serializers/node.py
from ....oneid_meta.models import Dept, Group class NodeSerialzierMixin(): ''' node serializer 部分公用功能 ''' node_type = '' @property def node_prefix(self): ''' 形如 `g_` ''' return self.node_cls.NODE_PREFIX @property def node_type_plural(self): ''...
PypiClean
/django-lb-workflow-1.0.4.tar.gz/django-lb-workflow-1.0.4/lbworkflow/simplewf/migrations/0001_initial.py
from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ("lbworkflow", "0003_auto_20200221_0438"), ] ...
PypiClean
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/pyrogram/methods/messages/send_video.py
import os import re from datetime import datetime from typing import Union, BinaryIO, List, Optional, Callable import pyrogram from pyrogram import StopTransmission, enums from pyrogram import raw from pyrogram import types from pyrogram import utils from pyrogram.errors import FilePartMissing from pyrogram.file_id i...
PypiClean
/nulink_web3-1.0.3-py3-none-any.whl/web3/_utils/request.py
from collections import ( OrderedDict, ) import os import threading from typing import ( Any, Dict, ) from aiohttp import ( ClientSession, ClientTimeout, ) from eth_typing import ( URI, ) import lru import requests from web3._utils.caching import ( generate_cache_key, ) class SessionCach...
PypiClean
/certora_cli_alpha_jtoman_cert_2192-20230517.22.6.429667-py3-none-any.whl/certora_cli/EVMVerifier/certoraNodeFilters.py
from typing import Any, Dict import os import sys sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) from Shared.certoraUtils import NoValEnum class NodeFilters: class NodeType(NoValEnum): def is_this_node_type(self, type_name_node: Dict[str, Any]) -> bool: return type_name_node...
PypiClean
/onegov.org-1.6.1.tar.gz/onegov.org-1.6.1/onegov/org/forms/settings.py
import re from lxml import etree from onegov.form import Form from onegov.form import with_options from onegov.form.fields import MultiCheckboxField, TagsField from onegov.form.fields import PreviewField from onegov.gis import CoordinatesField from onegov.org import _ from onegov.org.forms.fields import HtmlField from...
PypiClean
/ooouno-2.1.2-py3-none-any.whl/ooo/lo/table/cell_range_address.py
from ooo.oenv.env_const import UNO_NONE import typing class CellRangeAddress(object): """ Struct Class contains a cell range address within a spreadsheet document. See Also: `API CellRangeAddress <https://api.libreoffice.org/docs/idl/ref/structcom_1_1sun_1_1star_1_1table_1_1CellRangeAddress....
PypiClean
/hecto_agent-0.0.3-py3-none-any.whl/ha/model.py
import torch import torch.nn as nn import torch.nn.functional as F from .ctc import ctc_forward_score3, ctc_reduce_mean from .star import star_ctc_forward_score class Encoder(nn.Module): def __init__(self, input_dim=13, subsample_dim=128, hidden_dim=1024): super().__init__() self.dropout = nn.Drop...
PypiClean
/django-lfs-0.11.tar.gz/django-lfs-0.11/lfs/manage/static/tiny_mce-3.5.8/plugins/noneditable/editor_plugin.js
(function(){var c=tinymce.dom.TreeWalker;var a="contenteditable",d="data-mce-"+a;var e=tinymce.VK;function b(n){var j=n.dom,p=n.selection,r,o="mce_noneditablecaret",r="\uFEFF";function m(t){var s;if(t.nodeType===1){s=t.getAttribute(d);if(s&&s!=="inherit"){return s}s=t.contentEditable;if(s!=="inherit"){return s}}return ...
PypiClean
/comt-2.6.4.tar.gz/comt-2.6.4/src/cm/media/js/lib/yui/yui3-3.15.0/src/charts/js/CartesianChartLegend.js
var TOP = "top", RIGHT = "right", BOTTOM = "bottom", LEFT = "left", EXTERNAL = "external", HORIZONTAL = "horizontal", VERTICAL = "vertical", WIDTH = "width", HEIGHT = "height", POSITION = "position", _X = "x", _Y = "y", PX = "px", PieChartLegend, LEGEND = { setter: function(val) { var legend = this.get(...
PypiClean
/lnd-proto-0.14.3b0.tar.gz/lnd-proto-0.14.3b0/lnd_proto/stateservice_pb2_grpc.py
"""Client and server classes corresponding to protobuf-defined services.""" import grpc from lnd_proto import stateservice_pb2 as lnd__proto_dot_stateservice__pb2 class StateStub(object): """ Comments in this file will be directly parsed into the API Documentation as descriptions of the associated method...
PypiClean
/ti_sdk_python-1.3.30.tar.gz/ti_sdk_python-1.3.30/src/ti/client/cos_client.py
from __future__ import absolute_import, print_function import errno import os from qcloud_cos import CosConfig from qcloud_cos import CosS3Client from qcloud_cos import CosServiceError class CosClient(object): def __init__(self, region, secret_id, secret_key, token=None): self.region = region s...
PypiClean
/tensorflow_cpu_test_package-2.11.0rc0-cp38-cp38-win_amd64.whl/tensorflow/python/ops/while_v2_indexed_slices_rewriter.py
"""Methods for rewriting while_v2 grad functions with IndexedSlices output.""" from tensorflow.python.framework import constant_op from tensorflow.python.framework import dtypes from tensorflow.python.framework import func_graph from tensorflow.python.framework import indexed_slices from tensorflow.python.framework im...
PypiClean
/rabbitmqpy-0.0.4.tar.gz/rabbitmqpy-0.0.4/README.md
# rabbitmqpy #### 介绍 This is a simple Python plug-in that can be used to connect to db. #### 软件架构 软件架构说明 #### 安装教程 1. xxxx 2. xxxx 3. xxxx #### 使用说明 1. xxxx 2. xxxx 3. xxxx #### 参与贡献 1. Fork 本仓库 2. 新建 Feat_xxx 分支 3. 提交代码 4. 新建 Pull Request #### 特技 1. 使用 Readme\_XXX.md 来支持不同的语言,例如 Readme\_en.md, R...
PypiClean
/geowatch-0.9.4.tar.gz/geowatch-0.9.4/watch/gis/digital_globe.py
r""" Helpers for reading data downloaded from digital globe Notes: The data in the Core3D dataset is public and can be rehosted. https://spacenet.ai/core3d/ AWS_PROFILE=iarpa aws s3 ls s3://spacenet-dataset/Hosted-Datasets/CORE3D-Public-Data/Satellite-Images/ AWS_PROFILE=iarpa aws s3 ls s3://spacene...
PypiClean
/monk_pytorch_cpu_test-0.0.11.tar.gz/monk_pytorch_cpu_test-0.0.11/monk/gluon/losses/return_loss.py
from monk.gluon.losses.imports import * from monk.system.imports import * @accepts(dict, post_trace=False) #@TraceFunction(trace_args=False, trace_rv=False) def load_loss(system_dict): ''' Load loss function in native library Args: system_dict (dict): System dictionary storing experiment state and s...
PypiClean
/datasette-surveys-1.1.8.tar.gz/datasette-surveys-1.1.8/datasette_surveys/static/lib/tinymce/plugins/media/plugin.min.js
tinymce.PluginManager.add("media",function(a,b){function c(a){return-1!=a.indexOf(".mp3")?"audio/mpeg":-1!=a.indexOf(".wav")?"audio/wav":-1!=a.indexOf(".mp4")?"video/mp4":-1!=a.indexOf(".webm")?"video/webm":-1!=a.indexOf(".ogg")?"video/ogg":-1!=a.indexOf(".swf")?"application/x-shockwave-flash":""}function d(b){var c=a....
PypiClean
/kernel_driver-0.0.7.tar.gz/kernel_driver-0.0.7/kernel_driver/paths.py
import os import sys import tempfile import glob import uuid from typing import List, Dict def _expand_path(s): if os.name == "nt": i = str(uuid.uuid4()) s = s.replace("$\\", i) s = os.path.expandvars(os.path.expanduser(s)) if os.name == "nt": s = s.replace(i, "$\\") return s ...
PypiClean
/django-geosource-0.5.3.tar.gz/django-geosource-0.5.3/django_geosource/serializers.py
from os.path import basename import psycopg2 import requests from django.contrib.gis.geos import GEOSGeometry from django.contrib.gis.gdal.error import GDALException from django.db import transaction from django.utils.translation import ugettext as _ from psycopg2 import sql from rest_framework.serializers import ( ...
PypiClean
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/eslint/lib/rules/callback-return.js
"use strict"; //------------------------------------------------------------------------------ // Rule Definition //------------------------------------------------------------------------------ module.exports = { meta: { docs: { description: "require `return` statements after callbacks", ...
PypiClean
/tl4sm-0.22.tar.gz/tl4sm-0.22/README.txt
========================================== Transfer Learning for Smart Manufacturing ========================================== # TL4SM **A Python package for performing transfer learning between multivariate time series using data from various similar, but not necessarily related sources. ** The baseline model is a...
PypiClean
/restless_cloud-0.1.1-py3-none-any.whl/restless/openapi.py
import json import yaml from restless import Handler from datetime import datetime from collections import Hashable from inspect import _empty from restless.parameters import BinaryParameter from restless.security import Security from typing import List, Union from restless.util import snake_to_camel from enum import E...
PypiClean
/inference_core-0.8.0-py3-none-any.whl/inference/core/nms.py
from typing import Optional import numpy as np # Malisiewicz et al. def non_max_suppression_fast(boxes, overlapThresh): """Applies non-maximum suppression to bounding boxes. Args: boxes (np.ndarray): Array of bounding boxes with confidence scores. overlapThresh (float): Overlap threshold for...
PypiClean
/iranlowo-0.0.8.3.tar.gz/iranlowo-0.0.8.3/src/onmt/decoders/transformer.py
import torch import torch.nn as nn from onmt.decoders.decoder import DecoderBase from onmt.modules import MultiHeadedAttention, AverageAttention from onmt.modules.position_ffn import PositionwiseFeedForward class TransformerDecoderLayer(nn.Module): """ Args: d_model (int): the dimension of keys/values/...
PypiClean
/epiprofile-2.1-py3-none-any.whl/epiprofile-2.1.data/scripts/epidaurus.py
#import built-in modules import os,sys import collections from numpy import nan_to_num,corrcoef,sqrt,array from scipy.stats import kendalltau, spearmanr, trim_mean #import third-party modules import pyBigWig from bwpmodule import BED #changing history to this module __author__ = "Liguo Wang" __copyright__ = "Copyri...
PypiClean
/crypto_trader_ArtifaxXx-0.0.1-py3-none-any.whl/main/casino_bot.py
from utility_functions import get_exchange_data, recalculate_casino_bot_sell_price def execute_casino_bot(): # Inputs: # exchange, # ticker, # percentage of deposit to use, # profit margin parameter, # buy order spread # Bot is triggered by the call of the function # It connects to...
PypiClean
/lnregtest-0.2.2.tar.gz/lnregtest-0.2.2/README.md
lnregtest - Lightning Networks on Bitcoin regtest ================================================= Implements functioning lightning networks for (Python) integration testing operating on a Bitcoin regtest network by running several lightning node instances. The simulated lightning networks can have different shape...
PypiClean
/virt-manager-pure-cli-yen3-1.5.0.2.tar.gz/virt-manager-pure-cli-yen3-1.5.0.2/virtinst/support.py
import libvirt from . import util # Check that command is present in the python bindings, and return the # the requested function def _get_command(funcname, objname=None, obj=None): if not obj: obj = libvirt if objname: if not hasattr(libvirt, objname): return None ...
PypiClean
/karrio.amazon_mws-2023.4.4-py3-none-any.whl/karrio/providers/amazon_mws/tracking.py
import amazon_mws_lib.tracking_response as amazon import typing import karrio.lib as lib import karrio.core.models as models import karrio.providers.amazon_mws.error as error import karrio.providers.amazon_mws.utils as provider_utils def parse_tracking_response( _response: lib.Deserializable[typing.List[typing.Tu...
PypiClean
/ansible-base-2.10.17.tar.gz/ansible-base-2.10.17/lib/ansible/playbook/base.py
from __future__ import (absolute_import, division, print_function) __metaclass__ = type import itertools import operator from copy import copy as shallowcopy from functools import partial from jinja2.exceptions import UndefinedError from ansible import constants as C from ansible import context from ansible.module...
PypiClean
/yt-dlp-2023.7.6.tar.gz/yt-dlp-2023.7.6/yt_dlp/extractor/mediasite.py
import re import json from .common import InfoExtractor from ..compat import ( compat_str, compat_urlparse, ) from ..utils import ( ExtractorError, float_or_none, mimetype2ext, str_or_none, try_call, try_get, smuggle_url, unsmuggle_url, url_or_none, urljoin, ) _ID_RE =...
PypiClean
/parse-k8s-resources-0.0.3.tar.gz/parse-k8s-resources-0.0.3/parse_k8s_resources/main.py
import argparse import json import os.path import sys import prettytable as pt from tabulate import tabulate tb = pt.PrettyTable() tb_sum = pt.PrettyTable() def get_args(): parser = argparse.ArgumentParser( prog='parse_deployment_resource', description="Statistics k8s deployment/statefulset memo...
PypiClean
/signalfx_tracing-2.2.0-py3-none-any.whl/signalfx_tracing/instrumentation.py
import logging import pkgutil import sys import os from .constants import traceable_libraries, auto_instrumentable_libraries from .utils import is_truthy, get_module, instrumentation_disabled log = logging.getLogger(__name__) # This set of helpers operates under the assumption that a library # is a string represen...
PypiClean
/csv_detective-0.6.3-py3-none-any.whl/csv_detective/detection.py
import pandas as pd import numpy as np from cchardet import UniversalDetector from ast import literal_eval import logging from time import time from csv_detective.utils import display_logs_depending_process_time logging.basicConfig(level=logging.INFO) def detect_continuous_variable(table, continuous_th=0.9, verbose:...
PypiClean
/django-importo-0.1.0.tar.gz/django-importo-0.1.0/importo/fields/html.py
from typing import Any, Mapping, Sequence from urllib.parse import unquote_plus import bleach from importo.fields.base import Field from importo.utils.html import tidy_html class HTMLField(Field): allowed_tags = [ "a", "abbr", "acronym", "b", "bdi", "blockquote", ...
PypiClean
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/mssql_connection_params.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
/fact4astro-0.0.3-py3-none-any.whl/fact/solve_parser/getpar_spm.py
from astropy.table import Table, join, unique, Column import astropy.units as u from astropy.units import cds from astropy.coordinates import Angle import numpy as np import os import sys import time # My module from convert_func import RA_conv, DC_conv, date2mjd __all__ = ["write_pmt", "read_pmt", "get_spm"] # ----...
PypiClean
/wwt_api_client-0.4.0.tar.gz/wwt_api_client-0.4.0/docs/endpoints/constellations/get-handle-_handle-sceneinfo.rst
.. _endpoint-GET-handle-_handle-sceneinfo: ============================= GET /handle/:handle/sceneinfo ============================= This API returns some statistics about scenes owned by the specified handle. Authorization ============= The request must be made by an account that has administrative permissions on...
PypiClean
/django-admin-tabler-1.0.2.tar.gz/django-admin-tabler-1.0.2/admin_tabler/static/dist/libs/tinymce/plugins/advlist/plugin.min.js
!function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager");const e=(t,e,s)=>{const r="UL"===e?"InsertUnorderedList":"InsertOrderedList";t.execCommand(r,!1,!1===s?null:{"list-style-type":s})},s=t=>e=>e.options.get(t),r=s("advlist_number_styles"),n=s("advlist_bullet_styles"),l=t=>null==t,i=t=>!l(t...
PypiClean
/eeg_eyetracking_parser-0.15.4.tar.gz/eeg_eyetracking_parser-0.15.4/eeg_eyetracking_parser/_triggers.py
import numpy as np TRIAL_TRIGGERS = list(range(128, 256)) TRIGGER_ANNOTATION_PREFIX = 'Stimulus/OVTK_StimulationId_Label_' ZERO_TRIGGER_ANNOTATION = 'Stimulus/OVTK_StimulationId_Label_FF' def epoch_trigger(events, trigger): """Selects a single epoch trigger from a tuple with event information. Epoch triggers...
PypiClean
/pwnedapi-1.0.2.tar.gz/pwnedapi-1.0.2/README.md
# `pwnedapi` (Have I Been Pwned) [![Codacy grade](https://img.shields.io/codacy/grade/c08d3ae2b32f4f4e939765eda3608d8f.svg?style=for-the-badge)](https://app.codacy.com/project/nikoheikkila/pwnedapi/dashboard) [![Travis (.org)](https://img.shields.io/travis/nikoheikkila/pwnedapi.svg?style=for-the-badge)](https://travis...
PypiClean
/apache-airflow-providers-microsoft-azure-6.3.0rc2.tar.gz/apache-airflow-providers-microsoft-azure-6.3.0rc2/airflow/providers/microsoft/azure/secrets/key_vault.py
from __future__ import annotations import logging import os import re import warnings from functools import cached_property from azure.core.exceptions import ResourceNotFoundError from azure.identity import DefaultAzureCredential from azure.keyvault.secrets import SecretClient from airflow.exceptions import AirflowP...
PypiClean
/django-demo-site-0.1.0.tar.gz/django-demo-site-0.1.0/demo_site/migrations/0004_auto_20181003_1837.py
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ('demo_site', '0003_auto_20181003_1822'), ] operations = [ migrations.AlterField( model_name='accesstoken', name='feature_access', field=models.CharField(...
PypiClean
/ansible_core-2.15.3-py3-none-any.whl/ansible_test/_internal/python_requirements.py
from __future__ import annotations import base64 import dataclasses import json import os import re import typing as t from .encoding import ( to_text, to_bytes, ) from .io import ( read_text_file, ) from .util import ( ANSIBLE_TEST_DATA_ROOT, ANSIBLE_TEST_TARGET_ROOT, ANSIBLE_TEST_TOOLS_ROO...
PypiClean
/gns3-server-3.0.0a2.tar.gz/gns3-server-3.0.0a2/gns3server/api/routes/controller/dependencies/authentication.py
import re from fastapi import Request, Query, Depends, HTTPException, WebSocket, status from fastapi.security import OAuth2PasswordBearer from typing import Optional from gns3server import schemas from gns3server.db.repositories.users import UsersRepository from gns3server.db.repositories.rbac import RbacRepository ...
PypiClean
/populationsim-0.5.1.tar.gz/populationsim-0.5.1/example_calm_repop/run_populationsim.py
import os import logging from activitysim.core import config from populationsim import steps from activitysim.core import tracing from activitysim.core import pipeline from activitysim.core import inject from activitysim.core.config import handle_standard_args from activitysim.core.tracing import print_elapsed_time ...
PypiClean
/core_explore_keyword_app-2.4.0.tar.gz/core_explore_keyword_app-2.4.0/core_explore_keyword_app/rest/persistent_query_keyword/views.py
from django.db import IntegrityError from rest_framework import status from rest_framework.exceptions import ValidationError from rest_framework.permissions import IsAdminUser, IsAuthenticated from rest_framework.response import Response from rest_framework.views import APIView from core_main_app.access_control.except...
PypiClean
/ypricemagic-1.1.0-py3-none-any.whl/y/prices/utils/buckets.py
import logging from functools import lru_cache from y import convert from y.constants import STABLECOINS from y.decorators import log from y.prices import convex, one_to_one, popsicle, yearn from y.prices.chainlink import chainlink from y.prices.dex import mooniswap from y.prices.dex.balancer import balancer_multiplex...
PypiClean
/py3hpecw7-0.1.1.tar.gz/py3hpecw7-0.1.1/pyhpecw7/features/file_copy.py
from scp import SCPClient from lxml import etree from pyhpecw7.utils.xml.lib import * from pyhpecw7.features.errors import FileNotEnoughSpaceError,\ FileNotReadableError, FileRemoteDirDoesNotExist, FileTransferError, FileHashMismatchError from pyhpecw7.errors import NCError import paramiko import hashlib import re...
PypiClean
/promnesia-1.2.20230515.tar.gz/promnesia-1.2.20230515/extension/src/filterlist.js
import type {Url} from './common'; import {getOptions} from './options' import {asList, fetch_max_stale} from './common' import {normalisedURLHostname} from './normalise'; type Reason = string type UrllistSpec = [string, string] export class Filterlist { filterlist: Set<string> // TODO rename to 'external l...
PypiClean
/django-skylark-0.4.6.tar.gz/django-skylark-0.4.6/src/skylark/templates/chirp/media/dojox/grid/enhanced/nls/sv/Filter.js
({"conditionBefore":"före","filterBarDefButton":"Definiera filter","filterBarMsgNoFilterTemplate":"Inga filter har använts","conditionContains":"innehåller","clearFilterMsg":"Filtret kommer att tas bort och alla tillgängliga poster kommer att visas.","all":"alla","waiValueBoxTemplate":"Ange värdet för regeln ${0}","con...
PypiClean
/python-apitist-0.5.2.tar.gz/python-apitist-0.5.2/src/apitist/utils.py
import sys from typing import ( Dict, FrozenSet, Mapping, MutableSequence, MutableSet, Sequence, Tuple, ) version_info = sys.version_info[0:3] is_py37_or_higher = version_info[:2] in [(3, 7), (3, 8)] def is_attrs_class(cls): return getattr(cls, "__attrs_attrs__", None) is not None d...
PypiClean
/smartautomatic_server_frontend-20220907.2-py3-none-any.whl/sas_frontend/frontend_es5/13f76227.js
"use strict";(self.webpackChunksmartautomatic_server_frontend=self.webpackChunksmartautomatic_server_frontend||[]).push([[22382,74513],{3127:function(e,t,r){var n=r(33310),i=r(51153),o=r(52231);function a(e){return a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){re...
PypiClean
/dimagi-superset-2.0.1.tar.gz/dimagi-superset-2.0.1/superset/static/assets/b1f037e72ea7b4cc93c6.chunk.js
(globalThis.webpackChunksuperset=globalThis.webpackChunksuperset||[]).push([[4173],{93202:e=>{function n(e){return e?"string"==typeof e?e:e.source:null}function a(...e){return e.map((e=>n(e))).join("")}e.exports=function(e){const t=function(e){const t={"builtin-name":["action","bindattr","collection","component","conca...
PypiClean
/eleven-0.1.1.tar.gz/eleven-0.1.1/docs/_build/singlehtml/_static/websupport.js
(function($) { $.fn.autogrow = function() { return this.each(function() { var textarea = this; $.fn.autogrow.resize(textarea); $(textarea) .focus(function() { textarea.interval = setInterval(function() { $.fn.autogrow.resize(textarea); }, 500); }) .blur(fu...
PypiClean
/tocolib-0.3.1.tar.gz/tocolib-0.3.1/docs/source/tocoli.dsl.rst
tocoli.dsl package ================== Submodules ---------- tocoli.dsl.filter module ------------------------ .. automodule:: tocoli.dsl.filter :members: :undoc-members: :show-inheritance: tocoli.dsl.join module ---------------------- .. automodule:: tocoli.dsl.join :members: :undoc-members: ...
PypiClean
/async-responses-1.0.0_2.tar.gz/async-responses-1.0.0/README.md
# Async Responses [![Documentation Status](https://readthedocs.org/projects/async-responses/badge/?version=latest)](http://async-responses.readthedocs.io/en/latest/?badge=latest) [![codecov](https://codecov.io/gh/ulamlabs/async-responses/branch/master/graph/badge.svg)](https://codecov.io/gh/ulamlabs/async-responses) !...
PypiClean
/cdktf_cdktf_provider_snowflake-9.0.0-py3-none-any.whl/cdktf_cdktf_provider_snowflake/role_ownership_grant/__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 RoleOwnershipGrant( _cdktf_9a9027ec.TerraformResou...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/devices/v20200615/iot_hub_resource.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs from ._enums import * from ._inputs import * __all__ = ['IotHubResource'] class IotHubResource(pulumi.CustomResource): def __init__(__self__, ...
PypiClean
/llm_toys-0.1.1-py3-none-any.whl/llm_toys/hf/peft/tuners/adalora.py
import re import warnings from dataclasses import dataclass, field from typing import Optional import torch import torch.nn as nn import torch.nn.functional as F from transformers.pytorch_utils import Conv1D from ..import_utils import is_bnb_4bit_available, is_bnb_available from ..utils import ( TRANSFORMERS_MODE...
PypiClean
/netbox_bgp-0.10.2-py3-none-any.whl/netbox_bgp/views.py
from django.db.models import Q from django.contrib import messages from django.shortcuts import get_object_or_404, redirect, render, reverse from django.utils.text import slugify from netbox.views import generic from ipam.models import ASN from .models import ( Community, BGPSession, RoutingPolicy, BGPPeerGro...
PypiClean
/amazon-textract-textractor-1.3.2.tar.gz/amazon-textract-textractor-1.3.2/textractor/entities/query.py
from typing import Optional from textractor.entities.query_result import QueryResult from textractor.entities.bbox import BoundingBox from textractor.entities.document_entity import DocumentEntity class Query(DocumentEntity): """ The Query object merges QUERY and QUERY_RESULT blocks. To create a new :cla...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/types/browsers.py
from .user_agent import AgentInfo from .user_agent import UserAgent class Browsers: def __init__(self): # CHROME BASE AGENT self._chrome_agent = AgentInfo( 'Chrome', '94.0.4606.71', ) # MOZILLA BASE AGENTS self._mozilla_android_agent = AgentInfo( ...
PypiClean
/denoisers-0.0.3.tar.gz/denoisers-0.0.3/src/denoiser/data.py
import os from pathlib import Path from typing import Any, Optional import numpy as np import pytorch_lightning as pl import torch import torchaudio from torch import Tensor from torch.nn import functional as F from torch.utils.data import DataLoader from src.denoiser import transforms from src.denoiser.datasets impo...
PypiClean
/hpccm-23.5.0.tar.gz/hpccm-23.5.0/recipes/osu_benchmarks/common.py
# Development stage Stage0 += baseimage(image='nvcr.io/nvidia/cuda:11.0-devel-ubuntu18.04', _as='devel') # Compiler Stage0 += gnu() # Communication libraries Stage0 += gdrcopy(ldconfig=True) Stage0 += knem(ldconfig=True) # Mellanox legacy OFED support mlnx_versions=['4.2-1.5.1.0', '4.3-1.0.1.0',...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/v20180801/route_table.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs from ._enums import * from ._inputs import * __all__ = ['RouteTable'] class RouteTable(pulumi.CustomResource): def __init__(__self__, ...
PypiClean
/flora-blockchain-0.2.5.tar.gz/flora-blockchain-0.2.5/flora/rpc/full_node_rpc_client.py
from typing import Dict, List, Optional, Tuple, Any from flora.consensus.block_record import BlockRecord from flora.full_node.signage_point import SignagePoint from flora.rpc.rpc_client import RpcClient from flora.types.blockchain_format.sized_bytes import bytes32 from flora.types.coin_record import CoinRecord from fl...
PypiClean
/pyramid-2.0.2.tar.gz/pyramid-2.0.2/docs/quick_tutorial/routing.rst
.. _qtut_routing: ========================================== 11: Dispatching URLs To Views With Routing ========================================== Routing matches incoming URL patterns to view code. Pyramid's routing has a number of useful features. Background ========== Writing web applications usually means soph...
PypiClean
/paws-cli-0.6.0.tar.gz/paws-cli-0.6.0/paws/providers/__init__.py
"""Paws providers.""" import importlib from paws.constants import PROVIDERS from paws.core import LoggerMixin, Namespace from paws.helpers import cleanup class Provider(LoggerMixin): """ Provider It is the main class for Provider module. This module manage registered providers e.g.: Openstack, Libvirt ...
PypiClean
/allmydata-tahoe-1.10.2.tar.gz/allmydata-tahoe-1.10.2/src/allmydata/web/introweb.py
import time, os from nevow import rend, inevow from nevow.static import File as nevow_File from nevow.util import resource_filename import allmydata import simplejson from allmydata import get_package_versions_string from allmydata.util import idlib from allmydata.web.common import getxmlfile, get_arg, TIME_FORMAT cl...
PypiClean