id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/glue_vispy_viewers-1.1.0-py3-none-any.whl/glue_vispy_viewers/scatter/layer_style_widget.py
import os from qtpy import QtWidgets from glue_qt.utils import load_ui from echo.qt import autoconnect_callbacks_to_qt from glue_vispy_viewers.utils import fix_tab_widget_fontsize class ScatterLayerStyleWidget(QtWidgets.QWidget): def __init__(self, layer_artist): super(ScatterLayerStyleWidget, self)....
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/@types/node/domain.d.ts
declare module 'domain' { import EventEmitter = require('node:events'); /** * The `Domain` class encapsulates the functionality of routing errors and * uncaught exceptions to the active `Domain` object. * * To handle the errors that it catches, listen to its `'error'` event. */ clas...
PypiClean
/parfait-0.3.tar.gz/parfait-0.3/chalice/policy.py
from __future__ import print_function import os import uuid from typing import Any, List, Dict, Set # noqa import botocore.session import yaml from chalice.constants import CLOUDWATCH_LOGS, VPC_ATTACH_POLICY from chalice.utils import OSUtils # noqa from chalice.config import Config # noqa APIPolicyT = Dict[str, D...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/joined_teams/item/channels/item/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name/does_user_have_accessuser_id_user_id_tenant_id_tenant_id_user_principal_name_user_principal_name_request_builder.p...
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
/oblv_ctl-0.4.1.tar.gz/oblv_ctl-0.4.1/oblv_ctl/cli/marketplace.py
import json import typer from . import utils app = typer.Typer() @app.command(help="To fetch marketplace services list") def fetch( page: int = typer.Option(1, help="Page number of result"), per_page: int = typer.Option(10, help="Total records per page", min=2), repo: str = typer.Option("", help="Filte...
PypiClean
/UConnRCMPy-3.0.5.tar.gz/UConnRCMPy-3.0.5/uconnrcmpy/simulations.py
# Third party imports import numpy as np import cantera as ct class Simulation(object): """Contains a single simulation of the experiment. Parameters ---------- initial_temperature : `float` The initial temperature of the simulation initial_pressure : `float` The initial pressure...
PypiClean
/metabolexecutor-20.0.post1.tar.gz/metabolexecutor-20.0.post1/docs/api.rst
API documentation ================= The following documentation is based on the source code of version |release| of the `executor` package. The following modules are available: .. contents:: :local: The :mod:`executor` module -------------------------- .. automodule:: executor :members: The :mod:`executor.ch...
PypiClean
/open_clip_torch-2.20.0-py3-none-any.whl/open_clip/loss.py
import torch import torch.nn as nn from torch.nn import functional as F try: import torch.distributed.nn from torch import distributed as dist has_distributed = True except ImportError: has_distributed = False try: import horovod.torch as hvd except ImportError: hvd = None def gather_featur...
PypiClean
/dm_haiku-0.0.10-py3-none-any.whl/haiku/_src/pad.py
"""Padding module for Haiku.""" from collections import abc import typing from typing import Any, Callable, Sequence, Union, Tuple from haiku._src import utils PadFn = Callable[[int], Tuple[int, int]] # If you are forking replace this block with `import haiku as hk`. # pylint: disable=invalid-name class hk: clas...
PypiClean
/v2/model/list_instances_response.py
import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ListInstancesResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is a...
PypiClean
/cosmosid_cli-2.1.8-py3-none-any.whl/cosmosid/helpers/exceptions.py
class CosmosidException(Exception): """Default CosmosidException. Base class for another Exceptions.""" def __init__(self, *args, **kwargs): """ You may pass dict to Exception so error handler can render representation error description. """ self.exception_data = kwargs ...
PypiClean
/config/metadata.py
import re from ..configurable import configurable, Configurable, opt_checked, ParseError, Unset @configurable(name='Metadata') class MetadataConfig(Configurable): """This configuration structure is used to identify and document objects within `vhdmmio`.""" #pylint: disable=E0211,E0213,R0201 def _pare...
PypiClean
/tensorflow_ascend-1.15.0-cp37-cp37m-manylinux2014_aarch64.whl/tensorflow_core/python/keras/api/_v1/keras/layers/__init__.py
from __future__ import print_function as _print_function import sys as _sys from tensorflow.python.feature_column.dense_features import DenseFeatures from tensorflow.python.keras.engine.base_layer import Layer from tensorflow.python.keras.engine.input_layer import Input from tensorflow.python.keras.engine.input_layer...
PypiClean
/bbrc-bx-0.5.2.tar.gz/bbrc-bx-0.5.2/bx/xcpd.py
from bx.command import Command from bx import download as dl import logging as log class XCPDCommand(Command): """XCP-D - Resting State fMRI postprocessing and functional connectivity. Available subcommands: conmat:\t\tdownload the functional connectivity matrix (Desikan-Killiany atlas) timeseries:...
PypiClean
/plone.patternslib-1.3.0-py3-none-any.whl/plone/patternslib/static/components/outlayer/README.md
# Outlayer _Brains and guts of a layout library_ Outlayer is a base layout class for layout libraries like [Isotope](http://isotope.metafizzy.co), [Packery](http://packery.metafizzy.co), and [Masonry](http://masonry.desandro.com) Outlayer layouts work with a container element and children item elements. ``` html <d...
PypiClean
/jenkins-job-wrecker-1.10.0.tar.gz/jenkins-job-wrecker-1.10.0/jenkins_job_wrecker/modules/builders.py
import jenkins_job_wrecker.modules.base class Builders(jenkins_job_wrecker.modules.base.Base): component = 'builders' def gen_yml(self, yml_parent, data): builders = [] for child in data: object_name = child.tag.split('.')[-1].lower() self.registry.dispatch(self.compon...
PypiClean
/flow-0.1.2.tar.gz/flow-0.1.2/columnflow/tasks/framework/base.py
from __future__ import annotations import os import enum import importlib import itertools import inspect import functools from typing import Sequence import luigi import law import order as od default_analysis = law.config.get_expanded("analysis", "default_analysis") default_config = law.config.get_expanded("analy...
PypiClean
/reddit-rss-reader-1.3.2.tar.gz/reddit-rss-reader-1.3.2/reddit_rss_reader/reader.py
import logging from dataclasses import dataclass from datetime import datetime from time import mktime from typing import List, Optional import feedparser import requests from bs4 import BeautifulSoup from feedparser import FeedParserDict RATE_LIMIT_STR = 'you appear to be a bot and we\'ve seen too many requests' lo...
PypiClean
/auto_generation_pytest-1.0.10-py3-none-any.whl/auto_generation_pytest/proxy/res_filter.py
import csv import json import os import yaml from pathlib import Path from functools import reduce from dotenv import find_dotenv, load_dotenv load_dotenv(find_dotenv(), override=True) root_path = os.getcwd() filter_data = {} def read_fileter(): global filter_data f = '' f = os.environ.get('FILTER_FILE')...
PypiClean
/clld-11.0.1.tar.gz/clld-11.0.1/README.md
# clld The `clld` toolkit - a web framework for the publication of [Cross-Linguistic Linked Data](https://clld.org). Documentation for the code base and its use is available at https://clld.readthedocs.io/en/latest/. The source for this documentation is in the `docs` directory. [![Build Status](https://github.com/cl...
PypiClean
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/compute/v1/service_attachment_iam_policy.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 ._enums import * from ._inputs import * __all__ = ['ServiceAttachmentIamPolicyArgs', 'ServiceAttachmentIamPolicy'] @pulumi.input_t...
PypiClean
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/domain/MerchantActivityModifyVoucherInfo.py
import json from alipay.aop.api.constant.ParamConstants import * class MerchantActivityModifyVoucherInfo(object): def __init__(self): self._logo = None self._user_introductions = None self._valid_days_range_to = None self._valid_time_range_to = None self._valid_time_type ...
PypiClean
/lgraph_cypher-0.0.0.tar.gz/lgraph_cypher-0.0.0/lgraph_shell/db.py
import requests import sys import json from requests.exceptions import Timeout class request_exception(Exception): def __init__(self, message, r): self.response = r super(request_exception, self).__init__(message) class db(): def __init__(self, host, port, username, password, graph): ...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/check_point/mgmt/plugins/modules/cp_mgmt_security_zone_facts.py
from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { "metadata_version": "1.1", "status": ["preview"], "supported_by": "community", } DOCUMENTATION = """ --- module: cp_mgmt_security_zone_facts short_description: Get security-zone objects facts on Ch...
PypiClean
/AirStrip-2.0.2.tar.gz/AirStrip-2.0.2/airstrip/airbuild.py
global Tools from puke import * from puke import Tools import json import re def fetchsvn(url, dest): System.check_package('svn') # If directory exist, then update the tree if FileSystem.exists(dest): console.info('Updating') that = 'cd "%s"; svn up' % dest else: if not FileSystem.exists(FileSyste...
PypiClean
/xnni-0.7.4-py3-none-manylinux1_x86_64.whl/xnni-0.7.4.data/data/nni/node_modules/dashdash/README.md
A light, featureful and explicit option parsing library for node.js. [Why another one? See below](#why). tl;dr: The others I've tried are one of too loosey goosey (not explicit), too big/too many deps, or ill specified. YMMV. Follow <a href="https://twitter.com/intent/user?screen_name=trentmick" target="_blank">@tren...
PypiClean
/huhangkai-1.5.5.tar.gz/huhangkai-1.5.5/commen/testcase/apache/data.py
import apache_beam as beam data_type = 1 data_list = ['annual', 'biennial', 'perennial'] data_list2 = ['🥕', '🍅', '🍅', '🥕', '🍆', '🍅', '🍅', '🍅', '🥕', '🍅'] data_list3 = [3, 4, 1, 2] data_list_dict = [ {'icon': '🍓', 'name': 'Strawberry', 'duration': 'perennial'}, {'icon': '🥕', 'name': 'Carrot', ...
PypiClean
/internal_with_fin_tmp-0.1.5.tar.gz/internal_with_fin_tmp-0.1.5/sparknlp_jsl/annotator/normalizer/drug_normalizer.py
from sparknlp.common import * class DrugNormalizer(AnnotatorModel): """Annotator which normalizes raw text from clinical documents, e.g. scraped web pages or xml documents, from document type columns into Sentence. Removes all dirty characters from text following one or more input regex patterns. Ca...
PypiClean
/hcipy-0.5.0.tar.gz/hcipy-0.5.0/doc/tutorial_notebooks/PyramidWFS/PyramidWFS.ipynb
# Wavefront sensing with a Pyramid wavefront sensor We will simulate a closed-loop adaptive optics system, based on the the Magellan Adaptive Optics Extreme (MagAO-X) system, that uses an unmodulated pyramid wavefront sensor with a 2k-MEMS DM. We first start by importing the relevant python modules. ``` from hcipy ...
PypiClean
/grano-ui-0.4.7.tar.gz/grano-ui-0.4.7/grano/ui/static/vendor/moment/lang/vn.js
(function (factory) { if (typeof define === 'function' && define.amd) { define(['moment'], factory); // AMD } else if (typeof exports === 'object') { module.exports = factory(require('../moment')); // Node } else { factory(window.moment); // Browser global } }(function (moment) ...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/KoubeiMarketingDataMallShopitemsQueryRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.KoubeiMarketingDataMallShopitemsQueryModel import KoubeiMarketingDataMallShopitemsQueryModel class KoubeiMarketingDataMallShopitemsQueryRequest(object): def __init__(self, b...
PypiClean
/sagemath-polyhedra-9.5b6.tar.gz/sagemath-polyhedra-9.5b6/sage/categories/examples/finite_dimensional_algebras_with_basis.py
r""" Example of a finite dimensional algebra with basis """ #***************************************************************************** # Copyright (C) 2008-2015 Franco Saliola <saliola@gmail.com> # # Distributed under the terms of the GNU General Public License (GPL) # http://www.gnu.org/licenses...
PypiClean
/marv_cli-21.12.0-py3-none-any.whl/marv_cli/__init__.py
import logging import os from collections import OrderedDict from contextlib import contextmanager from pathlib import Path import click from pkg_resources import iter_entry_points try: import marv_ee except ImportError: marv_ee = None if marv_ee: marv_ee.init() from marv_ee import VERSION_MESSAGE, ...
PypiClean
/lino-xl-23.9.1.tar.gz/lino-xl-23.9.1/lino_xl/lib/extensible/static/extensible-1.0.1/examples/calendar/ext-locales/ext-lang-pt.js
* Portuguese/Brazil Translation by Weber Souza * 08 April 2007 * Updated by Allan Brazute Alves (EthraZa) * 06 September 2007 * Adapted to European Portuguese by Helder Batista (hbatista) * 31 January 2008 */ Ext.UpdateManager.defaults.indicatorText = '<div class="loading-indicator">Carregando...</div>'; if(Ex...
PypiClean
/pyVoxelStats-0.1.6-py3-none-any.whl/pyVS/Util/VoxelOperation.py
import datetime import os import subprocess import sys import time from multiprocessing import Pool import ipyparallel as ipp import numexpr import numpy import pandas from pyVS.pyVoxelStats.pyVoxelStats import pyVoxelStats from pyVS.pyVoxelStats.ShareObj import ShareObj class VoxelOperation(pyVoxelStats): def _...
PypiClean
/edc-appointment-0.3.80.tar.gz/edc-appointment-0.3.80/edc_appointment/migrations/0026_auto_20220501_1548.py
from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("edc_appointment", "0025_auto_20210624_0225"), ] operations = [ migrations.AddField( model_name="appointment", name="appt_timing", field=models.CharField(...
PypiClean
/stereopy-0.13.0b1.tar.gz/stereopy-0.13.0b1/stereo/image/segmentation_deepcell/seg_utils/utils.py
import numpy as np import cv2 import slideio import os import tifffile from skimage import transform from scipy import signal from skimage.feature import peak_local_max from skimage.measure import label from skimage.morphology import remove_small_objects from skimage.segmentation import watershed, find_boundaries, rela...
PypiClean
/ally-py-0.9.0.tar.gz/ally-py-0.9.0/__setup__/ally_core/encoder_decoder.py
from ally.container import ioc from ally.core.impl.processor.parser.text import ParseTextHandler from ally.core.impl.processor.parser.xml import ParseXMLHandler from ally.core.impl.processor.render.json import RenderJSONHandler from ally.core.impl.processor.render.text import RenderTextHandler from ally.core.impl.proce...
PypiClean
/black-but-with-tabs-instead-of-spaces-19.11.tar.gz/black-but-with-tabs-instead-of-spaces-19.11/profiling/mix_huge.py
config = some.Structure( globalMap = { 103310322020340: [100000031211103,101042000320420,100100001202021,112320301100420,110101024402203,112001202000203,112101112010031,102130400200010,100401014300441,103000401422033], 110040120003212: [114413100031332,102101001412002,100210000032130,214000110100040...
PypiClean
/pytrilium-1.2.0.tar.gz/pytrilium-1.2.0/pytrilium/PyTriliumNoteClient.py
import requests from .PyTriliumClient import PyTriliumClient class PyTriliumNoteClient(PyTriliumClient): def __init__(self, url, token, debug=False) -> None: super().__init__(url, token, debug) def get_note_by_id(self, note_id: str) -> dict: """Given the Note's ID, this will return the Note's...
PypiClean
/ms_peak_picker-0.1.42.tar.gz/ms_peak_picker-0.1.42/src/ms_peak_picker/fticr_denoising.py
from typing import Tuple import numpy as np def binsearch(array, x, hint=None): n = len(array) lo = 0 hi = n while hi != lo: mid = (hi + lo) // 2 y = array[mid] err = y - x if hi - lo == 1: return mid elif err > 0: hi = mid else:...
PypiClean
/miniwdl-1.11.0.tar.gz/miniwdl-1.11.0/README.md
# miniwdl **[Workflow Description Language](http://openwdl.org/) local runner & developer toolkit for Python 3.6+** ![Project Status](https://img.shields.io/badge/status-stable-green.svg) [![MIT license](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://github.com/chanzuckerberg/miniwdl/blob/main/LICE...
PypiClean
/FicusFramework-3.1.0.post2.tar.gz/FicusFramework-3.1.0.post2/src/api/handler/script/ScriptPythonFactory.py
from api.exceptions import IllegalArgumentException from api.handler.IHandler import IHandler from api.handler.ce.AbstractBatchCE import AbstractBatchCE from api.handler.crawl.AbstractBatchCrawl import AbstractBatchCrawl from api.handler.crawl.AbstractSimpleCrawl import AbstractSimpleCrawl from api.handler.ce.ISimpleSc...
PypiClean
/zipline-live-1.1.0.5.tar.gz/zipline-live-1.1.0.5/zipline/pipeline/loaders/blaze/core.py
from __future__ import division, absolute_import from abc import ABCMeta, abstractproperty from collections import namedtuple, defaultdict from functools import partial from itertools import count import warnings from weakref import WeakKeyDictionary import blaze as bz from datashape import ( Date, DateTime, ...
PypiClean
/GnuCash%20Web-0.1.0rc10.tar.gz/GnuCash Web-0.1.0rc10/gnucash_web/commodities.py
from flask import ( Blueprint, current_app as app, ) import click from babel import numbers from piecash.core.commodity import Price from .utils.gnucash import open_book bp = Blueprint("commodities", __name__, url_prefix="/commodities") def latest_price(commodity): """Get latest known price for commodit...
PypiClean
/plexflo-1.2.1.tar.gz/plexflo-1.2.1/README.md
<div align="center"> <img src="https://res.cloudinary.com/plexflo-india/image/upload/v1658203170/Open%20Plexflo/Plexflo_logo_efijm6.png"> </div> [![Python](https://shields.io/pypi/pyversions/plexflo)](https://badge.fury.io/py/tensorflow) [![PyPI version](https://badge.fury.io/py/plexflo.svg)](https://badge.fury.io/p...
PypiClean
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/v2/stable/models/feature_base.py
from typing import Any, cast, Dict, List, Optional, Type, TypeVar, Union import attr from ..extensions import NotPresentError from ..types import UNSET, Unset T = TypeVar("T", bound="FeatureBase") @attr.s(auto_attribs=True, repr=False) class FeatureBase: """ """ _color: Union[Unset, str] = UNSET _fea...
PypiClean
/nnisgf-0.4-py3-none-manylinux1_x86_64.whl/nnisgf-0.4.data/data/nni/node_modules/rx/ts/core/es6-iterable.d.ts
interface Symbol { /** Returns a string representation of an object. */ toString(): string; /** Returns the primitive value of the specified object. */ valueOf(): Object; [Symbol.toStringTag]: string; } interface SymbolConstructor { /** * A reference to the prototype. */ proto...
PypiClean
/casai-home-frontend-20220503.0.tar.gz/casai-home-frontend-20220503.0/hass_frontend/frontend_latest/6e98cb51.js
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[3890],{53890:(e,t,i)=>{"use strict";i.r(t),i.d(t,{HaAutomationTrace:()=>I});var r=i(50424),o=i(55358),n=i(76666),a=i(13690),s=i(7323),c=i(44583),d=(i(54933),i(55422)),l=i(97389),h=i(26765),u=i(11654),p=i(29311),f=(i(71955),i(...
PypiClean
/preheat_open-1.39-py3-none-any.whl/preheat_open/zone.py
from __future__ import annotations from typing import Optional import pandas as pd from .building_unit import BaseBuildingUnit from .exceptions import NoComfortProfileError from .helpers import check_no_remaining_fields from .types import TYPE_DATETIME_INPUT def populate_zones(zones_data, parent_zone=None, buildin...
PypiClean
/maestro_python_client-0.9.6.tar.gz/maestro_python_client-0.9.6/maestro_python_client/CachedClient.py
from typing import List, Tuple from uuid import uuid4 from maestro_python_client.Cache.Cache import Cache from maestro_python_client.Client import Client, Task class CachedClient(Client): def __init__( self, maestro_endpoint: str, cache: Cache, cached_queues: list[str] = [], ...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/media/account_filter.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__ = ['AccountFilter'] class AccountFilter(pulumi.CustomResource): def __init__(__self__, ...
PypiClean
/mysql-utilities-1.4.3.tar.gz/mysql-utilities-1.4.3/mysql/connector/fabric/caching.py
# MySQL Connector/Python is licensed under the terms of the GPLv2 # <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most # MySQL Connectors. There are special exceptions to the terms and # conditions of the GPLv2 as it is applied to this software, see the # FOSS License Exception # <http://www.mysql.com/...
PypiClean
/PLL_Lib-1.0.0.tar.gz/PLL_Lib-1.0.0/src/PLL_Lib/picoerrorhelp.py
from functools import reduce class CouldNotFindScopeException(Exception): def __init__(self): super().__init__('' '\nCould not find a picoscope to connect to. To fix:' '\n - Check a picoscope is connected' '\n - Check it is not being used by another program, such a...
PypiClean
/ncbi-datasets-pylib-15.16.1.tar.gz/ncbi-datasets-pylib-15.16.1/src/ncbi/datasets/openapi/model/v1_virus_availability_request.py
import re # noqa: F401 import sys # noqa: F401 from ncbi.datasets.openapi.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_ty...
PypiClean
/validata_core-0.9.6-py3-none-any.whl/validata_core/custom_checks/nomenclature_actes_value.py
import unicodedata from frictionless import errors from .utils import CustomCheckSingleColumn # Module API AUTHORIZED_VALUES = [ "Commande publique", "Urbanisme", "Domaine et patrimoine", "Fonction publique", "Institutions et vie politique", "Libertés publiques et pouvoirs de police", "F...
PypiClean
/lit_nlp-0.5.0-py3-none-any.whl/lit_nlp/api/types.py
import abc import enum import math import numbers from typing import Any, NewType, Optional, Sequence, Type, TypedDict, Union import attr from lit_nlp.api import dtypes import numpy as np JsonDict = dict[str, Any] Input = NewType("Input", JsonDict) ExampleId = NewType("ExampleId", str) ScoredTextCandidates = Sequence...
PypiClean
/data_aggregator-1.2.1-py3-none-any.whl/data_aggregator/utils/input_file_tracker.py
import csv import logging from datetime import datetime from typing import Tuple, Dict, List from collections import OrderedDict from pathlib import Path class InputFileTracker: def __init__(self, history_filepath: Path): self.history_file_path = history_filepath self.history_dict: OrderedDict[str...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/cisco/nxos/plugins/modules/nxos_vrf.py
from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = """ module: nxos_vrf extends_documentation_fragment: - cisco.nxos.nxos short_description: Manages global VRF configuration. description: - This module provides declarative management of VRFs on CISCO NXOS network d...
PypiClean
/kade_drive-0.9.0-py3-none-any.whl/kade_drive/core/storage.py
import os import pickle from datetime import datetime # from time import sleep from pathlib import Path # import threading import base64 import logging import random from time import sleep from filelock import Timeout, FileLock # Create a file handler # file_handler = logging.FileHandler("log_file.log") formatter = ...
PypiClean
/py_simple_morse_code-0.0.5-py3-none-any.whl/py_simple_morse_code/py_simple_morse_code.py
import time import pyaudio import numpy as np # Set up audio _MORSE_AUDIO_HOOK = pyaudio.PyAudio() from .CONSTANTS import ( DEFAULT_TONE, DEFAULT_NUM_DEADBEATS, DEFAULT_WORDS_PER_MINUTE, DEFAULT_STATE_DEBOUNCE, DEFAULT_SAMPLE_RATE, DURATIONS, UNKNOWN_CHAR, CHAR_TO_MORSE_MAP, MORSE_...
PypiClean
/collective.mathjax-1.1.1.tar.gz/collective.mathjax-1.1.1/collective/mathjax/resources/MathJax/unpacked/extensions/MathMenu.js
(function (HUB,HTML,AJAX,CALLBACK,OUTPUT) { var VERSION = "2.1"; var SIGNAL = MathJax.Callback.Signal("menu") // signal for menu events MathJax.Extension.MathMenu = { version: VERSION, signal: SIGNAL }; var isPC = HUB.Browser.isPC, isMSIE = HUB.Browser.isMSIE, isIE9 = ((document.documentMode||0)...
PypiClean
/jenkins-tui-0.2.2.tar.gz/jenkins-tui-0.2.2/src/jenkins_tui/views/job.py
from __future__ import annotations from typing import Any from urllib.parse import urlparse from dependency_injector.wiring import Container, Provide, inject from rich.text import Text from textual import events from textual.binding import NoBinding from ..containers import Container from ..jenkins import Jenkins fr...
PypiClean
/bpy_cuda-2.82-cp37-cp37m-win_amd64.whl/bpy_cuda-2.82.data/scripts/2.82/scripts/addons/io_scene_gltf2/blender/exp/gltf2_blender_get.py
import bpy from mathutils import Vector, Matrix from ..com.gltf2_blender_material_helpers import get_gltf_node_name from ...blender.com.gltf2_blender_conversion import texture_transform_blender_to_gltf from io_scene_gltf2.io.com import gltf2_io_debug def get_animation_target(action_group: bpy.types.ActionGroup): ...
PypiClean
/django-watermark-zemi4-0.1.8.tar.gz/django-watermark-zemi4-0.1.8/README.rst
django-watermark ================ This project provides a simple way for you to apply custom watermarks to images on your django-powered website. Authored by `Josh VanderLinden <http://www.codekoala.com//>`_, and some great `contributors <https://github.com/codekoala/django-watermark/contributors>`_. .. image:: http...
PypiClean
/powder-0.9.1.tar.gz/powder-0.9.1/html/_static/jquery.js
(function(A,w){function ma(){if(!c.isReady){try{s.documentElement.doScroll("left")}catch(a){setTimeout(ma,1);return}c.ready()}}function Qa(a,b){b.src?c.ajax({url:b.src,async:false,dataType:"script"}):c.globalEval(b.text||b.textContent||b.innerHTML||"");b.parentNode&&b.parentNode.removeChild(b)}function X(a,b,d,f,e,j){v...
PypiClean
/lattice_mc-1.0.4.tar.gz/lattice_mc-1.0.4/lattice_mc/cluster.py
class Cluster: """ Clusters are sets of sites. """ def __init__( self, sites ): """ Initialise an Cluster instance. Args: sites (List(Site): The list of sites that make up the cluster. Returns: None """ self.sites = set( sites ) ...
PypiClean
/aqualink-api-1.0.8.tar.gz/aqualink-api-1.0.8/aqualink_sdk/model/edit_survey_media_dto.py
import re # noqa: F401 import sys # noqa: F401 from aqualink_sdk.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, v...
PypiClean
/fhir_types-0.2.4-py3-none-any.whl/fhir_types/FHIR_RiskEvidenceSynthesis_CertaintySubcomponent.py
from typing import Any, List, Literal, TypedDict from .FHIR_Annotation import FHIR_Annotation from .FHIR_CodeableConcept import FHIR_CodeableConcept from .FHIR_string import FHIR_string # The RiskEvidenceSynthesis resource describes the likelihood of an outcome in a population plus exposure state where the risk estim...
PypiClean
/bambooapi_client-1.18.7-py3-none-any.whl/bambooapi_client/openapi/model/flexumer_update.py
import re # noqa: F401 import sys # noqa: F401 from bambooapi_client.openapi.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...
PypiClean
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/intl/locale-data/jsonp/hr-HR.js
IntlPolyfill.__addLocaleData({locale:"hr-HR",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:true,hour12:false,formats:{short:"{1} {0}",medium:"{1} {0}",full:"{1} 'u' {0}",long:"{1} 'u' {0}",availableForm...
PypiClean
/cast_control-0.12.2.tar.gz/cast_control-0.12.2/cast_control/adapter.py
from __future__ import annotations from mpris_server.adapters import Metadata, PlayState, MprisAdapter, \ Microseconds, VolumeDecimal, RateDecimal, PlayerAdapter, RootAdapter from mpris_server.base import URI, MIME_TYPES, DEFAULT_RATE, DbusObj, \ Track from .base import Device from .types import Protocol, runtime...
PypiClean
/coursera-dl-0.11.5.tar.gz/coursera-dl-0.11.5/README.rst
Coursera Downloader =================== |Build Status| |Build status| |Coverage Status| |Latest version on PyPI| |Code Climate| .. raw:: html <!-- TOC --> - `Coursera Downloader <#coursera-downloader>`__ - `Introduction <#introduction>`__ - `Features <#features>`__ - `Disclaimer <#disclaimer>`__ - `Installa...
PypiClean
/batchcompute-cli-1.7.7.tar.gz/batchcompute-cli-1.7.7/src/batchcompute_cli/i18ns/zh_CN.py
from ..util import smart_unicode from ..const import STRING from ..const import CMD from terminal import magenta IMG_ID = 'img-ubuntu' INS_TYPE = 'ecs.s3.large' def getJSON(): o = __get_json() for (k,v) in o.items(): if isinstance(v, STRING): o[k]=smart_unicode.format_utf8(v) if i...
PypiClean
/keystack-0.12.0.tar.gz/keystack-0.12.0/Keystack/KeystackUI/static/test/unit/core/plugins/oas3/helpers.js
import { fromJS } from "immutable" import { isOAS3, isSwagger2 } from "corePlugins/oas3/helpers" const isOAS3Shorthand = (version) => isOAS3(fromJS({ openapi: version })) const isSwagger2Shorthand = (version) => isSwagger2(fromJS({ swagger: version })) describe("isOAS3", function () { it("should recognize vali...
PypiClean
/flask-mongoengine-tschaume-1.1.0.tar.gz/flask-mongoengine-tschaume-1.1.0/docs/wtf_forms.md
# MongoEngine and WTForms flask-mongoengine automatically generates WTForms from MongoEngine models: ```python from flask_mongoengine.wtf import model_form class User(db.Document): email = db.StringField(required=True) first_name = db.StringField(max_length=50) last_name = db.StringField(max_length=50) ...
PypiClean
/nanocetpy-1.0.3.tar.gz/nanocetpy-1.0.3/NanoCETPy/sequential/views/camera_viewer_widget.py
import numpy as np import pyqtgraph as pg from PyQt5.QtCore import pyqtSignal, QRect, Qt, QTimer from PyQt5.QtWidgets import QAction, QApplication from pyqtgraph import GraphicsLayoutWidget from experimentor.lib.log import get_logger from experimentor.views.data_view_widget import DataViewWidget class CameraViewerWi...
PypiClean
/logux-0.0.5.tar.gz/logux-0.0.5/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install logux-py, run this command in your terminal: .. code-block:: console $ pip install logux This is the preferred method to install logux-py, as it will always install the most recent stable release. If you don...
PypiClean
/flowserv_core-0.9.4-py3-none-any.whl/flowserv/config.py
from __future__ import annotations from appdirs import user_cache_dir from typing import Any, Dict, Optional, Union import os from flowserv.volume.fs import FStore import flowserv.error as err import flowserv.util as util # -- # -- Environment variables and default values # -- # -- API ----------------------------...
PypiClean
/ecosizer_engine-1.0.8-py3-none-any.whl/ecosizer_engine_package/objects/Building.py
import os import json import numpy as np from ecosizer_engine_package.constants.Constants import * class Building: def __init__(self, loadshape, avgLoadshape, incomingT_F, supplyT_F, returnT_F, flow_rate): self._checkParams(loadshape, avgLoadshape, incomingT_F, supplyT_F, returnT_F, flow_rate) ...
PypiClean
/rapidsms-xray-0.5.9b0.tar.gz/rapidsms-xray-0.5.9b0/README.rst
RapidSMS Xray ======================== RapidSMS app for web and SMS split test experiments & event tracking Below you will find basic setup instructions for the rapidsms-xray project. To begin you should have the following applications installed on your local development system: - Python >= 2.6 (2.7 recommended) - `...
PypiClean
/neil_vst_gui-0.5.7.tar.gz/neil_vst_gui-0.5.7/neil_vst_gui/job.py
import os import json from neil_vst_gui.ui_settings import UI_Settings base = { "plugins_chain": {} } chain = {"chain": {"title": "", "normalize": {}, "plugins_list": {}}} normilize = { "enable": True, "target_rms": 0, "error_db": 0.25 } plugin = { "plugin_name": {"path": "", "max_channels": 8, "params": {}} } plugi...
PypiClean
/anycore_dbg_supplement-0.7.0-py3-none-any.whl/SimEnvControl/libsimenv/manifest_db.py
import os import sys from collections import defaultdict from typing import List import yaml from fuzzywuzzy import fuzz from .checkpoints_db import glob_all_checkpoints def get_manifest_path(db_path, record_name): return os.path.join(db_path, "%s.yaml" % record_name) def save_to_manifest_db(record_name, mani...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/natrinemapellirubrum.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def NatrinemaPellirubrum( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_graph_kwargs: D...
PypiClean
/amazon-braket-schemas-1.19.1.tar.gz/amazon-braket-schemas-1.19.1/src/braket/device_schema/pulse/pulse_device_action_properties_v1.py
from typing import Dict, Optional from pydantic import AnyUrl, Field from braket.device_schema.pulse.frame_v1 import Frame from braket.device_schema.pulse.port_v1 import Port from braket.device_schema.pulse.pulse_function_v1 import PulseFunction from braket.schema_common import BraketSchemaBase, BraketSchemaHeader ...
PypiClean
/selectorlib-0.16.0.tar.gz/selectorlib-0.16.0/README.rst
=========== selectorlib =========== .. image:: https://img.shields.io/pypi/v/selectorlib.svg :target: https://pypi.python.org/pypi/selectorlib .. image:: https://img.shields.io/travis/scrapehero/selectorlib.svg :target: https://travis-ci.org/scrapehero/selectorlib .. image:: https://readthedocs.org/...
PypiClean
/hclctpm-0.5.3-py3-none-any.whl/dataprep/dprepare_uscensus_bkup.py
import pandas as pd, numpy as np, tensorflow as tf import pickle as pkl D = pd.read_csv('../data/subs_upsell_short_v2.csv') Dt = D[D['cohort'] == 'treatment'] Dc = D[D['cohort'] == 'control'] import ipdb; ipdb.set_trace() Dt = Dt.sample(frac= len(Dc) * 2.0 / len(Dt)) D = pd.concat([Dt, Dc]) D = D.sample(fra...
PypiClean
/refind_btrfs-0.6.0-py3-none-any.whl/refind_btrfs/utility/injector_modules.py
# endregion from typing import Iterator from injector import Binder, Module, SingletonScope, multiprovider from transitions.core import State from watchdog.events import FileSystemEventHandler from refind_btrfs.boot.file_refind_config_provider import FileRefindConfigProvider from refind_btrfs.common import Checkable...
PypiClean
/lifx_lib-0.9.1-py3-none-any.whl/lifx/lan/discovery.py
import asyncio import logging import socket import sys import lifx from typing import Tuple, Union, Text Address = Tuple[str, int] class Discovery(asyncio.DatagramProtocol): GET_SERVICE = "get_service" GET = "get_light" GET_POWER = "get_power_light" STATE_SERVICE = "state_service" def __ini...
PypiClean
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/core-js/client/shim.min.js
!function(e,i,Jt){"use strict";!function(r){var e={};function __webpack_require__(t){if(e[t])return e[t].exports;var n=e[t]={i:t,l:!1,exports:{}};return r[t].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}__webpack_require__.m=r,__webpack_require__.c=e,__webpack_require__.d=function(t,n,r){__webpack_r...
PypiClean
/sinabs-1.2.9.tar.gz/sinabs-1.2.9/docs/getting_started/install.rst
Installation ------------ **Sinabs** is available on PyPI:: pip install sinabs Checkout our quick instructional on how to create a project based on **sinabs** within a virtual environment using :doc:`pyenv+pipenv<./python_pyenv_pipenv>`. You can also install the latest/nightly build of sinabs by installing the ...
PypiClean
/spyder-notebook-0.5.1.tar.gz/spyder-notebook-0.5.1/spyder_notebook/server/main.py
import os from notebook.app import ( aliases, flags, JupyterNotebookApp, NotebookBaseHandler) from tornado import web from traitlets import default, Bool, Unicode HERE = os.path.dirname(__file__) aliases['info-file'] = 'SpyderNotebookApp.info_file_cmdline' flags['dark'] = ( {'SpyderNotebookApp': {'dark_theme...
PypiClean
/raphpy_distributions-1.0.tar.gz/raphpy_distributions-1.0/raphpy_distributions/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution stdev ...
PypiClean
/robotframework_executor-0.1.5-py3-none-any.whl/robo_app/controller.py
from . import views as v from . import models as m from . import network as n from tkinter import messagebox import itertools import webbrowser import os from . import robot_util as r from .util import AppConfigParser from .util import Bookmarks from .util import RunTimeData from .constants import AppConfig import re f...
PypiClean
/intel_optimization_for_horovod-0.28.1.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/horovod/spark/keras/estimator.py
import numbers import time import os import numpy as np import tensorflow as tf from packaging import version from pyspark import keyword_only from pyspark.ml.util import MLWritable, MLReadable from pyspark.ml.param.shared import Param, Params, TypeConverters from pyspark.sql import SparkSession from horovod.runner.c...
PypiClean
/Deliverance-0.6.1.tar.gz/Deliverance-0.6.1/deliverance/editor/media/editarea/edit_area/regexp.js
res="<span class=htmlTag>"+v2; alert("v2: "+v2+" v3: "+v3); tab=v3.split("="); attributes=""; if(tab.length>1){ attributes="<span class=attribute>"+tab[0]+"</span>="; for(i=1; i<tab.length-1; i++){ cut=tab[i].lastIndexOf("&nbsp;"); attributes+="<span class=attributeVal>"+tab[i].substr(0,cut)...
PypiClean
/gears-jsx-0.1.tar.gz/gears-jsx-0.1/gears_jsx/node_modules/react-tools/node_modules/commoner/node_modules/recast/node_modules/cls/test/run.js
var assert = require("assert"); var Class = require("../main"); describe("Class", function() { it("should have correct instanceof and override behavior", function() { var A = Class.extend({ init: function(val) { this.val = val; } }); var B = A.extend({ init: function(val) { ...
PypiClean
/ooouno-2.1.2-py3-none-any.whl/ooo/cssdyn/configuration/backend/__init__.py
from contextlib import suppress import warnings warnings.filterwarnings('module') warnings.warn('The cssdyn namespace is deprecated. Use dyn instead.', DeprecationWarning, stacklevel=2) with suppress(ImportError): from ....dyn.configuration.backend.authentication_failed_exception import AuthenticationFailedExcep...
PypiClean
/certora-cli-alpha-EyalH-FrontendTesting-20230515.13.2.152144.tar.gz/certora-cli-alpha-EyalH-FrontendTesting-20230515.13.2.152144/certora_cli/Shared/certoraLogging.py
import logging import sys from typing import Dict, Any, Set, Optional, Iterable, List from Shared.certoraUtils import write_json_file, red_text, orange_text, get_debug_log_file from Shared.certoraUtils import get_resource_errors_file class ColoredString(logging.Formatter): def __init__(self, msg_fmt: str = "%(nam...
PypiClean
/pulumi_vault-5.15.0a1693031013.tar.gz/pulumi_vault-5.15.0a1693031013/pulumi_vault/azure/_inputs.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = [ 'BackendRoleAzureGroupArgs', 'BackendRoleAzureRoleArgs', ] @pulumi.input_type class BackendRoleAzureGroupArgs: def __init__(__self__, ...
PypiClean