id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/webhook-debugger-0.0.3.tar.gz/webhook-debugger-0.0.3/WebhookDebugger.py
import http.server import ssl import argparse import http.client version = "0.0.3" results=None enable_forward=False def debug(msg): if results.stdout: print(msg) class WebhookDebug(http.server.BaseHTTPRequestHandler): def compose(self,method,url,header,body,ip=None): msg="["+method+"]:\n" ...
PypiClean
/citymaker_sdk-1.1.15.0.tar.gz/citymaker_sdk-1.1.15.0/citymaker_sdk/SDK/FdeCore/IRowBuffer.py
import os, sys,json sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) import Utils.classmake as CM import Utils.globalData as glodata import Utils.wsInit as wsObj Props={"fieldCount":{"t":"int","v":0, "F":"g"},"fields":{"t":"IFieldInfoCollection","v":None, "F":"g"},"_HashCo...
PypiClean
/pyfiresql-0.3.10.tar.gz/pyfiresql-0.3.10/docs/index.rst
.. PyFireSQL documentation master file, created by sphinx-quickstart on Fri Apr 15 08:13:23 2022. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to PyFireSQL's documentation! ===================================== .. toctree:: :maxdep...
PypiClean
/gc-boto-2.37.1.tar.gz/gc-boto-2.37.1/boto/s3/bucketlogging.py
import xml.sax.saxutils from boto.s3.acl import Grant class BucketLogging(object): def __init__(self, target=None, prefix=None, grants=None): self.target = target self.prefix = prefix if grants is None: self.grants = [] else: self.grants = grants def _...
PypiClean
/py_base_layer-1.0.0-py3-none-any.whl/tencentcloud/postgres/v20170312/postgres_client.py
import json from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.common.abstract_client import AbstractClient from tencentcloud.postgres.v20170312 import models class PostgresClient(AbstractClient): _apiVersion = '2017-03-12' _endpoint = 'postgres....
PypiClean
/digital_diffeomorphism-0.0.1.tar.gz/digital_diffeomorphism-0.0.1/digital_diffeomorphism/jacobian_calculator.py
import numpy as np import scipy.ndimage from digital_diffeomorphism.kernel_creator import KernelCreator from digital_diffeomorphism.utils import spatial_padding def calc_Ji_3d(transformation, kernels): gradx = scipy.ndimage.correlate(transformation, kernels['x'], mode='nearest') grady = scipy.ndimage.correla...
PypiClean
/streamlit-elements-0.1.0.tar.gz/streamlit-elements-0.1.0/streamlit_elements/frontend/build/_next/static/chunks/7493.d6943dd46fc09d94.js
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7493],{657594:function(e,t,o){var a=o(263366),l=o(487462),r=o(667294),i=o(386010),n=o(327192),d=o(441796),s=o(841844),c=o(998216),u=o(471657),p=o(311496),g=o(473138),h=o(785893);const f=["children","className","color","disabled","disableFocusRipple",...
PypiClean
/mpl_sphinx_theme-3.7.1-py3-none-any.whl/mpl_sphinx_theme/__init__.py
from ._version import version_info, __version__ # noqa: F401 from pathlib import Path def set_config_defaults(app): """Set default logo in theme options.""" try: theme = app.builder.theme_options except AttributeError: theme = None if not theme: theme = {} # Default logo...
PypiClean
/icehms-1.0alpha2.tar.gz/icehms-1.0alpha2/README.txt
This program is free software: you can redistribute it and/or modify it under the terms of the GNU 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 us...
PypiClean
/py-az-cli-0.1.8.tar.gz/py-az-cli-0.1.8/pyaz/storage/fs/file/metadata/__init__.py
from ..... pyaz_utils import _call_az def update(metadata, account_key=None, account_name=None, auth_mode=None, connection_string=None, sas_token=None, timeout=None): ''' Required Parameters: - metadata -- Metadata in space-separated key=value pairs. This overwrites any existing metadata. Option...
PypiClean
/PyVRML97-2.3.1.tar.gz/PyVRML97-2.3.1/vrml/vrml97/nodetypes.py
from vrml import node class Traversable( object ): """Traversable nodes (Nodes which have node attributes) """ class Grouping( Traversable ): """Grouping nodes (Nodes which group children together) """ sensitive = 0 class Transforming( Grouping ): """Nodes which alter the transform matrix for c...
PypiClean
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/request/AlipayCommerceTransportAdCreativeQueryRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayCommerceTransportAdCreativeQueryModel import AlipayCommerceTransportAdCreativeQueryModel class AlipayCommerceTransportAdCreativeQueryRequest(object): def __init__(self...
PypiClean
/agc_optims-0.0.2-py3-none-any.whl/agc_optims/optim/sgd_agc.py
import torch from torch.optim.optimizer import Optimizer, required import torch.optim._functional as F from agc_optims.utils import agc class SGD_AGC(Optimizer): r"""Implements stochastic gradient descent (optionally with momentum) with adaptive gradient clipping (AGC). .. math:: \begin{aligned} ...
PypiClean
/borgbackup-2.0.0a2.tar.gz/borgbackup-2.0.0a2/src/borg/remote.py
import errno import functools import inspect import json import logging import os import select import shlex import shutil import struct import sys import tempfile import textwrap import time import traceback from subprocess import Popen, PIPE from . import __version__ from .compress import Compressor from .constants ...
PypiClean
/PyBayes-0.3.tar.gz/PyBayes-0.3/pybayes/filters.py
from copy import deepcopy from math import exp import wrappers._linalg as linalg import wrappers._numpy as np from pybayes.pdfs import CPdf, Pdf, GaussPdf, EmpPdf, MarginalizedEmpPdf class Filter(object): """Abstract prototype of a bayesian filter.""" def bayes(self, yt, cond = None): """Perform app...
PypiClean
/rasa-hydra-3.6.0.tar.gz/rasa-hydra-3.6.0/rasa/core/policies/sklearn_policy.py
import typing import json import logging import numpy as np import os import pickle import warnings from sklearn.base import clone from sklearn.linear_model import LogisticRegression from sklearn.model_selection import GridSearchCV from sklearn.preprocessing import LabelEncoder # noinspection PyProtectedMember from sk...
PypiClean
/photpy-0.2.tar.gz/photpy-0.2/test/qam_time.py
import numpy as np from commpy.modulation import QAMModem from commpy.filters import rrcosfilter from scipy.signal import lfilter, resample_poly import photpy import cProfile import pstats from pstats import SortKey def main(): """ 本代码为程序主函数 本代码主要适用于 QPSK,16QAM,32QAM,64QAM 调制格式的单载波相干背靠背(B2B)信号 """ # 设置全局系统仿真...
PypiClean
/aws_fortuna-0.1.28-py3-none-any.whl/fortuna/conformal/classification/batch_mvp.py
from typing import List import jax.numpy as jnp import numpy as np from fortuna.conformal.classification.base import ConformalClassifier from fortuna.conformal.multivalid.batch_mvp import BatchMVPConformalMethod from fortuna.typing import Array class BatchMVPConformalClassifier(BatchMVPConformalMethod, ConformalCla...
PypiClean
/ally-py-0.9.0.tar.gz/ally-py-0.9.0/__plugin__/gui_core/gui-resources/scripts/js/jquery/ui/effects/core.js
define('jqueryui/effects/core', ['jquery'], function (jQuery) { /* * jQuery UI Effects 1.8.14 * * Copyright 2011, AUTHORS.txt (http://jqueryui.com/about) * Dual licensed under the MIT or GPL Version 2 licenses. * http://jquery.org/license * * http://docs.jquery.com/UI/Effects/ */ ;jQuery.effects || (function($,...
PypiClean
/q2-clawback-2019.7.0.tar.gz/q2-clawback-2019.7.0/README.md
# q2-clawback [![Build Status](https://travis-ci.org/BenKaehler/q2-clawback.svg?branch=master)](https://travis-ci.org/BenKaehler/q2-clawback) This is a QIIME 2 plugin. For details on QIIME 2, see https://qiime2.org. For details on this plugin, please see the [tutorial](https://forum.qiime2.org/t/using-q2-clawback-to...
PypiClean
/scipion-em-pyseg-3.1.1.tar.gz/scipion-em-pyseg-3.1.1/README.rst
======================= Scipion - PySeg plugin ======================= This plugin allows to use PySeg_ - De novo analysis for cryo-electron tomography - within the Scipion framework. ===== Setup ===== **System pre-requisites:** 1. Cmake 2.6.3+. The intallation command in Ubuntu is: .. code-block:: ...
PypiClean
/icet-2.2.tar.gz/icet-2.2/doc/userguide/tutorial/run_monte_carlo.rst
.. _tutorial_monte_carlo_simulations: .. highlight:: python .. index:: single: Tutorial; Monte Carlo simulations Monte Carlo simulations ======================= We are now in a position to carry out a series of Monte Carlo (MC) simulations to sample the cluster expansion model that was :ref:`constructed <tutorial_...
PypiClean
/cloudshell-autodiscovery-1.0.0.zip/cloudshell-autodiscovery-1.0.0/autodiscovery/handlers/pdu.py
from cloudshell.api.common_cloudshell_api import CloudShellAPIError from autodiscovery.exceptions import ReportableException from autodiscovery.handlers.base import AbstractHandler from autodiscovery.common.consts import ResourceModelsAttributes from autodiscovery.common.consts import CloudshellAPIErrorCodes class P...
PypiClean
/secure_cookie-0.2.0-py3-none-any.whl/secure_cookie/cookie.py
import base64 import json as _json from datetime import datetime from hashlib import sha1 as _default_hash from hmac import new as hmac from numbers import Number from time import time from werkzeug.security import safe_str_cmp from werkzeug.urls import url_quote_plus from werkzeug.urls import url_unquote_plus from we...
PypiClean
/chaotic-ngine-0.11.0.tar.gz/chaotic-ngine-0.11.0/chaotic/cloud/nomad.py
import os import random import time from typing import List, Optional import requests from chaotic.cloud import Chaotic from chaotic.log import log NOMAD_ADDR: str = os.getenv("NOMAD_ADDR", "") NOMAD_TOKEN: str = os.getenv("NOMAD_TOKEN", "") NOMAD_HTTP_AUTH: str = os.getenv("NOMAD_HTTP_AUTH", "") class Nomad: ...
PypiClean
/table_reconstruction-0.0.4-py3-none-any.whl/table_reconstruction/line_segmentation/unet/unet_parts.py
import torch import torch.nn as nn import torch.nn.functional as F class DoubleConv(nn.Module): """(convolution => [BN] => ReLU) * 2""" def __init__(self, in_channels, out_channels, mid_channels=None): super().__init__() if not mid_channels: mid_channels = out_channels se...
PypiClean
/rbi_ml-0.0.34-py3-none-any.whl/rbi_ml/offers/models.py
import math import numpy as np import mxnet as mx from gluonnlp.data import UnigramCandidateSampler from gluonnlp.model import ISDense from gluonnlp.model.transformer import TransformerEncoder, TransformerEncoderCell from mxnet import ndarray, gluon class FrozenEmbedding(gluon.nn.Embedding): def __init__(self, fr...
PypiClean
/Toxygen-0.4.0.0.tar.gz/Toxygen-0.4.0.0/toxygen/basecontact.py
from settings import * from PyQt5 import QtCore, QtGui from toxcore_enums_and_consts import TOX_PUBLIC_KEY_SIZE class BaseContact: """ Class encapsulating TOX contact Properties: name (alias of contact or name), status_message, status (connection status) widget - widget for update, tox id (or public k...
PypiClean
/azure-mgmt-rdbms-10.2.0b6.zip/azure-mgmt-rdbms-10.2.0b6/azure/mgmt/rdbms/postgresql_flexibleservers/_serialization.py
# pylint: skip-file # pyright: reportUnnecessaryTypeIgnoreComment=false from base64 import b64decode, b64encode import calendar import datetime import decimal import email from enum import Enum import json import logging import re import sys import codecs from typing import Optional, Union, AnyStr, IO, Mapping try: ...
PypiClean
/odoo_addon_account_invoice_triple_discount-16.0.1.0.1.4-py3-none-any.whl/odoo/addons/account_invoice_triple_discount/models/account_move_line.py
import functools from odoo import api, fields, models from odoo.tools import float_compare class AccountMoveLine(models.Model): _inherit = "account.move.line" discount2 = fields.Float( string="Discount 2 (%)", digits="Discount", ) discount3 = fields.Float( string="Discount ...
PypiClean
/bb_utils-0.0.11-py3-none-any.whl/bb_utils/aiohttp/responses.py
from typing import Any, Union from aiohttp.http import RESPONSES from aiohttp.web_response import Response, json_response from marshmallow import Schema, ValidationError from bb_utils.aiohttp.paginator import ResourcePaginator class DefaultResponse(object): """ A default successful response to return compos...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/domain/KbAdvertContentPasswordModify.py
import json from alipay.aop.api.constant.ParamConstants import * class KbAdvertContentPasswordModify(object): def __init__(self): self._background_img_id = None self._brand_name = None self._password = None self._voucher_logo_id = None @property def background_img_id(sel...
PypiClean
/phylo-treetime-0.11.0.tar.gz/phylo-treetime-0.11.0/docs/source/merger_models.rst
****************************** Coalescent class documentation ****************************** .. Note:: Using the coalescent model is optional. When running via the command line this class will only be initialized when the flag .. code-block:: bash --coalescent <arg> is used. The argument...
PypiClean
/adafruit-circuitpython-funhouse-2.1.20.tar.gz/adafruit-circuitpython-funhouse-2.1.20/docs/index.rst
.. include:: ../README.rst Table of Contents ================= .. toctree:: :maxdepth: 4 :hidden: self .. toctree:: :caption: Examples examples .. toctree:: :caption: API Reference :maxdepth: 3 api .. toctree:: :caption: Tutorials Adafruit FunHouse <https://learn.adafru...
PypiClean
/xmlComparator-1.0.3.tar.gz/xmlComparator-1.0.3/xmlComparison/xpathManager.py
class XpathManager(): def __init__(self, nsManager): self.__nsManager = nsManager self.__xpath = '' def elementStart(self, name, attributes): self.__appendQualifiedName(name) self.__appendAttributes(attributes) def __appendQualifiedName(self, name): self.__xpath += '/' + self.__getQualifiedN...
PypiClean
/tencentcloud-sdk-python-3.0.973.tar.gz/tencentcloud-sdk-python-3.0.973/tencentcloud/tse/v20201207/tse_client.py
import json from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.common.abstract_client import AbstractClient from tencentcloud.tse.v20201207 import models class TseClient(AbstractClient): _apiVersion = '2020-12-07' _endpoint = 'tse.tencentcloudapi...
PypiClean
/idem_aws-4.0.1-py3-none-any.whl/idem_aws/states/aws/ecr/repository_policy.py
import copy from typing import Any from typing import Dict __contracts__ = ["resource"] async def present( hub, ctx, name: str, repository_name: str, policy_text: Dict or str, resource_id: str = None, registry_id: str = None, force: bool = False, ) -> Dict[str, Any]: """Applies a ...
PypiClean
/c65ryu-5.0.0.tar.gz/c65ryu-5.0.0/ryu/services/protocols/bgp/info_base/ipv4.py
import logging from ryu.lib.packet.bgp import IPAddrPrefix from ryu.lib.packet.bgp import RF_IPv4_UC from ryu.services.protocols.bgp.info_base.base import Path from ryu.services.protocols.bgp.info_base.base import Table from ryu.services.protocols.bgp.info_base.base import Destination from ryu.services.protocols.bgp....
PypiClean
/superset-2.0.0-custom-0.0.2.tar.gz/superset-2.0.0-custom-0.0.2/superset/databases/commands/exceptions.py
from flask_babel import lazy_gettext as _ from marshmallow.validate import ValidationError from superset.commands.exceptions import ( CommandException, CommandInvalidError, CreateFailedError, DeleteFailedError, ImportFailedError, UpdateFailedError, ) from superset.exceptions import SupersetErro...
PypiClean
/js.ace-1.4.11.tar.gz/js.ace-1.4.11/js/ace/resources/mode-diff.js
ace.define("ace/mode/diff_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{regex:"^(?:\\*{15}|={67}|-{3}|\\+{3})$",token:"punctuation.definit...
PypiClean
/azure_mgmt_networkfunction-1.0.0b1-py3-none-any.whl/azure/mgmt/networkfunction/operations/_collector_policies_operations.py
import sys from typing import Any, Callable, Dict, IO, Iterable, List, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, map_error, ...
PypiClean
/os_sys-2.1.4-py3-none-any.whl/edit/tooltip.py
from tkinter import * class TooltipBase(object): """abstract base class for tooltips""" def __init__(self, anchor_widget): """Create a tooltip. anchor_widget: the widget next to which the tooltip will be shown Note that a widget will only be shown when showtip() is called. "...
PypiClean
/lavue-2.83.4.tar.gz/lavue-2.83.4/lavuelib/toolWidget.py
from .qtuic import uic import os import re import math import sys import time import numpy as np import scipy.optimize import scipy.interpolate import pyqtgraph as _pg import logging import warnings import random import json from pyqtgraph import QtCore, QtGui, functions from enum import Enum try: from pyqtgraph ...
PypiClean
/jdgalileo-gpu-1.0.0.tar.gz/jdgalileo-gpu-1.0.0/galileo/framework/tf/python/layers/aggregators_sparse.py
import tensorflow as tf from tensorflow.keras.layers import ( Layer, Dense, ) from galileo.platform.export import export @export('galileo.tf') class BaseAggregatorSparse(Layer): ''' base aggregator aggregates target and neigbor feature args: output_dim: dimensionality of the output space...
PypiClean
/game_forge-0.4.0-py3-none-any.whl/forge/core/engine/game.py
from __future__ import annotations import sys import pygame import forge.core.engine.display import forge.core.managers.event import forge.core.managers.keyboard import forge.core.managers.mouse import forge.core.utils.loaders # Store the current game in a list of length one. # A list has to be used because a globa...
PypiClean
/Titley-1.7.tar.gz/Titley-1.7/README.txt
=============================================== Titley - A python script to download subtitles. =============================================== The problem - ============= You download a foreign language movie. You look for a subtitle in one of the subtitle sites. But you can't find the subtitle with exact name of th...
PypiClean
/am4894plots-0.2.0.tar.gz/am4894plots-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
/pystick-0.1.6.tar.gz/pystick-0.1.6/src/SCons/Tool/msvs.py
__revision__ = "src/engine/SCons/Tool/msvs.py 2014/03/02 14:18:15 garyo" import SCons.compat import base64 import hashlib import ntpath import os # compat layer imports "cPickle" for us if it's available. import pickle import re import sys import SCons.Builder import SCons.Node.FS import SCons.Platform.win32 impor...
PypiClean
/snpflip-0.0.6.tar.gz/snpflip-0.0.6/README.md
# snpflip snpflip finds reverse and ambiguous strand SNPs. ## Changelog ``` # 0.0.6 (01.12.2017) - Fix duplicate SNPs in output # 0.0.5 (03.01.2016) - Add helpful error message if there are no overlapping chromosomes in the bim file and fasta file. # 0.0.4 (10.12.2015) - Fix error that occured when using a large b...
PypiClean
/pygitee-1.0.1-py3-none-any.whl/gitee/__init__.py
# flake8: noqa from __future__ import absolute_import # import apis into sdk package from gitee.api.activity_api import ActivityApi from gitee.api.emails_api import EmailsApi from gitee.api.enterprises_api import EnterprisesApi from gitee.api.gists_api import GistsApi from gitee.api.git_data_api import GitDataApi f...
PypiClean
/waldur_mastermind-4.5.1-py3-none-any.whl/waldur_rijkscloud/backend.py
import logging from django.db import transaction from django.utils import timezone import requests from waldur_core.structure import log_backend_action, ServiceBackend, ServiceBackendError from waldur_core.structure.utils import ( update_pulled_fields, handle_resource_not_found, handle_resource_update_success) f...
PypiClean
/qinling-5.0.0.tar.gz/qinling-5.0.0/runtimes/python2/cglimit.py
import logging import os import sys from flask import Flask from flask import make_response from flask import request from oslo_concurrency import lockutils app = Flask(__name__) ch = logging.StreamHandler(sys.stdout) ch.setLevel(logging.DEBUG) ch.setFormatter(logging.Formatter('%(asctime)s - %(levelname)s - %(messa...
PypiClean
/civiltools-1.25.tar.gz/civiltools-1.25/civilTools/applications/section/filehandling/slenders.py
slenderParameters = {'notPlate': {'beam': {'M': {'BF': '2*bf', 'tfCriteria': True, 'TF': ('2*tf', ''), 'D': 'd', 'twCriteria': True, 'TW': ('(D-2*TF)/(d-2(tf+r))*tw', '')}, 'H': {'BF': '2*bf', 'tfCriteria': True, 'TF': ('2*0.55*tf/.6', ''), 'D': 'd', 'twCrit...
PypiClean
/grovepi-1.0.4.tar.gz/grovepi-1.0.4/src/grove_i2c_color_sensor.py
import smbus import time import math import RPi.GPIO """ ## License The MIT License (MIT) Copyright (c) 2016 Frederic Aguiard Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction,...
PypiClean
/list_methods-0.1.3.tar.gz/list_methods-0.1.3/src/list_methods/main.py
from functools import reduce from warnings import warn class L: """ Tired of not having map, filter and reduce as easily available like in Javascript, Java, Kotlin etc? Fear not this is the class for you. """ def __init__(self,l,mutable=False): """ :init_l: inital list, useful when...
PypiClean
/mapfish.plugin.client-0.2.tar.gz/mapfish.plugin.client-0.2/mapfishpluginclient/template/+package+/public/lib/ext/Ext/source/locale/ext-lang-it.js
Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Caricamento in corso...</div>'; if(Ext.View){ Ext.View.prototype.emptyText = ""; } if(Ext.grid.GridPanel){ Ext.grid.GridPanel.prototype.ddText = "{0} righe selezionate"; } if(Ext.TabPanelItem){ Ext.TabPanelItem.prototype.closeText = ...
PypiClean
/homely-0.20.0.tar.gz/homely-0.20.0/docs/ref/system.rst
homely.system ============= .. _homely-system-execute: homely.system.execute() ----------------------- ``execute()`` runs an external program in a subprocess in much the same way as python's subprocess module does, but the API is better suited towards the sorts of things you will probably do in a ``HOMELY.py`` scrip...
PypiClean
/oktauilib-0.2.1.tar.gz/oktauilib-0.2.1/README.rst
========= oktauilib ========= Library to interact with Okta via UI * Documentation: https://oktauilib.readthedocs.org/en/latest Development Workflow ==================== The workflow supports the following steps * lint * test * build * document * upload * graph These actions are supported out of the box b...
PypiClean
/wsp_tools-1.4.1.tar.gz/wsp_tools-1.4.1/README.md
# wsp_tools Utilities for TEM data analysis and simulation. Features: * Single Image TIE * Lorentz TEM simulations * spatial modes * a `matplotlib.pyplot` wrapper * an implementation of the CIELAB colorspace * a `scipy.constants` wrapper that allows arbitrary units (i.e., using nanometers instead of meters) ## Insta...
PypiClean
/tensorflow-2.1.1-cp36-cp36m-macosx_10_11_x86_64.whl/tensorflow_core/python/debug/wrappers/dumping_wrapper.py
"""Debugger wrapper session that dumps debug data to file:// URLs.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import os import threading import time # Google-internal import(s). from tensorflow.core.util import event_pb2 from tensorflow.python.debug...
PypiClean
/odoo14_addon_account_avatax_exemption-14.0.3.0.0-py3-none-any.whl/odoo/addons/account_avatax_exemption/models/avalara_salestax.py
import requests from odoo import _, fields, models from odoo.exceptions import UserError from odoo.addons.account_avatax_oca.models.avatax_rest_api import AvaTaxRESTService from odoo.addons.queue_job.exception import FailedJobError class AvalaraSalestax(models.Model): _inherit = "avalara.salestax" avatax_c...
PypiClean
/pymavlink-ws-xrendan-2.4.4.tar.gz/pymavlink-ws-xrendan-2.4.4/tools/MPU6KSearch.py
from __future__ import print_function from builtins import input from builtins import range import sys, time, os import zipfile from pymavlink import mavutil from math import degrees # extra imports for pyinstaller import json from pymavlink.dialects.v10 import ardupilotmega search_dirs = ['c:\Program Files\APM Pla...
PypiClean
/qiime-1.9.1.tar.gz/qiime-1.9.1/doc/install/virtual_box.rst
.. _virtual_box: ================= QIIME Virtual Box ================= As a consequence of QIIME's *pipeline* architecture, **QIIME has a lot of dependencies and can (but doesn't have to) be very challenging to install**. The QIIME Virtual Box gets around the difficulty of installation by providing a functioning QIIM...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/authorization/v20200301/get_policy_assignment.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__ = [ 'GetPolicyAssignmentResult', 'AwaitableGetPolicyAssignmentResult', 'get_policy_assignment', 'get_policy_assi...
PypiClean
/guildai-0.8.1.tar.gz/guildai-0.8.1/guild/commands/init_impl.py
import hashlib import logging import os import pkg_resources import re import subprocess import sys import six import yaml import guild from guild import cli from guild import config from guild import guildfile from guild import init from guild import pip_util from guild import util log = logging.getLogger("guild"...
PypiClean
/metomi-rose-2.1.0.tar.gz/metomi-rose-2.1.0/metomi/rosie/lib/html/static/js/bootstrap.min.js
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>2)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3")}(jQ...
PypiClean
/galaxy_sequence_utils-1.1.5.tar.gz/galaxy_sequence_utils-1.1.5/galaxy_utils/sequence/scripts/fastq_paired_end_interlacer.py
from __future__ import print_function import sys from galaxy_utils.sequence.fastq import ( fastqJoiner, fastqNamedReader, fastqReader, fastqWriter, ) def main(): mate1_filename = sys.argv[1] mate1_type = sys.argv[2] or 'sanger' mate2_filename = sys.argv[3] mate2_type = sys.argv[4] or...
PypiClean
/apache-airflow-providers-google-10.7.0.tar.gz/apache-airflow-providers-google-10.7.0/airflow/providers/google/cloud/operators/translate_speech.py
"""This module contains a Google Cloud Translate Speech operator.""" from __future__ import annotations from typing import TYPE_CHECKING, Sequence from google.cloud.speech_v1.types import RecognitionAudio, RecognitionConfig from google.protobuf.json_format import MessageToDict from airflow.exceptions import AirflowE...
PypiClean
/gc_module_cua-1.43-py3-none-any.whl/gc_module_cua/functions.py
import datetime def capture_user_activity(sqlshell: object, user: int, event: str, events_table: str, events_log_table: str, additional=None, timenow=None): """ Фиксирует событие event в таблицу events_log_table за юзером user, время ti...
PypiClean
/python-pydown-0.1.0.tar.gz/python-pydown-0.1.0/pygments/filters/__init__.py
import re from pygments.token import String, Comment, Keyword, Name, Error, Whitespace, \ string_to_tokentype from pygments.filter import Filter from pygments.util import get_list_opt, get_int_opt, get_bool_opt, \ get_choice_opt, ClassNotFound, OptionError from pygments.plugin import find_plugin_filters def...
PypiClean
/fairness-cscheid-0.1.7.tar.gz/fairness-cscheid-0.1.7/fairness/algorithms/kamishima/kamfadm-2012ecmlpkdd/fadm/nb/_nb.py
#============================================================================== # Module metadata variables #============================================================================== #============================================================================== # Imports #========================================...
PypiClean
/celery-joinup-4.4.7.2.tar.gz/celery-joinup-4.4.7.2/celery/bin/migrate.py
from __future__ import absolute_import, unicode_literals from celery.bin.base import Command MIGRATE_PROGRESS_FMT = """\ Migrating task {state.count}/{state.strtotal}: \ {body[task]}[{body[id]}]\ """ class migrate(Command): """Migrate tasks from one broker to another. Warning: This command is exper...
PypiClean
/certora_cli_alpha_roy_CERT_1891_tmpAllocExpectTimeout-20230503.15.24.927093-py3-none-any.whl/certora_cli/EVMVerifier/Compiler/CompilerCollectorVy.py
import itertools from pathlib import Path from typing import Any, Dict, List, Set, Tuple import json import logging import re import subprocess from Crypto.Hash import keccak from abc import ABC, abstractmethod from EVMVerifier.Compiler.CompilerCollector import CompilerCollector, CompilerLang, CompilerLangFunc from Sh...
PypiClean
/virtual-storage-manager-2.0.2.tar.gz/virtual-storage-manager-2.0.2/doc/ext/cinder_todo.py
# 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 # Unless required by applicable law or agreed to in writing, # software distributed under the Lic...
PypiClean
/scipion-em-spoc-1.0.6.tar.gz/scipion-em-spoc-1.0.6/spoc/viewers/viewer_confidence_map.py
import matplotlib.pyplot as plt from matplotlib import cm from pwem.wizards import ColorScaleWizardBase import os from pyworkflow.protocol.params import (LabelParam, EnumParam, PointerParam, IntParam, LEVEL_ADVANCED) from pyworkflow.viewer import ProtocolViewer, DESKTOP_TKINTE...
PypiClean
/capsul-2.3.1.tar.gz/capsul-2.3.1/doc/source/sphinxext/numpy_ext/docscrape.py
from __future__ import division, absolute_import, print_function import inspect import textwrap import re import pydoc from warnings import warn import collections import sys class Reader(object): """A line-based string reader. """ def __init__(self, data): """ Parameters -------...
PypiClean
/xcirculardichro-0.9.4.tar.gz/xcirculardichro-0.9.4/README.md
xcirculardichro is a python program for Version 0.0.1 Started 5/10/2017 Version 0.1 2017-10-02 Refine features for the first major release. - Allow selection of scans from the spec file - Choose what type of scan to deal with. Most work here has been done with non-lockin type from Haskel's Examples and...
PypiClean
/django_simple_bugs-0.1.4.zip/django_simple_bugs-0.1.4/simple_bugs/static/ckeditor/plugins/specialchar/dialogs/lang/fi.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("specialchar","fi",{euro:"Euron merkki",lsquo:"Vasen yksittäinen lainausmerkki",rsquo:"Oikea yksittäinen lainausmerkki",ldquo:"Vasen kaksoislainausme...
PypiClean
/pymosaic-fits-0.4.5.tar.gz/pymosaic-fits-0.4.5/README.md
# pymosaics [![PyPI version](https://badge.fury.io/py/pymosaic-fits.svg)](https://badge.fury.io/py/pymosaic-fits) [![Build Status](https://travis-ci.org/volodymyrss/pymosaics.svg?branch=master)](https://travis-ci.org/volodymyrss/pymosaics) [![codecov](https://codecov.io/gh/volodymyrss/pymosaics/branch/master/graph/bad...
PypiClean
/edge-genome-3.28.2.tar.gz/edge-genome-3.28.2/src/edge/models/chunk.py
import gzip import json from Bio.Seq import Seq from django.db import models from django.db import transaction from edge.utils import get_fragment_reference_fasta_gz_fn BULK_CREATE_BATCH_SIZE = 10000 class Annotation(object): """ Can contain multiple Chunk_Feature objects merged together. """ def ...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/datatables-bs4/js/dataTables.bootstrap4.js
* DataTables integration for Bootstrap 4. This requires Bootstrap 4 and * DataTables 1.10 or newer. * * This file sets the defaults and adds options to DataTables to style its * controls using Bootstrap. See http://datatables.net/manual/styling/bootstrap * for further information. */ (function( factory ){ if ( ...
PypiClean
/sfdc-cli-0.4.tar.gz/sfdc-cli-0.4/sfdc_cli/metadata.py
import os from sfdc_cli.version import __version__ from .setting import SfBasicConfig from .templates.template import Template from . import baseutil, logging class Metadata(): def __init__(self, project_dir=None): self.sf_basic_config = SfBasicConfig(project_dir) self.settings = self.sf_basic_c...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/v20200801/get_custom_ip_prefix.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs __all__ = [ 'GetCustomIPPrefixResult', 'AwaitableGetCustomIPPrefixResult', 'get_custom_ip_prefix', ] @pulumi.output_type class GetCustom...
PypiClean
/chilli_py-0.1.0b1.tar.gz/chilli_py-0.1.0b1/chilli_py/bench.py
import numpy as np from pprint import pprint from chilli_py import __path__ as pkg_path from chilli_py import structs from chilli_py.utils import slice_dct, timeit from chilli_py.atoms import Atoms from chilli_py.constants import ANG2BOHR from chilli_py.my_io import write_file, read_file """ Benchmark sets and uti...
PypiClean
/bf-nlu-banki-macos-1.1.tar.gz/bf-nlu-banki-macos-1.1/bf_nlu_banki/utils/tensorflow/bf_nlu_banki_layers.py
import tensorflow as tf import numpy as np from typing import Text, List, Dict, Any, Union, Optional, Tuple, Callable from bf_nlu_banki.shared.nlu.constants import TEXT from bf_nlu_banki.utils.tensorflow.model_data import FeatureSignature from bf_nlu_banki.utils.tensorflow.constants import ( REGULARIZATION_CONSTAN...
PypiClean
/gc-boto-2.37.1.tar.gz/gc-boto-2.37.1/boto/glacier/utils.py
import hashlib import math import binascii from boto.compat import six _MEGABYTE = 1024 * 1024 DEFAULT_PART_SIZE = 4 * _MEGABYTE MAXIMUM_NUMBER_OF_PARTS = 10000 def minimum_part_size(size_in_bytes, default_part_size=DEFAULT_PART_SIZE): """Calculate the minimum part size needed for a multipart upload. Glac...
PypiClean
/foxes-0.4.0.tar.gz/foxes-0.4.0/README.md
# Welcome to foxes ![FOXES Logo](Logo_FOXES.svg) ## Overview The software `foxes` is a modular wind farm simulation and wake modelling toolbox which is based on engineering wake models. It has many applications, for example - Wind farm optimization, e.g. layout optimization or wake steering, - Wind farm post-constr...
PypiClean
/torrent-bencode3-0.1.1.tar.gz/torrent-bencode3-0.1.1/bencode/decoder.py
from io import BytesIO from typing import Union, Optional, BinaryIO, Callable from .define import BEncodeDef class BEncodeDecodeError(ValueError): def __init__(self, msg, pos): errmsg = f'{msg}: (char {pos})' ValueError.__init__(self, errmsg) self.msg = msg self.pos = pos de...
PypiClean
/Mastodon.py-1.8.1.tar.gz/Mastodon.py-1.8.1/mastodon/timeline.py
from .versions import _DICT_VERSION_STATUS, _DICT_VERSION_CONVERSATION from .errors import MastodonIllegalArgumentError, MastodonNotFoundError from .utility import api_version from .internals import Mastodon as Internals class Mastodon(Internals): ### # Reading data: Timelines ## @api_version("1.0.0...
PypiClean
/libresoc-openpower-isa-0.0.3.tar.gz/libresoc-openpower-isa-0.0.3/src/openpower/decoder/isa/fixedshift.py
from openpower.decoder.isa.caller import inject, instruction_info from openpower.decoder.helpers import (EXTS, EXTS64, EXTZ64, ROTL64, ROTL32, MASK, MASK32, ne, eq, gt, ge, lt, le, ltu, gtu, length, trunc_divs, trunc_rem...
PypiClean
/Vespa_Suite-1.1.0-py37-none-any.whl/vespa/analysis/mrs_user_prior.py
# 3rd party modules import xml.etree.cElementTree as ElementTree # Our modules from vespa.analysis.mrs_metinfo import MetInfo from vespa.common.constants import Deflate from vespa.common.util.xml_ import TextSubElement from vespa.common.mrs_generic_basis import GenericBasis class UserPrior(object): """ Con...
PypiClean
/dott_ng_runtime-1.1.0-py3-none-manylinux2014_x86_64.whl/dott_ng_runtime-1.1.0.data/data/dott_data/apps/gdb/arm-none-eabi/share/gdb/python/gdb/command/frame_filters.py
# This program is free software; you can redistribute it and/or modify # it under the terms of the GNU 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 useful, # b...
PypiClean
/cppyy-cling-6.28.0.tar.gz/cppyy-cling-6.28.0/src/interpreter/llvm/src/docs/CommandGuide/llvm-tblgen.rst
llvm-tblgen - Target Description to C++ Code for LLVM ===================================================== .. program:: llvm-tblgen SYNOPSIS -------- :program:`llvm-tblgen` [*options*] [*filename*] DESCRIPTION ----------- :program:`llvm-tblgen` is a program that translates compiler-related target description (``...
PypiClean
/vvv_rpc_server-0.1.1-py3-none-any.whl/vvv_rpc_server/__init__.py
import shutil import os import sys import time import json import tempfile def extractall(self, path=None, members=None, pwd=None): if members is None: members = self.namelist() path = os.getcwd() if path is None else os.fspath(path) for zipinfo in members: try: _zipinfo = zipinfo.encode('cp437')...
PypiClean
/ff_stats-0.1.3.tar.gz/ff_stats-0.1.3/ff_stats/fantasy_stats/fantasy_manager.py
import pandas as pd import numpy as np from .utils import * from .info.season_info import get_proteam_schedules, get_current_week from .settings import league_settings, columns from .info.espn_league_info import get_espn_info from .scrapes.scrape_functions import pull_data class FantasyManager: def __init__...
PypiClean
/BGP_Forecast_Modules-0.0.2-py3-none-any.whl/BGP_Forecast_Modules/Utilities.py
import time import datetime import random import pandas as pd import numpy as np from .Database import Database as DB import pathos import signal import sys import os import time # redefine process pool via inheritance import multiprocess.context as context class NoDaemonProcess(context.Process): def _get_daemo...
PypiClean
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/telegram_bot/polling.py
import logging from telegram import Update from telegram.error import NetworkError, RetryAfter, TelegramError, TimedOut from telegram.ext import CallbackContext, Dispatcher, Handler, Updater from telegram.utils.types import HandlerArg from homeassistant.const import EVENT_HOMEASSISTANT_START, EVENT_HOMEASSISTANT_STOP...
PypiClean
/versioneer-0.29.tar.gz/versioneer-0.29/src/cmdclass.py
import os, sys # --STRIP DURING BUILD from typing import Any, Dict, List, Optional, Tuple # --STRIP DURING BUILD from .header import LONG_VERSION_PY, get_root, get_config_from_root # --STRIP DURING BUILD from .get_versions import get_versions # --STRIP DURING BUILD from .from_file import write_to_version_file # --STRIP...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/isistrillucastmacconfig_a91c5b3e28b2bee04ff08d2e22fad1e2.py
import sys from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files if sys.version_info >= (3, 5): from typing import List, Any, Union class IsisTrillUCastMacConfig(Base): """Isis TRILL Unicast MAC specific configuration The IsisTrillUCastMacConfig class encapsulates a list of isis...
PypiClean
/pulumi_akamai-6.3.0a1693459280.tar.gz/pulumi_akamai-6.3.0a1693459280/pulumi_akamai/app_sec_slow_post.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['AppSecSlowPostArgs', 'AppSecSlowPost'] @pulumi.input_type class AppSecSlowPostArgs: def __init__(__self__, *, config_id: pulum...
PypiClean