id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Eskapade_Core-1.0.0-py3-none-any.whl/escore/utils.py | import os
import sys
from escore.logger import Logger
ENV_VARS = dict(spark_args='PYSPARK_SUBMIT_ARGS',
docker='DE_DOCKER', display='DISPLAY')
ARCHIVE_FILE = 'es_python_modules.egg'
logger = Logger()
def set_matplotlib_backend(backend=None, batch=None, silent=True):
"""Set Matplotlib backend.
... | PypiClean |
/dipex-4.54.5.tar.gz/dipex-4.54.5/integrations/ad_integration/ad_sync.py | import logging
from datetime import datetime
from functools import partial
from operator import itemgetter
from typing import Any
from typing import Dict
from typing import Iterator
from typing import Optional
from typing import Tuple
import click
import sentry_sdk
from more_itertools import only
from more_itertools i... | PypiClean |
/lektor-3.4.0b6-py3-none-any.whl/lektor/packages.py | from __future__ import annotations
import hashlib
import os
import shutil
import site
import subprocess
import sys
import sysconfig
from pathlib import Path
from typing import Any
from typing import Dict
from typing import Iterable
from typing import Iterator
from typing import Optional
from typing import Set
from typ... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/paper-card/.github/ISSUE_TEMPLATE.md | <!-- Instructions: https://github.com/PolymerElements/paper-card/CONTRIBUTING.md#filing-issues -->
### Description
<!-- Example: The `paper-foo` element causes the page to turn pink when clicked. -->
### Expected outcome
<!-- Example: The page stays the same color. -->
### Actual outcome
<!-- Example: The page turn... | PypiClean |
/DeepGMAP-0.2.0.tar.gz/DeepGMAP-0.2.0/deepgmap/post_train_tools/fimo_to_numpy_array.py | import numpy as np
import matplotlib.pyplot as plt
from matplotlib import mlab
import subprocess as sp
"""
fimo_format
# motif_id motif_alt_id sequence_name start stop strand score p-value q-value matched_sequence
MA0139.1 CTCF chr2 231612721 231612739 + 27.1967 4.53e-12... | PypiClean |
/EDDIE-Tool-1.0.0.tar.gz/EDDIE-Tool-1.0.0/eddietool/common/Directives/solaris.py | __version__ = '$Revision: 893 $'
__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 |
/Cohen-0.7.4.tar.gz/Cohen-0.7.4/coherence/backends/radiotime_storage.py |
# an internet radio media server for the Coherence UPnP Framework
# based on the radiotime (http://radiotime.com) catalog service
# Copyright 2007, Frank Scholz <coherence@beebits.net>
# Copyright 2009-2010, Jean-Michel Sizun <jmDOTsizunATfreeDOTfr>
from lxml import etree
from twisted.python.failure import Failure
... | PypiClean |
/Giraffe_View-0.0.9.5.tar.gz/Giraffe_View-0.0.9.5/Giraffe_View/estimated_read_accuracy.py | import numpy as np
import math
import multiprocessing
def calculate_read_accuracy(string):
"""
Calculate the estimated accuracy for a given string.
Parameters:
string (str): A string of bases in ASCII format.
Returns:
list: A list containing the estimated accuracy, error proportion, and Q-value... | PypiClean |
/IdracRedfishSupport-0.0.8.tar.gz/IdracRedfishSupport-0.0.8/CancelCheckConsistencyVirtualDiskREDFISH.py |
import argparse
import getpass
import json
import logging
import re
import requests
import sys
import time
import warnings
from datetime import datetime
from pprint import pprint
warnings.filterwarnings("ignore")
parser=argparse.ArgumentParser(description="Python script using Redfish API with OEM extension to cance... | PypiClean |
/Flask-Wizard-0.5.28.tar.gz/Flask-Wizard-0.5.28/flask_wizard/core.py | from __future__ import absolute_import
from __future__ import print_function
import json
import requests
import os
import redis
from flask_pymongo import PyMongo
from .config import ConfigHandler
from .facebook import FacebookHandler
from .web import HttpHandler
from .slack import SlackHandler
from .telegram import... | PypiClean |
/ASGIWebDAV-1.3.2.tar.gz/ASGIWebDAV-1.3.2/asgi_webdav/auth.py | import asyncio
import binascii
import hashlib
import re
from base64 import b64decode
from enum import IntEnum
from logging import getLogger
from uuid import uuid4
try:
import bonsai
from bonsai import errors as bonsai_exception
except ImportError:
bonsai = None
bonsai_exception = None
from asgi_webdav... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/flot/plugins/jquery.flot.legend.js | (function($) {
var defaultOptions = {
legend: {
show: false,
noColumns: 1,
labelFormatter: null, // fn: string -> string
container: null, // container (as jQuery object) to put legend in, null means default on top of graph
position: 'ne', // positi... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/ext-elastic_tabstops_lite.js | ace.define("ace/ext/elastic_tabstops_lite",["require","exports","module","ace/editor","ace/config"], function(require, exports, module) {
"use strict";
var ElasticTabstopsLite = function(editor) {
this.$editor = editor;
var self = this;
var changedRows = [];
var recordChanges = false;
this.onAfterE... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/charting/plot2d/OHLC.js | if(!dojo._hasResource["dojox.charting.plot2d.OHLC"]){
dojo._hasResource["dojox.charting.plot2d.OHLC"]=true;
dojo.provide("dojox.charting.plot2d.OHLC");
dojo.require("dojox.charting.plot2d.common");
dojo.require("dojox.charting.plot2d.Base");
dojo.require("dojox.lang.utils");
dojo.require("dojox.lang.functional");
dojo.... | PypiClean |
/HjGoogleSearch-1.0.3.tar.gz/HjGoogleSearch-1.0.3/googleSearch/utils/settings.py | import redis
from pathlib import Path
from typing import Optional
from dynaconf import loaders, settings
from googleSearch.utils.logger import logger
DEFAULT_PATH = "settings.toml"
BASE_SETTINGS = {
"IS_DEVE": True,
"BASE_URL": "https://www.google.com",
"HOME_DIR": str(Path().absolute()),
"REDIS": {
... | PypiClean |
/BotEXBotBase-3.1.3.tar.gz/BotEXBotBase-3.1.3/discord/state.py | import asyncio
from collections import deque, namedtuple, OrderedDict
import copy
import datetime
import enum
import itertools
import logging
import math
import weakref
from .guild import Guild
from .activity import _ActivityTag
from .user import User, ClientUser
from .emoji import Emoji, PartialEmoji
from .message im... | PypiClean |
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/examples/pilot-api/example-ranger-kraken-lonestar.py | import sys
import os
import time
import logging
from pilot import PilotComputeService, ComputeDataService, State
logging.basicConfig(level=logging.WARNING)
COORDINATION_URL = "redis://localhost:6379"
if __name__ == "__main__":
pilot_compute_service = PilotComputeService(coordination_url=COORDINATION_UR... | PypiClean |
/AeroSandbox-4.1.1.tar.gz/AeroSandbox-4.1.1/studies/MultiBoomSparMass_v1/spar_mass_double_boom.py | from aerosandbox.structures.legacy.beams import *
import scipy.io as sio
import copy
### Set up sweep variables
masses = np.linspace(50, 800, 50)
spans = np.linspace(30, 90, 50)
Masses, Spans = np.meshgrid(masses, spans, indexing="ij")
Spar_Masses = np.zeros_like(Masses)
### Set up problem
opti = cas.Opti()
mass = o... | PypiClean |
/ConfigTree-0.6.tar.gz/ConfigTree-0.6/configtree/tree.py | from abc import abstractmethod
from collections import defaultdict
from .compat.colabc import Mapping, MutableMapping
__all__ = ["ITree", "Tree", "flatten", "rarefy"]
class ITree(MutableMapping):
"""
Abstract base class for :class:`Tree` and :class:`BranchProxy`.
Useful for type checking:
.. cod... | PypiClean |
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/gqcms/DMRG.py | import numpy as np
import gqcms
import scipy.linalg as sp
class DMRG:
def __init__(self, J) -> None:
"""
Constructor for the DMRG class
Sets up the required fields
"""
# parameter for the Heisenberg model
self.J = J
# basis of system hamiltonian
sel... | PypiClean |
/Meraki_Tools-2.5-py3-none-any.whl/merakitools/lib/helpers.py | import json
import sys
import http3
import requests
import asyncio
from merakitools import const, model
from datetime import datetime
from .bcolors import bcolors as bc
from .merakiapi import MerakiAsyncApi
from meraki.exceptions import AsyncAPIError
from merakitools.app_logger import lib_log, product_log
async def ... | PypiClean |
/CellNet-1.1.1.3-py3-none-any.whl/cellphonedb/tools/generate_data/parsers/parse_iuphar_guidetopharmacology.py | import pandas as pd
from tools.tools_helper import normalize_interactions
def call(iuphar_guidepharmacology: pd.DataFrame, genes: pd.DataFrame, proteins: pd.DataFrame) -> pd.DataFrame:
iuphar_filtered = iuphar_guidepharmacology[iuphar_guidepharmacology['target_species'] == 'Human']
iuphar_filtered = iuphar_... | PypiClean |
/DuyanUtils-1.0.4.tar.gz/DuyanUtils-1.0.4/src/DuyanCommon/LogUtils.py | import os
import loguru
TRACE = "TRACE"
INFO = "INFO"
DEBUG = "DEBUG"
ERROR = "ERROR"
WARNING = "WARNING"
fmt = "[%(thread)d]-[%(levelname)s]-[%(asctime)s}]-[%(process)d]-[%(name)s]-[%(funcName)s]%(lineno)s :%(message)s"
class Logger(object):
LOGURU_FORMAT = loguru._defaults.env(
"LOGURU_FORMAT",
... | PypiClean |
/Infomericaclass-1.0.0.tar.gz/Infomericaclass-1.0.0/inf/models/ethnicolr_keras_lstm_nc_voter_name_lstm_hispanic.ipynb | ### Ethnicolr: NC Voter Registration Name Model For Hispanic/Non-Hispanic
We build new LSTM models based on NC data. We start by assuming y = concatenation of ethnic code and race code. We remove U and also UN --- assuming they are 'missing at random.' This gives us 12 categories.
```
import keras
import tensorflow... | PypiClean |
/ChemDataExtractor-IDE-1.3.2.tar.gz/ChemDataExtractor-IDE-1.3.2/chemdataextractor/cli/evaluate.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import copy
import json
import logging
import os
import click
from ..reader import RscHtmlReader, AcsHtmlReader, NlmXmlReader
log = logging.getLogger(__name__)
@click.group()
@click.pass_context
def evalua... | PypiClean |
/Kickbase_Analysis-0.0.3.tar.gz/Kickbase_Analysis-0.0.3/README.md | # Kickbase_Analysis
[Kickbase](https://www.kickbase.com/) Analysis framework for Python 3. This work is unofficial and not related to kickbase in any way. All of this was done for scientific reasons only and you should not use it for anything else but for your personal learning!
## Installation
- From pypi:
`pip3 ins... | PypiClean |
/ARQueue-1.2.0.tar.gz/ARQueue-1.2.0/arqueue.py | """Automated downloading of queue items from AlphaRatio."""
import json
import sys
from pathlib import Path
import click
from environs import Env, EnvError
from httpx import Client, Headers
from loguru import logger
__version__ = "1.2.0"
def _check_version(context: click.core.Context, _param: click.core.Option, va... | PypiClean |
/FoBiS.py-3.0.5.tar.gz/FoBiS.py-3.0.5/fobis/Compiler.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
# Copyright (C) 2015 Stefano Zaghi
#
# This file is part of FoBiS.py.
#
# FoBiS.py is free software: you can redistribute it and/or modify
# it under the terms of the GNU... | PypiClean |
/Easy_GRID-0.0.13.tar.gz/Easy_GRID-0.0.13/Easy_GRID/GUI_Kmeaner.py | import numpy as np
from .GUI_ClassFun import *
from PyQt5.QtWidgets import *
from PyQt5.QtCore import *
from PyQt5.QtGui import *
class Panel_Kmeaner(QWidget):
def __init__(self, np_img):
super().__init__()
self.setFocusPolicy(Qt.StrongFocus)
self.setFocus()
self.update()
''... | PypiClean |
/MatrixImageR-1.2.7.tar.gz/MatrixImageR-1.2.7/README.md | 📦 setup.py (for humans)
=======================
This repo exists to provide [an example setup.py] file, that can be used
to bootstrap your next Python project. It includes some advanced
patterns and best practices for `setup.py`, as well as some
commented–out nice–to–haves.
For example, this `setup.py` provides a `$... | PypiClean |
/OctoPrint-1.9.2.tar.gz/OctoPrint-1.9.2/src/octoprint/static/js/lib/modernizr.custom.js | * https://modernizr.com/download/?-canvas-fetch-localstorage-svg-touchevents-webgl-setclasses !*/
!function(e,t,n,o){function a(e,t){return typeof e===t}function r(){return"function"!=typeof n.createElement?n.createElement(arguments[0]):p?n.createElementNS.call(n,"http://www.w3.org/2000/svg",arguments[0]):n.createElem... | PypiClean |
/BCPy2000-1.6.tar.gz/BCPy2000-1.6/src/SigTools/Buffering4417.py | __all__ = [
'ring', 'trap',
'TrapSequence', 'TriggerlessTrapSequence',
]
import numpy
class ring(object):
"""
An class implementing a classic ring-buffer for reading and writing
signals in channels-by-samples packets.
b = ring(nsamples, nchannels) initializes the buffer
b.to_read() # returns the number of sa... | PypiClean |
/CssDeadwood-0.3.0-py3-none-any.whl/cssdeadwood/css_extract.py | import re
import collections
from cssdeadwood.utils import file_get_contents
def extract_css_selectors(css_file):
'''
Extract CSS selectors from a given CSS file.
@param css_file CSS file path
@return set of CSS selectors
'''
selectors = set()
css = file_get_contents(css_file)
# Pr... | PypiClean |
/Cydra-0.2.tar.gz/Cydra-0.2/cydra/web/debugging.py |
# This file also contains code from Werkzeug licensed under the BSD license.
# For more information see http://werkzeug.pocoo.org/ and
# https://github.com/mitsuhiko/werkzeug/blob/master/werkzeug/contrib/profiler.py
from StringIO import StringIO
try:
from cProfile import Profile
except ImportError:
from pro... | PypiClean |
/LiMiC-0.3.20.tar.gz/LiMiC-0.3.20/limic/util.py | def parse_config(config, parser, prefix):
subs = None
for a,b in config:
if isinstance(a,str):
if not subs:
subs = parser.add_subparsers(dest='command',required=True)
args = b.pop('args') if 'args' in b else None
sub = subs.add_parser(a,**b)
... | PypiClean |
/CommandTool-0.5.3.tar.gz/CommandTool-0.5.3/doc/source/manual.rst | Manual
++++++
Caution
=======
A CommandTool command's ``on_run()`` method has been replased with a more
powerfull ``run()`` method in the latest CommandTool. All the documentation
here referes to ``on_run()`` which is now deprecated and shouldn't be used. The
new CommandTool library is eniterly backwards compatible s... | PypiClean |
/Ma_rin-0.1.tar.gz/Ma_rin-0.1/J/m/repositorio.py | import numpy as np
import matplotlib.pyplot as plt
import math
from math import sin,cos,sqrt,radians
from tkinter import *
from tkinter import messagebox
from datetime import date
from datetime import datetime
from datetime import timedelta
class ParOrdenado:
def __init__(self):
... | PypiClean |
/Congo-0.0.1.tar.gz/Congo-0.0.1/portfolio/utils.py | from __future__ import division
import os
import re
import string
import random
import urlparse
import socket
import subprocess
import functools
import multiprocessing
import threading
from passlib.hash import bcrypt as crypt_engine
import datetime
import humanize
import pkg_resources
from slugify import slugify
from i... | PypiClean |
/DuCat-1.0.1.tar.gz/DuCat-1.0.1/ducat/adb.py | from os.path import exists
from ducat.confloader import ConfLoader
from ducat.helper import LOG_LEVELS_MAP, get_conf_path, handle_home_case, print_unicode
from ducat.logprocessor import LogProcessor, indent_wrap
from ducat.logregex import LogRegex
from ducat.terminalcolor import termcolor, RED, RESET, YELLOW, GREEN, c... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/prism/plugins/data-uri-highlight/prism-data-uri-highlight.js | (function () {
if (
typeof self !== 'undefined' && !self.Prism ||
typeof global !== 'undefined' && !global.Prism
) {
return;
}
var autoLinkerProcess = function (grammar) {
if (Prism.plugins.autolinker) {
Prism.plugins.autolinker.processGrammar(grammar);
}
return grammar;
};
var dataURI = {
patt... | PypiClean |
/Mini-AMF-0.9.1.tar.gz/Mini-AMF-0.9.1/miniamf/amf3.py | from __future__ import absolute_import
import datetime
import six
from six.moves import range
import zlib
import miniamf
from . import codec, util, xml
__all__ = [
'ByteArray',
'Context',
'Encoder',
'Decoder',
]
#: The undefined type is represented by the undefined type marker. No further
#: infor... | PypiClean |
/NearPy-0.2.2.tar.gz/NearPy-0.2.2/nearpy/hashes/randomdiscretizedprojections.py |
# Copyright (c) 2013 Ole Krause-Sparmann
# 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,... | PypiClean |
/IMMP-0.12.1.tar.gz/IMMP-0.12.1/immp/hook/hangoutslock.py | import hangups
from hangups import hangouts_pb2
import immp
from immp.plug.hangouts import HangoutsPlug
HISTORY = {True: hangouts_pb2.OFF_THE_RECORD_STATUS_ON_THE_RECORD,
False: hangouts_pb2.OFF_THE_RECORD_STATUS_OFF_THE_RECORD}
LINK_JOIN = {True: hangouts_pb2.GROUP_LINK_SHARING_STATUS_ON,
F... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/selector/lite.js | define("dojo/selector/lite",["../has","../_base/kernel"],function(_1,_2){
"use strict";
var _3=document.createElement("div");
var _4=_3.matchesSelector||_3.webkitMatchesSelector||_3.mozMatchesSelector||_3.msMatchesSelector||_3.oMatchesSelector;
var _5=_3.querySelectorAll;
_1.add("dom-matches-selector",!!_4);
_1.add("do... | PypiClean |
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/api/http/namespaces/views.py | from http import HTTPStatus
from flask import request
from flask_restx import Resource, abort
from sqlalchemy.exc import NoResultFound
from mindsdb.api.http.namespaces.configs.projects import ns_conf
from mindsdb.api.mysql.mysql_proxy.controllers.session_controller import SessionController
@ns_conf.route('/<projec... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_cs-cz.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 |
/Gritty-0.1.3.zip/Gritty-0.1.3/gritty/__init__.py | import itertools
import pygame
from padlib import rrect
from lib import coerce_alpha, NotifiableDict
# Copyright 2013 Joe Cross
# This is free software, released under The GNU Lesser General Public License,
# version 3.
# You are free to use, distribute, and modify gritty. If modification is your
# game, it is recomme... | 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/chart_data_point.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 |
/JPype1_py3-0.5.5.4-cp37-cp37m-win_amd64.whl/jpype/_jclass.py |
import _jpype
from ._pykeywords import KEYWORDS
_CLASSES = {}
_SPECIAL_CONSTRUCTOR_KEY = "This is the special constructor key"
_JAVAOBJECT = None
_JAVATHROWABLE = None
_COMPARABLE = None
_RUNTIMEEXCEPTION = None
_CUSTOMIZERS = []
_COMPARABLE_METHODS = {
"__cmp__": lambda self, o: self.compareTo(o)
}
def _... | PypiClean |
/AIS.py-0.2.2.linux-x86_64.tar.gz/usr/local/lib/python3.5/dist-packages/AIS/ais.py | import base64
import json
import re
import uuid
import requests
from .pdf import PDF
from . import exceptions
url = "https://ais.swisscom.com/AIS-Server/rs/v1.0/sign"
class AIS(object):
"""Client object holding connection information to the AIS service."""
def __init__(self, customer, key_static, cert_fil... | PypiClean |
/Flask-SSLify-bp-0.1.6.tar.gz/Flask-SSLify-bp-0.1.6/README.rst | Flask-SSLify
============
This is a simple Flask extension that configures your Flask application to redirect
all incoming requests to HTTPS.
Redirects only occur when ``app.debug`` is ``False``.
Usage
-----
Usage is pretty simple::
from flask import Flask
from flask_sslify import SSLify
app = Flask(_... | PypiClean |
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/deployment/commands/xmlimport.py | from AccessControl.SecurityManagement import getSecurityManager
from AccessControl.SecurityManagement import newSecurityManager
from AccessControl.SecurityManagement import setSecurityManager
from euphorie.client import publish
from euphorie.content.upload import SurveyImporter
from euphorie.content.user import UserPro... | PypiClean |
/Extremes-1.1.1.zip/Extremes-1.1.1/ez_setup/__init__.py | import sys
DEFAULT_VERSION = "0.6c9"
DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3]
md5_data = {
'setuptools-0.6b1-py2.3.egg': '8822caf901250d848b996b7f25c6e6ca',
'setuptools-0.6b1-py2.4.egg': 'b79a8a403e4502fbb85ee3f1941735cb',
'setuptools-0.6b2-py2.3.egg': '5657759... | PypiClean |
/EVE_CLI_ASSISTANT-0.1-py3-none-any.whl/eve/commands/cmd_search.py | import click
import webbrowser
from eve.config import google_url, wiki_url, youtube_url
import pyttsx3
def female_speak(text):
engine = pyttsx3.init()
engine.setProperty('rate',200)
engine.setProperty('volume', 1)
voices = engine.getProperty('voices')
engine.setProperty('voice', voices[1].id)
... | PypiClean |
/MPT5.0.3.1-0.3.1.tar.gz/MPT5.0.3.1-0.3.1/src/MPT5/Database/PostGet.py | import sqlite3
from . import wxsq as sq
from . import srcsql as ss
from Config.Init import *
class Get:
def __init__(self, DBF, Data, file):
self.DBF = DBF
self.Data = Data
if file != '':
sqlfile = DATABASE_PATH + 'sqls' + SLASH + file
#sqlfile = Src_dbf + 'sqls' ... | PypiClean |
/EfficientWord_Net-1.0.2-py3-none-any.whl/EfficientWord_Net-1.0.2.dist-info/LICENSE.md | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... | PypiClean |
/CAL-1.4.5.tar.gz/CAL-1.4.5/iCalendar.py |
from __future__ import print_function
from _CAL import CAL
from _TFL import TFL
from _TFL.pyk import pyk
from _TFL._Meta.totally_ordered import totally_ordered
import _TFL._Meta.Object
import _TFL._Meta.Property
import _TFL._Met... | PypiClean |
/Kr0nOs_Bot-3.3.11-py3-none-any.whl/redbot/cogs/mod/settings.py | from collections import defaultdict, deque
from redbot.core import commands, i18n, checks
from redbot.core.utils.chat_formatting import box
from .abc import MixinMeta
_ = i18n.Translator("Mod", __file__)
class ModSettings(MixinMeta):
"""
This is a mixin for the mod cog containing all settings commands.
... | PypiClean |
/Django%20CustomUser%20Model-1.1.0.tar.gz/Django CustomUser Model-1.1.0/README.md | ==========================
# Django Custom User Model App + Django Allauth
==========================
Django custom user model app integrated with Django Allauth
Integrated set of Django applications addressing authentication,
registration, account management as well as 3rd party (social) account
authentication.
Home... | PypiClean |
/HTTPEncode-0.1.tar.gz/HTTPEncode-0.1/httpencode/http.py | import sys
import urlparse
import re
from cStringIO import StringIO
import httplib2
from paste.request import construct_url
from paste.util.multidict import MultiDict
from httpencode.registry import get_format, find_format_match, find_format_by_type, \
find_accept_for_type
from httpencode.format import Format
from... | PypiClean |
/ARGs_OAP-2.3.2.tar.gz/ARGs_OAP-2.3.2/ARGs_OAP/bin/bbmap/dedupebymapping.sh |
usage(){
echo "
Written by Brian Bushnell
Last modified April 4, 2020
Description: Deduplicates mapped reads based on pair mapping coordinates.
Usage: dedupebymapping.sh in=<file> out=<file>
Parameters:
in=<file> The 'in=' flag is needed if the input file is not the
first parameter... | PypiClean |
/Machine_Learning_Preprocess_CLI-1.0.1-py3-none-any.whl/cli_app/categorical.py | import pandas as pd
from sklearn.preprocessing import LabelEncoder, OneHotEncoder
from cli_app.data_description import DataDescription
class Categorical:
# The Task associated with this class.
tasks = [
'\n1. Show Categorical Columns',
'2. Performing One Hot encoding',
'3. Show the Data... | PypiClean |
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/floatcanvas/GUIMode.py | import wx
import numpy as N
from . import FCEvents, Resources
from .Utilities import BBox
class Cursors(object):
"""
Class to hold the standard Cursors
"""
def __init__(self):
if "wxMac" in wx.PlatformInfo: # use 16X16 cursors for wxMac
self.HandCursor = wx.Cursor(Resources.getHa... | PypiClean |
/CaptionedFileFormat-1.1.0.post2-py3-none-any.whl/cptf/__init__.py | from . import errors
import typing
import struct
class Buffer:
MAGIC_NUMBER = b'CPTN\n'
def create_new(self, content: str, caption: str, filename: typing.Optional[str] = None):
'''Fill the Buffer with some data'''
if filename is None:
filename = ''
filename_size = len(filename)
caption_size = len(caption... | PypiClean |
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/tailwindcss/src/lib/content.js |
import fs from 'fs'
import path from 'path'
import isGlob from 'is-glob'
import fastGlob from 'fast-glob'
import normalizePath from 'normalize-path'
import { parseGlob } from '../util/parseGlob'
import { env } from './sharedState'
/** @typedef {import('../../types/config.js').RawFile} RawFile */
/** @typedef {import(... | PypiClean |
/ASTFormula-0.0.3.tar.gz/ASTFormula-0.0.3/astformula/defaults/processors.py | import ast
import operator as op
from decimal import Decimal
from typing import TYPE_CHECKING
from astformula.exceptions import UnsupportedOperationError, \
MissingAttributeError, MissingVariableError
if TYPE_CHECKING:
from astformula.main import ASTFormula # pylint: disable=R0401
CALC_NONE = "CalcNone"
d... | PypiClean |
/DiscordLang-0.0.1.tar.gz/DiscordLang-0.0.1/README.md | # DiscordLang
A discord extension that makes working with languages a little bit easier.
### Features
* Adding languages to the database
* Supports json and configparser (ini) formats.
* Work with a lot of different languages
* No need to tweak anything with your other config files.
### Installation
To install cur... | PypiClean |
/CartiMorph_nnUNet-1.7.14.tar.gz/CartiMorph_nnUNet-1.7.14/CartiMorph_nnUNet/preprocessing/preprocessing.py |
from collections import OrderedDict
from copy import deepcopy
from batchgenerators.augmentations.utils import resize_segmentation
from CartiMorph_nnUNet.configuration import default_num_threads, RESAMPLING_SEPARATE_Z_ANISO_THRESHOLD
from CartiMorph_nnUNet.preprocessing.cropping import get_case_identifier_from_npz, Im... | PypiClean |
/D47crunch-2.0.3.tar.gz/D47crunch-2.0.3/readme.md | # D47crunch
[](https://doi.org/10.5281/zenodo.4314550)
Python library for processing and standardizing carbonate clumped-isotope analyses, from low-level data out of a dual-inlet mass spectrometer to final, “absolute” Δ<sub>47</sub> and Δ<sub>48</sub> val... | PypiClean |
/ImSwitch-2.0.0.tar.gz/ImSwitch-2.0.0/imswitch/imcontrol/controller/controllers/FocusLockController.py | import time
import numpy as np
from time import perf_counter
import scipy.ndimage as ndi
from lantz import Q_
from skimage.feature import peak_local_max
from imswitch.imcommon.framework import Thread, Timer
from imswitch.imcommon.model import initLogger
from ..basecontrollers import ImConWidgetController
class Focu... | PypiClean |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/dbmigrate/ask.py | from __future__ import unicode_literals
from django.conf import settings
from cubane.lib import verbose
import sys
def ask(question, options, default_option_label = '[1]', interactive=True):
"""
Ask the user the given question and presents the given list of options
to choose from. The user reponse is a nu... | PypiClean |
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/gui/stdio.py | from decimal import Decimal
_ = lambda x:x
#from i18n import _
from electrum_vtc import WalletStorage, Wallet
from electrum_vtc.util import format_satoshis, set_verbosity
from electrum_vtc.bitcoin import is_valid, COIN, TYPE_ADDRESS
from electrum_vtc.network import filter_protocol
import sys, getpass, datetime
# minim... | PypiClean |
/DataConsumer-0.0.16.tar.gz/DataConsumer-0.0.16/README.md | # auto-Dataconsuming(0.0.13)
## 1.介绍
这个库分为两个部分RangeType和DataType
### 1.1 RangeType
可以用指定误差或给出多次测量得到的误差所给出**带有误差**的数据,可以在输出时对数据进行修约
### 1.2 DataType
可以通过输入数据字典和处理函数输出处理后的数据所产生的表格
## 2.安装
首先,在cmd中输入以下命令安装
`pip install DataConsumer`
其应当下载最新版本的DataConsumer,但请加以检查
其依赖库有`typing`,`pandas`,`numpy`和`collections`
在安装完成后,使用
... | PypiClean |
/DelegatorBot-1.1.8.tar.gz/DelegatorBot-1.1.8/README.md | # DelegatorBot
DelegatorBot is a simple, yet powerful command line bot that uses delegations to determine who it upvotes, rather than bids. The concept is simple: those who delegate get an endless supply of upvotes (with limitations, of course) until they decide to undelegate (delegate zero). The bot can be configured... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/yaml_27/yaml/scanner.py |
__all__ = ['Scanner', 'ScannerError']
from error import MarkedYAMLError
from tokens import *
class ScannerError(MarkedYAMLError):
pass
class SimpleKey(object):
# See below simple keys treatment.
def __init__(self, token_number, required, index, line, column, mark):
self.token_number = token_num... | PypiClean |
/Congo-0.0.1.tar.gz/Congo-0.0.1/devtest/application/config.py | import os
CWD = os.path.dirname(__file__)
class Config(object):
"""
Flask config: http://flask.pocoo.org/docs/0.10/config/
"""
SERVER_NAME = None
DEBUG = True
SECRET_KEY = "PLEASE CHANGE ME"
# ------
APP_NAME = ""
APP_VERSION = "0.0.1"
#
ADMIN_EMAIL = "admin@test.com"
... | PypiClean |
/CHJ-1.0.2.tar.gz/CHJ-1.0.2/Parameters.py |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from _CHJ import CHJ
from _TFL import TFL
from _TFL._Meta.Property import Lazy_Property
from _TFL... | PypiClean |
/Microbe-1.2.tar.gz/Microbe-1.2/microbe/utils.py | __author__ = 'TROUVERIE Joachim'
import os.path
import re
import shelve
from itertools import islice
from flask import abort, request, current_app
from flask.ext.paginate import Pagination
from flask.ext.themes2 import render_theme_template
from werkzeug.security import generate_password_hash
def create_pagination(p... | PypiClean |
/BigJob-0.64.5.tar.gz/BigJob-0.64.5/examples/pilot-api/example-pilot-compute-data.py | import sys
import os
import time
import logging
#logging.basicConfig(level=logging.DEBUG)
sys.path.append(os.path.join(os.path.dirname(__file__), "../.."))
from pilot import PilotComputeService, PilotDataService, ComputeDataService, State
COORDINATION_URL = "redis://localhost:6379"
if __name__ == "__main__":
... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/dns/reversename.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 |
/GSAS-II-WONDER_osx-1.0.4.tar.gz/GSAS-II-WONDER_osx-1.0.4/GSAS-II-WONDER/GSASIImpsubs.py | ########### SVN repository information ###################
# $Date: 2019-06-11 22:05:07 -0500 (Tue, 11 Jun 2019) $
# $Author: toby $
# $Revision: 4021 $
# $URL: https://subversion.xray.aps.anl.gov/pyGSAS/trunk/GSASIImpsubs.py $
# $Id: GSASIImpsubs.py 4021 2019-06-12 03:05:07Z toby $
########### SVN repository informati... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/printing/ccode.py | from __future__ import annotations
import typing
from ..core import Integer
from ..logic import true
from .codeprinter import Assignment, CodePrinter
from .precedence import precedence
# dictionary mapping diofant function to (argument_conditions, C_function).
# Used in CCodePrinter._print_Function(self)
known_func... | PypiClean |
/ContactMechanics-1.1.1.tar.gz/ContactMechanics-1.1.1/docs/installation.rst | Installation
============
You need Python 3 and all dependencies of SurfaceTopography_ to install ContactMechanics.
More details on the installation of dependencies are provided in SurfaceTopography's `installation instructions <https://contactengineering.github.io/SurfaceTopography/installation.html>`_.
Direct inst... | PypiClean |
/Mopidy-Transistor-0.2.0.tar.gz/Mopidy-Transistor-0.2.0/mopidy_transistor/protocol/TransistorMsg.py | from enum import Enum
import microparcel as mp
class TransistorMsg(mp.Message):
PROTOCOL_VERSION_MAJOR = 1
PROTOCOL_VERSION_MINOR = 0
def __init__(self):
super(TransistorMsg, self).__init__(size=4)
# --- Common enums ---
# --- Common fields ---
# --- Message fields ---
# MsgTyp... | PypiClean |
/Gluino-0.4.tar.gz/Gluino-0.4/gluino/utils.py | import hashlib
import hmac
import uuid
import random
import time
import os
import re
import logging
import socket
from contrib.pbkdf2 import pbkdf2_hex
logger = logging.getLogger("web2py")
def compare(a,b):
""" compares two strings and not vulnerable to timing attacks """
if len(a) != len(b):
return F... | PypiClean |
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/api/http/namespaces/tree.py | from collections import defaultdict
from flask import current_app as ca
from flask_restx import Resource
from mindsdb.api.http.utils import http_error
from mindsdb.api.http.namespaces.configs.tree import ns_conf
@ns_conf.route('/')
class GetRoot(Resource):
@ns_conf.doc('get_tree_root')
def get(self):
... | PypiClean |
/Fabric-with-working-dependencies-1.0.1.tar.gz/Fabric-with-working-dependencies-1.0.1/docs/usage/interactivity.rst | ================================
Interaction with remote programs
================================
Fabric's primary operations, `~fabric.operations.run` and
`~fabric.operations.sudo`, are capable of sending local input to the remote
end, in a manner nearly identical to the ``ssh`` program. For example, programs
which ... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/tools/analysis_tools/benchmark.py | import argparse
import copy
import os
import time
import torch
from mmcv import Config, DictAction
from mmcv.cnn import fuse_conv_bn
from mmcv.parallel import MMDistributedDataParallel
from mmcv.runner import init_dist, load_checkpoint, wrap_fp16_model
from mmdet.datasets import (build_dataloader, build_dataset,
... | PypiClean |
/KarthiksModelEngine-0.7.8-py3-none-any.whl/fluid/domain/Karthiks_Model_Engine.py | print("This install requires you to download the dependency files such as OneData.")
import os
path=os.getcwd()
want= input("Do you want to proceed with the download? \n1.YES \n2.NO \n")
if want=='1':
if 'onedata.h5' in path:
pass
else:
import gdown
url = 'https://drive.google.com/uc?id=... | PypiClean |
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/uix/screenmanager.py | __all__ = ('Screen', 'ScreenManager', 'ScreenManagerException',
'TransitionBase', 'ShaderTransition', 'SlideTransition',
'SwapTransition', 'FadeTransition', 'WipeTransition',
'FallOutTransition', 'RiseInTransition', 'NoTransition',
'CardTransition')
from kivy.compat import i... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/jquery-mapael/maps/world_countries.js | (function (factory) {
if (typeof exports === 'object') {
// CommonJS
module.exports = factory(require('jquery'), require('jquery-mapael'));
} else if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery', 'mapael'], factory);
... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/docs/modules/utilities/codegen.rst | =======
Codegen
=======
This module provides functionality to generate directly compilable code from
Diofant expressions. The ``codegen`` function is the user interface to the code
generation functionality in Diofant. Some details of the implementation is given
below for advanced users that may want to use the frame... | PypiClean |
/AdamTools-0.0.4.tar.gz/AdamTools-0.0.4/Email/EmailerBase.py | import smtplib
import sys
from email.mime.base import MIMEBase
from email.mime.multipart import MIMEMultipart
from email.mime.text import MIMEText
# from email.MIMEMultipart import MIMEMultipart
# from email.MIMEBase import MIMEBase
# from email import Encoders
# from email.MIMEText import MIMEText
class EmailerBase... | PypiClean |
/BuildPlanDetail-2.2.1.tar.gz/BuildPlanDetail-2.2.1/controller/BuildPlanDetail.py | __author__ = "houyan"
from controller.CommitToPlan import CommitToPlan
from controller.DB import DB
import time
from controller.GetMethod import GetMethod
class BuildPlanDetail:
@staticmethod
def genaratePlan(partnerId,branch,datetext,client,platform,project,token,codeType, startId, endId,filterId):
... | PypiClean |
/Battleships_api-0.1.2-py3-none-any.whl/Battleships_api/Player.py | from .GameBoard import GameBoard
from .Ai import Ai
from . import References
import time
import random
class Player:
def __init__(self, auto=False, test=False, aiLevel=0, boardSize=10):
# TODO remove gameboards for computer players
self.boardPrimary = GameBoard(boardSize)
self.boardTracking... | PypiClean |
/Flask-Beanstalk-0.0.3.tar.gz/Flask-Beanstalk-0.0.3/README.rst | ===============
Flask-Beanstalk
===============
.. image:: http://img.shields.io/pypi/v/Flask-Beanstalk.png
Utilities for using Beanstalk with Flask
------
Client
------
``flask_beanstalk.Beanstalk`` is a simple wrapper for ``beanstalkc.Connection``
that allows reading configuration from ``app.config``.
::
from... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/WPSProcess.js | * @requires OpenLayers/SingleFile.js
*/
/**
* @requires OpenLayers/Geometry.js
* @requires OpenLayers/Feature/Vector.js
* @requires OpenLayers/Format/WKT.js
* @requires OpenLayers/Format/GeoJSON.js
* @requires OpenLayers/Format/WPSExecute.js
* @requires OpenLayers/Request.js
*/
/**
* Class: OpenLayers.WPSPr... | PypiClean |
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/draugr/metrics/accumulation.py |
__author__ = "Christian Heider Nielsen"
__doc__ = r"""
Created on 16/02/2020
"""
import math
__all__ = ["lambda_accumulator", "mean_accumulator", "total_accumulator"]
from typing import Generator
from warg import Number
def lambda_accumulator(start_value=None, lambd: float = 0.99) -> Gener... | PypiClean |
/GDEFReader-0.0.1a41-py3-none-any.whl/afm_tools/background_correction.py | from enum import Enum, auto
from functools import partial
from typing import Optional
import numpy as np
from numpy.polynomial import Legendre
def subtract_mean_level(array2d: np.ndarray) -> np.ndarray:
"""
Correct an offset in the array2d by subtracting the mean level.
:param array2d:
:return: ndarr... | PypiClean |
/ClevelandMuseumArt-1.0.1.tar.gz/ClevelandMuseumArt-1.0.1/CMA/api.py | from .utils import covertImageToAscii
import requests
import urllib
# https://openaccess-api.clevelandart.org/
class Handler:
def __init__(self, baseurl='https://openaccess-api.clevelandart.org/api'):
self.baseurl = baseurl
def _api(self, method, path, params):
if params:
resp ... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.