id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Jinja2-3.1.2-py3-none-any.whl/Jinja2-3.1.2.dist-info/LICENSE.rst
Copyright 2007 Pallets 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 notice, this list of conditions and the following disclaimer. 2. Redistribution...
PypiClean
/M2Crypto-0.39.0.tar.gz/M2Crypto-0.39.0/doc/howto.ssl.rst
:orphan: .. _howto-ssl: HOWTO: Programming SSL in Python with M2Crypto ============================================== :author: Pheng Siong Ng <ngps@netmemetic.com> and Heikki Toivonen (heikki@osafoundation.org) :copyright: © 2000, 2001 by Ng Pheng Siong, portions © 2006 by Open Source Applications Founda...
PypiClean
/DendroPy-4.6.1.tar.gz/DendroPy-4.6.1/src/dendropy/dataio/fastawriter.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
/ConSSL-0.0.1-py3-none-any.whl/CSSL/datasets/kitti_dataset.py
import os import numpy as np from torch.utils.data import Dataset from CSSL.utils import _PIL_AVAILABLE from CSSL.utils.warnings import warn_missing_pkg if _PIL_AVAILABLE: from PIL import Image else: # pragma: no cover warn_missing_pkg('PIL', pypi_name='Pillow') DEFAULT_VOID_LABELS = (0, 1, 2, 3, 4, 5, 6, ...
PypiClean
/EnviroMS-4.3.0.tar.gz/EnviroMS-4.3.0/enviroMS/cli.py
from dataclasses import asdict from pathlib import Path import toml import click from enviroMS.singleMzSearch import run_molecular_formula_search from enviroMS.diWorkflow import DiWorkflowParameters, generate_database, run_di_mpi, run_direct_infusion_workflow, run_wdl_direct_infusion_workflow from corems.molecular_id...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/report_distribution_details_response_py3.py
from msrest.serialization import Model class ReportDistributionDetailsResponse(Model): """ReportDistributionDetailsResponse. :param report_distribution_id: The id of the report distribution :type report_distribution_id: int :param report_distribution_name: The name of the report distribution :ty...
PypiClean
/CloeePy-0.0.2.tar.gz/CloeePy-0.0.2/README.md
# CloeePy Mini Python framework for backend jobs and such. Avoids the HTTP riffraff when you're not building a web system. CloeePy uses YAML configuration files, which integrates better with Kubernetes' ConfigMaps. **This project is currently in alpha.** ## System Requirements - Unix-based operating system - Python ...
PypiClean
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/view/guitools/ViewSetupInfo.py
from dataclasses import dataclass, field from typing import Dict, List, Optional, Union from imswitch.imcontrol.model import SetupInfo @dataclass(frozen=True) class ROIInfo: x: int """ Starting X position of ROI, in pixels. """ y: int """ Starting Y position of ROI, in pixels. """ w: int ""...
PypiClean
/netket-3.9.2.tar.gz/netket-3.9.2/netket/driver/vmc.py
from typing import Optional import jax import jax.numpy as jnp from textwrap import dedent from inspect import signature from netket.utils.types import PyTree from netket.operator import AbstractOperator from netket.stats import Stats from netket.vqs import MCState from netket.optimizer import ( identity_precon...
PypiClean
/CL_Auto_Library-1.1.5.3-py3-none-any.whl/CL_Auto_Library/CL_Auto_Keywords.py
import re import openpyxl import os import psutil import win32com.client import unicodedata from datetime import datetime, timedelta import time from random import randint from docx import Document from openpyxl.workbook import Workbook from openpyxl.utils import column_index_from_string def EmailFormatValidator(email...
PypiClean
/DrissionPage-3.2.31.tar.gz/DrissionPage-3.2.31/README.md
# ✨️ 概述 DrissionPage 是一个基于 python 的网页自动化工具。 它既能控制浏览器,也能收发数据包,还能把两者合而为一。 可兼顾浏览器自动化的便利性和 requests 的高效率。 它功能强大,内置无数人性化设计和便捷功能。 它的语法简洁而优雅,代码量少,对新手友好。 --- <a href='https://gitee.com/g1879/DrissionPage/stargazers'><img src='https://gitee.com/g1879/DrissionPage/badge/star.svg?theme=dark' alt='star'></img></a> <a href='...
PypiClean
/CUQIpy_PyTorch-0.2.0-py3-none-any.whl/cuqipy_pytorch/distribution.py
import torch import cuqi from cuqi.distribution import Distribution import numbers import numpy as np class _OutOfBoundsDistribution: """ Helper class to handle out-of-bounds values """ def log_prob(self, *args, **kwargs): return torch.tensor(-torch.inf, dtype=torch.float32) class HalfGaussian(Distrib...
PypiClean
/BPTK_Py-1.8.0.tar.gz/BPTK_Py-1.8.0/BPTK_Py/modelparser/meta_model_creator.py
class ModelCreator(): """ This class creates a meta model for the scenario. You can export this model to BPTK-Compliant JSON format for further processing. It comes wiht its own serialization mechanism For now, it only supports ABM models. SD support is planned for the future! """ def __init__(...
PypiClean
/Flask-Vue-0.3.5.tar.gz/Flask-Vue-0.3.5/flask_vue/static/vue.min.js
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.Vue=e()}(this,function(){"use strict";function t(e,n,r){if(i(e,n))return void(e[n]=r);if(e._isVue)return void t(e._data,n,r);var s=e.__ob__;if(!s)return void(e[n]=r);if(s.convert(n,r)...
PypiClean
/FAaDO-0.0.4.tar.gz/FAaDO-0.0.4/fado/builder/data/shape/nlafl_shaper.py
import logging import os import shutil import numpy as np from fado.builder.data.shape.shaper import Shaper from fado.cli.arguments.arguments import FADOArguments from fado.constants import ALL_DATA_FOLDER ALPHA = 1 fado_args = FADOArguments() DATA_FOLDER = os.path.join(ALL_DATA_FOLDER, fado_args.dataset) logger =...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/plugins/standard/DataFilesPlugin.py
import os import pkgutil from nuitka import Options from nuitka.code_generation.ConstantCodes import addDistributionMetadataValue from nuitka.containers.OrderedSets import OrderedSet from nuitka.plugins.PluginBase import NuitkaPluginBase from nuitka.PythonFlavors import isDebianPackagePython from nuitka.utils.Distribu...
PypiClean
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap/site/content/docs/5.0/getting-started/download.md
--- layout: docs title: Download description: Download Bootstrap to get the compiled CSS and JavaScript, source code, or include it with your favorite package managers like npm, RubyGems, and more. group: getting-started toc: true --- ## Compiled CSS and JS Download ready-to-use compiled code for **Bootstrap v{{< par...
PypiClean
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/threads/permissions/bestanswers.py
from django import forms from django.core.exceptions import PermissionDenied from django.utils import timezone from django.utils.translation import gettext_lazy as _ from django.utils.translation import ngettext from ...acl import algebra from ...acl.decorators import return_boolean from ...categories.models import Ca...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/extern/pygments/util.py
import re import sys import codecs split_path_re = re.compile(r'[/\\ ]') doctype_lookup_re = re.compile(r'''(?smx) (<\?.*?\?>)?\s* <!DOCTYPE\s+( [a-zA-Z_][a-zA-Z0-9]*\s+ [a-zA-Z_][a-zA-Z0-9]*\s+ "[^"]*") [^>]*> ''') tag_re = re.compile(r'<(.+?)(\s.*?)?>.*?</.+?>(?uism)') class ClassNotFo...
PypiClean
/Cowpox-6-py3-none-any.whl/cowpox/graph.py
# This file is part of Cowpox. # # Cowpox 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. # # Cowpox is distributed in the hope that i...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/OutputDirectories.py
import os from nuitka import Options from nuitka.utils.FileOperations import hasFilenameExtension, makePath from nuitka.utils.Importing import getSharedLibrarySuffix from nuitka.utils.Utils import isWin32OrPosixWindows, isWin32Windows _main_module = None def setMainModule(main_module): """Call this before using...
PypiClean
/Grimsel-0.9.0.tar.gz/Grimsel-0.9.0/grimsel/auxiliary/build_utils.py
import grimsel.auxiliary.sqlutils.aux_sql_func as aql import grimsel_config as config db = 'storage2' sqlc = aql.SqlConnector(db, user=config.PSQL_USER, password=config.PSQL_PASSWORD, host=config.PSQL_HOST, port=config.PSQL_PORT) def yr_gette...
PypiClean
/CmtStandardNames-0.2.2.tar.gz/CmtStandardNames-0.2.2/standard_names/io.py
from __future__ import print_function import os import sys from . import (StandardName, Collection, BadNameError) from .decorators import (format_as_wiki, format_as_yaml, format_as_plain_text) from . import (google_doc, url, plain_text) class Error(Exception): """Base exception for this module.""" pass cl...
PypiClean
/dragonflow-4.0.0.tar.gz/dragonflow-4.0.0/dragonflow/controller/apps/portqos.py
import collections from oslo_log import log from dragonflow.controller import df_base_app from dragonflow.db.models import constants as model_constants from dragonflow.db.models import l2 from dragonflow.db.models import qos LOG = log.getLogger(__name__) class PortQosApp(df_base_app.DFlowApp): def __init__(...
PypiClean
/NehorayRapid-0.0.1-py3-none-any.whl/mmedit/core/export/wrappers.py
import os.path as osp import warnings import numpy as np import onnxruntime as ort import torch from torch import nn from mmedit.models import BaseMattor, BasicRestorer, build_model def inference_with_session(sess, io_binding, output_names, input_tensor): device_type = input_tensor.device.type device_id = i...
PypiClean
/Flask-ErrorsHandler-4.0.2.tar.gz/Flask-ErrorsHandler-4.0.2/flask_errors_handler/normalize.py
import traceback from datetime import datetime from flask import current_app as cap from werkzeug import exceptions, http from werkzeug.routing import RequestRedirect from .exception import ApiProblem class BaseNormalize(object): def normalize(self, ex, **kwargs): """ Child class must return sup...
PypiClean
/BlueWhale3_Bioinformatics-4.1.32-py3-none-any.whl/orangecontrib/bioinformatics/widgets/utils/gui/__init__.py
from typing import Sequence from numbers import Real, Integral from collections import namedtuple from AnyQt.QtGui import QTextDocument, QAbstractTextDocumentLayout from AnyQt.QtCore import Qt, QSize, QSortFilterProxyModel from AnyQt.QtWidgets import QFrame, QStyle, QApplication, QStyledItemDelegate, QStyleOptionViewI...
PypiClean
/GraphCASE-0.0.9.tar.gz/GraphCASE-0.0.9/GAE/graph_reconstructor.py
import math import networkx as nx import tensorflow as tf import numpy as np import matplotlib.pyplot as plt from pyvis import network as net class GraphReconstructor: """ Class for reconstruction the sampled local neighbourhood into a graph based on the inputlayer of the encoder or outputlayer of the deco...
PypiClean
/FLORIS-3.4.1.tar.gz/FLORIS-3.4.1/floris/simulation/wake_turbulence/wake_induced_mixing.py
# 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 agreed to in writing, software # distributed under the Licens...
PypiClean
/MDP-3.6.tar.gz/MDP-3.6/mdp/nodes/ica_nodes.py
from __future__ import print_function from __future__ import division from builtins import range from past.utils import old_div from builtins import object __docformat__ = "restructuredtext en" import math import mdp from .isfa_nodes import ISFANode numx, numx_rand, numx_linalg = mdp.numx, mdp.numx_rand, mdp.numx_lina...
PypiClean
/CatLearn-0.6.2.tar.gz/CatLearn-0.6.2/catlearn/ga/predictors.py
import time from catlearn.regression import GaussianProcess def minimize_error(train_features, train_targets, test_features, test_targets): """A generic fitness function. This fitness function will minimize the cost function. Parameters ---------- train_features : array The training fea...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/code_generation/ExceptionCodes.py
from nuitka.PythonVersions import python_version from .CodeHelpers import ( generateExpressionCode, withObjectCodeTemporaryAssignment, ) from .templates.CodeTemplatesExceptions import ( template_publish_exception_to_handler, ) def getExceptionIdentifier(exception_type): assert "PyExc" not in exceptio...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/code_generation/VariableCodes.py
from nuitka.nodes.shapes.BuiltinTypeShapes import ( tshape_bool, tshape_int_or_long, ) from nuitka.PythonVersions import python_version from .c_types.CTypeNuitkaBooleans import CTypeNuitkaBoolEnum from .c_types.CTypePyObjectPointers import ( CTypeCellObject, CTypePyObjectPtr, CTypePyObjectPtrPtr, )...
PypiClean
/GoogleAppEngineMapReduce-1.9.22.0.tar.gz/GoogleAppEngineMapReduce-1.9.22.0/mapreduce/kv_pb.py
from google.net.proto import ProtocolBuffer import array import base64 import thread try: from google.net.proto import _net_proto___parse__python except ImportError: _net_proto___parse__python = None __pychecker__ = """maxreturns=0 maxbranches=0 no-callinit unusednames=printElemNumber,debug_str...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_internal/pep425tags.py
from __future__ import absolute_import import distutils.util import logging import platform import re import sys import sysconfig import warnings from collections import OrderedDict import pip._internal.utils.glibc from pip._internal.utils.compat import get_extension_suffixes from pip._internal.utils.typing import MY...
PypiClean
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/importing/IgnoreListing.py
import sys from nuitka.Errors import NuitkaOptimizationError from nuitka.PythonFlavors import isNuitkaPython def getModuleIgnoreList(): return ( "mac", "nt", "os2", "posix", "_emx_link", "riscos", "ce", "riscospath", "riscosenviron", ...
PypiClean
/MarkDo-0.3.0.tar.gz/MarkDo-0.3.0/markdo/static/bower/marked/README.md
# marked > A full-featured markdown parser and compiler, written in javascript. Built > for speed. [![NPM version](https://badge.fury.io/js/marked.png)][badge] ## Install ``` bash npm install marked --save ``` ## Usage Minimal usage: ```js console.log(marked('I am using __markdown__.')); // Outputs: <p>I am usin...
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/ats/model/issue_status_enum.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
/Flask-Ink-3.1.10.tar.gz/Flask-Ink-3.1.10/flask_ink/static/js/ink.sticky.js
Ink.createModule('Ink.UI.Sticky', '1', ['Ink.UI.Aux_1','Ink.Dom.Event_1','Ink.Dom.Css_1','Ink.Dom.Element_1','Ink.Dom.Selector_1'], function(Aux, Event, Css, Element, Selector ) { 'use strict'; /** * The Sticky component takes an element and transforms it's behavior in order to, when the user scrolls he s...
PypiClean
/DomiKnowS-0.533.tar.gz/DomiKnowS-0.533/domiknows/solver/constructor/constructor.py
import logging from itertools import product, permutations from domiknows.utils import isbad from ..session.solver_session import SolverSession class Constructor(): logger = logging.getLogger(__name__) def __init__(self, lazy_not=True, self_relation=True): self.lazy_not = lazy_not self.self...
PypiClean
/MotorDeCalidad-1.12.27.tar.gz/MotorDeCalidad-1.12.27/README.md
# Motor de Calidad de Datos Guía para la actualización motor de calidad. ## Acceso a Motor de Calidad El acceso al motor de calidad se hace por medio de la plataforma GitHub a través de los siguientes enlaces: - Motor de Calidad (Versión para Azure Cloud) : https://github.com/enzoip98/MotorDeCalidad - Motor de Calidad...
PypiClean
/DragonPyEmulator-0.9.0-py3-none-any.whl/PyDC/PyDC/CassetteObjects.py
import itertools import logging import os import sys # own modules from PyDC.PyDC.utils import ( LOG_FORMATTER, LOG_LEVEL_DICT, codepoints2string, get_word, iter_steps, pformat_codepoints, string2codepoint, ) from .basic_tokens import bytes2codeline from .bitstream_handler import Bitstream...
PypiClean
/HBT_IP_Test-1.0.1-py3-none-any.whl/HBT_IP_Test/libs/isom/python/IsomAssets_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf.internal import enum_type_wrapper from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf i...
PypiClean
/BanterBot-0.0.5.tar.gz/BanterBot-0.0.5/banterbot/utils/text_to_speech_output.py
import datetime from typing import Iterator, List from banterbot.data.azure_neural_voices import AzureNeuralVoice from banterbot.utils.word import Word class TextToSpeechOutput: """ The TextToSpeechOutput class encapsulates the output of a text-to-speech conversion, providing a convenient interface for w...
PypiClean
/KAVICA-1.3.4.tar.gz/KAVICA-1.3.4/kavica/imputation/mice.py
import numpy as np import pandas as pd import warnings from terminaltables import DoubleTable from scipy.stats.mstats import gmean, hmean from time import sleep import itertools from sklearn import linear_model, discriminant_analysis import json import argparse import sys import time import matplotlib.pyplot as plt imp...
PypiClean
/BuildStream-external-0.30.0.tar.gz/BuildStream-external-0.30.0/bst_external/elements/flatpak_repo.py
from buildstream import ScriptElement, Scope, ElementError class FlatpakRepoElement(ScriptElement): BST_ARTIFACT_VERSION = 1 def configure(self, node): self.node_validate(node, ['environment', 'copy-refs', 'repo-mode', 'arch', 'branch']) self._env = self.node_get_member(node, list, 'environme...
PypiClean
/LDB_Algebra-0.3.2.tar.gz/LDB_Algebra-0.3.2/ldb/algebra/expression.py
from __future__ import absolute_import import operator import ast import ldb.algebra.manager def freezedict(dict_): return tuple(sorted(dict_.items())) class MethodCache(object): def __init__(self): self.order = [] self.cache = {} self.max_len = 5 def __contains__(self, key): ...
PypiClean
/Downpour-0.2.tar.gz/Downpour-0.2/ez_setup.py
import sys DEFAULT_VERSION = "0.6c11" DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3] md5_data = { 'setuptools-0.6b1-py2.3.egg': '8822caf901250d848b996b7f25c6e6ca', 'setuptools-0.6b1-py2.4.egg': 'b79a8a403e4502fbb85ee3f1941735cb', 'setuptools-0.6b2-py2.3.egg': '565775...
PypiClean
/BRAILS-3.0.1.tar.gz/BRAILS-3.0.1/brails/modules/FoundationClassifier/csail_segmentation_tool/csail_seg/lib/nn/modules/comm.py
import queue import collections import threading __all__ = ['FutureResult', 'SlavePipe', 'SyncMaster'] class FutureResult(object): """A thread-safe future implementation. Used only as one-to-one pipe.""" def __init__(self): self._result = None self._lock = threading.Lock() self._con...
PypiClean
/microfire_sht3x-0.9.0.tar.gz/microfire_sht3x-0.9.0/src/Microfire_SHT3x/Microfire_SHT3x.py
import smbus # pylint: disable=E0401 import time, math SHT3x_I2C_ADDRESS = 0x44 def exception_catch(func): def func_wrapper(*args, **kwargs): try: return func(*args, **kwargs) except Exception as e: print(e) return None return func_wrapper class Microfire_...
PypiClean
/grave-0.0.3.tar.gz/grave-0.0.3/README.rst
Grave—dead simple graph visualization ===================================== .. image:: https://travis-ci.org/networkx/grave.svg?branch=master :target: https://travis-ci.org/networkx/grave :alt: Automated test status (Linux and MacOS) .. image:: https://ci.appveyor.com/api/projects/status/github/networkx/grave?b...
PypiClean
/Apiamtic_python-1.6.9-py3-none-any.whl/verizon5gmecvnspapi/controllers/csp_profiles_controller.py
from verizon5gmecvnspapi.api_helper import APIHelper from verizon5gmecvnspapi.configuration import Server from verizon5gmecvnspapi.controllers.base_controller import BaseController from apimatic_core.request_builder import RequestBuilder from apimatic_core.response_handler import ResponseHandler from apimatic_core.type...
PypiClean
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/shared/_supermeans.py
import os.path import cf_units import iris import iris.coord_categorisation from iris.coord_categorisation import _pt_date import numpy as np class NoBoundsError(ValueError): """Return error and pass.""" class InvalidPeriod(ValueError): """Return error and pass.""" def get_supermean(name, season, data_di...
PypiClean
/Nasdaq%20Data%20Link-1.0.4.tar.gz/Nasdaq Data Link-1.0.4/nasdaqdatalink/model/merged_dataset.py
from more_itertools import unique_everseen import pandas as pd from six import string_types from .model_base import ModelBase from nasdaqdatalink.util import Util from .merged_data_list import MergedDataList from .data import Data from nasdaqdatalink.message import Message from .dataset import Dataset class MergedDat...
PypiClean
/MatrixDemos-0.3.tar.gz/MatrixDemos-0.3/matrixdemos/scripts/TextSwarm.py
"""Display swarms of text on the matrix""" import time import random from optparse import OptionParser from rgbmatrix import RGBMatrix, RGBMatrixOptions from matrixdemos.scripts.utils import * from PIL import ImageDraw from pygame.time import Clock parser = OptionParser() parser.set_description("""Show lots of text s...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Layer/ArcIMS.js
* @requires OpenLayers/Layer/Grid.js * @requires OpenLayers/Format/ArcXML.js * @requires OpenLayers/Request.js */ /** * Class: OpenLayers.Layer.ArcIMS * Instances of OpenLayers.Layer.ArcIMS are used to display data from ESRI ArcIMS * Mapping Services. Create a new ArcIMS layer with the <OpenLayers.Layer.Arc...
PypiClean
/HyperKitty-1.3.7.tar.gz/HyperKitty-1.3.7/hyperkitty/lib/mockup.py
class Email(object): """ Email class containing the information needed to store and display email threads. """ def __init__(self): """ Constructor. Instanciate the default attributes of the object. """ self.email_id = '' self.title = '' self.body = '' ...
PypiClean
/KratosSwimmingDEMApplication-9.2.0-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/KratosMultiphysics/SwimmingDEMApplication/custom_body_force/manufactured_solution.py
import KratosMultiphysics def CreateManufacturedSolution(custom_settings): return ManufacturedSolution(custom_settings) class ManufacturedSolution(): def __init__(self, settings): ''' This is a base class to build manufactured fluid solutions. At least, it should return the body force ...
PypiClean
/Flask-Gulp-0.3.0.tar.gz/Flask-Gulp-0.3.0/flask_gulp/static.py
from __future__ import print_function import os import sys from collections import OrderedDict from flask import url_for from jinja2 import Markup from . import wildcard, File, Task from .extensions import extensions from .watcher import Watcher class Static(object): def __init__(self, app=None): if ap...
PypiClean
/ExcelAlchemy-1.1.0.tar.gz/ExcelAlchemy-1.1.0/excelalchemy/types/value/date.py
import logging from datetime import datetime from typing import Any from typing import cast import pendulum from pendulum import DateTime from excelalchemy.const import DATE_FORMAT_TO_HINT_MAPPING from excelalchemy.const import MILLISECOND_TO_SECOND from excelalchemy.const import DataRangeOption from excelalchemy.exc...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/plugins/clients/deluge.py
import base64 import os import re import sys import time from pathlib import Path from loguru import logger from flexget import plugin from flexget.entry import Entry from flexget.event import event from flexget.utils.pathscrub import pathscrub from flexget.utils.template import RenderError logger = logger.bind(name...
PypiClean
/CslBot-0.21-py3-none-any.whl/cslbot/helpers/misc.py
import logging import os import re import subprocess from datetime import datetime, timedelta from os.path import exists, join from random import choice, random import pkg_resources from . import orm def get_users(args): with args['handler'].data_lock: users = list(args['handler'].channels[args['target...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Tool/filesystem.py
__revision__ = "src/engine/SCons/Tool/filesystem.py 2014/07/05 09:42:21 garyo" import SCons from SCons.Tool.install import copyFunc copyToBuilder, copyAsBuilder = None, None def copyto_emitter(target, source, env): """ changes the path of the source to be under the target (which are assumed to be directori...
PypiClean
/Flask-Project-0.1.1.tar.gz/Flask-Project-0.1.1/flask_project/templates/default/web_site/static/js/bootstrap.js
if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') } /* ======================================================================== * Bootstrap: transition.js v3.2.0 * http://getbootstrap.com/javascript/#transitions * ========================================================...
PypiClean
/Mashup-Govind-102016060-0.0.1.tar.gz/Mashup-Govind-102016060-0.0.1/README.md
Name - Govind Singla Group - CS10 Roll No. - 102016060 Title - Mashup ## Description This module will create a mashup sort of thing of any singer you want of any duration with just simple command. ## Requirements pip install pytube pip install pydub Note - if you want to run this program, you must add these 3 ...
PypiClean
/Flask-Breadcrumbs-0.5.1.tar.gz/Flask-Breadcrumbs-0.5.1/README.rst
=================== Flask-Breadcrumbs =================== .. image:: https://travis-ci.org/inveniosoftware/flask-breadcrumbs.png?branch=master :target: https://travis-ci.org/inveniosoftware/flask-breadcrumbs .. image:: https://coveralls.io/repos/inveniosoftware/flask-breadcrumbs/badge.png?branch=master :targe...
PypiClean
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/lattices/13.py
import numpy as np from genice2 import CIF from genice2.cell import cellvectors import genice2.lattices desc = {"ref": {"13": 'Salzmann 2006'}, "usage": "No options available.", "brief": "Ice XIII, a hydrogen-ordered counterpart of ice V." } class Lattice(genice2.lattices.Lattice): def __...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/src/obitools/dnahash/__init__.py
_A=[0] _C=[1] _G=[2] _T=[3] _R= _A + _G _Y= _C + _T _M= _C + _A _K= _T + _G _W= _T + _A _S= _C + _G _B= _C + _G + _T _D= _A + _G + _T _H= _A + _C + _T _V= _A + _C + _G _N= _A + _C + _G + _T _dnahash={'a':_A, 'c':_C, 'g':_G, 't':_T, 'r':_R, 'y':_Y, 'm':_M, ...
PypiClean
/Mocha-0.12.1.tar.gz/Mocha-0.12.1/mocha/contrib/auth/__init__.py
import logging from . import signals, exceptions, oauth import flask_login from flask import current_app from mocha.exceptions import AppError import mocha.cli from mocha import (_, utc_now, config, abort, send_mail, url_for,...
PypiClean
/DpmModule-1.1.0-py3-none-any.whl/dpmModule/jobs/demonslayer.py
from ..kernel import core from ..kernel.core import VSkillModifier as V from ..character import characterKernel as ck from functools import partial from ..status.ability import Ability_tool from . import globalSkill ###### Passive Skill ###### class JobGenerator(ck.JobGenerator): def __init__(self): s...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/urine.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 urine(path): """Urine Analysis Data The `urine` data frame has 79 rows and 7 columns. 7...
PypiClean
/FastGets-0.3.5.tar.gz/FastGets-0.3.5/fastgets/web/static/dist/plugins/advlist/plugin.js
(function () { var defs = {}; // id -> {dependencies, definition, instance (possibly undefined)} // Used when there is no 'main' module. // The name is probably (hopefully) unique so minification removes for releases. var register_3795 = function (id) { var module = dem(id); var fragments = id....
PypiClean
/ConsenSys-Utils-0.2.0b1.tar.gz/ConsenSys-Utils-0.2.0b1/consensys_utils/gunicorn/workers.py
import errno import ssl import gunicorn.http as http import gunicorn.util as util from gunicorn.workers.sync import SyncWorker, StopWaiting from ..exceptions import PauseIteration class SyncIteratingWorker(SyncWorker): """A Gunicorn synchronous worker that allows to run an iterable WSGI application. It all...
PypiClean
/HDXrate-0.2.0.tar.gz/HDXrate-0.2.0/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install HDXrate, run this command in your terminal: .. code-block:: console $ pip install hdxrate Or .. code-block:: console $ conda install -c conda-forge hdxrate From sources ------------ The sources for H...
PypiClean
/ARGs_OAP-2.3.2.tar.gz/ARGs_OAP-2.3.2/ARGs_OAP/bin/bbmap/kcompress.sh
usage(){ echo " Written by Brian Bushnell Last modified July 16, 2018 Description: Compresses sequence data into a fasta file containing each kmer exactly once. Allows arbitrary kmer set operations via multiple passes. Usage: kcompress.sh in=<reads> out=<contigs> min=<1> max=<2147483647> Input parameters: in=<fi...
PypiClean
/ForIocCrawler-1.2.1.tar.gz/ForIocCrawler-1.2.1/crawler/crawlererr.py
## -------------------------------------------------------------------------------------------------------------------- ## Cralwer base exception class CrawlerError(Exception): 'Base class for exception' def __init__(self, what): self.msg = '[!] CrawlerError. Error message: ' + what ## Exception for ...
PypiClean
/LWTools-1.0.5.tar.gz/LWTools-1.0.5/LWT/lmtanalysis/BuildEventGroup3.py
import sqlite3 from time import * from lmtanalysis.Chronometer import Chronometer from lmtanalysis.Animal import * from lmtanalysis.Detection import * from lmtanalysis.Measure import * import matplotlib.pyplot as plt import numpy as np from lmtanalysis.Event import * from lmtanalysis.Measure import * from lmtanalysis.E...
PypiClean
/Flask-AppBuilder-jwi078-2.1.13.tar.gz/Flask-AppBuilder-jwi078-2.1.13/flask_appbuilder/models/group.py
from __future__ import unicode_literals import calendar import datetime from functools import reduce from itertools import groupby import logging from flask_appbuilder._compat import as_unicode from flask_babel import lazy_gettext as _ from .. import const as c log = logging.getLogger(__name__) def aggregate(labe...
PypiClean
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/data/variable.py
import collections import re from datetime import datetime, timedelta, timezone from numbers import Number, Real, Integral from math import isnan, floor from pickle import PickleError import numpy as np from Orange.data import _variable from Orange.util import Registry, color_to_hex, hex_to_color, Reprable __all__ ...
PypiClean
/Flask-Dropbox-0.3.tar.gz/Flask-Dropbox-0.3/README.rst
============= Flask-Dropbox ============= .. image:: https://travis-ci.org/playpauseandstop/Flask-Dropbox.png?branch=master :target: https://travis-ci.org/playpauseandstop/Flask-Dropbox .. image:: https://pypip.in/v/Flask-Dropbox/badge.png :target: https://crate.io/packages/Flask-Dropbox Dropbox Python SDK ...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/methods/chats/ban_chat_member.py
from datetime import datetime from typing import Union import fipper from fipper import raw, utils from fipper import types class BanChatMember: async def ban_chat_member( self: "fipper.Client", chat_id: Union[int, str], user_id: Union[int, str], until_date: datetime = utils.zero...
PypiClean
/DACBench-0.2.0.tar.gz/DACBench-0.2.0/dacbench/envs/sgd.py
import json import math import numbers import random import warnings from enum import IntEnum, auto from functools import reduce import numpy as np import torch from backpack import backpack, extend from backpack.extensions import BatchGrad from torchvision import datasets, transforms from dacbench import AbstractEnv...
PypiClean
/Attendance%20Module-0.3.tar.gz/Attendance Module-0.3/Attendance/app.py
import json import os.path from pathlib import Path from typing import Dict import requests import yaml from flask import Flask # For web server from flask import request, send_file, send_from_directory from flask_cors import CORS, cross_origin from pydantic import BaseModel from Attendance.attendance import Attendan...
PypiClean
/AbrIO-0.0.5.tar.gz/AbrIO-0.0.5/abriocli/component/component.py
import click, zipfile, json import requests import datetime from colorclass import Color from terminaltables import AsciiTable from requests.auth import HTTPBasicAuth from requests_toolbelt import MultipartEncoder, MultipartEncoderMonitor from clint.textui.progress import Bar as ProgressBar from ..util.file import * ...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/tools/deployment/pytorch2onnx.py
import argparse import os.path as osp import warnings from functools import partial import numpy as np import onnx import torch from mmcv import Config, DictAction from mmdet.core.export import build_model_from_cfg, preprocess_example_input from mmdet.core.export.model_wrappers import ONNXRuntimeDetector def pytorc...
PypiClean
/BuzzAlgoTrade-0.0.2.tar.gz/BuzzAlgoTrade-0.0.2/pyalgotrade/barfeed/googlefeed.py
from pyalgotrade.barfeed import csvfeed from pyalgotrade.barfeed import common from pyalgotrade.utils import dt from pyalgotrade import bar import datetime ###################################################################### # Google Finance CSV parser # Each bar must be on its own line and fields must be separate...
PypiClean
/MTGProxyPrinter-0.25.0.tar.gz/MTGProxyPrinter-0.25.0/mtg_proxy_printer/document_controller/move_cards.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
/CsuPMTD-1.0.27.tar.gz/CsuPMTD-1.0.27/PMTD/maskrcnn_benchmark/modeling/make_layers.py
import torch from torch import nn from PMTD.maskrcnn_benchmark.config import cfg from PMTD.maskrcnn_benchmark.layers import Conv2d def get_group_gn(dim, dim_per_gp, num_groups): """get number of groups used by GroupNorm, based on number of channels.""" assert dim_per_gp == -1 or num_groups == -1, \ "G...
PypiClean
/CoilMQ-1.0.1.tar.gz/CoilMQ-1.0.1/coilmq/store/__init__.py
import abc import logging import threading from coilmq.util.concurrency import synchronized __authors__ = ['"Hans Lellelid" <hans@xmpl.org>'] __copyright__ = "Copyright 2009 Hans Lellelid" __license__ = """Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance w...
PypiClean
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/blog/migrations/south/0010_category_site_allow_comments.py
import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models from django.contrib.sites.models import Site try: from django.contrib.auth import get_user_model except ImportError: # django < 1.5 from django.contrib.auth.models import User else: User = get_user_mo...
PypiClean
/LWTools-1.0.5.tar.gz/LWTools-1.0.5/LWT/lmtanalysis/CorrectDetectionIntegrity.py
import sqlite3 from time import * from lmtanalysis.Animal import * from lmtanalysis.Detection import * from lmtanalysis.Measure import * import matplotlib.pyplot as plt import numpy as np from lmtanalysis.Event import * from lmtanalysis.Measure import * from lmtanalysis.Chronometer import Chronometer from lmtanalysis....
PypiClean
/Gerador_ficticia-1.0.4.zip/Gerador_ficticia-1.0.4/Projeto1.py
__author__ = 'Jeferson de Souza' from calculos import * import random HNO3 = 58.3 CACO3 = 99.9 NO3 = 65.8 # Fator de corre????????????????o SODA = 1.0751 EDTA = 0.8 HCL = 0.9756 # Volumes dos tanques Acido = 2900 Coagulante = 3900 Composto = 0 Talco = 2000 file_name = 'Calculos.txt' def calculo_solucao(nome, arqu...
PypiClean
/MegEngine-1.13.1-cp37-cp37m-macosx_10_14_x86_64.whl/megengine/xla/compile.py
import dataclasses import os from typing import Any, Callable, Dict, List, Optional, Protocol, Sequence, Set, Union import numpy as np from .. import tensor from ..distributed import is_distributed from ..utils.dlpack import from_dlpack, to_dlpack from . import ir_utils from .lib import xla_bridge as xb from .lib imp...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/newcalls.py
import atexit from typing import Any from .binding import Binding from .environment import Environment from .handlers import HandlersHolder from .methods import Methods from .mtproto import MtProtoClient from .scaffold import Scaffold from .types import Cache from .types.call_holder import CallHolder from .types.updat...
PypiClean
/DiscordGame-2021.5.21.0.tar.gz/DiscordGame-2021.5.21.0/README.md
# DiscordGame *DiscordGame is a Python Framework for making Games from simple mini games like Tic Tac Toe to full-fledge Dungeon and Dragon campaigns inside Discord.* ## Getting Started ### Installation ```shell script $ pip install discordgame ``` Or clone the repo ```shell script $ git clone https://github.com/Gr...
PypiClean
/Kr0nOs-3.4.1.tar.gz/Kr0nOs-3.4.1/kronbot/core/cog_manager.py
import contextlib import pkgutil from importlib import import_module, invalidate_caches from importlib.machinery import ModuleSpec from pathlib import Path from typing import List, Optional, Union import discord import kronbot.cogs from kronbot.core.utils import deduplicate_iterables from . import checks, commands f...
PypiClean
/CaseRecommender-1.1.1.tar.gz/CaseRecommender-1.1.1/caserec/recommenders/item_recommendation/itemknn.py
# © 2019. Case Recommender (MIT License) from collections import defaultdict import numpy as np from caserec.recommenders.item_recommendation.base_item_recommendation import BaseItemRecommendation from caserec.utils.extra_functions import timed __author__ = 'Arthur Fortes <fortes.arthur@gmail.com>' class ItemKNN(B...
PypiClean
/CheckM2-1.0.1.tar.gz/CheckM2-1.0.1/checkm2/prodigal.py
import os import sys import stat import subprocess import logging import numpy as np import shutil import gzip import tempfile from checkm2 import sequenceClasses from checkm2 import fileManager '''Prodigal module taken from CheckM1.''' #TODO dont use meta mode for prodigal if a translation table was provided #TODO:...
PypiClean
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/util/bigjob_usage.ipynb
# Generating BigJob Usage Statistics out of Redis entries Read `cus` and `pilots` from Redis ``` import pandas as pd import matplotlib.pyplot as plt import os, sys import archive import datetime import ast # Attempt to restore old data frame cus_df = None pilot_df = None if os.path.exists("cus.df") and os.path.exist...
PypiClean
/MTGProxyPrinter-0.25.0.tar.gz/MTGProxyPrinter-0.25.0/mtg_proxy_printer/settings.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