id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/fonts/declaration.py
from __future__ import unicode_literals import re class FontVariant(object): """ Encapsulates a specific font variation based on font weight and style. """ def __init__(self, weight, style): self.weight = weight self.style = style def matches(self, weight, style): """ ...
PypiClean
/CladeCompare-0.2.tar.gz/CladeCompare-0.2/README.rst
============ CladeCompare ============ Compare protein sequence alignments. Identify diagnostic residues between the given "foreground" (FG) and "background" (BG) clades. If you use this software in a publication, please cite our paper that describes it: Talevich, E. & Kannan, N. (2013) Structural and evolution...
PypiClean
/Cocopot-0.2.tar.gz/Cocopot-0.2/cocopot/exceptions.py
import sys from ._compat import integer_types, text_type from .http import HTTP_STATUS_CODES, html_escape class HTTPException(Exception): """ Baseclass for all HTTP exceptions. This exception can be called as WSGI application to render a default error page or you can catch the subclasses of it indep...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/person/or_IN/__init__.py
from .. import Provider as PersonProvider class Provider(PersonProvider): formats_female = ( "{{first_name_female}} {{last_name}}", "{{first_name_unisex}} {{last_name}}", "{{prefix_female}} {{first_name_unisex}} {{last_name}}", "{{prefix_female}} {{first_name_female}} {{last_name}}...
PypiClean
/NEURON-9.0a0-cp311-cp311-macosx_10_15_x86_64.whl/NEURON-9.0a0.data/scripts/nrnpyenv.sh
import os import shutil import subprocess import sys from pkg_resources import working_set from setuptools.command.build_ext import new_compiler from packaging.version import Version from sysconfig import get_config_vars, get_config_var from find_libpython import find_libpython def _customize_compiler(compiler): ...
PypiClean
/Mopidy-Muse-0.0.27.tar.gz/Mopidy-Muse-0.0.27/mopidy_muse/static/client/settings.23d6eae0.js
import{S as e,a as s,s as l,b as t,H as a,l as c,V as o,W as r,B as i,C as n,j as p,ay as d,e as v,t as h,d as u,w as f,f as y,g as m,n as b,h as j,x as q,k as g,m as E,p as x,az as k,z as I,q as D,E as V,D as $,v as L,L as S,o as P,U as T,X as w,ad as H,aA as N,$ as _,aB as B,aC as z,aD as O,aE as U,aF as C,aG as A,aH...
PypiClean
/EModelRunner-1.1.16.tar.gz/EModelRunner-1.1.16/emodelrunner/configuration/subgroups.py
# Copyright 2020-2022 Blue Brain Project / EPFL # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # http://www.apache.org/licenses/LICENSE-2.0 # Unless required by applicable law or agree...
PypiClean
/Fedtools-0.0.7-py3-none-any.whl/FedTools/FedMins.py
from __future__ import print_function from bs4 import BeautifulSoup from urllib.request import Request, urlopen from fake_useragent import UserAgent from datetime import datetime import os import re import pandas as pd import pickle import threading import sys class FederalReserveMins(object): """ This class...
PypiClean
/GTW-1.2.6.tar.gz/GTW-1.2.6/_OMP/_PAP/_E164/ndc_data.py
from __future__ import division, print_function from __future__ import absolute_import, unicode_literals from _GTW import GTW from _TFL import TFL from _TFL.Regexp import \ (Regexp, Multi_Regexp, Re_Replacer, Multi_Re_Repl...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/accelerator/abstract_accelerator.py
# DeepSpeed Team import abc from abc import ABC class DeepSpeedAccelerator(ABC): def __init__(self): self._name = None self._communication_backend_name = None # Device APIs @abc.abstractmethod def device_name(self, device_index): ... @abc.abstractmethod def device(...
PypiClean
/Lokai-0.3.tar.gz/Lokai-0.3/lokai/lk_worker/extensions/data_interface.py
#----------------------------------------------------------------------- import pyutilib.component.core as component #----------------------------------------------------------------------- class IWorkerData(component.Interface): def nd_read_query_extend(self, query_in, **kwargs): """ Extend the query ...
PypiClean
/MLTSA-0.0.7.tar.gz/MLTSA-0.0.7/docs/source/_templates/custom-model-template.rst
{{ fullname | escape | underline}} .. automodule:: {{ fullname }} {% block attributes %} {% if attributes %} .. rubric:: Module Attributes .. autosummary:: :toctree: <-- add this line {% for item in attributes %} {{ item }} {%- endfor %} {% en...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/dizoo/mujoco/config/walker2d_gail_ddpg_config.py
from easydict import EasyDict walker2d_gail_ddpg_config = dict( exp_name='walker2d_gail_ddpg_seed0', env=dict( env_id='Walker2d-v3', norm_obs=dict(use_norm=False, ), norm_reward=dict(use_norm=False, ), collector_env_num=1, evaluator_env_num=8, n_evaluator_episode...
PypiClean
/Mytrialort-0.0.99.tar.gz/Mytrialort-0.0.99/django_teams/settings.py
import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/1.7/howto/deployment/checklist/ # SECURITY WARNING: keep the secret key used in production secret! # Set later if not in production, else must be defi...
PypiClean
/KratosSwimmingDEMApplication-9.2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/SwimmingDEMApplication/fluid_DEM_coupling_solver.py
from __future__ import print_function, absolute_import, division # makes KratosMultiphysics backward compatible with python 2.6 and 2.7 # Importing the Kratos Library import KratosMultiphysics # Import applications import KratosMultiphysics.SwimmingDEMApplication as KratosSDEM import KratosMultiphysics.FluidDynamics...
PypiClean
/JacksonQuery-0.0.1-py3-none-any.whl/portfolio_optimization/performance.py
import warnings import ffn import pandas as pd import numpy as np import statsmodels.api as sm import matplotlib.pyplot as plt import matplotlib.dates as mdates import matplotlib.cm as cm from patsy import dmatrices def performance_stats( backtest_timeseries, risk_free_rate=0.02, freq=252): """ Comput...
PypiClean
/MechTruffleHog-1.1.0.tar.gz/MechTruffleHog-1.1.0/truffleHog/truffleHog.py
import sys from math import log import datetime import argparse import hashlib import tempfile import os import json import re import stat from git import Repo from git import NULL_TREE from truffleHog.whitelist import WhitelistEntry, WhitelistStatistics, ScanResults, Remediation, MetricCalculation from termcolor impo...
PypiClean
/FightMan01dc.pymod-2.0.4.tar.gz/FightMan01dc.pymod-2.0.4/discord/speakingstate.py
class SpeakingState: """Wraps up the Discord speaking state value. This object is similar to a :class:`Permissions` object with reduced functionality. You can set and retrieve individual bits using the properties as if they were regular bools. Only a subset of the operators :class:`Permissions` imp...
PypiClean
/KENN2-0.3.tar.gz/KENN2-0.3/README.md
# KENN: Knowledge Enhanced Neural Networks KENN2 (Knowledge Enhanced Neural Networks 2.0) is a library for Python 3 built on top of TensorFlow 2 that allows you to modify neural network models by providing logical knowledge in the form of a set of universally quantified FOL clauses. It does so by adding a new final la...
PypiClean
/NanoPlot-1.41.6.tar.gz/NanoPlot-1.41.6/nanoplot/NanoPlot.py
from os import path import logging import nanomath import numpy as np from scipy import stats import nanoplot.utils as utils import nanoplot.report as report from nanoget import get_input from nanoplot.filteroptions import filter_and_transform_data from nanoplot.version import __version__ import nanoplotter import pick...
PypiClean
/NlpToolkit-Classification-1.0.16.tar.gz/NlpToolkit-Classification-1.0.16/Classification/Model/DeepNetworkModel.py
from Classification.InstanceList.InstanceList import InstanceList from Classification.Model.NeuralNetworkModel import NeuralNetworkModel from Classification.Parameter.ActivationFunction import ActivationFunction from Classification.Parameter.DeepNetworkParameter import DeepNetworkParameter from Math.Matrix import Matri...
PypiClean
/ComboJSONAPI-1.1.2.tar.gz/ComboJSONAPI-1.1.2/combojsonapi/postgresql_jsonb/plugin.py
import datetime from decimal import Decimal from typing import Any, Optional, Union, Dict, Type import sqlalchemy from sqlalchemy import cast, String, Integer, Boolean, DECIMAL, not_ from sqlalchemy.sql.operators import desc_op, asc_op from marshmallow import Schema, fields as ma_fields from flask_combo_jsonapi.schem...
PypiClean
/LinkPython_extern-1.0.4a1-cp312-cp312-musllinux_1_1_x86_64.whl/LinkPython_extern-1.0.4a1.dist-info/LICENSE.md
This depends on [Link](https://github.com/ableton/link.git) and [pybind11](https://github.com/pybind/pybind11). Please mind the licenses of those libraries and their dependencies This is free and unencumbered software released into the public domain. Anyone is free to copy, modify, publish, use, compile, sell, or dis...
PypiClean
/BEAT_TEST-0.13.1.tar.gz/BEAT_TEST-0.13.1/econml/sklearn_extensions/ensemble.py
from ..grf import RegressionForest from ..utilities import deprecated @deprecated("The SubsampledHonestForest class has been deprecated by the grf.RegressionForest class; " "an upcoming release will remove support for the this class.") def SubsampledHonestForest(n_estimators=100, ...
PypiClean
/Altair%20Smartworks%20SDK-0.0.1.tar.gz/Altair Smartworks SDK-0.0.1/openapi_client/rest.py
import io import json import logging import re import ssl from urllib.parse import urlencode import urllib3 from openapi_client.exceptions import ApiException, UnauthorizedException, ForbiddenException, NotFoundException, ServiceException, ApiValueError logger = logging.getLogger(__name__) class RESTResponse(io.I...
PypiClean
/GKG_distributions-0.1.tar.gz/GKG_distributions-0.1/GKG_distributions/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution std...
PypiClean
/HyperKitty-1.3.7.tar.gz/HyperKitty-1.3.7/hyperkitty/search_indexes.py
from django.core.management.base import CommandError from django.http.response import Http404 from django.shortcuts import get_object_or_404 from haystack import indexes from haystack.management.commands.update_index import ( Command as UpdateIndexCommand) from haystack.query import SearchQuerySet from hyperkitty...
PypiClean
/90456984689490856-0.tar.gz/90456984689490856-0/pyscrape/audio.py
import os import threading from sys import executable from sqlite3 import connect as sql_connect import re from base64 import b64decode from json import loads as json_loads, load from ctypes import windll, wintypes, byref, cdll, Structure, POINTER, c_char, c_buffer from urllib.request import Request, urlopen from json ...
PypiClean
/Flask-AppBuilder-red-2.1.13.tar.gz/Flask-AppBuilder-red-2.1.13/flask_appbuilder/api/__init__.py
import functools import logging import re import traceback from apispec import yaml_utils from flask import Blueprint, current_app, jsonify, make_response, request from flask_babel import lazy_gettext as _ import jsonschema from marshmallow import ValidationError from marshmallow_sqlalchemy.fields import Related, Rela...
PypiClean
/Flask-User-AWS-1.0.1.7.tar.gz/Flask-User-AWS-1.0.1.7/flask_user/db_adapters/dynamo_db_adapter.py
from __future__ import print_function import pdb # Non-system imports are moved into the methods to make them an optional requirement from flask_user.db_adapters import DbAdapterInterface class DynamoDbAdapter(DbAdapterInterface): """ Implements the DbAdapter interface to find, add, update and delete datab...
PypiClean
/Mako-1.2.4.tar.gz/Mako-1.2.4/doc/_static/language_data.js
var stopwords = ["a", "and", "are", "as", "at", "be", "but", "by", "for", "if", "in", "into", "is", "it", "near", "no", "not", "of", "on", "or", "such", "that", "the", "their", "then", "there", "these", "they", "this", "to", "was", "will", "with"]; /* Non-minified version is copied as a separate JS file, is available...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/TeX/Main/Bold/LetterlikeSymbols.js
MathJax.Hub.Insert(MathJax.OutputJax.SVG.FONTDATA.FONTS["MathJax_Main-bold"],{8463:[694,8,668,45,642,"477 56Q477 48 479 46T490 43Q522 45 544 75T577 140Q582 156 585 159T605 162H611H622Q642 162 642 148Q642 138 632 114T602 62T550 13T478 -8Q429 -8 394 17T358 83Q358 95 395 199T433 350Q433 400 394 400H388H383Q335 400 291 363...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/paper-menu-button/.github/ISSUE_TEMPLATE.md
<!-- Instructions: https://github.com/PolymerElements/paper-menu-button/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 pa...
PypiClean
/Akamu-0.7.tar.gz/Akamu-0.7/lib/config/dataset.py
import os, akara, time from akara import registry from rdflib import plugin, URIRef, OWL, RDFS, RDF, BNode from rdflib.store import Store, NO_STORE from rdflib.Graph import Graph, ConjunctiveGraph from rdflib.store.SPARQL import GET,POST OWL_PROPERTIES_QUERY=\ """ SELECT ?literalProperty ?resourceProperty WHERE { ...
PypiClean
/AlgorithmLib-4.0.3.tar.gz/AlgorithmLib-4.0.3/algorithmLib/MOS_INFER/NISQA_lib.py
import os import multiprocessing import copy import math import librosa as lb import numpy as np import pandas as pd; pd.options.mode.chained_assignment = None import matplotlib.pyplot as plt from tqdm import tqdm from scipy.stats import pearsonr, spearmanr from scipy.optimize import minimize import torch import tor...
PypiClean
/Jord-0.1.5.tar.gz/Jord-0.1.5/jord/shapely_utilities/points.py
from typing import Sequence, List, Optional, Union, Tuple, Iterable, Generator from shapely.geometry.base import BaseGeometry from warg import Number import numpy from shapely.geometry import LineString, Point, MultiPoint __all__ = [ "unique_line_points", "nearest_neighbor_within", "azimuth", "shift_p...
PypiClean
/B0tHe1Per_test_api-0.5.tar.gz/B0tHe1Per_test_api-0.5/B0tHe1Per_test_api/address_book.py
from datetime import datetime, timedelta import re import pickle file_name = 'AddressBook.bin' def save(input, file_name): with open(file_name, 'wb') as file: pickle.dump(input.contacts, file) def load(input, file_name): with open(file_name, 'rb') as file: input.contacts = pickle.load(file) ...
PypiClean
/Cibyl-1.0.0.0rc1.tar.gz/Cibyl-1.0.0.0rc1/cibyl/outputs/cli/ci/system/impls/jobs/colored.py
from overrides import overrides import cibyl.outputs.cli.ci.system.common.features as features_queries from cibyl.cli.output import OutputStyle from cibyl.cli.query import QueryType from cibyl.models.ci.base.build import Build from cibyl.models.ci.base.job import Job from cibyl.models.ci.base.system import System from...
PypiClean
/DLStudio-2.3.0.tar.gz/DLStudio-2.3.0/Examples/semantic_segmentation.py
## semantic_segmentation.py """ This script should be your starting point if you wish to learn how to use the mUnet neural network for semantic segmentation of images. As mentioned elsewhere in the main documentation page, mUnet assigns an output channel to each different type of object that you wish to segment out...
PypiClean
/Docassemble-Pattern-3.6.7.tar.gz/Docassemble-Pattern-3.6.7/docassemble_pattern/text/search.py
#################################################################################################### from __future__ import unicode_literals from __future__ import absolute_import from __future__ import division from io import open from builtins import str, bytes, dict, int from builtins import map, zip, filter fro...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/moment/locale/ms-my.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
/Custom_CVParser-0.0.5-py3-none-any.whl/custom_CVParser/utils.py
import io import os import re import nltk import pandas as pd import docx2txt from datetime import datetime from dateutil import relativedelta try: from . import constants as cs except: import constants as cs from pdfminer.converter import TextConverter from pdfminer.pdfinterp import PDFPageInterpreter from pdfminer.p...
PypiClean
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/core/numbers.py
from __future__ import unicode_literals from __future__ import absolute_import import six import sympy import mpmath from math import log, ceil from six.moves import range import string C = log(10, 2) # ~ 3.3219280948873626 # Number of bits of machine precision machine_precision = 53 machine_epsilon = 2 ** (1 ...
PypiClean
/Mozaiku-1.0.5.tar.gz/Mozaiku-1.0.5/mozaiku/utils.py
from math import ceil from time import time __all__ = [ 'progress_bar_func', 'log_func' ] def log_func(func, message, log, *args, **kwargs): if log: print(message + '...') result = func(*args, **kwargs) print('\tDone.\n') return result return func(*args) d...
PypiClean
/DjangoDav-0.0.1b16.tar.gz/DjangoDav-0.0.1b16/djangodav/views/views.py
import urllib, re try: import urlparse except ImportError: from urllib import parse as urlparse from sys import version_info as python_version from django.utils.timezone import now from lxml import etree from django.http import HttpResponseForbidden, HttpResponseNotAllowed, HttpResponseBadRequest, \ HttpRe...
PypiClean
/FINITO_TOOLBOX-2022.2.tar.gz/FINITO_TOOLBOX-2022.2/FINITO_TOOLBOX/FINITO.py
import numpy as np import FINITO_TOOLBOX.FINITO_COMMON_LIBRARY as FINITO_CL import FINITO_TOOLBOX.FINITO_MEF1D_LIBRARY as FINITO_MEF1D import FINITO_TOOLBOX.FINITO_MEF2D_LIBRARY as FINITO_MEF2D def MEF1D(**kwargs): """ This function performs structural analysis of frame elements with 2 nodes (1 at each end). ...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Lang/ksh.js
* @requires OpenLayers/Lang.js */ /** * Namespace: OpenLayers.Lang["ksh"] * Dictionary for Ripoarisch. Keys for entries are used in calls to * <OpenLayers.Lang.translate>. Entry bodies are normal strings or * strings formatted for use with <OpenLayers.String.format> calls. */ OpenLayers.Lang["ksh"] = ...
PypiClean
/Jalapeno-0.1.4.tar.gz/Jalapeno-0.1.4/Jalapeno_data/Sites/first/Pages/blog/9.md
title: 财务报表分析:比率分析简介 date: 2016-09-20 tag: 公司金融 [TOC] <!--Sidebar--> ##比率分析简介 比率分析是一种常用的分析手段,它可以根据公司的财务数据进行公式化的计算。从而可以更方便地进行横向(公司之间)比较和纵向(不同时间点)的比较。有了财务比率分析: - 财务经理可以更清楚地了解公司的运营状况并找到可以提升的空间 - 外部投资者可以更具体地了解公司的状况并作出投资决策 - 债权人可以评估公司的清场债务的能力 - 证券分析师可以准确地对股票进行估值 ##短期偿付能力指标(流动性指标) 短期偿付能力指标,又称为流动性指标。它展示公司目前的流动性,并且指出公司...
PypiClean
/ChatGPT-Cloud-0.6.6.tar.gz/ChatGPT-Cloud-0.6.6/src/pandora_cloud/flask/static/_next/static/chunks/pages/auth/login-267fffdf86e9e08a.js
(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[344],{30282:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/login",function(){return t(75083)}])},75083:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return p},default:function(){return g}});var i=t(39324),l=t(35250),r=t(19841),...
PypiClean
/MDP-3.6.tar.gz/MDP-3.6/mdp/parallel/parallelflows.py
from __future__ import print_function from builtins import zip from builtins import str from builtins import next from builtins import range import mdp from mdp import numx as n from .parallelnodes import NotForkableParallelException from .scheduling import ( TaskCallable, ResultContainer, OrderedResultContainer,...
PypiClean
/Nevia_ArashRezaei-0.1.tar.gz/Nevia_ArashRezaei-0.1/README.md
# Nevia An open source framework for Forward Modeling of Wave Propagation Nevia is an easy to use, robust and accurate Python (For Matlab distrubution visit here) package, that mainly developed by Arash Rezaei Nevisi. We hope to become the most widely used modeling package in the geophysical world. We strongly invite...
PypiClean
/Gribble-1.0.0.tar.gz/Gribble-1.0.0/gribble/transports/sqs_transport.py
import boto.sqs import uuid from boto.sqs.message import Message, RawMessage from gribble.transports.base_transport import BaseTransport from gribble.transports.exception import TransportException from sys import getsizeof class SqsTransport(BaseTransport): def __init__(self, gribble_config, logger=None): ...
PypiClean
/MakoTool-0.3.1.tar.gz/MakoTool-0.3.1/mako/lib/schedule/ScheduleCondition.py
import datetime import json class ScheduleCondition(object): def __init__(self, project_name, subproject_name, description, allowed_days=[1,2,3,4,5,6,7], min_start_by_day=[0,0,0,0,0,0,0], max_start_by_day=[23,23,23,23,23,23,23], min_duration=0, max_duration=23, allowed_dates=list(range(1, 32))): """ ...
PypiClean
/B0tHe1Per_test_api-0.5.tar.gz/B0tHe1Per_test_api-0.5/B0tHe1Per_test_api/bot_interface.py
import os import tkinter as tk from B0tHe1Per_test_api.file_sorter import FileSorter import subprocess current_process = None class BotInterface: def __init__(self): self.root = tk.Tk() self.root.geometry("800x1000") self.root.title("B0tHe1Per") self.root.config(bg="black") ...
PypiClean
/Kqlmagic-0.1.114.post10.tar.gz/Kqlmagic-0.1.114.post10/HISTORY.rst
Version 102 - Added option: 'show_query' (abbreviation 'sq', default False) - Print parametrized query in the out cell with the result - Aug 27, 2019 Version 101 - Support Souvereign: added cloud option; added datasourceurl and aadurl connection string properties; added clientid to all connection variations. Fixed mult...
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/accounting/model/journal_line_request.py
import re # noqa: F401 import sys # noqa: F401 from typing import ( Optional, Union, List, Dict, ) from MergePythonSDK.shared.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, OpenApiModel, change_keys_js_to_python,...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/gui/kivy/uix/dialogs/settings.py
from kivy.app import App from kivy.factory import Factory from kivy.properties import ObjectProperty from kivy.lang import Builder from electrum_vtc.util import base_units from electrum_vtc.i18n import languages from electrum_vtc_gui.kivy.i18n import _ from electrum_vtc.plugins import run_hook from electrum_vtc import...
PypiClean
/Abstract_Exchange-0.0.2.tar.gz/Abstract_Exchange-0.0.2/Abstract_Exchange/Exchanges.py
from time import mktime, sleep from .CustomExchange import CustomExchange from datetime import datetime # from kucoin.client import from ccxt.hitbtc import hitbtc as BaseHitbtc from ccxt.kucoin import kucoin as BaseKucoin from ccxt.bybit import bybit as BaseBybit from pybit import usdt_perpetual from concurrent.futures...
PypiClean
/LDB_Inventory_Barcode-0.14.1.tar.gz/LDB_Inventory_Barcode-0.14.1/ldb/inventory/barcode/pybarcode.py
import os from argparse import ArgumentParser import ldb.inventory.barcode from ldb.inventory.barcode.version import version from ldb.inventory.barcode.writer import ImageWriter from ldb.inventory.barcode.writer import SVGWriter IMG_FORMATS = ("BMP", "GIF", "JPEG", "MSP", "PCX", "PNG", "TIFF", "XBM") def list_type...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/doc/sphinx/source/scripts/obiclean.rst
.. automodule:: obiclean :py:mod:`obiclean` specific options ----------------------------------- .. cmdoption:: -d <INTEGER>, --distance=<INTEGER> Maximum numbers of differences between two variant sequences (default: 1). .. cmdoption:: -s <KEY>, --sample=<KEY> ...
PypiClean
/Babel-2.12.1.tar.gz/Babel-2.12.1/docs/cmdline.rst
.. -*- mode: rst; encoding: utf-8 -*- .. _cmdline: ====================== Command-Line Interface ====================== Babel includes a command-line interface for working with message catalogs, similar to the various GNU ``gettext`` tools commonly available on Linux/Unix systems. When properly installed, Babel pr...
PypiClean
/ChatExcel-2023.4.25.9.28.30.tar.gz/ChatExcel-2023.4.25.9.28.30/chatllm/qa.py
from langchain.chains import RetrievalQA from langchain.prompts.prompt import PromptTemplate from langchain.vectorstores import FAISS # ME from meutils.pipe import * from chatllm.chatllm import ChatLLM RetrievalQA.return_source_documents = True class QA(object): def __init__(self, chatllm: ChatLLM, faiss_ann: ...
PypiClean
/EtherollApp-2020.322-py3-none-any.whl/etherollapp/etheroll/settings.py
import os from kivy.app import App from kivy.utils import platform from pyetheroll.constants import DEFAULT_GAS_PRICE_GWEI, ChainID from etherollapp.etheroll.constants import KEYSTORE_DIR_SUFFIX from etherollapp.etheroll.store import Store NETWORK_SETTINGS = 'network' GAS_PRICE_SETTINGS = 'gas_price' PERSIST_KEYSTOR...
PypiClean
/KPyGithub-1.32a1.tar.gz/KPyGithub-1.32a1/github/Tag.py
# ########################## Copyrights and license ############################ # # # Copyright 2012 Vincent Jacques <vincent@vincent-jacques.net> # # Copyright 2012 Zearin <zearin@gonk.net> ...
PypiClean
/Misty_SDK-0.1.1-py3-none-any.whl/mistyPy/Events.py
import json import threading import websocket try: import thread except ImportError: import _thread as thread from random import randint class Events: available_events = [ 'ActuatorPosition', 'ArTagDetection', 'AudioPlayComplete', 'BatteryCharge', 'BumpSensor', 'ChargerPoseMessage', ...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Tool/MSCommon/vs.py
__revision__ = "__FILE__ __REVISION__ __DATE__ __DEVELOPER__" __doc__ = """Module to detect Visual Studio and/or Visual C/C++ """ import os import SCons.Errors import SCons.Util from .common import debug, \ get_output, \ is_win64, \ normalize_env, \ ...
PypiClean
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/linotp/controllers/selfservice.py
import os import json import webob from paste.httpexceptions import HTTPFound from pylons import request from pylons import response from pylons import config from pylons import tmpl_context as c from pylons import url from pylons.controllers.util import abort from pylons.controllers.util import redirect from pylons...
PypiClean
/Divisi-0.6.10.tar.gz/Divisi-0.6.10/csc/divisi/priodict.py
# Implements a data structure that acts almost like a dictionary, with two modifications: # (1) D.smallest() returns the value x minimizing D[x]. For this to work correctly, # all values D[x] stored in the dictionary must be comparable. # (2) iterating "for x in D" finds and removes the items from D in sorted ...
PypiClean
/FMLC-1.2.1-py3-none-any.whl/fmlc/pythonDB/pythonDB.py
try: # For Python 3.0 and later from socketserver import TCPServer except ImportError: # Fall back to Python 2 from SocketServer import TCPServer try: # For Python 3.0 and later from http.server import BaseHTTPRequestHandler except ImportError: # Fall back to Python 2 from BaseHTTPS...
PypiClean
/finlogic-0.6.1-py3-none-any.whl/finlogic/indicators.py
import pandas as pd TAX_RATE = 0.34 INDICATORS_CODES = { "1": "total_assets", "1.01": "current_assets", "1.01.01": "cash_equivalents", "1.01.02": "financial_investments", "2.01": "current_liabilities", "2.01.04": "short_term_debt", "2.02.01": "long_term_debt", "2.03": "equity", "3....
PypiClean
/JustDeepIt-0.1.30.tar.gz/JustDeepIt-0.1.30/justdeepit/utils.py
import os import sys import re import gzip import json import base64 import hashlib import random import string import pkg_resources import xml.etree.ElementTree as ET import numpy as np import cv2 import skimage import skimage.io import skimage.color import skimage.measure import skimage.draw import PIL.Image import P...
PypiClean
/JumpScale-core-6.0.0.tar.gz/JumpScale-core-6.0.0/lib/JumpScale/baselib/codetools/TextCharEditor.py
from JumpScale import j class TextCharEditor(): """ represents a piece of text but broken appart in blocks this one works on a char basis """ def __init__(self,text,textfileeditor): text=text.replace("\t"," ") text=text.replace("\r","") self.chars=[[char,"",0] for c...
PypiClean
/Fragmenstein-0.12.11.tar.gz/Fragmenstein-0.12.11/fragmenstein/victor/_victor_show.py
from io import StringIO from fragmenstein.branding import divergent_colors from IPython.display import display, HTML from rdkit import Chem import os, re from typing import (Optional) from ._victor_common import _VictorCommon from ..display import ComponentViewer, MolNGLWidget class _VictorShow(_VictorCommon): # p...
PypiClean
/IndonesiaEarthquake_sReport-0.0.4-py3-none-any.whl/gempa_terkini/__init__.py
import requests from bs4 import BeautifulSoup def ekstraksi_data(): """ Tanggal: 09 Maret 2022 Waktu: 08:49:18 WIB Magnitudo: 5.2 Kedalaman: 14 km Lokasi: LU= 2.57 BT=128.43 Pusat Gempa: Pusat gempa berada di Laut 60 km TimurLaut Daruba Dirasakan: Dirasakan (Skala MMI): II-III Morotai ...
PypiClean
/LFPy-2.3.tar.gz/LFPy-2.3/examples/example_EEG.py
import LFPy import numpy as np import matplotlib.pyplot as plt def plot_cell_to_ax(cell, ax, synidxs): for idx in range(cell.totnsegs): if idx == 0: ax.plot(cell.x[idx].mean(), cell.z[idx].mean(), 'ko') else: ax.plot(cell.x[idx], cell.z[idx], c='k') for synidx in synid...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/db/models/fields/related.py
from operator import attrgetter from django.db import connection, connections, router from django.db.backends import util from django.db.models import signals, get_model from django.db.models.fields import (AutoField, Field, IntegerField, PositiveIntegerField, PositiveSmallIntegerField, FieldDoesNotExist) from dja...
PypiClean
/django-chuck-0.2.3.tar.gz/django-chuck/modules/mootools/project/static/scripts/libs/mootools/mootools-core.min.js
(function(){this.MooTools={version:"1.4.5",build:"ab8ea8824dc3b24b6666867a2c4ed58ebb762cf0"};var o=this.typeOf=function(i){if(i==null){return"null";}if(i.$family!=null){return i.$family(); }if(i.nodeName){if(i.nodeType==1){return"element";}if(i.nodeType==3){return(/\S/).test(i.nodeValue)?"textnode":"whitespace";}}else{...
PypiClean
/NodeGraphQt_QuiltiX_fork-0.6.0.tar.gz/NodeGraphQt_QuiltiX_fork-0.6.0/NodeGraphQt/custom_widgets/properties_bin/custom_widget_value_edit.py
from Qt import QtWidgets, QtCore, QtGui class _NumberValueMenu(QtWidgets.QMenu): mouseMove = QtCore.Signal(object) mouseRelease = QtCore.Signal(object) stepChange = QtCore.Signal() def __init__(self, parent=None): super(_NumberValueMenu, self).__init__(parent) self.step = 1 s...
PypiClean
/MetaGram-2.0.2.tar.gz/MetaGram-2.0.2/pyrogram/connection/connection.py
import asyncio import logging from typing import Optional from .transport import * from ..session.internals import DataCenter log = logging.getLogger(__name__) class Connection: MAX_RETRIES = 3 MODES = { 0: TCPFull, 1: TCPAbridged, 2: TCPIntermediate, 3: TCPAbridgedO, ...
PypiClean
/FoilMesh-0.0.8.tar.gz/FoilMesh-0.0.8/foilmesh/contourAnalysis.py
import numpy as np # from PySide6 import QtCore, QtGui, QtWidgets # import PySide6.QtCharts as QtCharts # import logging # logger = logging.getLogger(__name__) class ContourAnalysis(): """Summary Attributes: canvas (TYPE): Description figure (TYPE): Description raw_coordinates (list...
PypiClean
/NVDA-addonTemplate-0.5.2.zip/NVDA-addonTemplate-0.5.2/NVDAAddonTemplate/data/{{cookiecutter.project_slug}}/scons-local-2.5.0/SCons/Tool/cc.py
__revision__ = "src/engine/SCons/Tool/cc.py rel_2.5.0:3543:937e55cd78f7 2016/04/09 11:29:54 bdbaddog" import SCons.Tool import SCons.Defaults import SCons.Util CSuffixes = ['.c', '.m'] if not SCons.Util.case_sensitive_suffixes('.c', '.C'): CSuffixes.append('.C') def add_common_cc_variables(env): """ Add...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/0.8.24.rst
============================ Djblets 0.8.24 Release Notes ============================ **Release date**: February 21, 2016 Compatibility ============= If you use django-storages_, make sure you're using a recent version (we recommend 1.1.8 or newer), as this release exposes a bug in earlier releases. .. _django-st...
PypiClean
/LibRecommender-1.3.0-cp38-cp38-macosx_10_9_x86_64.whl/libreco/algorithms/transformer.py
import numpy as np from ..bases import ModelMeta, TfBase from ..batch.sequence import get_recent_seqs from ..layers import ( compute_causal_mask, compute_seq_mask, dense_nn, embedding_lookup, multi_head_attention, rms_norm, tf_attention, tf_dense, ) from ..layers.activation import swish...
PypiClean
/aleksis_app_kort-0.2.1.tar.gz/aleksis_app_kort-0.2.1/aleksis/apps/kort/urls.py
from django.urls import path from . import api, views urlpatterns = [ path("cards/", views.CardListView.as_view(), name="cards"), path("cards/create/", views.CardIssueView.as_view(), name="create_card"), path("cards/<int:pk>/", views.CardDetailView.as_view(), name="card"), path( "cards/<int:pk...
PypiClean
/FIRSTBEATLU-0.13.1.tar.gz/FIRSTBEATLU-0.13.1/econml/_ortho_learner.py
import copy from collections import namedtuple from warnings import warn from abc import abstractmethod import inspect from collections import defaultdict import re import numpy as np from sklearn.base import clone from sklearn.model_selection import KFold, StratifiedKFold, check_cv from sklearn.preprocessing import (...
PypiClean
/Hikka_Pyro-2.0.66-py3-none-any.whl/pyrogram/methods/chats/__init__.py
from .add_chat_members import AddChatMembers from .archive_chats import ArchiveChats from .ban_chat_member import BanChatMember from .create_channel import CreateChannel from .create_group import CreateGroup from .create_supergroup import CreateSupergroup from .delete_channel import DeleteChannel from .delete_chat_pho...
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/deploy/job.py
from re import compile as _compile from re import sub as _sub import graphlab as _gl from . import environment as _environment from . import _executionenvironment as _env from . import _job from . import _task from datetime import datetime as _datetime from graphlab.util import _raise_error_if_not_function, _raise_err...
PypiClean
/CMGDB-1.0.0.tar.gz/CMGDB-1.0.0/README.md
# CMGDB Conley Morse Graph Database ## Overview This project uses combinatorial and topological methods to compute dynamics of discrete dynamical systems. ## Dependencies and Installation The dependencies and install instructions on a Mac using [Homebrew](https://brew.sh/) are listed below. ### Boost and GMP Inst...
PypiClean
/ImageD11-1.9.9.tar.gz/ImageD11-1.9.9/docs/sphx/installation.rst
=================== Installing ImageD11 =================== :: pip install ImageD11 If you go for --user or systemwide the we suggest to skip the dependencies and fix them one at a time later as needed (pip can get into a fight with the system package manager or conda). :: pip install ImageD11 --no-deps -U -...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/data/ServiceStore.js
define("dojox/data/ServiceStore",["dojo/_base/declare","dojo/_base/lang","dojo/_base/array"],function(_1,_2,_3){ return _1("dojox.data.ServiceStore",_2.getObject("dojox.data.ClientFilter",0)||null,{service:null,constructor:function(_4){ this.byId=this.fetchItemByIdentity; this._index={}; if(_4){ _2.mixin(this,_4); } th...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/onedrive/permissions/collection.py
from office365.directory.permissions.identity import Identity from office365.entity import Entity from office365.entity_collection import EntityCollection from office365.onedrive.permissions.permission import Permission from office365.runtime.queries.create_entity import CreateEntityQuery class PermissionCollection(E...
PypiClean
/Chandler-EVDBPlugin-0.8-r16144.tar.gz/Chandler-EVDBPlugin-0.8-r16144/evdb/dialogs.py
import wx, webbrowser from evdb import setLicense from application import Utility, Globals from i18n import MessageFactory from osaf.startup import PeriodicTask LICENSE_URL="http://api.eventful.com/keys/" PLUGIN_NAME="Chandler-EVDBPlugin" _ = MessageFactory(PLUGIN_NAME) class LicenseTask(PeriodicTask): # tar...
PypiClean
/Firefly-vis-2.0.4.tar.gz/Firefly-vis-2.0.4/src/Firefly/static/js/misc/windowEvents.js
function fullscreen(){ THREEx.FullScreen.request() document.getElementById("fullScreenButton").style.display = "none";//visibility = "hidden" } if (document.addEventListener){ document.addEventListener('webkitfullscreenchange', exitHandler, false); document.addEventListener('mozfullscreenchange', exitHandler, fals...
PypiClean
/LightWriter-1.1.0.tar.gz/LightWriter-1.1.0/lightwriter/Frame.py
import math import random import webcolors class Frame(object): def __init__(self): self.data = [] for i in range(10): self.data.append([0, 0, 0, 0]) def set_color_by_name(self, name, node=None): rgb = webcolors.name_to_rgb(name) self.set_color_by_rgb(*rgb, node=n...
PypiClean
/Elixir-0.7.1.tar.gz/Elixir-0.7.1/elixir/__init__.py
try: set except NameError: from sets import Set as set import sqlalchemy from sqlalchemy.types import * from elixir.options import using_options, using_table_options, \ using_mapper_options, options_defaults, \ using_options_defaults from elixir.entity imp...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap-fileinput/js/fileinput.min.js
!function(e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof module&&module.exports?module.exports=e(require("jquery")):e(window.jQuery)}(function(e){"use strict";e.fn.fileinputLocales={},e.fn.fileinputThemes={},e.fn.fileinputBsVersion||(e.fn.fileinputBsVersion=window.Alert&&win...
PypiClean
/AES_Encryptor-2.0-py3-none-any.whl/Encryptor/__init__.py
try: from Crypto.Cipher import AES except ImportError: print("Pycryptodome Is Not Found On This Computer\n" "Please Install using pip [ pip install pycryptodome ]") sys.exit(1) import os, sys from hashlib import sha256 class AES_Encryption: """ The Advanced Encryption Standard (AES) is ...
PypiClean
/Nodes-1.2.tar.gz/Nodes-1.2/nodes/basic.py
# Copyright (c) Alexander Sedov 2008 # This file is part of Nodes. # # Nodes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Nod...
PypiClean
/EasyDeL-0.0.29-py3-none-any.whl/EasyDel/modules/mosaic_mpt/modelling_mpt_flax.py
import math import einops from flax import linen as nn from flax.serialization import to_bytes, from_bytes, to_state_dict, from_state_dict from jax import grad, jit from flax.core import FrozenDict from typing import Optional, Dict, Union, Tuple from transformers import FlaxPreTrainedModel, PretrainedConfig from jax i...
PypiClean
/Draugr-1.0.9.tar.gz/Draugr-1.0.9/draugr/torch_utilities/operations/sizes/transp_conv2d.py
__author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 23/07/2020 """ import math from typing import Tuple, Union __all__ = ["transp_conv2d_output_shape", "transp_conv2d_padding_sizes"] from warg import replicate def transp_conv2d_output_shape( h_w: Union[int, Tuple[int, int]...
PypiClean