id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/gwydion-0.1.zip/gwydion-0.1/gwydion/base.py
from abc import ABC, abstractmethod from inspect import getfullargspec import numpy as np import matplotlib.pyplot as plt from gwydion.exceptions import GwydionError class Base(ABC): """ Base ABC object to be subclassed in making Gwydion classes. Cannot be used as a class by itself, must be subclassed. ...
PypiClean
/Mcdp-0.2.1.tar.gz/Mcdp-0.2.1/mcdp/context.py
import asyncio import warnings from pathlib import Path from collections import ChainMap, UserList, defaultdict from typing import Any, ClassVar, DefaultDict, Dict, List, Literal, Optional, Callable, Union, Type from .typings import McdpBaseModel, McdpVar from .config import get_config, get_version from .aio_stream im...
PypiClean
/CustomPipeline-0.0.3-py3-none-any.whl/rpcore/gui/render_mode_selector.py
from __future__ import division from functools import partial from panda3d.core import Vec3 from rplibs.yaml import load_yaml_file from rpcore.native import NATIVE_CXX_LOADED from rpcore.gui.draggable_window import DraggableWindow from rpcore.gui.labeled_checkbox import LabeledCheckbox from rpcore.gui.checkbox_colle...
PypiClean
/MParT-2.0.2.tar.gz/MParT-2.0.2/docs/source/api/templateconcepts.rst
================== Template Concepts ================== Many of the lower-level classes in MParT are templated to allow for generic implementations. Using templates instead of other programming techniques, like virtual inheritance, makes it simpler to copy these classes to/from a GPU and can sometimes even result in ...
PypiClean
/Hopsworks_Integration-0.0.2-py3-none-any.whl/src/service/SimpleFeatureService.py
import json import logging import pandas as pd from sqlalchemy.sql import text from pathlib import Path import sys import os parent_dir = os.path.dirname(os.getcwd()) sys.path.insert(0,parent_dir) from src.service import FeatureStoreService as fss, ComplexFeatureService as cfs from src.database import DbTables logge...
PypiClean
/Adafruit_Blinka-8.20.1-py3-none-any.whl/adafruit_blinka/microcontroller/tegra/t234/pin.py
"""Tegra T234 pin names""" import atexit from Jetson import GPIO GPIO.setmode(GPIO.TEGRA_SOC) GPIO.setwarnings(False) # shh! class Pin: """Pins dont exist in CPython so...lets make our own!""" IN = 0 OUT = 1 LOW = 0 HIGH = 1 PULL_NONE = 0 PULL_UP = 1 PULL_DOWN = 2 id = None ...
PypiClean
/CaMo-0.0.5-py3-none-any.whl/camo/discover/ica_lingam.py
from itertools import permutations from typing import Optional import numpy as np import pandas as pd from scipy.optimize import linear_sum_assignment as hungarian from sklearn.decomposition import FastICA from sklearn.linear_model import LassoLarsIC, LinearRegression from ..structure import LinearNonGaussianSCM cl...
PypiClean
/Nosyd-0.0.5.tar.gz/Nosyd-0.0.5/README
------- Summary ------- Nosyd is a _minimalist_ personal command line friendly CI server. It is primarily meant to run on your developer machine. Nosyd tracks multiple projects and automatically runs your build whenever one of the monitored files of the monitored projects has changed. ------------ How it works ------...
PypiClean
/FEV_KEGG-1.1.4.tar.gz/FEV_KEGG-1.1.4/FEV_KEGG/Experiments/19.py
from FEV_KEGG.KEGG.File import cache import FEV_KEGG.KEGG.Organism from FEV_KEGG.Statistics.Percent import getPercentSentence @cache(folder_path = 'experiments/19', file_name = 'enterobacteriales_SubstanceEcGraph') def enterobacterialesEcGraph(): #- Create a group of example organisms of Order Enterobacteriales. ...
PypiClean
/Impression-CMS-0.2.0.tar.gz/Impression-CMS-0.2.0/impression/themes/admin/static/js/plugins/flot/jquery.flot.resize.js
* jQuery resize event - v1.1 - 3/14/2010 * http://benalman.com/projects/jquery-resize-plugin/ * * Copyright (c) 2010 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. * http://benalman.com/about/license/ */ (function($,h,c){var a=$([]),e=$.resize=$.extend($.resize,{}),i,k="setTimeout",j="resize...
PypiClean
/Ngoto-0.0.39-py3-none-any.whl/ngoto/core/util/task_controller.py
from ngoto.core.util.interface import show_tasks, clear_screen class TaskController: tasks = [] tasks_running = [] logger = None def add_task(self, task) -> None: self.tasks.append(task) def enable_task(self, task_id: str, logger) -> None: """ Enable task """ for task in ...
PypiClean
/src/models/trainer.py
import os import logging logging.getLogger().setLevel(logging.INFO) import numpy as np import time import shutil from argparse import ArgumentParser from pathlib import Path from tensorboardX import SummaryWriter import torch from src.models.models import PretrainedModel, AdapterModel from src.models.optimization impor...
PypiClean
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/object_detection/models/ssd_mobilenet_v3_feature_extractor.py
"""SSDFeatureExtractor for MobileNetV3 features.""" import tensorflow.compat.v1 as tf import tf_slim as slim from object_detection.meta_architectures import ssd_meta_arch from object_detection.models import feature_map_generators from object_detection.utils import context_manager from object_detection.utils import op...
PypiClean
/Aston-0.7.1.tar.gz/Aston-0.7.1/aston/tracefile/bruker.py
import struct import numpy as np import scipy.sparse from aston.trace import Chromatogram, Trace from aston.tracefile import TraceFile class BrukerMSMS(TraceFile): mime = 'application/vnd-bruker-msms' traces = ['#ms'] # def _getTotalTrace(self): # pass @property def data(self): #...
PypiClean
/Jaspion-0.3.7.1.tar.gz/Jaspion-0.3.7.1/jaspion/cli.py
import os import sys import importlib import click from greenswitch.esl import NotConnectedError from jaspion import Jaspion @click.group() def main(): """Jaspion CLI to manipulate and execute projects.""" ... @main.command() @click.option( "--host", envvar="FSHOST", show_default=True, def...
PypiClean
/Distributions_GauBino-0.1.tar.gz/Distributions_GauBino-0.1/Distributions_GauBino/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
/MapProxy-1.16.0.tar.gz/MapProxy-1.16.0/mapproxy/util/ext/tempita/__init__.py
from __future__ import print_function import re import sys import os import tokenize from io import StringIO, BytesIO from mapproxy.compat import iteritems, PY2, text_type from mapproxy.compat.modules import escape from mapproxy.util.py import reraise from mapproxy.util.ext.tempita._looper import looper from mapproxy....
PypiClean
/ocn-xmlchecker.env.tar.gz/env (copy)/lib/python2.7/encodings/mac_centeuro.py
"""#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_table) def decode(self,input,errors='strict'): return codecs.charmap_decode(input,errors,decoding_table) class IncrementalEncoder(codecs...
PypiClean
/ClusterShell-1.9.1.tar.gz/ClusterShell-1.9.1/doc/sphinx/release.rst
.. highlight:: console Release Notes ============= Version 1.9 ----------- We are pleased to announce the availability of this new release, which comes with some exciting new features and improvements. We would like to thank everyone who participated in this release in a way or another. Version 1.9.1 ^^^^^^^^^^^^^ ...
PypiClean
/GautamX-6.1-py3-none-any.whl/bot/modules/watch.py
from telegram.ext import CommandHandler from telegram import Bot, Update from bot import Interval, DOWNLOAD_DIR, DOWNLOAD_STATUS_UPDATE_INTERVAL, dispatcher, LOGGER from bot.helper.ext_utils.bot_utils import setInterval from bot.helper.telegram_helper.message_utils import update_all_messages, sendMessage, sendStatusMes...
PypiClean
/OBP_reliability_pillar_2-0.0.13.tar.gz/OBP_reliability_pillar_2-0.0.13/OBP_reliability_pillar_2/dynamodb/dynamodb_autoscaling_enabled.py
import botocore import logging from OBP_reliability_pillar_2.dynamodb.utils import list_dynamodb_tables logging.basicConfig(level=logging.INFO) logger = logging.getLogger() # checks compliance.py for dynamodb auto-scaling is enabled def dynamodb_autoscaling_enabled(self) -> dict: """ :param self: :retur...
PypiClean
/Elephantoplasty-0.1.zip/Elephantoplasty-0.1/doc/basics/objects.rst
--------------------------------------------------- Introduction to Elephantoplasty objects --------------------------------------------------- As the name suggests, object relational mapper is about objects which map to data in the relational database. Objects are representation of table rows while classes represent ...
PypiClean
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/model/owloadmodel.py
import os import pickle from typing import Any, Dict from AnyQt.QtWidgets import QSizePolicy, QStyle, QFileDialog from AnyQt.QtCore import QTimer from orangewidget.workflow.drophandler import SingleFileDropHandler from Orange.base import Model from Orange.widgets import widget, gui from Orange.widgets.model import o...
PypiClean
/FormBuild-4.0.0.tar.gz/FormBuild-4.0.0/formbuild/__init__.py
import logging import re from cgi import escape from markupsafe import Markup from bn import HTMLFragment log = logging.getLogger(__name__) try: from collections import OrderedDict except ImportError: # Python 2.5 and below ## {{{ http://code.activestate.com/recipes/576693/ (r6) from UserDict import DictM...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/public/VAADIN/widgetsets/org.muntiacus.MuntjacWidgetSet/mode/clojure/clojure.js
CodeMirror.defineMode("clojure", function (config, mode) { var BUILTIN = "builtin", COMMENT = "comment", STRING = "string", TAG = "tag", ATOM = "atom", NUMBER = "number", BRACKET = "bracket", KEYWORD="keyword"; var INDENT_WORD_SKIP = 2, KEYWORDS_SKIP = 1; function makeKeywords(str) { var ob...
PypiClean
/EGL-ML-CHALLENGE-0.1.0.tar.gz/EGL-ML-CHALLENGE-0.1.0/README.md
# ML - Engineering Challenge ## Build a machine learning system Welcome to the endeavour machine learning challenge! This challenge is designed to test a large variety of skills that a machine learning engineer would use in their day to day work. There are no restrictions in terms of technology required for this chal...
PypiClean
/GeneXpress-0.0.1.1.tar.gz/GeneXpress-0.0.1.1/AnalysisTools/limma_de.py
from ExpressionTools import pyEset, pyXset from rpy2.robjects.packages import importr from pandas import DataFrame r_base = importr('base') limma = importr('limma') stats = importr('stats') class LimmaDiffEx: # https://www.bioconductor.org/help/course-materials/2009/BioC2009/labs/limma/limma.pdf def __init__...
PypiClean
/APAV-1.4.0-cp311-cp311-win_amd64.whl/apav/analysis/spatial.py
from typing import Sequence, Tuple, List, Dict, Any, Union, Type, Optional, TYPE_CHECKING from numbers import Real, Number from numpy import ndarray from apav.analysis.base import AnalysisBase from apav.utils import validate from apav import Roi, RangeCollection, Ion from apav.core.histogram import histogram2d_binwidt...
PypiClean
/NVDA-addonTemplate-0.5.2.zip/NVDA-addonTemplate-0.5.2/NVDAAddonTemplate/data/{{cookiecutter.project_slug}}/scons-local-2.5.0/SCons/Node/Python.py
__revision__ = "src/engine/SCons/Node/Python.py rel_2.5.0:3543:937e55cd78f7 2016/04/09 11:29:54 bdbaddog" import SCons.Node class ValueNodeInfo(SCons.Node.NodeInfoBase): __slots__ = ('csig',) current_version_id = 2 field_list = ['csig'] def str_to_node(self, s): return Value(s) def __g...
PypiClean
/Files.com-1.0.1051-py3-none-any.whl/files_sdk/models/group_user.py
import builtins import datetime from files_sdk.api import Api from files_sdk.list_obj import ListObj from files_sdk.exceptions import InvalidParameterError, MissingParameterError, NotImplementedError class GroupUser: default_attributes = { 'group_name': None, # string - Group name 'group_id': N...
PypiClean
/Ion-0.6.4.tar.gz/Ion-0.6.4/ion/settings.py
# Copyright Bernardo Heynemann <heynemann@gmail.com> # Licensed under the Open Software License ("OSL") v. 3.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.opensource.org/licenses/osl-3.0.php # Unless required by appli...
PypiClean
/BGT_Client-1.0.2-py3-none-any.whl/dgt_sdk/protobuf/client_batch_submit_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_in...
PypiClean
/HitBTCMonster-0.0.3.tar.gz/HitBTCMonster-0.0.3/README.rst
HitBTC Library ------------------- A library for better communication with HitBTC Exchange API (`HitBTC API Documentation <https://api.hitbtc.com>`_) Installation: ~~~~~~~~~~~~~~~ .. code:: bash pip install HitBTCMonster Example: ~~~~~~~~~ API ********** .. code:: python from HitBTCMonster.api.core impo...
PypiClean
/MilkyWay-1.2.1.tar.gz/MilkyWay-1.2.1/README.md
# MilkyWay MilkyWay is an open source API for Robotics Path Planning ## Example of using the lib: ```python # Import the main classes from milkyway import Waypoint, Spline # Create all Waypoint a = Waypoint(0, 0, angle=0,k=2) b = Waypoint(1, 1, points=20, der2=0) c = Waypoint(1, 2, angle=90) # Make them into a spl...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/middleware/csrf.py
import logging import re import string from urllib.parse import urlparse from django.conf import settings from django.core.exceptions import DisallowedHost, ImproperlyConfigured from django.urls import get_callable from django.utils.cache import patch_vary_headers from django.utils.crypto import constant_time_compare,...
PypiClean
/FastCNN2-1.23.425.1716.tar.gz/FastCNN2-1.23.425.1716/FastCNN/prx/TrainProxy.py
from FastCNN.prx.DatasetProxy import DatasetProxy from FastCNN.prx.PathProxy import PathProxy2 as PathProxy from FastCNN.nn.neuralnets import getNeuralNet from FastCNN.utils.CallBacks import MACallBack2 as MACallBack from IutyLib.file.files import CsvFile from IutyLib.commonutil.config import JConfig import os os.envir...
PypiClean
/Kamaelia-0.6.0.tar.gz/Kamaelia-0.6.0/Examples/SoC2006/RJL/TorrentGUI/TorrentTkGUI.py
import Tkinter, time from Kamaelia.UI.Tk.TkWindow import TkWindow from Axon.Ipc import producerFinished, shutdown from Kamaelia.Protocol.Torrent.TorrentPatron import TorrentPatron from Kamaelia.Protocol.Torrent.TorrentIPC import TIPCNewTorrentCreated, TIPCTorrentStartFail, TIPCTorrentAlreadyDownloading, TIPCTorrentSt...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/onedrive/termstore/store.py
from office365.entity import Entity from office365.entity_collection import EntityCollection from office365.onedrive.termstore.groups.group import Group from office365.onedrive.termstore.groups.collection import GroupCollection from office365.onedrive.termstore.sets.set import Set from office365.onedrive.termstore.sets...
PypiClean
/BlueWhale3-Timeseries-0.3.13.tar.gz/BlueWhale3-Timeseries-0.3.13/orangecontrib/timeseries/widgets/highcharts/_highcharts/map.js
(function(h){typeof module==="object"&&module.exports?module.exports=h:h(Highcharts)})(function(h){function H(a){if(a)a.preventDefault&&a.preventDefault(),a.stopPropagation&&a.stopPropagation(),a.cancelBubble=!0}function M(a,b){var c,d,e,f,g=!1,i=a.x,k=a.y;for(c=0,d=b.length-1;c<b.length;d=c++)e=b[c][1]>k,f=b[d][1]>k,e...
PypiClean
/DrQueueIPython-0.0.1.tar.gz/DrQueueIPython-0.0.1/bin/control_computer.py
from optparse import OptionParser import os import DrQueue from DrQueue import Job as DrQueueJob from DrQueue import Client as DrQueueClient from DrQueue import Computer as DrQueueComputer from DrQueue import ComputerPool as DrQueueComputerPool def main(): # parse arguments parser = OptionParser() parser....
PypiClean
/BlueWhale3-BlueWhale-0.0.54.tar.gz/BlueWhale3-BlueWhale-0.0.54/orangecontrib/blue_whale/canvasmain.py
from AnyQt.QtWidgets import QAction, QMenu from AnyQt.QtCore import Qt from Orange.canvas import config from orangecanvas.application.canvasmain import CanvasMainWindow from orangecanvas.registry import get_style_sheet, get_global_registry from orangecanvas.application.outputview import TextStream from orangecontrib...
PypiClean
/AdyenAntoni-1.0.0.tar.gz/AdyenAntoni-1.0.0/Adyen/httpclient.py
from __future__ import absolute_import, division, unicode_literals try: import requests except ImportError: requests = None try: import pycurl except ImportError: pycurl = None from urllib.parse import urlencode from urllib.request import Request, urlopen from urllib.error import HTTPError from io ...
PypiClean
/D-Analyst-1.0.6.tar.gz/D-Analyst-1.0.6/main/analyst/visuals/plot_visual.py
import numpy as np from analyst import get_color, get_next_color from .visual import Visual __all__ = ['process_coordinates', 'PlotVisual'] def process_coordinates(x=None, y=None, thickness=None): if y is None and x is not None: if x.ndim == 1: x = x.reshape((1, -1)) nplots, nsamples =...
PypiClean
/3ETool-0.8.3.tar.gz/3ETool-0.8.3/EEETools/BlockSubClasses/condenser.py
from EEETools.MainModules.support_blocks import Drawer from EEETools.MainModules.main_module import Block import xml.etree.ElementTree as ETree from EEETools import costants class Condenser(Block): def __init__(self, inputID, main_class): super().__init__(inputID, main_class) self.type = "conde...
PypiClean
/Files.com-1.0.1051-py3-none-any.whl/files_sdk/models/form_field_set.py
import builtins import datetime from files_sdk.api import Api from files_sdk.list_obj import ListObj from files_sdk.exceptions import InvalidParameterError, MissingParameterError, NotImplementedError class FormFieldSet: default_attributes = { 'id': None, # int64 - Form field set id 'title': Non...
PypiClean
/Divisi-0.6.10.tar.gz/Divisi-0.6.10/csc/divisi/dict_mixin.py
class MyDictMixin(object): '''Emulates a dictionary interface, more efficiently than DictMixin. Mixin defining all dictionary methods for classes that already have a minimum dictionary interface including getitem, setitem, delitem, and __iter__. Without knowledge of the subclass constructor, the mixin ...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/mdnd/dropMode/OverDropMode.js
define("dojox/mdnd/dropMode/OverDropMode",["dojo/_base/kernel","dojo/_base/declare","dojo/_base/connect","dojo/_base/html","dojo/_base/array","dojox/mdnd/AreaManager"],function(_1){ var _2=_1.declare("dojox.mdnd.dropMode.OverDropMode",null,{_oldXPoint:null,_oldYPoint:null,_oldBehaviour:"up",constructor:function(){ this...
PypiClean
/MeleeUploader-1.22.2.tar.gz/MeleeUploader-1.22.2/meleeuploader/youtube.py
try: import http.client as httplib except ImportError: import httplib import httplib2 import os import sys import errno from time import sleep from decimal import Decimal from . import consts from google_auth_oauthlib.flow import InstalledAppFlow from googleapiclient.discovery import build from googleapicli...
PypiClean
/CPAT-3.0.4.tar.gz/CPAT-3.0.4/.eggs/nose-1.3.7-py3.7.egg/nose/plugins/attrib.py
import inspect import logging import os import sys from inspect import isfunction from nose.plugins.base import Plugin from nose.util import tolist import collections log = logging.getLogger('nose.plugins.attrib') compat_24 = sys.version_info >= (2, 4) def attr(*args, **kwargs): """Decorator that adds attributes ...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/yaml/yaml/constructor.py
__all__ = [ 'BaseConstructor', 'SafeConstructor', 'FullConstructor', 'UnsafeConstructor', 'Constructor', 'ConstructorError' ] from .error import * from .nodes import * import collections.abc, datetime, base64, binascii, re, sys, types class ConstructorError(MarkedYAMLError): pass class B...
PypiClean
/Fabric39-1.15.3.post1.tar.gz/Fabric39-1.15.3.post1/sites/docs/usage/execution.rst
=============== Execution model =============== If you've read the :doc:`../tutorial`, you should already be familiar with how Fabric operates in the base case (a single task on a single host.) However, in many situations you'll find yourself wanting to execute multiple tasks and/or on multiple hosts. Perhaps you want...
PypiClean
/Herring-0.1.49.tar.gz/Herring-0.1.49/herring/argument_helper.py
from collections import deque __docformat__ = 'restructuredtext en' __all__ = ('ArgumentHelper',) class ArgumentHelper(object): """ Helper for handling command line arguments. """ @staticmethod def argv_to_dict(argv): """ Given a list of keyword arguments, parse into a kwargs dictionary....
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/run-parallel/README.md
# run-parallel [![travis][travis-image]][travis-url] [![npm][npm-image]][npm-url] [![downloads][downloads-image]][downloads-url] [![javascript style guide][standard-image]][standard-url] [travis-image]: https://img.shields.io/travis/feross/run-parallel/master.svg [travis-url]: https://travis-ci.org/feross/run-parallel...
PypiClean
/Djaizz-23.6.21.1-py3-none-any.whl/djaizz/model/models/ml/hugging_face/zero_shot_classification.py
from sys import version_info from typing import Union from django.utils.functional import classproperty from gradio.interface import Interface from gradio.inputs import (Textbox as TextboxInput, Dataframe as DataframeInput, Checkbox as CheckboxInput) from gradio.o...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dijit/form/Textarea.js
if(!dojo._hasResource["dijit.form.Textarea"]){ dojo._hasResource["dijit.form.Textarea"]=true; dojo.provide("dijit.form.Textarea"); dojo.require("dijit.form.SimpleTextarea"); dojo.declare("dijit.form.Textarea",dijit.form.SimpleTextarea,{cols:"",_previousNewlines:0,_strictMode:(dojo.doc.compatMode!="BackCompat"),_getHeig...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/plugins/modify/set_field.py
from loguru import logger from flexget import plugin from flexget.entry import register_lazy_lookup from flexget.event import event from flexget.utils.template import RenderError logger = logger.bind(name='set') # Use a string for this sentinel, so it survives serialization UNSET = '__unset__' class ModifySet: ...
PypiClean
/GenMotion-0.0.4-py3-none-any.whl/genmotion/render/python/rendermotion.py
import numpy as np import imageio import os import torch from tqdm import tqdm from genmotion.render.python.renderer import get_renderer import genmotion.render.python.utils as geometry def get_rotation(theta=np.pi/3): axis = torch.tensor([0, 1, 0], dtype=torch.float) axisangle = theta*axis matrix = geomet...
PypiClean
/Monzo%20API-0.3.0.tar.gz/Monzo API-0.3.0/monzo/endpoints/attachment.py
from __future__ import annotations from datetime import datetime from os.path import getsize, isfile, splitext from urllib.parse import urlparse from monzo.authentication import Authentication from monzo.endpoints.monzo import Monzo from monzo.exceptions import MonzoGeneralError from monzo.helpers import create_date ...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/channel_response_py3.py
from msrest.serialization import Model class ChannelResponse(Model): """ChannelResponse. :param channel_id: The channel identifier :type channel_id: int :param interval_minutes: The interval of the channel. The interval is measured in minutes :type interval_minutes: int :param observati...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Errors.py
__revision__ = "src/engine/SCons/Errors.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan" import shutil import SCons.Util class BuildError(Exception): """ Errors occurring while building. BuildError have the following attributes: ========================================= Info...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/db/models/query.py
import copy import itertools import sys import warnings from django.core import exceptions from django.db import connections, router, transaction, IntegrityError from django.db.models.constants import LOOKUP_SEP from django.db.models.fields import AutoField from django.db.models.query_utils import (Q, select_related_d...
PypiClean
/BasiliskJS-0.8.tar.gz/BasiliskJS-0.8/README.rst
BasiliskJS - Scriptable Headless WebKit ========================= `BasiliskJS <https://pypi.python.org/pypi/BasiliskJS>`_ Представляет собой WebKit для python, основан на `PhantomJS <http://phantomjs.org>`_ . Возможность ============ - **Быстрое тестирование**. Возможность быстрого тестирования без браузера! - **Ав...
PypiClean
/OASYS1-SRW-1.1.106.tar.gz/OASYS1-SRW-1.1.106/orangecontrib/srw/widgets/native/ow_srw_me_degcoh_plotter.py
__author__ = 'labx' from numpy import nan from PyQt5.QtGui import QPalette, QColor, QFont from PyQt5.QtWidgets import QMessageBox from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui from orangecontrib.srw.util.srw_util import SRWPlot from orangecontrib.srw...
PypiClean
/CUriTools-0.7.1.tar.gz/CUriTools-0.7.1/curitools/settings.py
import os import time import codecs import re import getpass class MissingFileSettings(Exception): pass class MissingValueRequired(Exception): pass class Settings(object): def __init__(self, file_path = None): self.file_path = file_path if file_path is not None else self.find_settings_file(...
PypiClean
/0x-web3-5.0.0a5.tar.gz/0x-web3-5.0.0a5/ens/utils.py
import copy import datetime import functools from eth_utils import ( is_same_address, remove_0x_prefix, to_normalized_address, ) import idna from ens.constants import ( ACCEPTABLE_STALE_HOURS, AUCTION_START_GAS_CONSTANT, AUCTION_START_GAS_MARGINAL, EMPTY_SHA3_BYTES, MIN_ETH_LABEL_LENGT...
PypiClean
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/gqcms/General.py
from abc import abstractmethod from collections import deque import numpy as np import scipy.sparse.linalg as sparse_linalg import warnings class IterativeAlgorithm: def __init__(self, env, init_steps: list = [], steps: list = []): self._env = env self._init_steps = init_steps self._steps...
PypiClean
/Marl-Factory-Grid-0.1.2.tar.gz/Marl-Factory-Grid-0.1.2/marl_factory_grid/modules/destinations/entitites.py
from collections import defaultdict from marl_factory_grid.environment.entity.agent import Agent from marl_factory_grid.environment.entity.entity import Entity from marl_factory_grid.environment import constants as c from marl_factory_grid.environment.entity.mixin import BoundEntityMixin from marl_factory_grid.utils.r...
PypiClean
/BEAT_TEST-0.13.1.tar.gz/BEAT_TEST-0.13.1/econml/dynamic/dml/_dml.py
import abc import numpy as np from warnings import warn from sklearn.base import clone from sklearn.model_selection import GroupKFold from scipy.stats import norm from sklearn.linear_model import (ElasticNetCV, LassoCV, LogisticRegressionCV) from ...sklearn_extensions.linear_model import (StatsModelsLinearRegression, ...
PypiClean
/Flask-TinyMCE-1.0.0.tar.gz/Flask-TinyMCE-1.0.0/flask_tinymce/static/plugins/insertdatetime/plugin.min.js
!function(){"use strict";function l(e){return e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S"))}function s(e){return e.getParam("insertdatetime_formats",["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"])}function r(e,t){if((e=""+e).length<t)for(var n=0;n<t-e.length;n++)e="0"+e;return e}function d(e,t,n){return v...
PypiClean
/functions/structural_holes/HAM.py
__all__ = [ "get_structural_holes_HAM" ] import sys import numpy as np import json, os import scipy.sparse as sps import scipy.linalg as spl from sklearn import metrics from scipy.cluster.vq import kmeans, vq, kmeans2 from collections import Counter eps=2.220446049250313e-16 import scipy.stats as stat def sym(w): ...
PypiClean
/MazgaDB-1.1.2.tar.gz/MazgaDB-1.1.2/mazga_db/__init__.py
import sqlite3 from dataclasses import make_dataclass from prettytable import from_db_cursor def __save__(db, class_data, name_table, key): for data in db.accept_columns(name_table): db.update_line(name_table=name_table, key1=key, value1=getattr(class_data, key), key2=data[0], value2=getattr(class_data, dat...
PypiClean
/Beaver-36.3.1-py3-none-any.whl/beaver/transports/sqs_transport.py
import boto.sqs import uuid from boto.sqs.message import Message, RawMessage from beaver.transports.base_transport import BaseTransport from beaver.transports.exception import TransportException from sys import getsizeof class SqsTransport(BaseTransport): def __init__(self, beaver_config, logger=None): s...
PypiClean
/BetterPyXZH-1.1.0.20201231.1.tar.gz/BetterPyXZH-1.1.0.20201231.1/README.md
# BetterPy Use Something to Make Python Better Together!<br><br> ### V1.1.0.20201231: V1.1.0.20201231:更改_PLUS()为_COMPUTE(),修复了一点BUG.<br> betterpyInfo()打印程序信息<br> _BK(<提示信息>)设置程序中断<br> _DEBUG(<一个或多个变量>)输出变量信息并中断<br> _QUIT(<提示信息>)中断并退出<br> _COMPUTE(<变量a>,<运算符>,<变量b>,<可选:输出普通计算结果>)高精度加法.当运算符非"+"或"-"时,会引发ValueError<br> _RU...
PypiClean
/Gauss_dist-0.1.tar.gz/Gauss_dist-0.1/Gauss_dist/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
/JoUtil-1.3.3-py3-none-any.whl/JoTools/txkjRes/AllRes.py
import os import cv2 import copy import time import random from flask import jsonify import numpy as np from abc import ABC from PIL import Image from .resBase import ResBase from .deteObj import DeteObj, PointObj from .deteAngleObj import DeteAngleObj from ..txkjRes.resTools import ResTools from ..utils.JsonUtil impo...
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/subset.py
import logging import operator from django.contrib.gis.geos import Polygon, LineString from eoxserver.core.config import get_eoxserver_config from eoxserver.core.decoders import config, enum from eoxserver.contrib.osr import SpatialReference from eoxserver.resources.coverages import crss from eoxserver.services.exc...
PypiClean
/Ancestration-0.1.0.tar.gz/Ancestration-0.1.0/README.txt
Ancestration – Family Inheritance for Python ============================================ This project implements the so-called *family inheritance* for Python 2 and 3. It is based on the doctoral thesis of Patrick Lay "Entwurf eines Objektmodells für semistrukturierte Daten im Kontext von XML Content Management Syste...
PypiClean
/Hikka_Pyro_New-2.0.103-py3-none-any.whl/hikkapyro/errors/exceptions/bad_request_400.py
from ..rpc_error import RPCError class BadRequest(RPCError): """Bad Request""" CODE = 400 """``int``: RPC Error Code""" NAME = __doc__ class AboutTooLong(BadRequest): """The provided about/bio text is too long""" ID = "ABOUT_TOO_LONG" """``str``: RPC Error ID""" MESSAGE = __doc__ ...
PypiClean
/CLCR-1.0.0-py3-none-any.whl/CLCR_benchmarks/old_benchmark_one.py
"""First benchmark for the CLCR program (determine average cutoff distance)""" __author__ = "6947325: Johannes Zieres" __credits__ = "" __email__ = "johannes.zieres@gmail.com" import datetime import os import random import glob import time import matplotlib.pyplot as plt def exclude_proteins_with_j(input_file_path)...
PypiClean
/Lagranto-0.3.1.tar.gz/Lagranto-0.3.1/docs/lagranto.rst
.. _lagranto-package: Basic examples -------------- In a first step, let's simply read the trajectories:: >>> from lagranto import Tra >>> filename = 'lsl_20110123_10' >>> trajs = Tra() >>> trajs.load_ascii(filename) or to read a netcdf file:: >>> filename = 'lsl_20110123_10.4' >>> trajs.lo...
PypiClean
/GearMess_server-0.1.1-py3-none-any.whl/server_src/server.py
from socket import socket, AF_INET, SOCK_STREAM, timeout from os import urandom from queue import Queue from threading import Thread import sys from server_src.handlers import StorageHandler from server_src.models import session from server_src.JIM.JIMs import Jim, MessageConverter from server_src.JIM.jim_config impor...
PypiClean
/HiCExplorer-2.2.1.1-py3-none-any.whl/hicexplorer/hicAdjustMatrix.py
from __future__ import division import warnings warnings.simplefilter(action="ignore", category=RuntimeWarning) warnings.simplefilter(action="ignore", category=PendingDeprecationWarning) import argparse from hicmatrix import HiCMatrix as hm from hicexplorer._version import __version__ from hicmatrix.HiCMatrix import ch...
PypiClean
/AI4Water-1.6.tar.gz/AI4Water-1.6/ai4water/models/_tensorflow/private_layers.py
from typing import Union from ai4water.backend import tf layers = tf.keras.layers Dense = tf.keras.layers.Dense Layer = tf.keras.layers.Layer activations = tf.keras.activations K = tf.keras.backend constraints = tf.keras.constraints initializers = tf.keras.initializers regularizers = tf.keras.regularizers from tenso...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/SConf.py
from __future__ import print_function __revision__ = "src/engine/SCons/SConf.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan" import SCons.compat import io import os import re import sys import traceback import SCons.Action import SCons.Builder import SCons.Errors import SCons.Job import SCo...
PypiClean
/BanzaiDB-0.3.0.tar.gz/BanzaiDB-0.3.0/docs/_build/html/_static/sidebar.js
$(function() { // global elements used by the functions. // the 'sidebarbutton' element is defined as global after its // creation, in the add_sidebar_button function var bodywrapper = $('.bodywrapper'); var sidebar = $('.sphinxsidebar'); var sidebarwrapper = $('.sphinxsidebarwrapper')...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/task.py
import collections.abc import contextlib import copy import itertools import random import string import threading from functools import total_ordering, wraps from typing import TYPE_CHECKING, Iterable, List, Optional, Union from loguru import logger from sqlalchemy import Column, Integer, String, Unicode from flexge...
PypiClean
/Fabric-with-working-dependencies-1.0.1.tar.gz/Fabric-with-working-dependencies-1.0.1/fabric/sftp.py
from __future__ import with_statement import hashlib import os import stat import tempfile from fnmatch import filter as fnfilter from fabric.state import output, connections, env from fabric.utils import warn class SFTP(object): """ SFTP helper class, which is also a facade for paramiko.SFTPClient. """...
PypiClean
/DendroPy-4.6.1.tar.gz/DendroPy-4.6.1/src/dendropy/utility/textprocessing.py
############################################################################## ## DendroPy Phylogenetic Computing Library. ## ## Copyright 2010-2015 Jeet Sukumaran and Mark T. Holder. ## All rights reserved. ## ## See "LICENSE.rst" for terms and conditions of usage. ## ## If you use this work or any portion there...
PypiClean
/MJOLNIR-1.3.1.tar.gz/MJOLNIR-1.3.1/docs/Contribution.rst
After the initial upstart phase you are more than welcome to contribute to the software. This is best done by: * First create an issue on the GitHub page describing the scope of the contribution * Title: *Contribution: Title of contribution*. * Short description of features. * List of package dependencies...
PypiClean
/Fabric-with-working-dependencies-1.0.1.tar.gz/Fabric-with-working-dependencies-1.0.1/docs/usage/fabfiles.rst
============================ Fabfile construction and use ============================ This document contains miscellaneous sections about fabfiles, both how to best write them, and how to use them once written. .. _fabfile-discovery: Fabfile discovery ================= Fabric is capable of loading Python modules (...
PypiClean
/MnemoPwd-1.2.1-py3-none-any.whl/mnemopwd/server/clients/protocol/StateSCC.py
# Copyright (c) 2015-2016, Thierry Lemeunier <thierry at lemeunier dot net> # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright n...
PypiClean
/AudioAugmentation-0.10.0.tar.gz/AudioAugmentation-0.10.0/README.txt
# AudioAugmentation Libreria python para aumentar audios haciendo transformaciones sobre los audios, de esta manera mediante algunas transformaciones sobre los audios se recibe un audio y se multiplica por 9 salidas ## Initialization ```bash pip install AudioAugmentation ``` A `AudioAugmentation` object should b...
PypiClean
/Flask-Azure-Storage-0.2.1.tar.gz/Flask-Azure-Storage-0.2.1/flask_azure_storage.py
from azure.storage import CloudStorageAccount import six from collections import defaultdict import logging import os import re from flask import current_app from flask import url_for as flask_url_for logger = logging.getLogger('Flask_Azure_Storage') try: from flask import _app_ctx_stack as stack except ImportErr...
PypiClean
/CNVpytor-1.3.1.tar.gz/CNVpytor-1.3.1/cnvpytor/__main__.py
from __future__ import print_function from .root import * from .viewer import * from .version import __version__ from .fasta import * from .export import * from .trio import * import sys import os import logging import argparse import matplotlib.pyplot as plt def main(): """ main() CNVpytor main commandline p...
PypiClean
/CLI_processor-1.0.0-py3-none-any.whl/mypackage/__init__.py
import sys import pandas as pd from data_description import Description from imputation import Imputation from categorical import Categorial from feature_scaling import Feature from download import Download class Preprocessing: def __init__(self): if(len(sys.argv)!=2 or sys.argv[1].endswith('.csv')!=1): ...
PypiClean
/Jalapeno-Lite-0.1.3.tar.gz/Jalapeno-Lite-0.1.3/Jalapeno_data/Sites/first/Pages/blog/getstart.md
title: 使用Jalapeno快速搭建博客 date: 2017-01-19 tag: Flask [TOC] <!--Sidebar--> 上次我们讲了如何使用Flask系列来搭建静态博客,但是实际上功能仍然比较单一。为了省去大家重复造轮子的辛苦,老钱同志在今年年初发布了Jalapeno。由于偷懒原因(逃),官方文档一直未能发布。这次我们讲如何使用Jalapeno快速搭建自己的博客网站。 ![]({{image.getstart.init}}) 注:Jalapeno当前支持Mac/Linux, Windows目前尚未测试。 <!--More--> ##安装 在使用Jalapeno之前,我们需要先将所需的软件下载...
PypiClean
/Office365_REST_with_timeout-0.1.1-py3-none-any.whl/office365/directory/applications/application.py
from office365.directory.directory_object_collection import DirectoryObjectCollection from office365.directory.directory_object import DirectoryObject from office365.directory.extensions.extension_property import ExtensionProperty from office365.directory.key_credential import KeyCredential from office365.directory.pas...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/insurance.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 insurance(path): """Numbers of Car Insurance claims The data given in data frame `Insuranc...
PypiClean
/Kyak2-Void-0.2.0.tar.gz/Kyak2-Void-0.2.0/README.md
Needed apps to make this app work. <br> 1- Tkinter <br> 2- Python3 <br> 3- Xscreensaver <br> 4- Xterm is needed for installer/uninstaller <br> <br> <br> *This version is for only Void(Runit) Linux supported <br> <br> * elogind needs to be installed, it may be already installed. <br> *İf u install with PİP, app is insta...
PypiClean
/Mopidy-MusicBox-Webclient-3.1.0.tar.gz/Mopidy-MusicBox-Webclient-3.1.0/mopidy_musicbox_webclient/static/js/functionsvars.js
var mopidy var syncedProgressTimer // values for controls var play = false var random var repeat var consume var single var mute var volumeChanging var volumeSliding = false var positionChanging var initgui = true var popupData = {} // TODO: Refactor into one shared cache var songlength = 0 var artistsHtml = '' va...
PypiClean