id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/servicenetworking/v20230501preview/associations_interface.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__ = ['AssociationsInterfaceArgs', 'AssociationsInterface'] @pulumi.input_type class ...
PypiClean
/translate_toolkit-3.10.0-py3-none-any.whl/translate/convert/html2po.py
from translate.convert import convert from translate.storage import html, po class html2po: def convertfile( self, inputfile, filename, duplicatestyle="msgctxt", keepcomments=False, ): """Convert an html file to .po format.""" thetargetfile = po.pofile()...
PypiClean
/onvif_zeep-0.2.12.tar.gz/onvif_zeep-0.2.12/onvif/client.py
from __future__ import print_function, division __version__ = '0.0.1' import os.path from threading import Thread, RLock import logging logger = logging.getLogger('onvif') logging.basicConfig(level=logging.INFO) logging.getLogger('zeep.client').setLevel(logging.CRITICAL) from zeep.client import Client, CachingClient,...
PypiClean
/vkbottle_types-5.131.146.16.tar.gz/vkbottle_types-5.131.146.16/vkbottle_types/codegen/methods/notes.py
import typing from typing_extensions import Literal from vkbottle_types.methods.base_category import BaseCategory from vkbottle_types.responses.base import OkResponse from vkbottle_types.responses.notes import ( AddResponse, CreateCommentResponse, GetByIdResponse, GetCommentsResponse, GetCommentsRe...
PypiClean
/pm2mp-0.0.98-py3-none-any.whl/pm2mp-0.0.98.data/data/node_modules/_unicodeWords.js
var rsAstralRange = '\\ud800-\\udfff', rsComboMarksRange = '\\u0300-\\u036f', reComboHalfMarksRange = '\\ufe20-\\ufe2f', rsComboSymbolsRange = '\\u20d0-\\u20ff', rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange, rsDingbatRange = '\\u2700-\\u27bf', rsLowerRange = 'a-...
PypiClean
/anyblok_io-1.1.0.tar.gz/anyblok_io-1.1.0/doc/builtin_bloks.rst
.. This file is a part of the AnyBlok project .. .. Copyright (C) 2014 Jean-Sebastien SUZANNE <jssuzanne@anybox.fr> .. .. This Source Code Form is subject to the terms of the Mozilla Public License, .. v. 2.0. If a copy of the MPL was not distributed with this file,You can .. obtain one at http://mozilla.org/MPL/2.0...
PypiClean
/klaviyo-api-beta-2.0.2.tar.gz/klaviyo-api-beta-2.0.2/src/openapi_client/model/campaign_send_job_partial_update_query_as_sub_resource_attributes.py
import re # noqa: F401 import sys # noqa: F401 from openapi_client.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, ...
PypiClean
/ansible-navigator-3.4.2.tar.gz/ansible-navigator-3.4.2/src/ansible_navigator/utils/version_migration/definitions.py
from __future__ import annotations import contextlib from enum import Enum from pathlib import Path from typing import Callable from typing import Generic from typing import TypeVar from ansible_navigator.utils.ansi import COLOR from ansible_navigator.utils.ansi import changed from ansible_navigator.utils.ansi impor...
PypiClean
/daniel-cavazos-sdk-0.1.0.tar.gz/daniel-cavazos-sdk-0.1.0/daniel_cavazos_sdk/builder.py
import requests class SDKBuilder: """ A base class for building SDKs that interact with a remote API. Provides methods for sending HTTP requests to the API and handling the response. Subclasses of this class can define specific endpoints and methods that are tailored to the API they are wrapping....
PypiClean
/monk_pytorch_cuda100-0.0.1-py3-none-any.whl/monk/gluon/finetune/level_5_state_base.py
from monk.gluon.finetune.imports import * from monk.system.imports import * from monk.gluon.finetune.level_4_evaluation_base import finetune_evaluation class finetune_state(finetune_evaluation): ''' Base class for Monk states - train, eval_infer, resume, copy_from, pseudo_copy_from (for running sub-experim...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/security/threat_intelligence/host_cookies/host_cookies_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
/bos-mint-0.5.4.tar.gz/bos-mint-0.5.4/bos_mint/bower_components/jquery/src/ajax.js
define( [ "./core", "./var/document", "./var/isFunction", "./var/rnothtmlwhite", "./ajax/var/location", "./ajax/var/nonce", "./ajax/var/rquery", "./core/init", "./ajax/parseXML", "./event/trigger", "./deferred", "./serialize" // jQuery.param ], function( jQuery, document, isFunction, rnothtmlwhite, locatio...
PypiClean
/aiy-voice-only-1.tar.gz/aiy-voice-only-1/aiy/_drivers/_buzzer.py
import os import time USEC = 1000000 def HzToPeriodUsec(freq_hz): """Converts a frequency given in Hz to a period expressed in microseconds.""" return USEC / freq_hz class PWMController(object): """Controller that simplifies the interface to pwm-soft Linux driver. Simple usage: from aiy._d...
PypiClean
/graph_analyzer/cross_associations_analyzer.py
import logging import os import pandas as pd import numpy as np import pickle from ..utils.utils import get_abspath from ..utils import graph_ops, graph, graph_loader from ..utils import plot_utils from ..utils.graph import Edgelist class CrossAssociationsAnalyzer(): """ use CrossAssociations Algorithm to ana...
PypiClean
/xpiz-0.0.4-py3-none-any.whl/splittr/__init__.py
import os, sys, hashlib, zipfile, json, shutil from glob import glob as re def read_bin(foil): with open(foil,'rb') as reader: return reader.read() def hash(foil, hash_function = hashlib.sha1): hashing = hash_function() with open(foil, 'rb') as f: for chunk in iter(lambda: f.read(4096), b""): hashing.update...
PypiClean
/scikit-learn-3way-split-0.0.1.tar.gz/scikit-learn-3way-split-0.0.1/doc/modules/isotonic.rst
.. _isotonic: =================== Isotonic regression =================== .. currentmodule:: sklearn.isotonic The class :class:`IsotonicRegression` fits a non-decreasing real function to 1-dimensional data. It solves the following problem: minimize :math:`\sum_i w_i (y_i - \hat{y}_i)^2` subject to :math:`\hat{...
PypiClean
/xs_transformers-1.0.7-py3-none-any.whl/xs_transformers/models/roformer/modeling_roformer.py
import math import os from typing import Optional, Tuple, Union import numpy as np import torch import torch.utils.checkpoint from torch import nn from torch.nn import BCEWithLogitsLoss, CrossEntropyLoss, MSELoss from ...activations import ACT2FN from ...modeling_outputs import ( BaseModelOutputWithPastAndCrossAt...
PypiClean
/ambition-django-uuidfield-0.5.0.tar.gz/ambition-django-uuidfield-0.5.0/uuidfield/fields.py
import uuid from six import with_metaclass from django import forms from django.db.models import Field, SubfieldBase try: from django.utils.encoding import smart_unicode except ImportError: from django.utils.encoding import smart_text as smart_unicode try: # psycopg2 needs us to register the uuid type ...
PypiClean
/django_vitae-0.1.0-py3-none-any.whl/cv/models/works.py
from django.db import models from django.db.models.functions import datetime from django.urls import reverse from django.utils.translation import ugettext_lazy as _ from .base import (VitaeModel, Collaborator, CollaborationModel, StudentCollaborationModel) from .managers import GrantManager from ma...
PypiClean
/onnxruntime_coreml-1.13.1-cp39-cp39-macosx_11_0_universal2.whl/onnxruntime/tools/onnx_model_utils.py
import logging import pathlib import onnx from onnx import version_converter import onnxruntime as ort def iterate_graph_per_node_func(graph, per_node_func, **func_args): """ Iterate the graph including subgraphs calling the per_node_func for each node. :param graph: Graph to iterate :param per_nod...
PypiClean
/bisos.coreDist-0.4.tar.gz/bisos.coreDist-0.4/bisos/coreDist/thisPkg.py
####+BEGIN: bx:icm:python:top-of-file :partof "bystar" :copyleft "halaal+minimal" """ * This file:/de/bx/nne/dev-py/pypi/pkgs/bisos/coreDist/dev/bisos/coreDist/thisPkg.py :: [[elisp:(org-cycle)][| ]] is part of The Libre-Halaal ByStar Digital Ecosystem. http://www.by-star.net *CopyLeft* This Software is a Libre-Hal...
PypiClean
/nemo_nlp-0.9.0.tar.gz/nemo_nlp-0.9.0/nemo_nlp/utils/callbacks/glue.py
__all__ = ['eval_iter_callback', 'eval_epochs_done_callback'] import os import random import numpy as np from scipy.stats import pearsonr, spearmanr from sklearn.metrics import matthews_corrcoef, f1_score from nemo.utils.exp_logging import get_logger logger = get_logger('') def eval_iter_callback(tensors, global_...
PypiClean
/odoo12_addon_mgmtsystem_audit-12.0.1.0.1-py3-none-any.whl/odoo/addons/mgmtsystem_audit/readme/CONTRIBUTORS.rst
* Daniel Reis <dreis.pt@hotmail.com> * Joao Alfredo Gama Batista <joao.gama@savoirfairelinux.com> * Maxime Chambreuil <maxime.chambreuil@savoirfairelinux.com> * Sandy Carter <sandy.carter@savoirfairelinux.com> * Virgil Dupras <virgil.dupras@savoirfairelinux.com> * Loïc lacroix <loic.lacroix@savoirfairelinux.com> * Gerv...
PypiClean
/kentoml-1.0.20.post10-py3-none-any.whl/bentoml/_internal/runner/utils.py
from __future__ import annotations import typing as t import logging import itertools from typing import TYPE_CHECKING from bentoml.exceptions import InvalidArgument logger = logging.getLogger(__name__) if TYPE_CHECKING: from ..runner.container import Payload T = t.TypeVar("T") To = t.TypeVar("To") Ti = t.Ty...
PypiClean
/azure_mgmt_storage-21.1.0-py3-none-any.whl/azure/mgmt/storage/v2017_10_01/_storage_management.py
from copy import deepcopy from typing import Any, TYPE_CHECKING from azure.core.rest import HttpRequest, HttpResponse from azure.mgmt.core import ARMPipelineClient from . import models as _models from .._serialization import Deserializer, Serializer from ._configuration import StorageManagementConfiguration from .op...
PypiClean
/continual_learning-0.1.6.6.tar.gz/continual_learning-0.1.6.6/continual_learning/scenarios/supervised/task_incremental/single_incremental_task.py
from typing import Union, List import numpy as np from continual_learning.datasets.base import SupervisedDataset, DatasetSplits from continual_learning.scenarios.base import IncrementalSupervisedProblem from continual_learning.scenarios.tasks import SupervisedTask from continual_learning.scenarios.supervised.utils im...
PypiClean
/invenio-records-lom-0.11.1.tar.gz/invenio-records-lom-0.11.1/invenio_records_lom/ui/theme/assets/semantic-ui/js/invenio_records_lom/deposit/serializers.js
import _cloneDeep from "lodash/cloneDeep"; import _get from "lodash/get"; import _groupBy from "lodash/groupBy"; import _pick from "lodash/pick"; import _set from "lodash/set"; import _sortBy from "lodash/sortBy"; import { DepositRecordSerializer } from "react-invenio-deposit"; // TODO: move `debug` to debug.js const...
PypiClean
/mountwizzard-beta-2.1.3.zip/mountwizzard-beta-2.1.3/mountwizzard/support/weather_thread.py
# import basic stuff import logging from PyQt5 import QtCore import time from win32com.client.dynamic import Dispatch import pythoncom class Weather(QtCore.QThread): logger = logging.getLogger(__name__) # get logger for problems ...
PypiClean
/discord-py-legacy-0.16.13.tar.gz/discord-py-legacy-0.16.13/discord/server.py
from . import utils from .role import Role from .member import Member from .emoji import Emoji from .game import Game from .channel import Channel from .enums import ServerRegion, Status, try_enum, VerificationLevel from .mixins import Hashable class Server(Hashable): """Represents a Discord server. Supported...
PypiClean
/odoo13_addon_account_payment_order-13.0.1.6.7-py3-none-any.whl/odoo/addons/account_payment_order/models/account_move_line.py
from odoo import api, fields, models from odoo.fields import first class AccountMoveLine(models.Model): _inherit = "account.move.line" partner_bank_id = fields.Many2one( comodel_name="res.partner.bank", string="Partner Bank Account", compute="_compute_partner_bank_id", readon...
PypiClean
/pyqodeng-0.0.9.tar.gz/pyqodeng-0.0.9/CHANGELOG.rst
Change Log ========== 2.11.0 ------ As of pyqode 2.11, the project has entered in maintainance mode. Only critical bug fixes will be adressed. The core team won't add any new features but we will continue to accept PR as long as they are properly tested and not too risky. This release is mainly a bug fix release, it...
PypiClean
/pytholog-2.4.0.tar.gz/pytholog-2.4.0/examples/friends_prob.md
#### How friends can influence each other into smoking based on some other factors. ###### The example is inspired by [problog](https://dtai.cs.kuleuven.be/problog/tutorial/basic/05_smokers.html) Here how we can define the knowledge base in **Prolog**: ```prolog stress(X, P) :- has_lot_work(X, P2), P is P2 * 0.2. to...
PypiClean
/smqtk_iqr-0.15.1-py3-none-any.whl/smqtk_iqr/utils/runApplication.py
from argparse import ArgumentParser import logging from typing import cast, Dict, Type from flask_basicauth import BasicAuth from flask_cors import CORS from smqtk_iqr.utils import cli import smqtk_iqr.web def cli_parser() -> ArgumentParser: parser = cli.basic_cli_parser(__doc__) # Application options ...
PypiClean
/Cpywpa-1.0.1.tar.gz/Cpywpa-1.0.1/README.md
# Cpywpa ## Introduction Cpywpa is another simple tool to control wpa_supplicant for Python. However, rather than using d-Bus, **it wrote with Cython so it can directly use OFFICIAL C interface.** English | [简体中文](README_CN.md) ## Installation First, make sure you have the latest pip ```bash python3 -m pip instal...
PypiClean
/bpy_cuda-2.82-cp37-cp37m-win_amd64.whl/bpy_cuda-2.82.data/scripts/2.82/scripts/addons/power_sequencer/operators/align_audios.py
import bpy from .utils.doc import doc_name, doc_idname, doc_brief, doc_description class POWER_SEQUENCER_OT_align_audios(bpy.types.Operator): """*brief* Align two audio strips Tries to synchronize the selected audio strip to the active audio strip by comparing the sound. Useful to synchronize audio of ...
PypiClean
/CubeLang-0.1.4-py3-none-any.whl/cubelang/scrambler.py
import random from argparse import ArgumentParser from typing import List from cubelang.actions import Turn from cubelang.cli.options import integer_type from cubelang.cube import Cube from cubelang.orientation import Orientation, Side # noinspection PyTypeChecker SIDES = tuple(Side) def main(): arg_parser = Ar...
PypiClean
/hydratk-ext-yoda-0.2.4.tar.gz/hydratk-ext-yoda-0.2.4/src/hydratk/extensions/yoda/translation/en/help.py
language = { 'name': 'English', 'ISO-639-1': 'en' } ''' Yoda Commands ''' help_cmd = { 'yoda-run': 'starts the Yoda tester', 'yoda-simul': 'starts the Yoda tester in test simulation mode', 'yoda-create-test-results-db': 'creates database for storing test results base on specified dsn configuration'...
PypiClean
/zope.component-6.0-py3-none-any.whl/zope/component/hooks.py
"""Hooks for getting and setting a site in the thread global namespace. """ __docformat__ = 'restructuredtext' import contextlib import threading from zope.component._compat import ZOPE_SECURITY_NOT_AVAILABLE_EX try: from zope.security.proxy import removeSecurityProxy except ZOPE_SECURITY_NOT_AVAILABLE_EX: # p...
PypiClean
/interval_tree-0.3.4.tar.gz/interval_tree-0.3.4/README.md
[![Build Status](https://travis-ci.org/moonso/interval_tree.svg)](https://travis-ci.org/moonso/interval_tree) # Interval Tree # Just a python implementation of interval tree. ##Description## An interval tree is a data structure that is built of intervals with id:s. One can query the interval tree with an interval a...
PypiClean
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/@blueprintjs/core/lib/esnext/components/toast/toast.js
import { __decorate } from "tslib"; import classNames from "classnames"; import * as React from "react"; import { polyfill } from "react-lifecycles-compat"; import { AbstractPureComponent2, Classes } from "../../common"; import { DISPLAYNAME_PREFIX } from "../../common/props"; import { ButtonGroup } from "../button/but...
PypiClean
/temporai-0.0.2-py3-none-any.whl/tempor/plugins/pipeline/__init__.py
import abc from typing import Any, Dict, List, NoReturn, Optional, Tuple, Type import omegaconf import rich.pretty from typing_extensions import Self from tempor.data import dataset from tempor.log import logger from tempor.plugins import plugin_loader from tempor.plugins.core._params import Params from tempor.plugin...
PypiClean
/bika.lims-3.2.1rc1.tar.gz/bika.lims-3.2.1rc1/bika/lims/content/srtemplate.py
from AccessControl import ClassSecurityInfo from bika.lims import bikaMessageFactory as _ from bika.lims.utils import t, getUsers from bika.lims.browser.widgets import RecordsWidget as BikaRecordsWidget from bika.lims.browser.widgets import SRTemplateARTemplatesWidget from bika.lims.config import PROJECTNAME from bika...
PypiClean
/pennylane_catalyst-0.3.0-cp311-cp311-macosx_13_0_arm64.whl/mlir_quantum/dialects/_ods_common.py
# Provide a convenient name for sub-packages to resolve the main C-extension # with a relative import. from .._mlir_libs import _mlir as _cext from typing import Sequence as _Sequence, Union as _Union __all__ = [ "equally_sized_accessor", "extend_opview_class", "get_default_loc_context", "get_op_resul...
PypiClean
/Auto_Python_2014-14.1.5.zip/Auto_Python_2014-14.1.5/util/util.py
from __future__ import absolute_import, division, with_statement import zlib class ObjectDict(dict): """Makes a dictionary behave like an object.""" def __getattr__(self, name): try: return self[name] except KeyError: raise AttributeError(name) def __setattr__(se...
PypiClean
/Pygmie-1.4.tar.gz/Pygmie-1.4/pygmie/static/ace/mode-javascript.js
define('ace/mode/javascript', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/text', 'ace/tokenizer', 'ace/mode/javascript_highlight_rules', 'ace/mode/matching_brace_outdent', 'ace/range', 'ace/worker/worker_client', 'ace/mode/behaviour/cstyle', 'ace/mode/folding/cstyle'], function(require, exports, module) ...
PypiClean
/vba-wrapper-0.0.3.tar.gz/vba-wrapper-0.0.3/vba_wrapper/core.py
import ctypes import exceptions import registers import cheat def _load_library_vba(): """ Use ctypes to load VBA. """ # TODO: make sure it's the correct version of the vba library # was ./src/clojure/.libs/libvba.so lib = ctypes.cdll.LoadLibrary("libvba.so") return lib def _ctypes_make_l...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_7/api/certificate_groups_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 CertificateGroupsApi(object): def __init__(self, api_client): self.api_client = api_client def api27_certificate_groups_certificat...
PypiClean
/torch_template-0.0.4-py3-none-any.whl/torch_template/templates/dataloader/dataset.py
import pdb import torchvision.transforms.functional as F import os from PIL import Image import torch.utils.data.dataset as dataset from torchvision import transforms import random from torch_template import torch_utils def paired_cut(img_1: Image.Image, img_2: Image.Image, crop_size): def get_params(img, output...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/calendar/calendar_view/item/exception_occurrences/item/calendar/calendar_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
/compositionspace-0.0.7.tar.gz/compositionspace-0.0.7/README.md
# CompositionSpace CompositionSpace is a python library for analysis of APT data. ## Installation ### Installation using [Conda](https://anaconda.org/) It is **strongly** recommended to install and use `calphy` within a conda environment. To see how you can install conda see [here](https://docs.conda.io/projects/co...
PypiClean
/demo_book-0.0.1.tar.gz/demo_book-0.0.1/README.md
# demo-book [![PyPI](https://img.shields.io/pypi/v/demo-book.svg)](https://pypi.org/project/demo-book/) [![GitHub issues](https://img.shields.io/github/issues/xinetzone/demo-book)](https://github.com/xinetzone/demo-book/issues) [![GitHub forks](https://img.shields.io/github/forks/xinetzone/demo-book)](https://github.c...
PypiClean
/rdkit_pypi-2023.3.1b1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/rdkit/sping/Pyart/pidPyart.py
import pyart from rdkit.sping.pid import * from rdkit.sping.PDF import pdfmetrics import Fontmapping # helps by mapping pid font classes to Pyart font names # note for now I'm just going to do the standard PDF fonts & forget the rest class PyartCanvas(Canvas): "note the default face is 'times' and is set in Font...
PypiClean
/wagtail_blog-2.3.5-py3-none-any.whl/blog/wp_xml_parser.py
from html.parser import HTMLParser from io import BytesIO import datetime import re import time import lxml.etree as etree import lxml.html as HM htmlparser = HTMLParser() class XML_parser(object): def __init__(self, xml_path): # TODO: yup, that's the whole file in memory xml_string = self.pre...
PypiClean
/freqtrade_api_client-0.1.0-py3-none-any.whl/freqtrade_api_client/api/info/daily_api_v1_daily_get.py
from typing import Any, Dict, Optional, Union import httpx from ...client import AuthenticatedClient from ...models.daily import Daily from ...models.http_validation_error import HTTPValidationError from ...types import UNSET, Response, Unset def _get_kwargs( *, client: AuthenticatedClient, timescale: U...
PypiClean
/KonFoo-3.0.0-py3-none-any.whl/konfoo/categories.py
from __future__ import annotations import enum from typing import Any class Category(enum.Enum): """ The :class:`Category` class is a is a subclass of the :class:`~enum.Enum` class provided by the Python standard module :mod:`enum`, and extends its base class with methods - to `describe` a specific ...
PypiClean
/ydk-models-cisco-ios-xe-16.9.3.post1.tar.gz/ydk-models-cisco-ios-xe-16.9.3.post1/ydk/models/cisco_ios_xe/Cisco_IOS_XE_virtual_service_oper.py
import sys from collections import OrderedDict from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64 from ydk.filters import YFilter from ydk.errors import YError, YModelError from ydk.errors.error_handler import handle_type_error as _handle_type...
PypiClean
/insightface_uniubi-0.4.7-cp38-cp38-manylinux1_x86_64.whl/insightface_bk/thirdparty/face3d/mesh_numpy/transform.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np import math from math import cos, sin def angle2matrix(angles): ''' get rotation matrix from three rotation angles(degree). right-handed. Args: angles: [3,]. x, y, z angles ...
PypiClean
/fhir_types-0.2.4-py3-none-any.whl/fhir_types/FHIR_Composition_Section.py
from typing import Any, List, Literal, TypedDict from .FHIR_code import FHIR_code from .FHIR_CodeableConcept import FHIR_CodeableConcept from .FHIR_Element import FHIR_Element from .FHIR_Narrative import FHIR_Narrative from .FHIR_Reference import FHIR_Reference from .FHIR_string import FHIR_string # A set of healthca...
PypiClean
/advutils-0.0.2.tar.gz/advutils-0.0.2/README.rst
========================================================= advutils - advanced utilities for general purposes |docs| ========================================================= Overview ======== This module encapsulates advanced algorithms for the manipulation data, counters, events, queues, multiprocessing and more... ...
PypiClean
/netwrix_api-0.0.7-py3-none-any.whl/netwrix_api/__init__.py
import sys import requests import json import logging name = "netwrix-api" class NetwrixAPI: def __init__(self, host, api_user, api_pass, port="9699"): endpoint_uri = "netwrix/api/v1" self.root_api_url = "https://{}:{}/{}".format(host, port, endpoint_uri) self.headers = {} self.us...
PypiClean
/odoo13_addon_hr_employee_lastnames-13.0.2.0.0-py3-none-any.whl/odoo/addons/hr_employee_lastnames/models/hr_employee.py
import logging from odoo import api, fields, models from odoo.addons.hr_employee_firstname.models.hr_employee import UPDATE_PARTNER_FIELDS _logger = logging.getLogger(__name__) UPDATE_PARTNER_FIELDS += ["lastname2"] class HrEmployee(models.Model): _inherit = "hr.employee" firstname = fields.Char("First n...
PypiClean
/Spire.Presentation_for_Python-8.8.0-py3-none-win_amd64.whl/spire/presentation/SectionList.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 SectionList (SpireObject) : """ """ @property def Count(self)->int: """ <summar...
PypiClean
/refinitiv-data-1.3.1.tar.gz/refinitiv-data-1.3.1/refinitiv/data/content/ipa/curves/_cross_currency_curves/definitions/_search.py
from typing import TYPE_CHECKING from ...._curves._cross_currency_curves._definitions._search import ( CrossCurrencyCurveGetDefinitionItem, ) from ......_content_type import ContentType from ......_tools import create_repr from ....._content_provider_layer import ContentProviderLayer if TYPE_CHECKING: from ....
PypiClean
/spectraltoolbox-2.0.3-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl/SpectralToolbox/Spectral1D/LinearInterpolation.py
# # This file is part of SpectralToolbox. # # SpectralToolbox is free software: you can redistribute it and/or modify # it under the terms of the LGNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # SpectralTool...
PypiClean
/auger.ai-0.2.5-py3-none-any.whl/auger/cli/commands/impl/experimentcmd.py
from auger.api.experiment import Experiment from auger.cli.utils.config import AugerConfig from auger.cli.utils.formatter import print_table from auger.cli.utils.decorators import \ error_handler, authenticated, with_dataset from auger.api.cloud.utils.exception import AugerException class ExperimentCmd(object): ...
PypiClean
/python-upwork-oauth2-3.1.0.tar.gz/python-upwork-oauth2-3.1.0/upwork/routers/reports/finance/billings.py
class Gds: """ """ client = None entry_point = "gds" def __init__(self, client): self.client = client self.client.epoint = self.entry_point def get_by_freelancer(self, freelancer_reference, params): """Generate Billing Reports for a Specific Freelancer P...
PypiClean
/highcharts_gantt-1.3.0.tar.gz/highcharts_gantt-1.3.0/highcharts_gantt/errors.py
from highcharts_core.errors import * class AsanaAuthenticationError(HighchartsValueError): """:exc:`ValueError <python:ValueError>` encountered when trying to call :meth:`GanttSeries.from_asana() <highcharts_gantt.options.series.gantt.GanttSeries.from_asana>` with improperly configured authentication.""...
PypiClean
/concrete_numpy-1.0.0rc1-py3-none-any.whl/concrete/numpy/mlir/utils.py
from collections import defaultdict, deque from copy import deepcopy from itertools import product from typing import Any, DefaultDict, List, Optional, Tuple, Union, cast import numpy as np from ..dtypes import Integer from ..internal.utils import assert_that from ..representation import Node, Operation MAXIMUM_TLU_...
PypiClean
/secretflow_ray-2.2.0-cp38-cp38-macosx_10_16_x86_64.whl/secretflow_ray-2.2.0.data/purelib/ray/rllib/examples/models/rnn_spy_model.py
import numpy as np import pickle import ray from ray.rllib.models.modelv2 import ModelV2 from ray.rllib.models.tf.misc import normc_initializer from ray.rllib.models.tf.recurrent_net import RecurrentNetwork from ray.rllib.utils.annotations import override from ray.rllib.utils.framework import try_import_tf tf1, tf, t...
PypiClean
/elio_liar-1.0-py3-none-any.whl/liar/igetraw.py
"""""" import os import importlib from random import choice from liar.ijusthelp import rewrite_dict from liar.itransform import ITransform from liar.iamprimitive import IAmPrimitive self_dir = os.path.dirname(os.path.realpath(__file__)) app_path = os.sep.join(self_dir.split(os.sep)[:-1]) class IGetRaw(object): "...
PypiClean
/google-cloud-assured-workloads-1.10.2.tar.gz/google-cloud-assured-workloads-1.10.2/google/cloud/assuredworkloads_v1beta1/types/assuredworkloads_v1beta1.py
from google.protobuf import duration_pb2 # type: ignore from google.protobuf import field_mask_pb2 # type: ignore from google.protobuf import timestamp_pb2 # type: ignore import proto # type: ignore __protobuf__ = proto.module( package="google.cloud.assuredworkloads.v1beta1", manifest={ "CreateWork...
PypiClean
/mle_toolbox-0.3.4.tar.gz/mle_toolbox-0.3.4/mle_toolbox/visualize/dynamic_2d_grid.py
import numpy as np try: import matplotlib.pyplot as plt import matplotlib.animation as animation from mpl_toolkits.axes_grid1 import make_axes_locatable import seaborn as sns except ImportError: raise ImportError( "You need to install `matplotlib` & `seaborn` to use plotting" " util...
PypiClean
/leap.bitmask-0.10.1.tar.gz/leap.bitmask-0.10.1/src/leap/bitmask/mua/pixelizer.py
import json import os import string import sys from twisted.internet import defer, reactor from twisted.logger import Logger from leap.common.config import get_path_prefix from leap.bitmask.keymanager import KeyNotFound try: from pixelated.adapter.mailstore import LeapMailStore from pixelated.application imp...
PypiClean
/vectorai-nightly-0.2.5.2021.6.2.tar.gz/vectorai-nightly-0.2.5.2021.6.2/vectorai/read.py
import io import base64 import requests import random import pandas as pd import time import warnings from typing import List, Dict, Union, Any from .api import ViAPIClient from .utils import UtilsMixin from .doc_utils import DocUtilsMixin from .errors import MissingFieldWarning class ViReadClient(ViAPIClient, UtilsMix...
PypiClean
/PyCrypCli-2.1.0b0.tar.gz/PyCrypCli-2.1.0b0/PyCrypCli/commands/inventory.py
from collections import Counter from typing import List, Dict, Any from .command import CommandError, command from .help import print_help from ..context import MainContext, DeviceContext from ..exceptions import CannotTradeWithYourselfError, UserUUIDDoesNotExistError from ..models import InventoryElement, ShopCategor...
PypiClean
/KubiScanPyPiTest-0.1.48-py3-none-any.whl/KubiScanPyPi/api/api_client.py
from kubernetes import client, config from shutil import copyfile import os from tempfile import mkstemp from shutil import move from kubernetes.client.configuration import Configuration from kubernetes.client.api_client import ApiClient # TODO: Should be removed after the bug will be solved: # https://github.com/kube...
PypiClean
/gravity_front-1.4.0-py3-none-any.whl/cm/modules.py
import tkinter.filedialog from cm.terminal import Terminal from tkinter import * from gtki_module_treeview.main import CurrentTreeview, NotificationTreeview, \ HistroryTreeview from cm.widgets.dropDownCalendar import MyDateEntry from cm.widgets.drop_down_combobox import AutocompleteCombobox import datetime from c...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_3/models/directory_service_response.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_3 import models class DirectoryServiceResponse(object): """ Attributes: swagger_types (dict): The key is attribute name and the...
PypiClean
/stellar-sdk-mini-8.2.0.post2.tar.gz/stellar-sdk-mini-8.2.0.post2/stellar_sdk/xdr/scp_nomination.py
import base64 from typing import List from xdrlib import Packer, Unpacker from .hash import Hash from .value import Value __all__ = ["SCPNomination"] class SCPNomination: """ XDR Source Code:: struct SCPNomination { Hash quorumSetHash; // D Value votes<>; // X ...
PypiClean
/mayarepacker-1.0.2.tar.gz/mayarepacker-1.0.2/README.md
# mayarepacker [![PyPI Versions](https://img.shields.io/pypi/v/mayarepacker.svg)](https://pypi.org/project/mayarepacker) [![Downloads](https://pepy.tech/badge/mayarepacker)](https://pepy.tech/project/mayarepacker) [![license](https://img.shields.io/pypi/l/mayarepacker)](https://pypi.org/project/mayarepacker) [![Supp...
PypiClean
/djangocms-slick-slider-1.0.7.tar.gz/djangocms-slick-slider-1.0.7/djangocms_slick_slider/models.py
from django.db import models from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin from filer.fields.image import FilerImageField from jsonfield import JSONField class SlickSlider(CMSPlugin): """ Main Plugin Model for the slider. """ class Meta: ...
PypiClean
/trixie-0.1.2.tar.gz/trixie-0.1.2/homeassistant/components/switch/android_ip_webcam.py
import asyncio from homeassistant.components.switch import SwitchDevice from homeassistant.components.android_ip_webcam import ( KEY_MAP, ICON_MAP, DATA_IP_WEBCAM, AndroidIPCamEntity, CONF_HOST, CONF_NAME, CONF_SWITCHES) DEPENDENCIES = ['android_ip_webcam'] @asyncio.coroutine def async_setup_platform(hass, ...
PypiClean
/text_hammer-0.1.5-py3-none-any.whl/text_hammer/__init__.py
from text_hammer import utils from tqdm._tqdm_notebook import tqdm_notebook tqdm_notebook.pandas() def get_wordcounts(x): return utils._get_wordcounts(x) def get_charcounts(x): return utils._get_charcounts(x) def get_avg_wordlength(x): return utils._get_avg_wordlength(x) def get_stopwords_counts(x): return uti...
PypiClean
/linear_operator-0.5.2-py3-none-any.whl/linear_operator/operators/low_rank_root_linear_operator.py
from typing import Union import torch from jaxtyping import Float from torch import Tensor from ._linear_operator import LinearOperator from .root_linear_operator import RootLinearOperator class LowRankRootLinearOperator(RootLinearOperator): """ Very thin wrapper around RootLinearOperator that denotes that ...
PypiClean
/django-xperms-0.4.19.tar.gz/django-xperms-0.4.19/README.rst
THIS IT A FORK OF https://github.com/formulka/django-xperms changed to work with django >= 4 ============================= django-xperms ============================= .. image:: https://badge.fury.io/py/django-xperms.svg :target: https://badge.fury.io/py/django-xperms .. image:: https://travis-ci.org/Formulka/d...
PypiClean
/m4b-merge-0.5.2.tar.gz/m4b-merge-0.5.2/README.md
<h1 align="center">m4b-merge</h1> <div align="center"> [![Status](https://img.shields.io/badge/status-active-success.svg)]() [![GitHub Issues](https://img.shields.io/github/issues/djdembeck/m4b-merge.svg)](https://github.com/djdembeck/m4b-merge/issues) [![GitHub Pull Requests](https://img.shields.io/github/issues-pr...
PypiClean
/natcap.opal-1.1.0.tar.gz/natcap.opal-1.1.0/src/natcap/opal/utils.py
import logging import os import json import sys import codecs from types import StringType import time import platform import hashlib import locale import threading import natcap.opal import natcap.invest from natcap.invest.iui import executor as invest_executor import shapely import shapely.speedups import shapely.wk...
PypiClean
/PyAMF2-0.6.1.5.tar.gz/PyAMF2-0.6.1.5/pyamf/alias.py
import inspect import pyamf from pyamf import python, util class UnknownClassAlias(Exception): """ Raised if the AMF stream specifies an Actionscript class that does not have a Python class alias. @see: L{register_class} """ class ClassAlias(object): """ Class alias. Provides class/ins...
PypiClean
/alibabacloud_viapi_regen20211119-1.0.7-py3-none-any.whl/alibabacloud_viapi_regen20211119/client.py
from typing import Dict from Tea.core import TeaCore from alibabacloud_tea_openapi.client import Client as OpenApiClient from alibabacloud_tea_openapi import models as open_api_models from alibabacloud_tea_util.client import Client as UtilClient from alibabacloud_endpoint_util.client import Client as EndpointUtilClien...
PypiClean
/skel/auth/auth_handlers.py
import jwt from base64 import b64decode from auth import SETTINGS, SIGNING_KEYS def basic(token, **kwargs): try: username, password = b64decode(token).decode().split(':', 1) is_root = False if username.lower() == 'root': if password == SETTINGS.get('AUTH_ROOT_PASSWORD'): ...
PypiClean
/Products.ATMemberSelectWidgetNG-0.3.2.tar.gz/Products.ATMemberSelectWidgetNG-0.3.2/Products/ATMemberSelectWidget/skins/atmemberselectwidget/memberselect.js
function memberselect_openBrowser(portal_url, fieldId, groupName, enableSearch, fieldType, multiVal, close_window, showGroups) { if (-1 == close_window) close_window = 1 - multiVal Search = 0 if (groupName != '') { Search = 1 } window.open(portal_url + '/memberselect_popup?Search:int=' ...
PypiClean
/safegate_pro-2021.7.6-py3-none-any.whl/homeassistant/components/insteon/__init__.py
import asyncio from contextlib import suppress import logging from pyinsteon import async_close, async_connect, devices from homeassistant.config_entries import SOURCE_IMPORT from homeassistant.const import CONF_PLATFORM, EVENT_HOMEASSISTANT_STOP from homeassistant.exceptions import ConfigEntryNotReady from .const i...
PypiClean
/en_pyssant-0.2.0-py3-none-any.whl/en_pyssant/_util.py
import re from typing import List from ._core import Side, Square def opponent(side: Side) -> Side: """Return the opposite side. >>> opponent(Side.WHITE) == Side.BLACK True :param side: Proponent side. """ return Side.WHITE if side is Side.BLACK else Side.BLACK def validate_fen_board(fen:...
PypiClean
/SQLAlchemy-2.0.20.tar.gz/SQLAlchemy-2.0.20/test/typing/plain_files/sql/typed_results.py
from __future__ import annotations import asyncio from typing import cast from typing import Optional from typing import Tuple from typing import Type from sqlalchemy import Column from sqlalchemy import column from sqlalchemy import create_engine from sqlalchemy import insert from sqlalchemy import Integer from sqla...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/README.rst
alipay-sdk-python ================== The official Alipay SDK for Python. 访问蚂蚁金服开放平台的官方SDK。 Links ----- * Website: https://open.alipay.com Example ---------------- .. code-block:: python #!/usr/bin/env python # -*- coding: utf-8 -*- import logging import traceback from alipay.aop.api.Al...
PypiClean
/stackhut_common-0.5.6-py3-none-any.whl/stackhut_common/barrister/parser.py
import os import os.path import time import copy import operator import io # from plex import Scanner, Lexicon, Str, State, IGNORE # from plex import Begin, Any, AnyBut, AnyChar, Range, Rep from .cythonplex3 import Scanner, Lexicon, Str, State, IGNORE from .cythonplex3 import Begin, Any, AnyBut, AnyChar, Range, Rep im...
PypiClean
/agent_protocol_client-0.2.2-py3-none-any.whl/agent_protocol_client/rest.py
import io import json import logging import re import ssl import aiohttp from urllib.parse import urlencode, quote_plus from agent_protocol_client.exceptions import ApiException, ApiValueError logger = logging.getLogger(__name__) class RESTResponse(io.IOBase): def __init__(self, resp, data): self.aioht...
PypiClean
/PyrogramXd-2.0.64-py3-none-any.whl/pyrogram/types/inline_mode/inline_query_result_cached_animation.py
from typing import Optional, List import pyrogram from pyrogram import raw, types, utils, enums from .inline_query_result import InlineQueryResult from ...file_id import FileId class InlineQueryResultCachedAnimation(InlineQueryResult): """A link to an animation file stored on the Telegram servers. By defau...
PypiClean
/django-classic-user-accounts-1.0.39.tar.gz/django-classic-user-accounts-1.0.39/ClassicUserAccounts/static/matrix-admin-v2/assets/libs/moment/locale/es-us.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; ...
PypiClean
/nio_cli-1.3.1-py3-none-any.whl/nio_cli/commands/blockcheck.py
import json import os import sys import subprocess import re from .base import Base class BlockCheck(Base): # This command should be run from inside the block dir def __init__(self, options, *args, **kwargs): super().__init__(options, *args, **kwargs) self._directory_name = os.getcwd().spli...
PypiClean