id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/aidenva-0.0.1-py3-none-any.whl/vaengine/firesmoke_va_2.py
import logging import cv2 import numpy as np import service.constants as const from service.va_service import VAService from models.objectdetect import ObjectDetect from models.classify import Classify from misc import labelmap_util tracelogger = logging.getLogger('trace') MotionBase = True import yaml import os c...
PypiClean
/mathematics_dataset-1.0.1-py3-none-any.whl/mathematics_dataset/modules/arithmetic.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import functools import math import random # Dependency imports from mathematics_dataset import example from mathematics_dataset.sample import arithmetic from mathematics_dataset.sample import number from math...
PypiClean
/holoviews-1.17.1.tar.gz/holoviews-1.17.1/examples/reference/elements/matplotlib/Chord.ipynb
<div class="contentcontainer med left" style="margin-left: -50px;"> <dl class="dl-horizontal"> <dt>Title</dt> <dd> Graph Element</dd> <dt>Dependencies</dt> <dd>Matplotlib</dd> <dt>Backends</dt> <dd><a href='./Chord.ipynb'>Matplotlib</a></dd> <dd><a href='../bokeh/Chord.ipynb'>Bokeh</a></dd> </dl> </div> ...
PypiClean
/azure-mgmt-sql-4.0.0b3.zip/azure-mgmt-sql-4.0.0b3/azure/mgmt/sql/operations/_subscription_usages_operations.py
from typing import Any, Callable, Dict, Iterable, Optional, TypeVar from msrest import Serializer from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error from azure.core.paging import ItemPaged from azure.core.pipeline import PipelineRespon...
PypiClean
/sns_toolbox-1.4.3.tar.gz/sns_toolbox-1.4.3/sns_toolbox/color_utilities.py
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% IMPORTS """ import warnings SETOFVALIDCOLORS = {'aliceblue', 'antiquewhite', 'aqua', 'aquamarine', 'azure', 'beige', 'bisque', 'black', 'blanchedalmond', 'blue', 'blueviolet', 'brown', 'b...
PypiClean
/rtv-downloader-2.0.8.tar.gz/rtv-downloader-2.0.8/rtv/extractors/rmf24.py
import re from datetime import datetime from typing import Optional from bs4 import BeautifulSoup from rtv.extractors.common import ( Extractor, GenericDescriptionMixin, GenericTitleMixin ) from rtv.utils import get_ext class Rmf24(GenericTitleMixin, GenericDescriptionMixin, Extractor): SITE_NAME = 'rmf24.p...
PypiClean
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/v2/stable/api/feature_libraries/list_feature_libraries.py
from typing import Any, Dict, Optional, Union import httpx from ...client import Client from ...models.bad_request_error import BadRequestError from ...models.feature_libraries_paginated_list import FeatureLibrariesPaginatedList from ...models.list_feature_libraries_sort import ListFeatureLibrariesSort from ...types ...
PypiClean
/bumble-0.0.165.tar.gz/bumble-0.0.165/apps/hci_bridge.py
# ----------------------------------------------------------------------------- # Imports # ----------------------------------------------------------------------------- import logging import asyncio import os import sys from bumble import hci, transport from bumble.bridge import HCI_Bridge # -----------------------...
PypiClean
/odoo14_addon_purchase_discount-14.0.1.2.0-py3-none-any.whl/odoo/addons/purchase_discount/readme/CONTRIBUTORS.rst
* OpenERP S.A. * Ignacio Ibeas <ignacio@acysos.com> * Pedro M. Baeza <pedro.baeza@tecnativa.com> * Jonathan Nemry <jonathan.nemry@acsone.eu> * Sylvain LE GAL (https://twitter.com/legalsylvain) * Stefan Rijnhart <stefan@opener.amsterdam> * `Tecnativa <https://www.tecnativa.com>`_: * Pedro M. Baeza * Vicent Cubells ...
PypiClean
/yrouter-websockets-0.2.tar.gz/yrouter-websockets-0.2/README.md
# Yrouter-websockets `yrouter-websokets` is a URL routing package for the [`websockets`](https://github.com/aaugustin/websockets) library. It's built on top of [`yrouter`](https://github.com/Tijani-Dia/yrouter). ## Example ```python import asyncio import http import websockets from yrouter import route from yroute...
PypiClean
/response_functions-0.4.tar.gz/response_functions-0.4/response_functions/hexagonal_boron_nitride.py
import numpy as np import warnings from response_functions.common import * lightspeed = 299792458. #m/s cm_1 = 2*np.pi*lightspeed*1e2 # angular frequency from cm^-1 def permittivity_Geick(omega): """ Epsilon of hexagonal boron nitride/epsilon_0. This is a two-component permittivity for in-plane electric...
PypiClean
/django-secure-auth-1.3.3.2.tar.gz/django-secure-auth-1.3.3.2/secureauth/south_migrations.old/0001_initial.py
from south.utils import datetime_utils as datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Adding model 'UserAuthCode' db.create_table(u'secureauth_userauthcode', ( (u'id', s...
PypiClean
/scikit-ci-addons-0.25.0.tar.gz/scikit-ci-addons-0.25.0/circle/install_cmake.py
import os import subprocess import sys import textwrap from subprocess import CalledProcessError, check_output DEFAULT_CMAKE_VERSION = "3.5.0" def _log(*args): script_name = os.path.basename(__file__) print("[circle:%s] " % script_name + " ".join(args)) sys.stdout.flush() def _check_executables_availa...
PypiClean
/sphinx_scylladb_theme-1.5.1.tar.gz/sphinx_scylladb_theme-1.5.1/sphinx_scylladb_theme/extensions/hero_box.py
from docutils import nodes from docutils.parsers.rst import Directive, directives from .utils import generate_template class HeroBox(Directive): has_content = True option_spec = { "title": directives.unchanged_required, "class": directives.path, "text": directives.unchanged_required, ...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AnttechOceanbaseObglobalObartifactSyncRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AnttechOceanbaseObglobalObartifactSyncModel import AnttechOceanbaseObglobalObartifactSyncModel class AnttechOceanbaseObglobalObartifactSyncRequest(object): def __init__(self...
PypiClean
/cyclonedx_editor_validator-0.7.0.tar.gz/cyclonedx_editor_validator-0.7.0/cdxev/set.py
import logging import pathlib import sys import typing as t from dataclasses import dataclass, field from cdxev.auxiliary.identity import ComponentIdentity, Key from cdxev.auxiliary.sbomFunctions import walk_components from cdxev.error import AppError from cdxev.log import LogMessage logger = logging.getLogger(__name...
PypiClean
/rest-hooks-0.1.0.tar.gz/rest-hooks-0.1.0/rest_hooks/signals.py
from django.db.models.signals import post_save, post_delete from django.dispatch import Signal from django.dispatch import receiver from django.test.signals import setting_changed from rest_hooks.utils import distill_model_event hook_event = Signal(providing_args=['action', 'instance']) raw_hook_event = Signal(provid...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/doctrine/README.md
[![NPM version][npm-image]][npm-url] [![build status][travis-image]][travis-url] [![Test coverage][coveralls-image]][coveralls-url] [![Downloads][downloads-image]][downloads-url] [![Join the chat at https://gitter.im/eslint/doctrine](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/eslint/doctrine?utm_sourc...
PypiClean
/sktime-backup-0.16.1.tar.gz/sktime-backup-0.16.1/sktime/utils/estimator_checks.py
"""Estimator checker for extension.""" __author__ = ["fkiraly"] __all__ = ["check_estimator"] from inspect import isclass from warnings import warn # todo 0.17.0: # * remove the return_exceptions arg # * move the raise_exceptions arg to 2nd place # * change its default to False, from None # * update the docstring -...
PypiClean
/TimeSide-0.9.6.tar.gz/TimeSide-0.9.6/timeside/player/static/timeside2/app/bower_components/superagent/test/node/flags.js
var EventEmitter = require('events').EventEmitter , request = require('../../') , express = require('express') , assert = require('assert') , app = express(); app.get('/error', function(req, res){ throw new Error('oh noes'); }); app.get('/login', function(req, res){ res.send('<form id="login"></form>'); }...
PypiClean
/django-common-hashtag-learning-0.1.8.tar.gz/django-common-hashtag-learning-0.1.8/common/common_print.py
from reportlab.platypus import SimpleDocTemplate from reportlab.platypus.tables import TableStyle from reportlab.lib.styles import ParagraphStyle from reportlab.platypus import Paragraph from reportlab.lib.units import inch from reportlab.lib.enums import TA_LEFT, TA_CENTER from reportlab.lib.pagesizes import A4, land...
PypiClean
/contrail_sansmodels-2.1.0.tar.gz/contrail_sansmodels-2.1.0/src/sans/models/SphereSLDModel.py
############################################################################## # This software was developed by the University of Tennessee as part of the # Distributed Data Analysis of Neutron Scattering Experiments (DANSE) # project funded by the US National Science Foundation. # # If you use DANSE applications to d...
PypiClean
/slixmppfix-1.4.3.tar.gz/slixmppfix-1.4.3/slixmpp/plugins/xep_0060/stanza/pubsub_errors.py
from slixmpp.stanza import Error from slixmpp.xmlstream import ElementBase, ET, register_stanza_plugin class PubsubErrorCondition(ElementBase): plugin_attrib = 'pubsub' interfaces = {'condition', 'unsupported'} plugin_attrib_map = {} plugin_tag_map = {} conditions = {'closed-node', 'configuration...
PypiClean
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/xuan-xuan/萱萱情感vip10套课打包:付费专栏《28天脱单秘籍》:21.约会心理学.md
# 萱萱情感vip10套课打包:付费专栏《28天脱单秘籍》:21.约会心理学 约会心理学 心动不如行动,哈嘍 大家好 我是薛薛,最科学的约会策略,女生的性策略是选择,所以会在约会中去观察了解你,那么约会就是男女关系推进的重要环节,在破除了健光死中,我们讲了一下基础的概念。 好的外在给女生良好的视觉感受,好的言行 谈吐,给女生好的情绪体验,做自身建设,都是为了给女生一个好的感觉,在约会中要和女生顺利的推进关系,就是要给到女生好的情绪体验,那么首先 约会当然不能迟到了。 万一迟到了也不要一直,正重歧视的跟女生解释个没完,这只会让女生一直现在那种不好的情绪里面,约会的地点呢,尽量选择自己熟悉的地方,即使不熟悉,也可以是现在App上面...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/bacillusakibai.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def BacillusAkibai( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_graph_kwargs: Dict ) ...
PypiClean
/pulumi_datadog-4.23.0a1693460776.tar.gz/pulumi_datadog-4.23.0a1693460776/pulumi_datadog/webhook_custom_variable.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['WebhookCustomVariableArgs', 'WebhookCustomVariable'] @pulumi.input_type class WebhookCustomVariableArgs: def __init__(__self__, *, ...
PypiClean
/asad-14-json-generator-0.1.2.tar.gz/asad-14-json-generator-0.1.2/jsonvaluetester/models/value_container.py
from jsonvaluetester.api_helper import APIHelper class ValueContainer(object): """Implementation of the 'ValueContainer' model. TODO: type model description here. Attributes: name (string): TODO: type description here. id (string): TODO: type description here. value (object): TO...
PypiClean
/hcs_storage-1.3-py3-none-any.whl/NEWS.rst
News ==== 1.3 --- *Release date: 2020-12-16* * Removed support for Python 2.x * Switched from setup.py to poetry 1.2 --- *Release date: 2016-08-26* * Removed a double normalization 1.1 --- *Release date: 2014-07-01* * added items() == iteritems() to storage for Py3 style compat. 1.0.2 ----- * More doctests, alm...
PypiClean
/streamlit-charticulator-0.0.7.tar.gz/streamlit-charticulator-0.0.7/src/charticulator/frontend/charticulator/dist/scripts/app/components/colors/palette_list.js
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function ...
PypiClean
/tensorflow_constrained_optimization-0.2.tar.gz/tensorflow_constrained_optimization-0.2/tensorflow_constrained_optimization/python/rates/loss.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import abc import six import tensorflow as tf from tensorflow_constrained_optimization.python.rates import helpers def _convert_to_binary_classification_predictions(predictions): """Converts a `Tensor` int...
PypiClean
/dschmidt-cdktf-provider-google_beta-0.1.0.tar.gz/dschmidt-cdktf-provider-google_beta-0.1.0/src/dschmidt_cdktf_provider_google_beta/google_cloud_identity_group/__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 cdktf import constructs class GoogleCloudIdentityGroup( cdktf.TerraformResource, metaclass=jsii.JSIIMeta, jsii_type...
PypiClean
/ctrlx_fbs-2.0.0-py3-none-any.whl/comm/ethercat/master/fbs/LinkLayerOnlineInfo.py
# namespace: fbs import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class LinkLayerOnlineInfo(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = LinkLayerOnl...
PypiClean
/virtual-storage-manager-2.0.2.tar.gz/virtual-storage-manager-2.0.2/vsm/flags.py
# Copyright 2010 United States Government as represented by the # Administrator of the National Aeronautics and Space Administration. # All Rights Reserved. # Copyright 2012 Red Hat, Inc. # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the...
PypiClean
/TEST_TC-1.1.37.tar.gz/TEST_TC-1.1.37/LIB_tc/test_tc/algorithms/job.py
import os import mlflow import pandas as pd import json import numpy as np from ..utility.resources import log_exception, get_module_and_function, logger from ..utility.check_utils import check_not_in_iterable, check_not_isinstance from ..algorithms.reconcile import ReconcileClass @log_exception(logger) class JobCla...
PypiClean
/python_microscopy-20.12.8-cp36-cp36m-win_amd64.whl/PYME/Acquire/acquiremainframe.py
################## # smimainframe.py # # Copyright David Baddeley, 2009 # d.baddeley@auckland.ac.nz # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at y...
PypiClean
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/SupervisedLearning/PolyExponential.py
#External Modules------------------------------------------------------------------------------------ import numpy as np #External Modules End-------------------------------------------------------------------------------- #Internal Modules-------------------------------------------------------------------------------...
PypiClean
/hyalus-0.1.1.tar.gz/hyalus-0.1.1/README.md
Hyalus is a testing tool for software verification, designed as a standalone tool as well as a tool that integrates with [pytest](https://docs.pytest.org/en/7.2.x/). # Getting Started See [Intro to hyalus](GETTING_STARTED.md). # Contributing See [Contribution Guidelines](CONTRIBUTING.md). # Code of Conduct See [C...
PypiClean
/light_labyrinth-1.0.0-pp38-pypy38_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl/light_labyrinth/multioutput/_LightLabyrinth3DMixedOutputPredictor.py
import numpy as np import pandas as pd from .._bare_model import LightLabyrinth3D from .._tools import _MixedOutputTransformer from ..hyperparams.activation import * from ..hyperparams.error_function import * from ..hyperparams.optimization import * from ..hyperparams.regularization import * from ..hyperparams.weights...
PypiClean
/eric-ide-22.7.1.tar.gz/eric-ide-22.7.1/eric7/Plugins/VcsPlugins/vcsMercurial/Ui_HgRepoConfigDataDialog.py
from PyQt6 import QtCore, QtGui, QtWidgets class Ui_HgRepoConfigDataDialog(object): def setupUi(self, HgRepoConfigDataDialog): HgRepoConfigDataDialog.setObjectName("HgRepoConfigDataDialog") HgRepoConfigDataDialog.resize(500, 436) HgRepoConfigDataDialog.setSizeGripEnabled(True) se...
PypiClean
/pulumi_fortios-0.0.9.tar.gz/pulumi_fortios-0.0.9/pulumi_fortios/get_router_isis.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__ = [ 'GetRouterIsisResult', 'AwaitableGetRouterIsisResult', 'get_router_isis', 'get_router_isis_output', ] @pulumi...
PypiClean
/jupyterlab-4.1.0a1.tar.gz/jupyterlab-4.1.0a1/docs/source/getting_started/accessibility.rst
.. Copyright (c) Jupyter Development Team. .. Distributed under the terms of the Modified BSD License. .. _accessibility: JupyterLab Accessibility Statement ================================== Jupyter audits -------------- This section includes audits from different stakeholders on Jupyter products. * `JupyterLab v...
PypiClean
/m9s-trytond-6.0.35.tar.gz/m9s-trytond-6.0.35/trytond/ir/trigger.py
import datetime import time from sql import Literal, Null, Select from sql.aggregate import Count, Max from sql.functions import CurrentTimestamp from sql.operators import Concat from trytond.cache import Cache from trytond.i18n import gettext from trytond.model import ( ModelView, ModelSQL, DeactivableMixin, fiel...
PypiClean
/pulumi_azure-5.50.0a1693462503.tar.gz/pulumi_azure-5.50.0a1693462503/pulumi_azure/network/firewall.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__ = ['FirewallArgs', 'Firewall'] @pulumi.input_type class FirewallArgs: def __init__(__self__, *, ...
PypiClean
/layer-client-0.3.9.tar.gz/layer-client-0.3.9/layer_client/mlmodels/flavors/flavor.py
from abc import ABCMeta, abstractmethod from typing import Any, NamedTuple from mlflow.utils.file_utils import TempDir from .. import ModelObject from .model_definition import ModelDefinition from .s3 import S3Util class ModelFlavorMetaData(NamedTuple): """NamedTuple containing flavor module and class names""" ...
PypiClean
/winevtrc-20220106.tar.gz/winevtrc-20220106/docs/sources/eventlog-providers/Provider-usbehci.md
## usbehci Seen on: * Windows 10 (1511, 1607, 1703, 1709, 1803, 1809, 1903, 1909, 2004, 20H2) * Windows 11 (21H2) * Windows 2012 * Windows 8.0 * Windows 8.1 <table border="1" class="docutils"> <tbody> <tr> <td><b>Log source(s):</b></td> <td>usbehci</td> </tr> <tr> <td><b>Log type:</b><...
PypiClean
/spyder-terminal-1.2.2.tar.gz/spyder-terminal-1.2.2/spyder_terminal/server/static/components/webpack/lib/util/cleverMerge.js
"use strict"; const mergeCache = new WeakMap(); /** * Merges two given objects and caches the result to avoid computation if same objects passed as arguments again. * @example * // performs cleverMerge(first, second), stores the result in WeakMap and returns result * cachedCleverMerge({a: 1}, {a: 2}) * {a: 2} *...
PypiClean
/gridx-prescient-2.2.2.tar.gz/gridx-prescient-2.2.2/prescient/gosm/benchmark.py
import time import timeit import numpy as np import pandas as pd import prescient.gosm.sources as sources from prescient.gosm.markov_chains.descriptions import bin_description import prescient.util.distributions.distributions as distributions import prescient.util.distributions.distributions.copula as copula copula...
PypiClean
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/standard/plugins/specialchar/dialogs/lang/sq.js
/* Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("specialchar","sq",{euro:"Shenja e Euros",lsquo:"Thonjëza majtas me një vi",rsquo:"Thonjëza djathtas me një vi",ldquo:"Thonjëza m...
PypiClean
/argo-workflows-6.5.0rc1.tar.gz/argo-workflows-6.5.0rc1/argo_workflows/model/container_port.py
import re # noqa: F401 import sys # noqa: F401 from argo_workflows.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, ...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/education_class_collection_response.py
from __future__ import annotations from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from . import base_collection_pagination_count_response, education_class from . import base_collec...
PypiClean
/aioscrapy_redis-0.6-py3-none-any.whl/aioscrapy_redis/aioscrapyredis/utils/python.py
import gc import os import re import inspect import weakref import errno import six from functools import partial, wraps import sys from aioscrapy_redis.aioscrapyredis.utils.decorators import deprecated def flatten(x): """flatten(sequence) -> list Returns a single, flat list which contains all elements retri...
PypiClean
/google-ads-21.3.0.tar.gz/google-ads-21.3.0/google/ads/googleads/v12/services/services/account_link_service/transports/base.py
import abc from typing import Awaitable, Callable, Optional, Sequence, Union import pkg_resources import google.auth # type: ignore import google.api_core # type: ignore from google.api_core import exceptions as core_exceptions # type: ignore from google.api_core import gapic_v1 # type: ignore from google.api_core...
PypiClean
/Lightflow-1.11.1.tar.gz/Lightflow-1.11.1/examples/data_store.py
from lightflow.models import Dag from lightflow.tasks import PythonTask import numpy as np # the callback function to store data in the persistent data store. It stores a single # integer value in 'number', a single integer value into the hierarchical key # 'buffer' -> 'observable' and a numpy array into 'image'. Ad...
PypiClean
/eventsourcing_async-0.0.1a0.tar.gz/eventsourcing_async-0.0.1a0/eventsource/model/aggregate.py
from collections import deque import time from typing import Deque from eventsource.model.entity import TimestampedVersionedEntity from eventsource.model.events import DomainEvent class AggregateRoot(TimestampedVersionedEntity): _pending_events: Deque[DomainEvent] """ Root entity for an aggregate in a ...
PypiClean
/matrix_webcam-0.4.2-py3-none-any.whl/matrix_webcam/__main__.py
import argparse import random import signal import time from string import printable from typing import Optional, Any import _curses import cv2 import numpy as np import numpy.typing as npt from mediapipe.python.solutions.selfie_segmentation import SelfieSegmentation curses: Any = _curses # ignore mypy ASCII_CHARS =...
PypiClean
/utils/crc16.py
def crc16(buf: bytes): TABLE = [ 0x0000, 0x1021, 0x2042, 0x3063, 0x4084, 0x50a5, 0x60c6, 0x70e7, 0x8108, 0x9129, 0xa14a, 0xb16b, 0xc18c, 0xd1ad, 0xe1ce, 0xf1ef, 0x1231, 0x0210, 0x3273, 0x2252, 0x52b5, 0x4294, 0x72f7, 0x62d6, 0x9339, 0x8318, 0xb37b, 0xa35a, 0xd3bd, 0xc39c, 0xf3ff, 0xe...
PypiClean
/onion-proctor-0.1.2.tar.gz/onion-proctor-0.1.2/proctor/proxy.py
import logging from threading import Lock from urlparse import urlparse, urlunparse, ParseResult from miproxy.proxy import ( ProxyHandler, RequestInterceptorPlugin, ResponseInterceptorPlugin, UnsupportedSchemeException) from ssl import wrap_socket log = logging.getLogger(__name__) class TorProxyHandler(Prox...
PypiClean
/ape-trezor-0.6.2.tar.gz/ape-trezor-0.6.2/ape_trezor/_cli.py
from typing import cast import ape import click from ape import accounts from ape.cli import ( ape_cli_context, existing_alias_argument, non_existing_alias_argument, skip_confirmation_option, ) from eth_account import Account from eth_account.messages import encode_defunct from ape_trezor.accounts imp...
PypiClean
/zesty.zbs-api-1.0.2023.8.29.1693309720.tar.gz/zesty.zbs-api-1.0.2023.8.29.1693309720/src/models/FileSystem.py
import json import time import traceback from typing import Dict from copy import deepcopy from decimal import Decimal from zesty.id_handler import create_zesty_id, create_zesty_filesystem_id from ..actions import ZBSAction from .BlockDevice import BlockDevice from .Usage import Usage GB_IN_BYTES = 1024**3 class F...
PypiClean
/Products.MeetingPROVHainaut-4.2b6.tar.gz/Products.MeetingPROVHainaut-4.2b6/src/Products/MeetingPROVHainaut/profiles/zprovhainaut/import_data.py
from collective.contact.plonegroup.config import PLONEGROUP_ORG from copy import deepcopy from Products.MeetingCommunes.profiles.examples_fr import import_data as examples_fr_import_data from Products.MeetingCommunes.profiles.zones import import_data as zones_import_data from Products.MeetingPROVHainaut.config import ...
PypiClean
/hprose-1.4.3.tar.gz/hprose-1.4.3/LICENSE.md
The MIT License (MIT) Copyright (c) 2008-2015 http://hprose.com Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, ...
PypiClean
/dimagi-superset-2.0.1.tar.gz/dimagi-superset-2.0.1/superset/static/assets/3aa46fb33df2aab20c02.chunk.js
(globalThis.webpackChunksuperset=globalThis.webpackChunksuperset||[]).push([[1161],{85531:(t,e,n)=>{"use strict";n.d(e,{Z:()=>w});var s=n(67294),r=n(45697),i=n.n(r),a=n(84502),o=n(42441),l=n.n(o),p=n(51995),d=n(61988),u=n(19322),c=n.n(u),h=n(11965);const g=p.iK.div` ${({theme:t})=>`\n .slider-selection {\n ba...
PypiClean
/wagtail-extras-0.2.8.tar.gz/wagtail-extras-0.2.8/wagtailextras/templatetags/wagtailextras_tags.py
from datetime import date from django import template from django.conf import settings from wagtail.core.models import Page register = template.Library() @register.inclusion_tag('templatetags/breadcrumbs.html', takes_context=True) def breadcrumbs(context): self = context.get('self') if self is None or self....
PypiClean
/marllib-1.0.3.tar.gz/marllib-1.0.3/multiagent_mujoco/manyagent_swimmer.py
# Copyright (c) 2023 Replicable-MARL # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software and associated documentation files (the "Software"), to deal # in the Software without restriction, including without limitation the rights # to use, copy, modify, merge, publish, dis...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_20/api/alerts_api.py
from __future__ import absolute_import import re # python 2 and python 3 compatibility library import six from typing import List, Optional from .. import models class AlertsApi(object): def __init__(self, api_client): self.api_client = api_client def api220_alerts_events_get_with_http_info( ...
PypiClean
/ai_flow-0.3.1.tar.gz/ai_flow-0.3.1/airflow/task/task_runner/cgroup_task_runner.py
import datetime import getpass import os import uuid import psutil from cgroupspy import trees from airflow.task.task_runner.base_task_runner import BaseTaskRunner from airflow.utils.operator_resources import Resources from airflow.utils.process_utils import reap_process_group class CgroupTaskRunner(BaseTaskRunner)...
PypiClean
/cloud-select-tool-0.0.18.tar.gz/cloud-select-tool-0.0.18/cloud_select/main/table.py
import os from rich.console import Console from rich.table import Table as RichTable import cloud_select.defaults as defaults import cloud_select.main.colors as colors from cloud_select.logger import logger here = os.path.dirname(os.path.abspath(__file__)) class Table: """ Format a result into a table. ...
PypiClean
/gc-boto-2.37.1.tar.gz/gc-boto-2.37.1/docs/source/releasenotes/v2.9.7.rst
boto v2.9.7 =========== :date: 2013/07/08 This release is primarily a bugfix release, but also inludes support for Elastic Transcoder updates (variable bit rate, max frame rate & watermark features). Features -------- * Added support for selecting specific attributes in DynamoDB v2. (:issue:`1567`, :sha:`d9e5c2`...
PypiClean
/pyf.components.consumers.csvwriter-0.9.tar.gz/pyf.components.consumers.csvwriter-0.9/pyf/components/consumers/csvwriter/writer.py
from __future__ import with_statement from csv import DictWriter from pyf.componentized.components.multiwriter import MultipleFileWriter import csv from pyf.components.consumers.csvwriter.addon import CSVAddon from pyf.componentized.configuration.keys import (RepeatedKey, SimpleKey, CompoundKey, BooleanKey) ...
PypiClean
/eric-ide-22.7.1.tar.gz/eric-ide-22.7.1/eric7/DebugClients/Python/DebugBase.py
# Copyright (c) 2002 - 2022 Detlev Offenbach <detlev@die-offenbachs.de> # """ Module implementing the debug base class which based originally on bdb. """ import sys import os import types import atexit import inspect import ctypes import time import dis import contextlib from BreakpointWatch import Breakpoint, Watc...
PypiClean
/musma_ray-1.0.0.2-py3-none-any.whl/rllib/execution/multi_gpu_learner_thread.py
import logging from six.moves import queue import threading from ray.rllib.execution.learner_thread import LearnerThread from ray.rllib.execution.buffers.minibatch_buffer import MinibatchBuffer from ray.rllib.policy.sample_batch import SampleBatch from ray.rllib.utils.annotations import override from ray.rllib.utils.d...
PypiClean
/fhi-vibes-1.0.5.tar.gz/fhi-vibes-1.0.5/vibes/trajectory/io.py
import json import multiprocessing import os import shutil from pathlib import Path import numpy as np import xarray as xr from ase import Atoms, units from ase.calculators.calculator import PropertyNotImplementedError from vibes import __version__ as version from vibes import io, keys, son from vibes.filenames impo...
PypiClean
/pytrnsys_gui-0.10.15-py3-none-any.whl/trnsysGUI/resources/QRC_resources_generated.py
# Resource object code # # Created by: The Resource Compiler for PyQt5 (Qt v5.15.2) # # WARNING! All changes made in this file will be lost! from PyQt5 import QtCore qt_resource_data = b"\ \x00\x00\x13\x04\ \x00\ \x00\x71\x40\x78\x9c\xed\x5c\x59\x73\xdb\xc6\x96\x7e\xcf\xaf\xc0\ \xc8\x2f\x71\x0d\x09\xf6\xbe\xc8\xcb\x...
PypiClean
/arklog-0.5.0.tar.gz/arklog-0.5.0/tasks.py
from pathlib import Path from invoke import task from jinja2 import Template @task(name="docs") def documentation(c): """Build the documentation.""" c.run("python3 -m sphinx docs docs/build/html") @task def test(c): """Run all tests under the tests directory.""" c.run("python3 -m unittest discover ...
PypiClean
/ak-djangorestframework-jsonapi-2.4.0.post0.tar.gz/ak-djangorestframework-jsonapi-2.4.0.post0/rest_framework_json_api/utils.py
import copy import inspect import operator import warnings from collections import OrderedDict import inflection from django.conf import settings from django.db.models import Manager from django.db.models.fields.related_descriptors import ( ManyToManyDescriptor, ReverseManyToOneDescriptor ) from django.utils i...
PypiClean
/lifx-sdk-0.7.tar.gz/lifx-sdk-0.7/lifx/network.py
import protocol import socket import threading from binascii import hexlify from collections import namedtuple DEFAULT_LIFX_PORT = 56700 PacketHandler = namedtuple('PacketHandler', ['handler', 'pktfilter']) default_filter = lambda x:True class NetworkTransport(object): """The network transport manages the networ...
PypiClean
/pink_accents-0.0.4.tar.gz/pink_accents-0.0.4/examples/owo.py
import re import random from typing import Optional from pink_accents import Match, Accent, Replacement from pink_accents.types import PatternMapType NYAS = ( ":3", ">w<", "^w^", "owo", "OwO", "nya", "Nya", "nyaa", "nyan", "!!!", "(=^‥^=)", "(=;ェ;=)", "ヾ(=`ω´=)ノ”",...
PypiClean
/scikit-explain-0.1.3.tar.gz/scikit-explain-0.1.3/skexplain/main/PermutationImportance/scoring_strategies.py
import numpy as np from .error_handling import InvalidStrategyException __all__ = [ "verify_scoring_strategy", "VALID_SCORING_STRATEGIES", "argmin_of_mean", "argmax_of_mean", "indexer_of_converter", ] def verify_scoring_strategy(scoring_strategy): """Asserts that the scoring strategy is vali...
PypiClean
/particle-0.23.0.tar.gz/particle-0.23.0/noxfile.py
from __future__ import annotations from pathlib import Path import nox nox.options.sessions = ["lint", "pylint", "tests"] @nox.session def lint(session: nox.Session) -> None: session.install("pre-commit") session.run("pre-commit", "run", "--all-files", *session.posargs) @nox.session def pylint(session: n...
PypiClean
/schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/Continent.py
from __future__ import annotations from datetime import * from time import * from typing import * from pydantic import * class Continent(BaseModel): """One of the continents (for example, Europe or Africa). References: https://schema.org/Continent Note: Model Depth 4 Attributes: ...
PypiClean
/sentry_api_python-0.3.0.tar.gz/sentry_api_python-0.3.0/sentry_api/http.py
from urllib.parse import urljoin import requests from sentry_api.exceptions import ( SentryApiBadInputException, SentryApiConflictException, SentryApiException, SentryApiForbiddenException, SentryApiResourceNotFoundException, ) class BaseHttp: def __init__(self, endpoint_url: str, token: str...
PypiClean
/crowdin-api-client-1.11.0.tar.gz/crowdin-api-client-1.11.0/crowdin_api/requester.py
import json import logging import mimetypes import os import time from copy import copy from typing import Dict, IO, List, Optional, Union from urllib.parse import urljoin import requests from crowdin_api import status from crowdin_api.exceptions import ( APIException, AuthenticationFailed, CrowdinExceptio...
PypiClean
/chromaprint-0.5.tar.gz/chromaprint-0.5/README.md
# chromaprint Python module to facilitate effortless color terminal output. ### Installation Chromaprint requires Python 3.X. Install via pip with `pip install chromaprint` ### Usage from chromaprint import print print('green on magenta', fg='green', bg='magenta') It's that easy. Chromaprint contains one ...
PypiClean
/tensorflow_tflex-1.13.1rc1-cp27-cp27mu-manylinux1_x86_64.whl/tensorflow_tflex-1.13.1rc1.data/purelib/tensorflow/python/ops/gen_stateless_random_ops.py
import collections as _collections import six as _six from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow from tensorflow.python.eager import context as _context from tensorflow.python.eager import core as _core from tensorflow.python.eager import execute as _execute from tensorflow.python.framework ...
PypiClean
/Ageas-0.0.1a6.tar.gz/Ageas-0.0.1a6/ageas/lib/config_maker.py
import itertools import ageas.lib as lib from collections import deque import ageas.tool.json as json # Paternize default list_config def List_Config_Reader(path): config_list = json.decode(path) result = {} if 'Transformer' in config_list: result['Transformer'] = Pytorch_Transformer( ...
PypiClean
/cameras-dashboard-20221009112053.tar.gz/cameras-dashboard-20221009112053/cameras_dashboard/c.3aa36cfa.js
import{_ as t,c as i,d as e,t as s,$ as a,r as n,n as o}from"./main-d07cb663.js";import{s as h,a as r}from"./c.98305d6e.js";import{j as d,h as c,U as u}from"./c.fc0bbf07.js";import{X as l,Z as f}from"./c.37525831.js";import"./c.2ff699c8.js";import"./c.95ef015c.js";import"./c.c11921c6.js";import"./c.62305b3f.js";import"...
PypiClean
/domain_availability-1.0.0-py3-none-any.whl/domainavailability/client.py
from json import loads, JSONDecodeError import re from .net.http import ApiRequester from .models.response import DomainInfo from .exceptions.error import ParameterError, EmptyApiKeyError, \ UnparsableApiResponseError class Client: __default_url = "https://domain-availability.whoisxmlapi.com/api/v1" __pa...
PypiClean
/dsin100daysv35-6.0.1.tar.gz/dsin100daysv35-6.0.1/notebook/static/auth/js/main.min.js
!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(e,t){"use strict";var n=[],r=e.document,i=Objec...
PypiClean
/sca_tools-0.1.2.tar.gz/sca_tools-0.1.2/sca_tools/graphing.py
# Copyright 2017 Bhaskar Mookerji # # 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 # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in wri...
PypiClean
/vivarium-notebooks-0.0.5.tar.gz/vivarium-notebooks-0.0.5/bioscrape_cobra/generate_figure.py
import os import argparse import copy from vivarium.core.emitter import ( data_from_database, DatabaseEmitter, remove_units, deserialize_value) from vivarium.plots.simulation_output import set_axes from vivarium.plots.simulation_output import _save_fig_to_dir as save_fig_to_dir from vivarium.plots.agents_m...
PypiClean
/musicquery-0.24.tar.gz/musicquery-0.24/README.md
# musicquery > A Python package which returns song_path after matching given query with all existing songs in music_dir [![Build Status](https://travis-ci.org/prdpx7/musicquery.svg?branch=master)](https://travis-ci.org/prdpx7/musicquery) [![MITlicensed](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw....
PypiClean
/Another_One_Messenger_Server-0.9.tar.gz/Another_One_Messenger_Server-0.9/src/server/main_window.py
from PyQt5.QtWidgets import QMainWindow, QAction, qApp, QApplication, QLabel, QTableView from PyQt5.QtGui import QStandardItemModel, QStandardItem from PyQt5.QtCore import QTimer from server.stat_window import StatWindow from server.config_window import ConfigWindow from server.add_user import RegisterUser from server....
PypiClean
/sphinx-ros-0.1.tar.gz/sphinx-ros-0.1/sphinx_ros/indices.py
from six import iteritems from sphinx.domains import Index class RosMessageIndex(Index): """ Index listing the documented message types. """ name = 'msgindex' localname = 'Message Type Index' shortname = 'msgs' def generate(self, docnames=None): content = {} # Get message...
PypiClean
/security-sensor-1.0.tar.gz/security-sensor-1.0/secapp/static/bower_components/highcharts/modules/canvas-tools.js
function RGBColor(m){this.ok=!1;m.charAt(0)=="#"&&(m=m.substr(1,6));var m=m.replace(/ /g,""),m=m.toLowerCase(),a={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2...
PypiClean
/waldur_mastermind-4.5.1-py3-none-any.whl/waldur_mastermind/marketplace_support/processor.py
from django.core.exceptions import ObjectDoesNotExist from rest_framework import serializers from rest_framework.reverse import reverse from waldur_core.core import utils as core_utils from waldur_mastermind.marketplace import processors from waldur_mastermind.marketplace.utils import get_order_item_url from waldur_ma...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_22/models/policy_smb_patch.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 PolicySmbPatch(object): """ Attributes: swagger_types (dict): The key is attribute name and the value is...
PypiClean
/tensorflow_fork-1.15.2.0-py3-none-any.whl/tensorflow/contrib/training/python/training/training.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.python.framework import ops from tensorflow.python.ops import array_ops from tensorflow.python.ops import clip_ops from tensorflow.python.ops import control_flow_ops from tensorflow.python.ops i...
PypiClean
/fix_pyorch-1.0.3.tar.gz/fix_pyorch-1.0.3/src/fix_pyorch/message_spec.py
from lxml import objectify class Repository: def __init__(self, tree): _root = tree.getroot() self.messages = self._populate_message_specs(_root.messages) self.fields = self._populate_field_specs(_root.fields) self.groups = self._populate_group_specs(_root.groups) self.comp...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_13/models/remote_protection_group_snapshot_get_response.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_13 import models class RemoteProtectionGroupSnapshotGetResponse(object): """ Attributes: swagger_types (dict): The key is attribute name ...
PypiClean
/tensor2tensor-test-800.0.1.tar.gz/tensor2tensor-test-800.0.1/tensor2tensor/utils/t2t_model.py
"""T2TModel Base Class.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections import contextlib import copy import functools import math import time # Dependency imports import six from tensor2tensor.data_generators import text_encoder fr...
PypiClean