id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Flask-HAL-1.0.4.tar.gz/Flask-HAL-1.0.4/README.rst | Flask-HAL
=========
|circle| |downloads| |version| |license| |docs|
Hello Dave...
I provide easy integration of the `HAL <https://tools.ietf.org/html/draft-kelly-json-hal-07>`_
specification for your ``REST`` Flask Applications.
Here is an example Dave...
.. sourcecode:: python
# Third Party Libs
from fl... | PypiClean |
/Auto-ADB-Wifi-1.0.1.tar.gz/Auto-ADB-Wifi-1.0.1/README.md | # Auto-ADB-Wifi
[](https://badge.fury.io/py/Auto-ADB-Wifi)
A script to automatically connect android devices in debug mode using WIFI
<p align="center">
<img src="extras/example.gif" width="100%" />
</p>
## Motivation
Everyday I need to connect to a lot ... | PypiClean |
/GRIDOPT-1.3.7rc1.tar.gz/GRIDOPT-1.3.7rc1/gridopt/power_flow/ac_pf.py |
from __future__ import print_function
import time
import numpy as np
from .method_error import *
from .method import PFmethod
from numpy.linalg import norm
class ACPF(PFmethod):
"""
AC power flow method.
"""
CONTROL_MODE_LOCKED = 'locked'
CONTROL_MODE_FREE = 'free'
CONTROL_MODE_REG = 'reg... | PypiClean |
/Chronix2Grid-1.2.0.post1.tar.gz/Chronix2Grid-1.2.0.post1/chronix2grid/generation/consumption/generate_load.py |
import os
import json
from numpy.random import default_rng
# Other Python libraries
import pandas as pd
import numpy as np
# Libraries developed for this module
from . import consumption_utils as conso
from .. import generation_utils as utils
def get_add_dim(params, loads_charac):
add_dim = 0
dx_corr = int... | PypiClean |
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/fitbenchmarking/cost_func/hellinger_nlls_cost_func.py | from numpy import array, matmul, ravel, sqrt
from fitbenchmarking.cost_func.nlls_base_cost_func import BaseNLLSCostFunc
from fitbenchmarking.utils.exceptions import (CostFuncError,
IncompatibleCostFunctionError)
class HellingerNLLSCostFunc(BaseNLLSCostFunc):
"""
... | PypiClean |
/HammerTime-http-0.9.1.tar.gz/HammerTime-http-0.9.1/hammertime/ruleset.py |
import asyncio
class Heuristics:
EVENTS = {"before_request", "after_headers", "after_response", "on_timeout", "on_request_successful",
"on_host_unreachable"}
def __init__(self, kb=None, request_engine=None):
self.rulesets = {event: RuleSet() for event in self.EVENTS}
self.kb =... | PypiClean |
/FITS_tools-0.2.tar.gz/FITS_tools-0.2/ah_bootstrap.py | import contextlib
import errno
import imp
import io
import locale
import os
import re
import subprocess as sp
import sys
try:
from ConfigParser import ConfigParser, RawConfigParser
except ImportError:
from configparser import ConfigParser, RawConfigParser
if sys.version_info[0] < 3:
_str_types = (str, un... | PypiClean |
/Firefly_III_API_Client-2.0.5.0-py3-none-any.whl/firefly_iii_client/paths/v1_webhooks_id_messages_message_id_attempts_attempt_id/delete.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from firefly_iii_client import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/string/BidiComplex.js | if(!dojo._hasResource["dojox.string.BidiComplex"]){
dojo._hasResource["dojox.string.BidiComplex"]=true;
dojo.provide("dojox.string.BidiComplex");
dojo.experimental("dojox.string.BidiComplex");
(function(){
var _1=[];
dojox.string.BidiComplex.attachInput=function(_2,_3){
_2.alt=_3;
dojo.connect(_2,"onkeydown",this,"_ceK... | PypiClean |
/EnergySystemModels-0.1.17.post63-py3-none-any.whl/AHU/air_humide/air_humide_NB.py | from math import*
"""
Created on Mon Aug 31 14:14:16 2020
@author: VG6075
"""
"""
' Validity ranges are the following :
' - Dry temperature [-20°C to 100°C[
' - Pressure [80 000 to 150 000 Pa]
' - Relative Humidity ]0; 100%] (0% excluded)
' *******************************************************
' *****... | PypiClean |
/LinkChecker-10.2.1-py3-none-any.whl/linkcheck/command/setup_config.py | import codecs
import getpass
from .. import fileutil
from .. import i18n
from .. import logger
from .. import LOG_CMDLINE
from .. import get_link_pat, log
from ..cmdline import print_version, print_usage, print_plugins
from ..director import console
def has_encoding(encoding):
"""Detect if Python can encode in... | PypiClean |
/Helios_Scanner-1.1-py3-none-any.whl/helios/core/scripts.py | import os
import json
from helios.core.engine import MatchObject, CustomRequestBuilder, RequestBuilder
from helios.core.utils import has_seen_before, response_to_dict
import sys
import logging
try:
import urlparse
except ImportError:
import urllib.parse as urlparse
class ScriptEngine:
scripts_active = []
... | PypiClean |
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/handlers_client/ml_grpc_client.py | import json
import pickle
import grpc
from mindsdb.microservices_grpc.ml import ml_pb2_grpc
from mindsdb.microservices_grpc.ml import ml_pb2, common_pb2
from mindsdb.integrations.libs.response import (
HandlerResponse as Response,
HandlerStatusResponse as StatusResponse,
)
# from mindsdb.integrations.libs.ml... | PypiClean |
/Nuitka_winsvc-1.7.10-cp310-cp310-win_amd64.whl/nuitka/tools/testing/RuntimeTracing.py | import os
import re
import sys
from nuitka.freezer.DependsExe import getDependsExePath, parseDependsExeOutput
from nuitka.utils.Execution import (
callProcess,
executeProcess,
isExecutableCommand,
withEnvironmentVarOverridden,
)
from nuitka.utils.FileOperations import deleteFile
from nuitka.utils.Utils... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Tool/MSCommon/vs.py |
__revision__ = "src/engine/SCons/Tool/MSCommon/vs.py rel_2.3.5:3329:275e75118ad4 2015/06/20 11:18:26 bdbaddog"
__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... | PypiClean |
/dirtrav-1.0.0.tar.gz/dirtrav-1.0.0/docs/async-await.rst | .. _async_await:
Using ``async`` and ``await``
=============================
.. versionadded:: 2.0
Routes, error handlers, before request, after request, and teardown
functions can all be coroutine functions if Flask is installed with the
``async`` extra (``pip install flask[async]``). This allows views to be
define... | PypiClean |
/Agatsuma-0.2.176.default.3499b00918ca.tip.tar.gz/Agatsuma-0.2.176.default.3499b00918ca.tip/agatsuma/adaptations/distribute.py |
from agatsuma import Implementations
from agatsuma.interfaces import ISetupSpell, IInternalSpell
def run_setuptools(**kwargs):
from setuptools import setup
from agatsuma.third_party.distribute_setup import use_setuptools
use_setuptools()
setup(**kwargs)
###############################################... | PypiClean |
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/math/autodiff/pytorch.py | import klampt.math.autodiff.ad as ad
import torch,numpy as np
class TorchModuleFunction(ad.ADFunctionInterface):
"""Converts a PyTorch function to a Klamp't autodiff function class."""
def __init__(self,module):
self.module=module
self._eval_params=[]
torch.set_default_dtype(torch.float... | PypiClean |
/Herring-0.1.49.tar.gz/Herring-0.1.49/herring/support/path.py | import os
# noinspection PyDocstring
class Path(object):
def __init__(self, *path_parts):
self.__path = os.path.normpath(os.path.join(*[str(part) for part in path_parts]))
self.name = os.path.basename(self.__path)
self.parent = os.path.dirname(self.__path)
self.stem = os.path.spli... | PypiClean |
/CsuPMTD-1.0.27.tar.gz/CsuPMTD-1.0.27/PMTD/maskrcnn_benchmark/apex/apex/pyprof/parse/parse.py | import sys
import argparse
from tqdm import tqdm
from .db import DB
from .kernel import Kernel
from .nvvp import NVVP
def parseArgs():
parser = argparse.ArgumentParser(prog=sys.argv[0], description="Parse SQL (nvvp) db.")
parser.add_argument("file",
type=str,
default=None,
help="SQL db (nvvp) file.")
args =... | PypiClean |
/BaselineRemoval-0.1.5.tar.gz/BaselineRemoval-0.1.5/README.rst | What is it?
===========
Companion python library for the machine learning book [Feature Engineering & Selection for Explainable Models: A Second Course for Data Scientists](https://statguyuser.github.io/feature-engg-selection-for-explainable-models.github.io/index.html). It is used for baseline correction. It has belo... | PypiClean |
/Acolyte-0.0.1.tar.gz/Acolyte-0.0.1/acolyte/util/validate.py | import re
import locale
from functools import wraps
from typing import Any
from types import FunctionType
from acolyte.exception import EasemobFlowException
from acolyte.core.message import (
messages,
default_validate_messages
)
from acolyte.core.service import Result
from acolyte.util.lang import get_from_nes... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","zh-cn",{euro:"欧元符号",lsquo:"左单引号",rsquo:"右单引号",ldquo:"左双引号",rdquo:"右双引号",ndash:"短划线",mdash:"长划线",iexcl:"竖翻叹号",cent:"分币符号",pound:"英镑符号",... | PypiClean |
/Heterogeneous_Highway_Env-0.0.3-py3-none-any.whl/HighwayEnv_iPLAN/utils.py | import copy
import importlib
import itertools
from typing import Tuple, Dict, Callable, List, Optional, Union, Sequence
import numpy as np
# Useful types
Vector = Union[np.ndarray, Sequence[float]]
Matrix = Union[np.ndarray, Sequence[Sequence[float]]]
Interval = Union[np.ndarray,
Tuple[Vector, Vector... | PypiClean |
/FuXi-1.4.production.tar.gz/FuXi-1.4.production/lib/Horn/__init__.py | import unittest, os, time, sys
from FuXi.Syntax.InfixOWL import *
from rdflib import plugin,RDF,RDFS,URIRef,URIRef,Literal,Variable
from rdflib.util import first
from rdflib.store import Store
from cStringIO import StringIO
from rdflib.Graph import Graph,ReadOnlyGraphAggregate,ConjunctiveGraph
from rdflib.syntax.Namesp... | PypiClean |
/Flask-RESTful-0.3.10.tar.gz/Flask-RESTful-0.3.10/docs/intermediate-usage.rst | .. _intermediate:
Intermediate Usage
==================
.. currentmodule:: flask_restful
This page covers building a slightly more complex Flask-RESTful app that will
cover out some best practices when setting up a real-world Flask-RESTful-based
API. The :ref:`quickstart` section is great for getting started with yo... | PypiClean |
/123_object_detection-0.1.tar.gz/123_object_detection-0.1/object_detection/models/ssd_resnet_v1_fpn_feature_extractor.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from six.moves import range
import tensorflow.compat.v1 as tf
import tf_slim as slim
from object_detection.meta_architectures import ssd_meta_arch
from object_detection.models import feature_map_generators
fro... | PypiClean |
/AthenaCSS-0.8.0.tar.gz/AthenaCSS-0.8.0/README.md | # - AthenaCSS -
[](https://pypi.org/project/AthenaCSS/) [](https://github.com/DirectiveAthena/VerSC-AthenaColor/blob/master/LICENSE) [:
if textfile:
dat0 = pd.read_csv(textfile, index_col=0, sep=r"\s+")
# ----------------------
ntotal = dat0.shape[1]
k0 = dat0.shape[0]
ngenes = k0-1
genenames = dat0.index[:-1]
... | PypiClean |
/edward-1.3.5.tar.gz/edward-1.3.5/edward/inferences/sgld.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import six
import tensorflow as tf
from edward.inferences.monte_carlo import MonteCarlo
from edward.models import RandomVariable
from edward.util import copy
try:
from edward.models import Normal
except Exc... | PypiClean |
/Heaty-2020.10b2.tar.gz/Heaty-2020.10b2/heaty/gui/heated_space/dialog.py | from typing import Optional, Dict, List
from PyQt5 import QtWidgets as qtw
from heaty.gui.auxiliary.types import ValueType
from heaty.gui.controller import Controller
from heaty.gui.heated_space.building_elements.widget import BuildingElementWidget
from heaty.gui.heated_space.input_fields import get_fields
from heaty.... | PypiClean |
/JaqalPaq-extras-1.2.0a1.tar.gz/JaqalPaq-extras-1.2.0a1/src/jaqalpaq/transpilers/tket/frontend.py | from pytket.circuit import OpType, Circuit, QubitRegister, Bit
from jaqalpaq.core.circuitbuilder import (
CircuitBuilder,
UnscheduledBlockBuilder,
SequentialBlockBuilder,
)
from jaqalpaq.core import Macro
from jaqalpaq.core.algorithm import expand_subcircuits, expand_macros
from jaqalpaq.core.algorithm.v... | PypiClean |
/Chiplotle-0.4.1.tar.gz/Chiplotle-0.4.1/chiplotle/documentation/chapters/faq/index.rst | ***
FAQ
***
**Q:**
I'm trying to use Chiplotle with Windowz but it seems Chiplotle can't find my hardware. What should I do?
**A:**
No communication between Chiplotle and your hardware could be due to a variety of reasons. Check out the :doc:`Hardware </chapters/hardware/index>` section for some possible causes.
**... | PypiClean |
/ChromeController-0.3.26.tar.gz/ChromeController-0.3.26/README.md | ### Chrome Remote Control interface and debug protocol and toolkit. [](https://travis-ci.org/fake-name/ChromeController)[](https://coveralls.io/r/fake-n... | PypiClean |
/BASEmesh-2.2.0.post1-cp311-cp311-win_amd64.whl/basemesh/triangle/_triangulate.py | import atexit
import datetime
import functools
import logging
import os
import pathlib
import platform
import subprocess
import stat
import tempfile
from typing import Any, Callable, Collection, Dict, Iterator, Optional, Tuple, Union
from ._geometry import Element, Node, Segment
from .io import read_node, read_ele, wr... | PypiClean |
/Gato-1.2.7.tar.gz/Gato-1.2.7/EditObjectAttributesDialog.py | from Tkinter import *
from ScrolledText import *
import tkSimpleDialog
import tkMessageBox
from tkColorChooser import askcolor
import copy
import sys
import os
import types
import logging
def typed_assign(var, val):
result = type(var)(val)
result.__dict__ = copy.copy(var.__dict__)
return result
... | PypiClean |
/ocn-xmlchecker.env.tar.gz/env (copy)/lib/python2.7/encodings/utf_32.py | import codecs, sys
### Codec APIs
encode = codecs.utf_32_encode
def decode(input, errors='strict'):
return codecs.utf_32_decode(input, errors, True)
class IncrementalEncoder(codecs.IncrementalEncoder):
def __init__(self, errors='strict'):
codecs.IncrementalEncoder.__init__(self, errors)
self... | PypiClean |
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Model/Vocabulary/Domain/Variables/Leafs/Hashes/SHA2_256.py |
#+---------------------------------------------------------------------------+
#| 01001110 01100101 01110100 01111010 01101111 01100010 |
#| |
#| Netzob : Inferring communication protocols |
#+-... | PypiClean |
/FS-Hopper-0.1.1.tar.gz/FS-Hopper-0.1.1/README.txt | =========
FS-Hopper
=========
FS-Hopper is a simplistic and very thin abstraction layer for
accessing a filesystem directory tree in an object-oriented style.
The only two known filesystem nodes are directories and trees. Both
are implemented as new-style classes. Each method call to them (e.g.
DirectoryNode.get_child... | PypiClean |
/Django-4.2.4.tar.gz/Django-4.2.4/django/db/backends/postgresql/creation.py | import sys
from django.core.exceptions import ImproperlyConfigured
from django.db.backends.base.creation import BaseDatabaseCreation
from django.db.backends.postgresql.psycopg_any import errors
from django.db.backends.utils import strip_quotes
class DatabaseCreation(BaseDatabaseCreation):
def _quote_name(self, n... | PypiClean |
/NikeCA-0.2.13-py3-none-any.whl/_SnowflakePull.py | class SnowflakePull:
import pandas
def snowflake_pull(self, query: str | dict | None, un: str, wh: str, db: str, role: str, schema=None, table=None,
sample_table: bool = False, sample_val: bool = False, table_sample: dict = None,
dtypes_conv=None, separate_datafra... | PypiClean |
/CMSCouchapp-1.3.4-py3-none-any.whl/couchapp/client.py |
import base64
import itertools
import json
import logging
import re
import requests
from urllib.parse import quote
from couchapp import __version__
from couchapp.errors import ResourceNotFound, ResourceConflict, \
PreconditionFailed, RequestFailed, BulkSaveError, Unauthorized, \
InvalidAttachment
USER_AGEN... | PypiClean |
/NlpToolkit-Classification-1.0.16.tar.gz/NlpToolkit-Classification-1.0.16/Classification/Model/KMeansModel.py | from io import TextIOWrapper
from Math.DiscreteDistribution import DiscreteDistribution
from Classification.DistanceMetric.DistanceMetric import DistanceMetric
from Classification.DistanceMetric.EuclidianDistance import EuclidianDistance
from Classification.Instance.Instance import Instance
from Classification.Instan... | PypiClean |
/Authlib-1.2.1.tar.gz/Authlib-1.2.1/authlib/integrations/httpx_client/assertion_client.py | import httpx
from httpx import Response, USE_CLIENT_DEFAULT
from authlib.oauth2.rfc7521 import AssertionClient as _AssertionClient
from authlib.oauth2.rfc7523 import JWTBearerGrant
from .utils import extract_client_kwargs
from .oauth2_client import OAuth2Auth
from ..base_client import OAuthError
__all__ = ['AsyncAsser... | PypiClean |
/EtherChainPy-1.0.80.tar.gz/EtherChainPy-1.0.80/etherchainpy/conversions.py | import json
class Conversions(object):
"""
Conversion Module ...
"""
def __init__(self, client=None):
self.math_base = 10
self.response = None
self.client = client
def to(self, what):
w = what.upper()
if w == "WEI": return self.toWEI()
elif w == "G... | PypiClean |
/Ax_Metrics-0.9.2.tar.gz/Ax_Metrics-0.9.2/py/axonchisel/metrics/foundation/chrono/framespec.py |
from datetime import datetime
from axonchisel.metrics.foundation.ax.obj import AxObj
# ----------------------------------------------------------------------------
# FrameSpec allowed modes
MODES = {
'CURRENT': {}, # current period (or incl reframe), possibly incomplete
'LASTWHOLE': {}, # previous co... | PypiClean |
/CNFgen-0.9.2-py3-none-any.whl/cnfgen/families/subgraph.py | import networkx as nx
from itertools import combinations
from itertools import product
from cnfgen.formula.cnf import CNF
from cnfgen.graphs import Graph
from cnfgen.localtypes import non_negative_int
def non_edges(G):
N = G.order()
for u in range(1, N):
for v in range(u+1, N+1):
if not ... | PypiClean |
/KalturaApiClient-19.3.0.tar.gz/KalturaApiClient-19.3.0/KalturaClient/Plugins/BulkUploadXml.py | from __future__ import absolute_import
from .Core import *
from .BulkUpload import *
from ..Base import (
getXmlNodeBool,
getXmlNodeFloat,
getXmlNodeInt,
getXmlNodeText,
KalturaClientPlugin,
KalturaEnumsFactory,
KalturaObjectBase,
KalturaObjectFactory,
KalturaParams,
KalturaServ... | PypiClean |
/COMETSC-0.1.13.tar.gz/COMETSC-0.1.13/Comet/__main__.py | import os
import argparse
import datetime
import re
import pandas as pd
import numpy as np
from . import hgmd
from . import visualize as vis
from . import quads
import sys
import multiprocessing
import time
import math
import matplotlib.pyplot as plt
import random
import scipy.io
import csv
#from docs.source import c... | PypiClean |
/NlpToolkit-MorphologicalDisambiguation-1.0.16.tar.gz/NlpToolkit-MorphologicalDisambiguation-1.0.16/MorphologicalDisambiguation/AutoDisambiguator.py | from __future__ import annotations
from DataStructure.CounterHashMap import CounterHashMap
from MorphologicalAnalysis.FsmMorphologicalAnalyzer import FsmMorphologicalAnalyzer
from MorphologicalAnalysis.FsmParse import FsmParse
from MorphologicalAnalysis.FsmParseList import FsmParseList
from MorphologicalAnalysis.Morpho... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/admin/static/admin/js/SelectBox.js | var SelectBox = {
cache: new Object(),
init: function(id) {
var box = document.getElementById(id);
var node;
SelectBox.cache[id] = new Array();
var cache = SelectBox.cache[id];
for (var i = 0; (node = box.options[i]); i++) {
cache.push({value: node.value, text... | PypiClean |
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/BootstrapValidator/js/language/be_NL.js | (function($) {
/**
* Belgium (Dutch) language package
* Translated by @dokterpasta
*/
$.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, {
base64: {
'default': 'Geef een geldige base 64 encoded tekst in'
},
between: {
'defau... | PypiClean |
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/builtin/patterns.py | # This tells documentation how to sort this module
sort_order = "mathics.builtin.rules-and-patterns"
from typing import Callable, List, Optional as OptionalType, Tuple, Union
from mathics.builtin.base import (
AtomBuiltin,
BinaryOperator,
Builtin,
PatternError,
PatternObject,
PostfixOperator,
... | PypiClean |
/MODOI-1.0.tar.gz/MODOI-1.0/SimulationClient/SimulationClient.py | from multiprocessing.connection import Client
import time
import logging
import socket
import numpy as np
from SimulationUtilities import Configuration_Processing
from SimulationUtilities.Communication_Codes import comm_code
import LinearAlgebra as la
from CustomBFGS import find_geodesic_midpoint
from MetricValues im... | PypiClean |
/FluGibson-1.2-py3-none-any.whl/FluGibson-1.2.dist-info/DESCRIPTION.rst | # FluGibson

A tool for designing primers to clone influenza polymerase segments from viral cDNA.
# Installation
The installation requires the following packages:
1. `networkx`
2. `biopython`
3. `pandas` (optional)
4. `matplotlib` (optional)
*From Gith... | PypiClean |
/Moose-0.9.9b3.tar.gz/Moose-0.9.9b3/moose/connection/mongodb.py | import time
import copy
from pymongo import MongoClient, errors
from moose.core.exceptions import \
ConnectionTimeout, SuspiciousOperation, ImproperlyConfigured
from moose.core.terminal import stdout
from moose.conf import settings
import logging
logger = logging.getLogger(__name__)
class MongoDBHandler(object):... | PypiClean |
/Dabo-0.9.16.tar.gz/Dabo-0.9.16/dabo/settings.py | import os
import sys
import logging
### Settings - begin
# Event logging is turned off globally by default for performance reasons.
# Set to True (and also set LogEvents on the object(s)) to get logging.
eventLogging = False
# Set the following to True to get all the data in the UI event put into
# the dEvent EventD... | PypiClean |
/Metage2Metabo-1.5.4.tar.gz/Metage2Metabo-1.5.4/metage2metabo/sbml_management.py |
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public Lic... | PypiClean |
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/src/obitools/graph/__init__.py | import sys
from obitools.utils import progressBar
class Indexer(dict):
'''
Allow to manage convertion between an arbitrarly hashable python
value and an unique integer key
'''
def __init__(self):
self.__max=0
self.__reverse=[]
def getLabel(self,index):
... | PypiClean |
/Finance-JindowinData-0.0.7.tar.gz/Finance-JindowinData-0.0.7/jdwdata/SurfaceAPI/stock/risk_model.py | import abc
from typing import List
from sqlalchemy import select, and_, join
from sqlalchemy.ext.automap import automap_base
import pandas as pd
from jdwdata.SurfaceAPI.engine import FetchKDEngine
from jdwdata.SurfaceAPI.universe import Universe
from jdwdata.DataAPI.db.kd.kd_engine import risk_styles, industry_styles
... | PypiClean |
/FlexGet-3.9.6-py3-none-any.whl/flexget/plugins/output/subtitles_periscope.py | import logging
import os
import tempfile
from loguru import logger
from flexget import plugin
from flexget.event import event
logger = logger.bind(name='subtitles')
class PluginPeriscope:
r"""
Search and download subtitles using Periscope by Patrick Dessalle
(http://code.google.com/p/periscope/).
... | PypiClean |
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/mode/jade/jade.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../javascript/javascript"), require("../css/css"), require("../htmlmixed/htmlmixed"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemi... | PypiClean |
/OTLModel/Classes/Onderdeel/Sokkel.py | from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut
from OTLMOW.OTLModel.Classes.ImplementatieElement.AIMNaamObject import AIMNaamObject
from OTLMOW.OTLModel.Datatypes.BooleanField import BooleanField
from OTLMOW.OTLModel.Datatypes.DtcAfmetingDiameterInCm import DtcAfmetingDiameterInCm
from OTLMOW.OTLMode... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/accounting/model/journal_entry_response.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 |
/Nipo-0.0.1.tar.gz/Nipo-0.0.1/jinja2/asyncsupport.py | import asyncio
import inspect
from functools import update_wrapper
from markupsafe import Markup
from .environment import TemplateModule
from .runtime import LoopContext
from .utils import concat
from .utils import internalcode
from .utils import missing
async def concat_async(async_gen):
rv = []
async def... | PypiClean |
/Nxpy-0.6.0.tar.gz/Nxpy-0.6.0/nxpy/ccase/test/env.py |
# Copyright Nicola Musatti 2012 - 2014
# Use, modification, and distribution are subject to the Boost Software
# License, Version 1.0. (See accompanying file LICENSE.txt or copy at
# http://www.boost.org/LICENSE_1_0.txt)
# See http://nxpy.sourceforge.net for library home page. ---------------------
r"""
Clearcase te... | PypiClean |
/Github_Contributor_Matcher-0.1.2-py3-none-any.whl/Github_Contributor_Matcher-0.1.2.dist-info/LICENSE.md | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... | PypiClean |
/Highton-2.3.0.tar.gz/Highton-2.3.0/highton/parsing/xml_decoder.py | from abc import ABCMeta
from xml.etree import ElementTree
from highton import fields
class FieldDoesNotExist(Exception):
def __init__(self, obj, element):
self.obj = obj
self.element = element
def __str__(self):
return 'The field "{tag}" does not exist in {object}'.format(tag=self.el... | PypiClean |
/MusiContour-visimus-0.3.1.tar.gz/MusiContour-visimus-0.3.1/README | MusiContour: musical contour relations calculator
by Marcos da Silva Sampaio and Pedro Kröger (Genos Research Group [1])
This is a software to calculate and plot musical contour relations
operations. MusiContour can process contour related to parameters such
as pitch, duration, dynamics and chord density. This softwa... | PypiClean |
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/codemirror/mode/meta.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use stric... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/dactyl.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 dactyl(path):
"""Edgeworth's counts of dactyls in Virgil's Aeneid
Edgeworth (1885) took th... | PypiClean |
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/_source/lang/km.js | /*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
/**
* @fileOverview Defines the {@link CKEDITOR.lang} object, for the
* Khmer language.
*/
/**#@+
@type String
@example
*/
/**
* Constains the dictionary of lang... | PypiClean |
/MapProxy-1.16.0.tar.gz/MapProxy-1.16.0/mapproxy/image/mask.py |
from mapproxy.compat.image import Image, ImageDraw
from mapproxy.srs import SRS, make_lin_transf
from mapproxy.image import ImageSource
from mapproxy.image.opts import create_image
from mapproxy.util.geom import flatten_to_polygons
def mask_image_source_from_coverage(img_source, bbox, bbox_srs, coverage,
image_op... | PypiClean |
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/core/parser/ast.py | class Node:
"""
The base class for a node or "elements" of an M-Expression.
Really there are only two kinds of nodes: Atoms which are the
expression's leaves and a non-leaf nodes.
"""
def __init__(self, head, *children):
if isinstance(head, Node):
self.head = head
el... | PypiClean |
/Lab93-Finance-0.0.1.4.tar.gz/Lab93-Finance-0.0.1.4/src/Lab93_Finance/account/__init__.py | # Utilize the Alpaca-Py SDK to interact with money.
from alpaca.trading.client import TradingClient
from .positions import Positions
from .assets import Assets
class AccountDetails:
def __init__(self, credentials: tuple) -> None:
key, secret = credentials[0], credentials[1]
self.client = Trading... | PypiClean |
/CGATReport-0.9.1.tar.gz/CGATReport-0.9.1/doc/GallerySeabornScatterPlots.rst | .. _sb_pair_plot:
============
sb-pair-plot
============
The :class:`CGATReportPlugins.Seaborn.PairPlot` displays
:term:`numerical arrays` as pair plots.
.. report:: Trackers.MultipleColumnDataFullExample
:render: sb-pair-plot
:layout: row
:width: 200
A pair-plot from a tracker returning multiple column... | PypiClean |
/CTRs-0.0.10-py3-none-any.whl/ctrs/layers/layer.py |
# In[ ]:
import tensorflow as tf
# In[ ]:
class PredictionLayer(tf.keras.layers.Layer):
def __init__(self, task='binary', use_bias=False, **kwargs):
if task not in ["binary", "multiclass", "regression"]:
raise ValueError("task must be binary,multiclass or regression")
self.task = ... | PypiClean |
/Hooke-1.0.0.alpha%20(Ninken).tar.gz/Hooke-1.0.0.alpha (Ninken)/README | .. -*- coding: utf-8 -*-
What it is
==========
It is a software for the (semiautomatic) analysis and filtering of
force curves. Force curves are the output of an analytical technique
called force spectroscopy. A force spectroscopy experiment usually
requires the analysis of thousands of force curves at a time. As of
... | PypiClean |
/Flask_Compress-1.13-py3-none-any.whl/flask_compress/flask_compress.py |
import sys
import functools
from gzip import GzipFile
import zlib
from io import BytesIO
from collections import defaultdict
import brotli
from flask import request, after_this_request, current_app
if sys.version_info[:2] == (2, 6):
class GzipFile(GzipFile):
""" Backport of context manager support for ... | PypiClean |
/Classeviva.py-1.2.0.tar.gz/Classeviva.py-1.2.0/src/classeviva/collegamenti/collegamenti.py | class Collegamenti:
base: str = "https://web.spaggiari.eu/rest"
accesso: str = f"{base}/v1/auth/login"
stato: str = f"{base}/v1/auth/status"
biglietto: str = f"{base}/v1/auth/ticket"
documenti: str = f"{base}/v1/students/{{}}/documents"
controllo_documento: str = f"{base}/v1/students/{{}}/docume... | PypiClean |
/FairNLP-5.1.0.tar.gz/FairNLP-5.1.0/FNLP/Language/Character.py | from FNLP.Language import Constants
from F import LIST
def is_in_alphabet_lower(content:str):
firstChar = LIST.get(0, content, default=False)
if firstChar in Constants.ALPHABET_LOWER:
return True
return False
def is_in_alphabet_upper(content:str):
firstChar = LIST.get(0, content, default=False... | PypiClean |
/CUP_EXAM-2.6.11.tar.gz/CUP_EXAM-2.6.11/CUP_EXAM/frontend.py | from tkinter import *
from tkinter.messagebox import *
from CUP_EXAM import backend
try:
win = Tk()
win.title('CUP考试安排查询')
win.geometry("400x130")
pre_text = Variable()
ipt = Entry(win, width=37, textvariable=pre_text)
except TclError:
tk_flag = False
print('Show UI failed! But we provide B... | PypiClean |
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/extern/pygments/lexers/__init__.py | import sys
import types
import fnmatch
from os.path import basename
from pygments.lexers._mapping import LEXERS
from pygments.plugin import find_plugin_lexers
from pygments.util import ClassNotFound, bytes
__all__ = ['get_lexer_by_name', 'get_lexer_for_filename', 'find_lexer_class',
'guess_lexer'] + LEXER... | PypiClean |
/Firefly_III_API_Client-2.0.5.0-py3-none-any.whl/firefly_iii_client/paths/v1_categories_id/put.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from firefly_iii_client import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re... | PypiClean |
/Flox-lib-0.20.0.tar.gz/Flox-lib-0.20.0/flox/clipboard.py | import ctypes
from ctypes.wintypes import BOOL, HWND, HANDLE, HGLOBAL, UINT, LPVOID
from ctypes import c_size_t as SIZE_T
# Credit for code goes to Mark Ransom at https://stackoverflow.com/a/25678113
OpenClipboard = ctypes.windll.user32.OpenClipboard
OpenClipboard.argtypes = HWND,
OpenClipboard.restype = BOOL
EmptyC... | PypiClean |
/Grid2Op-1.9.3-py3-none-any.whl/grid2op/Chronics/gridValue.py | import numpy as np
import warnings
from datetime import datetime, timedelta
from abc import ABC, abstractmethod
from grid2op.dtypes import dt_int
from grid2op.Space import RandomObject
from grid2op.Exceptions import EnvError
# TODO sous echantillonner ou sur echantilloner les scenario: need to modify everything that ... | PypiClean |
/MOM-Tapyr-1.6.2.tar.gz/MOM-Tapyr-1.6.2/_Attr/Polisher.py |
from __future__ import division, print_function
from __future__ import absolute_import, unicode_literals
from _MOM import MOM
from _TFL import TFL
import _MOM._Attr
from _TFL.predicate import uniq
from _TFL.pyk import pyk
from _TFL.Regexp ... | PypiClean |
/Baraa_Validator-0.1.1-py3-none-any.whl/BaraaValidator/transactionValidators.py | import glob
import json
import os
import xml.etree.ElementTree as ET
import xmltodict
class __ValidationData:
netValue =0
taxes = []
def setNetValue(self,netValue):
self.netValue=netValue
def addTaxInformation(self,taxRate,taxMoney):
self.taxes.append({'taxRate':taxRate,'taxMoney': taxM... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/yaml_35/yaml/scanner.py |
__all__ = ['Scanner', 'ScannerError']
from .error import MarkedYAMLError
from .tokens import *
class ScannerError(MarkedYAMLError):
pass
class SimpleKey:
# See below simple keys treatment.
def __init__(self, token_number, required, index, line, column, mark):
self.token_number = token_number
... | PypiClean |
/MDSuite-0.2.0-py3-none-any.whl/mdsuite/database/simulation_database.py | import dataclasses
import logging
import pathlib
import time
import typing
from typing import List
import h5py as hf
import numpy as np
import tensorflow as tf
from mdsuite.utils.meta_functions import join_path
log = logging.getLogger(__name__)
@dataclasses.dataclass(frozen=True)
class PropertyInfo:
"""
In... | PypiClean |
/IdracRedfishSupportTest-0.0.7.tar.gz/IdracRedfishSupportTest-0.0.7/ChangeIdracUserPasswordREDFISH.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 chang... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","hu",{title:"Kisegítő utasítások",contents:"Súgó tartalmak. A párbeszédablak bezárásához nyomjon ESC-et.",legend:[{name:"Általános",items:... | PypiClean |
/EMMO-1.0.1-py3-none-any.whl/emmo/patch.py | """This module injects some additional methods into owlready2 classes."""
import types
import owlready2
from owlready2 import ThingClass, PropertyClass, Thing, Restriction, Namespace
from owlready2 import Metadata
# Improve default rendering of entities
def render_func(entity):
if hasattr(entity, 'prefLabel') an... | PypiClean |
/OBP_security_pillar_2-0.0.4.tar.gz/OBP_security_pillar_2-0.0.4/OBP_security_pillar_2/rds/rds_instance_public_access_check.py | import logging
import botocore
from botocore.exceptions import ClientError
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger()
def rds_instance_public_access_check(self) -> dict:
"""
:param self:
:return:
"""
logger.info(" ---Inside rds :: rds_instance_public_access_check()")
... | PypiClean |
/KonFoo-3.0.0-py3-none-any.whl/konfoo/categories.py | from __future__ import annotations
import enum
from typing import Any
class Category(enum.Enum):
""" The :class:`Category` class is a is a subclass of the :class:`~enum.Enum`
class provided by the Python standard module :mod:`enum`, and extends its
base class with methods
- to `describe` a specific ... | PypiClean |
/certfrtracker-1.6.3.tar.gz/certfrtracker-1.6.3/src/certfrtracker/Router.py | import logging
import feedparser
import requests
import sys
import certfrtracker.NVD as NVD
import certfrtracker.html_parser as html_parser
from certfrtracker.sqlite import Sqlite
from certfrtracker.version_parser import systems_filter
logger = logging.getLogger(__name__)
class Report:
"""
Plain object retu... | PypiClean |
/Dililatum-0.1.tar.gz/Dililatum-0.1/dililatum/character.py |
# Dililatum: a quest system for simple RPGs
# Copyright (C) 2010 Niels Serup
# This file is part of Dililatum.
#
# Dililatum 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, ... | PypiClean |
/MotifAnalysisPackage-0.0.1.tar.gz/MotifAnalysisPackage-0.0.1/motifStatistics/html.py |
#################################################################################################
##### LIBRARIES #################################################################################
#################################################################################################
import HTML
###########... | PypiClean |
/FAaDO-0.0.4.tar.gz/FAaDO-0.0.4/fado/runner/ml/model/built_in/mnist_conv_torch.py | import logging
import numpy as np
import os
import torch.nn as nn
import torch.nn.parallel
import torch.nn.functional as F
import torch.optim as optim
from torch.utils.data import TensorDataset, DataLoader
from fado.cli.arguments.arguments import FADOArguments
from fado.runner.ml.model.fado_module import FADOModule
... | PypiClean |
/Mathics-1.0.tar.gz/Mathics-1.0/mathics/web/media/js/utils.js | var HTML_ENTITIES = $H({
'amp': 38,
'gt': 62,
'lt': 60,
'quot': 34,
'nbsp': 160,
'ndash': 8211,
'mdash': 8212,
'euro': 8364,
'copy': 169,
'trade': 8482,
'hellip': 8230,
'ldquo': 8220,
'rdquo': 8221,
'bdquo': 8222,
'reg': 174,
'larr': 8592,
'rarr': 8594
});
var ElementMethods = {
setText: function(ele... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.