id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/OctoBot-Commons-1.9.18.tar.gz/OctoBot-Commons-1.9.18/octobot_commons/databases/implementations/meta_database.py
import contextlib import octobot_commons.databases.implementations.db_writer_reader as db_writer_reader import octobot_commons.databases.implementations._exchange_database as _exchange_database import octobot_commons.enums as enums class MetaDatabase: def __init__(self, run_dbs_identifier, with_lock=False, cache...
PypiClean
/OBP_security_pillar_1-0.0.3-py3-none-any.whl/OBP_security_pillar_1/cloudtrail/cloudtrail_cloudwatch_logs_enabled.py
import logging from botocore.exceptions import ClientError logging.basicConfig(level=logging.INFO) logger = logging.getLogger() def cloudtrail_cloudwatch_logs_enabled(self) -> dict: """ :param self: :return: """ logger.info(" ---Inside cloudtrail :: cloudtrail_cloudwatch_logs_enabled()") re...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/bfi.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def bfi(path): """25 Personality items representing 5 factors 25 personality self report items...
PypiClean
/Camelot-13.04.13-gpl-pyqt.tar.gz/Camelot-13.04.13-gpl-pyqt/camelot/view/model_thread/__init__.py
from functools import wraps from PyQt4 import QtCore import logging logger = logging.getLogger('camelot.view.model_thread') _model_thread_ = [] # this might be set to False, for unittesting purpose verify_threads = True class ModelThreadException(Exception): pass def object_thread( self ): """Funtion to ...
PypiClean
/Flask-EmailVerifier-0.1.0.tar.gz/Flask-EmailVerifier-0.1.0/README.rst
Flask-EmailVerifier =================== The easiest way to verify emails in your Flask application. Meta ---- - Author: Whois API, Inc. - Email: support@whoisxmlapi.com - Site: https://emailverification.whoisxmlapi.com Prerequisites ------------- To use this library, you'll need to create a free Email Verificatio...
PypiClean
/DBRetina-2.2.11-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/kSpider2/ks_modularity_scan.py
from __future__ import division from click.decorators import option import _kSpider_internal as kSpider_internal import click from kSpider2.click_context import cli import matplotlib.pyplot as plt import seaborn as sns import os from collections import defaultdict import csv import pandas as pd import kSpider2.dbretin...
PypiClean
/IPythonBell-0.10.tar.gz/IPythonBell-0.10/README.rst
About ----- IPython Bell is a simple magic for IPython and Jupyter Notebooks, which notifies yoy when the current line/cell has finished execution. This is particularly useful for long tasks. It can make sounds or even make notification bubbles pop up. Installation ------------ IPython bell can be installed as a sta...
PypiClean
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/utils/colorgradientselection.py
from typing import Any, Tuple from AnyQt.QtCore import Qt, QSize, QAbstractItemModel, Property from AnyQt.QtWidgets import ( QWidget, QSlider, QFormLayout, QComboBox, QStyle, QHBoxLayout, QLineEdit, QLabel) from AnyQt.QtCore import Signal from AnyQt.QtGui import QFontMetrics, QDoubleValidator from orangewidge...
PypiClean
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/Struct53.py
pairs=""" 100 33 127 89 161 16 183 144 148 107 37 28 91 6 173 17 34 53 191 69 16 216 154 71 156 72 183 55 44 226 81 177 198 137 198 136 42 168 74 195 143 132 35 25 219 12 146 98 158 177 224 30 114 156 154 113 96 179 180 140 83 153 70 92 6 196 110 65 55 2 7 208 194 206 142 108 129 227 90 16 109 82 49 177 41 40 81 208 11...
PypiClean
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/core/scriptloader.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @fileOverview Defines the {@link CKEDITOR.scriptLoader} object, used to load scripts * asynchronously. */ /** * Load scripts asynchronously. * @namespace * @ex...
PypiClean
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/forms/migrations/south/0003_auto__chg_field_field_field_type.py
from future.builtins import int, str import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Postgres throws error if trying to cast from varchar to integer field, # so we convert in Pyt...
PypiClean
/Gizela-1.0.18.tar.gz/Gizela-1.0.18/gizela/data/NetworkList.py
from gizela.data.Network import Network from gizela.util.Error import Error from gizela.util.CoordSystemLocal3D import CoordSystemLocal3D from gizela.data.GamaLocalData import GamaLocalData from gizela.data.DUPLICATE_ID import DUPLICATE_ID from gizela.data.EpochPointList import EpochPointList from gizela.util.CoordSys...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/dns/e164.py
# Copyright (C) 2006-2017 Nominum, Inc. # # Permission to use, copy, modify, and distribute this software and its # documentation for any purpose with or without fee is hereby granted, # provided that the above copyright notice and this permission notice # appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND...
PypiClean
/CuriousORM-1.2.0.tar.gz/CuriousORM-1.2.0/README.txt
CuriousORM ========== An extremely simple object-relational mapper for Python and PostgreSQL. This ORM uses a very minimalistic approach. The general idea is that the database schema is defined elsewhere (writing the SQL directly, or using some specialized software), and all the transactions are implemented either as...
PypiClean
/Lasagne-0.1.tar.gz/Lasagne-0.1/lasagne/layers/noise.py
import theano from .base import Layer from ..random import get_rng from theano.sandbox.rng_mrg import MRG_RandomStreams as RandomStreams __all__ = [ "DropoutLayer", "dropout", "GaussianNoiseLayer", ] class DropoutLayer(Layer): """Dropout layer Sets values to zero with probability p. See notes...
PypiClean
/GloboNetworkAPI-0.9.6.tar.gz/GloboNetworkAPI-0.9.6/networkapiclient/TipoRoteiro.py
from networkapiclient.GenericClient import GenericClient from networkapiclient.utils import get_list_map, is_valid_int_param from networkapiclient.exception import InvalidParameterError class TipoRoteiro(GenericClient): def __init__(self, networkapi_url, user, password, user_ldap=None): """Class constru...
PypiClean
/HTS-waterworks-0.1.tar.gz/HTS-waterworks-0.1/hts_waterworks/bootstrap.py
import StringIO from ConfigParser import ConfigParser from ruffus import files from pygr import worldbase from hts_waterworks.utils.ruffus_utils import (touch, sys_call, main_logger as log, main_mutex as log_mtx) # --- config and o...
PypiClean
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/builders/latex/theming.py
import configparser from os import path from typing import Dict from sphinx.application import Sphinx from sphinx.config import Config from sphinx.errors import ThemeError from sphinx.locale import __ from sphinx.util import logging logger = logging.getLogger(__name__) class Theme: """A set of LaTeX configurati...
PypiClean
/CoreMS-1.6.0.tar.gz/CoreMS-1.6.0/corems/mass_spectrum/calc/PeakPicking.py
import math from numpy import hstack, inf, isnan, poly1d, polyfit, where from corems.encapsulation.constant import Labels class PeakPicking: def cut_mz_domain_peak_picking(self): max_picking_mz = self.settings.max_picking_mz min_picking_mz = self.settings.min_picking_mz min_final = where...
PypiClean
/Ngoto-0.0.39-py3-none-any.whl/ngoto/core/util/rich/rule.py
from typing import Union from .align import AlignMethod from .cells import cell_len, set_cell_size from .console import Console, ConsoleOptions, RenderResult from .jupyter import JupyterMixin from .measure import Measurement from .style import Style from .text import Text class Rule(JupyterMixin): """A console r...
PypiClean
/flask_more-0.2.1.tar.gz/flask_more-0.2.1/flask_more/openapi.py
from inspect import Parameter as InspectParameter from inspect import signature from typing import Any, Callable, Dict, Iterator, List, Optional, Union from pydantic import BaseModel from pydantic.schema import schema from werkzeug.routing import Map, Rule from flask_more.schemas import ( Components, Contact,...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/formats/auto.py
"""Automatic detection of file format.""" import os.path from fnmatch import fnmatch from typing import Optional from translate.storage import factory from weblate.formats.helpers import BytesIOMode from weblate.formats.models import FILE_FORMATS from weblate.formats.ttkit import TTKitFormat def detect_filename(fi...
PypiClean
/ASTFormula-0.0.3.tar.gz/ASTFormula-0.0.3/README.md
# ASTFormula – simple and safe formula engine ## Description This package is simple and extensible formula engine with python-like syntax. **No eval usages under the hood** – it's a safe way to work with formulas and variables from untrusted sources like user input. ## Usage ### Quick start ```python from astfo...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/mobile/_ItemBase.js
define("dojox/mobile/_ItemBase",["dojo/_base/kernel","dojo/_base/config","dojo/_base/declare","dijit/registry","dijit/_Contained","dijit/_Container","dijit/_WidgetBase","./TransitionEvent","./View"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9){ return _3("dojox.mobile._ItemBase",[_7,_6,_5],{icon:"",iconPos:"",alt:"",href:"",hr...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/rpc/Rest.js
if(!dojo._hasResource["dojox.rpc.Rest"]){ dojo._hasResource["dojox.rpc.Rest"]=true; dojo.provide("dojox.rpc.Rest"); (function(){ if(dojox.rpc&&dojox.rpc.transportRegistry){ dojox.rpc.transportRegistry.register("REST",function(_1){ return _1=="REST"; },{getExecutor:function(_2,_3,_4){ return new dojox.rpc.Rest(_3.name,(...
PypiClean
/HMSFire-0.3.16.tar.gz/HMSFire-0.3.16/README.rst
HMSFire Project =============== HMSFire make searching, downloading and retrieving data of the Hazard Mapping System easy. To take a look at some examples make sure to read `<https://ospo-hms-fire.readthedocs.io/en/latest/>` Installing ============ .. code-block:: bash pip install HMSFire Usage ===== .. code...
PypiClean
/Nereid-2.8.0.3.tar.gz/Nereid-2.8.0.3/docs/installation.rst
.. _installation: Installation ============ Nereid depends on a handfull of Python libraries including Tryton. So how do you get all that on your computer quickly? There are many ways you could do that, but the most kick-ass method is `virtualenv`_. The `Flask Documentation`_ has a detailed `section on using virtua...
PypiClean
/CNVkit-0.9.10-py3-none-any.whl/cnvlib/commands.py
# NB: argparse CLI definitions and API functions are interwoven: # "_cmd_*" handles I/O and arguments processing for the command # "do_*" runs the command's functionality as an API import argparse import logging import multiprocessing import os import sys import warnings # Filter spurious Cython warnings re: numpy...
PypiClean
/Flask-Share-0.1.1.tar.gz/Flask-Share-0.1.1/flask_share/__init__.py
import re from flask import current_app, Markup, request, Blueprint, url_for class Share(object): def __init__(self, app=None): if app is not None: self.init_app(app) def init_app(self, app): if not hasattr(app, 'extensions'): app.extensions = {} app.extensio...
PypiClean
/Fungiform-0.1.tar.gz/Fungiform-0.1/docs/widgets.rst
Widgets ======= These are the widgets which can be used to render forms and fields to HTML. .. module:: fungiform.widgets .. autoclass:: Widget :members: .. autoclass:: Label :members: .. autoclass:: TextInput :members: .. autoclass:: PasswordInput :members: .. autoclass:: HiddenInput :members: .....
PypiClean
/DlmEngine-0.0.2.tar.gz/DlmEngine-0.0.2/dlm_engine/controller/users.py
__author__ = 'schlitzer' from aiohttp.web import json_response import jsonschema import jsonschema.exceptions from dlm_engine.errors import ResourceNotFound from dlm_engine.schemes import CREDENTIALS_CREATE from dlm_engine.schemes import USERS_CREATE, USERS_UPDATE class Users: def __init__(self, aa, credentials,...
PypiClean
/DeepFramework-0.1.7.tar.gz/DeepFramework-0.1.7/dframe/dataset/sample.py
from abc import ABCMeta, abstractmethod # noinspection PyClassHasNoInit class IO: """Interface like class for classes that have input-output operations""" __metaclass__ = ABCMeta @abstractmethod def get_input(self): pass @abstractmethod def get_output(self): pass # noinspe...
PypiClean
/Cola-0.1.0b0.tar.gz/Cola-0.1.0b0/cola/core/logs.py
import socket import logging.handlers import SocketServer import struct try: import cPickle as pickle except ImportError: import pickle class Log(object): def __init__(self, name, default_level=logging.DEBUG): self.logger = logging.getLogger(name) self.logger.setLevel(default_level) ...
PypiClean
/FortiGateConverter-0.1.0.tar.gz/FortiGateConverter-0.1.0/README.rst
============================= FortiGateConverter ============================= .. image:: https://badge.fury.io/py/FortiGateConverter.svg :target: https://badge.fury.io/py/FortiGateConverter .. image:: https://travis-ci.org/zhangdunxing/FortiGateConverter.svg?branch=master :target: https://travis-ci.org/zhang...
PypiClean
/NlpToolkit-InformationRetrieval-Cy-1.0.6.tar.gz/NlpToolkit-InformationRetrieval-Cy-1.0.6/README.md
Information Retrieval ============ Video Lectures ============ [<img src=https://github.com/StarlangSoftware/InformationRetrieval/blob/master/video1.jpg width="50%">](https://youtu.be/DhjZPVrvdnE)[<img src=https://github.com/StarlangSoftware/InformationRetrieval/blob/master/video2.jpg width="50%">](https://youtu.be/r...
PypiClean
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/newgram/methods/messages/send_sticker.py
import os import re from datetime import datetime from typing import Union, BinaryIO, Optional, Callable import newgram from newgram import StopTransmission from newgram import raw from newgram import types from newgram import utils from newgram.errors import FilePartMissing from newgram.file_id import FileType cla...
PypiClean
/Dans_Diffraction-3.0.0-py3-none-any.whl/Dans_Diffraction/tkgui/spacegroups.py
import matplotlib.pyplot as plt import numpy as np from .. import functions_general as fg from .. import functions_crystallography as fc from .. import functions_plotting as fp from ..classes_crystal import Symmetry from .basic_widgets import tk, StringViewer, SelectionBox, messagebox from .basic_widgets import (TF, B...
PypiClean
/Nitrous-0.9.3-py3-none-any.whl/turbogears/finddata.py
from __future__ import print_function # Note: you may want to copy this into your setup.py file verbatim, as # you can't import this from another package, when you don't know if # that package is installed yet. import os import sys from fnmatch import fnmatchcase from distutils.util import convert_path # Provided as...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/moment/locale/de.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; ...
PypiClean
/Bumblebee-1.0a1.zip/Bumblebee-1.0a1/bumblebee/xml.py
from lxml.etree import fromstring from bumblebee.rules import Before from bumblebee.rules import After from bumblebee.rules import Drop from bumblebee.rules import Replace from bumblebee.rules import Class from bumblebee.rules import Group from bumblebee.conditions import IfContent from bumblebee.conditions import Not...
PypiClean
/NEURON-9.0a0-cp311-cp311-macosx_10_15_x86_64.whl/neuron/gui2/rangevar.py
from neuron import h try: from neuron.rxd import species have_rxd = True except: have_rxd = False def get_mech_names(): _mech_names = [] mt = h.MechanismType(0) mname = h.ref("") for i in range(int(mt.count())): mt.select(i) mt.selected(mname) _mech_names.append(m...
PypiClean
/Ageas-0.0.1a6.tar.gz/Ageas-0.0.1a6/ageas/lib/meta_grn_caster.py
import warnings import math import pandas as pd from collections import Counter import ageas.lib as lib import ageas.tool as tool import ageas.tool.grn as grn import ageas.tool.json as json import ageas.lib.grp_predictor as grp class Analysis(object): """ Find important factors simply by GRN degree. """ def __in...
PypiClean
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/model/insight_total.py
import re # noqa: F401 import sys # noqa: F401 from firefly_iii_client.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_type,...
PypiClean
/AuthZ-Group-1.7.tar.gz/AuthZ-Group-1.7/authz_group/static/js/crowds.js
(function($) { var compiled_templates = {}; $.fn.crowd_control = function(options) { var opts = $.extend( { group_ids: [] }, options); return this.each(function() { initialize_crowds($(this), opts); }); }; function handle_cc_click(ev) { var target_class = e...
PypiClean
/Nasdaq%20Data%20Link-1.0.4.tar.gz/Nasdaq Data Link-1.0.4/README.md
# Nasdaq Data Link Python Client This is the official documentation for Nasdaq Data Link's Python Package. The package can be used to interact with the latest version of the [Nasdaq Data Link's RESTful API](https://docs.data.nasdaq.com/docs). This package is compatible with python v3.7+. ## Installation The installa...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/compat/_scons_sets.py
# protect this import from the fixers... exec('from itertools import ifilterfalse as filterfalse') __all__ = ['BaseSet', 'Set', 'ImmutableSet'] class BaseSet(object): """Common base class for mutable and immutable sets.""" __slots__ = ['_data'] # Constructor def __init__(self): """This is ...
PypiClean
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/threads/admin/forms.py
from django import forms from django.utils.translation import gettext as _ from ..models import AttachmentType def get_searchable_filetypes(): choices = [(0, _("All types"))] choices += [(a.id, a.name) for a in AttachmentType.objects.order_by("name")] return choices class FilterAttachmentsForm(forms.Fo...
PypiClean
/D-Analyst-1.0.6.tar.gz/D-Analyst-1.0.6/README.md
## D-Analyst : High Performance Visualization Tool -------------------------------------------------- D-Analyst is a high performance data visualization built with python and based on OpenGL. It allows to interactively visualize very large plot consisitng of up to millions of data in real time. D-Analyst high-level in...
PypiClean
/Flask-Celery-Tools-1.4.1.tar.gz/Flask-Celery-Tools-1.4.1/flask_celery/lock_manager.py
import hashlib from logging import getLogger from urllib.parse import urlparse from flask_celery.backends.database import LockBackendDb from flask_celery.backends.filesystem import LockBackendFilesystem from flask_celery.backends.redis import LockBackendRedis from flask_celery.exceptions import OtherInstanceError de...
PypiClean
/Exegol-4.2.5.tar.gz/Exegol-4.2.5/exegol-docker-build/sources/assets/exegol/skel/supported_setups.md
# Exegol customization This document lists the customizations supported by Exegol for the "my-resources" feature. The files (data, configuration files, etc.) stored in `~/.exegol/my-resources` (on the host) are persistent and shared between all local exegol containers (in `/opt/my-resources`). For more information, th...
PypiClean
/AIKIF-0.2.2.tar.gz/AIKIF-0.2.2/aikif/project.py
class Projects(object): """ handles the ontologies for all your projects to avoid replication of data entry """ def __init__(self): self.ontology = [] self.project_list = [] def __str__(self): res = '-- List of All Projects --\n' for p in self.project_lis...
PypiClean
/GoTermAnalysis-0.2.6.tar.gz/GoTermAnalysis-0.2.6/gotermanalysis/updateDB.py
import MySQLdb import sys import re from sqlite3 import OperationalError from sqlite3 import ProgrammingError import csv import os import string """ This class will first parse the NCBI gene data and build a table called "symbol_synonym" in database Then build a final_symbol_synonym table for mapping gene to GOterm as...
PypiClean
/2Keys-0.5.1.tar.gz/2Keys-0.5.1/twokeys/init/init.py
import sys import requests import json import os from os import path import yaml import colorful from ..util.constants import SCRIPTS_ROOT, DEFAULT_PORT, MODULE_NAME from ..util.logger import Logger from ..util.config import load_config from ..daemon import generate_daemon from ..add_keyboard import add_keyboards logg...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/0.6/net.js
var net = {}; /** * This object is an abstraction of a TCP or UNIX socket. net.Socket * instances implement a duplex Stream interface. They can be created by * the user and used as a client (with connect()) or they can be created by * Node and passed to the user through the 'connection' event of a server. * @cons...
PypiClean
/MulensModel-2.17.0-cp37-cp37m-musllinux_1_1_x86_64.whl/MulensModel-2.17.0.dist-info/AUTHORS.md
MulensModel is developed as an open-source code with contributions from many individuals. These contributions are of various kinds and we would like to thank and give credit to all those people. Main contributors: * [Radek Poleski](https://github.com/rpoleski) * [Yee Jennifer](https://github.com/jenniferyee) People w...
PypiClean
/CBGT-0.0.6.tar.gz/CBGT-0.0.6/cbgt/vis.py
import os import numpy as np import pandas as pd from cbgt.analyzefx import * from scipy.stats.distributions import norm from scipy.stats import truncnorm import matplotlib.pyplot as plt import seaborn as sns import warnings warnings.simplefilter('ignore', np.RankWarning) roundRT = lambda x, ndec: int(round(float(str(...
PypiClean
/HangoutCore-2.91.5-py3-none-any.whl/hangoutcore/bot.py
import discord from hangoutcore.util import Audio, Config, Database, Local, Terminal from aiohttp import ClientSession from datetime import datetime from discord.ext import commands from typing import List, Optional class HangoutCoreBot(commands.Bot): # Sub class bot so we can have more customizability def __ini...
PypiClean
/DPark-0.5.0.tar.gz/DPark-0.5.0/dpark/utils/nested_groupby.py
import weakref import sys from collections import deque from dpark.utils.log import get_logger logger = get_logger(__name__) if sys.version_info[0] < 3: def next_func(it): return it.next else: def next_func(it): return it.__next__ def list_value(x): return x[0], list(x[1]) def list_nes...
PypiClean
/MozillaPulse-1.3.tar.gz/MozillaPulse-1.3/mozillapulse/messages/hg.py
from .base import GenericMessage from ..utils import repo_parts # ------------------------------------------------------------------------------ # Generic base class for messages that have to do with HG # ------------------------------------------------------------------------------ class GenericHgMessage(GenericMes...
PypiClean
/JaqalPaw-1.2.0a1.tar.gz/JaqalPaw-1.2.0a1/src/jaqalpaw/bytecode/pulse_binarization.py
import numpy as np from scipy.interpolate import CubicSpline from .binary_conversion import ( convert_freq_full, convert_amp_full, convert_phase_full, convert_to_bytes, map_to_bytes, convert_phase_full_mod_2pi, ) from .encoding_parameters import ( MAXLEN, DMA_MUX_OFFSET_LOC, OUTPUT_E...
PypiClean
/Meraki_Auto_Sync-1.190-py3-none-any.whl/autosync/lib/merakiapi.py
import asyncio import logging import os import meraki import meraki.aio from autosync import const class MerakiAsyncApi: """ Meraki Async SDK """ def __init__(self): self._appcfg = const.appcfg self.api = None def __enter__(self): self.api = meraki.aio.AsyncDashbo...
PypiClean
/Keras_CoordConv-0.6.tar.gz/Keras_CoordConv-0.6/Keras_CoordConv/coord_theano.py
from keras.engine import Layer, InputSpec from keras import backend as K from keras.utils.generic_utils import get_custom_objects class _CoordinateChannel(Layer): """ Adds Coordinate Channels to the input tensor. Due to Theano backend limitations, it is required to pass a static batch size when defining ...
PypiClean
/META_TOOLBOX-2023.3.tar.gz/META_TOOLBOX-2023.3/META_TOOLBOX/META_PORTIFOLIO.py
import yfinance as yf import numpy as np import pandas as pd def STOCKS_RISK_AND_RETURN(STOCKS, START_DAY, END_DAY): """ """ PORTIFOLIO_RETURNS = [] AUX_DATA = yf.Ticker(STOCKS[0]) AUX_DATA = AUX_DATA.history(start = START_DAY, end = END_DAY).reset_index() STOCK_RETURNS = np.zeros((len(AUX_DATA...
PypiClean
/Caroline-presentation-0.2.4.tar.gz/Caroline-presentation-0.2.4/caroline/html_dist/js/mathjax/sre/mathmaps/en/symbols/latin-lower-phonetic.js
[{"locale":"en"},{"category":"Ll","key":"00F8","mappings":{"default":{"default":"latin small letter o with stroke","alternative":"latin small letter o slash","short":"o with stroke"}}},{"category":"Ll","key":"0111","mappings":{"default":{"default":"latin small letter d with stroke","alternative":"latin small letter d b...
PypiClean
/Cellulose-0.2.tar.gz/Cellulose-0.2/cellulose/celltypes.py
from cellulose.cells import DependencyCell, ComputedCell, get_dependant_stack from cellulose.descriptors import ComputedCellDescriptor, InputCellDescriptor try: set # Only available in Python 2.4+ except NameError: from sets import Set as set # Python 2.3 fallback import sys if sys.version_info < (2, 4): ...
PypiClean
/hugo30128-0.0.1.tar.gz/hugo30128-0.0.1/README.md
# M1-2022-git ## Introduction This repository is a fork from the previous repository. The bugs in the converter have been fixed and now we want to publish our work as a publicly available python package. ## Getting started You should be working from **your own repository** that is a fork of M1-2022-git-workflow. In o...
PypiClean
/Impression-CMS-0.2.0.tar.gz/Impression-CMS-0.2.0/impression/themes/impression/static/js/plugins/flot/jquery.flot.pie.js
(function ($) { function init(plot) // this is the "body" of the plugin { var canvas = null; var target = null; var maxRadius = null; var centerLeft = null; var centerTop = null; var total = 0; var redraw = true; var redrawAttempts = 10; var shrink = 0.95; var legendWidth = 0; var processed = f...
PypiClean
/NehorayRapid1-0.0.1-py3-none-any.whl/mmedit/datasets/pipelines/utils.py
import logging import numpy as np import torch from mmcv.utils import print_log _integer_types = ( np.byte, np.ubyte, # 8 bits np.short, np.ushort, # 16 bits np.intc, np.uintc, # 16 or 32 or 64 bits np.int_, np.uint, # 32 or 64 bits np.longlong, np.ulonglong) # 64 bits _i...
PypiClean
/Glastopf-3.1.2.tar.gz/Glastopf-3.1.2/glastopf/modules/reporting/auxiliary/log_mail.py
import smtplib from email.mime.text import MIMEText from glastopf.modules.reporting.auxiliary.base_logger import BaseLogger class LogMail(BaseLogger): def __init__(self, data_dir, config="glastopf.cfg"): BaseLogger.__init__(self, config) self.options = { "enabled": self.config.getb...
PypiClean
/Mopidy-Bookmarks-0.1.4.tar.gz/Mopidy-Bookmarks-0.1.4/mopidy_bookmarks/__init__.py
import logging import pathlib import pkg_resources import pykka from mopidy import config, ext from mopidy.core import CoreListener from . import handlers from .core import BMCore, PeriodicTimer from .backend import BookmarksBackend from .controllers import BookmarksController, StoreController __version__ = pkg_reso...
PypiClean
/125softNLP-0.0.1-py3-none-any.whl/kashgari/tasks/labeling/experimental.py
# author: BrikerMan # contact: eliyar917@gmail.com # blog: https://eliyar.biz # file: experimental.py # time: 2019-05-22 19:35 from typing import Dict, Any from tensorflow import keras import kashgari from kashgari.tasks.labeling.base_model import BaseLabelingModel from kashgari.layers import L from keras_self_at...
PypiClean
/JustPaste.py-1.0-py3-none-any.whl/justpaste/main.py
import requests import re import json from bs4 import BeautifulSoup class Justpaste: """### A simple JustPaste.it API. Class args: email: Email address of the account, password: Password of the account. Methods: new_note(title,body,...): Creates new note (premium account ...
PypiClean
/DLRN-0.26.1.tar.gz/DLRN-0.26.1/dlrn/utils.py
import fcntl import hashlib import logging import os import re import requests import sh import sys import yaml from contextlib import contextmanager from dlrn.db import CIVote from dlrn.db import CIVote_Aggregate from dlrn.db import Commit from dlrn.db import getSession from dlrn.db import Project from dlrn.db import...
PypiClean
/django-chuck-0.2.3.tar.gz/django-chuck/modules/django-cms/project/apps/cmsplugin_filer_image/migrations/0001_initial.py
from south.db import db from django.db import models from cmsplugin_filer_image.models import * class Migration: def forwards(self, orm): # Adding model 'FilerImage' db.create_table('cmsplugin_filerimage', ( ('cmsplugin_ptr', orm['cmsplugin_filer_image.FilerImage:cmsplugin...
PypiClean
/LitleSdkPython3-9.3.1b0.tar.gz/LitleSdkPython3-9.3.1b0/litleSdkPythonTest/certification/TestCert3.py
import os, sys lib_path = os.path.abspath('../all') sys.path.append(lib_path) from SetupTest import * import unittest class certTest3(unittest.TestCase): # def test32(self): authorization = litleXmlFields.authorization() authorization.orderId = '32' authorization.amount = 100...
PypiClean
/EliteD-1.1.tar.gz/EliteD-1.1/README.md
# EliteD EliteD is a package to make database usage easier! Create database easily and read and update them. ### Installing To install the package you just need to execute the following in your command line: pip3 install EliteD ## Using the package This is how you create and setup a Database ```py import Eli...
PypiClean
/MAB_algorithm-0.0.12.tar.gz/MAB_algorithm-0.0.12/README.md
# MAB-algorithm ![image](https://img.shields.io/badge/Python-3776AB?style=for-the-badge&logo=python&logoColor=white)![image](https://img.shields.io/badge/SciPy-654FF0?style=for-the-badge&logo=SciPy&logoColor=white)![image](https://img.shields.io/badge/Numpy-777BB4?style=for-the-badge&logo=numpy&logoColor=white)![image...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/weblate/auth/models.py
import re from collections import defaultdict from itertools import chain from typing import Optional, Set from appconf import AppConf from django.conf import settings from django.contrib.auth.base_user import AbstractBaseUser, BaseUserManager from django.contrib.auth.models import Group as DjangoGroup from django.db...
PypiClean
/lesionmap-1.0.0-py3-none-any.whl/scr/LesionMapUCSF/config.py
import numpy as np import glob, os import itertools import random from keras.optimizers import Adam from keras import backend as K K.set_image_data_format('channels_last') if K.image_data_format() == 'channels_first': IMAGE_ORDERING = 'channels_first' elif K.image_data_format() == 'channels_last': IMAGE_ORDER...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/gantt/GanttProjectItem.js.uncompressed.js
define("dojox/gantt/GanttProjectItem", ["dijit","dojo","dojox","dojo/require!dojox/gantt/GanttTaskItem,dojo/date/locale,dijit/focus"], function(dijit,dojo,dojox){ dojo.provide("dojox.gantt.GanttProjectItem"); dojo.require("dojox.gantt.GanttTaskItem"); dojo.require("dojo.date.locale"); dojo.require("dijit.focus"); // ...
PypiClean
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/model/insight_group.py
import re # noqa: F401 import sys # noqa: F401 from firefly_iii_client.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_type,...
PypiClean
/AnkiServer-2.0.6.tar.gz/AnkiServer-2.0.6/anki-bundled/aqt/dyndeckconf.py
from aqt.qt import * import aqt from aqt.utils import showWarning, openHelp, askUser, saveGeom, restoreGeom class DeckConf(QDialog): def __init__(self, mw, first=False, search="", deck=None): QDialog.__init__(self, mw) self.mw = mw self.deck = deck or self.mw.col.decks.current() s...
PypiClean
/Hydro-0.1.7.tar.gz/Hydro-0.1.7/src/hydro/query_engine.py
__author__ = 'moshebasanchig' from importlib import import_module from base_classes import Base, HydroCommandTemplate from hydro.common.utils import create_cache_key from copy import deepcopy class QueryEngine(Base): def __init__(self, modules_dir, connection_handler, cache_engine, execution_plan, logger): ...
PypiClean
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/lib_srcs/node.js/4.4/crypto.js
var crypto = {}; /** * The Hash class is a utility for creating hash digests of data. It can be * used in one of two ways: * @constructor */ crypto.Hash = function() {} /** * Updates the hash content with the given data, the encoding of which is * given in input_encoding and can be &#39;utf8&#39;, &#39;ascii&#3...
PypiClean
/ImageDuplicateFinder-0.6.0.tar.gz/ImageDuplicateFinder-0.6.0/image_duplicate_finder/__init__.py
import image_duplicate_finder.duplication_functions import logging import argparse import os, sys import image_duplicate_finder.os_functions as os_functions import image_duplicate_finder.constants as constants import time def find_duplicates(*args, **kwargs): image_duplicate_finder.duplication_functions.find_dups...
PypiClean
/Fregger-0.10.7.tar.gz/Fregger-0.10.7/fregger/static/lang/pt.js
'use strict'; /* jshint quotmark: double */ window.SwaggerTranslator.learn({ "Warning: Deprecated":"Aviso: Depreciado", "Implementation Notes":"Notas de Implementação", "Response Class":"Classe de resposta", "Status":"Status", "Parameters":"Parâmetros", "Parameter":"Parâmetro", "Value":"Val...
PypiClean
/DropTheBeat-1.0.tar.gz/DropTheBeat-1.0/LICENSE.md
# License **The MIT License (MIT)** Copyright &copy; 2016, Jace Browning 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...
PypiClean
/Gbtestapi0.1-0.1a10-py3-none-any.whl/gailbot/services/organizer/settings/interface/googleInterface.py
import os from pydantic import BaseModel, ValidationError from typing import Dict, Union from .engineSettingInterface import EngineSettingInterface from gailbot.core.utils.logger import makelogger from gailbot.core.engines.google import Google from gailbot.core.utils.general import ( copy, is_file, is_direc...
PypiClean
/MatchZoo-2.2.0.tar.gz/MatchZoo-2.2.0/matchzoo/auto/tuner/tune.py
import typing import matchzoo as mz from matchzoo.engine.base_metric import BaseMetric from .tuner import Tuner def tune( params: 'mz.ParamTable', train_data: typing.Union[mz.DataPack, mz.DataGenerator], test_data: typing.Union[mz.DataPack, mz.DataGenerator], fit_kwargs: dict = None, evaluate_kwa...
PypiClean
/BootstrapPy-0.6.tar.gz/BootstrapPy-0.6/bootstrappy/templates/+package+/static/js/i18n/grid.locale-tr.js
;(function($){ /** * jqGrid Turkish Translation * Erhan Gündoğan (erhan@trposta.net) * http://blog.zakkum.com * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = $.jgrid || {}; $.extend($.jgrid,{ defaults : { ...
PypiClean
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/toolkits/regression/decision_tree_regression.py
import graphlab.connect as _mt import graphlab as _graphlab from graphlab.toolkits._model import _get_default_options_wrapper from graphlab.toolkits._supervised_learning import SupervisedLearningModel as _SupervisedLearningModel import graphlab.toolkits._supervised_learning as _sl import graphlab.toolkits._main as _too...
PypiClean
/OASYS1-ALS-ShadowOui-0.0.60.tar.gz/OASYS1-ALS-ShadowOui-0.0.60/orangecontrib/shadow/als/util/fast_grid.py
from enhanced_grid import GridWindow2D from enhanced_grid import GridCol2D from enhanced_grid import GridRow2D from enhanced_grid import is_slice ## @brief Makes 2 list of lists. def make_grid_2d(width, height, initial_item=None): grid = [None] * (width * height) for i in xrange(width): for j in xrange(height): ...
PypiClean
/Flask-Security-Too-5.3.0.tar.gz/Flask-Security-Too-5.3.0/docs/quickstart.rst
Quick Start =========== There are some complete (but simple) examples available in the *examples* directory of the `Flask-Security repo`_. .. note:: The below quickstarts are just that - they don't enable most of the features (such as registration, reset, etc.). They basically create a single user, and you ca...
PypiClean
/clip_api_service-0.1.0-py3-none-any.whl/clip_api_service/models/openclip.py
from __future__ import annotations import typing import bentoml import torch from PIL import Image from clip_api_service.models import CLIPRunnable if typing.TYPE_CHECKING: import numpy.typing as npt MODELS = { "RN50:openai", "RN50:yfcc15m", "RN50:cc12m", # "RN50-quickgelu:openai", # "RN50-...
PypiClean
/Corporal-0.1.15.tar.gz/Corporal-0.1.15/CHANGELOG.md
# Changelog All notable changes to Corporal will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). ## [0.1.15] - 2023-08-24 ### Changed - Remove rattail-fabric2 as hard depe...
PypiClean
/EDDIE-Tool-1.0.0.tar.gz/EDDIE-Tool-1.0.0/eddietool/common/Directives/radcm.py
__version__ = '$Revision: 862 $' __copyright__ = 'Copyright (c) Chris Miles 2000-2005' __author__ = 'Chris Miles' __license__ = ''' 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; eithe...
PypiClean
/EmberFactory-1.8.2-py3-none-any.whl/embermaker/makember.py
import numpy as np import os import warnings from .drawinglib.helpers import cm, units from embermaker import helpers as hlp from embermaker.helpers import norm from embermaker import ember as emb from embermaker import parameters as param from embermaker.__init__ import __version__ trd = emb.Transition # Transition d...
PypiClean
/Flask-Web3-0.1.1.tar.gz/Flask-Web3-0.1.1/CHANGES.rst
Changelog ========= Here you can see the full list of changes between each releases of Flask-Web3. Version 0.1.1 ------------- Released on July 8th 2018 Fix - Travis deployment password Version 0.1.0 ------------- Released on July 8th 2018 Features - Implement Flask-Web3 extension with possibility to customize...
PypiClean
/CAMELS_library-0.3.tar.gz/CAMELS_library-0.3/plots/SFRH/plot.py
from pylab import * import numpy as np from matplotlib.ticker import ScalarFormatter import matplotlib.gridspec as gridspec from mpl_toolkits.axes_grid1.inset_locator import mark_inset from matplotlib.ticker import AutoMinorLocator from matplotlib.colors import LogNorm from matplotlib.patches import Ellipse rcParams["m...
PypiClean
/Django-Sites-Lockdown-0.0.3.tar.gz/Django-Sites-Lockdown-0.0.3/README.rst
===================== Django-Sites-Lockdown ===================== Sometimes with Django you need to include the sites framework because an app requires it, but you don't really want or need staff to be able to add or delete sites in the admin panel. This app removes the capability to add or remove sites. This is a ve...
PypiClean