id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_17/models/app_get_response.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_17 import models class AppGetResponse(object): """ Attributes: swagger_types (dict): The key is attribute name and the value is...
PypiClean
/cctbx-2020.8-0_py36h1d45459-cp36-cp36m-manylinux2010_x86_64.whl/libtbx/queuing_system_utils/processing/submission.py
from __future__ import absolute_import, division, print_function, with_statement import subprocess from libtbx.queuing_system_utils.processing import errors class Submission(object): """ Handles job submissions """ def __init__(self, cmds, name, out, err, namelength = None): self.cmds = cmds self....
PypiClean
/opendr-toolkit-object-detection-2d-1.1.1.tar.gz/opendr-toolkit-object-detection-2d-1.1.1/src/opendr/perception/object_detection_2d/yolov3/README.md
OpenDR 2D Object Detection - YOLOv3 ====== This folder contains the OpenDR Learner class for YOLOv3 for 2D object detection. Sources ------ Large parts of the Learner code are taken from [GluonCV's YOLOv3 implementation](https://www.github.com/dmlc/gluon-cv/tree/master/scripts/detection/yolo) with modifications to m...
PypiClean
/zm_au-2.0.0.tar.gz/zm_au-2.0.0/zm_au/pip/base.py
import importlib import os import subprocess import sys from typing import Optional, Union import packaging.version import requests from python_install_directives import PipPackage from ..base import BaseAU class PipAU(BaseAU): def __init__(self, name: str, silent: bool = False) -> None: self._pip_packa...
PypiClean
/ibm_metrics_plugin-4.7.2.4-cp39-cp39-macosx_10_9_x86_64.whl/ibm_metrics_plugin/metrics/explainability/store/explanations_store.py
import base64 import json from abc import abstractmethod try: from pyspark.sql.types import StructField, StructType, StringType, BinaryType, TimestampType except ImportError as e: pass from ibm_metrics_plugin.common.utils.metrics_logger import MetricLogger from ibm_wos_utils.explainability.utils.date_time_uti...
PypiClean
/gpscraper-1.1.2.tar.gz/gpscraper-1.1.2/README.md
# gpscraper Welcome to this Google Play scraper. ## Installation ``` pip install gpscraper ``` ## What does it offer? - [Search results](#search-results) - [App details](#app-details) - [App reviews](#app-reviews) - [App review history](#app-review-history) - [App permissions](#app-permissions) ## Search results U...
PypiClean
/epi2melabs_splashpage-1.0.0-py3-none-any.whl/epi2melabs_splashpage/labextension/static/style_index_js.50b225b38ec59f08060e.js
(self["webpackChunk_epi2melabs_epi2melabs_splashpage"] = self["webpackChunk_epi2melabs_epi2melabs_splashpage"] || []).push([["style_index_js"],{ /***/ "./node_modules/css-loader/dist/cjs.js!./style/index.css": /*!***************************************************************!*\ !*** ./node_modules/css-loader/dist/c...
PypiClean
/python-xena-1.0.0.tar.gz/python-xena-1.0.0/xena/rest.py
import aiohttp import logging import time import requests from datetime import datetime from hashlib import sha256 from ecdsa import SigningKey import xena.proto.common_pb2 as common_pb2 import xena.proto.market_pb2 as market_pb2 import xena.proto.auth_pb2 as auth_pb2 import xena.proto.order_pb2 as order_pb2 import xe...
PypiClean
/connect-api-client-21.0.0.tar.gz/connect-api-client-21.0.0/cnct/client/models/base.py
from keyword import iskeyword from cnct.client.exceptions import NotFoundError from cnct.client.models.resourceset import ResourceSet from cnct.client.utils import resolve_attribute from cnct.rql import R class NS: """ A namespace is a group of related collections. """ def __init__(self, client, path...
PypiClean
/quintagroup.transmogrifier-0.5.zip/quintagroup.transmogrifier-0.5/quintagroup/transmogrifier/binary.py
import traceback from xml.dom import minidom from zope.interface import classProvides, implements from ZODB.POSException import ConflictError from Products.Archetypes.interfaces import IBaseObject from collective.transmogrifier.interfaces import ISection, ISectionBlueprint from collective.transmogrifier.utils impor...
PypiClean
/fio_sale_confirmation_email-4.0.0.2.tar.gz/fio_sale_confirmation_email-4.0.0.2/README.rst
trytond-sale-confirmation-email =============================== .. image:: https://travis-ci.org/fulfilio/trytond-sale-confirmation-email.svg?branch=develop :target: https://travis-ci.org/fulfilio/trytond-sale-confirmation-email/ :alt: Build Status .. image:: https://pypip.in/download/fio_sale_confirmation_ema...
PypiClean
/PyWinCtl-0.0.50-py3-none-any.whl/ewmhlib/Props.py
from enum import IntEnum import Xlib.X class Root: SUPPORTED = "_NET_SUPPORTED" CLIENT_LIST = "_NET_CLIENT_LIST" CLIENT_LIST_STACKING = "_NET_CLIENT_LIST_STACKING" NUMBER_OF_DESKTOPS = "_NET_NUMBER_OF_DESKTOPS" DESKTOP_GEOMETRY = "_NET_DESKTOP_GEOMETRY" DESKTOP_VIEWPORT = "_NET_DESKTOP_VIEWPOR...
PypiClean
/OctoBot-Evaluators-1.9.1.tar.gz/OctoBot-Evaluators-1.9.1/octobot_evaluators/evaluators/__init__.py
import octobot_evaluators.enums from octobot_evaluators.evaluators import abstract_evaluator from octobot_evaluators.evaluators.abstract_evaluator import ( AbstractEvaluator, ) from octobot_evaluators.evaluators import evaluator_factory from octobot_evaluators.evaluators import realtime_evaluator from octobot_eval...
PypiClean
/azure_mgmt_apimanagement-4.0.0-py3-none-any.whl/azure/mgmt/apimanagement/operations/_api_diagnostic_operations.py
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, overload import urllib.parse from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, map_error, ) from azure.core.pagin...
PypiClean
/spiker-1.0.5.tar.gz/spiker-1.0.5/docs/build/html/_static/js/html5shiv-printshiv.min.js
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=y.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=y.elements;"string"!=typeof c&&...
PypiClean
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/ember-cli-cookie/vendor-addon/jquery/src/event/trigger.js
define( [ "../core", "../var/document", "../data/var/dataPriv", "../data/var/acceptData", "../var/hasOwn", "../var/isFunction", "../var/isWindow", "../event" ], function( jQuery, document, dataPriv, acceptData, hasOwn, isFunction, isWindow ) { "use strict"; var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,...
PypiClean
/stoq-4.7.0.tar.gz/stoq-4.7.0/stoqlib/domain/payment/dailymovement.py
## ## Copyright (C) 2014 Async Open Source <http://www.async.com.br> ## All rights reserved ## ## This program is free software; you can redistribute it and/or modify ## it under the terms of the GNU General Public License as published by ## the Free Software Foundation; either version 2 of the License, or ## (at your...
PypiClean
/pycax-client-1.0.3.tar.gz/pycax-client-1.0.3/pycax/hli/hli.py
import pandas as pd from pycax.caxutils import get_data from pycax import tables # Set up the variables HLI_SHORT = {"NOSA", "SAR", "PNI", "JuvOut", "PreSmolt", "RperS"} HLI_TABLENAMES = { 'base': { 'NOSA': 'NOSA', 'SAR': 'SAR', 'PNI': 'PNI', 'JuvOut': 'JuvenileOutmigrants', 'PreSmolt': 'Pr...
PypiClean
/pacer_builder-0.3.1.tar.gz/pacer_builder-0.3.1/pacer_builder/middleware/connecter.py
import re import json import time import aiohttp import asyncio import logging import pymysql from middleware.pymysqlpool.pymysqlpool import ConnectionPool from web_tools.spider_log import SpiderLog from web_tools.tools import Tools_user from setting import Mysql, REDIS_HOST_LISTS import redis ip_lists = [] update = ...
PypiClean
/FinPy-0.5.tar.gz/FinPy-0.5/finpy/data/DataPull.py
import urllib.request, urllib.error, urllib.parse import datetime import os import argparse from finpy.data.fetch import Fetcher import re def get_data(data_path, ls_symbols, src="Yahoo"): # Create path if it doesn't exist if not (os.access(data_path, os.F_OK)): os.makedirs(data_path) # utils.cle...
PypiClean
/django-ra-erp-1.3.1.tar.gz/django-ra-erp-1.3.1/ra/static/adminlte/plugins/inputmask/inputmask/dependencyLibs/inputmask.dependencyLib.js
(function(factory) { if (typeof define === "function" && define.amd) { define([ "../global/window" ], factory); } else if (typeof exports === "object") { module.exports = factory(require("../global/window")); } else { window.dependencyLib = factory(window); } })(function(window) ...
PypiClean
/meld-sandbox-2.7.8.tar.gz/meld-sandbox-2.7.8/src/fides/api/ops/service/connectors/fides_connector.py
from typing import Any, Dict, List, Optional, Set from loguru import logger as log from fides.api.ctl.utils.errors import FidesError from fides.api.ops.graph.traversal import TraversalNode from fides.api.ops.models.connectionconfig import ( ConnectionConfig, ConnectionTestStatus, ConnectionType, ) from fi...
PypiClean
/streamlit-charticulator-0.0.7.tar.gz/streamlit-charticulator-0.0.7/src/charticulator/frontend/charticulator/dist/scripts/core/prototypes/plot_segments/axis.js
"use strict"; /* eslint-disable max-lines-per-function */ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. var __assign = (this && this.__assign) || function () { __assign = Object.assign || function(t) { for (var s, i = 1, n = arguments.length; i < n; i++) { ...
PypiClean
/certora_cli_alpha_shays_CERT_2092-20230524.19.9.555265-py3-none-any.whl/certora_cli/Shared/certoraLogging.py
import logging import sys from typing import Dict, Any, Set, Optional, Iterable, List from Shared.certoraUtils import write_json_file, red_text, orange_text, get_debug_log_file from Shared.certoraUtils import get_resource_errors_file class ColoredString(logging.Formatter): def __init__(self, msg_fmt: str = "%(nam...
PypiClean
/django-static-angular-v1.3.15.tar.gz/django-static-angular-v1.3.15/django_static_angular/static/static_angular/js/i18n/angular-locale_ee-gh.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/lbrlabs_pulumi_dynatrace-0.1.1a1689433879.tar.gz/lbrlabs_pulumi_dynatrace-0.1.1a1689433879/lbrlabs_pulumi_dynatrace/request_naming.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * __all__ = ['RequestNamingArgs', 'RequestNaming'] @pulumi.input_type class RequestNamingArgs: def __init__(__se...
PypiClean
/imio.pm.wsclient-2.0.0b1.tar.gz/imio.pm.wsclient-2.0.0b1/src/imio/pm/wsclient/browser/views.py
from imio.pm.wsclient import WS4PMClientMessageFactory as _ from imio.pm.wsclient.config import ANNEXID_MANDATORY_ERROR from imio.pm.wsclient.config import FILENAME_MANDATORY_ERROR from imio.pm.wsclient.config import MISSING_FILE_ERROR from imio.pm.wsclient.config import UNABLE_TO_CONNECT_ERROR from imio.pm.wsclient.c...
PypiClean
/batch_tar-0.1.2.tar.gz/batch_tar-0.1.2/batch_tar/batch_tar.py
import sys import os import argparse import subprocess import re def get_para(): version = '0.1' desc=''' To tar/compress files/directories in batch mode. By Guanliang Meng, see https://github.com/linzhi2013/batch_tar. version: {version} '''.format(version=version) parser = argparse.ArgumentParse...
PypiClean
/chekov-2.3.273.tar.gz/chekov-2.3.273/checkov/arm/parser/parser.py
from __future__ import annotations import logging from pathlib import Path from typing import Any from charset_normalizer import from_path from yaml.scanner import ScannerError from yaml import YAMLError from checkov.common.parsers.json import parse as json_parse from checkov.common.parsers.yaml import loader LOGG...
PypiClean
/tabela-sac-2.0.0.tar.gz/tabela-sac-2.0.0/tabela_sac/core.py
# %% auto 0 __all__ = ['SACCalculator'] # %% ../nbs/00_core.ipynb 3 import numpy as np import pandas as pd class SACCalculator: "A simple calculator class" def __init__(self, valor_financiado: float, # Valor financiado prazo: int, # Prazo em meses ...
PypiClean
/acapy_patched-0.5.6-py3-none-any.whl/aries_cloudagent/cache/base.py
import asyncio from abc import ABC, abstractmethod from typing import Any, Sequence, Text, Union from ..core.error import BaseError class CacheError(BaseError): """Base class for cache-related errors.""" class BaseCache(ABC): """Abstract cache interface.""" def __init__(self): """Initialize t...
PypiClean
/isi-sdk-9-1-0-0.2.12.tar.gz/isi-sdk-9-1-0-0.2.12/isi_sdk_9_1_0/models/summary_protocol_stats_protocol_stats.py
import pprint import re # noqa: F401 import six from isi_sdk_9_1_0.models.summary_protocol_stats_protocol_stats_cpu import SummaryProtocolStatsProtocolStatsCpu # noqa: F401,E501 from isi_sdk_9_1_0.models.summary_protocol_stats_protocol_stats_disk import SummaryProtocolStatsProtocolStatsDisk # noqa: F401,E501 from ...
PypiClean
/streamlit-webscrap-tool-0.0.3.tar.gz/streamlit-webscrap-tool-0.0.3/streamlit_webscrap_tool/frontend/build/static/js/373.15f53511.chunk.js
(this.webpackJsonpstreamlit_wenscrap_tool=this.webpackJsonpstreamlit_wenscrap_tool||[]).push([[373],{445:function(e,t){Prism.languages.scheme={comment:/;.*|#;\s*\((?:[^()]|\([^()]*\))*\)|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[...
PypiClean
/vara_feature-11.1.2.tar.gz/vara_feature-11.1.2/external/pybind11/docs/advanced/pycpp/object.rst
Python types ############ .. _wrappers: Available wrappers ================== All major Python types are available as thin C++ wrapper classes. These can also be used as function parameters -- see :ref:`python_objects_as_args`. Available types include :class:`handle`, :class:`object`, :class:`bool_`, :class:`int_`,...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/uhd_restpy/testplatform/sessions/ixnetwork/vport/capture/trigger/trigger.py
import sys from uhd_restpy.base import Base from uhd_restpy.files import Files if sys.version_info >= (3, 5): from typing import List, Any, Union class Trigger(Base): """This object specifies the field properties. The Trigger class encapsulates a required trigger resource which will be retrieved from the ...
PypiClean
/django-authentication-0.1.5.tar.gz/django-authentication-0.1.5/authentication/models.py
from datetime import timedelta from django.conf import settings from django.db import models from django.utils import timezone from django.contrib.auth.models import ( AbstractBaseUser, BaseUserManager, PermissionsMixin ) from django_extensions.db.models import TimeStampedModel from coreutils.email import send...
PypiClean
/cumm_cu102-0.4.11-cp37-cp37m-win_amd64.whl/cumm/gemm/wmma/volta.py
from typing import List, Optional, Tuple import numpy as np import pccm from cumm import cudasim, dtypes from cumm.common import GemmBasic, TensorViewNVRTC from cumm.core_cc.csrc.arrayref import ArrayPtr from cumm.gemm import bases, constants, core, layout, thread_map from cumm.gemm.arch import tensorop def seq(*v...
PypiClean
/bobko_custom_serializer-0.1.1.tar.gz/bobko_custom_serializer-0.1.1/src/serializers/json_serializer.py
from ..encoder.encoder import Encoder, Decoder def dump(obj, file): file.write(dumps(obj)) def dumps(obj): data = Encoder.encode(obj) return _dumps(data) def _dumps(obj): if isinstance(obj, (int, float)): return str(obj) if isinstance(obj, bool): return str(obj).lower() if ...
PypiClean
/collective.mathjax-1.1.1.tar.gz/collective.mathjax-1.1.1/collective/mathjax/resources/MathJax/fonts/HTML-CSS/TeX/png/SansSerif/Regular/BasicLatin.js
MathJax.OutputJax["HTML-CSS"].defineImageData({MathJax_SansSerif:{32:[[1,1,0],[1,1,0],[1,1,0],[1,1,0],[1,1,0],[1,1,0],[1,1,0],[1,1,0],[1,1,0],[1,1,0],[1,1,0],[1,1,0],[1,1,0],[1,1,0]],33:[[2,5,0],[2,6,0],[3,8,0],[3,9,0],[3,9,0],[4,12,0],[5,14,0],[5,17,0],[6,20,0],[7,23,0],[9,27,0],[10,32,0],[12,39,0],[14,45,0]],34:[[3,2...
PypiClean
/ez_etl-1.0.4-py3-none-any.whl/ezetl/data_models/elasticsearch_index.py
from ezetl.libs.es import EsClient from ezetl.data_models import DataModel from ezetl.utils.common_utils import trans_rule_value, parse_json from ezetl.utils.es_utils import get_index_mapping from ezetl.utils.es_query_tool import EsQueryTool class EsIndexModel(DataModel): def __init__(self, model_info): ...
PypiClean
/nti.testing-3.1.0.tar.gz/nti.testing-3.1.0/src/nti/testing/layers.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function # stdlib imports import gc import sys import unittest from zope import component from zope.component import eventtesting from zope.component.hooks import setHooks import zope.testing.cleanup from . import tr...
PypiClean
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/models/assay_result_create_field_validation.py
from typing import Any, Dict, List, Optional, Type, TypeVar import attr from ..models.user_validation import UserValidation T = TypeVar("T", bound="AssayResultCreateFieldValidation") @attr.s(auto_attribs=True, repr=False) class AssayResultCreateFieldValidation: """Dictionary mapping field names to UserValidati...
PypiClean
/cosmo_utils-0.1.64.tar.gz/cosmo_utils-0.1.64/cosmo_utils/utils/gen_utils.py
# Victor Calderon # Created : 2018-05-31 # Last Modified: 2018-05-31 from __future__ import absolute_import, division, print_function __author__ = ['Victor Calderon'] __copyright__ = ["Copyright 2018 Victor Calderon"] __email__ = ['victor.calderon@vanderbilt.edu'] __maintainer__ = ['Victor Calderon'] __...
PypiClean
/clode-0.3.2.tar.gz/clode-0.3.2/README.md
# clODE - an OpenCL based tool for solving ordinary differential equations (ODEs) clODE is a tool for solving ordinary differential equations (ODEs) using OpenCL. It is tailored to numerically solving many instances of a given ODE system in parallel, each with different parameter sets and/or initial conditions. The O...
PypiClean
/parea_ai-0.2.3.tar.gz/parea_ai-0.2.3/README.md
# parea-sdk <div align="center"> [![Build status](https://github.com/parea-ai/parea-sdk/workflows/build/badge.svg?branch=master&event=push)](https://github.com/parea-ai/parea-sdk/actions?query=workflow%3Abuild) [![Dependencies Status](https://img.shields.io/badge/dependencies-up%20to%20date-brightgreen.svg)](https://...
PypiClean
/streamlit-gcp-0.84.5.tar.gz/streamlit-gcp-0.84.5/streamlit/elements/legacy_data_frame.py
import datetime import re from collections import namedtuple from typing import cast import tzlocal import streamlit from streamlit import type_util from streamlit.logger import get_logger from streamlit.proto.DataFrame_pb2 import DataFrame as DataFrameProto LOGGER = get_logger(__name__) CSSStyle = namedtuple("CSSS...
PypiClean
/webbits-0.1.1.tar.gz/webbits-0.1.1/README.md
# Webbits [![image](https://img.shields.io/pypi/v/webbits.svg)](https://pypi.python.org/pypi/webbits) [![Documentation Status](https://readthedocs.org/projects/webbits/badge/?version=latest)](https://webbits.readthedocs.io/en/latest/?version=latest) Web bits and components for Python. License: Free software: Apach...
PypiClean
/photons-interactor-0.6.4.tar.gz/photons-interactor-0.6.4/photons_interactor/executor.py
from photons_interactor import VERSION from photons_app.executor import App from delfick_project.norms import sb from textwrap import dedent import argparse import logging import os log = logging.getLogger("photons_interactor.executor") cli_environment_defaults = App.cli_environment_defaults other_cli_environment_d...
PypiClean
/oarepo-references-2.0.0a1.tar.gz/oarepo-references-2.0.0a1/oarepo_references/bulk.py
import threading from collections import defaultdict from invenio_base.utils import obj_or_import_string from oarepo_references.signals import before_references_update, after_references_updated class ReferenceThreadLocalContext(threading.local): bulk_operation = False updated_objects = defaultdict(list) ...
PypiClean
/g8fyi-beancount-1.0.9.tar.gz/g8fyi-beancount-1.0.9/beancount/ingest/importer.py
__copyright__ = "Copyright (C) 2016 Martin Blais" __license__ = "GNU GPLv2" from beancount.core import flags class ImporterProtocol: "Interface that all source importers need to comply with." # A flag to use on new transaction. Override this flag in derived classes if # you prefer to create your import...
PypiClean
/factom-py-0.1.4.tar.gz/factom-py-0.1.4/factom_py/blockchains/mainnet/constants.py
MAINNET_NETWORK_ID = b"\xfa\x92\xe5\xa2" # 0xfa92e5a2 CHECKPOINTS = { 2: "5328d4bbe7ea6efc31cf7bfc45192378454cf4e1908c56a35e6a64456a691751", 10: "3a5ec711a1dc1c6e463b0c0344560f830eb0b56e42def141cb423b0d8487a1dc", 48: "471ef865fecf2b1a98b2e1f87434cc65a6672cc9c8fe19ab2471112431f54b36", 100: "cde346e7ed8...
PypiClean
/NovalIDE-1.1.8-py3-none-any.whl/noval/util/datetimeparser.py
import datetime try: import dateutil.parser DATEUTIL_INSTALLED = True except ImportError: DATEUTIL_INSTALLED = False ISO_8601_DATE_FORMAT = "%Y-%m-%d" ISO_8601_TIME_FORMAT = "%H:%M:%S" ISO_8601_DATETIME_FORMAT = "%s %s" %(ISO_8601_DATE_FORMAT, ISO_8601_TIME_FORMAT) D...
PypiClean
/django-mongodb-engine-0.6.0.tar.gz/django-mongodb-engine-0.6.0/django_mongodb_engine/south_adapter.py
from __future__ import absolute_import from django.core.exceptions import ImproperlyConfigured from django.db.models.fields import NOT_PROVIDED from django.db.utils import IntegrityError from pymongo.errors import DuplicateKeyError from .utils import make_index_list try: from south.db.generic import DatabaseOp...
PypiClean
/jetto_tools-1.8.12-py3-none-any.whl/jetto_tools/binary.py
# Required imports import os.path from getpass import getuser import datetime import re import struct import shutil import copy import collections from itertools import tee from pathlib import Path import numpy as np try: from scipy.io import savemat except: savemat = None dtypes = {'int':'i', 'float':'f', '...
PypiClean
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/group/operations/member_request/get_group_invite_reques_8cc920.py
# template file: ags_py_codegen # pylint: disable=duplicate-code # pylint: disable=line-too-long # pylint: disable=missing-function-docstring # pylint: disable=missing-module-docstring # pylint: disable=too-many-arguments # pylint: disable=too-many-branches # pylint: disable=too-many-instance-attributes # pylint: dis...
PypiClean
/hu-neuro-pipeline-0.7.0.tar.gz/hu-neuro-pipeline-0.7.0/doc/processing_group.rst
Group level ================= .. contents:: :depth: 2 :backlinks: none Combine trials -------------- The single trial amplitude dataframes from all participants, containing the log file data plus the computed single trial mean amplitudes for the ERP components of interest, are concatenated and saved in ``.cs...
PypiClean
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v3_4_0/data_collection_status_broker.py
from ..broker import Broker class DataCollectionStatusBroker(Broker): controller = "data_collection_statuses" def index(self, **kwargs): """Lists the available data collection statuses. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the various ways to qu...
PypiClean
/cupy_cuda102-12.2.0-cp38-cp38-manylinux2014_aarch64.whl/cupyx/scipy/ndimage/_spline_kernel_weights.py
spline_weights_inline = {} # Note: This order = 1 case is currently unused (order = 1 has a different code # path in _interp_kernels.py). I think that existing code is a bit more # efficient. spline_weights_inline[1] = ''' wx = c_{j} - floor({order} & 1 ? c_{j} : c_{j} + 0.5); weights_{j}[0] = 1.0 - wx; weights_{j}[1]...
PypiClean
/BatchQ-0.1-1-pre-alpha.tar.gz/BatchQ-0.1-1-pre-alpha/docs/api/shell_terminals.rst
Shell Pipelines =============== BatchQ comes with a number of predefined pipelines. Included in these are three shells, ``BashTerminal``, ``SSHTerminal`` and ``SFTPTerminal``, and one shell based class ``FileCommander``. Bash terminal ------------- .. automodule:: batchq.pipelines.shell.bash :members: :undoc-mem...
PypiClean
/ttgtcanvas2-0.1.41.tar.gz/ttgtcanvas2-0.1.41/docs/source/installing.rst
.. _installation: Installation ============ The simplest way to install ttgtcanvas2 is via pip:: pip install ttgtcanvas2 or via conda:: conda install ttgtcanvas2 If you installed via pip, and notebook version < 5.3, you will also have to install / configure the front-end extension as well. If you are u...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_9/models/remote_pods_response.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_9 import models class RemotePodsResponse(object): """ Attributes: swagger_types (dict): The key is attribute name and the value...
PypiClean
/salt-ssh-9000.tar.gz/salt-ssh-9000/salt/modules/pkgng.py
import copy import logging import os import re import salt.utils.data import salt.utils.files import salt.utils.functools import salt.utils.itertools import salt.utils.pkg import salt.utils.stringutils import salt.utils.versions from salt.exceptions import CommandExecutionError, MinionError log = logging.getLogger(__...
PypiClean
/sotai-0.4.3.tar.gz/sotai-0.4.3/docs/README.md
# SOTAI [![](https://img.shields.io/pypi/v/sotai)](https://pypi.org/project/sotai/) [![](https://github.com/SOTAI-Labs/sotai/actions/workflows/tests.yml/badge.svg?branch=main)](https://github.com/SOTAI-Labs/sotai/actions/workflows/tests.yml) A Library For Interpretable Machine Learning. This library is a PyTorch impl...
PypiClean
/yt-dlp-custom-0.0.1.tar.gz/yt-dlp-custom-0.0.1/yt_dlp/postprocessor/common.py
import functools import json import os import urllib.error from ..utils import ( PostProcessingError, RetryManager, _configuration_args, deprecation_warning, encodeFilename, network_exceptions, sanitized_Request, ) class PostProcessorMetaClass(type): @staticmethod def run_wrapper(...
PypiClean
/erhsh_python-0.2.6-py3-none-any.whl/erhsh/ms/ds/ds_printer.py
import time import numpy as np np.set_printoptions(suppress=True) def print_ds_info(ds, prefix="|-"): print("------ Dataset Information Is: ------", flush=True) print("{}get_dataset_size={}".format(prefix, ds.get_dataset_size()), flush=True) print("{}get_repeate_count={}".format(prefix, ds.get_repeat_co...
PypiClean
/uniohomeassistant-0.1.3.tar.gz/uniohomeassistant-0.1.3/homeassistant/components/august/binary_sensor.py
from datetime import datetime, timedelta import logging from august.activity import ActivityType from august.lock import LockDoorStatus from august.util import update_lock_detail_from_activity from homeassistant.components.binary_sensor import ( DEVICE_CLASS_CONNECTIVITY, DEVICE_CLASS_DOOR, DEVICE_CLASS_M...
PypiClean
/azure-mgmt-confidentialledger-2.0.0b1.zip/azure-mgmt-confidentialledger-2.0.0b1/azure/mgmt/confidentialledger/aio/_confidential_ledger.py
from copy import deepcopy from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from .. import models as _models from .._serialization import Deserializer, Serializer from ._configuration import ConfidentialLedge...
PypiClean
/robotcode_debugger-0.54.3-py3-none-any.whl/robotcode/debugger/run.py
import asyncio import functools import os import threading import warnings from typing import ( TYPE_CHECKING, Callable, List, Optional, Sequence, Union, cast, ) import click from robotcode.core.async_tools import ( run_coroutine_from_thread_async, run_coroutine_in_thread, ) from ro...
PypiClean
/soco-0.29.1.tar.gz/soco-0.29.1/README.rst
SoCo ==== SoCo (Sonos Controller) is a Python library that allows you to control `Sonos speakers`_ programmatically. It was originally created at `Music Hack Day Sydney`_ by `Rahim Sonawalla`_ and is now developed by a `team of people`_ at its `GitHub repository`_ For more background on the project, please see Rahim'...
PypiClean
/tensorflow-probability-0.2.0.tar.gz/tensorflow-probability-0.2.0/tensorflow_probability/python/distributions/poisson_lognormal.py
"""The PoissonLogNormalQuadratureCompound distribution class.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function # Dependency imports import numpy as np import tensorflow as tf from tensorflow_probability.python.bijectors.exp import Exp from tensorflow_pro...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/onenote/notebooks/item/sections/item/pages/item/preview/preview_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
/z3c.form-5.1.tar.gz/z3c.form-5.1/src/z3c/form/browser/file.rst
File Widget ----------- The file widget allows you to upload a new file to the server. The "file" type of the "INPUT" element is described here: http://www.w3.org/TR/1999/REC-html401-19991224/interact/forms.html#edef-INPUT As for all widgets, the file widget must provide the new ``IWidget`` interface: >>> from zo...
PypiClean
/python-sources-3.10.5.tar.gz/python-sources-3.10.5/Python-3.10.5/Lib/aifc.py
import struct import builtins import warnings __all__ = ["Error", "open"] class Error(Exception): pass _AIFC_version = 0xA2805140 # Version 1 of AIFF-C def _read_long(file): try: return struct.unpack('>l', file.read(4))[0] except struct.error: raise EOFError from None def _read_ulon...
PypiClean
/py_tgcalls-0.9.1-cp310-cp310-macosx_10_15_x86_64.whl/pytgcalls/custom_api/custom_api.py
from json import JSONDecodeError from typing import Callable from typing import Optional from aiohttp import web from aiohttp.web_request import BaseRequest from ..exceptions import TooManyCustomApiDecorators class CustomApi: """CustomAPI, the main means host the local http api server. Parameters: ...
PypiClean
/pycontrails-0.46.0.tar.gz/pycontrails-0.46.0/README.md
# pycontrails > Python library for modeling aviation climate impacts | | | |---------------|-------------------------------------------------------------------| | **Version** | [![PyPI version](https://img.shields.io/pypi/v/pycontrails....
PypiClean
/Dijkstar-3.0a4.tar.gz/Dijkstar-3.0a4/dijkstar/server/endpoints.py
import io import json from starlette.exceptions import HTTPException from starlette.requests import Request from starlette.responses import JSONResponse from starlette.schemas import OpenAPIResponse, SchemaGenerator from starlette.templating import _TemplateResponse from .. import algorithm, Graph from . import utils...
PypiClean
/odoo13_addon_report_xml-13.0.1.1.1-py3-none-any.whl/odoo/addons/report_xml/reports/report_report_xml_abstract.py
from base64 import b64decode from xml.dom import minidom from lxml import etree from odoo import api, models from odoo.exceptions import ValidationError class ReportXmlAbstract(models.AbstractModel): """ Model `report.report_xml.abstract`. This class provide basic methods for rendering XML report and ...
PypiClean
/mindspore_gl_gpu-0.1-cp37-cp37m-manylinux1_x86_64.whl/mindspore_gl/dataloader/shared_numpy/shared_memory.py
__all__ = ['SharedMemory'] import mmap import os import secrets import mindspore_gl.dataloader.shared_numpy._posixshmem as _posixshmem # pylint:disable=R0402 _O_CREX = os.O_CREAT | os.O_EXCL # FreeBSD (and perhaps other BSDs) limit names to 14 characters. _SHM_SAFE_NAME_LENGTH = 14 # Shared memory block name pref...
PypiClean
/simpel-utils-0.1.2.tar.gz/simpel-utils-0.1.2/simpel_utils/models/choices.py
import copy class Choices: """ A class to encapsulate handy functionality for lists of choices for a Django model field. Each argument to ``Choices`` is a choice, represented as either a string, a two-tuple, or a three-tuple. If a single string is provided, that string is used as the dat...
PypiClean
/jsonselect-0.2.3.tar.gz/jsonselect-0.2.3/README.md
#jsonselect.py <img src="https://travis-ci.org/mwhooker/jsonselect.png" /> jsonselect.py is a python implementation of https://github.com/fd/json_select You can find more information here http://jsonselect.org/ ## Usage jsonselect can be called directly from the command line. `python -m jsonselect <selector> < j...
PypiClean
/heat-dashboard-9.0.0.tar.gz/heat-dashboard-9.0.0/heat_dashboard/content/stacks/forms.py
import json import logging import django from django.conf import settings from django.template.defaultfilters import filesizeformat from django.utils import html from django.utils.translation import gettext_lazy as _ from django.views.decorators.debug import sensitive_variables from oslo_utils import strutils from ...
PypiClean
/ansible_semaphore_client-0.0.2-py3-none-any.whl/semaphore_client/exceptions.py
class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" class ApiTypeError(OpenApiException, TypeError): def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None): """ Raises an exception for TypeErrors Args: ...
PypiClean
/grvlms-notes-0.1.1.tar.gz/grvlms-notes-0.1.1/README.rst
Notes plugin for `Grvlms <https://docs.grvlms.overhang.io>`__ =================================================================================== Installation ------------ :: pip install git+https://github.com/groovetch/grvlms-notes To enable student notes for a specific course, you should go to the course ...
PypiClean
/colemen_volent-0.0.6-py3-none-any.whl/volent/validate/Range.py
from dataclasses import dataclass from typing import Iterable, OrderedDict, Sequence, Sized, Any, TypeVar, Union from collections import OrderedDict from abc import ABC, abstractmethod import colemen_utils as c import volent.settings as _settings import volent.settings.types as _t from volent.exceptions import Vali...
PypiClean
/hostout.ubuntu-1.0a2.tar.gz/hostout.ubuntu-1.0a2/hostout/ubuntu/newScripts/helper_scripts/build_libjpeg.sh
if [ "x$UNIVERSALSDK" != "x" ]; then CFLAGS="-fPIC -isysroot $UNIVERSALSDK -arch ppc -arch i386 -Wl,-syslibroot,$UNIVERSALSDK" else CFLAGS='-fPIC' fi if [ "X$INSTALL_JPEG" = "Xglobal" ] then echo "Compiling and installing jpeg system libraries ..." # It's not impossible that the /usr/local hierarchy doesn'...
PypiClean
/mysql-connector-python-rf-2.2.2.tar.gz/mysql-connector-python-rf-2.2.2/lib/mysql/connector/connection.py
# MySQL Connector/Python is licensed under the terms of the GPLv2 # <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>, like most # MySQL Connectors. There are special exceptions to the terms and # conditions of the GPLv2 as it is applied to this software, see the # FOSS License Exception # <http://www.mysql.com/...
PypiClean
/diffusers_unchained-0.16.2-py3-none-any.whl/diffusers/pipelines/stable_diffusion/safety_checker.py
import numpy as np import torch import torch.nn as nn from transformers import CLIPConfig, CLIPVisionModel, PreTrainedModel from ...utils import logging logger = logging.get_logger(__name__) def cosine_distance(image_embeds, text_embeds): normalized_image_embeds = nn.functional.normalize(image_embeds) nor...
PypiClean
/wslinklc-0.0.1-py3-none-any.whl/wslink/backends/aiohttp/launcher.py
import argparse import asyncio import datetime import io import json import logging import os import re import string import subprocess import sys import time import uuid from random import choice import aiohttp.web as aiohttp_web from . import _root_handler from wslink.launcher import ( SessionManager, Pro...
PypiClean
/ndx-events-0.2.0.tar.gz/ndx-events-0.2.0/src/pynwb/ndx_events/io/events.py
from pynwb import register_map from pynwb.io.core import NWBContainerMapper from hdmf.common.io.table import DynamicTableMap from hdmf.build import ObjectMapper, BuildManager from hdmf.common import VectorData from hdmf.utils import getargs, docval from hdmf.spec import AttributeSpec from ..events import Events, Label...
PypiClean
/minos-discovery-minos-0.7.0.tar.gz/minos-discovery-minos-0.7.0/README.md
<p align="center"> <a href="https://minos.run" target="_blank"><img src="https://raw.githubusercontent.com/minos-framework/.github/main/images/logo.png" alt="Minos logo"></a> </p> ## minos-discovery-minos [![PyPI Latest Release](https://img.shields.io/pypi/v/minos-discovery-minos.svg)](https://pypi.org/project/mino...
PypiClean
/anfis-0.3.1.tar.gz/anfis-0.3.1/README.md
ANFIS ======= anfis is a Python implementation of an Adaptive Neuro Fuzzy Inference System. This ANFIS package is essentially a Python refactoring of the R code created by the team a the BioScience Data Mining Group, the original documentaion of which can be found here: http://www.bdmg.com.ar/?page_id=176 As an exm...
PypiClean
/flask_mdict-1.1.7-py3-none-any.whl/flask_mdict/static/js/typeahead.bundle.min.js
!function(a,b){"function"==typeof define&&define.amd?define(["jquery"],function(c){return a.Bloodhound=b(c)}):"object"==typeof exports?module.exports=b(require("jquery")):a.Bloodhound=b(a.jQuery)}(this,function(a){var b=function(){"use strict";return{isMsie:function(){return!!/(msie|trident)/i.test(navigator.userAgent)...
PypiClean
/soft_music-0.0.2.tar.gz/soft_music-0.0.2/soft_music/file_tools.py
import os import yaml def load_file_data(pth): with open(pth, mode='r', encoding='utf-8') as f: for line in f: yield line.strip() def read_file_(pth): gen_object = load_file_data(pth) for line in gen_object: # TODO do something else pass def read_file(pth, encoding...
PypiClean
/Pyrex-real-0.9.9.tar.gz/Pyrex-real-0.9.9/Pyrex/Compiler/PyrexTypes.py
import string import Naming class BaseType: # # Base class for all Pyrex types including pseudo-types. def cast_code(self, expr_code): return "((%s)%s)" % (self.declaration_code(""), expr_code) def base_declaration_code(self, base_code, entity_code): if entity_code: ...
PypiClean
/vlermv-2.0.0.tar.gz/vlermv-2.0.0/vlermv_examples/pointer.py
import os import hashlib import io from functools import lru_cache from . import serializers, transformers from ._fs import Vlermv from ._abstract import AbstractVlermv class PointerVlermv(Vlermv): ''' A :py:class:`dict` API to a filesystem ''' def __init__(self, *directory, masterdir='.master', maxhas...
PypiClean
/fschat-0.2.26-py3-none-any.whl/fastchat/model/apply_delta.py
import argparse import gc import glob import json import os import shutil import tempfile from huggingface_hub import snapshot_download import torch from torch import nn from tqdm import tqdm from transformers import AutoTokenizer, AutoModelForCausalLM, AutoConfig GB = 1 << 30 def split_files(model_path, tmp_path,...
PypiClean
/gcp_scraper-2.0.9-py3-none-any.whl/gscraper/logs.py
from .types import LogLevel, LogMessage, Data, BigQuerySchema from typing import Dict, Optional from ast import literal_eval from aiohttp import ClientResponse from pandas import DataFrame from requests import Response import json import logging import os import re import sys import traceback LOG_FILE = "log" CRITICA...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/financials/companies/item/sales_quote_lines/item/item/item_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
/rapids_singlecell-0.8.1.tar.gz/rapids_singlecell-0.8.1/src/rapids_singlecell/cunnData_funcs/_simple.py
import math from typing import Union import cupy as cp import cupyx as cpx import numpy as np from rapids_singlecell.cunnData import cunnData _sparse_qc_kernel_csc = cp.RawKernel( r""" extern "C" __global__ void caluclate_qc_csc(const int *indptr,const int *index,const float *data, ...
PypiClean
/cloudrail-knowledge-0.0.228.tar.gz/cloudrail-knowledge-0.0.228/cloudrail/knowledge/context/aws/resources_builders/scanner/cloud_mapper_component_builder.py
import ast import json import re import os import urllib from typing import List, Optional, Tuple from cloudrail.knowledge.context.aws.resources.apigateway.api_gateway_integration import ApiGatewayIntegration, IntegrationType from cloudrail.knowledge.context.aws.resources.apigateway.api_gateway_method import ApiGatewa...
PypiClean