id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/AS-Object_models-2.3.9.tar.gz/AS-Object_models-2.3.9/as_models/analytics/big_query_staging.py
from google.cloud import bigquery import pandas as pd import jmespath, os, logging from datetime import datetime,date, timedelta logger = logging.getLogger('ColorOrchids_DataStaging') class DataStaging(object): ''' The purpose of this class is to take an object that represents a json object and call the ...
PypiClean
/DjangoKit-0.13.tar.gz/DjangoKit-0.13/djangokit/utils/deep.py
"""Модуль, помогающий обрабатывать глубоко вложенные структуры. """ from types import GeneratorType def split_field(field): """Разбивка на поля.""" if not isinstance(field, (list, tuple)): return field.split('.') fields = [] for f in field: if not isinstance(f, (list, tuple)): ...
PypiClean
/DendroPy_calver-2023.330.2-py3-none-any.whl/dendropy/legacy/seqsim.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
/Flask-AceEditor-1.0.7.tar.gz/Flask-AceEditor-1.0.7/flask_aceeditor/static/js/ext-language_tools.min.js
define("ace/snippets",["require","exports","module","ace/lib/dom","ace/lib/oop","ace/lib/event_emitter","ace/lib/lang","ace/range","ace/range_list","ace/keyboard/hash_handler","ace/tokenizer","ace/clipboard","ace/editor"],function(e,r,t){"use strict";function i(e){e=(new Date).toLocaleString("en-us",e);return 1==e.leng...
PypiClean
/Mopidy-AudioAddict-0.2.7.tar.gz/Mopidy-AudioAddict-0.2.7/mopidy_audioaddict/actor.py
from __future__ import unicode_literals import logging import pykka from mopidy import backend from mopidy.models import Ref, Track from . import client, translator logger = logging.getLogger(__name__) def format_proxy(scheme, username, password, hostname, port): # Format Proxy URL if hostname: # ...
PypiClean
/EnigmaOPTestop-0.0.6.tar.gz/EnigmaOPTestop-0.0.6/src/enigmaop2/convert.py
asciinumlist=[] asciicharlist=[] asciicharlist=['¡', '¢', '£', '¤', '¥', '¦', '§', '¨', '©', 'ª', '«', '¬', 'Æ', '®', '¯', '°', '±', '²', '³', '´', 'µ', '¶', '·', '¸', '¹', 'º', '»', '¼', '½', '¾', '¿', 'À', ' ', '!', '"', '#', '$', '%', '&', "'", '(', ')', '*', '+', ',', '-', '.', '/', '0', '1', '2', '3', '4', '5', '6...
PypiClean
/MIAvisual-0.0.6-py3-none-any.whl/matplotlib/backend_managers.py
from matplotlib import _api, cbook, widgets import matplotlib.backend_tools as tools class ToolEvent: """Event for tool manipulation (add/remove).""" def __init__(self, name, sender, tool, data=None): self.name = name self.sender = sender self.tool = tool self.data = data cla...
PypiClean
/ConceptNet-5.7.0.tar.gz/ConceptNet-5.7.0/conceptnet5/vectors/evaluation/compare.py
import numpy as np import pandas as pd from conceptnet5.vectors.evaluation import analogy, story, wordsim from conceptnet5.vectors.formats import ( load_fasttext, load_glove, load_hdf, load_word2vec_bin, save_hdf, ) # The filename of Turney's SAT evaluation data, which cannot be distributed # with...
PypiClean
/HarlRing-1.0.0-py3-none-any.whl/harlring/sse_cloud/sse_cloud_util.py
import os import sys from loguru import logger from harlring.request.request_util import RequestUtil class PubCloudTool(object): def __init__(self, cloud_url, username, password): cloud_instance = {'cloud_url': cloud_url, 'username': username, 'password': password} self._cloud_url = cloud_url ...
PypiClean
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/so_ET.py
languages={'so': 'Soomaali'} countries={'BD': 'Bangaala-Deesh', 'BE': 'Beljiyam', 'BA': 'Boosniya Heersigoviina', 'BB': 'Baarbadoos', 'BH': 'Baxrayn', 'BJ': 'Beniin', 'JM': 'Jameyka', 'JO': 'Urdun', 'BR': 'Braasiil', 'RU': 'Ruush', 'RO': 'Rumaaniya', 'GR': 'Giriigga', 'JP': 'Jabbaan', 'GD': 'Giriinaada', 'GN': 'Gini'...
PypiClean
/MTGProxyPrinter-0.25.0.tar.gz/MTGProxyPrinter-0.25.0/mtg_proxy_printer/downloader_base.py
# 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, either version 3 of the License, or # (at your option) any later version. # This program is distributed in the hope that it will be useful, # bu...
PypiClean
/MinistryOfPackages-0.9.5.tar.gz/MinistryOfPackages-0.9.5/bin/ministry_server.py
# PYTHON BUILTIN MODULES try: import importlib except ImportError: # Python < 2.7 importlib = None import logging import multiprocessing import optparse import os from os.path import dirname, abspath, realpath import signal import sys import time import yaml # THIRD PARTY MODULES # Redis will be implemen...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/extensions/a11y/auto-collapse.js
!function(c) { var s = c.config.menuSettings, r = {}, t = MathJax.Ajax.config.path; t.a11y || (t.a11y = c.config.root + "/extensions/a11y"); var l = MathJax.Extension["auto-collapse"] = { version: "1.6.0", config: c.CombineConfig("auto-collapse", { disabled: !1 }), ...
PypiClean
/Falderal-0.14.tar.gz/Falderal-0.14/src/falderal/objects.py
import codecs import os import re from subprocess import Popen, PIPE from tempfile import mkstemp # Python 2/3 try: unicode = unicode except NameError: unicode = str try: from shlex import quote as shlex_quote except ImportError: from pipes import quote as shlex_quote # Note: the __str__ method of al...
PypiClean
/MokaPlayer-0.8.5.7.tar.gz/MokaPlayer-0.8.5.7/mokaplayer/core/m3u_parser.py
import logging import pathlib class M3uParser: """Represent a list of path or url (media file) loaded from a M3U file Properties: location: A string representing the location of the playlist File name: A string representing the name of the file """ def __init__(self, location): ...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/yaml/index.d.ts
import { CST } from './parse-cst' import { AST, Alias, Collection, Merge, Node, Scalar, Schema, YAMLMap, YAMLSeq } from './types' import { Type, YAMLError, YAMLWarning } from './util' export { AST, CST } export { default as parseCST } from './parse-cst' /** * `yaml` defines document-specific option...
PypiClean
/Amipy-1.0.2.tar.gz/Amipy-1.0.2/amipy/crawl/requester/media.py
import os import asyncio from amipy import Response from amipy.BaseClass import CrawlRequester from amipy.util.http import send_async_http from amipy.util.file import get_file_size from amipy.log import getLogger class MediaRequester(CrawlRequester): _down_type = 'media' logger = getLogger(__name__) asy...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/lib/js/collapse.js
+function ($) { 'use strict'; // COLLAPSE PUBLIC CLASS DEFINITION // ================================ var Collapse = function (element, options) { this.$element = $(element) this.options = $.extend({}, Collapse.DEFAULTS, options) this.$trigger = $('[data-toggle="collapse"][href="#...
PypiClean
/BotEXBotBase-3.1.3.tar.gz/BotEXBotBase-3.1.3/discord/embeds.py
import datetime from . import utils from .colour import Colour class _EmptyEmbed: def __bool__(self): return False def __repr__(self): return "Embed.Empty" EmptyEmbed = _EmptyEmbed() class EmbedProxy: def __init__(self, layer): self.__dict__.update(layer) def __len__(sel...
PypiClean
/IHEWAcollect-0.0.31.tar.gz/IHEWAcollect-0.0.31/docs/api/IHEWAcollect.templates.NASA.rst
IHEWAcollect.templates.NASA package =================================== Submodules ---------- IHEWAcollect.templates.NASA.CSR module -------------------------------------- .. automodule:: IHEWAcollect.templates.NASA.CSR :members: :undoc-members: :show-inheritance: IHEWAcollect.templates.NASA.GFZ module ---...
PypiClean
/Cibyl-1.0.0.0rc1.tar.gz/Cibyl-1.0.0.0rc1/cibyl/cli/query.py
from enum import IntFlag, auto from typing import Optional from cibyl.utils.dicts import subset class QueryType(IntFlag): """Defines the hierarchy level at which a query is meant to be performed. """ NONE = 0 """No data from host is requested.""" FEATURES = auto() """Retrieve data using featu...
PypiClean
/ABSmartly-0.1.4-py3-none-any.whl/sdk/client.py
from sdk.client_config import ClientConfig from sdk.http_client import HTTPClient from sdk.json.publish_event import PublishEvent class Client: def __init__(self, config: ClientConfig, http_client: HTTPClient): self.serializer = config.serializer self.deserializer = config.deserializer se...
PypiClean
/Gaus_Bio_distributions-1.0.tar.gz/Gaus_Bio_distributions-1.0/Gaus_Bio_distributions/Gaussiandistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Gaussian(Distribution): """ Gaussian distribution class for calculating and visualizing a Gaussian distribution. Attributes: mean (float) representing the mean value of the distribution stdev (float) representing ...
PypiClean
/ImageD11-1.9.9.tar.gz/ImageD11-1.9.9/scripts/makemap.py
from __future__ import print_function from ImageD11.indexing import readubis, write_ubi_file from ImageD11.refinegrains import refinegrains import ImageD11.refinegrains from ImageD11 import ImageD11options import sys, os, argparse def makemap(options): try: if options.tthrange is None: tthr...
PypiClean
/EIVideo-0.1a0.tar.gz/EIVideo-0.1a0/paddlevideo/modeling/backbones/aspp_manet.py
import paddle import paddle.nn as nn import paddle.nn.functional as F from EIVideo.paddlevideo.utils.manet_utils import kaiming_normal_ class _ASPPModule(nn.Layer): def __init__(self, inplanes, planes, kernel_size, padding, dilation, BatchNorm): super(_ASPPModule, self).__init__() ...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/bill_view_response_py3.py
from msrest.serialization import Model class BillViewResponse(Model): """BillViewResponse. :param bill_id: The bill identifier :type bill_id: int :param void: Indicates if the bill has been voided :type void: bool :param from_vendor: Indicates if the bill is from a vendor :type from_vend...
PypiClean
/MPInterfaces_Latest_Test-1.0.2.tar.gz/MPInterfaces_Latest_Test-1.0.2/mpinterfaces/mat2d/magnetism/startup.py
import os from pymatgen.io.vasp.inputs import Incar from mpinterfaces import QUEUE_SYSTEM from mpinterfaces.utils import get_magmom_string from mpinterfaces.mat2d.stability import INCAR_DICT __author__ = "Michael Ashton" __copyright__ = "Copyright 2017, Henniggroup" __maintainer__ = "Michael Ashton" __email__ = "ash...
PypiClean
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/util/requests.py
import sys import warnings from contextlib import contextmanager from typing import Any, Generator, Union from urllib.parse import urlsplit import requests import sphinx from sphinx.config import Config try: from requests.packages.urllib3.exceptions import SSLError except ImportError: # python-requests packa...
PypiClean
/FLAML-2.0.2-py3-none-any.whl/flaml/automl/task/time_series_task.py
import logging import time from typing import List import pandas as pd import numpy as np from scipy.sparse import issparse from sklearn.model_selection import ( GroupKFold, TimeSeriesSplit, ) from flaml.automl.ml import get_val_loss, default_cv_score_agg_func from flaml.automl.time_series.ts_data import ( ...
PypiClean
/Chemistry_NewtonRaphson-0.1.3.tar.gz/Chemistry_NewtonRaphson-0.1.3/Chemistry_NewtonRaphson/Chemistry_NewtonRaphson.py
from sympy import * import numpy as np e1 = str('Peng-Robinson') e2 = str('Redlich-Kwong') e3 = str('van der Waals') def mathSolver(sel, r, t, p, a, b): #in this function, we have to define some parameters: # -sel corresponds to which equation will de solved(1 for Peng-Robinson, 2 for Redlich-Kwong, and 3 # for van...
PypiClean
/Amara-2.0.0a6.tar.bz2/Amara-2.0.0a6/lib/thirdparty/html5lib/inputstream.py
import codecs import re import types import sys from constants import EOF, spaceCharacters, asciiLetters, asciiUppercase from constants import encodings, ReparseException import utils #Non-unicode versions of constants for use in the pre-parser spaceCharactersBytes = frozenset([str(item) for item in spaceCharacters])...
PypiClean
/Imgservice-0.1.tar.gz/Imgservice-0.1/imgservice/loaders/s3.py
import io import logging from contextlib import contextmanager from urllib.parse import urlparse import boto3 from botocore.exceptions import ClientError from werkzeug.exceptions import Forbidden, NotFound logger = logging.getLogger(__name__) class S3BucketLoader: def __init__(self, *, aws_acce...
PypiClean
/OBP_security_pillar_1-0.0.3-py3-none-any.whl/OBP_security_pillar_1/__init__.py
from boto3 import session import logging logging.basicConfig(level=logging.INFO) logger = logging.getLogger() __author__ = 'Dheeraj Banodha' __version__ = '0.0.3' class aws_client: def __init__(self, **kwargs): """ @param str aws_access_key_id: AWS Access Key ID @param str aws_secret_ac...
PypiClean
/FINE-2.2.2.tar.gz/FINE-2.2.2/docs/source/sourceCodeDocumentation/components/sourceSinkClassDoc.rst
####################### Source and Sink classes ####################### .. |br| raw:: html <br /> Sources and sink transfer commodities into and out of the energy system. **Source class description:** .. automodule:: sourceSink .. autoclass:: Source :members: :member-order: bysource .. automethod:: __...
PypiClean
/Bempp-cl-0.3.1.tar.gz/Bempp-cl-0.3.1/bempp/core/opencl_assemblers.py
import numpy as _np import pyopencl as _cl WORKGROUP_SIZE_GALERKIN = 16 WORKGROUP_SIZE_POTENTIAL = 128 def singular_assembler( device_interface, operator_descriptor, grid, domain, dual_to_range, test_points, trial_points, quad_weights, test_elements, trial_elements, test_o...
PypiClean
/NlpToolkit-Corpus-1.0.25.tar.gz/NlpToolkit-Corpus-1.0.25/Corpus/SentenceSplitter.py
from abc import abstractmethod import re from Corpus.Sentence import Sentence from Dictionary.Word import Word from Language.Language import Language class SentenceSplitter: SEPARATORS = "\n()[]{}\"'\u05F4\uFF02\u055B’”‘“–­​ &  " SENTENCE_ENDERS = ".?!…" PUNCTUATION_CHARACTERS = ",:;‚" APOSTROPHES =...
PypiClean
/MoonNectar-0.6.0.tar.gz/MoonNectar-0.6.0/mnectar/formats/mutagen/mp3.py
import io import logging import mutagen import mutagen.mp3 from dataclasses import dataclass, field from typing import Mapping, Any from .base import MRLFileMutagen ID3v24Tags = { "AENC": {'description': 'Audio encryption', 'short' : ''}, "APIC": {'description': 'Attached pi...
PypiClean
/ClashRoyaleBuildABot-1.2.0.tar.gz/ClashRoyaleBuildABot-1.2.0/clashroyalebuildabot/state/detector.py
import os from PIL import ImageDraw, ImageFont from clashroyalebuildabot.state.card_detector import CardDetector from clashroyalebuildabot.state.number_detector import NumberDetector from clashroyalebuildabot.state.side_detector import SideDetector from clashroyalebuildabot.state.unit_detector import UnitDetector fro...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/db/models/signals.py
from functools import partial from django.db.models.utils import make_model_tuple from django.dispatch import Signal class_prepared = Signal(providing_args=["class"]) class ModelSignal(Signal): """ Signal subclass that allows the sender to be lazily specified as a string of the `app_label.ModelName` for...
PypiClean
/Clap-0.7.tar.gz/Clap-0.7/lib/clap/parser.py
import re import string import sys SHORTOPT_RANGE = 'A-Za-z0-9?' SHORTOPT_CHARS = string.letters + string.digits + '?' LONGOPT_RANGE = 'A-Za-z0-9-' LONGOPT_WORD = re.compile(r'^[%s]+$' % LONGOPT_RANGE) LONG_OPTION = re.compile(r'--([%s]+)(?:=(.+))?' % LONGOPT_RANGE) def shift(l): """ Deletes and returns the ...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/http/cookie.py
from __future__ import absolute_import, unicode_literals from django.utils.encoding import force_str from django.utils import six from django.utils.six.moves import http_cookies # Some versions of Python 2.7 and later won't need this encoding bug fix: _cookie_encodes_correctly = http_cookies.SimpleCookie().value_enc...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/extern/pygments/lexers/compiled.py
import re from pygments.scanner import Scanner from pygments.lexer import Lexer, RegexLexer, include, bygroups, using, \ this, combined from pygments.util import get_bool_opt, get_list_opt from pygments.token import \ Text, Comment, Operator, Keyword, Name, String, Number, Punctuation, ...
PypiClean
/BomberKillers-0.0.3.tar.gz/BomberKillers-0.0.3/source/main.py
import pygame as pg import random import sys from os import path from settings import * from object import * import time import socket import threading as xianchen class Game: def __init__(self): # initalize game window, etc... pg.init() pg.mixer.init() #self.music=pg.mixer.music.loa...
PypiClean
/IdracRedfishSupportTest-0.0.7.tar.gz/IdracRedfishSupportTest-0.0.7/TestNetworkShareREDFISH.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 tes...
PypiClean
/DataTig-0.5.0.tar.gz/DataTig-0.5.0/datatig-TMP/writers/staticversioned/staticversioned.py
import os import shutil from typing import Optional from jinja2 import Environment, FileSystemLoader, select_autoescape # type: ignore from datatig.sqliteversioned import DataStoreSQLiteVersioned class StaticVersionedWriter: def __init__( self, datastore: DataStoreSQLiteVersioned, out_d...
PypiClean
/FeatherStore-0.2.1-py3-none-any.whl/featherstore/_table/read.py
import os import platform import pyarrow as pa from pyarrow import feather import pandas as pd import polars as pl from featherstore.connection import Connection from featherstore._metadata import Metadata from featherstore._table import _raise_if from featherstore._table import _table_utils from featherstore._table....
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/jinja2_35/jinja2/nodes.py
import types import operator from collections import deque from jinja2.utils import Markup from jinja2._compat import izip, with_metaclass, text_type, PY2 #: the types we support for context functions _context_function_types = (types.FunctionType, types.MethodType) _binop_to_func = { '*': operator.mul, ...
PypiClean
/KappaNEURON-0.3.1.tar.gz/KappaNEURON-0.3.1/doc/INSTALL-neuron.md
Install NEURON 7.4 with Python enabled ====================================== 1. Install build dependencies ``` sudo apt install g++5 gcc-5 libx11-dev libxext-dev libpython2.7-dev ncurses-dev python-scipy python-matplotlib ``` 2. Decide where to put NEURON, for example `$HOME/nrn/7.4/`, which we will call...
PypiClean
/CosmoTech-SupplyChain-5.1.0.tar.gz/CosmoTech-SupplyChain-5.1.0/Supplychain/Run/uncertainty_analysis_helper_functions.py
from copy import deepcopy import comets as co from Supplychain.Wrappers.simulator import CosmoEngine from Supplychain.Wrappers.environment_variables import EnvironmentVariables """ ------------------------------------------------- ------------------------------------------------- --------------------------------------...
PypiClean
/src/data/processor.py
from re import DEBUG import contextlib import sys from collections import Counter from multiprocessing import Pool from torch._C import HOIST_CONV_PACKED_PARAMS from torch.utils.data import Dataset, Sampler, IterableDataset from collections import defaultdict from functools import partial from multiprocessing import ...
PypiClean
/LZBEAT-0.13.1.tar.gz/LZBEAT-0.13.1/econml/policy/_forest/_forest.py
import numbers from warnings import catch_warnings, simplefilter, warn from abc import ABCMeta, abstractmethod import numpy as np import threading from ..._ensemble import (BaseEnsemble, _partition_estimators, _get_n_samples_subsample, _accumulate_prediction) from ...utilities import check_inputs, cross_product from ....
PypiClean
/HiCExplorer-2.2.1.1-py3-none-any.whl/hicexplorer/old_pca.py
# import argparse # from scipy.sparse import csr_matrix # from scipy import linalg # import numpy as np # import pyBigWig # from hicexplorer import HiCMatrix as hm # from hicexplorer._version import __version__ # from hicexplorer.utilities import exp_obs_matrix_lieberman # from hicexplorer.utilities import convertN...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/widget/DataPresentation.js.uncompressed.js
define("dojox/widget/DataPresentation", ["dijit","dojo","dojox","dojo/require!dojox/grid/DataGrid,dojox/charting/Chart2D,dojox/charting/widget/Legend,dojox/charting/action2d/Tooltip,dojox/charting/action2d/Highlight,dojo/colors,dojo/data/ItemFileWriteStore"], function(dijit,dojo,dojox){ dojo.provide("dojox.widget.DataP...
PypiClean
/KratosFluidDynamicsApplication-9.4-cp38-cp38-win_amd64.whl/KratosMultiphysics/FluidDynamicsApplication/adjoint_fluid_analysis.py
import KratosMultiphysics as Kratos import KratosMultiphysics.FluidDynamicsApplication as KFluid from KratosMultiphysics.analysis_stage import AnalysisStage from KratosMultiphysics.process_factory import KratosProcessFactory from KratosMultiphysics.FluidDynamicsApplication import python_solvers_wrapper_adjoint_fluid f...
PypiClean
/Deliverance-0.6.1.tar.gz/Deliverance-0.6.1/deliverance/editor/media/editarea/edit_area/resize_area.js
EditAreaLoader.prototype.start_resize_area= function(){ document.onmouseup= editAreaLoader.end_resize_area; document.onmousemove= editAreaLoader.resize_area; editAreaLoader.toggle(editAreaLoader.resize["id"]); var textarea= editAreas[editAreaLoader.resize["id"]]["textarea"]; var div= document.getElementB...
PypiClean
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/dragonflow/cli/utils.py
from oslo_utils import encodeutils import prettytable import six import textwrap from dragonflow._i18n import _ from dragonflow.common import exceptions def get_list_table_columns_and_formatters(fields, objs, exclude_fields=(), filters=None): """Check and add fields to ...
PypiClean
/ImSwitch-2.0.0.tar.gz/ImSwitch-2.0.0/imswitch/imcontrol/controller/controllers/ViewController.py
from imswitch.imcommon.model import APIExport from ..basecontrollers import ImConWidgetController class ViewController(ImConWidgetController): """ Linked to ViewWidget.""" def __init__(self, *args, **kwargs): super().__init__(*args, **kwargs) self._acqHandle = None self._widget.setVi...
PypiClean
/Adversary-Armor-0.1.1.tar.gz/Adversary-Armor-0.1.1/docs/nonlisted/project_layout.rst
Python Project Layout --------------------- The file structure for this Python project follows the ``src``, ``tests``, ``docs`` and ``devtools`` folders layout. The src layout ~~~~~~~~~~~~~~ I discovered storing the project's source code underneath a ``src`` directory layer instead of directly in the project's root ...
PypiClean
/FsnViz-0.3.0.tar.gz/FsnViz-0.3.0/fsnviz/cli.py
import os import click from . import __version__ from .models import FsnVizConfig from .fusioncatcher import FusionCatcherResults from .star_fusion import STARFusionResults from .utils import which_circos, get_karyotype_file as gkf __all__ = [] @click.group() @click.version_option(__version__) @click.option("--ou...
PypiClean
/Ngoto-0.0.39-py3-none-any.whl/ngoto/core/util/rich/repr.py
import inspect from functools import partial from typing import ( Any, Callable, Iterable, List, Optional, Tuple, Type, TypeVar, Union, overload, ) T = TypeVar("T") Result = Iterable[Union[Any, Tuple[Any], Tuple[str, Any], Tuple[str, Any, Any]]] RichReprResult = Result class...
PypiClean
/Kato-FlaskAppBuilder-1.1.14.tar.gz/Kato-FlaskAppBuilder-1.1.14/flask_appbuilder/forms.py
import logging from flask_wtf import FlaskForm from wtforms import (BooleanField, StringField, TextAreaField, IntegerField, FloatField, DateField, DateTimeField, DecimalField) from .fields import QuerySelectMultipleField, QuerySelectField, EnumField from wtforms import valida...
PypiClean
/HuMobi-0.1.12-py3-none-any.whl/humobi/models/spatial_tools/distributions.py
import pandas as pd import geopandas as gpd import sys sys.path.append("..") from humobi.tools.processing import normalize from humobi.models.spatial_tools.misc import rank_freq def calculate_distances(gs1, gs2): """ Calculates the distance (ellipsoidal) between to GeoSeries :param gs1: GeoSeries1 :param gs2: Ge...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/full/plugins/specialchar/dialogs/lang/es.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("specialchar","es",{euro:"Símbolo de euro",lsquo:"Comilla simple izquierda",rsquo:"Comilla simple derecha",ldquo:"Comilla doble i...
PypiClean
/Homevee_Dev-0.0.0.0-py3-none-any.whl/Homevee/DeviceAPI/heating.py
from Homevee.Item.Device import Device from Homevee.Item.Device.Thermostat.MaxThermostat import * from Homevee.Item.Device.Thermostat.RademacherThermostat import * from Homevee.Item.Device.Thermostat.ZWaveThermostat import * from Homevee.Item.Room import Room from Homevee.Item.Status import * from Homevee.Utils.DeviceT...
PypiClean
/Cheetah-2.4.4.tar.gz/Cheetah-2.4.4/cheetah/NameMapper.py
__author__ = "Tavis Rudd <tavis@damnsimple.com>," +\ "\nChuck Esterbrook <echuck@mindspring.com>" from pprint import pformat import inspect _INCLUDE_NAMESPACE_REPR_IN_NOTFOUND_EXCEPTIONS = False _ALLOW_WRAPPING_OF_NOTFOUND_EXCEPTIONS = True __all__ = ['NotFound', 'hasKey', 'valueForK...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/spinner.js
module.exports = /******/ (function (modules) { // webpackBootstrap /******/ // The module cache /******/ var installedModules = {}; /******/ /******/ // The require function /******/ function __webpack_require__(moduleId) { /******/ /******/ // Check if module is in ...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/gis/db/models/lookups.py
import re from django.contrib.gis.db.models.fields import BaseSpatialField from django.db.models.expressions import Expression from django.db.models.lookups import Lookup, Transform from django.db.models.sql.query import Query class RasterBandTransform(Transform): def as_sql(self, compiler, connection): ...
PypiClean
/Dero-0.15.0-py3-none-any.whl/dero/data/summarize/__init__.py
import pandas as pd from typing import Callable from functools import partial from dero.data.display import display_df_dict from dero.data.typing import DfDictOrNone, FloatList def format_numbers_to_decimal_places(item, decimals=2, coerce_ints: bool = False): if isinstance(item, (float, int)): if abs(it...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/NodeList-traverse.js
define("dojo/NodeList-traverse",["./query","./_base/lang","./_base/array"],function(_1,_2,_3){ var _4=_1.NodeList; _2.extend(_4,{_buildArrayFromCallback:function(_5){ var _6=[]; for(var i=0;i<this.length;i++){ var _7=_5.call(this[i],this[i],_6); if(_7){ _6=_6.concat(_7); } } return _6; },_getUniqueAsNodeList:function(_...
PypiClean
/Kook-0.7.2.tar.gz/Kook-0.7.2/lib/kook/decorators.py
### ### $Release: 0.7.2 $ ### $Copyright: copyright(c) 2008-2012 kuwata-lab.com all rights reserved. $ ### $License: MIT License $ ### import sys from types import FunctionType from kook import KookRecipeError #from kook.kitchen import IfExists from kook.utils import flatten, _is_str, ArgumentError, get_funcname #fro...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/data/RailsStore.js
define("dojox/data/RailsStore",["dojo","dojox","dojox/data/JsonRestStore"],function(_1,_2){ _1.declare("dojox.data.RailsStore",_2.data.JsonRestStore,{constructor:function(){ },preamble:function(_3){ if(typeof _3.target=="string"&&!_3.service){ var _4=_3.target.replace(/\/$/g,""); var _5=function(id,_6){ _6=_6||{}; var ...
PypiClean
/CSUMMDET-1.0.23.tar.gz/CSUMMDET-1.0.23/mmdet/models/anchor_heads/ssd_head.py
import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import xavier_init from mmdet.core import AnchorGenerator, anchor_target, multi_apply from ..losses import smooth_l1_loss from ..registry import HEADS from .anchor_head import AnchorHead # TODO: add loss evaluator for...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/plugins/operate/version_checker.py
from datetime import datetime from loguru import logger from sqlalchemy import Column, DateTime from flexget import db_schema, plugin from flexget.event import event from flexget.manager import Session from flexget.utils.tools import get_current_flexget_version, get_latest_flexget_version_number logger = logger.bind...
PypiClean
/Flaskel-3.1.0rc2-py3-none-any.whl/flaskel/extra/media/service.py
import os import typing as t from vbcore.uuid import get_uuid from werkzeug.datastructures import FileStorage from werkzeug.utils import secure_filename from flaskel import cap, ConfigProxy from .exceptions import MediaError from .repo import MediaRepo class MediaService: media_repo = MediaRepo obfuscate_f...
PypiClean
/LabtoolSuite-0.1.3.tar.gz/LabtoolSuite-0.1.3/Labtools/docs/NRF24L01_class.py
from commands_proto import * class NRF24L01(): #Commands R_REG = 0x00 W_REG = 0x20 RX_PAYLOAD = 0x61 TX_PAYLOAD = 0xA0 FLUSH_TX = 0xE1 FLUSH_RX = 0xE2 ACTIVATE = 0x50 R_STATUS = 0xFF #Registers NRF_CONFIG = 0x00 EN_AA = 0x01 EN_RXADDR = 0x02 SETUP_AW = 0x03 SETUP_RETR = 0x04 RF_CH = 0x05 RF_SETUP = 0...
PypiClean
/Fabric39-1.15.3.post1.tar.gz/Fabric39-1.15.3.post1/fabric/tasks.py
from __future__ import with_statement import inspect import six import sys import textwrap from fabric import state from fabric.utils import abort, warn, error from fabric.network import to_dict, disconnect_all from fabric.context_managers import settings from fabric.job_queue import JobQueue from fabric.task_utils i...
PypiClean
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/bootstrap4-duallistbox/jquery.bootstrap-duallistbox.js
(function(factory) { if (typeof define === 'function' && define.amd) { define(['jquery'], factory); } else if (typeof module === 'object' && module.exports) { module.exports = function(root, jQuery) { if (jQuery === undefined) { if (typeof window !== 'undefined') { jQuery = require('...
PypiClean
/FastCNN2-1.23.425.1716.tar.gz/FastCNN2-1.23.425.1716/FastCNN/prx/YoloV5ValidProxy.py
import argparse import json import os import sys from pathlib import Path import numpy as np import torch from tqdm import tqdm FILE = Path(__file__).resolve() ROOT = FILE.parents[0] # YOLOv5 root directory if str(ROOT) not in sys.path: sys.path.append(str(ROOT)) # add ROOT to PATH ROOT = Path(os.path.relpath(R...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/STIX/General/Bold/Main.js
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS["STIXGeneral-bold"]={directory:"General/Bold",family:"STIXGeneral",weight:"bold",Ranges:[[160,255,"Latin1Supplement"],[256,383,"LatinExtendedA"],[384,591,"LatinExtendedB"],[592,687,"IPAExtensions"],[688,767,"SpacingModLetters"],[768,879,"CombDiacritMarks"],[880,1023,"GreekAn...
PypiClean
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/canvas/gui/stackedwidget.py
import logging from AnyQt.QtWidgets import QWidget, QFrame, QStackedLayout, QSizePolicy from AnyQt.QtGui import QPixmap, QPainter from AnyQt.QtCore import Qt, QPoint, QRect, QSize, QPropertyAnimation from AnyQt.QtCore import pyqtSignal as Signal, pyqtProperty as Property from .utils import updates_disabled log = log...
PypiClean
/DSM_tools-1.1.0-py3-none-any.whl/dsmtools/modeling/model_abstract.py
import os from os import PathLike from pathlib import Path from typing import Union, Optional, Iterable import matplotlib.pyplot as plt import numpy as np from keras import Model from keras.callbacks import ModelCheckpoint class ModelAbstract: """ This is an abstract class for the common methods of our deep ...
PypiClean
/ISPManCCP-0.0.1alpha3.1.tar.bz2/ISPManCCP-0.0.1alpha3.1/ispmanccp/config/middleware.py
import ldap from paste import httpexceptions from paste.cascade import Cascade from paste.urlparser import StaticURLParser from paste.registry import RegistryManager from paste.deploy.config import ConfigMiddleware from paste.deploy.converters import asbool from pylons.error import error_template from pylons.middlewa...
PypiClean
/ChemDataExtractor-IDE-1.3.2.tar.gz/ChemDataExtractor-IDE-1.3.2/chemdataextractor/scrape/base.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals from abc import ABCMeta, abstractproperty, abstractmethod import logging import requests import six log = logging.getLogger(__name__) class BaseScraper(six.with_metacl...
PypiClean
/FAS_FT_gpu-2.1-py3-none-any.whl/Face_Anti_Spoofing/inference_onnx.py
import cv2 import torch.onnx import onnxruntime import time import numpy as np import torchvision.transforms as transforms from torch import nn from importlib import resources import io def to_numpy(tensor): return tensor.detach().cpu().numpy() if tensor.requires_grad else tensor.cpu().numpy() class FAS(): de...
PypiClean
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/fitbenchmarking/controllers/ceres_controller.py
import sys import os import numpy as np from fitbenchmarking.controllers.base_controller import Controller from fitbenchmarking.utils.exceptions import UnknownMinimizerError pyceres_location = os.environ["PYCERES_LOCATION"] sys.path.insert(0, pyceres_location) # pylint: disable=wrong-import-position,wrong-import-order...
PypiClean
/Homevee_Dev-0.0.0.0-py3-none-any.whl/Homevee/Functions/tensorflow_functions/people_predict.py
import os from operator import itemgetter import numpy as np from Homevee.Helper import Logger try: import tensorflow as tf TENSORFLOW_INSTALLED = True #Logger.log("Tensorflow imported") except: TENSORFLOW_INSTALLED = False Logger.log("Error importing Tensorflow") def load_graph(model_file...
PypiClean
/LabExT_pkg-2.2.0.tar.gz/LabExT_pkg-2.2.0/docs/installation.md
# Installation Instructions It is recommended to work with [Python virtual environments](https://docs.python.org/3.8/library/venv.html#module-venv) or conda environments. In these installation examples, we assume that we are working on a Windows machine and you have a working [Anaconda3](https://www.anaconda.com/produ...
PypiClean
/DynaPy-1.2.5.tar.gz/DynaPy-1.2.5/DynaSolver.py
import numpy as np from matplotlib import pyplot as plt from DynaPy.TLCD.GUI.DpConfigurations import Configurations class ODESolver(object): def __init__(self, mass, damping, stiffness, force, configurations=Configurations()): """ ODE solver for dynamics problems. :param mass: np.matrix - Mass ma...
PypiClean
/ADLES-1.4.0.tar.gz/ADLES-1.4.0/adles/interfaces/platform_interface.py
import logging from adles.interfaces import Interface class PlatformInterface(Interface): """Generic interface used to uniformly interact with platform-specific interfaces.""" def __init__(self, infra, spec): """ :param dict infra: Full infrastructure configuration :param dict sp...
PypiClean
/InvokeAI-3.1.0-py3-none-any.whl/invokeai/frontend/merge/merge_diffusers.py
import argparse import curses import sys from argparse import Namespace from pathlib import Path from typing import List, Optional import npyscreen from npyscreen import widget import invokeai.backend.util.logging as logger from invokeai.app.services.config import InvokeAIAppConfig from invokeai.backend.model_managem...
PypiClean
/BigJob-0.64.5.tar.gz/BigJob-0.64.5/bigjob/bigjob_manager.py
import sys import time import os import traceback import logging import textwrap import urlparse import types import subprocess import pdb # the one and only saga import saga from saga.job import Description from saga import Url as SAGAUrl from saga.job import Description as SAGAJobDescription from saga.j...
PypiClean
/IMMerge-0.0.2.tar.gz/IMMerge-0.0.2/README.md
# IMMerge ## Cite IMMerge Zhu W., Chen H-H, Petty A.S., Petty L.E., Polikowsky H.G., Gamazon E.R., Below J.E., Highland H.M. (2022). *IMMerge: Merging imputation data at scale*. manuscript submitted for publication ## Required packages and versions 1. This project works with python 3.7 and above. Below packages are ...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/address/uk_UA/__init__.py
from .. import Provider as AddressProvider class Provider(AddressProvider): address_formats = ["{{street_address}}, {{city_name}}, {{postcode}}"] building_number_formats = ["#", "##", "###"] city_formats = ["{{city_prefix}} {{city_name}}"] street_address_formats = ( "{{street_prefix}} {{street...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/configs/common/ssj_scp_270k_coco_instance.py
_base_ = '../_base_/default_runtime.py' # dataset settings dataset_type = 'CocoDataset' data_root = 'data/coco/' img_norm_cfg = dict( mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True) image_size = (1024, 1024) file_client_args = dict(backend='disk') # Standard Scale Jittering (SSJ) resizes...
PypiClean
/FairCore-5.0.2.tar.gz/FairCore-5.0.2/F/EXT.py
import sys import threading import time from F import LIST from F.LOG import Log Log = Log("FCoRE.Extensions") """ -> EXPERIMENTAL!! Use at your own risk. """ def safe_run(func): def wrapper(*args): try: Log.i("Safe Running") return func(args) except Exce...
PypiClean
/EasyBlogger-3.1.3-py3-none-any.whl/EasyBlogger-3.1.3.dist-info/DESCRIPTION.rst
EasyBlogger =========== |Build Status| |Coverage Status| Blog to blogger from the command line. Why not googlecl? ----------------- I tried. Didn’t work. ``googlecl`` is just too rough and isn’t easy to script. For ex: 1. No way to update a post 2. Doesn’t work with blog and post ids. 3. and others… So wh...
PypiClean
/AngPoly3D-0.0.1.tar.gz/AngPoly3D-0.0.1/README.md
# AngPoly3D AngPoly3D is a Python package to calculate the angle between a reference orientation and a polyhedron orientation considering the polyhedron's point group symmetry. The calculated angle is the minimum of all angles after applying all the equivalent orientations on the orientation of a polyhedron according...
PypiClean
/NVR-0.0.6.tar.gz/NVR-0.0.6/README.md
# **NVR (neighborhood variance ratio)** Python implementation of NVR (neighborhood variance ratio) gene selection to select genes with local and monotonic variation [(Welch et al., 2016)](https://www.ncbi.nlm.nih.gov/pubmed/27215581). The selected genes possess specific expression patterns over the entire data space a...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/gui/vtc/paytoedit.py
from PyQt4.QtCore import * from PyQt4.QtGui import * from qrtextedit import ScanQRTextEdit import re from decimal import Decimal from electrum_vtc import bitcoin import util RE_ADDRESS = '[1-9A-HJ-NP-Za-km-z]{26,}' RE_ALIAS = '(.*?)\s*\<([1-9A-HJ-NP-Za-km-z]{26,})\>' frozen_style = "QWidget { background-color:none...
PypiClean
/McStasScript-0.0.63.tar.gz/McStasScript-0.0.63/mcstasscript/instr_reader/read_initialize.py
from mcstasscript.instr_reader.util import SectionReader class InitializeReader(SectionReader): """ Reads the initialize section of a McStas instrument file. The initialize lines are added to the McStasScript instrument, and are sent to the function writing the lines to the python file. """ d...
PypiClean