id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/dijkstra-algorithm-0.1.0.tar.gz/dijkstra-algorithm-0.1.0/dijkstra_algorithm/dijkstra_strategy.py
from __future__ import annotations from abc import ABC, abstractmethod from typing import List import heapq import math class UseDijkstraAlgorithm(): def __init__(self, dijkstra_algorithm: DijkstraAlgorithmStrategy) -> None: self._dijkstra_algorithm = dijkstra_algorithm @property def dijkstra_al...
PypiClean
/simapy-4.4.3.tar.gz/simapy-4.4.3/src/sima/riflex/dynamicwinchvariationitem.py
from __future__ import annotations from typing import Dict,Sequence,List from dmt.blueprint import Blueprint from .blueprints.dynamicwinchvariationitem import DynamicWinchVariationItemBlueprint from typing import Dict from sima.sima.moao import MOAO from sima.sima.scriptablevalue import ScriptableValue from typing impo...
PypiClean
/fsleyes-1.8.3.tar.gz/fsleyes-1.8.3/README.rst
FSLeyes ======= .. image:: https://img.shields.io/pypi/v/fsleyes.svg :target: https://pypi.python.org/pypi/fsleyes/ .. image:: https://anaconda.org/conda-forge/fsleyes/badges/version.svg :target: https://anaconda.org/conda-forge/fsleyes .. image:: https://zenodo.org/badge/DOI/10.5281/zenodo.1470761.svg :tar...
PypiClean
/UW-RestClients-bookstore-1.1.1.tar.gz/UW-RestClients-bookstore-1.1.1/uw_bookstore/__init__.py
from uw_bookstore.dao import Bookstore_DAO from restclients_core.exceptions import DataFailureException from uw_bookstore.models import Book, BookAuthor from concurrent.futures import ThreadPoolExecutor import json import re BOOK_PREFIX = "http://uw-seattle.verbacompare.com/m?section_id=" API_ENDPOINT = "/uw/json_utf...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/models/risk_detection_collection_response.py
from __future__ import annotations from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, Union from . import base_collection_pagination_count_response, risk_detection class RiskDetectionCollectionResponse(base_collection_paginatio...
PypiClean
/tootorch-1.9-py3-none-any.whl/tootourch/saliency/ensembles.py
import numpy as np import torch from torch.autograd import Variable from utils import seed_everything, rescale_image # normal distribution def normal_dist(img, m, std): return torch.zeros_like(img).normal_(m, std**2).numpy() def generate_smooth_grad(pre_imgs, targets, n, sigma, model, **kwargs): seed_everyth...
PypiClean
/macrobond-data-api-2.0.1.tar.gz/macrobond-data-api-2.0.1/macrobond_data_api/common/types/entity.py
from dataclasses import dataclass from datetime import datetime from typing import Any, Dict, List, Optional, TYPE_CHECKING, Literal from macrobond_data_api.common.enums import StatusCode if TYPE_CHECKING: # pragma: no cover from pandas import Series from .metadata import Metadata EntityColumnsLiterals = L...
PypiClean
/interlegis.portalmodelo.policy-1.0rc8.tar.gz/interlegis.portalmodelo.policy-1.0rc8/CONTRIBUTORS.rst
Contributors ============ * Érico Andrei * Héctor Velarde * Jean Ferri * Karyn Nassif * Marcio Mazza * `Diogo Garcia`_ (photo of Brasil flag, under licence `CC BY-NC 3.0`_) * `CGU`_ (Acesso à Informação image) * `Wikipedia`_ (RSS icon, OpenData and Coat of Arms of Brazil images) * `Peter D`_ (FAQ icon) .. _`CC BY-NC ...
PypiClean
/saw_client-1.0.0.tar.gz/saw_client-1.0.0/README.md
# SAW Python Client In-development Python client for SAW. Currently tested on Linux and MacOS -- at present there may be some minor issues running the Python Client in a Windows environment that needs addressed (e.g., some Python process management methods are not cross-OS-compatible). This SAW client depends on the ...
PypiClean
/ott-jax-0.4.3.tar.gz/ott-jax-0.4.3/src/ott/solvers/linear/sinkhorn.py
from typing import ( TYPE_CHECKING, Any, Callable, Literal, Mapping, NamedTuple, Optional, Sequence, Tuple, Union, ) import jax import jax.numpy as jnp import jax.scipy as jsp import numpy as np from jax.experimental import host_callback from ott import utils from ott.geometry ...
PypiClean
/pysqlite-2.8.3.tar.gz/pysqlite-2.8.3/lib/test/regression.py
import datetime import unittest import pysqlite2.dbapi2 as sqlite class RegressionTests(unittest.TestCase): def setUp(self): self.con = sqlite.connect(":memory:") def tearDown(self): self.con.close() def CheckPragmaUserVersion(self): # This used to crash pysqlite because this pra...
PypiClean
/baserow_open_api_client-0.0.6.tar.gz/baserow_open_api_client-0.0.6/baserow_open_api_client/models/get_database_table_grid_view_field_aggregation_response_200.py
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union, cast import attr from ..types import UNSET, Unset if TYPE_CHECKING: from ..models.get_database_table_grid_view_field_aggregation_response_200_value_type_3 import ( GetDatabaseTableGridViewFieldAggregationResponse200ValueType3, )...
PypiClean
/lidarwind-0.2.4.tar.gz/lidarwind-0.2.4/docs/api.rst
.. currentmodule:: lidarwind ############# API reference ############# .. _api: The public API resources are listed below. Basic data reader ================= .. autosummary:: :toctree: _autosummary lidar_code.GetLidarData Data Manager ============ .. autosummary:: :toctree: _autosummary/ data_op...
PypiClean
/numericube-twistranet-2.0.0.zip/numericube-twistranet-2.0.0/twistranet/themes/twistheme/static/js/tiny_mce/plugins/table/langs/es_dlg.js
tinyMCE.addI18n('es.table_dlg',{ general_tab:"General", advanced_tab:"Avanzado", general_props:"Propiedades generales", advanced_props:"Propiedades avanzadas", rowtype:"Tipo de fila", title:"Insertar/Modificar tabla", width:"Ancho", height:"Alto", cols:"Cols", rows:"Filas", cellspacing:"Espaciado de celda", cellpadding...
PypiClean
/terminal-chatapp-1.0.2.tar.gz/terminal-chatapp-1.0.2/terminal_chatapp/client.py
import asyncio import json from random import random from secrets import choice from string import digits import websockets from .input import NonBlockingInput from .event import create_message_event from .security import Security class Client: ''' Client API for Terminal Chat Application. ''' def ...
PypiClean
/tjpy_subprocess_util-0.1.3.tar.gz/tjpy_subprocess_util-0.1.3/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install Personal Subprocess Utility Library, run this command in your terminal: .. code-block:: console $ pip install tjpy_subprocess_util This is the preferred method to install Personal Subprocess Utility Library, ...
PypiClean
/hstestaq-0.2.15.tar.gz/hstestaq-0.2.15/aqueduct_executor/operators/connectors/data/execute.py
import platform import sys from typing import Any from aqueduct_executor.operators.connectors.data import common, config, connector, extract from aqueduct_executor.operators.connectors.data.spec import ( AQUEDUCT_DEMO_NAME, AuthenticateSpec, DiscoverSpec, ExtractSpec, LoadSpec, LoadTableSpec, ...
PypiClean
/apex-radio-0.0.5.tar.gz/apex-radio-0.0.5/src/apex/aprs/igate.py
# These imports are for python3 compatibility inside python2 from __future__ import absolute_import from __future__ import division from __future__ import print_function import logging import select import socket import requests from apex.aprs import constants as aprs_constants from apex.aprs import util as aprs_uti...
PypiClean
/opensesame_extension_updater-0.1.12-py3-none-any.whl/opensesame_extensions/updater/updater/locale/pt.ts
<?xml version='1.0' encoding='utf-8'?> <TS version="2.1"> <context> <name>Form</name> <message> <location filename="../update_widget.ui" line="14" /> <source>Form</source> <translation>Formulário</translation> </message> <message> <location filename="../update_widget.ui" ...
PypiClean
/azure-healthinsights-clinicalmatching-1.0.0b1.zip/azure-healthinsights-clinicalmatching-1.0.0b1/azure/healthinsights/clinicalmatching/_serialization.py
# pylint: skip-file # pyright: reportUnnecessaryTypeIgnoreComment=false from base64 import b64decode, b64encode import calendar import datetime import decimal import email from enum import Enum import json import logging import re import sys import codecs from typing import ( Dict, Any, cast, Optional...
PypiClean
/cli_fastweb-1.4.2.3.tar.gz/cli_fastweb-1.4.2.3/fastweb/component/db/mysql.py
import fastweb.util.tool as tool from fastweb.component import Component from fastweb.exception import MysqlError from fastweb.util.tool import Retry, RetryPolicy from fastweb.accesspoint import iostream, pymysql, tornado_mysql, coroutine, Return pymysql.threadsafety = 2 tornado_mysql.threadsafety = 2 DEFAULT_PORT = ...
PypiClean
/cheb3-0.7.6.tar.gz/cheb3-0.7.6/README.rst
.. raw:: html <p align="center"> <img width="300" src="https://raw.githubusercontent.com/YanhuiJessica/cheb3/main/docs/_static/img/cheb3.png"> </p> <p align="center">🐣 web3 CTF tool based on web3.py</p> <p align="center"> <a href="https://cheb3.readthedocs.io/en/latest/index.html"> ...
PypiClean
/pz-rail-bpz-0.1.1.tar.gz/pz-rail-bpz-0.1.1/examples/BPZ_lite_demo.ipynb
# rail_bpz example notebook authors: Sam Schmidt<br> Last successfully run: Mar 21, 2023<br> This notebook will go through a simple example of running rail_bpz estimate and inform stages with a small set of test data that ships with the RAIL package. ``` import os import qp import pickle import matplotlib.pyplot as...
PypiClean
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/aro/_rbac.py
import uuid from azure.cli.core.commands.client_factory import get_mgmt_service_client from azure.cli.core.commands.client_factory import get_subscription_id from azure.cli.core.profiles import get_sdk from azure.cli.core.profiles import ResourceType from knack.log import get_logger from msrest.exceptions import Vali...
PypiClean
/points_fl-1.0.4-py3-none-any.whl/points_fl/base.py
from functools import wraps from types import MethodType import grpc from points_fl.proto import ( federated_learning_pb2, federated_learning_pb2_grpc, permission_pb2_grpc, permission_pb2, log_provider_pb2_grpc, inference_pb2_grpc, ) def verify_login(cls): orig_getattribute = cls.__getat...
PypiClean
/bdfrrrr-2.6.2.tar.gz/bdfrrrr-2.6.2/bdfr/completion.py
import subprocess from os import environ from pathlib import Path import appdirs class Completion: def __init__(self, shell: str): self.shell = shell self.env = environ.copy() self.share_dir = appdirs.user_data_dir() self.entry_points = ["bdfr", "bdfr-archive", "bdfr-clone", "bdf...
PypiClean
/python-decouple-aws-0.3.2.tar.gz/python-decouple-aws-0.3.2/README.rst
Python Decouple AWS =================== .. image:: https://img.shields.io/pypi/v/python-decouple-aws.svg :target: https://pypi.python.org/pypi/python-decouple-aws/ :alt: Latest PyPI version *Python Decouple AWS* helps you to organize and access sensitive information on AWS Secrets Manager. It also makes it ...
PypiClean
/brion-3.3.0.tar.gz/brion-3.3.0/deps/libsonata/extlib/Catch2/docs/opensource-users.md
<a id="top"></a> # Open Source projects using Catch Catch is great for open source. With its [liberal license](../LICENSE.txt) and single-header, dependency-free, distribution it's easy to just drop the header into your project and start writing tests - what's not to like? As a result Catch is now being used in many ...
PypiClean
/cupy_cuda112-10.6.0-cp37-cp37m-win_amd64.whl/cupyx/lapack.py
import numpy as _numpy import cupy as _cupy from cupy_backends.cuda.libs import cublas as _cublas from cupy_backends.cuda.libs import cusolver as _cusolver from cupy.cuda import device as _device def gesv(a, b): """Solve a linear matrix equation using cusolverDn<t>getr[fs](). Computes the solution to a syst...
PypiClean
/mitosheet3-0.3.281.tar.gz/mitosheet3-0.3.281/mitosheet/labextension/static/remoteEntry.ae644ab91f69ef89fc77.js
var _JUPYTERLAB;(()=>{"use strict";var e,r,t,n,o,i,a,u,l,s,f,d,c,p,h,v={699:(e,r,t)=>{var n={"./index":()=>Promise.all([t.e(338),t.e(922)]).then((()=>()=>t(922))),"./extension":()=>t.e(827).then((()=>()=>t(827)))},o=(e,r)=>(t.R=r,r=t.o(n,e)?n[e]():Promise.resolve().then((()=>{throw new Error('Module "'+e+'" does not ex...
PypiClean
/MarkDo-0.3.0.tar.gz/MarkDo-0.3.0/markdo/static/bower/codemirror/mode/htmlmixed/htmlmixed.js
CodeMirror.defineMode("htmlmixed", function(config) { var htmlMode = CodeMirror.getMode(config, {name: "xml", htmlMode: true}); var jsMode = CodeMirror.getMode(config, "javascript"); var cssMode = CodeMirror.getMode(config, "css"); function html(stream, state) { var style = htmlMode.token(stream, state.htm...
PypiClean
/journal_search-1.0.0.tar.gz/journal_search-1.0.0/src/journal_search/__main__.py
import os import os.path as osp import traceback from collections import OrderedDict from pathlib import Path import pandas as pd from flask import Flask, jsonify, render_template, request from flask_cors import CORS from icecream import ic from loguru import logger from . import utils app = Flask(__name__, template...
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/solax/sensor.py
from __future__ import annotations import asyncio from datetime import timedelta from solax import RealTimeAPI from solax.discovery import InverterError from solax.units import Units from homeassistant.components.sensor import ( SensorDeviceClass, SensorEntity, SensorEntityDescription, SensorStateCla...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/apimanagement/v20180601preview/get_subscription.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ 'GetSubscriptionResult', 'AwaitableGetSubscriptionResult', 'get_subscription', ] @pulumi.output_type class GetSubscriptionResult: """ Subs...
PypiClean
/meson-1.2.1-py3-none-any.whl/mesonbuild/compilers/mixins/ccrx.py
# 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, software # distributed under the...
PypiClean
/nle-language-wrapper-0.2.0.tar.gz/nle-language-wrapper-0.2.0/nle/DATASET.md
# Dungeon And Data Instructions and Tutorials for the NetHack Learning Dataset ## License This data is licensed under the NetHack General Public License - based on the GPL-style BISON license. It is the license used for the game of NetHack, and can be found [here](https://github.com/facebookresearch/nle/blob/main/LI...
PypiClean
/automatic-deployer-0.3.3.tar.gz/automatic-deployer-0.3.3/deployer/manipulators/command_manipulator.py
import os import platform import subprocess import time class CommandManipulator: wheel = ['|', '/', '-', '\\'] def __init__(self, run_as_root: bool = False): if platform.system() == 'Linux' and run_as_root and os.geteuid() != 0: print('This script must be run as root') raise ...
PypiClean
/django-rss-plugin-0.1.0.tar.gz/django-rss-plugin-0.1.0/CHANGES.rst
Change History -------------- - 10/05/2015, Version 0.1.0 Merged fix from Chive to fix cms plugin table names - 03/04/2015, Version 0.0.9 Added socket timeout settings when fetching feed. - 01/01/2015, Version 0.0.8 Added customized template support, thanks to Felix-neko contribution. - 2/13/2013, Ve...
PypiClean
/tensorflow_rocm_enhanced-2.4.3-cp36-cp36m-manylinux1_x86_64.whl/tensorflow/python/tpu/client/client.py
"""Cloud TPU Client.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import datetime import json import logging import os import time from absl import flags from concurrent import futures from six.moves.urllib import request from six.moves.urllib.error ...
PypiClean
/reqmon-2.2.4rc3.tar.gz/reqmon-2.2.4rc3/src/python/WMCore/Services/DBS/DBSErrors.py
import json from WMCore.Services.DBS.ProdException import ProdException def formatEx(excepInst): """ _formatEx_ given a DbdException instance, generate a simple message from it """ msg = "%s:%s %s" % (excepInst.__class__.__name__, excepInst.getErrorMessage(), ...
PypiClean
/balsam_flow-0.7.0a10-py3-none-any.whl/balsam/server/models/crud/sessions.py
import logging from datetime import datetime, timedelta from typing import Any, Dict, List, Tuple from sqlalchemy import Float, func, orm from sqlalchemy.sql import Select, cast, select, update from balsam import schemas from balsam.server import ValidationError, models from balsam.server.routers.filters import Sessi...
PypiClean
/easy-audit-farrux-0.0.1.tar.gz/easy-audit-farrux-0.0.1/easyauditfarrux/utils.py
from __future__ import unicode_literals from uuid import UUID from django.conf import settings from django.core.exceptions import ObjectDoesNotExist from django.db.models import NOT_PROVIDED, DateTimeField from django.utils import timezone from django.utils.encoding import smart_str def get_field_value(obj, field):...
PypiClean
/pulumi_aws_native-0.75.1a1693503310.tar.gz/pulumi_aws_native-0.75.1a1693503310/pulumi_aws_native/emr/get_instance_fleet_config.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = [ 'GetInstanceFleetConfigResult', 'AwaitableGetInstanceFleetConfigResult', 'get_instance_fleet_config', 'get_instance_fleet_config_ou...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/methylocapsaaurea.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def MethylocapsaAurea( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_graph_kwargs: Dict...
PypiClean
/distil-primitives-0.8.3.tar.gz/distil-primitives-0.8.3/distil/modeling/helpers.py
import numpy as np import pandas as pd from scipy.optimize import minimize from .metrics import metrics # --------------------------------------------------------- # F1 macro adjusters def _adjusted_f1_macro(probs, y, bias): return metrics["f1Macro"](y, (probs + bias).argmax(axis=-1)) def _adjust_f1_inner(pr...
PypiClean
/coloc_sat-1.0.6.tar.gz/coloc_sat-1.0.6/docs/_build/html/_sources/index.rst
Welcome to sar_coloc's documentation! ====================================== Reference ......... * :doc:`api` Get in touch ------------ Last documentation build: |today| - Report bugs, suggest features or view the source code `on github`_. .. _on github: https://github.com/umr-lops/coloc_sat .. toctree:: :max...
PypiClean
/wolk-gateway-module-1.0.9.tar.gz/wolk-gateway-module-1.0.9/wolk_gateway_module/protocol/firmware_update_protocol.py
# Copyright 2019 WolkAbout Technology s.r.o. # # 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 l...
PypiClean
/mxnet_cu112-2.0.0b1-py3-none-manylinux2014_x86_64.whl/mxnet/optimizer/contrib.py
"""Contrib optimizers.""" from ..ndarray import (clip, contrib, mean, sqrt, square, zeros) from .optimizer import Optimizer, register __all__ = ['GroupAdaGrad'] @register class GroupAdaGrad(Optimizer): """Adagrad optimizer with row-wise learning rates. This class implements the AdaGrad optimizer described i...
PypiClean
/pyAya-2.0.0-py3-none-any.whl/geezlibs/methods/chats/promote_chat_member.py
from typing import Union import geezlibs from geezlibs import raw, types, errors class PromoteChatMember: async def promote_chat_member( self: "geezlibs.Client", chat_id: Union[int, str], user_id: Union[int, str], privileges: "types.ChatPrivileges" = None, ) -> bool: ...
PypiClean
/azure_mgmt_managednetworkfabric-1.0.0-py3-none-any.whl/azure/mgmt/managednetworkfabric/aio/operations/_external_networks_operations.py
from io import IOBase from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.async_paging import AsyncItemPaged, AsyncList from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ...
PypiClean
/pyage-forams-1.0.5.tar.gz/pyage-forams-1.0.5/pyage_forams/solutions/environment.py
import logging from random import randint, choice, random from pyage.core.inject import Inject from pyage_forams.solutions.cell import Cell logger = logging.getLogger(__name__) class AbstractEnvironment(object): @Inject("insolation_meter", "initial_algae_probability", "size", "algae_growth_probability") de...
PypiClean
/MyoSuite-2.0.1-py3-none-any.whl/myosuite/envs/myo/base_v0.py
from myosuite.envs import env_base import numpy as np class BaseV0(env_base.MujocoEnv): MYO_CREDIT = """\ MyoSuite: A contact-rich simulation suite for musculoskeletal motor control Vittorio Caggiano, Huawei Wang, Guillaume Durandau, Massimo Sartori, Vikash Kumar L4DC-2019 | https://sites.goo...
PypiClean
/Nikola-8.2.4-py3-none-any.whl/nikola/data/samplesite/posts/1.rst
.. title: Welcome to Nikola .. slug: welcome-to-nikola .. date: 2012-03-30 23:00:00 UTC-03:00 .. tags: nikola, python, demo, blog .. author: Roberto Alsina .. link: https://getnikola.com/ .. description: .. category: nikola .. figure:: https://farm1.staticflickr.com/138/352972944_4f9d568680.jpg :target: https://far...
PypiClean
/realms-wiki-0.9.3.tar.gz/realms-wiki-0.9.3/realms/static/vendor/ace-builds/src-min/ext-modelist.js
define("ace/ext/modelist",["require","exports","module"],function(e,t,n){"use strict";function i(e){var t=a.text,n=e.split(/[\/\\]/).pop();for(var i=0;i<r.length;i++)if(r[i].supportsFile(n)){t=r[i];break}return t}var r=[],s=function(e,t,n){this.name=e,this.caption=t,this.mode="ace/mode/"+e,this.extensions=n;var r;/\^/....
PypiClean
/paddle-pipelines-0.6.0.tar.gz/paddle-pipelines-0.6.0/pipelines/data_handler/samples.py
from typing import Union, Optional, List import logging import numpy as np logger = logging.getLogger(__name__) class Sample: """A single training/test sample. This should contain the input and the label. Is initialized with the human readable clear_text. Over the course of data preprocessing, this object ...
PypiClean
/misp_lib_stix2-3.0.1.1-py3-none-any.whl/stix2/datastore/taxii.py
from requests.exceptions import HTTPError from stix2 import v20, v21 from stix2.base import _STIXBase from stix2.datastore import ( DataSink, DataSource, DataSourceError, DataStoreMixin, ) from stix2.datastore.filters import Filter, FilterSet, apply_common_filters from stix2.parsing import parse from stix2.utils ...
PypiClean
/zyte-api-0.4.5.tar.gz/zyte-api-0.4.5/zyte_api/aio/client.py
import asyncio import time from functools import partial from typing import Optional, Iterator, List import aiohttp from aiohttp import TCPConnector from tenacity import AsyncRetrying from .errors import RequestError from .retry import zyte_api_retrying from ..apikey import get_apikey from ..constants import API_URL,...
PypiClean
/stack-kafka-python-1.4.14.tar.gz/stack-kafka-python-1.4.14/kafka/future.py
from __future__ import absolute_import import functools import logging log = logging.getLogger(__name__) class Future(object): error_on_callbacks = False # and errbacks def __init__(self): self.is_done = False self.value = None self.exception = None self._callbacks = [] ...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/groups/item/calendar_view/item/instances/item/exception_occurrences/item/decline/decline_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
/scirocco-pyclient-v2.0.0.linux-x86_64.tar.gz/usr/local/lib/python3.4/dist-packages/sciroccoclient/systemdata.py
from urllib3._collections import HTTPHeaderDict class SystemDataHydrator: def hydrate_from_headers(self, system_data_entity, http_input_headers): for k, v in http_input_headers.items(): attr_name = k.replace(SystemDataDescriptor.prefix + '-', '') attr_name = attr_name.lower().rep...
PypiClean
/nlopt-2.4.2.post2.tar.gz/nlopt-2.4.2.post2/bobyqa/README.orig
=========================================================================== On 8/13/09 added the paper on BOBYQA =========================================================================== For simplicity, the Makefi;e has been replaced by a one-line compile script "comp" which needs to be adjusted if the compiler name...
PypiClean
/antares-0.3.23.1-py3-none-manylinux1_x86_64.whl/antares_core/3rdparty/tvm/python/tvm/autotvm/task/task.py
import functools import numpy as np from tvm import runtime from tvm.ir import container from tvm.target import Target from tvm.te import placeholder, tensor from tvm.tir import expr from ..utils import get_const_int, get_const_tuple from .dispatcher import ApplyConfig, DispatchContext from .space import ConfigSpac...
PypiClean
/yt-dlp-2023.7.6.tar.gz/yt-dlp-2023.7.6/yt_dlp/extractor/telequebec.py
from .common import InfoExtractor from ..compat import compat_str from ..utils import ( int_or_none, smuggle_url, try_get, unified_timestamp, ) class TeleQuebecBaseIE(InfoExtractor): BRIGHTCOVE_URL_TEMPLATE = 'http://players.brightcove.net/%s/%s_default/index.html?videoId=%s' @staticmethod ...
PypiClean
/atx-webide-0.1.0.tar.gz/atx-webide-0.1.0/atxweb/static/blockly/python_compressed.js
'use strict'; // Copyright 2012 Google Inc. Apache License 2.0 Blockly.Python=new Blockly.Generator("Python");Blockly.Python.addReservedWords("and,as,assert,break,class,continue,def,del,elif,else,except,exec,finally,for,from,global,if,import,in,is,lambda,not,or,pass,print,raise,return,try,while,with,yield,True,False...
PypiClean
/larvaworld-1.2-py3-none-any.whl/lib/sim/batch/batch.py
import logging import os import time import numpy as np from pypet import Environment, load_trajectory, pypetconstants from lib.aux.dictsNlists import flatten_dict from lib.conf.base.dtypes import null_dict # from lib.sim.batch.aux import config_traj, prepare_traj from lib.sim.batch.aux import grid_search_dict, delete...
PypiClean
/symphony_binary_confusion_matrix-1.0.2.tar.gz/symphony_binary_confusion_matrix-1.0.2/examples/widget-demo.ipynb
# Binary Confusion Matrix Demo Run this noteboook to test your widget, and create the initial directory to be able to run `yarn dev`. ``` %load_ext autoreload %autoreload 2 import pandas as pd import symphony_ui from symphony_binary_confusion_matrix import SymphonyBinaryConfusionMatrix ``` ### Create/Import Data ...
PypiClean
/py_tgcalls_kaizoku-0.9.5-cp39-cp39-win_amd64.whl/pytgcalls/node_modules/tar/lib/large-numbers.js
'use strict' // Tar can encode large and negative numbers using a leading byte of // 0xff for negative, and 0x80 for positive. const encode = (num, buf) => { if (!Number.isSafeInteger(num)) { // The number is so large that javascript cannot represent it with integer // precision. throw Error('cannot encode n...
PypiClean
/pacha-0.3.1.tar.gz/pacha-0.3.1/docs/EN/source/daemon.rst
.. _daemon: Daemonization =============== Pacha is able to run on the background with the ``--daemon-start`` flag. However, you may want to do this automatically in your environment. Here is an example ``INIT`` script that you could use (modify to fit your needs):: #! /bin/sh ### BEGIN INIT INFO # Provid...
PypiClean
/django-db-snapshot-1.0.b.tar.gz/django-db-snapshot-1.0.b/dbsnapshot/models.py
from django.utils.translation import ugettext_lazy as _ from django.db import models from dbsnapshot import defaults, client class Server(models.Model): host = models.IPAddressField(_('Remote ip')) port = models.PositiveIntegerField( _('Remote port'), default=defaults.SERVER_PORT) days = models.P...
PypiClean
/schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/HearingImpairedSupported.py
from __future__ import annotations from datetime import * from time import * from typing import * from pydantic import * class HearingImpairedSupported(BaseModel): """Uses devices to support users with hearing impairments. References: https://schema.org/HearingImpairedSupported Note: Mo...
PypiClean
/pyElectra-1.0.5.tar.gz/pyElectra-1.0.5/README.md
# pyElectra ![PyPI](https://img.shields.io/pypi/v/pyelectra?label=pypi%20package) ![PyPI - Downloads](https://img.shields.io/pypi/dm/pyelectra) Python library to control Electra Smart Air Condtioiner devices Usage: ```python import asyncio import aiohttp from electrasmart import * async def main(): session...
PypiClean
/setuptools_scm-7.1.0-py3-none-any.whl/setuptools_scm/version.py
from __future__ import annotations import os import re import warnings from datetime import date from datetime import datetime from datetime import timezone from typing import Any from typing import Callable from typing import cast from typing import Iterator from typing import List from typing import Match from typin...
PypiClean
/Nimbus_Splash-1.1.0.tar.gz/Nimbus Splash-1.1.0/nimbus_splash/cli.py
import argparse from . import job import subprocess import os import re import xyz_py as xyzp from . import utils as ut def gen_job_func(uargs): ''' Wrapper for CLI gen_job call Parameters ---------- uargs : argparser object User arguments Returns ------- None ''' ...
PypiClean
/bq_sqoop-0.0.13-py3-none-any.whl/bqsqoop/extractor/elasticsearch/helper.py
import os import uuid import elasticsearch import pandas as pd from bqsqoop.utils import parquet_util from bqsqoop.utils.progressbar_util import ProgressBar class ESHelper(): @classmethod def get_fields(self, es_hosts, index): _es = self._get_es_client(es_hosts) _mappings = _es.indices.get_ma...
PypiClean
/farm_haystack-1.20.0rc1-py3-none-any.whl/haystack/nodes/other/join_docs.py
from collections import defaultdict import logging from math import inf from typing import Optional, List from haystack.schema import Document from haystack.nodes.other.join import JoinNode logger = logging.getLogger(__name__) class JoinDocuments(JoinNode): """ A node to join documents outputted by multipl...
PypiClean
/stellar_sdk-9.0.0a1-py3-none-any.whl/stellar_sdk/xdr/muxed_account.py
from __future__ import annotations import base64 from xdrlib3 import Packer, Unpacker from .crypto_key_type import CryptoKeyType from .muxed_account_med25519 import MuxedAccountMed25519 from .uint256 import Uint256 __all__ = ["MuxedAccount"] class MuxedAccount: """ XDR Source Code:: union MuxedAc...
PypiClean
/aliyun-python-sdk-rds-test-1.0.0.tar.gz/aliyun-python-sdk-rds-test-1.0.0/aliyunsdkrds/request/v20140815/ModifyBackupPolicyRequest.py
from aliyunsdkcore.request import RpcRequest class ModifyBackupPolicyRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'Rds', '2014-08-15', 'ModifyBackupPolicy') def get_ResourceOwnerId(self): return self.get_query_params().get('ResourceOwnerId') def set_ResourceOwnerId(self,ResourceOwnerId)...
PypiClean
/incuna-storages-1.1.tar.gz/incuna-storages-1.1/README.rst
Incuna Storages =============== A collection of django storage backends primarily used to set the location of files in the remote backend. Installation ------------ Using your favourite package manager: :: pip install incuna_storages Add to your ``INSTALLED_APPS``: :: ... 'incuna_storages', ... U...
PypiClean
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/philips_js/remote.py
import asyncio from haphilipsjs.typing import SystemType from homeassistant.components.remote import ( ATTR_DELAY_SECS, ATTR_NUM_REPEATS, DEFAULT_DELAY_SECS, RemoteEntity, ) from . import LOGGER, PhilipsTVDataUpdateCoordinator from .const import CONF_SYSTEM, DOMAIN async def async_setup_entry(hass...
PypiClean
/pragma_sdk-1.0.0b2.tar.gz/pragma_sdk-1.0.0b2/pragma/core/client.py
import logging from typing import Optional from starknet_py.net.account.account import Account from starknet_py.net.signer.stark_curve_signer import KeyPair, StarkCurveSigner from pragma.core.abis import ABIS from pragma.core.contract import Contract from pragma.core.mixins import ( NonceMixin, OracleMixin, ...
PypiClean
/oarepo-oai-pmh-harvester-4.0.23.tar.gz/oarepo-oai-pmh-harvester-4.0.23/README.md
# OARepo OAI-PMH harvester An OAI-PMH harvesing library for Invenio 3.5+. The library provides initial transformation of OAI-PMH payload to an intermediary json representation which is later on transformed by a specific transformer to the format of invenio records. Due to their generic nature, these transformers ar...
PypiClean
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/39562.3b35f5840c8be77b524e.min.js
"use strict";(self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[39562],{58309:function(n,e,o){var t=o(87537),A=o.n(t),i=o(23645),a=o.n(i),r=o(61667),d=o.n(r),l=new URL(o(60168),o.b),p=new URL(o(24333),o.b),s=a()(A()),c=d()(l),b=d()(p);s.push([n.id,'/*!\n * Pikaday\n * Copyr...
PypiClean
/wagtail-svg-images-0.1.22.tar.gz/wagtail-svg-images-0.1.22/wagtail_svg_images/templatetags/svg_tags.py
import re from collections import namedtuple from copy import copy from django import template from django.template import TemplateSyntaxError from django.template.context import ContextDict from django.utils.safestring import mark_safe from wagtail.core.blocks import StructValue from wagtail.images import get_image_m...
PypiClean
/merge_hris_client-1.2.1-py3-none-any.whl/MergeHRISClient/model/paginated_employee_payroll_run_list.py
import re # noqa: F401 import sys # noqa: F401 from MergeHRISClient.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, ...
PypiClean
/BcdaMenu-2019.5.0.tar.gz/BcdaMenu-2019.5.0/README.rst
######## bcdamenu ######## Creates a GUI menu button to start common beam line software Provides ######## * **bcdamenu** : the button menu Package Information ################### * **author** Pete R. Jemian * **email** jemian@anl.gov * **copyright** 2009-2019, Pete R. Jemian * **license** ...
PypiClean
/rxn_opennmt_py-1.1.4-py3-none-any.whl/onmt/utils/parse.py
import configargparse as cfargparse import os import torch import onmt.opts as opts from onmt.utils.logging import logger class ArgumentParser(cfargparse.ArgumentParser): def __init__( self, config_file_parser_class=cfargparse.YAMLConfigFileParser, formatter_class=cfargparse....
PypiClean
/taipy-core-2.4.0.tar.gz/taipy-core-2.4.0/src/taipy/core/data/_data_model.py
import dataclasses from dataclasses import dataclass from datetime import datetime from typing import Any, Dict, List, Optional, cast from taipy.config.common.scope import Scope from .._version._utils import _version_migration from ..common._warnings import _warn_deprecated from .data_node_id import Edit def _to_e...
PypiClean
/csle_common-0.3.8.tar.gz/csle_common-0.3.8/src/csle_common/dao/emulation_config/config.py
import io import json import os from typing import Any, Dict, Union import csle_common.constants.constants as constants from csle_base.json_serializable import JSONSerializable from csle_common.dao.emulation_config.cluster_config import ClusterConfig class Config(JSONSerializable): """ A DTO Class representi...
PypiClean
/fds.sdk.BondsAPIforDigitalPortals-0.10.2-py3-none-any.whl/fds/sdk/BondsAPIforDigitalPortals/model/debt_instrument_notation_screener_search_data_traded_value_days30_average.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.BondsAPIforDigitalPortals.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,...
PypiClean
/django-connectwise-1.4.4.tar.gz/django-connectwise-1.4.4/djconnectwise/migrations/0065_auto_20180809_1124.py
from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): dependencies = [ ('djconnectwise', '0064_auto_20180808_1214'), ] operations = [ migrations.CreateModel( name='Calendar', fields=[ ('id...
PypiClean
/golismero-2.0.3.tar.gz/golismero-2.0.3/thirdparty_libs/geopy/point.py
import re from itertools import islice from geopy import util, units, format class Point(object): """ A geodetic point with latitude, longitude, and altitude. Latitude and longitude are floating point values in degrees. Altitude is a floating point value in kilometers. The reference level is n...
PypiClean
/cdktf_cdktf_provider_snowflake-9.0.0-py3-none-any.whl/cdktf_cdktf_provider_snowflake/view_grant/__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 ViewGrant( _cdktf_9a9027ec.TerraformResource, ...
PypiClean
/toontown.py-2.0.1-py3-none-any.whl/toontown/http/base.py
from abc import ABC, abstractmethod from typing import Any, ClassVar, Optional, Union import asyncio import logging import time import aiohttp import requests from toontown.exceptions import * __all__ = ['BaseHTTPClient', 'BaseAsyncHTTPClient', 'BaseSyncHTTPClient'] Session = Union[aiohttp.ClientSession, requests...
PypiClean
/django-admin-log-control-1.2.0.tar.gz/django-admin-log-control-1.2.0/adminlogcontrol/settings.py
import os # Build paths inside the project like this: os.path.join(BASE_DIR, ...) BASE_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) # Quick-start development settings - unsuitable for production # See https://docs.djangoproject.com/en/3.0/howto/deployment/checklist/ # SECURITY WARNING: keep the s...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/cisco/nxos/plugins/module_utils/network/nxos/config/ospfv3/ospfv3.py
from __future__ import absolute_import, division, print_function __metaclass__ = type """ The nxos_ospfv3 config file. It is in this file where the current configuration (as dict) is compared to the provided configuration (as dict) and the command set necessary to bring the current configuration to its desired end-...
PypiClean
/karld-0.3.1.tar.gz/karld-0.3.1/README.rst
How To Data ====================== 1. Split data. 2. Create a generator that will take the data as an iterator, yielding key,value pairs. 3. Sort each list of key/value pairs by the key. 4. Use heap to merge lists of key/value pairs by the key. 5. Group key/value pairs by the key. 6. Reduce each key grouped values to ...
PypiClean
/paddle_upgrade_tool-0.0.27.tar.gz/paddle_upgrade_tool-0.0.27/fissix/refactor.py
__author__ = "Guido van Rossum <guido@python.org>" # Python imports import io import os import pkgutil import sys import logging import operator import collections from itertools import chain # Local imports from .pgen2 import driver, tokenize, token from .fixer_util import find_root from . import pytree, pygram fro...
PypiClean
/mmdet_taeuk4958-1.0.9-py3-none-any.whl/mmdet_taeuk4958/models/necks/hrfpn.py
import torch import torch.nn as nn import torch.nn.functional as F from mmcv.cnn import ConvModule from mmcv.runner import BaseModule from torch.utils.checkpoint import checkpoint from ..builder import NECKS @NECKS.register_module() class HRFPN(BaseModule): """HRFPN (High Resolution Feature Pyramids) paper:...
PypiClean
/guildai-0.8.1.tar.gz/guildai-0.8.1/guild/external/pip/_vendor/chardet/chardistribution.py
from .euctwfreq import (EUCTW_CHAR_TO_FREQ_ORDER, EUCTW_TABLE_SIZE, EUCTW_TYPICAL_DISTRIBUTION_RATIO) from .euckrfreq import (EUCKR_CHAR_TO_FREQ_ORDER, EUCKR_TABLE_SIZE, EUCKR_TYPICAL_DISTRIBUTION_RATIO) from .gb2312freq import (GB2312_CHAR_TO_FREQ_ORDER, GB2312_TABLE_SI...
PypiClean
/dojo-google-0.0.21.tar.gz/dojo-google-0.0.21/dojo_google/vanilla/datasets/storage_files.py
from __future__ import absolute_import, print_function, unicode_literals import io import base64 import googleapiclient.discovery from dojo.vanilla.dataset import VanillaDataset class GoogleStorageFiles(VanillaDataset): """Extract contents from keys that match the given bucket and path prefix from Google Storag...
PypiClean