id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/pyqtgraph-for-dubble-bubble-2016.11.2.tar.gz/pyqtgraph-for-dubble-bubble-2016.11.2/pyqtgraph/graphicsItems/LinearRegionItem.py
from ..Qt import QtGui, QtCore from .UIGraphicsItem import UIGraphicsItem from .InfiniteLine import InfiniteLine from .. import functions as fn from .. import debug as debug __all__ = ['LinearRegionItem'] class LinearRegionItem(UIGraphicsItem): """ **Bases:** :class:`UIGraphicsItem <pyqtgraph.UIGraphicsItem>`...
PypiClean
/pantsbuild.pants-2.18.0a0-cp39-cp39-macosx_10_15_x86_64.whl/pants/goal/help.py
from __future__ import annotations from abc import abstractmethod from typing import ClassVar from pants.base.exiter import ExitCode from pants.base.specs import Specs from pants.build_graph.build_configuration import BuildConfiguration from pants.core.util_rules.environments import determine_bootstrap_environment f...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_22/models/protection_groups_volumes_response.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_22 import models class ProtectionGroupsVolumesResponse(object): """ Attributes: swagger_types (dict): The key is attribute name ...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/amazon/aws/plugins/module_utils/rds.py
# Copyright: (c) 2018, Ansible Project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) from collections import namedtuple from time import sleep try: from botocore.exceptions import BotoCoreError, ClientError, WaiterError except ImportError: pass from ansible.mod...
PypiClean
/python-nnmclub-1.0.zip/python-nnmclub-1.0/pynnmclub.py
import requests import logging import datetime import re from bs4 import BeautifulSoup try: import urlparse except ImportError: from urllib import parse as urlparse logger = logging.getLogger('pynnmclub') # logger.setLevel(logging.DEBUG) # ch = logging.StreamHandler() # ch.setLevel(logging.DEBUG) # logger...
PypiClean
/padrick-0.3.6.tar.gz/padrick-0.3.6/src/reggen/reg_block.py
import re from typing import Callable, Dict, List, Optional, Sequence, Union from .alert import Alert from .access import SWAccess, HWAccess from .field import Field from .signal import Signal from .lib import check_int, check_list, check_str_dict, check_str from .multi_register import MultiRegister from .params impor...
PypiClean
/vid2cleantxt-0.0.2.tar.gz/vid2cleantxt-0.0.2/README.md
# vid2cleantxt ![vid2cleantext simple](https://user-images.githubusercontent.com/74869040/131500291-ed0a9d7f-8be7-4f4b-9acf-c360cfd46f1f.png) **vid2cleantxt**: a [transformers-based](https://huggingface.co/facebook/wav2vec2-large-960h-lv60-self) pipeline for turning heavily speech-based video files into clean, readab...
PypiClean
/link_preview-1.0.zip/link_preview-1.0/README.md
# link_Preview A python module that gathers elements required for linkPreview. ## Overview link_preview is now a fashionable way of sharing links in social media. The contents of what the preview is made up are:- 1. og.title:- Title of the preview. In HTML: <meta property="og.title...
PypiClean
/spinedb_api-0.30.0-py3-none-any.whl/spinedb_api/spine_io/importers/datapackage_reader.py
import threading from itertools import chain from datapackage import Package from .reader import SourceConnection class DataPackageConnector(SourceConnection): """Template class to read data from another QThread.""" # name of data source, ex: "Text/CSV" DISPLAY_NAME = "Datapackage" # dict with opti...
PypiClean
/google-api-wrapper2-1.0.6.tar.gz/google-api-wrapper2-1.0.6/googleapiwrapper/google_drive.py
import io import logging import os from dataclasses import dataclass from enum import Enum from typing import List, Dict, Any from googleapiclient.discovery import build from googleapiclient.errors import HttpError from googleapiclient.http import MediaFileUpload from googleapiclient.http import MediaIoBaseDownload fr...
PypiClean
/mdf_canon-5.4.tar.gz/mdf_canon-5.4/mdf_canon/reference/profile.py
"""Option persistence on HDF files.""" import tables import numpy as np from ..parameters import cfilter from .reference import Reference # TODO: Unify commit/append!!! They are basically the same! from .variable import VariableLength, binary_cast def decode_time_uint16(node, index): t = binary_cast(node[index][...
PypiClean
/paddlepaddle-2.5.1-cp310-cp310-win_amd64.whl/paddle/distributed/auto_parallel/static/operators/dist_fill_constant_batch_size_like.py
from paddle.distributed.fleet.meta_optimizers.common import OpRole from ..cost import ( FillConstantBatchSizeLikeOpCost, build_comp_costs_from_descs, build_comp_desc_from_dist_op, ) from ..utils import compute_compatible_and_update_dim_mapping from .common import ( DistributedOperatorImpl, Distrib...
PypiClean
/coltra_rl-0.1.0.tar.gz/coltra_rl-0.1.0/coltra/models/raycast_models.py
import copy from typing import Dict, List, Tuple from gymnasium import Space from torch.distributions import Distribution, Normal from typarse import BaseConfig import torch from torch import nn, Tensor from torch.nn import functional as F from coltra.buffers import Observation from coltra.envs.spaces import Observa...
PypiClean
/rid_kit-0.6.2-py3-none-any.whl/rid/mcmc/walker.py
import numpy as np import tensorflow as tf # kinetic enery in eV kbT = (8.617343E-5) * 300 beta = 1.0 / kbT # ev to kj/mol f_cvt = 96.485 def distance(cv1,cv2): d = np.sum((cv1 - cv2)**2,axis=1) return d def s(cv, lm, xlist): s = 0 n = 1e-10 for i in range(1,10): s += i*np.exp(-lm*dista...
PypiClean
/curtsies-0.4.2.tar.gz/curtsies-0.4.2/examples/tron.py
import time import sys from curtsies import FullscreenWindow, Input, FSArray, fmtstr, fsarray from curtsies.fmtfuncs import ( bold, yellow, on_blue, cyan, on_yellow, on_red, black, ) import curtsies.events class Cycle: def __init__(self, attr_dict): self.appearance = attr_dict...
PypiClean
/zephyr-seis-0.1.7.tar.gz/zephyr-seis-0.1.7/zephyr/middleware/db.py
from __future__ import print_function, division, unicode_literals, absolute_import from builtins import open from future import standard_library standard_library.install_aliases() from builtins import object import os import glob # import pymongo # import h5py import numpy as np import scipy.io as io from pygeo.segyre...
PypiClean
/mosquittoChat-1.0.1.tar.gz/mosquittoChat-1.0.1/docs/features.rst
Features ========= Technical Specs ---------------- :sockjs-client: Advanced Websocket Javascript Client :Tornado: Async Python Web Library + Web Server :sockjs-tornado: SockJS websocket server implementation for Tornado :MQTT: Machine-to-Machine (M2M)/"Internet of Things" connectivity protocol :paho-mqtt: MQTT Pyth...
PypiClean
/titan_model-3.3.0-py3-none-any.whl/titan/agent.py
from typing import Dict, Set, Optional, Iterator, Iterable from .utils import ( safe_divide, safe_dist, get_independent_bin, safe_random_choice, safe_random_int, ) from .location import Location from . import features from . import exposures class Agent: """ This class constructs and rep...
PypiClean
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/dot-prop/index.js
'use strict'; var isObj = require('is-obj'); module.exports.get = function (obj, path) { if (!isObj(obj) || typeof path !== 'string') { return obj; } var pathArr = getPathSegments(path); for (var i = 0; i < pathArr.length; i++) { var descriptor = Object.getOwnPropertyDescriptor(obj, pathArr[i]) || Object.get...
PypiClean
/Nirjas-1.0.1.tar.gz/Nirjas-1.0.1/nirjas/languages/go.py
from nirjas.binder import CommentSyntax, contSingleLines from nirjas.output import ScanOutput, SingleLine, MultiLine def goExtractor(file): """ Extract comments from Go file. :param file: File to scan :type file: string :return: Scan output :rtype: ScanOutput """ result = CommentSyntax...
PypiClean
/arsenal-cli-1.1.1.tar.gz/arsenal-cli-1.1.1/README.md
# Arsenal ![](img/logo.png) Arsenal is just a quick inventory, reminder and launcher for pentest commands. <br>This project written by pentesters for pentesters simplify the use of all the hard-to-remember commands ![](img/arsenal.gif) In arsenal you can search for a command, select one and it's prefilled directly ...
PypiClean
/poetry_exp-0.1.1-py3-none-any.whl/poetry_exp/mypy/app/data_structure/binary_tree_exp.py
class Node(object): def __init__(self, data, left=None, right=None): self.data = data self.right = right self.left = left def traverse_inorder(root): if root: traverse_inorder(root.left) print root.data traverse_inorder(root.right) """ Explanations: fir...
PypiClean
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/tensorflow/python/data/experimental/ops/prefetching_ops.py
"""Python wrapper for prefetching_ops.""" from tensorflow.python.data.ops import dataset_ops from tensorflow.python.data.ops import iterator_ops from tensorflow.python.data.ops import structured_function from tensorflow.python.data.util import structure from tensorflow.python.eager import function from tensorflow.pytho...
PypiClean
/xlocust_bigquery-0.0.5-py3-none-any.whl/xlocust_bigquery/bq_client.py
import os import time from locust import events,User from xlocust_bigquery.bigquery import query, load_data_gs_bucket_csv, load_data_gs_bucket_json from google.cloud import bigquery from google.oauth2 import service_account class BQClientUser(User): abstract = True def __init__(self, environment): ...
PypiClean
/pvipy-0.5.0.tar.gz/pvipy-0.5.0/README.md
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![made-with-python](https://img.shields.io/badge/Made%20with-Python-1f425f.svg)](https://www.python.org/) [![Made For B&R](https://github.com/hilch/BandR-badges/blob/main/Made-For-BrAutomation.svg)](https://www....
PypiClean
/custom_obj_detector-1.tar.gz/custom_obj_detector-1/cvt_text/training/trainer.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import bisect import time import numpy as np import tensorflow as tf from base import utils from model import multitask_model from task_specific import task_definitions class Trainer(object): def __init__(...
PypiClean
/passprotecttxt-0.11.tar.gz/passprotecttxt-0.11/README.md
# protects a text with a password ## pip install passprotecttxt #### Tested against Windows 10 / Python 3.10 / Anaconda ### Encryption: The encrypt_text function provides a simple and secure way to encrypt text using AES encryption with CTR mode. AES is a widely used encryption algorithm known for its security a...
PypiClean
/LDtoolsets-0.0.14.tar.gz/LDtoolsets-0.0.14/LDtools/utils.py
__all__ = ['shorten_id', 'check_indels', 'load_yaml', 'parse_input', 'match_ss_with_bim', 'check_ss', 'compare_snps', 'allele_match', 'check_ss1', 'pair_match', 'strand_flip', 'namebyordA0_A1', 'snps_match', 'snps_match_dup', 'snps_match_nodup'] # Cell from xxhash import xxh32 as xxh # Cell def...
PypiClean
/pysap-mri-0.4.0.tar.gz/pysap-mri-0.4.0/mri/optimizers/base.py
import time import numpy as np def run_algorithm(opt, max_nb_of_iter, verbose=0): """Run the algorithm setup with the defined optimizer. Parameters ---------- opt: Optimizer Class max_nb_of_iter: int Maximum number of iteration verbose: int Verbosity level. Returns --...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/angular/i18n/angular-locale_yo-bj.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/odoo13_addon_base_import_match-13.0.1.0.3-py3-none-any.whl/odoo/addons/base_import_match/readme/CONFIGURE.rst
To configure this module, you need to: #. Go to *Settings > Technical > Database Structure > Import Match*. #. *Create*. #. Choose a *Model*. #. Choose the *Fields* that conform a unique key in that model. #. If the rule must be used only for certain imported values, check *Conditional* and enter the **exact string...
PypiClean
/py3-pmp-wrapper-0.5.0.tar.gz/py3-pmp-wrapper-0.5.0/pmp_api/core/conn.py
import datetime import requests from operator import lt from .exceptions import BadRequest from .exceptions import EmptyResponse from .exceptions import ExpiredToken class PmpConnector(object): """PmpConnector class for issuing signed requests of the PMP Api. Objects of this class must be instantiated with...
PypiClean
/weewx-5.0.0a8.tar.gz/weewx-5.0.0a8/bin/wee_resources/docs/assets/javascripts/lunr/tinyseg.js
;(function (root, factory) { if (typeof define === 'function' && define.amd) { // AMD. Register as an anonymous module. define(factory) } else if (typeof exports === 'object') { /** * Node. Does not work with strict CommonJS, but * only CommonJS-like environments that s...
PypiClean
/casai-home-frontend-20220503.0.tar.gz/casai-home-frontend-20220503.0/hass_frontend/frontend_es5/580d619f.js
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[72190],{14114:function(e,t,r){"use strict";r.d(t,{P:function(){return n}});var n=function(e){return function(t,r){if(t.constructor._observers){if(!t.constructor.hasOwnProperty("_observers")){var n=t.constructor._observers;t.c...
PypiClean
/danmaku-tools-0.0.9.tar.gz/danmaku-tools-0.0.9/src/danmaku_tools/danmaku_energy_map.py
#### # # Update on 20220219 by @kumafans (Bilibili ID: OneTwoInfinity) # - Use IDF-weighted keyword value to rate danmaku # - Add markers for Super Chat # - Eliminated the empirical 45 second offset in most decisions # #### import argparse import json import traceback import random from datetime i...
PypiClean
/pulumiverse_ovh-0.0.2a1661984131.tar.gz/pulumiverse_ovh-0.0.2a1661984131/pulumiverse_ovh/get_me.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs __all__ = [ 'GetMeResult', 'AwaitableGetMeResult', 'get_me', ] @pulumi.output_type class GetMeResult: """ A collectio...
PypiClean
/azure_mgmt_compute-30.1.0-py3-none-any.whl/azure/mgmt/compute/v2022_09_04/_configuration.py
from typing import Any, TYPE_CHECKING from azure.core.configuration import Configuration from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy from ._version import VERSION if TYPE_CHECKING: # pylint: disable=unused-import,ungrouped-...
PypiClean
/openlmi-scripts-storage-0.4.0.tar.gz/openlmi-scripts-storage-0.4.0/lmi/scripts/storage/cmd/lv.py
from lmi.shell.LMIUtil import lmi_isinstance from lmi.scripts.common import command from lmi.scripts.common import get_logger from lmi.scripts.common.formatter import command as fcmd from lmi.scripts.storage import show, fs, lvm, mount, raid, partition from lmi.scripts.storage.common import (size2str, get_devices, get_...
PypiClean
/GeoNode-3.2.0-py3-none-any.whl/geonode/documents/api/views.py
from drf_spectacular.utils import extend_schema from dynamic_rest.viewsets import DynamicModelViewSet from dynamic_rest.filters import DynamicFilterBackend, DynamicSortingFilter from rest_framework.decorators import action from rest_framework.permissions import IsAuthenticatedOrReadOnly from rest_framework.authentica...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/calendar/calendar_view/item/instances/item/single_value_extended_properties/single_value_extended_properties_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/pyFipper-0.1.3.tar.gz/pyFipper-0.1.3/pyrogram/types/messages_and_media/voice.py
from datetime import datetime import pyrogram from pyrogram import raw, utils from pyrogram.file_id import FileId, FileType, FileUniqueId, FileUniqueType from ..object import Object class Voice(Object): """A voice note. Parameters: file_id (``str``): Identifier for this file, which can ...
PypiClean
/aiosql-9.0.tar.gz/aiosql-9.0/docs/source/index.rst
.. aiosql documentation master file, created by sphinx-quickstart on Sun Jul 18 12:49:31 2021. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. aiosql - Simple SQL in Python ============================= `SQL <https://en.wikipedia.org/wiki/SQL>`_...
PypiClean
/django-lens-0.0.2.tar.gz/django-lens-0.0.2/README.rst
============================= Django Lens ============================= .. image:: https://badge.fury.io/py/django-lens.svg :target: https://badge.fury.io/py/django-lens .. image:: https://travis-ci.org/v1k45/django-lens.svg?branch=master :target: https://travis-ci.org/v1k45/django-lens .. image:: https://co...
PypiClean
/pi-env-0.1.2rc1.tar.gz/pi-env-0.1.2rc1/pi/_requires/yaml/error.py
__all__ = ['Mark', 'YAMLError', 'MarkedYAMLError'] class Mark: def __init__(self, name, index, line, column, buffer, pointer): self.name = name self.index = index self.line = line self.column = column self.buffer = buffer self.pointer = pointer def get_snippet(...
PypiClean
/iva_classification_demo-1.1.0-py3-none-any.whl/iva_classification_demo/main.py
from PyQt5.QtWidgets import QApplication, QWidget,\ QLabel, QMainWindow, QGridLayout, QPushButton, QSizePolicy, QComboBox, QFileDialog, QScrollArea,\ QSpinBox from PyQt5.QtCore import QObject, pyqtSignal, pyqtSlot, QThread, QTimer, QDir, QFile, QIODevice, Qt from PyQt5.QtGui import QImage, QPixmap, QImageReader from...
PypiClean
/alerta-server-9.0.1.tar.gz/alerta-server-9.0.1/alerta/views/keys.py
from flask import current_app, g, jsonify, request from flask_cors import cross_origin from alerta.app import qb from alerta.auth.decorators import permission from alerta.exceptions import ApiError from alerta.models.enums import Scope from alerta.models.key import ApiKey from alerta.models.permission import Permissio...
PypiClean
/gu-django-tinymce-2.7.2.tar.gz/gu-django-tinymce-2.7.2/tinymce/media/tiny_mce/plugins/table/langs/tt_dlg.js
tinyMCE.addI18n('tt.table_dlg',{"rules_border":"\u908a\u6846","rules_box":"\u76d2","rules_vsides":"\u5782\u76f4\u5927\u5c0f","rules_rhs":"rhs","rules_lhs":"lhs","rules_hsides":"\u6c34\u5e73\u5927\u5c0f","rules_below":"\u4e4b\u4e0b","rules_above":"\u4e4b\u4e0a","rules_void":"\u7a7a",rules:"\u5c3a\u898f","frame_all":"\u5...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/keyvault/v20190901/private_endpoint_connection.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs from ._enums import * from ._inputs import * __all__ = ['PrivateEndpointConnection'] class PrivateEndpointConnection(pulumi.CustomResource): de...
PypiClean
/userbased-nc-bench-0.2.1.tar.gz/userbased-nc-bench-0.2.1/userbased_nc_bench/netcdf_creation.py
import numpy as np import os import sys sys.path.append(os.path.expanduser("~/s3netcdf/S3-netcdf-python/")) def ispower2(n): if n == 2: return True temp = 2 while (temp <= n): if temp == n: return True temp *= 2 return False def create_netcdf(size, path): ...
PypiClean
/klaytn_etl_cli-0.3.6-py3-none-any.whl/klaytnetl/cli/export_traces.py
import click import tempfile import shutil from klaytnetl.jobs.export_traces_job import ExportTracesJob from klaytnetl.jobs.exporters.raw_traces_item_exporter import raw_traces_item_exporter from klaytnetl.jobs.exporters.enrich_traces_item_exporter import ( enrich_traces_item_exporter, ) from blockchainetl.loggi...
PypiClean
/s3prl_vc-0.2.0.tar.gz/s3prl_vc-0.2.0/s3prl_vc/bin/create_histogram.py
import argparse import logging import os from pathlib import Path from joblib import Parallel, delayed import librosa import matplotlib import numpy as np from s3prl_vc.utils.signal import world_extract from s3prl_vc.utils import find_files matplotlib.use("Agg") # noqa #isort:skip import matplotlib.pyplot as plt ...
PypiClean
/qmpy-tri-2022.7.21.tar.gz/qmpy-tri-2022.7.21/qmpy/web/static/js/jsmol/j2s/J/jvxl/readers/IsoShapeReader.js
Clazz.declarePackage ("J.jvxl.readers"); Clazz.load (["J.jvxl.readers.VolumeDataReader", "J.util.P3"], "J.jvxl.readers.IsoShapeReader", ["java.util.Random", "J.jvxl.data.JvxlCoder", "J.util.Logger", "$.Measure", "$.MeshSurface", "$.SB", "$.V3"], function () { c$ = Clazz.decorateAsClass (function () { this.psi_n = 2; th...
PypiClean
/cheermeup-1.0.1.tar.gz/cheermeup-1.0.1/README.md
# Cheermeup Command line program that plays random animal from your favorite animal subreddits! ## Standalone [executable](https://github.com/andohuman/cheermeup/releases/tag/v1.0.1) (windows only) ![](https://i.imgur.com/uHT9ygp.gif) ## As a commandline app (available on windows and unix) ![](https://i.imgur.com...
PypiClean
/mw-adapter-transformers-3.2.1.tar.gz/mw-adapter-transformers-3.2.1/src/adapter_transformers/models/data2vec/convert_data2vec_vision_original_pytorch_checkpoint_to_pytorch.py
import argparse import json import torch from PIL import Image from huggingface_hub import hf_hub_download from timm.models import create_model from adapter_transformers import ( BeitFeatureExtractor, Data2VecVisionConfig, Data2VecVisionForImageClassification, Data2VecVisionModel, ) def create_renam...
PypiClean
/heppyfwk-3.0.1.tar.gz/heppyfwk-3.0.1/heppy/analyzers/PapasPFReconstructor.py
from heppy.framework.analyzer import Analyzer from heppy.papas.pfalgo.pfreconstructor import PFReconstructor as PFReconstructor from heppy.papas.pfalgo.distance import Distance from heppy.papas.data.idcoder import IdCoder class PapasPFReconstructor(Analyzer): ''' Module to reconstruct particles from blocks of eve...
PypiClean
/kameleoon-client-python-2.3.0.tar.gz/kameleoon-client-python-2.3.0/kameleoon/real_time/real_time_configuration_service.py
import json from typing import Any, Callable, Dict, Optional import sseclient import requests from kameleoon.helpers.logger import Logger from kameleoon.helpers.multi_threading import run_in_threads_if_required from kameleoon.real_time.real_time_event import RealTimeEvent KAMELEOON_REAL_TIME_CONFIGURATION_THREAD = ...
PypiClean
/6_rosdep-0.1.0-py3-none-any.whl/fixed_rosdep/platforms/debian.py
# Author Tully Foote, Ken Conley from __future__ import print_function import subprocess import sys from rospkg.os_detect import ( OS_DEBIAN, OS_LINARO, OS_UBUNTU, OS_ELEMENTARY, OS_MX, OS_POP, OS_ZORIN, OsDetect, read_os_release ) from .pip import PIP_INSTALLER from .gem import G...
PypiClean
/django-monaco-editor-1.0.9.tar.gz/django-monaco-editor-1.0.9/django_monaco_editor/static/external/monaco-editor/min/vs/basic-languages/cpp/cpp.js
define("vs/basic-languages/cpp/cpp",["require","exports"],(function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.conf={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"[",close:"]"},{open:"{",close:"}"},{open:"(",close:")"},{o...
PypiClean
/pyquibbler_labextension-0.2.8-py3-none-any.whl/pyquibbler_labextension/labextension/static/remoteEntry.f482887ed8f5cd755d78.js
var _JUPYTERLAB;(()=>{"use strict";var e,r,t,n,a,o,i,u,l,s,f,d,c,p,h,b,v,g,y={918:(e,r,t)=>{var n={"./index":()=>t.e(667).then((()=>()=>t(667))),"./extension":()=>t.e(667).then((()=>()=>t(667))),"./style":()=>t.e(747).then((()=>()=>t(747)))},a=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error...
PypiClean
/Quart-Session-OpenID-1.0.4.tar.gz/Quart-Session-OpenID-1.0.4/quart_session_openid/__init__.py
__version__ = '1.0.4' from warnings import warn warn(""" `quart-session-openid` is deprecated and replaced by https://github.com/kroketio/quart-keycloak """.strip(), DeprecationWarning, stacklevel=2) DEFAULT_AUDIENCE = "account" # Keycloak default from quart_session_openid.utils import AzureResource AAD_GRAPH_API...
PypiClean
/nxt-python2-2.2.2.zip/nxt-python2-2.2.2/nxt/locator.py
import traceback, ConfigParser, os class BrickNotFoundError(Exception): pass class NoBackendError(Exception): pass class Method(): """Used to indicate which comm backends should be tried by find_bricks/ find_one_brick. Any or all can be selected.""" def __init__(self, usb=True, bluetooth=True, fanto...
PypiClean
/HalRing-2.0.4-py3-none-any.whl/halring/sqlserver_lib/halring_sqlserver.py
import os import sys nga_root = os.path.abspath(__file__).split("halring")[0] sys.path.append(nga_root) from loguru import logger import pymssql class SqlServerUtil(object): """ MS SQL Server Author: xqzhou """ _connection = None def __init__(self, host, port, user, password, db): """ ...
PypiClean
/geomet-data-registry-0.1.0.tar.gz/geomet-data-registry-0.1.0/geomet_data_registry/layer/hrdpa.py
from datetime import datetime, timedelta import json import logging import os import re from parse import parse from geomet_data_registry.layer.base import BaseLayer from geomet_data_registry.util import DATE_FORMAT LOGGER = logging.getLogger(__name__) class HrdpaLayer(BaseLayer): """HRDPA layer""" def __...
PypiClean
/tensorflow_cpu_aws-2.14.0rc1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/tensorflow/python/ops/linalg/linear_operator_tridiag.py
"""`LinearOperator` acting like a tridiagonal matrix.""" from tensorflow.python.framework import ops from tensorflow.python.framework import tensor_conversion from tensorflow.python.ops import array_ops from tensorflow.python.ops import array_ops_stack from tensorflow.python.ops import check_ops from tensorflow.python...
PypiClean
/XD-Docker-0.2.0.tar.gz/XD-Docker-0.2.0/README.md
XD-Docker ========= Python library for accessing Docker Remote API. XD-Docker aims at providing an easy to use and Pythonic API for working with the Docker Remote API in Python. Developer resources ------------------- - [![PyPI](https://img.shields.io/pypi/v/xd-docker.svg?maxAge=2592000)](https://pypi.python.org/p...
PypiClean
/google_pandas_load-6.0.0-py3-none-any.whl/google_pandas_load/loader.py
import os import logging import pandas from typing import Literal, List, Dict, Any, Optional from datetime import datetime from copy import deepcopy from google.cloud import bigquery, storage from google_pandas_load import constants, load_config, utils logger = logging.getLogger(name=__name__) class Loader: """Wr...
PypiClean
/mdid-3.7.7-py3-none-any.whl/rooibos/access/management/commands/ip_range_access.py
from django.core.management.base import BaseCommand from rooibos.data.models import Collection from rooibos.storage.models import Storage from rooibos.access.models import ExtendedGroup, Subnet, AccessControl, \ ContentType class Command(BaseCommand): help = "Creates or updates IP address based extended user...
PypiClean
/pyatp-1.2.14-py3-none-any.whl/ailab/inference_wrapper/yolo/wrapper/yolov5/utils/general.py
import contextlib import glob import inspect import logging import logging.config import math import os import platform import random import re import signal import subprocess import sys import time import urllib from copy import deepcopy from datetime import datetime from itertools import repeat from multiprocessing.p...
PypiClean
/python-iotronicclient-0.4.7.tar.gz/python-iotronicclient-0.4.7/iotronicclient/v1/exposed_service_shell.py
from iotronicclient.common import cliutils from iotronicclient.common.i18n import _ from iotronicclient.v1 import resource_fields as res_fields @cliutils.arg( 'board', metavar='<id>', help="Name or UUID of the board ") @cliutils.arg( '--limit', metavar='<limit>', type=int, help='Maximum n...
PypiClean
/zope.app.twisted-3.5.0.tar.gz/zope.app.twisted-3.5.0/src/twisted/internet/ssl.py
# If something goes wrong, most notably an OpenSSL import failure, # sys.modules['twisted.internet.ssl'] will be bound to a partially # initialized module object. This is wacko, but we will take advantage # of it to publish whether or not SSL is available. # See the end of this module for the other half of this soluti...
PypiClean
/celery-director-0.9.0.tar.gz/celery-director-0.9.0/director/tasks/workflows.py
import time from celery.utils.log import get_task_logger from celery import chain from celery.utils import uuid from director.extensions import cel from director.models import StatusType from director.models.workflows import Workflow from director.models.tasks import Task logger = get_task_logger(__name__) @cel....
PypiClean
/aws-cdk-lib-2.94.0.tar.gz/aws-cdk-lib-2.94.0/src/aws_cdk/aws_eks/__init__.py
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from typeguard import check_type from .._jsii import * import constructs as _constructs_77d1e7e8 from .. import ( CfnResource as _CfnResource_9df397a6, CfnTag as _CfnTag_f6864754, ...
PypiClean
/ndx-bipolar-referencing-0.2.0.tar.gz/ndx-bipolar-referencing-0.2.0/README.md
# ndx-bipolar-referencing Extension for NWB:N Structure for storing the bipolar schema of a recording in an NWB file. ![schema schema](https://github.com/ben-dichter-consulting/ndx-bipolar-referencing/blob/master/docs/media/bipolar_reference_schema_schema.png?raw=true) ## python installation ```bash $ pip install nd...
PypiClean
/fin_model_course-0.1.17.tar.gz/fin_model_course-0.1.17/fin_model_course/lectures/lab_exercise.py
import datetime from typing import Sequence, Optional, List, Union import pyexlatex as pl from pydantic.dataclasses import dataclass from build_tools.ext_rst import header_rst from lectures.model import Lecture, LectureNotes, LectureGroup, Serializable from pltemplates.exercises.lab_exercise import LabExercise @dat...
PypiClean
/zhousf-lib-0.9.9.tar.gz/zhousf-lib-0.9.9/zhousflib/datasets/classification/classification_dataset_split.py
import shutil import imghdr import numpy as np from pathlib import Path from zhousflib.util import list_util """ 一般情况下,在加载预训练模型的情况下,每个类别包括 10-20 张图像即可保证基本的分类效果; 不加载预训练模型的情况下,每个类别需要至少包含 100-200 张图像以保证基本的分类效果。 训练集、验证集、测试集的类别都要全,不然会给训练带来麻烦 """ def fetch_available_cls_folder(img_dir: Path): """ 删除空目录 :param i...
PypiClean
/pysports_stats-0.2.1-py3-none-any.whl/sports/nfl/player.py
import pandas as pd import re from functools import wraps from lxml.etree import ParserError, XMLSyntaxError from pyquery import PyQuery as pq from urllib.error import HTTPError from .. import utils from .constants import PLAYER_SCHEME, PLAYER_URL, ROSTER_URL def _cleanup(prop): try: prop = prop.replace("...
PypiClean
/flowest-1.0.0.tar.gz/flowest-1.0.0/flower/app.py
from __future__ import absolute_import import logging from functools import partial from concurrent.futures import ThreadPoolExecutor import celery import tornado.web from tornado import ioloop from tornado.httpserver import HTTPServer from .api import control from .urls import handlers from .events import Events ...
PypiClean
/django-json-rpc-0.7.2.tar.gz/django-json-rpc-0.7.2/jsonrpc/proxy.py
import uuid from six.moves.urllib import request as urllib_request from six.moves.urllib import error as urllib_error from django.test.client import FakePayload from jsonrpc._json import loads, dumps from jsonrpc._types import * class ServiceProxy(object): def __init__(self, service_url, service_name=None, versi...
PypiClean
/haruhi_dl-2021.8.1.tar.gz/haruhi_dl-2021.8.1/haruhi_dl/extractor/turbo.py
from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import compat_str from ..utils import ( ExtractorError, int_or_none, qualities, xpath_text, ) class TurboIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?turbo\.fr/videos-voiture/(?P<id>[0-9]+)-...
PypiClean
/amethyst-core-0.9.0.tar.gz/amethyst-core-0.9.0/amethyst/core/util.py
# SPDX-License-Identifier: LGPL-3.0 __all__ = """ cached_property coalesce dict_of get_class identity list_of set_of smartmatch tupley """.split() import importlib import inspect import re import threading import types _NOT_FOUND = object() def identity(x): """The identity function, returns its (single) argume...
PypiClean
/sagemath-polyhedra-9.5b6.tar.gz/sagemath-polyhedra-9.5b6/sage/modules/misc.py
from sage.matrix.constructor import matrix from sage.rings.integer_ring import ZZ # Function below could be replicated into # sage.matrix.matrix_integer_dense.Matrix_integer_dense.is_LLL_reduced # which is its only current use (2011-02-26). Then this could # be deprecated and this file removed. def gram_schmidt(B):...
PypiClean
/sofia_redux-1.3.3.tar.gz/sofia_redux-1.3.3/sofia_redux/scan/channels/mode/motion_response.py
from abc import abstractmethod import re from sofia_redux.scan.channels.mode.response import Response from sofia_redux.scan.flags.motion_flags import MotionFlags __all__ = ['MotionResponse'] class MotionResponse(Response): def __init__(self, channel_group=None, gain_provider=None, name=None): """ ...
PypiClean
/cl-gym-1.0.3.tar.gz/cl-gym-1.0.3/cl_gym/utils/callbacks/base.py
import os from pathlib import Path from typing import List, Optional class ContinualCallback: """ Base class for continual callback. Simply, a callback can listen to one or several events that the Trainer emits during the learning experience: .. image:: https://user-images.githubusercontent.com/8...
PypiClean
/uniohomeassistant-0.1.3.tar.gz/uniohomeassistant-0.1.3/homeassistant/components/nilu/air_quality.py
from datetime import timedelta import logging from niluclient import ( CO, CO2, NO, NO2, NOX, OZONE, PM1, PM10, PM25, POLLUTION_INDEX, SO2, create_location_client, create_station_client, lookup_stations_in_area, ) import voluptuous as vol from homeassistant.comp...
PypiClean
/django-timezones2-1.0.4.tar.gz/django-timezones2-1.0.4/timezones2/utils.py
import os import datetime import pytz import re from django.conf import settings from django.utils.encoding import force_unicode try: from threading import local except ImportError: from django.utils._threading_local import local SESSION_KEY = 'timezones2_tz' _tz_store = local() _ipv4_private = re.compile( ...
PypiClean
/pygments-style-tomorrow-1.0.0.1.tar.gz/pygments-style-tomorrow-1.0.0.1/pygments_style_tomorrow/tomorrownighteighties.py
from pygments.style import Style from pygments.token import Keyword, Name, Comment, String, Error, Text, \ Number, Operator, Generic, Whitespace, Punctuation, Other, Literal BACKGROUND = "#2d2d2d" CURRENT_LINE = "#393939" SELECTION = "#515151" FOREGROUND = "#cccccc" COMMENT = "#999999" RED = "#f2777a" ORANGE = "...
PypiClean
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/reporting/operations/admin_moderation_rule/create_moderation_rule.py
# template file: ags_py_codegen # pylint: disable=duplicate-code # pylint: disable=line-too-long # pylint: disable=missing-function-docstring # pylint: disable=missing-module-docstring # pylint: disable=too-many-arguments # pylint: disable=too-many-branches # pylint: disable=too-many-instance-attributes # pylint: dis...
PypiClean
/PySPH-1.0a2.zip/PySPH-1.0a2/pysph/base/ast_utils.py
import ast class NameLister(ast.NodeVisitor): """Utility class to collect the Names in an AST. """ def __init__(self, ctx=(ast.Load, ast.Store)): self.names = set() self.ctx = ctx def visit_Name(self, node): if isinstance(node.ctx, self.ctx): self.names.add(node.id...
PypiClean
/hdxms_datasets-0.1.3.tar.gz/hdxms_datasets-0.1.3/docs/usage/configuration.md
# Configuration Default values for HDXMS Datasets configuration are stored as a .yaml file in `~/.hdxms_datasets/config.yaml`. The values there can be modified to update default settings. The default configuration is as follows: ```yaml database_dir: $home/.hdxms_datasets/datasets database_url: https://raw.githubus...
PypiClean
/spead2-3.10.0.tar.gz/spead2-3.10.0/doc/py-send.rst
Sending ======= Unlike for receiving, each stream object can only use a single transport. There is currently no support for collective operations where multiple producers cooperate to construct a heap between them. It is still possible to do multi-producer, single-consumer operation if the heap IDs are kept separate. ...
PypiClean
/django-uikit-editor-0.0.1.tar.gz/django-uikit-editor-0.0.1/uikit_editor/static/uikit_editor/codemirror/mode/php/php.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("../htmlmixed/htmlmixed"), require("../clike/clike")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror", "../htmlmixed/htmlmixed", ...
PypiClean
/Pocoo-0.1.5.tar.gz/Pocoo-0.1.5/pocoo/pkg/core/static/pocoo/app/BBCodeEditor.js
var editors = {}; Editor = function() { for (var z = 0; z < arguments.length; z++) { var arg = arguments[z]; this[arg[0]] = arg[1]; } }; function initEditor(textarea, toolbar, preview, prev_text, options) { var editor = new Editor( ['textarea', AJS.$(textarea)], ['toolbar',...
PypiClean
/geowatch-0.9.4.tar.gz/geowatch-0.9.4/watch/tasks/rutgers_material_seg/utils/cva.py
import numpy as np def norm_img(img, channel_first=True): if channel_first: channel, img_height, img_width = img.shape img = np.reshape(img, (channel, img_height * img_width)) # (channel, height * width) max_value = np.max(img, axis=1, keepdims=True) # (channel, 1) min_value = np...
PypiClean
/bika.lims-3.2.1rc1.tar.gz/bika.lims-3.2.1rc1/bika/lims/skins/bika/bika_widgets/rejectionsetupwidget.js
jQuery(function($){ $(document).ready(function(){ hide_show_options(); $('input.rejectionwidget-checkbox').bind("change", function () { hide_show_options(); }); rejectionwidget_loadEventHandlers(); }); }); function hide_show_options() { // Hide/show the rejection...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/ngine_io/vultr/plugins/modules/vultr_region_info.py
from __future__ import (absolute_import, division, print_function) __metaclass__ = type DOCUMENTATION = r''' --- module: vultr_region_info short_description: Gather information about the Vultr regions available. description: - Gather information about regions available to boot servers. version_added: "0.1.0" autho...
PypiClean
/v2/model/single_background_task.py
import pprint import re import six class SingleBackgroundTask: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key i...
PypiClean
/euv-snapshot-imaging-spectrograph-0.1.1.tar.gz/euv-snapshot-imaging-spectrograph-0.1.1/esis/data/inversion/mart/forward.py
import astropy.units as u import numpy as np import scipy.ndimage import typing as typ import time from skimage.transform import rotate import dataclasses __all__ = ['model', 'deproject'] def min_projection_shape( cube: np.ndarray, spectral_order: int, x_axis: int = ~1, w_axis: int = ...
PypiClean
/sentry-phabricator-0.7.0.tar.gz/sentry-phabricator-0.7.0/sentry_phabricator/plugin.py
from django import forms from django.utils.translation import ugettext_lazy as _ from sentry.plugins.bases.issue import IssuePlugin import httplib import phabricator import sentry_phabricator import urlparse class PhabricatorOptionsForm(forms.Form): host = forms.URLField(help_text=_("e.g. http://secure.phabrica...
PypiClean
/f_icon-0.0.3-py3-none-any.whl/windows_icon.py
import os import time from pathlib import Path from subprocess import run from configparser import ConfigParser import numpy import numpy as np from PIL import Image import cv2 # opencv-python class IconCreator: """ Create icon for windows folder """ def __init__(self, debug=False): """ ...
PypiClean
/slowtoris-1.3.tar.gz/slowtoris-1.3/README.md
# SlowToris A Slow Loris attack implementation in Python3 with support for the Tor network and SOCKS5 proxies. You can view the usage of this script by running: $ slowtoris.py --help ### Installing Slowtoris: ##### Using pip: $ pip install slowtoris If you choose this solution you can jump to the Tor inst...
PypiClean