id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/tron-1.6.1.tar.gz/tron-1.6.1/README.md
Tron - Batch Scheduling System ============================== [![Build Status](https://travis-ci.org/Yelp/Tron.svg?branch=master)](https://travis-ci.org/Yelp/Tron) [![Documentation Status](https://readthedocs.org/projects/tron/badge/?version=latest)](http://tron.readthedocs.io/en/latest/?badge=latest) Tron is a centr...
PypiClean
/psd_tools-1.9.28-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl/psd_tools/psd/effects_layer.py
from __future__ import absolute_import, unicode_literals import attr import logging from psd_tools.constants import BlendMode, EffectOSType from psd_tools.psd.base import BaseElement, DictElement from psd_tools.psd.color import Color from psd_tools.validators import in_ from psd_tools.utils import ( read_fmt, writ...
PypiClean
/bisnode-0.0.2-py3-none-any.whl/bin/ledger_explorer.py
import sqlite3, time, options, random, sys import tornado.ioloop import tornado.web config = options.Get() config.read() hyper_path = config.hyper_path #hyper_path = "backup.db" version = config.version if "testnet" in version: port = 2829 hyper_path = "static/ledger_test.db" def execute(cursor, query): ...
PypiClean
/tencentcloud-sdk-python-3.0.973.tar.gz/tencentcloud-sdk-python-3.0.973/tencentcloud/gpm/v20200820/gpm_client.py
import json from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException from tencentcloud.common.abstract_client import AbstractClient from tencentcloud.gpm.v20200820 import models class GpmClient(AbstractClient): _apiVersion = '2020-08-20' _endpoint = 'gpm.tencentcloudapi...
PypiClean
/tifffile-2023.8.30.tar.gz/tifffile-2023.8.30/CHANGES.rst
Revisions --------- 2023.8.30 - Pass 5007 tests. - Support exclusive file creation mode (#221, #223). 2023.8.25 - Verify shaped metadata is compatible with page shape. - Support out parameter when returning selection from imread (#222). 2023.8.12 - Support decompressing EER frames. - Facilitate filtering logged w...
PypiClean
/binary-refinery-0.4.41.tar.gz/binary-refinery-0.4.41/refinery/units/misc/datefix.py
from re import compile as re_compile from datetime import datetime, timedelta from refinery.units import Arg, Unit from refinery.lib.decorators import linewise class datefix(Unit): """ Parses all kinds of date formats and unifies them into the same format. """ _FORMATS = [ '%B %dth %Y %H:%M:...
PypiClean
/sagemath-standard-10.0b0.tar.gz/sagemath-standard-10.0b0/sage/quadratic_forms/quadratic_form__local_density_congruence.py
from copy import deepcopy from sage.sets.set import Set from sage.rings.rational_field import QQ from sage.arith.all import valuation from sage.misc.verbose import verbose from sage.quadratic_forms.count_local_2 import count_modp__by_gauss_sum def count_modp_solutions__by_Gauss_sum(self, p, m): """ Return t...
PypiClean
/meld-sandbox-2.7.8.tar.gz/meld-sandbox-2.7.8/src/fides/core/dataset.py
from typing import Dict, List, Optional, Tuple import sqlalchemy from fideslang import manifests from fideslang.models import Dataset, DatasetCollection, DatasetField from pydantic import AnyHttpUrl from sqlalchemy.engine import Engine from fides.connectors.bigquery import get_bigquery_engine from fides.connectors.mo...
PypiClean
/rate_limited-0.3.0-py3-none-any.whl/rate_limited/runner.py
import asyncio import traceback from asyncio import create_task, gather from asyncio import sleep as asyncio_sleep from concurrent.futures import ThreadPoolExecutor from inspect import signature from logging import getLogger from typing import Callable, Collection, List, Optional, Tuple from rate_limited.calls import ...
PypiClean
/virtual_assistant_generator-0.1.0-py3-none-any.whl/va_generator/back_end/node_modules/aws-sdk/clients/rekognition.d.ts
import {Request} from '../lib/request'; import {Response} from '../lib/response'; import {AWSError} from '../lib/error'; import {Service} from '../lib/service'; import {ServiceConfigurationOptions} from '../lib/service'; import {ConfigBase as Config} from '../lib/config'; interface Blob {} declare class Rekognition ext...
PypiClean
/eTraGo-0.8.0.tar.gz/eTraGo-0.8.0/etrago/tools/plot.py
# This program is free software; you can redistribute it and/or # modify it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation; either version 3 of the # License, or (at your option) any later version. # This program is distributed in the hope that it will be usefu...
PypiClean
/OpenPIVToolkit-0.2.8-py3-none-any.whl/openpivtk/piv.py
__licence_ = """ Copyright (C) 2011 www.openpiv.net This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed...
PypiClean
/jupyter_scheduler-2.1.0-py3-none-any.whl/jupyter_scheduler/labextension/static/282.7b4e318dca2d64a434c1.js
"use strict";(self.webpackChunk_jupyterlab_scheduler=self.webpackChunk_jupyterlab_scheduler||[]).push([[282],{5042:(e,r,t)=>{t.d(r,{Z:()=>n});const n=function(e){var r=Object.create(null);return function(t){return void 0===r[t]&&(r[t]=e(t)),r[t]}}},1826:(e,r,t)=>{t.d(r,{O:()=>h});const n=function(e){for(var r,t=0,n=0,o...
PypiClean
/DI_engine-0.4.9-py3-none-any.whl/ding/model/template/edac.py
from typing import Union, Optional, Dict from easydict import EasyDict import torch import torch.nn as nn from ding.model.common import ReparameterizationHead, EnsembleHead from ding.utils import SequenceType, squeeze from ding.utils import MODEL_REGISTRY @MODEL_REGISTRY.register('edac') class QACEnsemble(nn.Module...
PypiClean
/spconv_cu102-2.3.6-cp311-cp311-win_amd64.whl/spconv/build.py
from pathlib import Path from typing import List import pccm from pccm.utils import project_is_editable, project_is_installed from ccimport.compat import InWindows from .constants import PACKAGE_NAME, PACKAGE_ROOT, DISABLE_JIT, SPCONV_INT8_DEBUG if project_is_installed(PACKAGE_NAME) and project_is_editable( ...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/provider_tenant_setting.py
from __future__ import annotations from datetime import datetime from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from . import entity from . import entity class ProviderTenantSetti...
PypiClean
/hathorsdk-2021.12.29.tar.gz/hathorsdk-2021.12.29/README.md
# hathor-sdk [![Pytest](https://github.com/Tall1n/hathor-sdk/actions/workflows/github-action.yml/badge.svg)](https://github.com/Tall1n/hathor-sdk/actions/workflows/github-action.yml) Python sdk for interaction with the hathor blockchain. Pull requests are welcome. # Usage The package contains of a collection of util...
PypiClean
/Spire.Doc-11.8.1-py3-none-manylinux1_x86_64.whl/spire/doc/ShapeBase.py
from enum import Enum from plum import dispatch from typing import TypeVar,Union,Generic,List,Tuple from spire.doc.common import * from spire.doc import * from ctypes import * import abc class ShapeBase ( ParagraphBase) : """ """ @property def HasImage(self)->bool: """ """ Ge...
PypiClean
/jdcloud_sdk-1.6.243.tar.gz/jdcloud_sdk-1.6.243/jdcloud_sdk/services/cdn/apis/QueryStatisticsDataRequest.py
# Copyright 2018 JDCLOUD.COM # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing,...
PypiClean
/vega_sim-1.2.1-py3-none-any.whl/vega_sim/reinforcement/agents/learning_agent_MO.py
from dataclasses import dataclass import numpy as np from collections import namedtuple, defaultdict from typing import List, Tuple import os from functools import partial from tqdm import tqdm import torch import torch.nn as nn from torch.distributions.categorical import Categorical from vega_sim.reinforcement.agents...
PypiClean
/safegate_pro-2021.7.6-py3-none-any.whl/homeassistant/components/webostv/__init__.py
import asyncio from contextlib import suppress import json import logging import os from aiopylgtv import PyLGTVCmdException, PyLGTVPairException, WebOsClient from sqlitedict import SqliteDict import voluptuous as vol from websockets.exceptions import ConnectionClosed from homeassistant.const import ( ATTR_COMMAN...
PypiClean
/napalm-yang-0.1.0.tar.gz/napalm-yang-0.1.0/napalm_yang/models/openconfig/network_instances/network_instance/policy_forwarding/policies/policy/__init__.py
from operator import attrgetter from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType from pyangbind.lib.yangtypes import RestrictedClassType from pyangbind.lib.yangtypes import TypedListType from pyangbind.lib.yangtypes import YANGBool from pyangbind.lib.yangtypes import YANGListType from pyangbind.lib.ya...
PypiClean
/pypropagate-1.2.5.tar.gz/pypropagate-1.2.5/README.md
# PyPropagate A paraxial wave propagation framework for python 2.7 . Created by Lars Melchior for the [Institute for X-Ray Physics](http://www.roentgen.physik.uni-goettingen.de/) in Göttingen. Funded by [SFB755](http://www.uni-goettingen.de/de/318955.html). ## Installation pip install pypropagate ## Depend...
PypiClean
/amazon_braket_default_simulator-1.20.0-py3-none-any.whl/braket/default_simulator/density_matrix_simulation.py
from typing import List, Tuple, Union import numpy as np from braket.default_simulator.linalg_utils import multiply_matrix, partial_trace from braket.default_simulator.operation import GateOperation, KrausOperation, Observable from braket.default_simulator.simulation import Simulation class DensityMatrixSimulation...
PypiClean
/django-pf-billing-0.0.5.tar.gz/django-pf-billing-0.0.5/pf_billing/interface.py
import requests from django.conf import settings from .errors import KakaoPayAPIException class BillingAction: _available_pg = ["KakaoPay", "KGMobilians"] @classmethod def set_pg(cls, pg_name): if pg_name not in cls._available_pg: raise ValueError(f"Available PGs: {', '.join(cls._av...
PypiClean
/eea.googlecharts-21.0.zip/eea.googlecharts-21.0/eea/googlecharts/views/js/embed_common.js
google.load("visualization", "1.0", { packages: ["controls"] }); if (!window.EEAGoogleCharts) { window.EEAGoogleCharts = {}; } if (!window.EEAGoogleCharts.common) { window.EEAGoogleCharts.common = {}; } if (!window.EEAGoogleCharts.embed) { window.EEAGoogleCharts.embed = {}; } var commonModule = window.EEAGoogleC...
PypiClean
/psutil-wheels-5.8.1.tar.gz/psutil-wheels-5.8.1/scripts/internal/print_downloads.py
# Copyright (c) 2009 Giampaolo Rodola'. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. """ Print PYPI statistics in MarkDown format. Useful sites: * https://pepy.tech/project/psutil * https://pypistats.org/packages/psutil * https://hugovk.git...
PypiClean
/adafruit-circuitpython-wii-classic-1.0.2.tar.gz/adafruit-circuitpython-wii-classic-1.0.2/examples/wii_classic_displayio_visualizer.py
import board import terminalio import displayio import simpleio from adafruit_display_text import label from adafruit_display_shapes.circle import Circle import adafruit_ili9341 import adafruit_wii_classic displayio.release_displays() spi = board.SPI() tft_cs = board.A2 tft_dc = board.A1 display_bus = displayio.Fou...
PypiClean
/google-cloud-retail-1.16.2.tar.gz/google-cloud-retail-1.16.2/google/cloud/retail_v2alpha/types/control.py
from __future__ import annotations from typing import MutableMapping, MutableSequence import proto # type: ignore from google.cloud.retail_v2alpha.types import common, search_service __protobuf__ = proto.module( package="google.cloud.retail.v2alpha", manifest={ "Control", }, ) class Control(p...
PypiClean
/dgl_cu100-0.5.3-cp38-cp38-win_amd64.whl/dgl_cu100-0.5.3.data/purelib/dgl/readout.py
from __future__ import absolute_import from .base import DGLError from . import backend as F from .ops import segment __all__ = ['readout_nodes', 'readout_edges', 'sum_nodes', 'sum_edges', 'mean_nodes', 'mean_edges', 'max_nodes', 'max_edges', 'softmax_nodes', 'softmax_edges', 'broadca...
PypiClean
/js.extjs-4.2.1.883.tar.gz/js.extjs-4.2.1.883/js/extjs/resources/src/form/action/DirectLoad.js
* Provides {@link Ext.direct.Manager} support for loading form data. * * This example illustrates usage of Ext.direct.Direct to **load** a form through Ext.Direct. * * var myFormPanel = new Ext.form.Panel({ * // configs for FormPanel * title: 'Basic Information', * renderTo: document...
PypiClean
/elasticsearch_dsl-8.9.0a1-py3-none-any.whl/elasticsearch_dsl/query.py
import collections.abc from itertools import chain # 'SF' looks unused but the test suite assumes it's available # from this module so others are liable to do so as well. from .function import SF # noqa: F401 from .function import ScoreFunction from .utils import DslBase def Q(name_or_query="match_all", **params):...
PypiClean
/symbolicai-0.2.50-py3-none-any.whl/symai/backend/engine_pinecone.py
import itertools import warnings from typing import List warnings.filterwarnings('ignore', module='pinecone') try: import pinecone except: pinecone = None from ..core import retry from .base import Engine from .settings import SYMAI_CONFIG def chunks(iterable, batch_size=100): """A helper function to br...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/stylelint/lib/rules/font-family-no-duplicate-names/index.js
'use strict'; const declarationValueIndex = require('../../utils/declarationValueIndex'); const findFontFamily = require('../../utils/findFontFamily'); const keywordSets = require('../../reference/keywordSets'); const optionsMatches = require('../../utils/optionsMatches'); const report = require('../../utils/report');...
PypiClean
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/hyperion/sources/source.py
from __future__ import print_function, division import numpy as np from astropy.table import Table, Column from ..grid.amr_grid import AMRGridView from ..util.functions import B_nu, random_id, FreezableClass, \ is_numpy_array, bool2str, str2bool, monotonically_increasing from ..util.integrate import integrate_lo...
PypiClean
/adafruit-circuitpython-oauth2-1.0.14.tar.gz/adafruit-circuitpython-oauth2-1.0.14/docs/index.rst
.. include:: ../README.rst Table of Contents ================= .. toctree:: :maxdepth: 4 :hidden: self .. toctree:: :caption: Examples examples .. toctree:: :caption: API Reference :maxdepth: 3 api .. toctree:: :caption: Tutorials .. toctree:: :caption: Related Products...
PypiClean
/bingads-13.0.16.tar.gz/bingads-13.0.16/make.py
import os from subprocess import call dependent_graph = {} tasks = {} def dependent_on(*dependent_funcs): """ Describe the dependencies of a specific functions. :param dependent_funcs: dependent functions :return: decorated function """ def dependencies_wrapper(func): dependent_graph[fu...
PypiClean
/deep_ner-0.0.6-py3-none-any.whl/deep_ner/elmo_ner.py
import copy import logging import os import random import tempfile import time from typing import Dict, Union, List, Tuple import numpy as np from sklearn.base import BaseEstimator, ClassifierMixin from sklearn.utils.validation import check_is_fitted os.environ['TF_CPP_MIN_LOG_LEVEL'] = '3' import tensorflow as tf imp...
PypiClean
/aio-videoindexer-1.0.0.tar.gz/aio-videoindexer-1.0.0/asyncvideoindexer/AsyncVideoIndexer.py
Does not implement all API facilities.""" # pylint: disable=W0201 from datetime import datetime, timedelta import aiohttp class AsyncVideoIndexer: """A class for interacting with Video Indexer using asyncio.""" @classmethod async def create( cls, account_id, subscription_key, location, get_acces...
PypiClean
/shyft.time_series-5.2.10-cp310-cp310-win_amd64.whl/shyft/dashboard/maps/map_viewer.py
from typing import Dict, List, Tuple from bokeh import __version__ as bokeh_version import bokeh.models from bokeh.plotting import figure as bokeh_figure from shyft.dashboard.base.ports import Receiver from shyft.dashboard.maps.map_layer import MapLayer from shyft.dashboard.maps.base_map import BaseMap from shyft.da...
PypiClean
/Flask-Query-0.0.1.tar.gz/Flask-Query-0.0.1/flask_query/Query.py
from flask_query.BaseQuery import BaseQuery from flask_query.QueryBuilder import QueryBuilder from flask_query.DB import DB class Query(BaseQuery): table_prop = None join_prop = [] select_prop = [] distinct_prop = [] selectOption_prop = None where_prop = [] groupBy_prop = None h...
PypiClean
/jupyterlab_spellchecker-0.8.4-py3-none-any.whl/jupyterlab_spellchecker-0.8.4.data/data/share/jupyter/dictionaries/README_fr.txt
_______________________________________________________________________________ DICTIONNAIRES ORTHOGRAPHIQUES FRANÇAIS version 6.3 Olivier R. - dicollecte<at>free<dot>fr Dicollecte : http://www.dicollecte.org/ Licence : MPL : Mozilla Public License version 2.0 -- http://www.mozilla.org/MPL...
PypiClean
/storlets-11.0.0.0rc1.tar.gz/storlets-11.0.0.0rc1/doc/source/archive/invoking_storlets.rst
:orphan: =================== Storlets Invocation =================== Once the storlet and its dependencies are deployed the storlet is ready for invocation. Storlets can be invoked in 2 ways: 1. Invocation upon GET. In this case the user gets a transformation of the object residing in the store (as opposed to the ac...
PypiClean
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/spdx-expression-parse/parse.js
'use strict' // The ABNF grammar in the spec is totally ambiguous. // // This parser follows the operator precedence defined in the // `Order of Precedence and Parentheses` section. module.exports = function (tokens) { var index = 0 function hasMore () { return index < tokens.length } function token () ...
PypiClean
/xadrpy-0.6.3.tar.gz/xadrpy-0.6.3/src/ckeditor/static/ckeditor/ckeditor/_source/plugins/specialchar/plugin.js
/* Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ /** * @file Special Character plugin */ CKEDITOR.plugins.add( 'specialchar', { // List of available localizations. availableLangs : { en:1 }, init : function( editor ...
PypiClean
/PyLaTeX-1.4.1.tar.gz/PyLaTeX-1.4.1/pylatex/base_classes/containers.py
from collections import UserList from pylatex.utils import dumps_list from contextlib import contextmanager from .latex_object import LatexObject from .command import Command, Arguments class Container(LatexObject, UserList): """A base class that groups multiple LaTeX classes. This class should be subclassed...
PypiClean
/QM_Spider-0.0.151.tar.gz/QM_Spider-0.0.151/doc/build/html/_static/doctools.js
* select a different prefix for underscore */ $u = _.noConflict(); /** * make the code below compatible with browsers without * an installed firebug like debugger if (!window.console || !console.firebug) { var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml", "group", "groupEnd", "...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/devices/item/transitive_member_of/group/count/count_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
/openwebvulndb-tools-1.1.1.tar.gz/openwebvulndb-tools-1.1.1/openwebvulndb/common/manager.py
from collections import defaultdict import re from .models import VulnerabilityList, Reference from .errors import VulnerabilityNotFound class VulnerabilityManager: def __init__(self, *, storage): self.storage = storage self.files = defaultdict(dict) def flush(self): for file_set i...
PypiClean
/aiohttp-debugtoolbar-0.6.0.tar.gz/aiohttp-debugtoolbar-0.6.0/aiohttp_debugtoolbar/tbtools/tbtools.py
import re import os import sys import inspect import traceback import codecs from tokenize import TokenError from aiohttp.helpers import reify from .console import Console from ..tbtools import text_ from ..utils import render, STATIC_ROUTE_NAME, APP_KEY from ..utils import escape from ..utils import ROOT_ROUTE_NAME ...
PypiClean
/ps.plone.mls-0.18.tar.gz/ps.plone.mls-0.18/src/ps/plone/mls/browser/traversal.py
"""Custom traversers for MLS Embedding items.""" from plone.memoize.view import memoize from ps.plone.mls import api from ps.plone.mls.browser.developments import collection from ps.plone.mls.content import featured from ps.plone.mls.interfaces import IDevelopmentTraversable from ps.plone.mls.interfaces import IListin...
PypiClean
/simpleflow-0.32.2.tar.gz/simpleflow-0.32.2/swf/models/decision/workflow.py
from __future__ import annotations from typing import Any from simpleflow import format from swf.models.decision.base import Decision, decision_action from swf.models.workflow import CHILD_POLICIES, WorkflowType class WorkflowExecutionDecision(Decision): _base_type = "WorkflowExecution" @decision_action ...
PypiClean
/pulumi_databricks-1.23.0a1693528749.tar.gz/pulumi_databricks-1.23.0a1693528749/pulumi_databricks/obo_token.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['OboTokenArgs', 'OboToken'] @pulumi.input_type class OboTokenArgs: def __init__(__self__, *, application_id: pulumi.Input[str],...
PypiClean
/django_adminlte3-0.1.6-py3-none-any.whl/adminlte3/static/admin-lte/plugins/summernote/lang/summernote-uk-UA.js
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else { var a = factory(); for(var i in a) (typeof exports === 'object' ? exports : roo...
PypiClean
/bf_nlu_banki-1.4-py3-none-any.whl/bf_nlu_banki/shared/nlu/training_data/formats/luis.py
import logging from typing import Any, Dict, List, Text from bf_nlu_banki.shared.nlu.constants import ( TEXT, INTENT, ENTITIES, ENTITY_ATTRIBUTE_TYPE, ENTITY_ATTRIBUTE_ROLE, ENTITY_ATTRIBUTE_VALUE, ENTITY_ATTRIBUTE_START, ENTITY_ATTRIBUTE_END, NO_ENTITY_TAG, ) from bf_nlu_banki.shar...
PypiClean
/rec_pangu-0.4.1-py3-none-any.whl/rec_pangu/models/sequence/re4.py
from typing import Dict import numpy as np import torch from torch import nn import torch.nn.functional as F from rec_pangu.models.base_model import SequenceBaseModel class Re4(SequenceBaseModel): def __init__(self, enc_dict, config): super(Re4, self).__init__(enc_dict, config) self.num_interests...
PypiClean
/nio_cli-1.3.1-py3-none-any.whl/nio_cli/utils/ssl.py
from cryptography import x509 from cryptography.x509.oid import NameOID from cryptography.hazmat.backends import default_backend from cryptography.hazmat.primitives import serialization, hashes from cryptography.hazmat.primitives.asymmetric import rsa from datetime import datetime, timedelta from ipaddress import ip_ad...
PypiClean
/contrive-0.6.1b0.tar.gz/contrive-0.6.1b0/src/masoniteorm/collection/Collection.py
import json import operator from functools import reduce class Collection: """Wraps various data types to make working with them easier.""" def __init__(self, items=[]): self._items = items def take(self, number: int): """Takes a specific number of results from the items. Argume...
PypiClean
/eisen-core-0.0.9.tar.gz/eisen-core-0.0.9/eisen/utils/logging/summaries.py
import numpy as np import matplotlib.pyplot as plt import os import itertools import torch from sklearn.metrics import confusion_matrix from torch.utils.tensorboard.writer import SummaryWriter from pydispatch import dispatcher from eisen import EISEN_END_EPOCH_EVENT def plot_confusion_matrix(cm, classes, normalize=...
PypiClean
/unstructured_inference-0.5.20-py3-none-any.whl/unstructured_inference/visualize.py
from typing import Optional, Union import cv2 import matplotlib.pyplot as plt import numpy as np from PIL.Image import Image from PIL.ImageDraw import ImageDraw from unstructured_inference.inference.elements import Rectangle def draw_bbox(image: Image, rect: Rectangle, color: str = "red", width=1) -> Image: """...
PypiClean
/realms-wiki-0.9.3.tar.gz/realms-wiki-0.9.3/realms/static/vendor/ace/lib/ace/autocomplete.js
define(function(require, exports, module) { "use strict"; var HashHandler = require("./keyboard/hash_handler").HashHandler; var AcePopup = require("./autocomplete/popup").AcePopup; var util = require("./autocomplete/util"); var event = require("./lib/event"); var lang = require("./lib/lang"); var snippetManager = requ...
PypiClean
/convo5-0.1.tar.gz/convo5-0.1/convo/nlu/train.py
import logging import typing from typing import Any, Optional, Text, Tuple, Union, Dict import convo.utils.common as common_utils from convo.nlu import config from convo.nlu.components import ComponentBuilder from convo.nlu.config import ConvoNLUModelConfig from convo.nlu.model import Interpreter, Trainer from convo.n...
PypiClean
/ifb-openlink-1.0.0.tar.gz/ifb-openlink-1.0.0/openlink/core/static/ckeditor/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js
/* Copyright (c) 2003-2021, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license */ CKEDITOR.plugins.setLang("a11yhelp","zh",{title:"輔助工具指南",contents:"說明內容。若要關閉此對話框請按「ESC」。",legend:[{name:"一般",items:[{name:"編輯器工具列",legend:"請按 ${toolbarFoc...
PypiClean
/odoo_addon_stock_picking_completion_info-16.0.1.0.1.2-py3-none-any.whl/odoo/addons/stock_picking_completion_info/models/stock_picking.py
from odoo import api, fields, models class PickingType(models.Model): _inherit = "stock.picking.type" display_completion_info = fields.Boolean( help="Inform operator of a completed operation at processing and at" " completion" ) class StockPicking(models.Model): _inherit = "stock....
PypiClean
/datadog_api_client-2.16.0-py3-none-any.whl/datadog_api_client/v2/model/incident_attachment_data.py
from __future__ import annotations from typing import Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, cached_property, ) if TYPE_CHECKING: from datadog_api_client.v2.model.incident_attachment_attributes import IncidentAttachmentAttributes from datadog_api_client.v2.mod...
PypiClean
/coop_html_editor-1.4.1.tar.gz/coop_html_editor-1.4.1/coop_html_editor/static/ckeditor.4.6.2/samples/old/htmlwriter/assets/outputforflash/swfobject.js
var swfobject=function(){function w(){if(!u){try{var a=d.getElementsByTagName("body")[0].appendChild(d.createElement("span"));a.parentNode.removeChild(a)}catch(b){return}u=!0;for(var a=z.length,c=0;c<a;c++)z[c]()}}function M(a){u?a():z[z.length]=a}function N(a){if("undefined"!=typeof n.addEventListener)n.addEventListe...
PypiClean
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/types/user_and_chats/chat_join_request.py
from datetime import datetime from typing import Dict import fipper from fipper import raw, utils from fipper import types from ..object import Object from ..update import Update class ChatJoinRequest(Object, Update): """Represents a join request sent to a chat. Parameters: chat (:obj:`~fipper.type...
PypiClean
/bzr-2.7.0.tar.gz/bzr-2.7.0/bzrlib/repository.py
from __future__ import absolute_import from bzrlib.lazy_import import lazy_import lazy_import(globals(), """ import itertools import time from bzrlib import ( config, controldir, debug, generate_ids, graph, lockable_files, lockdir, osutils, revision as _mod_revision, testament...
PypiClean
/wtf-server-0.8.25.tar.gz/wtf-server-0.8.25/wtf/app/response.py
__author__ = u"Andr\xe9 Malo" __docformat__ = "restructuredtext en" import datetime as _datetime import weakref as _weakref from wtf.app import http_response as http from wtf import httputil as _httputil class Done(http.HTTPResponse): """ Request Done exception Use this is cases where return is not app...
PypiClean
/pigweed-0.0.14.tar.gz/pigweed-0.0.14/pw_log_tokenized/__init__.py
"""Tools for working with tokenized logs.""" from dataclasses import dataclass, asdict import re from typing import Dict, Mapping, Iterator def _mask(value: int, start: int, count: int) -> int: mask = (1 << count) - 1 return (value & (mask << start)) >> start @dataclass class Metadata: """Parses the me...
PypiClean
/tox-matrix-0.1.1.tar.gz/tox-matrix-0.1.1/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/slafs/tox-matrix/iss...
PypiClean
/draggan-1.1.5.tar.gz/draggan-1.1.5/README.md
# DragGAN [![PyPI](https://img.shields.io/pypi/v/draggan)](https://pypi.org/project/draggan/) [![support](https://img.shields.io/badge/Support-macOS%20%7C%20Windows%20%7C%20Linux-blue)](#running-locally) :boom: [`Colab Demo`](https://colab.research.google.com/github/Zeqiang-Lai/DragGAN/blob/master/colab.ipynb) | [`I...
PypiClean
/django-exact-0.6.0.tar.gz/django-exact-0.6.0/README.md
API Wrapper and Django app for Exact Online =========================================== * transparently handles re-authentication. Exact's OAuth2 tokens are valid for 10 minutes * handles pagination. `filter()` returns a generator * uses connection keep-alive (thanks to the requests library) resulting in huge performa...
PypiClean
/tf_gpu-2.11.0.2301-cp38-cp38-manylinux2014_x86_64.whl/tensorflow/lite/experimental/microfrontend/python/ops/audio_microfrontend_op.py
"""AudioMicrofrontend Op creates filterbanks from audio data.""" from tensorflow.lite.experimental.microfrontend.ops import gen_audio_microfrontend_op from tensorflow.python.framework import dtypes from tensorflow.python.framework import load_library from tensorflow.python.framework import ops from tensorflow.python.o...
PypiClean
/sanitize123-0.0.0.zip/sanitize123-0.0.0/README.txt
This is Python version 3.4.4 ============================ Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Python Software Foundation. All rights reserved. Python 3.x is a new version of the language, which is incompatible with the 2.x line of releases. The lang...
PypiClean
/simple-sql-riccardoob-1.0.0.tar.gz/simple-sql-riccardoob-1.0.0/src/simple_sql/metadata.py
from __future__ import annotations from typing import TYPE_CHECKING, Dict from simple_sql.exceptions import NoSuchTable from pathlib import Path from os.path import isfile import pickle if TYPE_CHECKING: from simple_sql.model.table import Table class MetaData(): """ This class is an object abstraction ...
PypiClean
/cn-zipline-live-async-1.3.2.tar.gz/cn-zipline-live-async-1.3.2/zipline/protocol.py
from warnings import warn import pandas as pd from zipline.assets import Asset from zipline.utils.input_validation import expect_types from .utils.enum import enum from zipline._protocol import BarData # noqa # Datasource type should completely determine the other fields of a # message with its type. DATASOURCE_TY...
PypiClean
/onnxruntime_training_cpu-0.1-cp39-cp39-win_amd64.whl/onnxruntime/training/ortmodule/_io.py
import copy import gc import inspect from collections import OrderedDict, abc from logging import Logger from typing import Dict, Iterator, List, Mapping, Optional, Sequence, Tuple import onnx import torch from onnxruntime.training.utils import ( ORTModelInputOutputSchemaType, ORTModelInputOutputType, Pr...
PypiClean
/ovos_workshop-0.0.12a48.tar.gz/ovos_workshop-0.0.12a48/ovos_workshop/skills/mycroft_skill.py
import shutil from abc import ABCMeta from os.path import join, exists from typing import Optional from ovos_bus_client import MessageBusClient, Message from ovos_utils.log import LOG, log_deprecation from ovos_workshop.skills.base import BaseSkill, is_classic_core class _SkillMetaclass(ABCMeta): """ This ...
PypiClean
/tencentcloud_iac_pulumi-0.1.5.tar.gz/tencentcloud_iac_pulumi-0.1.5/tencentcloud_iac_pulumi/monitor/get_data.py
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__ = [ 'GetDataResult', 'AwaitableGetDataResult', 'get_data', 'get_data_output', ] @pulumi.output_type c...
PypiClean
/ampel_core-0.9.0.tar.gz/ampel_core-0.9.0/ampel/t3/stage/project/T3ChannelProjector.py
from typing import Any from collections.abc import Sequence from ampel.types import ChannelId from ampel.log import VERBOSE from ampel.util.logicschema import reduce_to_set from ampel.model.operator.AllOf import AllOf from ampel.model.operator.AnyOf import AnyOf from ampel.model.operator.OneOf import OneOf from ampel....
PypiClean
/ravpy-0.20.tar.gz/ravpy-0.20/README.md
<div align="center"> <img src="https://user-images.githubusercontent.com/36446402/217179360-b39cf6b8-456c-4d40-bedc-afe8eee62611.svg" width="200" height="100"> <h1> Ravpy - The Provider's Library </h1> </div> Introducing Raven Protocol's Python SDK for Providers that allows compute nodes across the world to particip...
PypiClean
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/moment/locale/lv.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
/figaro-1.2.1.tar.gz/figaro-1.2.1/README.md
# [FIGARO - Fast Inference for GW Astronomy, Research & Observations](https://www.youtube.com/watch?v=uJeJ4YiVFz8) FIGARO is an inference code designed to estimate multivariate probability densities given samples from an unknown distribution using a Dirichlet Process Gaussian Mixture Model (DPGMM) as nonparameteric mo...
PypiClean
/Adafruit_CharLCD-1.1.1.tar.gz/Adafruit_CharLCD-1.1.1/Adafruit_CharLCD/Adafruit_CharLCD.py
import time import Adafruit_GPIO as GPIO import Adafruit_GPIO.I2C as I2C import Adafruit_GPIO.MCP230xx as MCP import Adafruit_GPIO.PWM as PWM # Commands LCD_CLEARDISPLAY = 0x01 LCD_RETURNHOME = 0x02 LCD_ENTRYMODESET = 0x04 LCD_DISPLAYCONTROL = 0x08 LCD_CURSORSHIFT = 0x10 LCD_FUNCT...
PypiClean
/ethyca-fides-2.19.0rc6.tar.gz/ethyca-fides-2.19.0rc6/src/fides/api/service/processors/post_processor_strategy/post_processor_strategy_filter.py
from typing import Any, Dict, List, Union import pydash from loguru import logger from fides.api.common_exceptions import FidesopsException from fides.api.schemas.saas.shared_schemas import IdentityParamRef from fides.api.schemas.saas.strategy_configuration import ( FilterPostProcessorConfiguration, ) from fides....
PypiClean
/trading_calendars_korea-0.0.1.tar.gz/trading_calendars_korea-0.0.1/trading_calendars/exchange_calendar_xphs.py
from datetime import time from itertools import chain import pandas as pd from pandas.tseries.holiday import ( DateOffset, GoodFriday, Holiday, MO, ) from pytz import timezone from .common_holidays import ( european_labour_day, new_years_day, maundy_thursday, christmas, christmas_e...
PypiClean
/huawei_fusionsolar-0.0.3.tar.gz/huawei_fusionsolar-0.0.3/src/fusion_solar_py/client.py
import logging import requests from requests.exceptions import JSONDecodeError, HTTPError import time from functools import wraps import pandas from .exceptions import * # global logger object _LOGGER = logging.getLogger(__name__) LOCAL_TIMEZONE = "Europe/Brussels" #TODO infer automatically def logged_in(func): ...
PypiClean
/st_textnav_component-0.0.1.tar.gz/st_textnav_component-0.0.1/st_textnav_component/__init__.py
import os import streamlit as st import streamlit.components.v1 as components import json f =open('text.json') data=json.load(f) # Create a _RELEASE constant. We'll set this to False while we're developing # the component, and True when we're ready to package and distribute it. # (This is, of course, optional - there...
PypiClean
/guildai-0.8.1.tar.gz/guildai-0.8.1/guild/external/pip/_vendor/urllib3/util/ssl_.py
from __future__ import absolute_import import errno import warnings import hmac import socket from binascii import hexlify, unhexlify from hashlib import md5, sha1, sha256 from ..exceptions import SSLError, InsecurePlatformWarning, SNIMissingWarning from ..packages import six SSLContext = None HAS_SNI = False IS_PY...
PypiClean
/vec_search-0.6.3.tar.gz/vec_search-0.6.3/jina/drivers/querylang/queryset/dunderkey.py
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" """ Originally from https://github.com/naiquevin/lookupy The library is provided as-is under the MIT License Copyright (c) 2013 Vineet Naik (naikvin@gmail.com) Permission is hereby granted, free of charge, to any ...
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/nuki/binary_sensor.py
from __future__ import annotations from pynuki.constants import STATE_DOORSENSOR_OPENED from pynuki.device import NukiDevice from homeassistant.components.binary_sensor import ( BinarySensorDeviceClass, BinarySensorEntity, ) from homeassistant.config_entries import ConfigEntry from homeassistant.core import H...
PypiClean
/outrigger-1.1.1.tar.gz/outrigger-1.1.1/docs/subcommands/outrigger_psi.rst
``psi``: Calculate percent spliced-in (Psi/Ψ) scores for your data from the splicing events you created ======================================================================================================= Overview -------- ``outrigger psi`` uses the splicing events created by `outrigger index`_, or, if `outrigger ...
PypiClean
/django-rest-models-2.1.2.tar.gz/django-rest-models-2.1.2/rest_models/storage.py
from __future__ import unicode_literals import datetime import logging import os import threading import unidecode from django.core.files.base import ContentFile from django.core.files.storage import Storage from django.utils.deconstruct import deconstructible from django.utils.http import urlunquote from rest_model...
PypiClean
/read_structure_step-2023.8.30.tar.gz/read_structure_step-2023.8.30/docs/getting_started/index.rst
*************** Getting Started *************** Installation ============ The Read Structure step is probably already installed in your SEAMM environment, but if not or if you wish to check, follow the directions for the `SEAMM Installer`_. The graphical installer is the easiest to use. In the SEAMM conda environment,...
PypiClean
/asgutils-0.0.1-py3-none-any.whl/asg-utils/salesforceController.py
import json import logging import os import urllib from time import sleep import pandas as pd import requests from requests.auth import HTTPProxyAuth from secretsController import loadSecrets from dateController import DateController class SalesforceController: data = [] def __init__(self, credentialsFileP...
PypiClean
/nornir_scrapli-2023.7.30-py3-none-any.whl/nornir_scrapli/tasks/core/send_interactive.py
from typing import List, Optional, Tuple, Union from nornir.core.task import Result, Task def send_interactive( task: Task, interact_events: List[Tuple[str, str, Optional[bool]]], failed_when_contains: Optional[Union[str, List[str]]] = None, privilege_level: str = "", timeout_ops: Optional[float]...
PypiClean
/certora-cli-alpha-eric-kotlin1.8-20230508.22.50.172887.tar.gz/certora-cli-alpha-eric-kotlin1.8-20230508.22.50.172887/certora_cli/certoraRun.py
import sys import time import logging from typing import List, Optional from pathlib import Path scripts_dir_path = Path(__file__).parent.resolve() # containing directory sys.path.insert(0, str(scripts_dir_path)) from Shared.certoraUtils import run_jar_cmd from Shared.certoraUtils import check_results_from_file, is...
PypiClean
/aliyun-mns-sdk-changed-1.1.6.tar.gz/aliyun-mns-sdk-changed-1.1.6/mns/mns_http.py
#Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of th...
PypiClean
/taurenmd-0.11.2.tar.gz/taurenmd-0.11.2/docs/img/README.md
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/88x31.png" /></a><br /><span xmlns:dct="http://purl.org/dc/terms/" href="http://purl.org/dc/dcmitype/StillImage" property="dct:title" rel...
PypiClean