id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/v2/model/delete_server_group_response.py
import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class DeleteServerGroupResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key ...
PypiClean
/jedibundle-1.0.5.tar.gz/jedibundle-1.0.5/README.md
# JEDI Bundle Installation System ### Continuous integration: | Test | Status | | --------- | --------| | Clone a JEDI bundle test | ![Status](https://github.com/GEOS-ESM/jedi_bundle/actions/workflows/clone_a_jedi_bundle.yml/badge.svg) | | Python coding norms | ![Status](https://github.com/GEOS-ESM/jedi_bundle/...
PypiClean
/PyDSTool-0.91.0-py3-none-any.whl/PyDSTool-0.91.0.data/data/examples/CIN.py
from PyDSTool import * from PyDSTool.Toolbox.neuralcomp import * from time import perf_counter # -------------------------------------------------------------------------- class RGNcell(soma): pass class MNcell(soma): pass class CINcell(soma): pass celltypes=[RGNcell, MNcell, CINcell] # test of inheri...
PypiClean
/cfn_review_bot-1!20200417.104641-py3-none-any.whl/cfn_review_bot/cfn.py
import datetime import time from . import error from . import loader from .canonical import canonical_hash from .merge import deep_merge from .model import ( ChangeSet, ChangeSetType, TargetAnalysisResults) CFN_METADATA_PARAMETER = 'ReviewBotMetadata' class ValidationError(error.Error): pass class Timeo...
PypiClean
/azure-iot-edge-runtime-ctl-1.0.0rc22.tar.gz/azure-iot-edge-runtime-ctl-1.0.0rc22/edgectl/parser/edgeconfigparserfile.py
import json import logging as log import edgectl.errors from edgectl.config import EdgeConstants as EC from edgectl.config import EdgeConfigDirInputSource from edgectl.config import EdgeCertConfig from edgectl.config import EdgeDeploymentConfigDocker from edgectl.config import EdgeHostConfig from edgectl.host import Ed...
PypiClean
/tacker-9.0.0.0rc1.tar.gz/tacker-9.0.0.0rc1/doc/source/user/db_sync_error_handling.rst
======================================= Database synchronization error-handling ======================================= This document describes how to error-handling database synchronization errors. Database Synchronization Description ------------------------------------ If there are differences in the Pod informat...
PypiClean
/balsam_flow-0.7.0a10-py3-none-any.whl/balsam/site/launcher/node_manager.py
from logging import getLogger from typing import TYPE_CHECKING, Any, Dict, List from pydantic import BaseModel, validator from balsam._api.models import Job if TYPE_CHECKING: from balsam.platform.compute_node import ComputeNode logger = getLogger(__name__) class InsufficientResources(Exception): pass cl...
PypiClean
/opp-ui-0.1.0.tar.gz/opp-ui-0.1.0/opp_frontend/frontend_latest/11.chunk.js
(self["webpackJsonp"] = self["webpackJsonp"] || []).push([[11],{ /***/ "./node_modules/workerize-loader/dist/index.js!./src/resources/markdown_worker.ts": /*!*******************************************************************************!*\ !*** ./node_modules/workerize-loader/dist!./src/resources/markdown_worker.ts...
PypiClean
/tcheck-0.0.3-py3-none-any.whl/slither/detectors/shadowing/state.py
from slither.detectors.abstract_detector import AbstractDetector, DetectorClassification from slither.core.declarations import Contract from .common import is_upgradable_gap_variable def detect_shadowing(contract: Contract): ret = [] variables_fathers = [] for father in contract.inheritance: if an...
PypiClean
/kolibri_sentry_plugin-0.1.0.tar.gz/kolibri_sentry_plugin-0.1.0/CHANGELOG.rst
.. :changelog: Release Notes ============= All notable changes to this project will be documented in this file. This project adheres to `Semantic Versioning <http://semver.org/>`_. *Don’t let your friends dump git logs into CHANGELOGs™* `http://keepachangelog.com/ <http://keepachangelog.com/>`_ [0.0.1] - UNRELEASE...
PypiClean
/generation/transformation/UTCN/cn_nasal.py
r""" Change the front and back nasal sounds of Chinese characters ========================================================== """ __all__ = ['CnNasal'] from ...transformation import CnWordSubstitute from pypinyin import lazy_pinyin from Pinyin2Hanzi import DefaultHmmParams from Pinyin2Hanzi import viterbi hmmparams...
PypiClean
/smartpip-1.11.6.tar.gz/smartpip-1.11.6/airflow/contrib/sensors/jira_sensor.py
from jira.resources import Resource from airflow.contrib.operators.jira_operator import JIRAError from airflow.contrib.operators.jira_operator import JiraOperator from airflow.sensors.base_sensor_operator import BaseSensorOperator from airflow.utils.decorators import apply_defaults class JiraSensor(BaseSensorOperato...
PypiClean
/aspring-1.3.1.tar.gz/aspring-1.3.1/README.rst
.. image:: https://readthedocs.org/projects/aspring/badge/?version=latest :alt: ReadTheDocs :target: https://aspring.readthedocs.io/en/stable/ .. image:: https://img.shields.io/coveralls/github/PhyloSofS-Team/aspring/main.svg :alt: Coveralls :target: https://coveralls.io/r/PhyloSofS-Team/aspring .. imag...
PypiClean
/clip_by_openai-1.1-py3-none-any.whl/clip/clip.py
import hashlib import os import urllib import warnings from typing import Union, List import torch from PIL import Image from torchvision.transforms import Compose, Resize, CenterCrop, ToTensor, Normalize from tqdm import tqdm from .model import build_model from .simple_tokenizer import SimpleTokenizer as _Tokenizer ...
PypiClean
/boto3_type_annotations_with_docs-0.3.1.tar.gz/boto3_type_annotations_with_docs-0.3.1/boto3_type_annotations/resourcegroupstaggingapi/paginator.py
from typing import Dict from typing import List from botocore.paginate import Paginator class GetResources(Paginator): def paginate(self, TagFilters: List = None, TagsPerPage: int = None, ResourceTypeFilters: List = None, PaginationConfig: Dict = None) -> Dict: """ Creates an iterator that will pa...
PypiClean
/m9s_sale_payment_channel-6.0.2.tar.gz/m9s_sale_payment_channel-6.0.2/README.md
Master [![Pipeline status](https://gitlab.com/m9s/sale_payment_channel/badges/master/pipeline.svg)](https://gitlab.com/m9s/sale_payment_channel/commits/master) Develop [![Pipeline status](https://gitlab.com/m9s/sale_payment_channel/badges/develop/pipeline.svg)](https://gitlab.com/m9s/sale_payment_channel/commits/dev...
PypiClean
/wadl-planner-1.1.0.tar.gz/wadl-planner-1.1.0/wadl/solver/pathTreeMilp.py
from wadl.solver.pathTree import PathTree import cvxpy as cvx from itertools import compress import numpy as np import networkx as nx import time class PathTreeMilp(PathTree): """class to split the PathTree with a MILP""" def __init__(self, graph, **kwargs): super(PathTreeMilp, self).__init__(graph, ...
PypiClean
/pysaml2-7.4.2-py3-none-any.whl/saml2/time_util.py
import calendar from datetime import datetime from datetime import timedelta import re import sys import time TIME_FORMAT = "%Y-%m-%dT%H:%M:%SZ" TIME_FORMAT_WITH_FRAGMENT = re.compile(r"^(\d{4,4}-\d{2,2}-\d{2,2}T\d{2,2}:\d{2,2}:\d{2,2})(\.\d*)?Z?$") # -----------------------------------------------------------------...
PypiClean
/geodesicLM-1.0.3.tar.gz/geodesicLM-1.0.3/README.md
# geodesicLM The repo contains the geodesic Levenberg-Marquardt minimization algorithm developed by [Mark Transtrum](https://www.physics.byu.edu/faculty/transtrum/) and [James Sethna](http://sethna.lassp.cornell.edu) et al. The Fortran source code comes from the [geodesicLM](https://sourceforge.net/projects/geodesi...
PypiClean
/nm_transformers_nightly-1.6.0.20230829-py3-none-any.whl/transformers/pipelines/question_answering.py
import types import warnings from collections.abc import Iterable from typing import TYPE_CHECKING, Dict, List, Optional, Tuple, Union import numpy as np from ..data import SquadExample, SquadFeatures, squad_convert_examples_to_features from ..modelcard import ModelCard from ..tokenization_utils import PreTrainedToke...
PypiClean
/nvstatsrecorder-0.0.5.tar.gz/nvstatsrecorder-0.0.5/README.md
# NVStatsRecorder ![GitHub last commit](https://img.shields.io/github/last-commit/tlkh/NVStatsRecorder.svg) ![GitHub](https://img.shields.io/github/license/tlkh/NVStatsRecorder.svg) ![](https://img.shields.io/github/repo-size/tlkh/NVStatsRecorder.svg) Simple Python utilities to instrument NVIDIA GPUs, designed to wor...
PypiClean
/hvplot-0.8.5a1.tar.gz/hvplot-0.8.5a1/examples/user_guide/Widgets.ipynb
As we have seen in previous sections, hvPlot bakes in interactivity by automatically creating widgets when using ``groupby``. These widgets can be refined using [Panel](https://panel.pyviz.org). Panel allows you to customize the interactivity of your hvPlot output and provides more fine-grained control over the layout....
PypiClean
/django-gocs-0.0.5.tar.gz/django-gocs-0.0.5/django_gocs/__init__.py
import errno import mimetypes import os from django.conf import settings from django.core.files.storage import Storage from django.core.files.uploadedfile import TemporaryUploadedFile from django.core.files.uploadhandler import TemporaryFileUploadHandler from django.utils.crypto import get_random_string from django.ut...
PypiClean
/nni_upload_test-0.7.1904290925-py3-none-win_amd64.whl/nni_upload_test-0.7.1904290925.data/data/nni/node_modules/iconv-lite/Changelog.md
# 0.4.23 / 2018-05-07 * Fix deprecation warning in Node v10 due to the last usage of `new Buffer` (#185, by @felixbuenemann) * Switched from NodeBuffer to Buffer in typings (#155 by @felixfbecker, #186 by @larssn) # 0.4.22 / 2018-05-05 * Use older semver style for dependencies to be compatible with Node vers...
PypiClean
/rfc-xmldiff-0.6.0.tar.gz/rfc-xmldiff-0.6.0/README.rst
Create a difference on two RFC XML files ======================================== This program takes two XML files containing SVG or RFC documents and creates an HTML file which shows the differences between the two documents. The `RFC Editor`_ is in the process of changing the canonical input format of Internet-Dra...
PypiClean
/zsl_jwt-0.1.7.tar.gz/zsl_jwt-0.1.7/README.rst
======== Overview ======== .. start-badges .. list-table:: :stub-columns: 1 * - docs - |docs| * - tests - | |travis| | |coveralls| |codecov| * - package - | |version| |wheel| |supported-versions| |supported-implementations| | |commits-since| .. |docs| image:: https:...
PypiClean
/redis-completion-0.5.0.tar.gz/redis-completion-0.5.0/docs/getting_started.rst
.. _getting_started: Getting Started =============== redis-completion was designed to make type-ahead search easy to integrate with your existing app. Assuming you have followed the :ref:`installation notes <installing>`, lets get started building a simple stock symbol lookup. I've gone ahead and uploaded a list of...
PypiClean
/slepc-3.19.0.tar.gz/slepc-3.19.0/config/packages/lapack.py
from __future__ import print_function import log, package class Lapack(package.Package): def __init__(self,argdb,log): package.Package.__init__(self,argdb,log) self.packagename = 'lapack' def ShowHelp(self): print('BLAS/LAPACK:') print(' [Not optional, always checked]') def ShowInfo(self): ...
PypiClean
/cmsplugin_ss_grid-0.1.0a1.tar.gz/cmsplugin_ss_grid-0.1.0a1/cmsplugin_ss_grid/models.py
from __future__ import unicode_literals from django.db import models from django.conf import settings from django.utils.translation import ugettext_lazy as _ from filer.fields.image import FilerImageField from cms.models import CMSPlugin from cms.utils.compat.dj import python_2_unicode_compatible from .fields import...
PypiClean
/mera_tvm_host_only-1.3.1-cp36-cp36m-manylinux_2_27_x86_64.whl/tvm/topi/cuda/unique.py
"""Unique operator""" import tvm from tvm import te, tir from ...te import hybrid from .scan import cumsum from .sort import sort, argsort from ..utils import ceil_div def _get_max_threads(batch_size): target = tvm.target.Target.current() max_threads = tvm.target.Target.current(allow_none=False).max_num_threa...
PypiClean
/distri_probability-1.0.tar.gz/distri_probability-1.0/distri_probability/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 std...
PypiClean
/google-ads-21.3.0.tar.gz/google-ads-21.3.0/google/ads/googleads/v14/errors/types/offline_user_data_job_error.py
from __future__ import annotations import proto # type: ignore __protobuf__ = proto.module( package="google.ads.googleads.v14.errors", marshal="google.ads.googleads.v14", manifest={ "OfflineUserDataJobErrorEnum", }, ) class OfflineUserDataJobErrorEnum(proto.Message): r"""Container for...
PypiClean
/dummy_localstack-0.16.8-py3-none-any.whl/localstack/services/awslambda/provider.py
import base64 import logging import threading import time from localstack.aws.api import RequestContext from localstack.aws.api.awslambda import ( Architecture, ArchitecturesList, Blob, Boolean, CodeSigningConfigArn, DeadLetterConfig, Description, Environment, EnvironmentResponse, ...
PypiClean
/micropython_icm20948-0.2.3-py3-none-any.whl/micropython_icm20948/i2c_helpers.py
# pylint: disable=too-many-arguments import struct class CBits: """ Changes bits from a byte register """ def __init__( self, num_bits: int, register_address: int, start_bit: int, register_width=1, lsb_first=True, ) -> None: self.bit_mask = ...
PypiClean
/django_extjs4-1.2.0-extjs4.2.1.tar.gz/django_extjs4-1.2.0-extjs4.2.1/extjs4/static/extjs4/locale/ext-lang-sv_SE.js
* Swedish translation (utf8-encoding) * By Erik Andersson, Monator Technologies * 24 April 2007 * Changed by Cariad, 29 July 2007 */ Ext.onReady(function() { if (Ext.Date) { Ext.Date.monthNames = ["januari", "februari", "mars", "april", "maj", "juni", "juli", "augusti", "september", "oktober", "novemb...
PypiClean
/django-boardinghouse-0.3.5.tar.gz/django-boardinghouse-0.3.5/boardinghouse/models.py
import logging from django.conf import settings from django.core.cache import cache from django.core.validators import RegexValidator from django.db import models from django.forms import ValidationError from django.utils.translation import ugettext_lazy as _ from .base import SharedSchemaMixin from .schema import ac...
PypiClean
/pyconju-0.1.1.tar.gz/pyconju-0.1.1/README.md
# PyConju A python package for merging multiple files into a single file. File types supported include: .xlsx, .xls, and .csv. `PDF` support coming soon! ## Installation on Windows --- ### 1. Create a Project folder ``` mkdir project-folder cd project-folder ``` ### 2. Create a virtual environment ``` python -m ve...
PypiClean
/onnxruntime_training-1.15.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/onnxruntime/transformers/models/t5/t5_encoder.py
import logging import os import random import sys import tempfile from pathlib import Path from typing import List, Union import numpy import onnx import torch from transformers import MT5Config, T5Config from onnxruntime import InferenceSession sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..")) f...
PypiClean
/django-rest-framework-braces-0.3.4.tar.gz/django-rest-framework-braces-0.3.4/CONTRIBUTING.rst
============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com/dealertrack/django-re...
PypiClean
/bp-pysnmp-4.4.3.tar.gz/bp-pysnmp-4.4.3/pysnmp/smi/mibs/SNMPv2-MIB.py
OctetString, ObjectIdentifier, Integer = mibBuilder.importSymbols("ASN1", "OctetString", "ObjectIdentifier", "Integer") NamedValues, = mibBuilder.importSymbols("ASN1-ENUMERATION", "NamedValues") SingleValueConstraint, ValueSizeConstraint, ConstraintsIntersection, ValueRangeConstraint, ConstraintsUnion = mibBuilder.impo...
PypiClean
/PySSTV-0.5.4.tar.gz/PySSTV-0.5.4/pysstv/color.py
from __future__ import division from pysstv.sstv import byte_to_freq, FREQ_BLACK, FREQ_WHITE, FREQ_VIS_START from pysstv.grayscale import GrayscaleSSTV from itertools import chain from enum import Enum class Color(Enum): red = 0 green = 1 blue = 2 class ColorSSTV(GrayscaleSSTV): def on_init(self): ...
PypiClean
/quickauth-0.2.21.tar.gz/quickauth-0.2.21/README.rst
========= QuickAuth ========= A quick user-password authentication for Python. Installation ------------ .. code:: bash pip install quickauth Usage ----- .. code:: python from quickauth.core import QuickAuth authenticator = QuickAuth() print(authenticator.register()) print(authenticator.autho...
PypiClean
/freetype_py-2.4.0-py3-none-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl/freetype/raw.py
import os import platform from ctypes import * import ctypes.util import freetype from freetype.ft_types import * from freetype.ft_enums import * from freetype.ft_errors import * from freetype.ft_structs import * # First, look for a bundled FreeType shared object on the top-level of the # installed freetype-py module...
PypiClean
/py_fso-1.0.8-py3-none-any.whl/py_fso-1.0.8.dist-info/LICENSE.md
Distributed under MIT License Copyright (c) 2023> <Mikhail Trusov> 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
/gismath_open3d-0.0.2-cp311-cp311-win_amd64.whl/open3d/visualization/tensorboard_plugin/labellut.py
from colorsys import rgb_to_yiq class LabelLUT: """The class to manage look-up table for assigning colors to labels.""" class Label: def __init__(self, name, value, color): self.name = name self.value = value self.color = color Colors = [[0., 0., 0.], [0.9607...
PypiClean
/Foundations-2.1.0.tar.gz/Foundations-2.1.0/foundations/globals/constants.py
#********************************************************************************************************************** #*** Future imports. #********************************************************************************************************************** from __future__ import unicode_literals #*****************...
PypiClean
/bmk-cell-calling-0.2.2.tar.gz/bmk-cell-calling-0.2.2/bmkcc/cellranger/analysis/bhtsne.py
from __future__ import absolute_import, division import bmkcc.cellranger.analysis.io as analysis_io import bmkcc.cellranger.analysis.constants as analysis_constants import bmkcc.cellranger.io as cr_io import collections import numpy as np import os import tsne as tsne_bh TSNE = collections.namedtuple( "TSNE", ...
PypiClean
/sm_mir-0.1.tar.gz/sm_mir-0.1/sm_mir/Problem.py
import math import matplotlib.pyplot as plt import numpy as np import pandas as pd class Problem: def __init__(self, pType): """ Problem class used to establish an instance of a modelling problem Attributes : type = string that declares whether the problem is ...
PypiClean
/django_crm-0.9.0-py3-none-any.whl/events/swagger_params.py
from drf_yasg import openapi event_list_get_params = [ openapi.Parameter("name", openapi.IN_QUERY, type=openapi.TYPE_STRING), openapi.Parameter("created_by", openapi.IN_QUERY, type=openapi.TYPE_STRING), openapi.Parameter("assigned_users", openapi.IN_QUERY, type=openapi.TYPE_STRING), openapi.Parameter( ...
PypiClean
/Dero-0.15.0-py3-none-any.whl/dero/latex/table/models/texgen/lines.py
from copy import deepcopy from dero.latex.texgen import _toprule_str, _midrule_str, _bottomrule_str, _cmidrule_str from dero.latex.models.mixins import StringAdditionMixin from dero.mixins.repr import ReprMixin from dero.latex.table.models.mixins.addvalues.row import RowAddMixin class TableLine(StringAdditionMixin, ...
PypiClean
/raptus.article.collections-1.0a1.tar.gz/raptus.article.collections-1.0a1/README.txt
Introduction ============ Provides basic collection components. The following features for raptus.article are provided by this package: Components ---------- * Collections (Collections including their results contained in the article) * Collections left (Collections including their results contained in the a...
PypiClean
/wechat_sender-0.1.4.tar.gz/wechat_sender-0.1.4/wechat_sender/objects.py
from __future__ import unicode_literals import json class WxBot(object): """ 储存微信 bot 相关信息及 wechat_sender 各类 receiver 的类 """ def __new__(cls, *args, **kwargs): if not hasattr(cls, '_instance'): orig = super(WxBot, cls) cls._instance = orig.__new__(cls) return ...
PypiClean
/restpipe-0.2.20.tar.gz/restpipe-0.2.20/rpipe/views/server/event.py
import logging import functools import re import web import rpipe.config.web_server import rpipe.config.general import rpipe.server.exceptions import rpipe.event import rpipe.server.connection import rpipe.utility import rpipe.server.hostname_resolver _logger = logging.getLogger(__name__) _CT_JSON = 'application/js...
PypiClean
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/models/app_config_item_integer_bulk_update.py
from typing import Any, cast, Dict, List, Optional, Type, TypeVar import attr from ..extensions import NotPresentError from ..models.app_config_item_integer_update_type import AppConfigItemIntegerUpdateType from ..types import UNSET, Unset T = TypeVar("T", bound="AppConfigItemIntegerBulkUpdate") @attr.s(auto_attri...
PypiClean
/conc_test_report-0.0.1.tar.gz/conc_test_report-0.0.1/README.md
<!--- Heading ---> <div align="center"> <img src="assets/report.png" alt="logo" width="100" height="auto" /> <h1>Concrete Test Results Summary</h1> <p> Generate a concise and brief summary of all concrete test result PDFs, to aid in fast and efficient review </p> <h4> <a href="https://github.com/rpakish...
PypiClean
/django-pg-partitioning-0.11.zip/django-pg-partitioning-0.11/README.rst
django-pg-partitioning ====================== .. image:: https://img.shields.io/badge/License-MIT-orange.svg?style=flat-square :target: https://raw.githubusercontent.com/chaitin/django-pg-partitioning/master/LICENSE .. image:: https://img.shields.io/badge/Django-2.x-green.svg?style=flat-square&logo=django :target...
PypiClean
/trex-payment-0.0.5.tar.gz/trex-payment-0.0.5/trexpayment/static/payment/plugins/moment/locale/en-au.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
/gft_cpu-0.1.5-py3-none-any.whl/gft/gft_internals/gft_util.py
import gft import os, sys # args is a dict of dicts and/or classes # examples of classes: HuggingFace TrainingArguments # classes are returned by HfArgumentParser in HuggingFace (and argparse, more generally) # get_arg and set_arg search args # it is assumed that there is only one match def get_arg(args, arg, defaul...
PypiClean
/certora_cli_alpha_thomas_doc_type_checker-20230522.23.21.1150-py3-none-any.whl/certora_cli/EVMVerifier/certoraValidateFuncs.py
import sys import argparse import json import logging import os import re import shutil import subprocess from pathlib import Path from typing import Dict, Optional, Type from enum import auto, Enum from Shared import certoraUtils as Util scripts_dir_path = Path(__file__).parent.resolve() # containing directory sys....
PypiClean
/pyyasm-0.0.1.tar.gz/pyyasm-0.0.1/README.rst
pyyasm ====== .. image:: https://codecov.io/gh/srounet/PyYasm/branch/master/graph/badge.svg :target: https://codecov.io/gh/srounet/PyYasm .. image:: https://ci.appveyor.com/api/projects/status/y1yj33qd633a5tk5?svg=true :target: https://ci.appveyor.com/project/srounet/pyyasm Python x86/x64 wrapper for Yasm Usin...
PypiClean
/dm_control-1.0.14-py3-none-any.whl/dm_control/viewer/gui/base.py
"""Utilities and base classes used exclusively in the gui package.""" import abc import threading import time from dm_control.viewer import user_input _DOUBLE_CLICK_INTERVAL = 0.25 # seconds class InputEventsProcessor(metaclass=abc.ABCMeta): """Thread safe input events processor.""" def __init__(self): "...
PypiClean
/django_admin_info-0.0.5-py3-none-any.whl/admin_info/static/js/foldable_admin.js
$(document).ready(function() { // Method to rotate element $.fn.rotate = function(degrees) { $(this).css({ '-webkit-transform': 'rotate(' + degrees + 'deg)', '-moz-transform': 'rotate(' + degrees + 'deg)', '-ms-transform': 'rotate(' + degrees + 'deg)', 'transform': 'rotate(' + degrees +...
PypiClean
/redkyn-grader-0.1.1.tar.gz/redkyn-grader-0.1.1/grader/models/gradesheet.py
import git import glob import logging import os from .config import AssignmentConfig logger = logging.getLogger(__name__) class GradeSheetError(Exception): """A general-purpose exception thrown by the Assignment class. """ pass class GradeSheet(object): """A gradesheet for an assignment. Gradeshee...
PypiClean
/crown-0.3.1.tar.gz/crown-0.3.1/README.rst
crown ====== crown 是一个轻量级的针对时序数据(TSDB)TDengine的ORM库。 * 需要python 3.0版本以上 * 0.1.7版本在tdengine 2版本测试通过 * 0.3.0版本在tdengine 3版本测试通过 * 解决mac操作系统下没有原生python连接器的问题 * 极大的降低了python程序员使用TDengine技术门槛 * 可以方便的将数据转换到numpy与pandas * 目前使用TDengine的restful接口连接数据库,以后将提供原生接口引擎可供选择(目前原生接口无法在mac系统上使用) 安装 ---------------------- 大多数情况下,可以通过...
PypiClean
/pytest-info-collector-0.3.tar.gz/pytest-info-collector-0.3/versioneer.py
from __future__ import print_function try: import configparser except ImportError: import ConfigParser as configparser import errno import json import os import re import subprocess import sys class VersioneerConfig: """Container for Versioneer configuration parameters.""" def get_root(): """Get the...
PypiClean
/uos.cli-1.6.1.tar.gz/uos.cli-1.6.1/openstackclient/common/limits.py
import itertools import logging from cliff import lister from openstackclient.common import utils from openstackclient.identity import common as identity_common class ShowLimits(lister.Lister): """Show compute and volume limits""" log = logging.getLogger(__name__ + '.ShowLimits') def get_parser(self, ...
PypiClean
/SONYC_CAPSTONE_VIS-0.3.2.tar.gz/SONYC_CAPSTONE_VIS-0.3.2/SONYC_CAPSTONE_VIS/SONYC_CAPSTONE_VIS.py
import sys import os import time import random import pickle from datetime import datetime from functools import reduce from collections import defaultdict from math import ceil from functools import reduce import umap import h5py as h5 import matplotlib.pyplot as plt import matplotlib.ticker as ticker import pandas a...
PypiClean
/vioneta_agro_frontend-20230809.1-py3-none-any.whl/hass_frontend/frontend_latest/42228-mGkuTqSTidM.js
export const id=42228;export const ids=[42228];export const modules={86977:(e,t,i)=>{i.d(t,{Q:()=>o});const o=e=>!(!e.detail.selected||"property"!==e.detail.source)&&(e.currentTarget.selected=!1,!0)},34821:(e,t,i)=>{i.d(t,{i:()=>p});var o=i(17463),a=i(34541),n=i(47838),s=i(87762),l=i(91632),d=i(68144),r=i(79932),c=i(74...
PypiClean
/autodiffCST-0.0.4.tar.gz/autodiffCST-0.0.4/docs/documentation.md
# Project Documentation ## Section 1: Introduction This package autodiffCST implements automatic differentiation for computational use. It can be used to automatically differentiate functions via forward mode, with the option to perform second order differentiation for inputs with a single value and a list of values a...
PypiClean
/cctbx-2020.8-0_py36h1d45459-cp36-cp36m-manylinux2010_x86_64.whl/mmtbx/command_line/find_peaks_holes.py
# simple frontend to mmtbx.find_peaks, primarily intended for use in quickly # analyzing structures in the PDB (and storing results) from __future__ import absolute_import, division, print_function from mmtbx import utils from scitbx.array_family import flex from libtbx.str_utils import make_header, format_value from...
PypiClean
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/prime_remastered/objects/TargetingPointMP1.py
import dataclasses import struct import typing from retro_data_structures.game_check import Game from retro_data_structures.properties.base_property import BaseProperty import base64 @dataclasses.dataclass() class TargetingPointMP1(BaseProperty): unknown_properties: dict[int, bytes] = dataclasses.field(default_f...
PypiClean
/aio_openapi-3.2.1.tar.gz/aio_openapi-3.2.1/openapi/ws/channel.py
from __future__ import annotations import asyncio import logging import re from dataclasses import dataclass, field from typing import Any, Awaitable, Callable, Dict, Sequence, Set from .errors import ChannelCallbackError from .utils import redis_to_py_pattern logger = logging.getLogger("trading.websocket") @datac...
PypiClean
/py_knife-0.01.28.tar.gz/py_knife-0.01.28/README.rst
Swiss Army Knife **************** Swiss Army Knife of Python Introduction ============ So, I've been working as a Python Ninja for 3 years now. I've been exposed to multiple projects and I've been noticing myself using some of the code over and over on some of the projects. And I've been copy/pasting things until I ...
PypiClean
/quantile-python-1.1.tar.gz/quantile-python-1.1/quantile/__init__.py
import math _BUFFER_SIZE = 512 class Estimator(object): """Estimator estimates quantile values from sample streams in a time- and memory-efficient manner subject to allowed error constraints. """ def __init__(self, *invariants): """Initialize an Estimator. Estimator is not concurrenc...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/network/v20230401/express_route_circuit_peering.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__ = ['ExpressRouteCircuitPeeringInitArgs', 'ExpressRouteCircuitPeering'] @pulumi.inp...
PypiClean
/echarts-china-counties-pypkg-0.0.2.tar.gz/echarts-china-counties-pypkg-0.0.2/echarts_china_counties_pypkg/resources/echarts-china-counties-js/315ca6ecee8a8fcdd70bacd1cfdd1cca.js
(function (root, factory) {if (typeof define === 'function' && define.amd) {define(['exports', 'echarts'], factory);} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {factory(exports, require('echarts'));} else {factory({}, root.echarts);}}(this, function (exports, echarts) {var log = func...
PypiClean
/scrapyd_dash-0.1.2.tar.gz/scrapyd_dash-0.1.2/scrapyd_dash/static/vendors/bootstrap/site/docs/4.1/content/reboot.md
--- layout: docs title: Reboot description: Reboot, a collection of element-specific CSS changes in a single file, kickstart Bootstrap to provide an elegant, consistent, and simple baseline to build upon. group: content redirect_from: "/docs/4.1/content/" toc: true --- ## Approach Reboot builds upon Normalize, provid...
PypiClean
/discord.py_self-2.0.0-py3-none-any.whl/discord/reaction.py
from __future__ import annotations from typing import TYPE_CHECKING, AsyncIterator, Union, Optional from .user import User from .object import Object # fmt: off __all__ = ( 'Reaction', ) # fmt: on if TYPE_CHECKING: from .member import Member from .types.message import Reaction as ReactionPayload from...
PypiClean
/codeforlife-portal-6.35.1.tar.gz/codeforlife-portal-6.35.1/portal/static/portal/js/aimmoGame.js
function classesText(classes) { return classes .map( (name, index) => `${ index === 0 ? "" : index === classes.length - 1 ? " and " : ", " }<strong>${$("<div>").text(name).html()}</strong>` ) .join(""); } function clickDelet...
PypiClean
/hops-apache-beam-2.24.0.2.tar.gz/hops-apache-beam-2.24.0.2/apache_beam/examples/wordcount_minimal.py
# pytype: skip-file from __future__ import absolute_import import argparse import logging import re from past.builtins import unicode import apache_beam as beam from apache_beam.io import ReadFromText from apache_beam.io import WriteToText from apache_beam.options.pipeline_options import PipelineOptions from apache...
PypiClean
/mosaik-3.2.0.tar.gz/mosaik-3.2.0/docs/privacy.rst
================ Privacy Policies ================ We welcome you to our website. We would like to inform you about the management of your personal data in accordance with Art. 13 General Data Protection Regulation (GDPR). **Controller** The controller responsible for the described data collection and processing is ...
PypiClean
/graphql_core-3.3.0a2.tar.gz/graphql_core-3.3.0a2/src/graphql/type/directives.py
from __future__ import annotations # Python < 3.10 from typing import Any, Collection, Dict, Optional, Tuple, cast from ..language import DirectiveLocation, ast from ..pyutils import inspect, is_description from .assert_name import assert_name from .definition import GraphQLArgument, GraphQLInputType, GraphQLNonNull...
PypiClean
/safegate-pro-frontend-20210805.0.tar.gz/safegate-pro-frontend-20210805.0/hass_frontend/frontend_es5/chunk.4069b095ccca923c8a72.js
!function(){"use strict";var r,t={5425:function(r,t,e){var n=e(91107);e(58556);function o(r,t){return function(r){if(Array.isArray(r))return r}(r)||function(r,t){var e=r&&("undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"]);if(null==e)return;var n,o,i=[],u=!0,f=!1;try{for(e=e.call(r);!(u=(n=e.next()).done)...
PypiClean
/horizon-23.2.0.tar.gz/horizon-23.2.0/openstack_dashboard/dashboards/admin/images/views.py
import builtins import logging from oslo_utils import units from django.urls import reverse from django.urls import reverse_lazy from django.utils.translation import gettext_lazy as _ from horizon import exceptions from horizon import messages from horizon import tables from openstack_dashboard import api from ope...
PypiClean
/puan-client-db-0.0.4.tar.gz/puan-client-db-0.0.4/README.md
# Puan Client DB A small tool for calling a running `puan-server-db` http service. ## Install ```bash pip install puan-client-db ``` ## Quickstart ```python import puan.logic.plog as pg from puan_client_db import PropositionClient # create a client client = PropositionClient("http://localhost:8000") # we run a servi...
PypiClean
/py_pgp-0.0.1-py3-none-any.whl/pgp/cipher/base.py
__all__ = [ '_InternalObj', 'MODE_CBC', 'MODE_CFB', 'MODE_CTR', 'MODE_EAX', 'MODE_ECB', 'MODE_OFB', 'MODE_OPENPGP', 'MODE_PGP', ] try: unicode except NameError: unicode = str class _InternalObj(object): # Must be implemented by inheriting classes block_size = None key_size = None ...
PypiClean
/rodatabase.py-2.2.1.tar.gz/rodatabase.py-2.2.1/datastore/datastorereq.py
import asyncio from json import JSONDecodeError from typing import Dict from httpx import AsyncClient, Response from typing import Optional, List, Dict, Type from httpx import Response from .exceptions import get_exception_from_status_code _xcsrf_allowed_methods: Dict[str, bool] = { "post": True, "put": True,...
PypiClean
/dj-kaos-utils-0.1.0rc0.tar.gz/dj-kaos-utils-0.1.0rc0/docs/_build/html/_static/searchtools.js
"use strict"; /** * Simple result scoring code. */ if (typeof Scorer === "undefined") { var Scorer = { // Implement the following function to further tweak the score for each result // The function takes a result array [docname, title, anchor, descr, score, filename] // and returns the new score. /...
PypiClean
/pyprosail-1.1.1.tar.gz/pyprosail-1.1.1/README.md
# PyProSAIL PyProSAIL is a Python interface to the ProSAIL combined leaf and canopy optical model. PyProSAIL was developed by [Robin Wilson](www.rtwilson.com) and is now maintained by the [Earth Observation of Agroecosystems Team](https://www.eoa-team.net/) at the [Swiss Center For Excellence in Agricultural Research...
PypiClean
/star-slayer-0.2.2a0.tar.gz/star-slayer-0.2.2a0/starslayer/gamelib/gamelib.py
import tkinter as tk from tkinter.font import Font from tkinter import simpledialog, messagebox from queue import Queue, Empty from enum import Enum import threading import time import signal import os import sys class _TkWindow(tk.Tk): instance = None initialized = threading.Event() commands = Queue() ...
PypiClean
/minervaclient-1.3.0.tar.gz/minervaclient-1.3.0/README
`minervac` is a CLI client for Minerva's course registration facilities. The program can be run either **without** a Minerva login to: - search for course information, Or **with** a Minerva login to: - display your current course schedule, final exam schedule, or transcript, and register for courses by CRN or co...
PypiClean
/nevermined-metadata-driver-onprem-0.2.0.tar.gz/nevermined-metadata-driver-onprem-0.2.0/README.md
[![banner](https://raw.githubusercontent.com/nevermined-io/assets/main/images/logo/banner_logo.png)](https://nevermined.io) # Metadata On-Premise Driver > 💧 Metadata On-Premise Driver Implementation > [nevermined-io](https://nevermined.io) [![PyPI](https://img.shields.io/pypi/v/nevermined-metadata-driver-onprem.svg...
PypiClean
/picsellia_tf2-0.11.10.tar.gz/picsellia_tf2-0.11.10/picsellia_tf2/object_detection/models/ssd_efficientnet_bifpn_feature_extractor.py
"""SSD Keras-based EfficientNet + BiFPN (EfficientDet) Feature Extractor.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from absl import logging from six.moves import range from six.moves import zip import tensorflow.compat.v2 as tf from object_detect...
PypiClean
/azureml_training_tabular-1.53.0-py3-none-any.whl/azureml/training/tabular/timeseries/rolling_origin_validator.py
"""Classes and functions to validate the model using Rolling Origin Cross-Validation evaluation strategy.""" import numpy as np import pandas as pd from pandas.errors import OutOfBoundsDatetime from sklearn.model_selection import BaseCrossValidator from sklearn.utils import indexable from sklearn.utils.validation impor...
PypiClean
/challenge_4_simple_linear_regression-0.1.0.tar.gz/challenge_4_simple_linear_regression-0.1.0/CONTRIBUTING.rst
.. highlight:: shell ============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. You can contribute in many ways: Types of Contributions ---------------------- Report Bugs ~~~~~~~~~~~ Report bugs at https://github.com...
PypiClean
/HalRing_Lib-1.1.0-py3-none-any.whl/halring/json_lib/halring_json.py
import json class JsonUtil(object): def __init__(self): pass @classmethod def jsonStrToDict(self, jsonStr): """ json字符串转为python字典dict :param jsonStr: str :return: dict """ return json.loads(jsonStr) @classmethod def dictToJsonObject(self, d...
PypiClean
/alibabacloud_snsu20180710-1.0.0.tar.gz/alibabacloud_snsu20180710-1.0.0/README.md
English | [简体中文](README-CN.md) ![](https://aliyunsdk-pages.alicdn.com/icons/AlibabaCloud.svg) ## Alibaba Cloud Snsu SDK for Python ## Requirements - Python >= 3.6 ## Installation - **Install with pip** Python SDK uses a common package management tool named `pip`. If pip is not installed, see the [pip user guide](...
PypiClean
/pyxel_sim-1.10.2-py3-none-any.whl/pyxel/detectors/geometry.py
from collections.abc import Mapping from typing import Optional import numpy as np from pyxel.util.memory import get_size def get_vertical_pixel_center_pos( num_rows: int, num_cols: int, pixel_vertical_size: float, ) -> np.ndarray: """Generate vertical position list of all pixel centers in detector ...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/waf/update-web-acl.rst
**To update a web ACL** The following ``update-web-acl`` command deletes an ``ActivatedRule`` object in a WebACL. aws waf update-web-acl \ --web-acl-id a123fae4-b567-8e90-1234-5ab67ac8ca90 \ --change-token 12cs345-67cd-890b-1cd2-c3a4567d89f1 \ --updates Action="DELETE",ActivatedRule='{Prio...
PypiClean
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/identitystore/_inputs.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = [ 'GroupExternalIdArgs', 'UserAddressesArgs', 'UserEmailsArgs', 'UserExternalIdArgs', 'UserNameArgs', 'UserPhoneNumbersArgs',...
PypiClean