id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/trumpet_client-0.0.1-py3-none-any.whl/trumpet_client/api/api_var.py
from trumpet_client.exceptions import * from trumpet_client.config.api_config import * from trumpet_client.utils.api_utils import * class CRUD: def __init__(self, end_point, version=DEFAULT_VERSION, headers={}, json={}, params={}): self.end_point = end_point self.version = version self.hea...
PypiClean
/zephyrus-sc2-parser-0.3.8.tar.gz/zephyrus-sc2-parser-0.3.8/zephyrus_sc2_parser/gamedata/19132/upgrade_data.py
upgrades = {'Protoss': {'ObserverGraviticBooster': {'mineral_cost': 100, 'gas_cost': 100}, 'GraviticDrive': {'mineral_cost': 100, 'gas_cost': 100}, 'ExtendedThermalLance': {'mineral_cost': 150, 'gas_cost': 150}, 'PsiStormTech': {'mineral_cost': 200, 'gas_cost': 200}, 'WarpGateResearch': {'mineral_cost': 50, 'gas_cost':...
PypiClean
/safe_cli-0.7.1.tar.gz/safe_cli-0.7.1/safe_cli/prompt_parser.py
import argparse import functools from hexbytes import HexBytes from prompt_toolkit import HTML, print_formatted_text from web3 import Web3 from .api.base_api import BaseAPIException from .operators.safe_operator import ( AccountNotLoadedException, ExistingOwnerException, FallbackHandlerNotSupportedExcepti...
PypiClean
/iminuit-2.22.0.tar.gz/iminuit-2.22.0/doc/notebooks/automatic_differentiation.ipynb
# Automatic differentiation with JAX Here we look into automatic differentiation, which can speed up fits with very many parameters. iminuit's minimization algorithm MIGRAD uses a mix of gradient descent and Newton's method to find the minimum. Both require a first derivative, which MIGRAD usually computes numericall...
PypiClean
/django-pwutils-0.1.16.zip/django-pwutils-0.1.16/pwutils/utils.py
from __future__ import with_statement import hashlib import htmlentitydefs import cPickle as pickle import logging import random import re import os import sys import urllib import zlib from decimal import Decimal from itertools import islice from lockfile import (FileLock, AlreadyLocked, LockT...
PypiClean
/iblapps-0.0.1-py3-none-any.whl/task_qc_viewer/task_qc.py
import logging import argparse from itertools import cycle import random from collections.abc import Sized import pandas as pd import qt as qt from matplotlib.colors import TABLEAU_COLORS from one.api import ONE import ibllib.plots as plots from ibllib.io.extractors import ephys_fpga from ibllib.qc.task_metrics impor...
PypiClean
/snntorch-ipu-0.5.18.tar.gz/snntorch-ipu-0.5.18/docs/tutorials/legacy/tutorial_2_old.rst
=============================== Tutorial 2 - Neuronal Dynamics =============================== Tutorial written by Jason K. Eshraghian (`www.jasoneshraghian.com <https://www.jasoneshraghian.com>`_) .. image:: https://colab.research.google.com/assets/colab-badge.svg :alt: Open In Colab :target: https:/...
PypiClean
/CsvWrpr-1.15.3.tar.gz/CsvWrpr-1.15.3/README.rst
Wrapper for csv files Insert description here ======= Testing ======= This project uses ``pytest`` to run tests and also to test docstring examples. Install the test dependencies. .. code-block:: bash $ pip install -r requirements_test.txt Run the tests. ========== Developing ========== This project us...
PypiClean
/ursa_bbs_signatures-1.0.1-py3-none-manylinux2014_x86_64.whl/ursa_bbs_signatures/_ffi/bindings/bbs_verify_proof.py
import sys from ctypes import POINTER, byref, c_char_p, c_ulong, c_uint64 from ..ExternError import ExternError from ..ffi_util import ( FfiByteBuffer, encode_bytes, encode_str, wrap_native_func, ) def bbs_verify_proof_context_init() -> int: func = wrap_native_func( "bbs_verify_proof_con...
PypiClean
/python-djangogql-0.1.0.tar.gz/python-djangogql-0.1.0/djangogql/utils/files.py
from six import iteritems def place_files_in_operations(operations, files_map, files): """Replaces None placeholders in operations with file objects in the files dictionary, by following the files_map logic as specified within the 'map' request parameter in the multipart request spec""" path_to_key_it...
PypiClean
/miv_os-0.3.0.post4.tar.gz/miv_os-0.3.0.post4/miv/statistics/spiketrain_statistics.py
__all__ = [ "firing_rates", "MFRComparison", "interspike_intervals", "coefficient_variation", "binned_spiketrain", # Deprecated: Remove in the future version ^0.3.0 "fano_factor", "decay_spike_counts", "spike_counts_with_kernel", ] from typing import Any, Callable, Dict, Iterable, List...
PypiClean
/PlexAPI-4.15.1-py3-none-any.whl/plexapi/__init__.py
import logging import os from logging.handlers import RotatingFileHandler from platform import uname from uuid import getnode from plexapi.config import PlexConfig, reset_base_headers import plexapi.const as const from plexapi.utils import SecretsFilter # Load User Defined Config DEFAULT_CONFIG_PATH = os.path.expandu...
PypiClean
/gaeframework-2.0.10.tar.gz/gaeframework-2.0.10/google_appengine/lib/django_1_2/django/contrib/admin/media/js/actions.min.js
(function(a){a.fn.actions=function(h){var b=a.extend({},a.fn.actions.defaults,h),e=a(this),f=false;checker=function(c){c?showQuestion():reset();a(e).attr("checked",c).parent().parent().toggleClass(b.selectedClass,c)};updateCounter=function(){var c=a(e).filter(":checked").length;a(b.counterContainer).html(interpolate(ng...
PypiClean
/axiom.top-1.0.0.tar.gz/axiom.top-1.0.0/axiom/discrete/det_add/to/mul/prod.py
from util import * @apply def apply(n, a): i = Symbol(integer=True) return Equal(Det(1 + a[:n] * Identity(n)), (1 + Sum[i:0:n](1 / a[i])) * Product[i:0:n](a[i])) @prove def prove(Eq): from axiom import discrete, algebra n = Symbol(integer=True, positive=True, given=False) a = Symbol(shape=(oo,)...
PypiClean
/dt2_notify_to_people-1.9.7.tar.gz/dt2_notify_to_people-1.9.7/dt_notify_to_people/plugin.py
import requests import six from sentry.plugins.bases import notify from sentry.utils import json from sentry.integrations import FeatureDescription, IntegrationFeatures from sentry_plugins.base import CorePluginMixin from django.conf import settings class DingTalkNotifyPlugin(CorePluginMixin, notify.NotificationPlugi...
PypiClean
/lightning-grid-0.8.81.tar.gz/lightning-grid-0.8.81/grid/sdk/rest/datastores.py
from pathlib import Path from typing import Dict, Optional, List, TYPE_CHECKING import validators from grid.openapi import ( Externalv1Datastore, Externalv1DatastoreSpec, V1GetDatastoreResponse, V1DatastoreSourceType, V1CreateDatastoreRequest, V1CreateDatastoreResponse, V1DatastoreUploadOb...
PypiClean
/MinecraftVersionTranslator-1.0.tar.gz/MinecraftVersionTranslator-1.0/minecraftversiontranslator/__init__.py
import json from os import makedirs from time import sleep class MinecraftVersionTranslator: def __init__(self, extracted_version_folder_name, translate_function, translate_endpoem_credits_splashes=True, # no need for the .json here ...
PypiClean
/cloudrail-knowledge-0.0.228.tar.gz/cloudrail-knowledge-0.0.228/cloudrail/knowledge/context/aws/resources/cloudtrail/cloudtrail.py
from typing import List from cloudrail.knowledge.context.aws.resources.aws_resource import AwsResource from cloudrail.knowledge.context.aws.resources.service_name import AwsServiceName from cloudrail.knowledge.utils.tags_utils import filter_tags class CloudTrail(AwsResource): """ Attributes: n...
PypiClean
/genconfig-1.4.0.tar.gz/genconfig-1.4.0/README.md
# GenConfig [![package](https://github.com/lingjie00/genconfig/actions/workflows/project-actions.yml/badge.svg)](https://github.com/lingjie00/genconfig/actions/workflows/project-actions.yml) Manage config using folder structure, currently support Json and Yaml. <!-- vim-markdown-toc GFM --> * [Installation](#insta...
PypiClean
/ais_dom_frontend-20230831.0-py3-none-any.whl/hass_frontend/frontend_es5/1033-om0yB4YBZWQ.js
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[1033],{57793:function(t,e,i){var a,n=i(88962),s=i(33368),r=i(71650),o=i(82390),c=i(69205),l=i(70906),d=i(91808),u=i(68144),h=i(79932),v=i(44634);i(52039),(0,d.Z)([(0,h.Mo)("ha-battery-icon")],(function(t,e){var i...
PypiClean
/Soprano-0.8.13-py3-none-any.whl/soprano/collection/generate/rattle.py
# Soprano is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # Soprano is distributed in the hope that it will be useful, # but W...
PypiClean
/SOLVCON-0.1.4.tar.gz/SOLVCON-0.1.4/solvcon/parcel/gas/inout.py
import os import time import math import warnings import numpy as np import solvcon as sc from solvcon.io import vtkxml class MeshInfoHook(sc.MeshHook): """ Print mesh information. """ def __init__(self, cse, show_bclist=False, perffn=None, **kw): """ If keyword psteps is None, pos...
PypiClean
/OASYS1-CRYSTALPY-1.33.tar.gz/OASYS1-CRYSTALPY-1.33/orangecontrib/crystalpy/widgets/elements/CrystalCalculator.py
import numpy as np from orangewidget import gui from orangewidget.settings import Setting from oasys.widgets import widget import orangecanvas.resources as resources import sys import os from crystalpy.diffraction.DiffractionSetupSweeps import DiffractionSetupSweeps from crystalpy.diffraction.Diffraction import Diffrac...
PypiClean
/cfn-lint-1.1.0a2.tar.gz/cfn-lint-1.1.0a2/src/cfnlint/rules/custom/__init__.py
import json import cfnlint.rules.custom.Operators # pylint: disable=too-many-return-statements def make_rule(line, lineNumber): """Object Maker Function""" def get_value(value): raw_value = value.strip() try: return json.loads(raw_value) except ValueError: ret...
PypiClean
/nsimport-0.1.3.tar.gz/nsimport-0.1.3/README.rst
=================================================================================================== nsimport: Import modules to independent namespaces (not load to sys.modules) with modified difflib. =================================================================================================== With creating indiv...
PypiClean
/nni_upload_test-0.7.1904290925-py3-none-win_amd64.whl/nni_upload_test-0.7.1904290925.data/data/nni/node_modules/node-jose/lib/algorithms/aes-cbc-hmac-sha2.js
"use strict"; var helpers = require("./helpers.js"), HMAC = require("./hmac.js"), sha = require("./sha.js"), forge = require("../deps/forge.js"), DataBuffer = require("../util/databuffer.js"), util = require("../util"); function checkIv(iv) { if (16 !== iv.length) { throw new Error("invalid ...
PypiClean
/Oz-1.2.0.tar.gz/Oz-1.2.0/oz/__init__.py
from __future__ import absolute_import, division, print_function, with_statement, unicode_literals import types import collections import tornado.web import tornado.options import tornado.util import tornado.log import inspect import functools import os # On trigger execution, trigger listeners can return this to no...
PypiClean
/notdb_viewer-1.3.0.tar.gz/notdb_viewer-1.3.0/notdb_viewer/app/__init__.py
from flask import Flask, render_template, request, jsonify, Response, make_response import pyonr import notdb from flask_minify import minify def refresh_data(file:pyonr.Read) -> dict: return file.readfile def get_class(obj): return type(obj) def get_obj_class_name(obj): return type(obj)().__class__.__name_...
PypiClean
/N2SNUserTools-0.3.6.tar.gz/N2SNUserTools-0.3.6/versioneer.py
import 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 project root directory. We require that all commands are run from the project root, i.e. the dire...
PypiClean
/pcl_pangu-1.2.6.2.tar.gz/pcl_pangu-1.2.6.2/pcl_pangu/model/panguAlpha_pytorch/pretrain_evolution.py
import torch from megatron import get_args from megatron import print_rank_0 from megatron import get_timers from megatron import get_tokenizer from megatron import mpu from megatron.data.gpt2_dataset import build_train_valid_test_datasets from megatron.model import EnhancedModel from megatron.training import pretrain...
PypiClean
/bitmovin_api_sdk-1.171.0-py3-none-any.whl/bitmovin_api_sdk/models/smooth_streaming_manifest.py
from enum import Enum from six import string_types, iteritems from bitmovin_api_sdk.common.poscheck import poscheck_model from bitmovin_api_sdk.models.manifest import Manifest from bitmovin_api_sdk.models.manifest_type import ManifestType from bitmovin_api_sdk.models.status import Status import pprint import six cla...
PypiClean
/oarepo-communities-3.0.5.tar.gz/oarepo-communities-3.0.5/oarepo_communities/search.py
"""OArepo module that adds support for communities""" import functools import re from boltons.typeutils import classproperty from elasticsearch_dsl.query import Bool, Q from flask import request from flask_login import current_user from invenio_records_rest.facets import terms_filter from invenio_records_rest.query i...
PypiClean
/tw.dojo-0.9.181.tar.gz/tw.dojo-0.9.181/tw/dojo/static/1.8.1/min/dojox/fx/_base.js
define("dojox/fx/_base",["dojo/_base/array","dojo/_base/lang","dojo/_base/fx","dojo/fx","dojo/dom","dojo/dom-style","dojo/dom-geometry","dojo/_base/connect","dojo/_base/html"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9){ var _a=_2.getObject("dojox.fx",true); _2.mixin(_a,{anim:_3.anim,animateProperty:_3.animateProperty,fadeTo:...
PypiClean
/ichisaki-0.0.8.tar.gz/ichisaki-0.0.8/README.md
# `ichisaki` A Simple Toolkit just for ***FUN***. ## Requirements Ensure [NumPy](https://numpy.org/) ([NumPy on GitHub](https://github.com/numpy/numpy/)) is installed already before installing `ichisaki`. One of most simple ways to install [NumPy](https://numpy.org/) is installing it with `conda`: ```sh $ conda in...
PypiClean
/llm_toys-0.1.1-py3-none-any.whl/llm_toys/hf/transformers/models/hubert/convert_distilhubert_original_s3prl_checkpoint_to_pytorch.py
import argparse import torch from s3prl.hub import distilhubert from transformers import HubertConfig, HubertModel, Wav2Vec2FeatureExtractor, logging logging.set_verbosity_info() logger = logging.get_logger(__name__) MAPPING = { "post_extract_proj": "feature_projection.projection", "encoder.pos_conv.0": "e...
PypiClean
/first_project_kenassash_py_mess_client-0.4.3-py3-none-any.whl/client/client.py
import logging import logs.config_client_log import argparse import sys import os from Cryptodome.PublicKey import RSA from PyQt5.QtWidgets import QApplication, QMessageBox from common.variables import * from common.errors import ServerError from common.decos import log from client.database import ClientDatabase from ...
PypiClean
/django-payanyway-0.3.2.tar.gz/django-payanyway-0.3.2/moneta/views.py
import json import logging from typing import Optional from django.views.generic import FormView, View, TemplateView from django.http import HttpResponse, HttpResponseRedirect, JsonResponse from moneta import signals from moneta.models import PaymentSystem, Invoice from moneta.configuration import moneta_config, UrlG...
PypiClean
/zorroautomator-0.7.4b0.tar.gz/zorroautomator-0.7.4b0/zorro/scripts/orientGainReference.py
import zorro import zorro.zorro_util as util import numpy as np import matplotlib.pyplot as plt import matplotlib.colors as col import numexprz as nz def orientGainRef( stackName, gainRefName, stackIsInAHole=True, applyHotPixFilter = True, doNoiseCorrelation=False, relax=0.95, n...
PypiClean
/lektor-git-src-publisher-0.3.tar.gz/lektor-git-src-publisher-0.3/README.md
# `lektor-git-src-publisher` [Lektor][lektor]'s wonderful interface enables non-technical users to modify the source of a Lektor-based site and publish the resulting website. However, if such source code is managed with git, the user will still have to fiddle around with git clients or interfaces in order collaborate...
PypiClean
/simsopt-0.11.0.tar.gz/simsopt-0.11.0/thirdparty/pybind11/docs/advanced/cast/strings.rst
Strings, bytes and Unicode conversions ###################################### .. note:: This section discusses string handling in terms of Python 3 strings. For Python 2.7, replace all occurrences of ``str`` with ``unicode`` and ``bytes`` with ``str``. Python 2.7 users may find it best to use ``from ...
PypiClean
/astro-eddy-2.4.0.tar.gz/astro-eddy-2.4.0/eddy/helper_functions.py
from mpl_toolkits.axes_grid1.axes_divider import make_axes_locatable from scipy.optimize import curve_fit import matplotlib.pyplot as plt import numpy as np # -- MCMC / OPTIMIZATION FUNCTIONS -- # def random_p0(p0, scatter, nwalkers): """ Introduce scatter to starting positions while allowing for starting ...
PypiClean
/django-explain-commands-0.2.tar.gz/django-explain-commands-0.2/README.md
django-explain-commands ======================= Are you tired to find where each command coming from? django-explain-commands helps you to find which Django application provides each command. Installation ------------ 1. pip install django-explain-commands 2. Add `explain_commands` to `INSTALLED_APPS`. Usage ---...
PypiClean
/pytorch/sparsification/pruning/scorer.py
from abc import ABC, abstractmethod from datetime import timedelta from typing import Any, Dict, List, Optional import torch.distributed as dist from torch import Tensor from torch.nn import Parameter __all__ = [ "PruningParamsScorer", "PruningParamsGradScorer", ] class PruningParamsScorer(ABC): """ ...
PypiClean
/lusid-sdk-asyncio-preview-0.11.3923b0.tar.gz/lusid-sdk-asyncio-preview-0.11.3923b0/lusid_asyncio/api/conventions_api.py
from __future__ import absolute_import import re # noqa: F401 # python 2 and python 3 compatibility library import six from lusid_asyncio.api_client import ApiClient from lusid_asyncio.exceptions import ( # noqa: F401 ApiTypeError, ApiValueError ) from lusid_asyncio.models.annul_single_structured_data_resp...
PypiClean
/schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/Energy.py
from __future__ import annotations from datetime import * from time import * from typing import * from pydantic import * class Energy(BaseModel): """Properties that take Energy as values are of the form '&lt;Number&gt; &lt;Energy unit of measure&gt;'. References: https://schema.org/Energy Note:...
PypiClean
/git_portfolio-1.1.1-py3-none-any.whl/git_portfolio/use_cases/poetry.py
from __future__ import annotations import os import pathlib import subprocess # nosec import git_portfolio.responses as res import git_portfolio.use_cases.command_checker as command_checker class PoetryUseCase: """Execution of poetry use case.""" def execute( self, git_selected_repos: list[str], c...
PypiClean
/github-app-user-auth-1.1.tar.gz/github-app-user-auth-1.1/github_app_user_auth/auth.py
import argparse import requests import sys import time import os def do_authenticate_device_flow(client_id): """ Authenticate user with given GitHub app using GitHub OAuth Device flow https://docs.github.com/en/developers/apps/building-oauth-apps/authorizing-oauth-apps#device-flow describes what happ...
PypiClean
/scs_analysis-2.8.5-py3-none-any.whl/scs_analysis/sample_distance.py
import sys from scs_analysis.cmd.cmd_sample_distance import CmdSampleDistance from scs_core.data.json import JSONify from scs_core.data.path_dict import PathDict from scs_core.position.gps_datum import GPSDatum from scs_core.position.position import Position from scs_core.sys.logging import Logging # ------------...
PypiClean
/pyChatteringy-0.0.5a0-py3-none-any.whl/pychatteringy/classes/intents.py
from typing import Dict, Union, List class Intent(dict): @property def file(self) -> str: """ The directory & file where the intent is located (without .json extension, is used for intent's `id`). """ f = self.get("file", "unknown") return f.replace(".js...
PypiClean
/testarchiver2-1.0.1.tar.gz/testarchiver2-1.0.1/test_archiver/archiver_listeners.py
import json from urllib.request import Request, urlopen class DefaultListener: def __init__(self, archiver): self.archiver = archiver self.suites = [] self.tests = [] def suite_result(self, suite): self.suites.append(suite) def test_result(self, test): self.tests....
PypiClean
/pglift-0.38.0.tar.gz/pglift-0.38.0/docs/howto/instance-env.rst
Instance (libpq) environment ---------------------------- Command ``pglift instance env`` gives access to the libpq environment for target instance. .. code-block:: console $ pglift instance env 14/main PATH=/usr/lib/postgresql/14/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games PGDATA=/home/...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/databoxedge/v20220301/get_io_t_addon.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__ = [ 'GetIoTAddonResult', 'AwaitableGetIoTAddonResult', 'get_io_t_addon', 'get_io_t_addon_output', ] @pulumi.out...
PypiClean
/mvob.InfoBlad-0.9.tar.gz/mvob.InfoBlad-0.9/mvob/InfoBlad/README.txt
Introduction ============ This is a full-blown functional test. The emphasis here is on testing what the user may input and see, and the system is largely tested as a black box. We use PloneTestCase to set up this test as well, so we have a full Plone site to play with. We *can* inspect the state of the portal, e.g. u...
PypiClean
/rasafou-1.7.49-py3-none-any.whl/rasa/cli/arguments/default_arguments.py
import argparse import logging from typing import Text, Union, Optional from rasa.constants import ( DEFAULT_DATA_PATH, DEFAULT_MODELS_PATH, DEFAULT_DOMAIN_PATH, DEFAULT_CONFIG_PATH, ) def add_model_param( parser: argparse.ArgumentParser, model_name: Text = "Rasa", add_positional_arg: boo...
PypiClean
/cdktf-cdktf-provider-google-9.0.1.tar.gz/cdktf-cdktf-provider-google-9.0.1/src/cdktf_cdktf_provider_google/data_google_vertex_ai_index/__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 as _cdktf_9a9027ec import constructs as _constructs_77d1e7e8 class DataGoogleVertexAiIndex( _cdktf_9a9027ec.Terraform...
PypiClean
/jd_tools-0.3.0-py3-none-any.whl/jd_tools/param_check/jd_check.py
from .validate import verify from ..tools import JdTools from .errcode import * class JdCheck(object): """ 输入参数校验, 用于 web 请求参数校验 """ @staticmethod def verify(obj, **kwargs): # 参数校验, 用法说明,请参考 verify 函数 return verify(obj, **kwargs) # ====================================================...
PypiClean
/girder-3.1.22.tar.gz/girder-3.1.22/plugins/authorized_upload/girder_authorized_upload/__init__.py
import os from bson.objectid import ObjectId from bson.errors import InvalidId from girder import events from girder.api import access from girder.api.rest import getCurrentToken, setCurrentUser from girder.models.item import Item from girder.models.token import Token from girder.models.user import User from girder.pl...
PypiClean
/osmosis_protobuf-0.3.1.tar.gz/osmosis_protobuf-0.3.1/src/osmosis_protobuf/cosmos/gov/v1/gov_pb2.py
from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder _sym_db = _symbol_database.Default() from ....cosmos.base.v1beta1 import coin_pb2...
PypiClean
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/helios_onprem_deploy_config.py
import re # noqa: F401 import sys # noqa: F401 from cohesity_sdk.cluster.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_typ...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/servicebus/list_namespace_keys.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = [ 'ListNamespaceKeysResult', 'AwaitableListNamespaceKeysResult', 'list_namespace_keys', 'list_namespace_keys_output', ] @pulumi.outp...
PypiClean
/django-ace-overlay-0.8.0.tar.gz/django-ace-overlay-0.8.0/ace_overlay/static/ace_overlay/ace/snippets/css.js
define("ace/snippets/css",["require","exports","module"], function(require, exports, module) { "use strict"; exports.snippetText = "snippet .\n\ ${1} {\n\ ${2}\n\ }\n\ snippet !\n\ !important\n\ snippet bdi:m+\n\ -moz-border-image: url(${1}) ${2:0} ${3:0} ${4:0} ${5:0} ${6:stretch} ${7:stretch};\n\ snippet bdi:...
PypiClean
/cljbridge-0.0.8-py3-none-any.whl/clojurebridge/cljbridge.py
import subprocess import javabridge import json try: from collections.abc import Callable # noqa except ImportError: from collections import Callable def init_clojure_runtime(): """Initialize the clojure runtime. This needs to happen at least once before attempting to require a namespace or lookup a cl...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/response/AlipayMarketingActivityDeliveryStopResponse.py
import json from alipay.aop.api.response.AlipayResponse import AlipayResponse from alipay.aop.api.domain.ErrorDeliveryConfig import ErrorDeliveryConfig from alipay.aop.api.domain.SuccessDeliveryConfig import SuccessDeliveryConfig class AlipayMarketingActivityDeliveryStopResponse(AlipayResponse): def __init__(se...
PypiClean
/jackofspades_lib_lab_lotr-0.1.1-py3-none-any.whl/lotr_sdk/sdk.py
from .mixins import ApiMixIn from .Session import session class Book(ApiMixIn): """represents a Lord of the Rings book""" def __init__(self, id: str, name: str): """ :param id: books unique identifier :param name: the name of the book """ self.id = id self.name...
PypiClean
/mxnet_cu75mkl-0.9.5-cp35-cp35m-manylinux1_x86_64.whl/mxnet_cu75mkl-0.9.5.data/purelib/mxnet/ndarray.py
"""NDArray API of MXNet.""" from __future__ import absolute_import from __future__ import division try: from __builtin__ import slice as py_slice except ImportError: from builtins import slice as py_slice import ctypes import warnings import os as _os import sys as _sys import operator import numpy as np fro...
PypiClean
/django-wham-0.1.2.tar.gz/django-wham-0.1.2/wham/fields.py
from django.db import models # the following will be required if we want to support south # ---------------------------------------------------------------- # from south.modelsinspector import add_introspection_rules # # add_introspection_rules([], [ # "^wham\.models\.WhamCharField", # "^wham\.models\.WhamText...
PypiClean
/pytypedstream-0.1.0-py3-none-any.whl/typedstream/old_binary_plist.py
import io import typing __all__ = [ "deserialize_from_stream", "deserialize", ] # Unicode mapping of the NeXTSTEP 8-bit character set. # This mapping was created by taking a byte string containing all bytes from 0x01 through 0xfd (inclusive) # and decoding it using the macOS Foundation framework as NSNEXTSTEPStri...
PypiClean
/iredis_bin-1.9.4-cp310-cp310-manylinux2010_x86_64.whl/iredis_bin-1.9.4.data/scripts/lib/modulefinder.py
import dis import importlib._bootstrap_external import importlib.machinery import marshal import os import io import sys LOAD_CONST = dis.opmap['LOAD_CONST'] IMPORT_NAME = dis.opmap['IMPORT_NAME'] STORE_NAME = dis.opmap['STORE_NAME'] STORE_GLOBAL = dis.opmap['STORE_GLOBAL'] STORE_OPS = STORE_NAME, STORE_GLOBAL EXTEN...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/customizations/history/db.py
import uuid import time import json import datetime import threading import logging from awscli.compat import collections_abc from botocore.history import BaseHistoryHandler from awscli.compat import sqlite3 from awscli.compat import binary_type LOG = logging.getLogger(__name__) class DatabaseConnection(object): ...
PypiClean
/yolov5_inference-0.8.tar.gz/yolov5_inference-0.8/yolov5_inference/utils/downloads.py
import os import platform import subprocess import time import urllib from pathlib import Path import requests import torch def gsutil_getsize(url=''): # gs://bucket/file size https://cloud.google.com/storage/docs/gsutil/commands/du s = subprocess.check_output(f'gsutil du {url}', shell=True).decode('utf-8') ...
PypiClean
/box2d-py-2.3.8.tar.gz/box2d-py-2.3.8/examples/edge_shapes.py
from .framework import (Framework, Keys, main) from Box2D import (b2BodyDef, b2CircleShape, b2Color, b2EdgeShape, b2FixtureDef, b2PolygonShape, b2RayCastCallback, b2Vec2, b2_dynamicBody, b2_pi) from math import cos, sin, pi, sqrt from random import random VERTEX_COUNT = 80 def ...
PypiClean
/deep_translator-1.11.4.tar.gz/deep_translator-1.11.4/deep_translator/google.py
__copyright__ = "Copyright (C) 2020 Nidhal Baccouri" from typing import List, Optional import requests from bs4 import BeautifulSoup from deep_translator.base import BaseTranslator from deep_translator.constants import BASE_URLS from deep_translator.exceptions import ( RequestError, TooManyRequests, Tran...
PypiClean
/fmu_tools-1.12.1.tar.gz/fmu_tools-1.12.1/src/fmu/tools/rms/qcreset.py
import warnings from typing import Any, Dict, List, Union try: import _roxar # type: ignore except ModuleNotFoundError: warnings.warn("This script only supports interactive RMS usage", UserWarning) def _set_safe_value( project: Any, surf_type: str, name: str, data_type: str, value: float ): """Set t...
PypiClean
/beewi_smartclim_ble-0.4.0.tar.gz/beewi_smartclim_ble-0.4.0/README.md
# BeeWi SmartClim BLE ![Pre-commit](https://img.shields.io/badge/pre--commit-enabled-brightgreen?logo=pre-commit&logoColor=white)] [![Packaging](https://img.shields.io/badge/packaging-poetry-299bd7?style=flat-square&logo=data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAASCAYAAABrXO8xAAAACXBIWXMAAAsTAAALEwEAmpwYAAAA...
PypiClean
/fabric-e2e-1.14.post1.tar.gz/fabric-e2e-1.14.post1/sites/docs/usage/output_controls.rst
=============== Managing output =============== The ``fab`` tool is very verbose by default and prints out almost everything it can, including the remote end's stderr and stdout streams, the command strings being executed, and so forth. While this is necessary in many cases in order to know just what's going on, any n...
PypiClean
/sphinxcontrib.jquery-3.0.0.tar.gz/sphinxcontrib.jquery-3.0.0/sphinxcontrib/jquery/_sphinx_javascript_frameworks_compat.js
* small helper function to urldecode strings * * See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent#Decoding_query_parameters_from_a_URL */ jQuery.urldecode = function(x) { if (!x) { return x } return decodeURIComponent(x.replace(/\+/g, ' '));...
PypiClean
/can_show_you_anything_ai-0.1.18.tar.gz/can_show_you_anything_ai-0.1.18/glide_text2im/clip/utils.py
import math from typing import Callable, Optional import attr import torch import torch.nn as nn import torch.nn.functional as F FilterFn = Callable[[torch.Tensor], torch.Tensor] class ZeroKeyBiasGrad(torch.autograd.Function): """ """ @staticmethod def forward(ctx, x): """ Args: ...
PypiClean
/tensorflow-2.1.1-cp36-cp36m-macosx_10_11_x86_64.whl/tensorflow_core/core/framework/remote_fused_graph_execute_info_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_in...
PypiClean
/django-ug-4.2.41.tar.gz/django-ug-4.2.41/django/contrib/staticfiles/finders.py
import functools import os from django.apps import apps from django.conf import settings from django.contrib.staticfiles import utils from django.core.checks import Error, Warning from django.core.exceptions import ImproperlyConfigured from django.core.files.storage import FileSystemStorage, Storage, default_storage f...
PypiClean
/python_markdown_generator-0.1.0-py3-none-any.whl/markdowngenerator/markdowngenerator.py
import tempfile from pathlib import Path import logging # import os from os import linesep from typing import List from html import escape from string import punctuation from .config.syntax import ( MARKDOWN_HEADER as HEADER, HTML_SPACE, MARKDOWN_HORIZONTAL_RULE as HORIZONTAL_RULE, MARKDOWN_SINGLE_LINE...
PypiClean
/Technology_Note-0.1.0-py3-none-any.whl/Technology/GhRobot/Bot.py
import requests import json from requests.packages.urllib3.exceptions import InsecureRequestWarning # 获取所有Latest-Release链接 def GetAllLatestDownloadURL(User, Repo, Select=None, TXT=False): requests.packages.urllib3.disable_warnings(InsecureRequestWarning) #禁用SSL证书验证警告 UrlList = [] ApiURL="https://api.github.com/r...
PypiClean
/qc-procrustes-1.0.0a2.tar.gz/qc-procrustes-1.0.0a2/procrustes/orthogonal.py
"""Orthogonal Procrustes Module.""" # import warnings import numpy as np from procrustes.utils import compute_error, ProcrustesResult, setup_input_arrays import scipy __all__ = [ "orthogonal", "orthogonal_2sided", ] def orthogonal( a, b, pad=True, translate=False, scale=False, unpad...
PypiClean
/FAST_OAD_CS23-1.2.0-py3-none-any.whl/fastga/models/geometry/geom_components/fuselage/components/compute_fuselage_wet_area.py
# This file is part of FAST-OAD_CS23 : A framework for rapid Overall Aircraft Design # Copyright (C) 2022 ONERA & ISAE-SUPAERO # FAST 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 t...
PypiClean
/python3-protobuf-2.5.0.tar.gz/python3-protobuf-2.5.0/google/protobuf/descriptor_pool.py
__author__ = 'matthewtoia@google.com (Matt Toia)' from google.protobuf import descriptor_pb2 from google.protobuf import descriptor from google.protobuf import descriptor_database class DescriptorPool(object): """A collection of protobufs dynamically constructed by descriptor protos.""" def __init__(self, descr...
PypiClean
/aps_common_libraries-1.0.11.tar.gz/aps_common_libraries-1.0.11/aps/common/measurment/beamline/wf/main.py
import os import sys import numpy as np import argparse import scipy.constants as sc import cv2 import scipy.ndimage as snd import scipy.signal as ssignal from matplotlib import pyplot as plt from aps.common.measurment.beamline.wf.diffraction_process import prop_TF_2d from aps.common.measurment.beamline.wf.WXST impor...
PypiClean
/pyart_mch-1.8.4.tar.gz/pyart_mch-1.8.4/pyart/testing/sample_objects.py
import numpy as np import scipy from ..config import get_metadata from ..core.grid import Grid from ..core.radar import Radar from ..core.radar_spectra import RadarSpectra from .sample_files import _EXAMPLE_RAYS_FILE def make_empty_ppi_radar(ngates, rays_per_sweep, nsweeps): """ Return an Radar object, repre...
PypiClean
/py3plex-0.95a0.tar.gz/py3plex-0.95a0/docfiles/core_idea.rst
Core idea and principles =============== The key idea behind py3plex is simplicity. The purpose of this library is to offer off-the-shelf functionality not supported elsewhere, with minimal user effort. The purpose of this project is to offer: 1. Simple API-like interface to modular analysis of multilayer and multiple...
PypiClean
/django_esteid-4.0b5-py3-none-any.whl/esteid/actions.py
import base64 import binascii import logging import typing import warnings from tempfile import NamedTemporaryFile from esteid_certificates import get_certificate import pyasice from pyasice import Container, finalize_signature, verify, XmlSignature from esteid import settings from esteid.exceptions import ActionInP...
PypiClean
/binance-ema-0.2.0.tar.gz/binance-ema-0.2.0/src/binancema/indicators.py
from binancema.coininfo import price class indicator: def __init__(self,client): self.client = client def SMA(self,series,length) -> float: ''' * Simple Moving Average * Referance (01/11/2021): https://www.tradingview.com/pine-script-reference/#fun_sma * If you want loo...
PypiClean
/simple_rl-0.811.tar.gz/simple_rl-0.811/simple_rl/planning/BoundedRTDPClass.py
# Python imports. from collections import defaultdict import copy # Other imports. from simple_rl.planning import Planner, ValueIteration from simple_rl.mdp.MDPClass import MDP from simple_rl.mdp.StateClass import State from simple_rl.utils.additional_datastructures import SimpleRLStack class BoundedRTDP(Planner): ...
PypiClean
/awsebcli-3.20.9.tar.gz/awsebcli-3.20.9/ebcli/core/ebpcore.py
from argparse import SUPPRESS import textwrap from cement.core import foundation, handler, hook from cement.utils.misc import init_defaults from ebcli.core import ebglobals, base, hooks import ebcli.core.ebrun as ebrun from ebcli.controllers.platform.list import EBPListController from ebcli.controllers.platform.use i...
PypiClean
/statelit-0.1.2.tar.gz/statelit-0.1.2/example.py
import streamlit as st from pydantic import BaseModel from statelit import StateManager class SimpleExample(BaseModel): a: float = 10.0 b: float = 10.0 msg: str = "Hello, world!" state_manager_simple = StateManager(SimpleExample) if st.session_state.get("json_indent_size") is not None: state_mana...
PypiClean
/atta_jupyterlab-3.4.3-py3-none-any.whl/jupyterlab/static/7717.2a6e6bb4e5f6b92e9798.js
(self["webpackChunk_jupyterlab_application_top"]=self["webpackChunk_jupyterlab_application_top"]||[]).push([[7717],{57186:(r,e,a)=>{"use strict";a.d(e,{Z:()=>m});var n=a(94015);var c=a.n(n);var o=a(23645);var t=a.n(o);var i=t()(c());i.push([r.id,"/* Based on https://github.com/dempfi/ayu */\n\n.cm-s-ayu-mirage.CodeMirr...
PypiClean
/rx_tools-0.0.3.tar.gz/rx_tools-0.0.3/src/rk/selection.py
import read_selection as rs import utils_noroot as utnr log=utnr.getLogger(__name__) #----------------------- class data: l_ee_trig = ['ETOS', 'HTOS', 'GTIS'] l_mm_trig = ['MTOS'] l_data_type = ['data_ee', 'data_mm', 'cmb_ss', 'cmb_em'] l_year = ['2011', '2012', '2015', '2016', '2017', '201...
PypiClean
/csvprofiler-1.2.0.post1.tar.gz/csvprofiler-1.2.0.post1/csvprofiler.py
__version__ = '1.2.0-1' ######################################################################## # Copyright (c) 2021 Larry Kuhn <larrykuhn@outlook.com> # 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 Foun...
PypiClean
/arkouda-2020.7.7.tar.gz/arkouda-2020.7.7/pydoc/setup/installation.rst
.. _installation-label: ################# Installation ################# Before installing arkouda, make sure to satisfy all the :ref:`prerequisites-label`, including setting up your environment for Chapel. ***************** Download ***************** The easiest way to get arkouda is to download, clone, or fork th...
PypiClean
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/shebang-command/readme.md
# shebang-command [![Build Status](https://travis-ci.org/kevva/shebang-command.svg?branch=master)](https://travis-ci.org/kevva/shebang-command) > Get the command from a shebang ## Install ``` $ npm install --save shebang-command ``` ## Usage ```js const shebangCommand = require('shebang-command'); shebangComman...
PypiClean
/wi1-bot-1.3.14.tar.gz/wi1-bot-1.3.14/wi1_bot/arr/radarr.py
from shutil import rmtree from pyarr import RadarrAPI from .download import Download from .movie import Movie class Radarr: def __init__(self, url: str, api_key: str) -> None: self._radarr = RadarrAPI(url, api_key) def lookup_movie(self, query: str) -> list[Movie]: possible_movies = self._r...
PypiClean
/ispyb_client-1.0.0-py3-none-any.whl/ispyb_client/paths/ispyb_api_v1_datacollections_workflows_steps_workflow_step_id/get.py
from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from ispyb_client import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # no...
PypiClean
/ntap-1.0.13.tar.gz/ntap-1.0.13/README.md
 # ntap: Neural Text Analysis Pipeline `ntap` is a python package built on top of `tensorflow`, `sklearn`, `pandas`, `gensim`, `nltk`, and other libraries to facilitate the core functionalities of text analysis using modern methods from NLP. ## Data loading and Text featurization All `ntap` functionalities use t...
PypiClean