id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/DearPyGui_DragAndDrop-1.0.0-py3-none-any.whl/DearPyGui_DragAndDrop/main.py
from __future__ import annotations import traceback from enum import IntEnum from pathlib import Path from typing import Type, TypeVar, Dict, Callable, Any, Union, List import dearpygui.dearpygui as dpg DragAndDropDataObject = Union[None, str, List[Path]] SubscriptionTag = TypeVar('SubscriptionTag', bound=int) cla...
PypiClean
/Cray-0.0.10.tar.gz/Cray-0.0.10/cray/jobs.py
import boto3 import cray.config as config import cray.s3 as cs3 import subprocess from os import getcwd from shutil import copyfile from pathlib import Path def get_jobs(job_prefix=None): prefix = config.job_prefix() + "/" if job_prefix is not None: prefix = prefix + job_prefix return ( (...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Tool/cyglink.py
from SCons.Tool.linkCommon import StringizeLibSymlinks, EmitLibSymlinks from SCons.Util import CLVar, is_String from . import gnulink def cyglink_lib_emitter(target, source, env, **kw): verbose = True if 'variable_prefix' in kw: var_prefix = kw['variable_prefix'] else: var_prefix = 'SHLIB...
PypiClean
/Mopidy-OE1-1.2.0.tar.gz/Mopidy-OE1-1.2.0/mopidy_oe1/library.py
from __future__ import unicode_literals import logging import re from client import OE1Client from mopidy import backend from mopidy.models import Ref, Track logger = logging.getLogger(__name__) class OE1Uris(object): ROOT = 'oe1:directory' LIVE = 'oe1:live' CAMPUS = 'oe1:campus' ARCHIVE = 'oe1:ar...
PypiClean
/Destipy-0.1.14.tar.gz/Destipy-0.1.14/destipy/endpoints/social.py
from destipy.utils.http_method import HTTPMethod from destipy.utils.requester import Requester class Social: """Social endpoints.""" def __init__(self, requester, logger): self.requester: Requester = requester self.logger = logger self.SOCIAL_URL = "https://www.bungie.net/Platform/Socia...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ro-ro.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/OLCTools-1.3.5.tar.gz/OLCTools-1.3.5/olctools/accessoryFunctions/sra_confirmation.py
from olctools.accessoryFunctions.accessoryFunctions import SetupLogging from argparse import ArgumentParser import logging import pandas import os __author__ = 'adamkoziol' class Check(object): def main(self): self.load_biosample_table() self.load_curation_table() self.load_sra_table() ...
PypiClean
/MDS_big_advantrue-0.1.tar.gz/MDS_big_advantrue-0.1/MDS_Big_Adventure/item/sparkLance.py
class sparkLance(): #initialize def __init__(self, name, hp, po, status): self.__name = name self.__hp = hp self.__po = po self.__status = status #multiply the health value to the player def betaTransform(self, p): try: p.health = p.health*self.__hp ...
PypiClean
/Adytum-PyMonitor-1.0.5.tar.bz2/Adytum-PyMonitor-1.0.5/lib/math/base.py
NOTATION10 = '0123456789' NOTATION36 = '0123456789abcdefghijklmnopqrstuvwxyz' NOTATION65 = '-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz' NOTATION68 = '$,-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~' NOTATION69 = '%+-.0123456789=ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstu...
PypiClean
/CustomShellCreator-0.0.5.tar.gz/CustomShellCreator-0.0.5/README.md
# CustomShellCreator ## About CustomShellCreator is a module that allows you to create a custom shell ### Author The author is [chinmaym505](https://github.com/chinmaym505) ### License CustomShellCreator has been released under the Apache Software License ## How to use this module ``` import CustomShellCreator.shell as...
PypiClean
/MovieRecEngine-0.1.1.tar.gz/MovieRecEngine-0.1.1/README.md
# MovieRecEngine MovieRecEngine be an abbreviation of Movie Recommendation Engine. This is a simple collaborative filtering based library using Pytorch Sequential Neural Network to make your Movie Recommendation System easy. *This library is in very early-stage currently! So, there might be remarkable changes.* ## I...
PypiClean
/OctoBot-Backtesting-1.9.1.tar.gz/OctoBot-Backtesting-1.9.1/octobot_backtesting/channels_manager.py
import asyncio import copy import async_channel.channels as channels import async_channel.enums as channel_enums import octobot_commons.channels_name as channels_name import octobot_commons.list_util as list_util import octobot_commons.logging as logging import octobot_commons.asyncio_tools as asyncio_tools class C...
PypiClean
/Aggrescan3D-1.0.2.tar.gz/Aggrescan3D-1.0.2/a3d_gui/static/js/hyp.js
var Hyphenator=(function(window){'use strict';var contextWindow=window,supportedLangs=(function(){var r={},o=function(code,file,script,prompt){r[code]={'file':file,'script':script,'prompt':prompt};};o('be','be.js',1,'Мова гэтага сайта не можа быць вызначаны аўтаматычна. Калі ласка пакажыце мову:');o('ca','ca.js',0,'');...
PypiClean
/BRAILS-3.0.1.tar.gz/BRAILS-3.0.1/brails/modules/FoundationClassifier/npid/npid_toolbox/calculate_all_distances.py
from MDistance import Distance_Eval from PIL import Image import os import pandas as pd import numpy as np import cv2 def calc_to_csv(root_path,csv_filename,evaluator): distances = [] for root, dirs, files in os.walk(root_path,followlinks=True): print ("Traversing {}".format(root)) fo...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/utils/views.py
"""Helper methods for views.""" import os from time import mktime from typing import Optional from zipfile import ZipFile from django.conf import settings from django.core.paginator import EmptyPage, Paginator from django.http import FileResponse, Http404, HttpResponse, HttpResponseRedirect from django.shortcuts impo...
PypiClean
/MeUtils-2023.8.29.13.9.44-py3-none-any.whl/meutils/fileparser/filetype/types/video.py
from __future__ import absolute_import from .base import Type from .isobmff import IsoBmff class Mp4(IsoBmff): """ Implements the MP4 video type matcher. """ MIME = 'video/mp4' EXTENSION = 'mp4' def __init__(self): super(Mp4, self).__init__( mime=Mp4.MIME, ex...
PypiClean
/frmt-2.0.0.tar.gz/frmt-2.0.0/README.rst
frmt ==== .. image:: https://travis-ci.com/sigvaldm/frmt.svg?branch=master :target: https://travis-ci.com/sigvaldm/frmt .. image:: https://coveralls.io/repos/github/sigvaldm/frmt/badge.svg?branch=master :target: https://coveralls.io/github/sigvaldm/frmt?branch=master .. image:: https://img.shields.io/pypi/py...
PypiClean
/MCREPOGEN-0.3.tar.gz/MCREPOGEN-0.3/mcrepogen/configobj.py
# ConfigObj 4 # http://www.voidspace.org.uk/python/configobj.html # Released subject to the BSD License # Please see http://www.voidspace.org.uk/python/license.shtml # Scripts maintained at http://www.voidspace.org.uk/python/index.shtml # For information about bugfixes, updates and support, please join the # ConfigO...
PypiClean
/NDBD_distributions-0.1.tar.gz/NDBD_distributions-0.1/NDBD_distributions/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution std...
PypiClean
/MXFusion-0.3.1.tar.gz/MXFusion-0.3.1/mxfusion/components/distributions/laplace.py
from ...common.config import get_default_MXNet_mode from ..variables import Variable from .univariate import UnivariateDistribution class Laplace(UnivariateDistribution): """ The one-dimensional Laplace distribution. The Laplace distribution can be defined over a scalar random variable or an array of rand...
PypiClean
/BrainLes_HD_BET-0.0.3-py3-none-any.whl/brainles_hd_bet/network_architecture.py
import torch import torch.nn as nn import torch.nn.functional as F from brainles_hd_bet.utils import softmax_helper class EncodingModule(nn.Module): def __init__(self, in_channels, out_channels, filter_size=3, dropout_p=0.3, leakiness=1e-2, conv_bias=True, inst_norm_affine=True, lrelu_inplace=Tru...
PypiClean
/MSWinPrint-1.1.tar.gz/MSWinPrint-1.1/MSWinPrint.py
# "constants" for use with printer setup calls HORZRES = 8 VERTRES = 10 LOGPIXELSX = 88 LOGPIXELSY = 90 PHYSICALWIDTH = 110 PHYSICALHEIGHT = 111 import win32gui, win32ui, win32print, win32con try: from PIL import ImageWin except: ImageWin = None scale_factor = 20 prdict = None paper_sizes = { "letter"...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/Asana-Math/Fraktur/Regular/Main.js
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.AsanaMathJax_Fraktur={directory:"Fraktur/Regular",family:"AsanaMathJax_Fraktur",testString:"\u210C\u2128\u212D\uD835\uDD04\uD835\uDD05\uD835\uDD07\uD835\uDD08\uD835\uDD09\uD835\uDD0A\uD835\uDD0D\uD835\uDD0E\uD835\uDD0F\uD835\uDD10\uD835\uDD11\uD835\uDD12",32:[0,0,249,0,0],84...
PypiClean
/HinteDI-0.3.2.tar.gz/HinteDI-0.3.2/README.md
# HinteDI - simple dependency injection system with type hints This package is a small utility I have been using in my own projects, a super simple tool for basic dependency injection in python based on type hints and decorators. This package exposes three classes: HinteDI, InjectionException and InstanceSentinel. I...
PypiClean
/BigJob-0.64.5.tar.gz/BigJob-0.64.5/examples/tutorial/chained_ensembles.py
import os import sys import pilot import traceback """ DESCRIPTION: Tutorial 2: Chaining Tasks Note: User must edit PILOT SETUP and TASK DESCRIPTION 1-2 sections This example will not run if these values are not set. """ # ---------------- BEGIN REQUIRED PILOT SETUP ----------------- # Distributed Coordination Servi...
PypiClean
/Art3dUtils-0.3.7.tar.gz/Art3dUtils-0.3.7/art3dutils/utilities.py
import __builtin__ import os import locale import sys import math import re import time import datetime import mako.template import pkg_resources import xml from xml.dom.minidom import parse, parseString #TODO fix this import #from scroll.utils import pad_box RANGE_SEPARATOR = '_' GROUP_SEPARATOR = '-' GROUP_RANGE_SE...
PypiClean
/Ldtools-0.8.1.tar.gz/Ldtools-0.8.1/ldtools/origin.py
from __future__ import print_function, unicode_literals try: unicode except NameError: basestring = unicode = str # Python 3 import datetime import rdflib from xml.sax._exceptions import SAXParseException import logging from rdflib import compare from ldtools.backends import RestBackend, ContentNegotiation...
PypiClean
/NREL_reV-0.8.1-py3-none-any.whl/reV/handlers/multi_year.py
import glob import time import logging import numpy as np import os import pandas as pd from warnings import warn from rex import Resource from rex.utilities.utilities import (get_class_properties, parse_year, get_lat_lon_cols) from gaps.pipeline import parse_previous_status from ...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/ui/alignment_utils.py
from muntjac.ui.alignment import Alignment from muntjac.ui.layout import IAlignmentHandler class AlignmentUtils(object): """Helper class for setting alignments using a short notation. Supported notation is: - t, top for top alignment - m, middle for vertical center alignment - b, bottom fo...
PypiClean
/DiffCapAnalyzer-0.1.1.tar.gz/DiffCapAnalyzer-0.1.1/diffcapanalyzer/databasewrappers.py
import io import os import pandas as pd from pandas import ExcelWriter import pandas.io.sql as pd_sql import sqlite3 as sql import scipy import numpy as np from diffcapanalyzer.chachifuncs import load_sep_cycles from diffcapanalyzer.chachifuncs import get_clean_cycles from diffcapanalyzer.chachifuncs import get_clean_...
PypiClean
/Firefly_III_API_Client-2.0.5.0-py3-none-any.whl/firefly_iii_client/paths/v1_webhooks_id_messages_message_id/get.py
from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from firefly_iii_client import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re...
PypiClean
/BGISimtool-0.1-py3-none-any.whl/bgisimtool/histogram.py
# Copyright (c) 2018 Swann Levasseur # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, dis...
PypiClean
/MeaxisNetwork-0.1.5.tar.gz/MeaxisNetwork-0.1.5/meaxisnetwork/creations.py
import requests import json from .utils import check_response, HTTPRequest class Creations(): def __init__(self, **kwargs): self.logcook = None self.sesscook = None for name, value in kwargs.items(): if name == "logcook": self.logcook = value if name == "sesscook": self.sesscook = value from ...
PypiClean
/Firefly_III_API_Client-2.0.5.0-py3-none-any.whl/firefly_iii_client/paths/v1_piggy_banks_id_attachments/get.py
from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from firefly_iii_client import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/4994.32ad41031b90628a0e18.min.js
"use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[4994],{83565:function(n,e,t){var o=t(87537),s=t.n(o),r=t(23645),l=t.n(r)()(s());l.push([n.id,"/*!\n * StackOverflow.com light style\n *\n * @stackoverflow/stacks v0.56.0\n * https://github.com/StackExchange/Sta...
PypiClean
/564bff00ff_strawberry_graphql-0.168.2-py3-none-any.whl/strawberry/extensions/directives.py
from __future__ import annotations from typing import TYPE_CHECKING, Any, Dict, Tuple from strawberry.extensions import SchemaExtension from strawberry.types import Info from strawberry.types.nodes import convert_arguments from strawberry.utils.await_maybe import await_maybe if TYPE_CHECKING: from graphql import...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/plugins/a11yhelp/dialogs/a11yhelp.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'a11yHelp', function( editor ) { var lang = editor.lang.accessibilityHelp, id = CKEDITOR.tools.getNextNumber(); // CharCode <-> KeyChar. var keyMa...
PypiClean
/FALCONN-1.3.1.tar.gz/FALCONN-1.3.1/external/pybind11/docs/benchmark.rst
Benchmark ========= The following is the result of a synthetic benchmark comparing both compilation time and module size of pybind11 against Boost.Python. A detailed report about a Boost.Python to pybind11 conversion of a real project is available here: [#f1]_. .. [#f1] http://graylab.jhu.edu/RosettaCon2016/PyRosetta...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/layout/RadioGroup.js
define("dojox/layout/RadioGroup",["dojo/_base/kernel","dojo/_base/declare","dojo/_base/html","dojo/_base/lang","dojo/_base/query","dijit/_Widget","dijit/_Templated","dijit/_Contained","dijit/layout/StackContainer","dojo/fx/easing","dojo/_base/fx","dojo/dom-construct","dojo/dom-class"],function(_1,_2,_3,_4,_5,_6,_7,_8,_...
PypiClean
/Dero-0.15.0-py3-none-any.whl/dero/manager/io/file/load/parsers/assign.py
import ast from typing import Union, TYPE_CHECKING if TYPE_CHECKING: from dero.manager.assignments.models.statement import AssignmentStatement from dero.manager.assignments.models.container import AssignmentStatementContainer AssignmentStatementOrNone = Union['AssignmentStatement', None] class AssignmentExtra...
PypiClean
/Flootty-3.3.0-py3-none-any.whl/flootty/floo/common/utils.py
import os import errno import json import re import hashlib import time import webbrowser from functools import wraps try: from urllib.parse import urlparse assert urlparse except ImportError: from urlparse import urlparse try: from .. import editor from . import shared as G from .exc_fmt imp...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/gui/kivy/uix/dialogs/choice_dialog.py
from kivy.app import App from kivy.factory import Factory from kivy.properties import ObjectProperty from kivy.lang import Builder from kivy.uix.checkbox import CheckBox from kivy.uix.label import Label from kivy.uix.widget import Widget Builder.load_string(''' <ChoiceDialog@Popup> id: popup title: '' size...
PypiClean
/CsuPMTD-1.0.27.tar.gz/CsuPMTD-1.0.27/PMTD/maskrcnn_benchmark/apex/apex/pyprof/prof/reduction.py
from collections import OrderedDict from .utility import Utility from .base import OperatorLayerBase class Mean(OperatorLayerBase): def __init__(self, d): marker = eval(d.argMarker[0]) mod = marker['mod'] op = marker['op'] args = marker['args'] self.marker = marker self.mod_ = mod self.op_ = op self...
PypiClean
/ChronoNLP-3.0.2-py3-none-any.whl/Chrono/TimePhraseToChrono/Season.py
import re import string import Chrono.ChronoUtils.parse_text from Chrono import chronoEntities as chrono from Chrono.TimePhraseToChrono.Modifier import hasNextLastThis from Chrono.ChronoUtils.parse_text import calculateSpan from Chrono.config import DICTIONARY ## Parses a TimePhrase entity's text field to determine ...
PypiClean
/HibiAPI-0.8.0-py3-none-any.whl/hibiapi/api/tieba/api.py
import hashlib from enum import Enum from random import randint from typing import Any, Dict, Optional from hibiapi.utils.config import APIConfig from hibiapi.utils.net import catch_network_error from hibiapi.utils.routing import BaseEndpoint, dont_route Config = APIConfig("tieba") class TiebaSignUtils: salt = ...
PypiClean
/DjangoComponents-0.0.0.33.tar.gz/DjangoComponents-0.0.0.33/django_components/static/js/build/.module-cache/5bb08a404ee790c0ba3a9151cc9f9db947ff5291.js
var Pagebutton = React.createClass({displayName: "Pagebutton", pager: function() { if (this.props.clicky) { if (this.props.className.includes('ellipses')) { if (this.props.forward) this.props.forward(); if (this.props.back) this.props.back(); } else { this.props.clicky(this.pro...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/variables/variables.py
import codecs import os from datetime import datetime import yaml from jinja2 import TemplateError from jinja2.nativetypes import NativeEnvironment from loguru import logger from sqlalchemy import Column from sqlalchemy.sql.sqltypes import DateTime, Integer, Unicode from flexget import db_schema from flexget.config_s...
PypiClean
/KicadModTree-1.1.2.tar.gz/KicadModTree-1.1.2/README.md
This repository contains scripts to generate custom KiCAD footprints using python, and a framework which allows us to create custom KiCAD footprint. A big bunch of footprints of the KiCad library was developed using this framework. # KicadModTree **Licence:** GNU GPLv3+ **Maintainer:** Thomas Pointhuber [![Build St...
PypiClean
/BlueWhale3-Educational-0.4.1.tar.gz/BlueWhale3-Educational-0.4.1/orangecontrib/educational/widgets/utils/kmeans.py
from functools import wraps from types import FunctionType from typing import NamedTuple, List import numpy as np import Orange HistoryEntry = NamedTuple("HistoryEntry", (("step", FunctionType), ("centroids", np.ndarray), ("cluste...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@types/node/wasi.d.ts
declare module 'wasi' { interface WASIOptions { /** * An array of strings that the WebAssembly application will * see as command line arguments. The first argument is the virtual path to the * WASI command itself. */ args?: string[] | undefined; /** ...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/distutils.ext/obidistutils/serenity/pip/_vendor/requests/packages/urllib3/packages/six.py
#Copyright (c) 2010-2011 Benjamin Peterson #Permission is hereby granted, free of charge, to any person obtaining a copy of #this software and associated documentation files (the "Software"), to deal in #the Software without restriction, including without limitation the rights to #use, copy, modify, merge, publish, d...
PypiClean
/Chiplotle3-0.4.3-py3-none-any.whl/chiplotle3/tools/hpgltools/relativize.py
from chiplotle3.geometry.core.coordinate import Coordinate from chiplotle3.hpgl import commands as hpgl import numpy ## TODO: this works, but is quite ugly. Refactor! def relativize(data): '''Converts all absolute coordinate commands (PA, RA, EA, AA) into relative commands (PR, RR, ER, AR), so that everything ...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/model_implementations/transformers/clip_encoder.py
# DeepSpeed Team import torch from deepspeed.accelerator import get_accelerator from ..features.cuda_graph import CUDAGraph class DSClipEncoder(CUDAGraph, torch.nn.Module): def __init__(self, enc, enable_cuda_graph=False): super().__init__(enable_cuda_graph=enable_cuda_graph) enc.text_model._bu...
PypiClean
/NanoCap-1.0b12.tar.gz/NanoCap-1.0b12/nanocap/structures/structure.py
from nanocap.core.globals import * from nanocap.core.util import * import os,sys,math,copy,random,time,ctypes,shutil,datetime import numpy import yaml import nanocap.core.points as points from nanocap.core import triangulation,constructdual,calculateschlegel,ringcalculator,output,input from nanocap.clib import clib_int...
PypiClean
/AppTrack-1.0.tar.gz/AppTrack-1.0/apptrack/codecs.py
from __future__ import absolute_import from future import standard_library standard_library.install_aliases() # noqa from builtins import object from past.builtins import basestring from opentracing import ( InvalidCarrierException, SpanContextCorruptedException, ) from .constants import ( BAGGAGE_HEADE...
PypiClean
/AnyBlok-2.1.0.tar.gz/AnyBlok-2.1.0/anyblok/model/plugins.py
from logging import getLogger from pkg_resources import iter_entry_points logger = getLogger(__name__) def get_model_plugins(registry): res = [] for i in iter_entry_points("anyblok.model.plugin"): logger.info("AnyBlok Load model plugin: %r" % i) res.append(i.load()(registry)) return res...
PypiClean
/Jian-0.1.tar.gz/Jian-0.1/jian/jwt.py
from functools import wraps from flask_jwt_extended import JWTManager, verify_jwt_in_request, get_current_user, create_access_token, \ create_refresh_token from .exception import AuthFailed, InvalidTokenException, ExpiredTokenException, NotFound jwt = JWTManager() def admin_required(fn): @wraps(fn) def...
PypiClean
/APtools-0.2.4-py3-none-any.whl/aptools/plotting/quick_diagnostics.py
import numpy as np import matplotlib import matplotlib.pyplot as plt import matplotlib.gridspec as gridspec import matplotlib.patheffects as path_effects import scipy.constants as ct import aptools.data_analysis.beam_diagnostics as bd from aptools.data_handling.reading import read_beam from aptools.plotting.plot_types...
PypiClean
/Adafruit_Blinka-8.20.1-py3-none-any.whl/adafruit_blinka/microcontroller/ftdi_mpsse/mpsse/i2c.py
"""I2C Class for FTDI MPSSE""" from adafruit_blinka.microcontroller.ftdi_mpsse.mpsse.pin import Pin from adafruit_blinka.microcontroller.ftdi_mpsse.mpsse.url import ( get_ft232h_url, get_ft2232h_url, ) class I2C: """Custom I2C Class for FTDI MPSSE""" MASTER = 0 SLAVE = 1 _mode = None # p...
PypiClean
/Flask-Ask-0.9.8.tar.gz/Flask-Ask-0.9.8/README.rst
.. image:: http://flask-ask.readthedocs.io/en/latest/_images/logo-full.png =================================== Program the Amazon Echo with Python =================================== Flask-Ask is a `Flask extension <http://flask.pocoo.org/extensions/>`_ that makes building Alexa skills for the Amazon Echo easier and...
PypiClean
/DBUtils-3.0.3.tar.gz/DBUtils-3.0.3/README.md
DBUtils ======= DBUtils is a suite of tools providing solid, persistent and pooled connections to a database that can be used in all kinds of multi-threaded environments. The suite supports DB-API 2 compliant database interfaces and the classic PyGreSQL interface. The current version 3.0.3 of DBUtils supports Python...
PypiClean
/BetterTablesExtension-0.0.2.tar.gz/BetterTablesExtension-0.0.2/better_tables.py
from __future__ import absolute_import from __future__ import unicode_literals from markdown import Extension from markdown.blockprocessors import BlockProcessor from markdown.util import etree class BetterTableProcessor(BlockProcessor): """ Process Tables. """ def test(self, parent, block): rows = b...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Scanner/__init__.py
import re import SCons.Node.FS import SCons.PathList import SCons.Util class _Null: pass # This is used instead of None as a default argument value so None can be # used as an actual argument value. _null = _Null def Scanner(function, *args, **kwargs): """Factory function to create a Scanner Object. C...
PypiClean
/BayesASE-21.1.13.1.tar.gz/BayesASE-21.1.13.1/scripts/check_comparate_design_file.py
import argparse import os import pandas as pd def get_args(): """Process command-line arguments""" parser = argparse.ArgumentParser(description="""Check user-supplied Pre-Bayesian design file for correct formatting and adherence to BASE guidelines""") parser.add_argume...
PypiClean
/DI-treetensor-0.4.1.tar.gz/DI-treetensor-0.4.1/treetensor/torch/funcs/comparison.py
import builtins import torch from .base import doc_from_base, func_treelize from ..stream import stream_call from ...common import ireduce __all__ = [ 'equal', 'isfinite', 'isinf', 'isnan', 'isclose', 'eq', 'ne', 'lt', 'le', 'gt', 'ge', ] # noinspection PyShadowingBuiltins @doc_from_base() @ireduce(bui...
PypiClean
/OTLModel/Classes/LijnvormigElementMarkering.py
from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut from OTLMOW.OTLModel.Classes.Markering import Markering from OTLMOW.OTLModel.Classes.AOWSType import AOWSType from OTLMOW.OTLModel.Datatypes.KlLEMarkeringCode import KlLEMarkeringCode from OTLMOW.OTLModel.Datatypes.KlLEMarkeringSoort import KlLEMarkering...
PypiClean
/CDS-1.0.1.tar.gz/CDS-1.0.1/cds/modules/webhooks/status.py
from __future__ import absolute_import import json import sqlalchemy from copy import deepcopy from celery import states from invenio_webhooks.models import Event def get_deposit_events(deposit_id, _deleted=False): """Get a list of events associated with a deposit.""" # return Event.query.filter( # ...
PypiClean
/Flask-Perm-0.2.8.tar.gz/Flask-Perm-0.2.8/flask_perm/services/user_permission.py
from sqlalchemy import func from sqlalchemy.exc import IntegrityError from ..core import db from ..models import UserPermission def create(user_id, permission_id): user_permission = UserPermission( user_id=user_id, permission_id=permission_id, ) db.session.add(user_permission) try: ...
PypiClean
/FsnViz-0.3.0.tar.gz/FsnViz-0.3.0/fsnviz/fusioncatcher.py
from crimson.fusioncatcher import parse from .models import CircosEntry, CircosLabel, CircosLink, FusionToolResults from .utils import adjust_chrom __all__ = ["FusionCatcherResults"] class FusionCatcherResults(FusionToolResults): """Class representing a FusionCatcher run result.""" mito_names = ("chrM", ...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/db/backends/oracle/utils.py
import datetime from .base import Database class InsertVar: """ A late-binding cursor variable that can be passed to Cursor.execute as a parameter, in order to receive the id of the row created by an insert statement. """ types = { "AutoField": int, "BigAutoField": int, ...
PypiClean
/AxlNLP-0.0.1.tar.gz/AxlNLP-0.0.1/axlnlp/dataset/featureset.py
import numpy as np from abc import ABC, abstractmethod import os # axl nlp import axlnlp.utils as u from axlnlp import get_logger logger = get_logger(__name__) class FeatureSet: def __init__(self, dataset, features:list, dump_path:str="/tmp/TEST_FEATURE.pkl"): self.dataset = dataset self.dump_p...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/masked/textctrl.py
import wx from wx.lib.masked import * # jmg 12/9/03 - when we cut ties with Py 2.2 and earlier, this would # be a good place to implement the 2.3 logger class from wx.tools.dbg import Logger ##dbg = Logger() ##dbg(enable=1) class BaseMaskedTextCtrl( wx.TextCtrl, MaskedEditMixin ): """ This is the primary de...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/parser.js
define("dojo/parser",["./_base/kernel","./_base/lang","./_base/array","./_base/html","./_base/window","./_base/url","./_base/json","./aspect","./date/stamp","./query","./on","./ready"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b){ new Date("X"); var _c={"dom-attributes-explicit":document.createElement("div").attributes.l...
PypiClean
/DVDev-0.1.3.tar.gz/DVDev-0.1.3/dvdev/public/js/development-bundle/ui/ui.datepicker.js
(function($) { // hide the namespace $.extend($.ui, { datepicker: { version: "1.7" } }); var PROP_NAME = 'datepicker'; /* Date picker manager. Use the singleton instance of this class, $.datepicker, to interact with the date picker. Settings for (groups of) date pickers are maintained in an instance object, ...
PypiClean
/MeteorTools-2023.9.0-py3-none-any.whl/meteortools/utils/plotTrack.py
import csv from matplotlib import pyplot as plt import numpy as np from ..utils import greatCircleDistance def trackToDistvsHeight(trackcsvfile): """ Plot a distance vs height graph from the supplied CSV file Arguments: trackcsvfile: [str] full path to a CSV file containing columns of lat...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/basic/lang/bg.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/license */ CKEDITOR.lang['bg']={"editor":"Редактор за форматиран текст","editorPanel":"Панел на текстовия редактор","common":{"editorHelp":"натиснете ALT+0 за помощ","browseServer":"Избо...
PypiClean
/ORCID-Hub-4.16.6.tar.gz/ORCID-Hub-4.16.6/orcid_hub/models.py
"""Application models.""" import copy import csv import json import jsonschema import os import random import re import secrets import string import uuid from collections import namedtuple from datetime import datetime from enum import IntFlag, IntEnum from hashlib import md5 from io import StringIO from itertools imp...
PypiClean
/DuHast-1.0.7-py3-none-any.whl/duHast/APISamples/RevitCeilings.py
''' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Revit ceilings helper functions. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ''' # #License: # # # Revit Batch Processor Sample Code ...
PypiClean
/Nikippe-0.1.11.tar.gz/Nikippe-0.1.11/nikippe/renderer/sequentialchart.py
from nikippe.renderer.achart import AChart class SequentialChart(AChart): """ Regular chart with the latest values added at the right and the oldest values on the left. If full, the chart is shifted to left; the oldest entry removed. no additional yaml entries necessary. """ def __init__(self...
PypiClean
/OBP_security_pillar_2-0.0.4.tar.gz/OBP_security_pillar_2-0.0.4/OBP_security_pillar_2/lambda_inside_vpc.py
import logging from botocore.exceptions import ClientError logging.basicConfig(level=logging.INFO) logger = logging.getLogger() # returns the list of lambda functions def list_lambda_functions(client) -> dict: """ :param client: :param self: :return: """ logger.info(" ---Inside lambdafn.util...
PypiClean
/ModelSEEDpy-freiburgermsu-0.3.1.4.tar.gz/ModelSEEDpy-freiburgermsu-0.3.1.4/modelseedpy_freiburgermsu/core/rpcclient.py
from __future__ import absolute_import import json as _json import requests as _requests import random as _random class _JSONObjectEncoder(_json.JSONEncoder): def default(self, obj): if isinstance(obj, set): return list(obj) if isinstance(obj, frozenset): return list(obj)...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Control/KeyboardDefaults.js
* @requires OpenLayers/Control.js * @requires OpenLayers/Handler/Keyboard.js * @requires OpenLayers/Events.js */ /** * Class: OpenLayers.Control.KeyboardDefaults * The KeyboardDefaults control adds panning and zooming functions, controlled * with the keyboard. By default arrow keys pan, +/- keys zoom & Page Up/...
PypiClean
/Bottleneck-1.3.7rc1-cp36-cp36m-macosx_10_9_x86_64.whl/bottleneck/slow/nonreduce_axis.py
import numpy as np from numpy import partition, argpartition __all__ = ["rankdata", "nanrankdata", "partition", "argpartition", "push"] def rankdata(a, axis=None): "Slow rankdata function used for unaccelerated dtypes." return _rank(scipy_rankdata, a, axis) def nanrankdata(a, axis=None): "Slow nanrankd...
PypiClean
/Helios_Scanner-1.1-py3-none-any.whl/helios/ext/libcms/detector.py
import requests # because I am too lazy to replace all the if statements class InvalidRequestObject: status_code = 404 text = "" class CMSDetector: headers = {} cookies = {} def __init__(self, user_agent=None, headers={}, cookies={}): self.headers = headers self.cookies = cookie...
PypiClean
/FanFicFare-4.27.0.tar.gz/FanFicFare-4.27.0/fanficfare/adapters/adapter_chosentwofanficcom.py
# Copyright 2012 Fanficdownloader team, 2018 FanFicFare team # # 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 applica...
PypiClean
/Grid2Op-1.9.3-py3-none-any.whl/grid2op/Backend/backend.py
import copy import os import sys import warnings import json from abc import ABC, abstractmethod import numpy as np import pandas as pd from grid2op.dtypes import dt_int, dt_float, dt_bool from grid2op.Exceptions import ( EnvError, DivergingPowerFlow, IncorrectNumberOfElements, IncorrectNumberOfLoads...
PypiClean
/CB_IPO-0.2.0.tar.gz/CB_IPO-0.2.0/docs/_build/doctrees/nbsphinx/Example Cases.ipynb
### Importing ``` from CB_IPO import scrape ``` ### Initializing ``` scraper = scrape() ``` ### Scraping for recent IPO filings (S-1) ``` company_names, file_dates, form_types = scraper.edgar_scrape(5) print(company_names) print(file_dates) print(form_types) ``` ### Formatting into Dataframe ``` df = scraper.ge...
PypiClean
/GOUDA-0.6.0.tar.gz/GOUDA-0.6.0/docs/index.md
# GOUDA Good Old Utilities for Data Analysis! ## Note > This is the main page of your project's [Sphinx] documentation. It is > formatted in [Markdown]. Add additional pages by creating md-files in > `docs` or rst-files (formated in [reStructuredText]) and adding links to > them in the `Contents` section below. > >...
PypiClean
/FreqDemod-0.2.1.tar.gz/FreqDemod-0.2.1/docs/background.rst
.. _Conventions: Conventions and Background ========================== **Fourier Transform**. Our frequency-demodulation algorithm implements the Hilbert Transform indirectly, *via* a Discrete Fourier Transform (DFT). We use the ``numpy.fft`` package [#numpy.fft]_ to carry out the DFT. This package defines the Fou...
PypiClean
/OBP_reliability_pillar_3-0.0.13.tar.gz/OBP_reliability_pillar_3-0.0.13/OBP_reliability_pillar_4/__init__.py
from boto3 import session from OBP_reliability_pillar_4.cloudwatch import cloudwatch from OBP_reliability_pillar_4.dynamodb import dynamodb from OBP_reliability_pillar_4.elastic_beanstalk import elastic_beanstalk from OBP_reliability_pillar_4.elastic_load_balancer import elb from OBP_reliability_pillar_4.rds import rd...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/av/widget/Status.js
if(!dojo._hasResource["dojox.av.widget.Status"]){ dojo._hasResource["dojox.av.widget.Status"]=true; dojo.provide("dojox.av.widget.Status"); dojo.require("dijit._Widget"); dojo.require("dijit._Templated"); dojo.declare("dojox.av.widget.Status",[dijit._Widget,dijit._Templated],{templateString:dojo.cache("dojox.av.widget"...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/flot/plugins/jquery.flot.axislabels.js
(function($) { "use strict"; var options = { axisLabels: { show: true } }; function AxisLabel(axisName, position, padding, placeholder, axisLabel, surface) { this.axisName = axisName; this.position = position; this.padding = padding; this.pla...
PypiClean
/Dero-0.15.0-py3-none-any.whl/dero/reg/linmodels/reg.py
from dero.reg.linmodels.bindings.modelstr import get_model_class_by_string, _is_ols_str from dero.reg.linmodels.bindings.input import _create_reg_df_y_x_and_lag_vars from dero.reg.linmodels.bindings.fit import _estimate_handling_robust_and_cluster from dero.reg.linmodels.bindings.result import _convert_linearmodels_res...
PypiClean
/NaverService-0.0.1.tar.gz/NaverService-0.0.1/README.md
# Naver Services ##### ============================================================ ## Overview ##### ============================================================ ##### ============================================================ ## IDE :: Platform Layer ##### ======================================================...
PypiClean
/JumpScale-core-6.0.0.tar.gz/JumpScale-core-6.0.0/lib/JumpScale/core/logging/logtargets/LogTargetScribe.py
from JumpScale.core.enumerators import AppStatusType from JumpScale import j from fb303_scripts import * from scribe import scribe from thrift.transport import TTransport, TSocket from thrift.protocol import TBinaryProtocol import socket class LogTargetScribe(object): """Forwards incoming logRecords to Scrib...
PypiClean
/Dhelpers-0.1.5rc1.tar.gz/Dhelpers-0.1.5rc1/docs/index.rst
Welcome to Dpowers' documentation! =================================== Source code: `<https://github.com/dp0s/Dpowers>`_ Introduction ************ .. include:: intro.rst Requirements ************* - python 3.6 or later - Currently only tested on apt based Linux systems (Debian, Ubuntu, Linux Mint). .. toctree::...
PypiClean
/Beetstream-1.2.0.tar.gz/Beetstream-1.2.0/beetsplug/beetstream/songs.py
from beetsplug.beetstream.utils import * from beetsplug.beetstream import app, stream from flask import g, request, Response from beets.random import random_objs import xml.etree.cElementTree as ET @app.route('/rest/getSong', methods=["GET", "POST"]) @app.route('/rest/getSong.view', methods=["GET", "POST"]) def song()...
PypiClean
/BabitMF_GPU-0.0.8-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/bmf/python_modules/Module_rotate_gpu/rotate_gpu.py
import re from math import pi, cos, tan, sqrt import numpy from bmf import * import bmf.hml.hmp as hmp import cv2, cvcuda class rotate_gpu(Module): def __get_algo(self, algo_str): return { 'area': cvcuda.Interp.AREA, 'cubic': cvcuda.Interp.CUBIC, 'linear': cvcuda.Inte...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/aproba/README.md
aproba ====== A ridiculously light-weight function argument validator ``` var validate = require("aproba") function myfunc(a, b, c) { // `a` must be a string, `b` a number, `c` a function validate('SNF', arguments) // [a,b,c] is also valid } myfunc('test', 23, function () {}) // ok myfunc(123, 23, function () {...
PypiClean
/EvidentialToolBus-1.0.1.tar.gz/EvidentialToolBus-1.0.1/etb/wrappers/builtins.py
from __future__ import division import uuid import time import logging import subprocess from etb import terms from etb.wrapper import Tool, Substitutions, Success, Failure, Errors class Builtins(Tool): """Some builtin predicates. >>> b = Builtins() >>> b.different(terms.mk_term('a'), terms.mk_term('b')) ...
PypiClean