id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/pytest_splunk_addon_ui_smartx-2.3.3b1.tar.gz/pytest_splunk_addon_ui_smartx-2.3.3b1/pytest_splunk_addon_ui_smartx/components/base_component.py
import re from collections import namedtuple from time import sleep from selenium.common.exceptions import TimeoutException from selenium.webdriver.common.action_chains import ActionChains as action_chains from selenium.webdriver.common.by import By from selenium.webdriver.support import expected_conditions as EC fro...
PypiClean
/Shabti-0.4.4.tar.gz/Shabti-0.4.4/shabti/templates/moinmoin/+package+/public/moin_static/applets/FCKeditor/editor/lang/ca.js
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://ww...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/staphylococcusequorum.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def StaphylococcusEquorum( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_graph_kwargs: ...
PypiClean
/infi.ZSI-2.2.3.tar.gz/infi.ZSI-2.2.3/test/wsdl2py/servers/DateService.py
import sys, time from ZSI.ServiceContainer import AsServer from DateService_server import simple_Date_Service as _DateService class Service(_DateService): def soap_getCurrentDate(self, ps): request,response = _DateService.soap_getCurrentDate(self, ps) response.Today = today = response.new_today() ...
PypiClean
/poetry_exp-0.1.1-py3-none-any.whl/poetry_exp/mypy/app/vmware_exp/examples/virtual_storage_obj_mgr_exp.py
import re import time from pyVmomi import vim, vmodl from vmware_exp.examples import vcenter_utils def is_file_exist_in_vm(vm_uuid, vm_user_name, vm_psw, file_path): try: si = vcenter_utils.connect_vcenter() content = si.RetrieveContent() # if instanceUuid is false it will search for VM BIO...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/reports/authentication_methods/users_registered_by_feature/users_registered_by_feature_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
/askbot-tuanpa-0.7.48.zip/askbot-tuanpa-0.7.48/askbot/setup_templates/static/tiny_mce/plugins/table/langs/zh_dlg.js
tinyMCE.addI18n('zh.table_dlg',{"rules_border":"\u8fb9\u6846","rules_box":"\u65b9\u76d2","rules_vsides":"\u5782\u76f4","rules_rhs":"\u53f3\u8fb9","rules_lhs":"\u5de6\u8fb9","rules_hsides":"\u6c34\u5e73","rules_below":"\u4e0b","rules_above":"\u4e0a","rules_void":"\u7a7a",rules:"\u89c4\u5219","frame_all":"\u5168\u90e8","...
PypiClean
/django-basic-cms-0.3.16.tar.gz/django-basic-cms-0.3.16/basic_cms/static/pages/ckeditor/_source/plugins/forms/dialogs/hiddenfield.js
/* Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'hiddenfield', function( editor ) { return { title : editor.lang.hidden.title, minWidth : 350, minHeight : 110, onShow : function() { delet...
PypiClean
/taxRep-0.5.3.tar.gz/taxRep-0.5.3/bin/quickTaxonomy_centrifuge.py
import argparse import sys import tRep __version__ = tRep.__version__ if __name__ == "__main__": """ This is executed when run from the command line """ parser = argparse.ArgumentParser(description="Quickly determine the taxonomy of a genome") InpArgs = parser.add_argument_group('INPUT ARGUMENTS') ...
PypiClean
/tensorflow_intel-2.14.0rc0-cp39-cp39-win_amd64.whl/tensorflow/python/ops/signal/mfcc_ops.py
"""Mel-Frequency Cepstral Coefficients (MFCCs) ops.""" from tensorflow.python.framework import ops from tensorflow.python.ops import array_ops from tensorflow.python.ops import math_ops from tensorflow.python.ops.signal import dct_ops from tensorflow.python.util import dispatch from tensorflow.python.util.tf_export im...
PypiClean
/asappy-0.0.1.tar.gz/asappy-0.0.1/asap/annotation.py
import pandas as pd import numpy as np import logging from typing import Literal from asap.data.dataloader import DataSet from asap.model import dcpmf from asap.model import rpstruct as rp logger = logging.getLogger(__name__) class ASAPNMF: ''' Attributes ---------- generate_pbulk : bool Generate pseudobulk dat...
PypiClean
/google-ads-21.3.0.tar.gz/google-ads-21.3.0/google/ads/googleads/v13/services/services/google_ads_service/transports/grpc.py
import warnings from typing import Callable, Dict, Optional, Sequence, Tuple from google.api_core import grpc_helpers from google.api_core import gapic_v1 import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # ty...
PypiClean
/usgs-m2m-api-0.2.0.tar.gz/usgs-m2m-api-0.2.0/README.md
# USGS Python API An object oriented wrapper around the USGS Earth Explorer JSON API (v1.5.x). The primary objective of this API is to provide a convenient method of requesting and downloading scenes from EE datasets, including robust metadata where available. ## API Documentation https://cast.git-pages.uark.edu/tran...
PypiClean
/asynqp_consumer-0.4.0-py3-none-any.whl/asynqp_consumer/records.py
from abc import ABCMeta from typing import Dict, List, Union from urllib.parse import urlparse ArgumentsType = Dict[str, Union[int, float, str]] class BaseObject(metaclass=ABCMeta): __slots__ = [] def __eq__(self, other): if type(self) != type(other): # pylint: disable=unidiomatic-typecheck ...
PypiClean
/qldailycheckin-0.0.8.tar.gz/qldailycheckin-0.0.8/dailycheckin/www2nzz/www2nzz.py
import json import os import re import requests import urllib3 from requests import utils urllib3.disable_warnings() class WWW2nzzCheckIn: def __init__(self, check_item): self.check_item = check_item @staticmethod def sign(session): response = session.get(url="http://www.2nzz.com/index....
PypiClean
/easy_manage-0.0.1.tar.gz/easy_manage-0.0.1/easy_manage/tools/ipmi/system/fru.py
"Class for fetching data from FRU (BMC/motherboard in this case)" import subprocess from subprocess import CalledProcessError import logging import re from easy_manage.tools.ipmi.system.maps.chassis_maps import CHASSIS_MAP log = logging.getLogger(__name__) class FRUInventoryOwner: "Base class for FRU inventory u...
PypiClean
/kh_data_science-0.1.4.tar.gz/kh_data_science-0.1.4/kh_data_science/google_storage.py
from google.cloud import storage import os class StorageBucket(object): """ StorageBucket establishes, holds & represents connections to Google Storage buckets and provides methods for commonly-used interactions with the contents of the bucket. """ def __init__(self, bucket_name): self.bucket = se...
PypiClean
/fake_bpy_module_2.79-20230117-py3-none-any.whl/bl_ui/space_dopesheet.py
import sys import typing import bpy_types GenericType = typing.TypeVar("GenericType") class DOPESHEET_HT_header(bpy_types.Header, bpy_types._GenericUI): bl_rna = None ''' ''' bl_space_type = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' ...
PypiClean
/django-trusts-0.10.3.tar.gz/django-trusts-0.10.3/trusts/backends.py
from __future__ import unicode_literals from django.db.models import F, Q, QuerySet from django.contrib.auth import get_user_model from django.contrib.auth.backends import ModelBackend from trusts.models import Trust, Content from trusts import get_permission_model, utils class TrustModelBackendMixin(object): p...
PypiClean
/dagster-k8s-1.0.5.tar.gz/dagster-k8s-1.0.5/dagster_k8s/job.py
import copy import hashlib import json import random import string from collections import namedtuple from typing import Any, Dict, List, Optional import kubernetes import dagster._check as check from dagster import Array, BoolSource, Field, Noneable, StringSource from dagster import __version__ as dagster_version fr...
PypiClean
/pcrawler-0.0.3.tar.gz/pcrawler-0.0.3/src/processor/builtin/SinaNewsPageProcessor.py
import time import traceback from lxml import etree from src.config.Config import logging from src.processor.PageProcess import PageProcess from src.util.ElementUtil import * class SinaNewsPageProcessor(PageProcess): """爬去新浪新闻数据""" def process(self, page): """处理一个页面 将页面的种子url添加到页面调度器中,同时对页面内容进行爬取""...
PypiClean
/mindsponge_gpu-1.0.0rc1-py3-none-any.whl/mindsponge/cell/msa.py
"""MSA""" import numpy as np import mindspore.nn as nn import mindspore.common.dtype as mstype from mindspore import Parameter from mindspore.common.tensor import Tensor from mindspore.ops import operations as P from .basic import Attention, GlobalAttention from .mask import MaskedLayerNorm from ..common.utils import _...
PypiClean
/fds.sdk.StocksAPIforDigitalPortals-0.10.12-py3-none-any.whl/fds/sdk/StocksAPIforDigitalPortals/model/inline_response2001_data_income_statement_net_interest_income_after_loan_loss_provision.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.StocksAPIforDigitalPortals.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...
PypiClean
/acadia-0.1.1.tar.gz/acadia-0.1.1/README.md
# acadia ## An audio alternative of conventional diagrms for blind and visually impaired people Acadia stands for accessible audio diagrams, the tool designed to assist blind and visually impaired people to get access to representation of numeric data. ### Introduction When dealing with really big amounts of nu...
PypiClean
/deezfacu-2021.8.31-py3-none-any.whl/deezloader/__init__.py
from .__dee_api__ import API from .__easy_spoty__ import Spo from .__deegw_api__ import API_GW from .models import ( Track, Album, Playlist, Preferences, Smart ) from .__download__ import ( DW_TRACK, DW_ALBUM, DW_PLAYLIST, Download_JOB ) from .exceptions import ( InvalidLink, TrackNotFound, NoDataApi, AlbumNo...
PypiClean
/robot_log_visualizer-0.6.0-py3-none-any.whl/robot_log_visualizer/robot_visualizer/meshcat_provider.py
from PyQt5.QtCore import QThread, QMutex, QMutexLocker import icub_models import os import re from pathlib import Path import numpy as np import time import idyntree.swig as idyn from idyntree.visualize import MeshcatVisualizer from robot_log_visualizer.utils.utils import PeriodicThreadState class MeshcatProvid...
PypiClean
/dfcx-scrapi-1.7.0.tar.gz/dfcx-scrapi-1.7.0/src/dfcx_scrapi/tools/utterance_generator_util.py
# Copyright 2023 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
PypiClean
/visual_mapping_localization-1.3-py3-none-any.whl/vml/utils/database.py
# This script is based on an original implementation by True Price. import sys import sqlite3 import numpy as np IS_PYTHON3 = sys.version_info[0] >= 3 MAX_IMAGE_ID = 2**31 - 1 CREATE_CAMERAS_TABLE = """CREATE TABLE IF NOT EXISTS cameras ( camera_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, model INTEGER...
PypiClean
/oxford-learners-scraper-0.2.5.tar.gz/oxford-learners-scraper-0.2.5/oxford_learners_scraper/import_command.py
import os from datetime import datetime from cleo import Command import xlsxwriter from oxford_learners_scraper.scraper import OxfordLearnerScraper class ImportCommand(Command): """ Imports words from Oxford Learner's Dictionary (American) import {terms* : What words should we import?} ...
PypiClean
/pasta_eln-2.4.10-py3-none-any.whl/pasta_eln/GUI/configSetupLinux.py
import logging from pathlib import Path from typing import Callable, Any from PySide6.QtWidgets import QWidget, QVBoxLayout, QTextEdit, QMessageBox, QFileDialog, QProgressBar # pylint: disable=no-name-in-module from ..guiStyle import TextButton, widgetAndLayout from ..installationTools import couchdb, configuration,...
PypiClean
/zephyrus-sc2-parser-0.3.8.tar.gz/zephyrus-sc2-parser-0.3.8/zephyrus_sc2_parser/gamedata/73286/upgrade_data.py
upgrades = {'Protoss': {'ObserverGraviticBooster': {'mineral_cost': 100, 'gas_cost': 100}, 'GraviticDrive': {'mineral_cost': 100, 'gas_cost': 100}, 'ExtendedThermalLance': {'mineral_cost': 150, 'gas_cost': 150}, 'PsiStormTech': {'mineral_cost': 200, 'gas_cost': 200}, 'WarpGateResearch': {'mineral_cost': 50, 'gas_cost':...
PypiClean
/winevtrc-20220106.tar.gz/winevtrc-20220106/docs/sources/eventlog-providers/Provider-Security.md
## Security Seen on: * Windows 2000 <table border="1" class="docutils"> <tbody> <tr> <td><b>Log source(s):</b></td> <td>Security</td> </tr> <tr> <td><b>Log type:</b></td> <td>Security</td> </tr> <tr> <td><b>Category message file(s):</b></td> <td>%systemroot%\s...
PypiClean
/lsst-daf-butler-26.0.0a20230200.tar.gz/lsst-daf-butler-26.0.0a20230200/python/lsst/daf/butler/cli/opt/optionGroups.py
__all__ = ("query_datasets_options",) import click from ..utils import OptionGroup, unwrap, where_help from .arguments import glob_argument, repo_argument from .options import collections_option, dataset_type_option, where_option class query_datasets_options(OptionGroup): # noqa: N801 def __init__(self, rep...
PypiClean
/gsmls-0.0.4.tar.gz/gsmls-0.0.4/gsmls.py
import re import requests import logging import lxml.html, lxml.etree from typing import List from itertools import chain __version__ = '0.0.4' class GSMLSException(Exception): pass # https://forms.gsmls.com/TownCodes.pdf counties = { "Atlantic": 10, "Bergen": 11, "Burlington": 12, "Camden": 13...
PypiClean
/omnineuro-2023.2.1-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/omni/pipelines/preprocessing.py
import os import json import shutil from typing import Dict, List import nibabel as nib import numpy as np from memori.helpers import * from memori.pathman import append_suffix, repath from memori import Pipeline, Stage from omni.interfaces.afni import NwarpApply from omni.pipelines.anat.masks import weight_mask_and_au...
PypiClean
/httpx_caching-0.1a3-py3-none-any.whl/httpx_caching/_heuristics.py
import calendar import time from datetime import datetime, timedelta from email.utils import formatdate, parsedate, parsedate_tz TIME_FMT = "%a, %d %b %Y %H:%M:%S GMT" def expire_after(delta, date=None): date = date or datetime.utcnow() return date + delta def datetime_to_header(dt): return formatdate...
PypiClean
/toga-android-0.3.1.tar.gz/toga-android-0.3.1/src/toga_android/libs/android/widget.py
from rubicon.java import JavaClass, JavaInterface ArrayAdapter = JavaClass("android/widget/ArrayAdapter") # `ArrayAdapter` can also be typecast into a `SpinnerAdapter`. # This is required until `rubicon-java` explores the interfaces # implemented by a class's subclasses. ArrayAdapter._alternates.append(b"Landroid/widg...
PypiClean
/_aux/PiMetadataInterpreter/pimetadatainterpreter.py
# SPDX-FileCopyrightText: © 2018 Josef Hahn # SPDX-License-Identifier: AGPL-3.0-only import argparse import functools import json import math import os import re import sys import threading import urllib.parse class PiMetadataInterpreterError(Exception): """ Exception subclass for any errors raised by us. ...
PypiClean
/songfindercli-0.9.0-py3-none-any.whl/songfinder/themes.py
from __future__ import unicode_literals from __future__ import division import math try: import tkinter as tk import tkinter.font as tkFont except ImportError: import Tkinter as tk import tkFont from songfinder import background from songfinder import cache from songfinder import classSettings as set...
PypiClean
/miningpoolhub_py-1.0.18.tar.gz/miningpoolhub_py-1.0.18/miningpoolhub_py/miningpoolhubapi.py
from yarl import URL from aiohttp import ( ClientSession, ClientResponse, ClientResponseError, ClientConnectionError, ) from json.decoder import JSONDecodeError from . import API_KEY from .exceptions import ( APIError, APIRateLimitError, JsonFormatError, InvalidCoinError, Unauthoriz...
PypiClean
/nile_api-0.2.8.tar.gz/nile_api-0.2.8/nile_api/api/metrics/list_metric_definitions.py
from http import HTTPStatus from typing import Any, Dict, Optional import httpx from ...client import Client from ...models.error import Error from ...models.list_metric_definitions_response import ( ListMetricDefinitionsResponse, ) from ...types import Response def _get_kwargs( workspace: str, *, c...
PypiClean
/pycubedoe-0.0.1.tar.gz/pycubedoe-0.0.1/README.rst
======== Overview ======== .. start-badges .. list-table:: :stub-columns: 1 * - tests - | |travis| | * - package - | |version| |wheel| |supported-versions| |supported-implementations| | |commits-since| .. |travis| image:: https://api.travis-ci.com/jataware/pycubedoe.svg?branc...
PypiClean
/decentro_in_kyc_python_sdk-4.4.0-py3-none-any.whl/decentro_in_kyc_client/validation_metadata.py
import frozendict import typing from decentro_in_kyc_client.configuration import ( Configuration, ) class ValidationMetadata(frozendict.frozendict): """ A class storing metadata that is needed to validate OpenApi Schema payloads """ def __new__( cls, path_to_item: typing.Tuple[typin...
PypiClean
/sIBL_GUI-4.0.8.tar.gz/sIBL_GUI-4.0.8/sibl_gui/components/core/templatesOutliner/templatesOutliner.py
#********************************************************************************************************************** #*** Future imports. #********************************************************************************************************************** from __future__ import unicode_literals #*****************...
PypiClean
/sandstone-slurm-assist-0.12.0.tar.gz/sandstone-slurm-assist-0.12.0/sandstone_slurm/node_modules/bower/lib/node_modules/sshpk/lib/identity.js
module.exports = Identity; var assert = require('assert-plus'); var algs = require('./algs'); var crypto = require('crypto'); var Fingerprint = require('./fingerprint'); var Signature = require('./signature'); var errs = require('./errors'); var util = require('util'); var utils = require('./utils'); var asn1 = requi...
PypiClean
/kaircs-0.4.0.tar.gz/kaircs-0.4.0/riak/transports/tcp/transport.py
import six import riak.pb.messages from riak import RiakError from riak.codecs import Codec, Msg from riak.codecs.pbuf import PbufCodec from riak.codecs.ttb import TtbCodec from riak.pb.messages import MSG_CODE_TS_TTB_MSG from riak.transports.pool import BadResource from riak.transports.transport import Transport fr...
PypiClean
/CartiMorph_nnUNet-1.7.14.tar.gz/CartiMorph_nnUNet-1.7.14/CartiMorph_nnUNet/experiment_planning/nnUNet_plan_and_preprocess.py
import CartiMorph_nnUNet from batchgenerators.utilities.file_and_folder_operations import * from CartiMorph_nnUNet.experiment_planning.DatasetAnalyzer import DatasetAnalyzer from CartiMorph_nnUNet.experiment_planning.utils import crop from CartiMorph_nnUNet.paths import * import shutil from CartiMorph_nnUNet.utilitie...
PypiClean
/gym_wofost-1.0.7.tar.gz/gym_wofost-1.0.7/gym_wofost/envs/wofost_env.py
__author__ = "Noureddine Ech-chouky" __copyright__ = "Copyright 2007, The Cogent Project" __credits__ = ["Noureddine Ech-chouky", "Mohammed Hmimmou", "Hemza Lahkim"] __license__ = "None" __version__ = "0.0.8" __maintainer__ = "Noureddine Ech-chouky" __email__ = "noureddine.echchouky@um5r.ac.ma" __status__ = "Developmen...
PypiClean
/bitmovin_api_sdk-1.171.0-py3-none-any.whl/bitmovin_api_sdk/encoding/encodings/muxings/packed_audio/packed_audio_api.py
from __future__ import absolute_import from bitmovin_api_sdk.common import BaseApi, BitmovinApiLoggerBase from bitmovin_api_sdk.common.poscheck import poscheck_except from bitmovin_api_sdk.models.bitmovin_response import BitmovinResponse from bitmovin_api_sdk.models.packed_audio_muxing import PackedAudioMuxing from b...
PypiClean
/yupeeee-pytools-0.1.23.tar.gz/yupeeee-pytools-0.1.23/src/yupeeee_pytools/tools/listools.py
from typing import Any, Dict, Iterable, List, Tuple from itertools import chain, compress from more_itertools import locate import re __all__ = [ "argmax_list", "argmin_list", "indices_of_value_in_list", "index_of_first_zero_value_in_list", "index_of_first_nonzero_value_in_list", "load_txt_to...
PypiClean
/puppet-warp-0.2.tar.gz/puppet-warp-0.2/src/pwarp/core/ops.py
from pwarp import np from pwarp.core import dtype def find_ijlr_vertices(edge: np.ndarray, faces: np.ndarray): """ The rotation matrix Tk is given as a transformation that maps the vertices around the edge to new positions as closely as possible in a least-squares sense. WE SAMPLE FOUR VERTICES around...
PypiClean
/django_modern_admin-0.1.tar.gz/django_modern_admin-0.1/django_modern_admin/static/django_modern_admin/js/prism.js
self="undefined"!=typeof window?window:"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope?self:{};var Prism=function(){var e=/\blang(?:uage)?-(?!\*)(\w+)\b/i,t=self.Prism={util:{encode:function(e){return e instanceof n?new n(e.type,t.util.encode(e.content),e.alias):"Array"===t.util.type(e)?e.map(t...
PypiClean
/pymarkdownlnt-0.9.12.tar.gz/pymarkdownlnt-0.9.12/pymarkdown/parser_state.py
from __future__ import annotations import copy from typing import List, Optional, Tuple, cast from typing_extensions import Protocol from pymarkdown.container_markdown_token import BlockQuoteMarkdownToken from pymarkdown.markdown_token import MarkdownToken from pymarkdown.position_marker import PositionMarker from p...
PypiClean
/sparkpipelineframework-2.0.7-py3-none-any.whl/spark_pipeline_framework/transformers/framework_transformer/v1/framework_transformer.py
import json from typing import Any, Dict, List, Optional, TYPE_CHECKING from pyspark.ml.base import Transformer from pyspark.ml.param import Param from pyspark.ml.util import DefaultParamsReadable, DefaultParamsWritable from pyspark.sql.dataframe import DataFrame from typing_extensions import final from spark_pipe...
PypiClean
/tpqtlib-0.0.25.tar.gz/tpqtlib-0.0.25/tpQtLib/widgets/history.py
from __future__ import print_function, division, absolute_import from Qt.QtCore import * from Qt.QtWidgets import * from tpPyUtils import version from tpQtLib.core import base, qtutils from tpQtLib.widgets import treewidgets class HistoryTreeWidget(treewidgets.FileTreeWidget, object): HEADER_LABELS = ['Version...
PypiClean
/SakuraIO-0.1.7.tar.gz/SakuraIO-0.1.7/sakuraio/hardware/rpi/__init__.py
from sakuraio.hardware.base import SAKURAIO_SLAVE_ADDR, SakuraIOBase import time class SakuraIOSMBus(SakuraIOBase): def __init__(self, response_wait_time=0.01): import smbus self.bus = smbus.SMBus(1) self.response_wait_time = response_wait_time def start(self, write=True): if...
PypiClean
/CoDocParser-0.2.49.tar.gz/CoDocParser-0.2.49/docparser/config/excel/excel2_document_config.py
from marshmallow import Schema, fields from docparser.config.excel.kv_rule_config import KvRuleConfigSchema from docparser.config.excel.table_rule_config import TableRuleConfigSchema class ExcelDocumentConfigSchema(Schema): """ Excel 文档配置 """ # ID id = fields.Str(required=True) # 名称 name ...
PypiClean
/get_province_city_county-1.3.0-py3-none-any.whl/get_province_city_county/city.py
import json,os,time,re,requests,bs4 class mycitytree: def __init__(self, file_name): self.main_dic = {} self.mohu = {} self.add_file(file_name) def add_file(self, file_name): t = time.time() print("构建数据模型") with open(file_name, "r", encoding="utf8") as f: ...
PypiClean
/groclient-1.302.0-py3-none-any.whl/api/client/samples/crop_models/cash_crops.py
import os from groclient import GroClient # GRO GLOBAL VARIABLES API_HOST = "api.gro-intelligence.com" ACCESS_TOKEN = os.environ["GROAPI_TOKEN"] # METRIC_ID GLOBALS YIELD = 170037 HARV_AREA = 570001 TEMPERATURE = 2540047 VEG_ANOMALIES = 431132 ETA_PCT = 15852239 PRODUCER_PRICE = 2290065 GRINDINGS = 5380032 COMPOSITE_...
PypiClean
/edgeimpulse_api-1.29.20.tar.gz/edgeimpulse_api-1.29.20/edgeimpulse_api/models/dsp_run_request_with_features.py
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from typing import Dict, List from pydantic import BaseModel, Field, StrictBool, StrictInt, StrictStr class DspRunRequestWithFeatures(BaseModel): features: List[StrictInt] = Field(..., descript...
PypiClean
/cysecuretools-4.2.0.tar.gz/cysecuretools-4.2.0/docs/README_PSOC64.md
# Table of Contents - [Main features](#main-features) - [Quick start](#quick-start) - [Usage example](#usage-example) - [Policy](#policy) - [Keys](#keys) - [Command-line interface](#command-line-interface) - [Tool help](#tool-help) - [Common options](#common-options) - [Create keys](#create-keys) - [Cre...
PypiClean
/cellpose-vollseg-0.0.3.tar.gz/cellpose-vollseg-0.0.3/paper/2.0/train_specialists.py
import sys, os, argparse, time import numpy as np from glob import glob import torch from torch import nn from tqdm import trange, tqdm from cellpose import models from cellpose.io import logger_setup, imread, imsave from cellpose import metrics, transforms, utils, resnet_torch from datasets import reshape_and_normaliz...
PypiClean
/fds.sdk.FixedIncomeCalculation-0.23.1-py3-none-any.whl/fds/sdk/FixedIncomeCalculation/model/calculation_meta.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.FixedIncomeCalculation.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, ...
PypiClean
/kaf_pas-0.0.121-py3-none-any.whl/kaf_pas/planing/views/operations.py
from isc_common.http.DSResponse import DSResponseUpdate, DSResponseAdd, DSResponse, JsonResponseWithException from isc_common.http.RPCResponse import RPCResponseConstant from isc_common.http.response import JsonResponse from kaf_pas.planing.models.operations import Operations from kaf_pas.planing.models.operations_view...
PypiClean
/pyroltrilinos-0.4.0.tar.gz/pyroltrilinos-0.4.0/pybind11/docs/advanced/cast/eigen.rst
Eigen ##### `Eigen <http://eigen.tuxfamily.org>`_ is C++ header-based library for dense and sparse linear algebra. Due to its popularity and widespread adoption, pybind11 provides transparent conversion and limited mapping support between Eigen and Scientific Python linear algebra data types. To enable the built-in E...
PypiClean
/isedit-0.3.0.tar.gz/isedit-0.3.0/js/node_modules/moment/locale/fr-ch.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
/tae-grader-1.0.9.tar.gz/tae-grader-1.0.9/taeg/grade/__init__.py
import os import pandas as pd from .metadata import GradescopeParser, CanvasParser, JSONParser, YAMLParser from .containers import launch_parallel_containers from .utils import merge_csv def main(args): """Runs Taeg Grade Args: args (``argparse.Namespace``): parsed command line arguments """ ...
PypiClean
/ModelicaRes-0.12.2.tar.gz/ModelicaRes-0.12.2/modelicares/linres.py
__author__ = "Kevin Davies" __email__ = "kdavies4@gmail.com" __copyright__ = ("Copyright 2012-2014, Kevin Davies, Hawaii Natural Energy " "Institute, and Georgia Tech Research Corporation") __license__ = "BSD-compatible (see LICENSE.txt)" # Standard pylint settings for this project: # pylint: disable=...
PypiClean
/authone-admin-0.0.2.tar.gz/authone-admin-0.0.2/authone/error.py
class AuthOneError(Exception): def __init__(self, message=None): super().__init__(message) self._message = message def __str__(self): return self._message or '<empty message>' def __repr__(self): return '{error_class}(message={message!r})'.format( error_class=s...
PypiClean
/Trionyx-3.0.0.tar.gz/Trionyx-3.0.0/trionyx/trionyx/static/plugins/summernote/lang/summernote-es-ES.js
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else { var a = factory(); for(var i in a) (typeof exports === 'object' ? exports : roo...
PypiClean
/pyrobotf-1.0.0.tar.gz/pyrobotf-1.0.0/pyrobot/exceptions.py
__all__ = [ 'BaseTestException', 'DecoratorException', 'LoggerException', 'ResException', 'NoSuchProcess', 'AccessDenied', 'NetException', 'AsyncMsgError', 'ThreadTermException', 'LockFileError', 'NotImplementedYet', 'ConfigError', 'PlatformError', 'NoSuchDir', 'NoSuchBinary' ] class BaseTestExcep...
PypiClean
/boto-patch-2.38.0.tar.gz/boto-patch-2.38.0/boto/s3/multipart.py
from boto.s3 import user from boto.s3 import key from boto import handler import xml.sax class CompleteMultiPartUpload(object): """ Represents a completed MultiPart Upload. Contains the following useful attributes: * location - The URI of the completed upload * bucket_name - The name of the b...
PypiClean
/django-silver-0.11.1.tar.gz/django-silver-0.11.1/silver/models/documents/base.py
from __future__ import absolute_import, unicode_literals import logging from datetime import datetime, timedelta from decimal import Decimal from django_fsm import FSMField, transition, TransitionNotAllowed, post_transition from model_utils import Choices from django.apps import apps from django.db.models import JS...
PypiClean
/Spire.Presentation_for_Python-8.8.0-py3-none-win_amd64.whl/spire/presentation/IImageData.py
from enum import Enum from plum import dispatch from typing import TypeVar,Union,Generic,List,Tuple from spire.presentation.common import * from spire.presentation import * from ctypes import * import abc class IImageData (SpireObject) : """ """ def GetHashCode(self)->int: """ <summary> ...
PypiClean
/RsCMPX_WlanMeas-4.0.150-py3-none-any.whl/RsCMPX_WlanMeas/Implementations/Configure/WlanMeas/MultiEval/ListPy/Segment/Scount.py
from .......Internal.Core import Core from .......Internal.CommandsGroup import CommandsGroup from .......Internal.Types import DataType from .......Internal.StructBase import StructBase from .......Internal.ArgStruct import ArgStruct from .......Internal.ArgSingleList import ArgSingleList from .......Internal.ArgSingl...
PypiClean
/doorstoph-2.3.tar.gz/doorstoph-2.3/doorstop/core/exporter.py
import datetime import os from collections import defaultdict from typing import Any, Dict import openpyxl import yaml from doorstop import common, settings from doorstop.common import DoorstopError from doorstop.core.types import iter_documents, iter_items LIST_SEP = '\n' # string separating list values when joine...
PypiClean
/python_gitlab-3.15.0-py3-none-any.whl/gitlab/v4/objects/award_emojis.py
from typing import Any, cast, Union from gitlab.base import RESTManager, RESTObject from gitlab.mixins import NoUpdateMixin, ObjectDeleteMixin from gitlab.types import RequiredOptional __all__ = [ "GroupEpicAwardEmoji", "GroupEpicAwardEmojiManager", "GroupEpicNoteAwardEmoji", "GroupEpicNoteAwardEmojiM...
PypiClean
/azure-mgmt-appplatform-8.0.0.zip/azure-mgmt-appplatform-8.0.0/azure/mgmt/appplatform/v2022_01_01_preview/aio/operations/_buildpack_binding_operations.py
import sys from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, Resourc...
PypiClean
/pulumi_oci-1.9.0a1693465256.tar.gz/pulumi_oci-1.9.0a1693465256/pulumi_oci/vulnerabilityscanning/outputs.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__ = [ 'ContainerScanRecipeScanSettings', 'ContainerScanTargetTargetRegistry', 'HostScanRecipeAgentSettings', 'HostS...
PypiClean
/pulumi_aws_native-0.75.1a1693503310.tar.gz/pulumi_aws_native-0.75.1a1693503310/pulumi_aws_native/apigatewayv2/domain_name.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 from ._inputs import * __all__ = ['DomainNameArgs', 'DomainName'] @pulumi.input_type class DomainNameArgs: def __init__(__self__, *,...
PypiClean
/wagtail1.13.1-modelchooser-2.0.0.tar.gz/wagtail1.13.1-modelchooser-2.0.0/README.rst
===================== Wagtail model chooser ===================== A plugin for Wagtail that provides a ``ModelChooserPanel`` and ``ModelChooserBlock`` for arbitrary models. Installing ========== Install using pip:: pip install wagtail-modelchooser Then add it to your ``INSTALLED_APPS``: .. code-block:: python...
PypiClean
/tensorflow_fedora28-1.9.0rc01-cp27-cp27mu-manylinux1_x86_64.whl/tensorflow_fedora28-1.9.0rc0.data/purelib/tensorflow/python/saved_model/signature_def_utils_impl.py
"""SignatureDef utility functions implementation.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.core.framework import types_pb2 from tensorflow.core.protobuf import meta_graph_pb2 from tensorflow.python.framework import dtypes from ten...
PypiClean
/sciplot-0.8.1.tar.gz/sciplot-0.8.1/README.md
# Sciplot [<img src='https://img.shields.io/pypi/v/sciplot/0.8.1'>](https://pypi.org/project/sciplot) [<img src='https://img.shields.io/static/v1?label=repo&color=blue&style=flat&logo=github&message=v.0.8.1'>](https://github.com/andreasfuhr/sciplot) *Format Matplotlib scientific plots* *Sciplot* is a Python package...
PypiClean
/anyblok_wms_base-0.8.0.post0.tar.gz/anyblok_wms_base-0.8.0.post0/anyblok_wms_base/quantity/physobj.py
from sqlalchemy import CheckConstraint from anyblok import Declarations from anyblok.column import Decimal from anyblok_wms_base.constants import ( SPLIT_AGGREGATE_PHYSICAL_BEHAVIOUR ) register = Declarations.register Model = Declarations.Model @register(Model.Wms) class PhysObj: """Override to add the :at...
PypiClean
/bika.health-3.1.8.tar.gz/bika.health-3.1.8/bika/health/widgets/casepatientconditionwidget.py
from AccessControl import ClassSecurityInfo from Products.ATExtensions.widget import RecordsWidget as ATRecordsWidget from Products.Archetypes.Registry import registerWidget import json class CasePatientConditionWidget(ATRecordsWidget): security = ClassSecurityInfo() _properties = ATRecordsWidget._properties....
PypiClean
/jupyterlab-drawio-0.8.0.tar.gz/jupyterlab-drawio-0.8.0/src/mxgraph/javascript/src/js/shape/mxImageShape.js
* Class: mxImageShape * * Extends <mxShape> to implement an image shape. This shape is registered * under <mxConstants.SHAPE_IMAGE> in <mxCellRenderer>. * * Constructor: mxImageShape * * Constructs a new image shape. * * Parameters: * * bounds - <mxRectangle> that defines the bounds. This is stored in ...
PypiClean
/gocept.jsform-3.0.3.tar.gz/gocept.jsform-3.0.3/src/gocept/jsform/resources/collection.min.js
(function($){"use strict";gocept.jsform.ListWidget=gocept.jsform.TemplateHandler.$extend({base_template:'list',default_item_actions:[{css_class:'edit',icon:'glyphicon-edit',title:'Bearbeiten',callback:function(node,widget){widget.edit_item(node);}},{css_class:'del',icon:'glyphicon-trash',title:'Löschen',callback:functi...
PypiClean
/sit_academy_django_jet-1.0.11-py3-none-any.whl/jet/static/jet/js/src/layout-updaters/paginator.js
var $ = require('jquery'); var PaginatorUpdater = function($paginator) { this.$paginator = $paginator; }; PaginatorUpdater.prototype = { removeSpacesBetweenPages: function() { this.$paginator.contents().each(function() { if (this.nodeType != 3) { return; } ...
PypiClean
/core-humanresources-0.7.tar.gz/core-humanresources-0.7/humanresources/utils.py
from django.apps import apps from django.core.exceptions import ValidationError from django.core.exceptions import FieldError from django.core.mail import send_mail as django_send_mail from django.template.loader import render_to_string def create_proposal(contract, motive, responsible): """ Create a Proposal...
PypiClean
/photonai_neuro-0.2.0-py3-none-any.whl/photonai_neuro/objects.py
from nibabel.nifti1 import Nifti1Image from nilearn import image import numpy as np from sklearn.base import BaseEstimator, TransformerMixin from typing import Union, Tuple from photonai.photonlogger.logger import logger class NiftiConverter: """ Handle transformation for different inputs to homogeneous outp...
PypiClean
/nemo-sz-0.6.2.tar.gz/nemo-sz-0.6.2/examples/SOSims/README.rst
.. role:: raw-html-m2r(raw) :format: html The `examples/SOSims <https://github.com/simonsobs/nemo/tree/main/examples/SOSims>`_ directory contains scripts for working with the simulated Simons Observatory maps made by the `Map-Based Simulation Pipeline Working Group <https://github.com/simonsobs/map_based_simulati...
PypiClean
/cyansdk-0.2.0.tar.gz/cyansdk-0.2.0/cyan/model/member.py
from datetime import datetime, timedelta from typing import Any, Dict, List from cyan.bot import Bot from cyan.model import ChattableModel from cyan.model.guild import Guild from cyan.model.message import Sendable from cyan.model.message.message import UserMessage from cyan.model.renovatable import AsyncRenovatable fr...
PypiClean
/pyvoltha-min-2.8.1.tar.gz/pyvoltha-min-2.8.1/pyvoltha_min/adapters/kafka/kafka_proxy.py
import threading import time from confluent_kafka import Consumer from confluent_kafka import Producer as _kafkaProducer from structlog import get_logger from twisted.internet import reactor from twisted.internet.defer import inlineCallbacks, returnValue, gatherResults, succeed from twisted.internet.defer import Timeo...
PypiClean
/pipelinewise-tap-mysql-1.5.6.tar.gz/pipelinewise-tap-mysql-1.5.6/tap_mysql/discover_utils.py
import collections import itertools import pendulum import pymysql from typing import Optional, Dict, Tuple, Set, List from singer import metadata, Schema, get_logger from singer.catalog import Catalog, CatalogEntry from tap_mysql.connection import connect_with_backoff, MySQLConnection from tap_mysql.sync_strategies...
PypiClean
/tencentcloud-python-sdk-3.0.960.tar.gz/tencentcloud-python-sdk-3.0.960/tencentcloud/tkgdq/v20190411/tkgdq_client.py
import json from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.common.abstract_client import AbstractClient from tencentcloud.tkgdq.v20190411 import models class TkgdqClient(AbstractClient): _apiVersion = '2019-04-11' _endpoint = 'tkgdq.tencentcl...
PypiClean
/thickly-1.2.3.tar.gz/thickly-1.2.3/locust/argument_parser.py
import argparse import os import sys import textwrap import configargparse import locust version = locust.__version__ DEFAULT_CONFIG_FILES = ['~/.locust.conf', 'locust.conf'] def _is_package(path): """ Is the given path a Python package? """ return ( os.path.isdir(path) and...
PypiClean
/gocept.amqprun-3.0-py3-none-any.whl/gocept/amqprun/message.py
from datetime import datetime import amqp import email.utils import gocept.amqprun.interfaces import logging import string import time import zope.interface log = logging.getLogger(__name__) class Properties: """Header properties for our Message class. Partly taken from pika.spec.BasicProperties.""" de...
PypiClean
/pythonmatsim-0.1.2.tar.gz/pythonmatsim-0.1.2/javawrappers/org/jvnet/jaxb2_commons/lang/_lang.py
import jpype JAXBHashCodeStrategy = jpype.JClass('org.jvnet.jaxb2_commons.lang.JAXBHashCodeStrategy') DefaultHashCodeStrategy = jpype.JClass('org.jvnet.jaxb2_commons.lang.DefaultHashCodeStrategy') Validate = jpype.JClass('org.jvnet.jaxb2_commons.lang.Validate') HashCodeStrategy = jpype.JClass('org.jvnet.jaxb2_co...
PypiClean
/wxmplot-0.9.56.tar.gz/wxmplot-0.9.56/examples/image_scroll.py
import time, os, sys from random import shuffle import numpy as np import wx from wxmplot import ImageFrame class TestFrame(wx.Frame): def __init__(self, parent=None, *args,**kwds): kwds["style"] = wx.DEFAULT_FRAME_STYLE|wx.RESIZE_BORDER|wx.TAB_TRAVERSAL wx.Frame.__init__(self, parent, -1, '', ...
PypiClean
/home_assistant_frontend-20230901.0-py3-none-any.whl/hass_frontend/frontend_es5/94149-jTQipfwY4ik.js
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[94149],{94149:function(e,o,r){r.r(o),r.d(o,{createWorker:function(){return t}});var t=function(){return new Worker(URL.createObjectURL(new Blob(['class x{constructor(a,b){this.width=b;this.height=a.length/b;this....
PypiClean