id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/Adafruit_BluefruitLE-0.9.10.tar.gz/Adafruit_BluefruitLE-0.9.10/Adafruit_BluefruitLE/interfaces/gatt.py
import abc class GattService(object): """Base class for a BLE GATT service.""" __metaclass__ = abc.ABCMeta @abc.abstractproperty def uuid(self): """Return the UUID of this GATT service.""" raise NotImplementedError @abc.abstractmethod def list_characteristics(self): "...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/plugins/a11yhelp/dialogs/lang/bg.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("a11yhelp","bg",{title:"Инструкции за достъпност",contents:"Съдържание на помощта. За да затворите този диалогов прозорец, натисн...
PypiClean
/LabExT_pkg-2.2.0.tar.gz/LabExT_pkg-2.2.0/LabExT/View/LiveViewer/Cards/LaserCard.py
from tkinter import Label, Button, StringVar from LabExT.Instruments.InstrumentAPI import InstrumentException from LabExT.Measurements.MeasAPI import MeasParamFloat from LabExT.View.Controls.ParameterTable import ParameterTable from LabExT.View.LiveViewer.Cards.CardFrame import CardFrame, show_errors_as_popup class ...
PypiClean
/HalRing_Lib-1.1.0-py3-none-any.whl/halring/redis_lib/halring_redis.py
import json import os import time import sys import redis nga_root = os.path.abspath(__file__).split("utils")[0] sys.path.append(nga_root) from loguru import logger class RedisUtil(object): def __init__(self): # env_init = EnvironmentInit() # self._redis_producer = env_init.redis_init() ...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/@types/node/ts4.8/process.d.ts
declare module 'process' { import * as tty from 'node:tty'; import { Worker } from 'node:worker_threads'; global { var process: NodeJS.Process; namespace NodeJS { // this namespace merge is here because these are specifically used // as the type for process.stdin, pro...
PypiClean
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/utils/html.py
from __future__ import absolute_import, unicode_literals from future.builtins import chr, int, str try: from html.parser import HTMLParser, HTMLParseError from html.entities import name2codepoint except ImportError: # Python 2 from HTMLParser import HTMLParser, HTMLParseError from htmlentitydefs impor...
PypiClean
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/detect-libc/README.md
# detect-libc Node.js module to detect details of the C standard library (libc) implementation provided by a given Linux system. Currently supports detection of GNU glibc and MUSL libc. Provides asychronous and synchronous functions for the family (e.g. `glibc`, `musl`) and version (e.g. `1.23`, `1.2.3`). The versi...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/polyps3.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 polyps3(path): """Familial Andenomatous Polyposis Data from a placebo-controlled trial of ...
PypiClean
/ChatAudio-2023.4.25.9.51.6-py3-none-any.whl/chatllm/applications/Question2Answer.py
import types from meutils.pipe import * from meutils.docarray_ import DocumentArray from meutils.decorators import clear_cuda_cache from meutils.request_utils.crawler import Crawler class Question2Answer(object): def __init__(self, chat_func, prompt_template=None): self.chat_func = chat_func # se...
PypiClean
/ApiamticPackage5-1.5.6-py3-none-any.whl/swaggerpetstore/models/api_response.py
from swaggerpetstore.api_helper import APIHelper class ApiResponse(object): """Implementation of the 'ApiResponse' model. TODO: type model description here. Attributes: code (int): TODO: type description here. mtype (string): TODO: type description here. message (string): TODO: ...
PypiClean
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/media/templatetags/media_tags.py
from __future__ import unicode_literals from django.conf import settings from django import template from django import forms from django.template import Context from cubane.lib.templatetags import value_or_literal, value_or_none, template_error from cubane.lib.image import get_ext from cubane.lib.template import get_t...
PypiClean
/Babel-lex-2.0-lex-20150116.tar.gz/Babel-lex-2.0-lex-20150116/docs/cmdline.rst
.. -*- mode: rst; encoding: utf-8 -*- .. _cmdline: ====================== Command-Line Interface ====================== Babel includes a command-line interface for working with message catalogs, similar to the various GNU ``gettext`` tools commonly available on Linux/Unix systems. When properly installed, Babel pr...
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/integrations/handlers/timegpt_handler/timegpt_handler.py
from typing import Optional, Dict import pandas as pd from nixtlats import TimeGPT from mindsdb.integrations.libs.base import BaseMLEngine from mindsdb.integrations.utilities.handler_utils import get_api_key # TODO: add E2E tests. class TimeGPTHandler(BaseMLEngine): """ Integration with the Nixtla TimeGPT m...
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/automotive/sk_SK/__init__.py
import string from .. import Provider as AutomotiveProvider class Provider(AutomotiveProvider): """Implement automotive provider for ``sk_SK`` locale. Sources: - https://en.wikipedia.org/wiki/Vehicle_registration_plates_of_Slovakia """ license_plate_prefix = [ "BA", "BL", ...
PypiClean
/Flask-Pyco-0.2.0.tar.gz/Flask-Pyco-0.2/flask_pyco/page.py
import yaml import re import os import mistune from . import utils from datetime import time,date,datetime from flask import Markup,render_template_string class FileContentError(Exception): pass class Page: def __init__(self,site,filepath,filecontent): self.site = site self.filepath = filep...
PypiClean
/ArduinoControllServer-0.1.1555408086-py3-none-any.whl/arduinocontrollserver/arduinocontrollserver.py
import json import logging import os import re import shutil try: # python 2 from SimpleHTTPServer import SimpleHTTPRequestHandler from BaseHTTPServer import HTTPServer as BaseHTTPServer except ImportError: # python 3 from http.server import HTTPServer as BaseHTTPServer, SimpleHTTPRequestHandler ...
PypiClean
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/core/static/mezzanine/tinymce/langs/zh_TW.js
tinymce.addI18n('zh_TW',{ "Cut": "\u526a\u4e0b", "Heading 5": "\u6a19\u984c 5", "Header 2": "\u6a19\u984c 2", "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "\u60a8\u7684\u700f\u89bd\u5668\u4e0d\u652f\u63f4\u5b58\u53d6\u526a\u8cbc\u7c3f\uff0c\u53e...
PypiClean
/Flask_Caching-2.0.2-py3-none-any.whl/flask_caching/__init__.py
import base64 import functools import hashlib import inspect import logging import uuid import warnings from collections import OrderedDict from typing import Any from typing import Callable from typing import Optional from typing import Tuple from typing import Union from flask import current_app from flask import Fl...
PypiClean
/DynamicProcessWorker_preafixed-1.0.7-py3-none-any.whl/DynamicProcessWorker_preafixed/process/ProcessManager.py
import json from multiprocessing import Queue from DynamicProcessWorker_preafixed.process import ProcessModel class ProcessManager: """ A Class for managing and interacting with Process Models """ def __init__(self, gui, progress_queue): """ Initialize the Process Manager :pa...
PypiClean
/FallingRocks-2.0.zip/FallingRocks-2.0/gameplay/game.py
from enum import Enum from math import sqrt class State(Enum): running = "running" won = "won" lost = "lost" paused = "paused" quit = "quit" class Game: def __init__(self, field): self.field = field self.init_game_variables() def init_game_variables(self): self._...
PypiClean
/ImageD11-1.9.9.tar.gz/ImageD11-1.9.9/sandbox/abonnin/harvest_grains.py
from ImageD11.sym_u import cubic from ImageD11.columnfile import columnfile import numpy as np, sys, xfab.tools # Cubic symmetry operators m = np.array(cubic().group) # print m.shape def process_file(f, g, ip, jp, npoint): """ f = gff file / sinfit file g = columnfile with allgrains output i, j = origi...
PypiClean
/MDSuite-0.2.0-py3-none-any.whl/mdsuite/experiment/experiment.py
import copy import importlib.resources import json import logging import pathlib import typing from pathlib import Path from typing import List, Union import numpy as np import pubchempy as pcp import mdsuite.file_io.extxyz_files import mdsuite.file_io.file_read import mdsuite.file_io.lammps_trajectory_files import m...
PypiClean
/FEADRE_AI-1.0.7.tar.gz/FEADRE_AI-1.0.7/FEADRE_AI/ai/datas/dataset_coco.py
import os import random import cv2 import torch from pycocotools.coco import COCO from torch.utils.data import Dataset import numpy as np from FEADRE_AI.GLOBAL_LOG import flog from FEADRE_AI.ai.datas.dta_heighten.fmosaic import get_mosaic_img, mixup from FEADRE_AI.ai.object_detection.boxes.f_kps import fsplit_kps c...
PypiClean
/Notable-0.4.2.tar.gz/Notable-0.4.2/notable/static/lib/ace/src-min/mode-svg.js
define("ace/mode/svg",["require","exports","module","ace/lib/oop","ace/mode/xml","ace/mode/javascript","ace/tokenizer","ace/mode/svg_highlight_rules","ace/mode/folding/mixed","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(e,t,n){var r=e("../lib/oop"),i=e("./xml").Mode,s=e("./javascript").Mode,o=e("../tokeni...
PypiClean
/searchspaces/cnn_config.py
import ConfigSpace as CS import ConfigSpace.hyperparameters as CSH import os import csv import time from HPO.utils.ConfigStruct import Parameter, Cumulative_Integer_Struct, LTP_Parameter """ TODO Seperate Pooling and Convolution Layers Add more convolution operations (kernalSize and maybe stride) """ def init_conf...
PypiClean
/MIAvisual-0.0.6-py3-none-any.whl/matplotlib/scale.py
import inspect import textwrap import numpy as np from numpy import ma import matplotlib as mpl from matplotlib import _api, docstring from matplotlib.ticker import ( NullFormatter, ScalarFormatter, LogFormatterSciNotation, LogitFormatter, NullLocator, LogLocator, AutoLocator, AutoMinorLocator, Symmetrica...
PypiClean
/Cuckoo-2.0.7a1.tar.gz/Cuckoo-2.0.7a1/cuckoo/distributed/db.py
import datetime import json from flask_sqlalchemy import SQLAlchemy from sqlalchemy.inspection import inspect db = SQLAlchemy(session_options=dict(autoflush=True)) ALEMBIC_VERSION = "701e3dde12ba" null = None class Serializer(object): """Serialize a query result object.""" def to_dict(self): ret = ...
PypiClean
/Bonsu-3.6.2-cp39-cp39-macosx_10_9_x86_64.whl/bonsu/docs/_static/searchtools.js
"use strict"; /** * Simple result scoring code. */ if (typeof Scorer === "undefined") { var Scorer = { // Implement the following function to further tweak the score for each result // The function takes a result array [docname, title, anchor, descr, score, filename] // and returns the new score. /...
PypiClean
/GTW-1.2.6.tar.gz/GTW-1.2.6/_MF3/Completer.py
from __future__ import division, print_function from __future__ import absolute_import, unicode_literals from _GTW import GTW from _MOM import MOM from _TFL import TFL from _MOM.import_MOM import Q import _MOM._Attr.Completer from _...
PypiClean
/ObjectListView-1.3.1.zip/ObjectListView-1.3.1/docs/whatsnew.rst
.. -*- coding: UTF-8 -*- .. include:: _substitutions.txt What's New? =========== For the (mostly) complete change log, :ref:`see here <changelog>`. v1.3 - November 2014 -------------------- * Make ObjectListView compatible with wxPython 2.9, 3.x * Make ObjectListView compatible with wxPython Phoenix on Python 2.7 ...
PypiClean
/Harmonization-0.0.9-py3-none-any.whl/harmonization/common/clickme_dataset.py
import tensorflow as tf from .blur import gaussian_kernel, gaussian_blur CLICKME_BASE_URL = 'https://storage.googleapis.com/serrelab/prj_harmonization/dataset/click-me' NB_VAL_SHARDS = 17 NB_TRAIN_SHARDS = 318 AUTO = tf.data.AUTOTUNE GAUSSIAN_KERNEL = tf.cast(gaussian_kernel(), tf.float32) FEATURE_DESCRIPTION = { ...
PypiClean
/CsuPMTD-1.0.27.tar.gz/CsuPMTD-1.0.27/PMTD/maskrcnn_benchmark/apex/apex/amp/amp.py
from . import compat, rnn_compat, utils, wrap from .handle import AmpHandle, NoOpHandle from .lists import functional_overrides, torch_overrides, tensor_overrides from ._amp_state import _amp_state import functools import itertools import torch _DECORATOR_HANDLE = None _USER_CAST_REGISTRY = set() _USER_PROMOTE_REGI...
PypiClean
/DPLib-1.5.tar.gz/DPLib-1.5/dplib/server.py
import re from collections import OrderedDict from enum import Enum import asyncio import os from socket import socket, AF_INET, SOCK_DGRAM from dplib.parse import render_text, decode_ingame_text class ServerEvent(Enum): TIMEOUT = 0 CHAT = 1 ELIM = 2 RESPAWN = 3 MAPCHANGE = 4 DATE = 5 NA...
PypiClean
/KE-py-0.9.tar.gz/KE-py-0.9/examples/example_compare_segments.py
from moz_sql_parser import parse, format as format_ import pandas as pd from KE import KE client3 = KE(host='kappy-prd.vivo.lan', port=8080, username='admin', password='kappy@111', version=3) client4 = KE(host='10.193.147.131', version=4) def get_all_projects_cubes(): """{'project': ['cube1','cube2']""" resu...
PypiClean
/GailBot_Testing_Suite-0.1a8-py3-none-any.whl/gailbot/core/engines/watson/watson.py
import os from typing import Dict, Any, List from itertools import chain from .recognition_results import RecognitionResult from .recognize_callback import CustomWatsonCallbacks from .core import WatsonCore from .lm import WatsonLMInterface from .am import WatsonAMInterface from ..engine import Engine from gailbot.cor...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/job/pt_PT/__init__.py
from .. import Provider as BaseProvider # source: https://bit.ly/32nqRv7 class Provider(BaseProvider): jobs = [ "Diretor geral e gestor executivo, de empresas", "Diretor de vendas", "Diretores de investigação e desenvolvimento", "Diretor de produção na agricultura", "Diret...
PypiClean
/Async-OAuthlib-0.0.9.tar.gz/Async-OAuthlib-0.0.9/docs/examples/bitbucket.rst
Bitbucket OAuth 1 Tutorial ========================== Start with setting up a new consumer by following the instructions on `Bitbucket`_. When you have obtained a ``key`` and a ``secret`` you can try out the command line interactive example below. .. _`Bitbucket`: https://confluence.atlassian.com/display/BITBUCKET/OA...
PypiClean
/NESTML-5.3.0-py3-none-any.whl/NESTML-5.3.0.data/data/doc/pynestml_toolchain/middle.rst
Section 2: Assisting Classes ============================ As opposed to a typical DSL architecture, where semantical checks, as well as model transformations, are seen as a part of the *function library*, PyNESTML implements a slightly different structuring of the components. In the previous section, checks for semant...
PypiClean
/Flask_Limiter-3.5.0-py3-none-any.whl/flask_limiter/manager.py
from __future__ import annotations import itertools import logging from typing import Dict, Iterable, List, Optional, Tuple import flask from ordered_set import OrderedSet from .constants import ExemptionScope from .util import get_qualified_name from .wrappers import Limit, LimitGroup class LimitManager: def ...
PypiClean
/Heterogeneous_Highway_Env-0.0.3-py3-none-any.whl/Heteogeneous_Highway_Env/envs/highway_env.py
import numpy as np from gym.envs.registration import register from highway_env import utils from highway_env.envs.common.abstract import AbstractEnv, MultiAgentWrapper from highway_env.envs.common.action import Action from highway_env.road.road import Road, RoadNetwork from highway_env.utils import near_split from hig...
PypiClean
/MusicRaft-0.9.7-py3-none-any.whl/musicraft/abcraft/syntax.py
from .. import (QtGui, Shared, dbg_print) def format(color, style='', size=None): """Return a QtGui.QTextCharFormat with the given attributes. """ _color = QtGui.QColor() _color.setNamedColor(color) _format = QtGui.QTextCharFormat() _format.setForeground(_color) if 'bold' in style: ...
PypiClean
/HDXrate-0.2.0.tar.gz/HDXrate-0.2.0/CONTRIBUTING.rst
.. highlight:: shell ============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com...
PypiClean
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/utils/InstalledPythons.py
""" Provide installed Pythons with module availability checks. """ import os import sys from nuitka.__past__ import WindowsError # pylint: disable=I0021,redefined-builtin from nuitka.containers.OrderedSets import OrderedSet from nuitka.PythonVersions import python_version_str from .Execution import ( NuitkaCall...
PypiClean
/Booktype-1.5.tar.gz/Booktype-1.5/lib/booki/site_static/js/tiny_mce/plugins/fullpage/editor_plugin.js
(function(){var b=tinymce.each,a=tinymce.html.Node;tinymce.create("tinymce.plugins.FullPagePlugin",{init:function(c,d){var e=this;e.editor=c;c.addCommand("mceFullPageProperties",function(){c.windowManager.open({file:d+"/fullpage.htm",width:430+parseInt(c.getLang("fullpage.delta_width",0)),height:495+parseInt(c.getLang(...
PypiClean
/Komol-0.0.1.tar.gz/Komol-0.0.1/Registration/envs/Komolenv.py
import gym from gym import error, spaces, utils from gym.utils import seeding import os import pybullet as p import pybullet_data import math import numpy as np import random MAX_EPISODE_LEN = 20*100 class Komolman(gym.Env): metadata = {'render.modes': ['human']} def __init__(self): self.step_count...
PypiClean
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/middleware/common.py
import hashlib import logging import re from django.conf import settings from django import http from django.core.mail import mail_managers from django.utils.http import urlquote from django.utils import six from django.core import urlresolvers logger = logging.getLogger('django.request') class CommonMiddleware(ob...
PypiClean
/EasyBeam-1.1.2.tar.gz/EasyBeam-1.1.2/README.md
<p align=center><img width="100%" src="figures/EasyBeamBlue.svg"></p> [![GitHub release](https://img.shields.io/github/release/veiguf/EasyBeam.svg?style=flat-square&logo=github&label=release&logoColor=white)](https://github.com/veiguf/EasyBeam/releases) [![PyPI Version](https://img.shields.io/pypi/v/EasyBeam.svg?style...
PypiClean
/GeocodingCHN-1.4.2.tar.gz/GeocodingCHN-1.4.2/README.md
# Geocoding ![Mac](https://img.shields.io/badge/MacOS-pass-success) ![Linux](https://img.shields.io/badge/Linux-pass-success) ![Windows](https://img.shields.io/badge/Windows-bug-red) [![PypiVersion](https://img.shields.io/badge/pypi-1.4.1-blue)](https://pypi.org/project/GeocodingCHN/) [![JarVersion](https://img.shiel...
PypiClean
/Glastopf-3.1.2.tar.gz/Glastopf-3.1.2/glastopf/modules/reporting/auxiliary/log_taxii.py
import logging import libtaxii import libtaxii.clients as tc from libtaxii.messages import ContentBlock, InboxMessage, generate_message_id from libtaxii.clients import HttpClient from glastopf.modules.reporting.auxiliary.stix.stix_transform import StixTransformer from glastopf.modules.reporting.auxiliary.base_logger...
PypiClean
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/jquery/src/effects/Tween.js
define([ "../core", "../css" ], function( jQuery ) { function Tween( elem, options, prop, end, easing ) { return new Tween.prototype.init( elem, options, prop, end, easing ); } jQuery.Tween = Tween; Tween.prototype = { constructor: Tween, init: function( elem, options, prop, end, easing, unit ) { this.elem = e...
PypiClean
/LightLogo-0.0.1a1-py3-none-any.whl/lightlogo/text3D.py
# BSD 3-Clause License # # Copyright (c) 2022, Donghua Chen # All rights reserved. # # 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 cop...
PypiClean
/Chameleon-4.1.0.tar.gz/Chameleon-4.1.0/src/chameleon/utils.py
import codecs import logging import os import re from html import entities as htmlentitydefs log = logging.getLogger('chameleon.utils') marker = object() def safe_native(s, encoding='utf-8'): if not isinstance(s, str): s = bytes.decode(s, encoding, 'replace') return s def raise_with_traceback(exc,...
PypiClean
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/pyrogram/methods/messages/send_poll.py
from datetime import datetime from typing import Union, List import pyrogram from pyrogram import raw, utils from pyrogram import types, enums class SendPoll: async def send_poll( self: "pyrogram.Client", chat_id: Union[int, str], question: str, options: List[str], is_ano...
PypiClean
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/static/misago/admin/momentjs/es-us.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; ...
PypiClean
/NEMO_CE-1.6.12-py3-none-any.whl/NEMO/static/nemo.js
String.prototype.capitalize = function() { return this.charAt(0).toUpperCase() + this.slice(1); } // Add case-insensitive "icontains" jquery selector jQuery.expr[':'].icontains = function(a, i, m) { return jQuery(a).text().toUpperCase().indexOf(m[3].toUpperCase()) >= 0; }; // This function allows making regular...
PypiClean
/DataDoctor-1.0.15.tar.gz/DataDoctor-1.0.15/LICENSE.md
MIT License Copyright (c) 2023 Aryan Bajaj Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distr...
PypiClean
/ESMValCore-2.9.0rc1.tar.gz/ESMValCore-2.9.0rc1/esmvalcore/_citation.py
import logging import os import re import textwrap from functools import lru_cache import requests from .config._diagnostics import DIAGNOSTICS logger = logging.getLogger(__name__) CMIP6_URL_STEM = 'https://cera-www.dkrz.de/WDCC/ui/cerasearch' # The technical overview paper should always be cited ESMVALTOOL_PAPER ...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Tool/ninja/Methods.py
import os import shlex import textwrap import SCons from SCons.Subst import SUBST_CMD from SCons.Tool.ninja import NINJA_CUSTOM_HANDLERS, NINJA_RULES, NINJA_POOLS from SCons.Tool.ninja.Globals import __NINJA_RULE_MAPPING from SCons.Tool.ninja.Utils import get_targets_sources, get_dependencies, get_order_only, get_out...
PypiClean
/Flaskel-3.1.0rc2-py3-none-any.whl/flaskel/ext/mongo.py
import typing as t from functools import partial from bson import ObjectId from flask_pymongo import PyMongo from flask_pymongo.wrappers import Collection from pymongo.cursor import Cursor from pymongo.results import DeleteResult from vbcore.datastruct import ObjectDict from vbcore.date_helper import Seconds from vbco...
PypiClean
/Altair%20Smartworks%20SDK-0.0.1.tar.gz/Altair Smartworks SDK-0.0.1/openapi_client/model/event_high_cpu.py
import re # noqa: F401 import sys # noqa: F401 from openapi_client.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, ...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/base/management/commands/set_all_layers_metadata.py
from django.core.management.base import BaseCommand from geonode.layers.models import Layer from geonode import geoserver # noqa from geonode.catalogue.models import catalogue_post_save import logging from django.conf import settings from geonode.utils import ( check_ogc_backend, set_resource_default_links ...
PypiClean
/CellStar-2.0.3-py3-none-any.whl/cellstar/parameter_fitting/pf_runner.py
import logging import sys import numpy as np import scipy as sp import cellstar.parameter_fitting.pf_process as pf_process import cellstar.parameter_fitting.pf_rank_process as pf_rank from cellstar.parameter_fitting.pf_snake import GTSnake try: from cellprofiler.preferences import get_max_workers except: get...
PypiClean
/FileBackedArray-0.0.4.tar.gz/FileBackedArray-0.0.4/src/filebackedarray/H5Dense.py
from typing import Optional, Sequence, Tuple, Union import h5py import numpy as np from .utils import _check_indices, infer_h5_dataset __author__ = "jkanche" __copyright__ = "jkanche" __license__ = "MIT" class H5BackedDenseData: """H5 backed dense matrix or array store. Args: path (str): Path to t...
PypiClean
/Abies-0.0.5.tar.gz/Abies-0.0.5/extern/pybind11/docs/advanced/embedding.rst
.. _embedding: Embedding the interpreter ######################### While pybind11 is mainly focused on extending Python using C++, it's also possible to do the reverse: embed the Python interpreter into a C++ program. All of the other documentation pages still apply here, so refer to them for general pybind11 usage. ...
PypiClean
/Cuckoo-2.0.7a1.tar.gz/Cuckoo-2.0.7a1/cuckoo/processing/droidmon.py
import json import logging import os from cuckoo.common.abstracts import Processing log = logging.getLogger(__name__) class Droidmon(Processing): """Extract Dynamic API calls Info From Droidmon logs.""" def __init__(self): self.key = "droidmon" self.droidmon = {} self.droidmon["cr...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/notify/notifiers/join.py
from loguru import logger from requests.exceptions import RequestException from flexget import plugin from flexget.config_schema import one_or_more from flexget.event import event from flexget.plugin import PluginWarning from flexget.utils.requests import Session as RequestSession from flexget.utils.requests import Ti...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/umd/locale/hu.js
(function (global, factory) { if (typeof define === "function" && define.amd) { define('element/locale/hu', ['module', 'exports'], factory); } else if (typeof exports !== "undefined") { factory(module, exports); } else { var mod = { exports: {} }; factory(...
PypiClean
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Model/Vocabulary/Domain/Variables/Leafs/Hashes/SHA2_224.py
#+---------------------------------------------------------------------------+ #| 01001110 01100101 01110100 01111010 01101111 01100010 | #| | #| Netzob : Inferring communication protocols | #+-...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/generator.py
import random as random_module import re from typing import TYPE_CHECKING, Any, Callable, Dict, Hashable, List, Optional, Type, Union from .typing import SeedType if TYPE_CHECKING: from .providers import BaseProvider _re_token = re.compile(r"\{\{\s*(\w+)(:\s*\w+?)?\s*\}\}") random = random_module.Random() mod_r...
PypiClean
/NEURON_gpu_nightly-8.2a7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/neuron/rxd/species.py
from .rxdmath import _Arithmeticed import weakref from .section1d import Section1D from neuron import h, nrn, nrn_dll_sym from . import node, nodelist, rxdmath, region import numpy import warnings import itertools from . import options from .rxdException import RxDException from . import initializer from collections.ab...
PypiClean
/Azule_Hair_Transplant-0.0.1.tar.gz/Azule_Hair_Transplant-0.0.1/losses/masked_lpips/networks_basic.py
from __future__ import absolute_import import sys import torch import torch.nn as nn import torch.nn.init as init from torch.autograd import Variable from torch.nn import functional as F import numpy as np from pdb import set_trace as st from skimage import color from IPython import embed from . import pretrained_netw...
PypiClean
/Clorm-1.4.1-py3-none-any.whl/clorm/lib/date.py
import datetime import calendar from ..orm import ComplexTerm, IntegerField, StringField,\ ConstantField, make_function_asp_callable, make_method_asp_callable #------------------------------------------------------------------------------ # #------------------------------------------------------------------------...
PypiClean
/Neto-0.6.2.tar.gz/Neto-0.6.2/neto/downloaders/http.py
import requests import neto.lib.validations as validations from neto.lib.resources import Resource class HTTPResource(Resource): """ A class that represents an HTTP resource This class will perform the download of an HTTP Resoure """ def __init__(self, u, h=None): """ Constructor...
PypiClean
/HalRing_Lib-1.1.0-py3-none-any.whl/halring/plink/halring_plink.py
import os import sys from loguru import logger nga_root = os.path.abspath(__file__).split("utils")[0] sys.path.append(nga_root) from ftp.halring_ftp import FtpUtil from common.halring_common import ConstVariable class PlinkUtil(ConstVariable): """ Plink with Putty Author: xqzhou """ def __init__(s...
PypiClean
/JGB_distributions-1.3.tar.gz/JGB_distributions-1.3/JGB_distributions/Gaussiandistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Gaussian(Distribution): """ Gaussian distribution class for calculating and visualizing a Gaussian distribution. Attributes: mean (float) representing the mean value of the distribution stdev ...
PypiClean
/BioSAK-1.72.0.tar.gz/BioSAK-1.72.0/My_Python_scripts/Scrapy/demo_download_Microbiome_pdf.py
import requests import json from lxml import etree import time import datetime #获取网页相应内容 def get_one_page(url): try: headers = {'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36'} response = requests.get(url, headers=heade...
PypiClean
/Nitrous-0.9.3-py3-none-any.whl/turbogears/toolbox/shell.py
from future import standard_library standard_library.install_aliases() import logging import sys import io import turbogears import pkg_resources from turbogears import controllers, expose from code import InteractiveConsole log = logging.getLogger('turbogears.toolbox') class WebConsole(controllers.RootController)...
PypiClean
/ApiamticPackage5-1.5.6-py3-none-any.whl/swaggerpetstore/configuration.py
from enum import Enum from apimatic_core.http.configurations.http_client_configuration import HttpClientConfiguration from apimatic_requests_client_adapter.requests_client import RequestsClient class Environment(Enum): """An enum for SDK environments""" PRODUCTION = 0 class Server(Enum): """An enum for ...
PypiClean
/ModelTool-0.8.5.tar.gz/ModelTool-0.8.5/modeltool/lambda_creator.py
import logging import traceback import subprocess import os import sys import shutil import modeltool.utility import json logger = logging.getLogger() logger.setLevel(logging.INFO) logging.basicConfig(level=logging.INFO, format='[%(levelname)s] %(asctime)s (%(module)s) %(message)s', ...
PypiClean
/Isomyr-0.1.tar.gz/Isomyr-0.1/isomyr/physics.py
import sys from isomyr.thing import PhysicalThing from isomyr.util.vector import ( addVectors, replaceVector, reverseDirection, divideVectors, multiplyVectors, subtractVectors) # XXX Often referred to as imp in the code so perhaps Impact would be a better # name. Also used for touch routines as well. # XXX H...
PypiClean
/OASYS1-ShadowOui-1.5.210.tar.gz/OASYS1-ShadowOui-1.5.210/orangecontrib/shadow/widgets/plots/ow_focnew.py
import sys import numpy from PyQt5 import QtGui, QtWidgets from PyQt5.QtWidgets import QApplication from Shadow import ShadowTools as ST from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui from orangecontrib.shadow.util.shadow_objects import ShadowBeam from ...
PypiClean
/FAdo3-1.0.tar.gz/FAdo3-1.0/FAdo/reex.py
from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals from __future__ import division from future import standard_library standard_library.install_aliases() from builtins import str from builtins import * from builtins import object from collections import...
PypiClean
/Mopidy_MFE-0.4.9.tar.gz/Mopidy_MFE-0.4.9/mopidy_mfe/www/app.js
'use strict'; // Declare app level module which depends on views, and components angular.module('mopidyFE', [ 'ngRoute', 'rzModule', 'mopidyFE.cache', 'mopidyFE.nowplaying', 'mopidyFE.browse', 'mopidyFE.playlists', 'mopidyFE.search', 'mopidyFE.mopidy', 'mopidyFE.lastfm', 'mopidyFE.util', 'mopidyF...
PypiClean
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/ats/model/application_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
/Bubot_WebServer-0.1.15-py3-none-any.whl/BubotObj/OcfDevice/subtype/WebServer/HttpHandler.py
import re from Bubot.Core.BubotHelper import BubotHelper from Bubot.Helpers.Helper import Helper from Bubot.Helpers.Action import Action from Bubot.Helpers.ActionDecorator import async_action from Bubot.Helpers.ExtException import ExtException, Unauthorized, AccessDenied # from bubot.Helpers.Сryptography.SignedData im...
PypiClean
/OWSLib-0.29.2.tar.gz/OWSLib-0.29.2/owslib/coverage/wcsdecoder.py
# example: used in conjunction with ows lib wcs: # from owslib import wcsdecoder # u=wcs.getcoverage(identifier=['TuMYrRQ4'], timeSequence=['2792-06-01T00:00:00.0'], bbox=(-112,36,-106,41), # format='application/netcdf', store='true') # decoder=wcsdecoder.WCSDecoder(u) # decoder.getCoverages() impo...
PypiClean
/FIRSTBEATLU-0.13.1.tar.gz/FIRSTBEATLU-0.13.1/econml/score/ensemble_cate.py
import numpy as np from sklearn.utils.validation import check_array from .._cate_estimator import BaseCateEstimator, LinearCateEstimator class EnsembleCateEstimator: """ A CATE estimator that represents a weighted ensemble of many CATE estimators. Returns their weighted effect prediction. Parameters ...
PypiClean
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/hyperion/__init__.py
from __future__ import print_function, division from .version import __version__ try: _HYPERION_SETUP_ except NameError: # we are not currently running setup.py try: from .util import integrate except ImportError: # indicates the C extension failed to build import os import sys ...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/plugins/specialchar/dialogs/lang/vi.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("specialchar","vi",{euro:"Ký hiệu Euro",lsquo:"Dấu ngoặc đơn trái",rsquo:"Dấu ngoặc đơn phải",ldquo:"Dấu ngoặc đôi trái",rdquo:"D...
PypiClean
/Microbe-1.2.tar.gz/Microbe-1.2/microbe/flatcontent/models.py
__author__ = 'TROUVERIE Joachim' import os.path as op import re from uuid import uuid4 from lockfile import LockFile as lock from datetime import datetime from yaml import safe_dump from flask.ext.flatpages import Page from flask.ext.login import current_user from flask import current_app from microbe.utils import t...
PypiClean
/Ax_Metrics-0.9.2.tar.gz/Ax_Metrics-0.9.2/py/axonchisel/metrics/io/erout/plugins/ero_geckoboard/meter.py
from .base import EROut_geckoboard import logging log = logging.getLogger(__name__) # ---------------------------------------------------------------------------- class EROut_geckoboard_meter(EROut_geckoboard): """ EROut (Extensible Report Outputter) Plugin for Geckoboard "Gecko-o-meter". Adds JSON-...
PypiClean
/ChadBot3-0.1-py3-none-any.whl/ChadBot/generation/rajat_work/qgen/util/nlp.py
import string import en_core_web_md import spacy _spacy_cache = None _coref_cache = None FAST_TOKENIZER = spacy.load('en_core_web_sm', disable=['tagger', 'parser', 'ner', 'textcat']) # Linguistic Constants AUXILIARIES = ['am', 'is', 'are', 'was', 'were', 'be', 'could', 'can', 'should', 'shall', 'would', 'will', ...
PypiClean
/CirqProjectQ-0.2.3.tar.gz/CirqProjectQ-0.2.3/cirqprojectq/_rules_pq_to_cirq.py
from collections import defaultdict class Ruleset_pq_to_cirq(): def __init__(self, rules=[]): r""" A collection of rules to translate ProjectQ operations to Cirq operations. Args: rules (list of :class:`Rule_pq_to_cirq`): the rules that can be used for translations. ...
PypiClean
/CANard-0.2.2.tar.gz/CANard-0.2.2/canard/proto/isotp.py
from .. import can class IsoTpProtocol: def __init__(self): pass def _start_msg(self, id=0): # initialize reading of a message self.msg = IsoTpMessage(id) self.data_byte_count = 0 self.sequence_number = 0 def _end_msg(self): # finish reading a message ...
PypiClean
/4scanner-1.6.3.tar.gz/4scanner-1.6.3/scanner/downloader.py
import json import logging import os from scanner import imageboard_info, dupecheck from scanner.config import DB_FILE, currently_downloading import sqlite3 import sys import re import time import urllib import http.client import requests import threading import shutil class downloader: def __init__(self, thread...
PypiClean
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/pilot/filemanagement/globusonline_adaptor.py
import urlparse import pdb import glob import errno import sys import os import stat import logging import traceback import time sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../..")) #sys.path.append(os.path.join(os.path.dirname(__file__), "..")) from pilot.api import State from bigjob import logger fr...
PypiClean
/Kamaelia-0.6.0.tar.gz/Kamaelia-0.6.0/Axon/Component.py
import time from util import removeAll from idGen import strId, numId from debug import debug from Microprocess import microprocess from Postoffice import postoffice from Scheduler import scheduler from AxonExceptions import noSpaceInBox from Linkage import linkage from Ipc import * from Box import makeInbox,makeOut...
PypiClean
/HiveMind-PtT-0.1.6.tar.gz/HiveMind-PtT-0.1.6/mycroft_ptt/playback.py
from ovos_utils.sound import play_audio as _play_audio, \ play_wav as _play_wav, play_mp3 as _play_mp3, play_ogg as _play_ogg from mycroft_ptt.configuration import CONFIGURATION from os.path import join, dirname, expanduser, normpath, abspath, isfile def play_audio(uri): cmd = CONFIGURATION["playback"]["play_...
PypiClean
/Bis-Miner-3.11.1.tar.gz/Bis-Miner-3.11.0/Orange/widgets/unsupervised/owsavedistances.py
import os.path from AnyQt.QtWidgets import QFileDialog from Orange.misc import DistMatrix from Orange.widgets import gui, widget from Orange.widgets.settings import Setting from Orange.widgets.widget import Input class OWSaveDistances(widget.OWWidget): name = "保存距离矩阵" description = "将距离矩阵保存至一个输出文件" icon...
PypiClean
/OSF_EIMTC-0.1.46.tar.gz/OSF_EIMTC-0.1.46/README.md
# OSF-EIMTC ![PyPi Badge](https://img.shields.io/pypi/v/osf-eimtc.svg) ![PyPI - Downloads](https://img.shields.io/pypi/dm/osf-eimtc) [<img alt="Ariel University Home" src="https://img.shields.io/badge/Ariel%20University-blue?logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAABUAQMAAAAmpYKCAAAABGdBTUEAALGPC/xhBQAA...
PypiClean