id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Aesthete-0.4.2.tar.gz/Aesthete-0.4.2/aesthete/glancer/Line.py
import os, math, sys, getopt, string import pango import random from gtk import gdk from ..tablemaker import PreferencesTableMaker import threading import cairo, gtk, gobject import matplotlib import numpy, numpy.fft import scipy, scipy.interpolate, scipy.optimize from matplotlib.backends.backend_cairo import RendererC...
PypiClean
/GraphSTAM-0.1.5-py3-none-any.whl/TemporalSpatialGraph/GraphModelLib_v6_TemporalSpatial_Large.py
# In[1]: # Model Specific imports import torch import copy import torch.nn.functional as F import torch_geometric from torch_geometric.nn import GATConv, GATv2Conv, Linear, to_hetero, HeteroConv, GCNConv, SAGEConv, GraphConv, HeteroDictLinear from torch import Tensor from torch_geometric.nn.conv import MessagePassi...
PypiClean
/Glances-3.4.0.3.tar.gz/Glances-3.4.0.3/glances/exports/glances_cassandra.py
import sys from datetime import datetime from numbers import Number from glances.logger import logger from glances.exports.glances_export import GlancesExport from cassandra.auth import PlainTextAuthProvider from cassandra.cluster import Cluster from cassandra.util import uuid_from_time from cassandra import InvalidR...
PypiClean
/HarperDB%20SDK-0.2.0.tar.gz/HarperDB SDK-0.2.0/harperdb/wrappers.py
import base64 import csv import datetime import json import requests from .exceptions import * class HarperDBWrapper(): """ HarperDBWrapper provides a high-level, object-oriented interface for HarperDB. From this top-level object an application programmer can make references to schemas, tables, and reco...
PypiClean
/Doxhooks-0.6.0.zip/Doxhooks-0.6.0/doxhooks/functions.py
import importlib import re from doxhooks.errors import ( DoxhooksForbiddenLookupError, DoxhooksImportError, DoxhooksLookupError, DoxhooksValueError) __all__ = [ "findvalue", "importattr", ] def findvalue(object, name): """ Return the named attribute or contained value of an object. Nam...
PypiClean
/Aj_Zsl_nlu-4.2.0-py3-none-any.whl/nlu/pipe/col_substitution/col_substitution_HC.py
import logging logger = logging.getLogger('nlu') def substitute_ner_internal_converter_cols(c, cols, nlu_identifier): """ Fetched fields are: - entities@<storage_ref>_results - entities@<storage_ref>_<metadata> - entities@<storage_ref>_entity - entities@<storage_ref>_confidence ""...
PypiClean
/CombiVEP-0.1.2.tar.gz/CombiVEP-0.1.2/README.txt
============= Pre-requisite ============= * Python 2.7 * pip (http://pypi.python.org/pypi/pip) * numpy (http://pypi.python.org/pypi/numpy) * matplotlib (http://matplotlib.org) ============ Installation ============ To install this module, run the following commands: sudo python setup.py install ===============...
PypiClean
/Clone-ChatGPT-1.3.0.tar.gz/Clone-ChatGPT-1.3.0/src/pandora/launcher.py
import argparse import os from os import getenv from loguru import logger from rich.prompt import Prompt, Confirm from . import __version__ from .bots.legacy import ChatBot as ChatBotLegacy from .bots.server import ChatBot as ChatBotServer from .exts.config import USER_CONFIG_DIR, default_api_prefix from .exts.hooks...
PypiClean
/BootstrapPy-0.6.tar.gz/BootstrapPy-0.6/bootstrappy/configuration.py
import copy import logging import os import sys from paste.config import DispatchingConfig from paste.deploy.converters import asbool from webhelpers.mimehelper import MIMETypes config = DispatchingConfig() sys.setrecursionlimit(1500) class BootstrapPyConfig(dict): '''Pylonsish/pastish config for global vars, ...
PypiClean
/DLTKDL-51.0.8-py3-none-any.whl/dltkdl/data.py
from .imports import * class Dataset: """ Base class for custom datasets in dltk-dl. If subclass of Dataset implements a method to to_tfdataset that converts the data to a tf.Dataset, then this will be invoked by Learner instances just prior to training so fit() will train using a tf.Dataset r...
PypiClean
/Hikka_Pyro-2.0.66-py3-none-any.whl/pyrogram/parser/html.py
import html import logging import re from html.parser import HTMLParser from typing import Optional import pyrogram from pyrogram import raw from pyrogram.enums import MessageEntityType from pyrogram.errors import PeerIdInvalid from . import utils log = logging.getLogger(__name__) class Parser(HTMLParser): MEN...
PypiClean
/LaunchyTomboyPlugin-0.1.2.zip/LaunchyTomboyPlugin-0.1.2/launchytomboyplugin/__init__.py
import os.path as osp import launchy import launchytomboyplugin.lib as plib class Tomboy(launchy.Plugin): def __init__(self): launchy.Plugin.__init__(self) self.tbl = plib.TomboyLib() self.name = self.tbl.name self.hash = launchy.hash(self.name) self.icon = self.tbl.icon ...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/gis/static/gis/js/OLMapWidget.js
'use strict'; class GeometryTypeControl extends ol.control.Control { // Map control to switch type when geometry type is unknown constructor(opt_options) { const options = opt_options || {}; const element = document.createElement('div'); element.className = 'switch-type type-' + options...
PypiClean
/GitCommitBear-0.10.0.tar.gz/GitCommitBear-0.10.0/coalaGitCommitBear/GitCommitBear.py
import nltk import re import shutil import os from urllib.parse import urlparse from coalib.bears.GlobalBear import GlobalBear from dependency_management.requirements.PipRequirement import PipRequirement from coala_utils.ContextManagers import change_directory from coalib.misc.Shell import run_shell_command from coali...
PypiClean
/ECoXiPy-0.4.0.tar.gz/ECoXiPy-0.4.0/ecoxipy/decorators.py
u'''\ :mod:`ecoxipy.decorators` - Decorators for Shorter XML-Creation Code ==================================================================== The decorators in the module :mod:`ecoxipy.decorators` make the code to create XML using :class:`ecoxipy.MarkupBuilder` shorter. **Important:** The decorators use :func:`tin...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/sharepoint/publishing/pages/collection.py
from office365.runtime.client_result import ClientResult from office365.runtime.paths.resource_path import ResourcePath from office365.runtime.paths.service_operation import ServiceOperationPath from office365.runtime.queries.create_entity import CreateEntityQuery from office365.runtime.queries.service_operation import...
PypiClean
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/distutils.ext/obidistutils/serenity/pip/_vendor/distlib/_backport/shutil.py
import os import sys import stat from os.path import abspath import fnmatch import collections import errno from . import tarfile try: import bz2 _BZ2_SUPPORTED = True except ImportError: _BZ2_SUPPORTED = False try: from pwd import getpwnam except ImportError: getpwnam = None try: from grp im...
PypiClean
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/eclib/finddlg.py
__author__ = "Cody Precord <cprecord@editra.org>" __svnid__ = "$Id: finddlg.py 71666 2012-06-06 17:55:42Z CJP $" __revision__ = "$Revision: 71666 $" __all__ = ["FindBox", "FindEvent", "FindPanel", "FindReplaceDlg", "MiniFindReplaceDlg", "AdvFindReplaceDlg", "AFR_STYLE_FINDDIALOG", "AFR_STYLE_REP...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/credit_card/__init__.py
from collections import OrderedDict from typing import Dict, List, Optional, TypeVar from ...typing import DateParseType from .. import BaseProvider localized = True CardType = TypeVar("CardType", "CreditCard", str) class CreditCard: def __init__( self, name: str, prefixes: List[str], ...
PypiClean
/HolmesIV-2021.9.8a1.tar.gz/HolmesIV-2021.9.8a1/mycroft/client/speech/hotword_factory.py
"""Factory functions for loading hotword engines - both internal and plugins. """ from contextlib import suppress from glob import glob import os from os.path import dirname, exists, join, abspath, expanduser, isfile, isdir import platform import posixpath from shutil import rmtree import struct import tempfile from th...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/person/en_IE/__init__.py
from .. import Provider as PersonProvider class Provider(PersonProvider): formats = ( "{{first_name_male}} {{last_name}}", "{{first_name_male}} {{last_name}}", "{{first_name_male}} {{last_name}}", "{{first_name_male}} {{last_name}}", "{{first_name_male}} {{last_name}}-{{las...
PypiClean
/HtmlPageParser-0.0.4.tar.gz/HtmlPageParser-0.0.4/src/json2markdown.py
import sys import json class Json2Markdown(object): def __init__(self): self.markdown = "" # markdown文本 self.tab = " " # 缩进 self.list_tag = '* ' # 列表标签 self.htag = '#' # 标题标签 self.tabletag = "|" # 表格分隔符 self.linktag = "[]" # 链接标签 self.imgtag = "!" # ...
PypiClean
/Gluttony-0.8.zip/Gluttony-0.8/gluttony/commands.py
from __future__ import unicode_literals import sys import os import optparse import json from pip.log import logger from pip.index import PackageFinder from pip.req import RequirementSet, InstallRequirement, parse_requirements from pip.locations import build_prefix, src_prefix from dependency import trace_dependencie...
PypiClean
/Lantz-0.3.zip/Lantz-0.3/lantz/drivers/labjack/_internal/u12.py
import platform import ctypes import os, atexit import math from time import time import struct WINDOWS = "Windows" ON_WINDOWS = (os.name == 'nt') class U12Exception(Exception): """Custom Exception meant for dealing specifically with U12 Exceptions. Error codes are either going to be a LabJackUD error code o...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_internal/operations/prepare.py
import logging import os from pip._vendor import pkg_resources, requests from pip._internal.build_env import BuildEnvironment from pip._internal.download import ( is_dir_url, is_file_url, is_vcs_url, unpack_url, url_to_path, ) from pip._internal.exceptions import ( DirectoryUrlHashUnsupported, HashUnpinned, I...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_ar-lb.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u0635", "\u0645" ], "DAY": [ "\u0627\u0644...
PypiClean
/Camelot-13.04.13-gpl-pyqt.tar.gz/Camelot-13.04.13-gpl-pyqt/camelot/test/http_proxy.py
import sys import base64 from PyQt4.QtCore import QUrl from PyQt4.QtCore import QString from PyQt4.QtCore import QObject from PyQt4.QtCore import pyqtSlot from PyQt4.QtCore import QCoreApplication from PyQt4.QtNetwork import QTcpSocket from PyQt4.QtNetwork import QTcpServer from PyQt4.QtNetwork import QHostAddress f...
PypiClean
/Notable-0.4.2.tar.gz/Notable-0.4.2/notable/static/lib/ace/src-min/theme-merbivore.js
define("ace/theme/merbivore",["require","exports","module","ace/lib/dom"],function(e,t,n){t.isDark=!0,t.cssClass="ace-merbivore",t.cssText=".ace-merbivore .ace_gutter {background: #202020;color: #E6E1DC}.ace-merbivore .ace_print-margin {width: 1px;background: #555651}.ace-merbivore {background-color: #161616;color: #E6...
PypiClean
/Flask-IdentityClient-0.5.2.tar.gz/Flask-IdentityClient-0.5.2/flask_identity_client/views.py
from __future__ import absolute_import, division, print_function, unicode_literals from flask import abort, current_app as app, escape, redirect, request, url_for, session try: from flask_oauth import OAuthRemoteApp, OAuthException, parse_response except ImportError: from flaskext.oauth import OAuthRemoteApp, ...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/dist/sdp-builder.js
"use strict"; var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (receiver, state, kind, f) { if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter"); if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new Typ...
PypiClean
/FeatherStore-0.2.1-py3-none-any.whl/featherstore/_table/astype.py
import pyarrow as pa from featherstore.connection import Connection from featherstore._table import _raise_if from featherstore._table import _table_utils from featherstore._table import common def can_change_type(table, cols, astype): Connection._raise_if_not_connected() _raise_if.table_not_exists(table) ...
PypiClean
/Gbtestapi0.4-0.1a10.tar.gz/Gbtestapi0.4-0.1a10/src/gailbot/core/pipeline/pipeline.py
from typing import List, Dict, Any from dataclasses import dataclass from .component import Component, ComponentState, ComponentResult from gailbot.core.utils.threads import ThreadPool from gailbot.core.utils.logger import makelogger import networkx as nx Failure = ComponentResult(ComponentState.FAILED, None, 0) log...
PypiClean
/edward-1.3.5.tar.gz/edward-1.3.5/edward/util/random_variables.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import six import tensorflow as tf from copy import deepcopy from edward.models.random_variable import RandomVariable from edward.models.random_variables import TransformedDistribution from ...
PypiClean
/LinkChecker-10.2.1-py3-none-any.whl/linkcheck/plugins/anchorcheck.py
import urllib.parse from . import _ContentPlugin from .. import log, LOG_PLUGIN from ..htmlutil import linkparse class AnchorCheck(_ContentPlugin): """Checks validity of HTML anchors.""" def applies_to(self, url_data): """Check for HTML anchor existence.""" return url_data.is_html() and url_...
PypiClean
/Amplo-0.17.0.tar.gz/Amplo-0.17.0/amplo/api/storage.py
from __future__ import annotations import io import json import os from datetime import datetime from pathlib import Path from typing import TYPE_CHECKING, Any import pandas as pd from azure.storage.blob import BlobServiceClient from requests import exceptions from typing_extensions import Self from amplo.utils.uti...
PypiClean
/Grimsel-0.9.0.tar.gz/Grimsel-0.9.0/grimsel/core/parameters.py
import pyomo.environ as po import pyomo.core.base.sets as poset from pyomo.core.base.set_types import Reals import itertools import numpy as np import pandas as pd import wrapt from collections import namedtuple from grimsel.auxiliary.aux_m_func import set_to_list import grimsel.core.io as io from grimsel import _get_...
PypiClean
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/demo/sampler/features/layouts/SplitPanelPositioningExample.py
from muntjac.terminal.sizeable import ISizeable from muntjac.data.property import IValueChangeListener from muntjac.api import \ (VerticalLayout, HorizontalLayout, VerticalSplitPanel, Label, HorizontalSplitPanel, OptionGroup, Alignment) class SplitPanelPositioningExample(VerticalLayout): def __init__(s...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@types/node/tty.d.ts
declare module 'tty' { import * as net from 'node:net'; /** * The `tty.isatty()` method returns `true` if the given `fd` is associated with * a TTY and `false` if it is not, including whenever `fd` is not a non-negative * integer. * @since v0.5.8 * @param fd A numeric file descriptor ...
PypiClean
/MeUtils-2023.8.29.13.9.44-py3-none-any.whl/meutils/notice/wechat.py
from meutils.pipe import * from wechatpy.enterprise import WeChatClient as _WeChatClient class WeChatClient(_WeChatClient): def __init__(self, corp_id, secret, api_base_url=None, agent_id=None, access_token=None, session=None, timeout=None, au...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/store/DataStore.js
define("dojo/store/DataStore",["../_base/lang","../_base/declare","../_base/Deferred","../_base/array","./util/QueryResults"],function(_1,_2,_3,_4,_5){ return _2("dojo.store.DataStore",null,{target:"",constructor:function(_6){ _1.mixin(this,_6); if(!"idProperty" in _6){ var _7; try{ _7=this.store.getIdentityAttributes(...
PypiClean
/Nodes-1.2.tar.gz/Nodes-1.2/nodes/globs.py
# Copyright (c) Alexander Sedov 2008 # This file is part of Nodes. # # Nodes is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Node...
PypiClean
/KalturaApiClient-19.3.0.tar.gz/KalturaApiClient-19.3.0/KalturaClient/Plugins/Conference.py
from __future__ import absolute_import from .Core import * from ..Base import ( getXmlNodeBool, getXmlNodeFloat, getXmlNodeInt, getXmlNodeText, KalturaClientPlugin, KalturaEnumsFactory, KalturaObjectBase, KalturaObjectFactory, KalturaParams, KalturaServiceBase, ) ########## enu...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/tailwindcss/src/cli/build/plugin.js
import path from 'path' import fs from 'fs' import postcssrc from 'postcss-load-config' import { lilconfig } from 'lilconfig' import loadPlugins from 'postcss-load-config/src/plugins' // Little bit scary, looking at private/internal API import loadOptions from 'postcss-load-config/src/options' // Little bit scary, loo...
PypiClean
/GTW-1.2.6.tar.gz/GTW-1.2.6/_OMP/_SWP/Page.py
from __future__ import unicode_literals from _MOM.import_MOM import * from _GTW import GTW from _GTW._OMP._SWP.Format import A_Format import _GTW._OMP._SWP.Object_PN from _TFL.I18N import _, _T, _Tn import _TFL.Decorator _Ancestor_Essence = GTW....
PypiClean
/LumberMill-0.9.5.7-py3-none-any.whl/lumbermill/input/StdIn.py
import os import socket import sys import lumbermill.utils.DictUtils as DictUtils from lumbermill.BaseThreadedModule import BaseThreadedModule from lumbermill.utils.Decorators import ModuleDocstringParser @ModuleDocstringParser class StdIn(BaseThreadedModule): """ Reads data from stdin and sends it to its ou...
PypiClean
/Markdown-3.4.4-py3-none-any.whl/markdown/htmlparser.py
import re import importlib.util import sys # Import a copy of the html.parser lib as `htmlparser` so we can monkeypatch it. # Users can still do `from html import parser` and get the default behavior. spec = importlib.util.find_spec('html.parser') htmlparser = importlib.util.module_from_spec(spec) spec.loader.exec_mo...
PypiClean
/AmFast-0.5.3-r541.tar.gz/AmFast-0.5.3-r541/amfast/remoting/channel.py
import time import threading import uuid import amfast from amfast.class_def import ClassDefMapper import connection_manager as cm import subscription_manager as sm import flex_messages as messaging import thread_pool class ChannelError(amfast.AmFastError): pass class SecurityError(ChannelError): pass clas...
PypiClean
/Nirjas-1.0.1.tar.gz/Nirjas-1.0.1/nirjas/languages/ruby.py
from nirjas.binder import CommentSyntax, contSingleLines from nirjas.output import ScanOutput, SingleLine, MultiLine def rubyExtractor(file): """ Extract comments from Ruby file. :param file: File to scan :type file: string :return: Scan output :rtype: ScanOutput """ result = CommentSy...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/contenttypes/management.py
from django.contrib.contenttypes.models import ContentType from django.db import DEFAULT_DB_ALIAS, router from django.db.models import get_apps, get_models, signals from django.utils.encoding import smart_text from django.utils import six from django.utils.six.moves import input def update_contenttypes(app, created_m...
PypiClean
/Ambit_Stochastics-1.0.6-py3-none-any.whl/ambit_stochastics/helpers/adaptive_rejection_sampling_tangents.py
import numpy as np def tangents(x,a,b,nr_values,f,f_der): assert (a <= x and x <= b) if x == a: return f(a) elif x == b: return f(b) increment = (b-a)/ (nr_values-1) #a , a + i , a + 2*i ,..., a + nr_values * i interval_index = int(np.floor((nr_values-1) * (x-a)/(b-a))) m...
PypiClean
/ERAlchemy-1.2.10.tar.gz/ERAlchemy-1.2.10/eralchemy/parser.py
from eralchemy.models import Table, Relation, Column class ParsingException(Exception): base_traceback = 'Error on line {line_nb}: {line}\n{error}' hint = None @property def traceback(self): rv = self.base_traceback.format( line_nb=getattr(self, 'line_nb', '?'), line=g...
PypiClean
/Office365_REST_with_timeout-0.1.1-py3-none-any.whl/office365/runtime/client_object_collection.py
from office365.runtime.client_object import ClientObject from office365.runtime.client_result import ClientResult from office365.runtime.http.request_options import RequestOptions from office365.runtime.types.EventHandler import EventHandler class ClientObjectCollection(ClientObject): def __init__(self, context,...
PypiClean
/ControlMyPi-0.1.4.tar.gz/ControlMyPi-0.1.4/controlmypi/__init__.py
import sys import sleekxmpp import json import logging import threading import datetime import httplib # Python versions before 3.0 do not use UTF-8 encoding # by default. To ensure that Unicode is handled properly # throughout SleekXMPP, we will set the default encoding # ourselves to UTF-8. if sys.version_info < (3,...
PypiClean
/Flask-auto_modules-1.0.tar.gz/Flask-auto_modules-1.0/README.md
Библиотечка для импорта blueprint-ов в более удобном формате #apps.user.app from flask import Blueprint applictaion = Blueprint('user', __name__, url_prefix='/') # settings.app LIST_APP = ['apps.user.app'] # app.py from auto_modules.auto_modules import AutoModules ...
PypiClean
/Montreal-Forced-Aligner-3.0.0a3.tar.gz/Montreal-Forced-Aligner-3.0.0a3/montreal_forced_aligner/acoustic_modeling/triphone.py
from __future__ import annotations import logging import os import typing from pathlib import Path from typing import TYPE_CHECKING, Dict, List from _kalpy.gmm import gmm_init_model, gmm_init_model_from_previous from _kalpy.hmm import convert_alignments from _kalpy.tree import automatically_obtain_questions, build_tr...
PypiClean
/Flask_Cognito_Extended-0.2.7-py3-none-any.whl/flask_cognito_extended/decorators.py
from functools import wraps from flask import request, redirect from re import split from werkzeug.exceptions import BadRequest try: from flask import _app_ctx_stack as ctx_stack except ImportError: # pragma: no cover from flask import _request_ctx_stack as ctx_stack from flask_cognito_extended.config import...
PypiClean
/Askpyro-1.73.5.tar.gz/Askpyro-1.73.5/README.md
# ᴀsᴋ-ᴘʏʀᴏ :-> > sᴛᴀʀᴛ ᴀsᴋ-ᴄʟɪᴇɴᴛ ᴡɪᴛʜ @ᴀᴘᴘ [ᴘʏʀᴏɢʀᴀᴍ ᴄʟɪᴇɴᴛ] ```python from askpyro import Askclient from pyrogram import Client ,filters app = Client("my_account") read = Askclient(app) @app.on_message(filters.command("start")) async def start_pm(c: app, m: Message): answer = await read.ask(m, te...
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/job/pt_BR/__init__.py
from .. import Provider as BaseProvider # Source: Gist # https://raw.githubusercontent.com/neves/escolar/master/profissoes.txt class Provider(BaseProvider): jobs = [ "Acompanhante", "Açougueiro", "Acupunturista", "Adestrador de animais", "Administrador", "Administr...
PypiClean
/Oak-0.1.8.1.tar.gz/Oak-0.1.8.1/oak/launcher.py
import sys import os import logging from optparse import OptionParser, OptionGroup import oak class Launcher(object): "The entrypoint for command line calls" LOG_LEVELS = { 'debug': logging.DEBUG, 'info': logging.INFO, 'warning': logging.WARNING, 'error': logging.ERROR, ...
PypiClean
/ESMValCore-2.9.0rc1.tar.gz/ESMValCore-2.9.0rc1/esmvalcore/preprocessor/_mask.py
import logging import os import cartopy.io.shapereader as shpreader import dask.array as da import iris import numpy as np import shapely.vectorized as shp_vect from iris.analysis import Aggregator from iris.util import rolling_window from ._supplementary_vars import register_supplementaries logger = logging.getLogg...
PypiClean
/ConversionKit-0.3.4.tar.gz/ConversionKit-0.3.4/doc/source/manual.rst
ConversionKit Manual ++++++++++++++++++++ ConversionKit is a general purpose toolkit designed from the ground up to: * Allow you to encapsulate conversion functionality into reusable components * Provide a unified API to perform a conversion, no matter how complex * Simplify the process of performing conversions The...
PypiClean
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Model/Vocabulary/Domain/Variables/Leafs/Hmacs/HMAC_SHA1.py
#+---------------------------------------------------------------------------+ #| 01001110 01100101 01110100 01111010 01101111 01100010 | #| | #| Netzob : Inferring communication protocols | #+-...
PypiClean
/DJModels-0.0.6-py3-none-any.whl/djmodels/core/management/commands/flush.py
from importlib import import_module from djmodels.apps import apps from djmodels.core.management.base import BaseCommand, CommandError from djmodels.core.management.color import no_style from djmodels.core.management.sql import emit_post_migrate_signal, sql_flush from djmodels.db import DEFAULT_DB_ALIAS, connections ...
PypiClean
/HalWeb-0.6.0.tar.gz/HalWeb-0.6.0/src/halicea/baseProject/lib/halicea/decorators.py
from conf.settings import DEBUG from lib import messages from lib.halicea import ContentTypes as ct import traceback,logging from lib.halicea import cache import warnings from lib.halicea.helpers import ClassImport def property(function): keys = 'fget', 'fset', 'fdel' func_locals = {'doc':function.__doc__} ...
PypiClean
/Mesh-Client-2.1.2.tar.gz/Mesh-Client-2.1.2/README.md
MESH Client =========== A Python client for [NHS Digital's MESH API](https://digital.nhs.uk/developer/api-catalogue/message-exchange-for-social-care-and-health-api). Installation ------------ ```bash pip install mesh-client ``` Example use ----------- ```python from mesh_client import MeshClient, NHS_DEP_ENDPOINT ...
PypiClean
/Avpy-0.1.3.tar.gz/Avpy-0.1.3/examples/encoding/encodeImage.py
import sys import copy from avpy import Media if __name__ == '__main__': # cmdline from optparse import OptionParser usage = "usage: %prog -m foo.avi -o 140" parser = OptionParser(usage=usage) parser.add_option('-m', '--media', help='play media') parser.add_option('-o', '--of...
PypiClean
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/inginious/frontend/static/js/codemirror/mode/forth/forth.js
// Author: Aliaksei Chapyzhenka (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);...
PypiClean
/MongoAlchemy-0.21.tar.gz/MongoAlchemy-0.21/mongoalchemy/fields/base.py
from __future__ import print_function from mongoalchemy.py3compat import * import itertools from datetime import datetime from bson.objectid import ObjectId from bson.binary import Binary from bson.dbref import DBRef import functools from copy import deepcopy from mongoalchemy.util import UNSET from mongoalchemy.query...
PypiClean
/MIDIUtil-1.2.1.tar.gz/MIDIUtil-1.2.1/README.rst
MIDIUtil ======== |build| This is just a brief adumbration. Full documentation for the release version can be found at `Read the Docs <http://midiutil.readthedocs.io/>`_. The documentation for the development version is `here <http://midiutil.readthedocs.io/en/latest/>`_. |docs| Introduction ------------ MIDIUtil ...
PypiClean
/OBP_reliability_pillar_u1-0.2.1-py3-none-any.whl/OBP_reliability_pillar_u1/elastic_beanstalk/enhanced_health_reporting_enabled.py
import botocore import logging from botocore.exceptions import ClientError logging.basicConfig(level=logging.INFO) logger = logging.getLogger() def enhanced_health_reporting_enabled(self, regions) -> dict: """ :param regions: :param self: :return: """ logger.info(" ---Inside elastic_beanstal...
PypiClean
/KratosFluidDynamicsApplication-9.4-cp38-cp38-win_amd64.whl/KratosMultiphysics/FluidDynamicsApplication/fluid_dynamics_analysis.py
from sys import argv import KratosMultiphysics as Kratos from KratosMultiphysics.analysis_stage import AnalysisStage from KratosMultiphysics.FluidDynamicsApplication import python_solvers_wrapper_fluid class FluidDynamicsAnalysis(AnalysisStage): '''Main script for fluid dynamics simulations using the navier_stok...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/tqdm/tqdm/utils.py
import os import re import sys from functools import wraps from warnings import warn from weakref import proxy # py2/3 compat try: _range = xrange except NameError: _range = range try: _unich = unichr except NameError: _unich = chr try: _unicode = unicode except NameError: _unicode = str try...
PypiClean
/Bot-Base-1.7.1.tar.gz/Bot-Base-1.7.1/bot_base/wraps/meta.py
import asyncio from typing import Optional, TYPE_CHECKING, Any try: import nextcord except ModuleNotFoundError: import disnake as nextcord from . import channel if TYPE_CHECKING: from bot_base import BotBase class Meta: """ Used to inject functionality into multiple class's and reduce code ...
PypiClean
/CASPy3-2.2.0.tar.gz/CASPy3-2.2.0/caspy3/cli.py
from PyQt5.QtCore import QObject, QThreadPool from PyQt5.QtWidgets import QApplication from .qt_assets.tabs.worker import BaseWorker import typing as ty import traceback import click import sys class Cli(QObject): def __init__( self, command: str, params: list, copy: int, worker: ty.Type[BaseWorker] ...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/gis/geos/prototypes/errcheck.py
from ctypes import c_void_p, string_at from django.contrib.gis.geos.error import GEOSException from django.contrib.gis.geos.libgeos import GEOSFuncFactory # Getting the `free` routine used to free the memory allocated for # string pointers returned by GEOS. free = GEOSFuncFactory("GEOSFree") free.argtypes = [c_void_p...
PypiClean
/7Wonder-RL-Lib-0.1.1.tar.gz/7Wonder-RL-Lib-0.1.1/CONTRIBUTING.md
# CONTRIBUTION GUIDELINE ## Prerequisites * Python >=3.9 ## Contribution 1. Fork the library and clone to your local machine 2. Install library and dependencies using * ```make develop # Download all prerequisites ``` * ```make build # Build the library``` * ```make install # Install the gym environment``` ...
PypiClean
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/core/models.py
from json import loads from urllib.parse import urlencode from urllib.request import urlopen from django.apps import apps from django.contrib.contenttypes.fields import GenericForeignKey from django.db import models from django.db.models.base import ModelBase from django.template.defaultfilters import truncatewords_ht...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/widget/AnalogGauge.js
if(!dojo._hasResource["dojox.widget.AnalogGauge"]){ dojo._hasResource["dojox.widget.AnalogGauge"]=true; dojo.provide("dojox.widget.AnalogGauge"); dojo.require("dojox.gfx"); dojo.require("dojox.widget.gauge._Gauge"); dojo.experimental("dojox.widget.AnalogGauge"); dojo.declare("dojox.widget.gauge.AnalogLineIndicator",[do...
PypiClean
/LumberMill-0.9.5.7-py3-none-any.whl/lumbermill/output/Kafka.py
import sys import kafka import logging from lumbermill.constants import IS_PYPY from lumbermill.BaseThreadedModule import BaseThreadedModule from lumbermill.utils.Decorators import ModuleDocstringParser from lumbermill.utils.DynamicValues import mapDynamicValue # For pypy the default json module is the fastest. if IS...
PypiClean
/ChatGPTonWhatsApp-0.0.3.tar.gz/ChatGPTonWhatsApp-0.0.3/README.md
# ChatGPTonWhatsApp Package The **\[[ChatGPTonWhatsApp](https://chatgptonwhatsapp.com/) ]** package is a Python package that allows you to integrate the OpenAI language model ChatGPT with WhatsApp. With this package, you can create a chatbot that can communicate with users through WhatsApp. ## Installation To insta...
PypiClean
/BioTEMPy-2.1.0a0-py3-none-any.whl/TEMPy/script/sccc.py
import os import csv import argparse from TEMPy.cli.arg_parser import TEMPyArgParser from TEMPy.protein.scoring_functions import FastSCCC def write_tabular_scores(filename, chain_scores, delimiter): with open(filename, "w") as tabular_file: tabular_writer = csv.writer(tabular_file, delimiter=delimiter) ...
PypiClean
/JupyterPiDAQ-0.8.1.tar.gz/JupyterPiDAQ-0.8.1/jupyterpidaq/Boards/PiGPIO/ADS1115.py
import time import numpy as np import logging import Adafruit_PureIO.smbus as smbus import Adafruit_ADS1x15 from jupyterpidaq.Boards import Board logger = logging.getLogger(__name__) # Optimized for Pi 3B+ RATE = 475 # 475 Hz with oversampling best S/N on Pi 3B+ per unit time interval. # TODO: a more sophisticate...
PypiClean
/Kahi_staff_udea_person-0.0.2a0.tar.gz/Kahi_staff_udea_person-0.0.2a0/kahi_staff_udea_person/Kahi_staff_udea_person.py
from kahi.KahiBase import KahiBase from pymongo import MongoClient, TEXT from pandas import read_excel from time import time from datetime import datetime as dt import re class Kahi_staff_udea_person(KahiBase): config = {} def __init__(self, config): self.config = config self.client = Mongo...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/rails.js
define(["dijit","dojo","dojox","dojo/require!dojo/NodeList-traverse"],function(_1,_2,_3){ _2.provide("dojox.rails"); _2.require("dojo.NodeList-traverse"); _3.rails.live=function(_4,_5,fn){ if(_2.isIE&&_5.match(/^(on)?submit$/i)){ _3.rails.live(_4,"click",function(_6){ var _7=_6.target,_8=_7.tagName.toLowerCase(); if((_...
PypiClean
/Hyperbola-0.0.3.tar.gz/Hyperbola-0.0.3/hyperbola/hyperbola_model.py
from zope.interface import implements from epsilon.extime import Time from axiom.item import Item from axiom.dependency import dependsOn from axiom.upgrade import registerUpgrader from xmantissa import ixmantissa, webapp, webnav, sharing from twisted.python.components import registerAdapter from hyperbola.ihyper...
PypiClean
/CellProfiler-4.2.6.tar.gz/CellProfiler-4.2.6/cellprofiler/modules/rescaleintensity.py
import numpy import skimage.exposure from cellprofiler_core.image import Image from cellprofiler_core.module import ImageProcessing from cellprofiler_core.setting import Measurement from cellprofiler_core.setting.choice import Choice from cellprofiler_core.setting.range import FloatRange from cellprofiler_core.setting....
PypiClean
/MGP_SDK-1.1.1.tar.gz/MGP_SDK-1.1.1/src/MGP_SDK/account_service/activations.py
import requests import MGP_SDK.process as process class Activations: def __init__(self, auth): self.base_url = auth.api_base_url self.response = None self.version = auth.version self.auth = auth def search(self, search): """ Function searches through all activ...
PypiClean
/Deliverance-0.6.1.tar.gz/Deliverance-0.6.1/deliverance/media/clientside.js
if (typeof console == 'undefined') { console = {log: function () {}}; } if (typeof Deliverance == 'undefined') { Deliverance = {}; } Deliverance.deliveranceURL = '__DELIVERANCE_URL__'; Deliverance.startAction = function (location) { var req = XMLHttpRequest(); req.onreadystatechange = function () { ...
PypiClean
/DBSP_DRP-1.0.0-py3-none-any.whl/dbsp_drp/adjust_splicing.py
import argparse import os from typing import Optional, List import matplotlib.pyplot as plt from matplotlib.widgets import TextBox, Button, CheckButtons from astropy.io import fits from PySide2 import QtWidgets from dbsp_drp.splicing import adjust_and_combine_overlap from dbsp_drp import show_spectrum def entrypoi...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Platform/virtualenv.py
import os import sys import SCons.Util virtualenv_enabled_by_default = False def _enable_virtualenv_default(): return SCons.Util.get_os_env_bool('SCONS_ENABLE_VIRTUALENV', virtualenv_enabled_by_default) def _ignore_virtualenv_default(): return SCons.Util.get_os_env_bool('SCONS_IGNORE_VIRTUALENV', False) ...
PypiClean
/guibits-1.0-py3-none-any.whl/manual/menu_example3.py
from guibits1_0 import menuing,mousing,type_checking2_0,windowing # author R.N.Bosworth # version 24 Sep 22 16:01 """ Example of a drop-down menu from a right mouse-click. Copyright (C) 2019,2021,2022 R.N.Bosworth This program is free software: you can redistribute it and/or modify it under the terms of the GNU ...
PypiClean
/NitroFE-0.0.10.tar.gz/NitroFE-0.0.10/README.md
![zoofs Logo Header](asserts/rescaled_logo.jpeg) # NitroFE ( Nitro Feature Engineering ) [![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=jaswinder9051998_zoofs&metric=sqale_rating)](https://sonarcloud.io/dashboard?id=NITRO-AI_NitroFE) [![Reliability Rating](https://sonarcloud.io/ap...
PypiClean
/125softNLP-0.0.1-py3-none-any.whl/pysoftNLP/ner/pre.py
import pysoftNLP.kashgari as kashgari import re import time import os import pandas as pd def load_model(model_name = 'ner'): basis = 'D:\pysoftNLP_resources\entity_recognition' model_path = os.path.join(basis, model_name) load_start = time.time() loaded_model = kashgari.utils.load_model(model_path) ...
PypiClean
/GraphCASE-0.0.9.tar.gz/GraphCASE-0.0.9/GAE/dataFeeder.py
# MAC OS bug import os os.environ['KMP_DUPLICATE_LIB_OK']='True' # TensorFlow and tf.keras import tensorflow as tf from tensorflow import keras import datetime from multiprocessing.pool import ThreadPool # Helper libraries import numpy as np from pathlib import Path import os import csv class DataFeeder: """ ...
PypiClean
/Dejavu-1.5.0.zip/Dejavu-1.5.0/dejavu/storage/db.py
try: # Builtin in Python 2.5? decimal except NameError: try: # Module in Python 2.3, 2.4 import decimal except ImportError: decimal = None try: import fixedpoint except ImportError: fixedpoint = None import threading import warnings import dejavu from dejavu import lo...
PypiClean
/OMERO-3Dscript-0.0.2.tar.gz/OMERO-3Dscript-0.0.2/README.md
Usage: ====== * Open OMERO.web in the browser * Open OMERO.3Dscript: * by clicking on '3Dscript' on the top links * right-click an image in the explorer and select 'Open with' -> '3Dscript' * Enter the animation text (see https://bene51.github.io/3Dscript/ for more details) * Click on 'Render' Requirements: ==...
PypiClean
/IdracRedfishSupportTest-0.0.7.tar.gz/IdracRedfishSupportTest-0.0.7/InsertLclogCommentREDFISH.py
import argparse import getpass import json import logging import requests import sys 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 add a custom string comment...
PypiClean
/Lurlene-14-py3-none-any.whl/lurlene/transform.py
# This file is part of Lurlene. # # Lurlene 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. # # Lurlene is distributed in the hope tha...
PypiClean
/Flask-Registry-0.2.0.tar.gz/Flask-Registry-0.2.0/flask_registry/base.py
from __future__ import absolute_import, unicode_literals from flask import current_app from werkzeug.local import LocalProxy try: from collections import MutableMapping except ImportError: from collection.abc import MutableMapping class RegistryError(Exception): """ Exception class raised for user ...
PypiClean
/Cahoots-0.5.2.zip/Cahoots-0.5.2/cahoots/confidence/normalizers/number.py
from cahoots.confidence.normalizers.base import BaseNormalizer class NumberWithNonNumbers(BaseNormalizer): """Normalizes All Number Results Where Non-Numbers Are Present""" @staticmethod def test(types, _): """ We want to normalize if there are Numbers as well as non numbers :par...
PypiClean