id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/ngxtop-0.0.3.tar.gz/ngxtop-0.0.3/README.rst
================================================================ ``ngxtop`` - **real-time** metrics for nginx server (and others) ================================================================ **ngxtop** parses your nginx access log and outputs useful, ``top``-like, metrics of your nginx server. So you can tell what...
PypiClean
/noia-sdk-0.1.1.tar.gz/noia-sdk-0.1.1/noia_sdk/configuration.py
from __future__ import absolute_import import copy import logging import multiprocessing import sys import six import urllib3 from six.moves import http_client as httplib class TypeWithDefault(type): def __init__(cls, name, bases, dct): super(TypeWithDefault, cls).__init__(name, bases, dct) cls....
PypiClean
/grid_utils-0.0.33-py3-none-any.whl/grid_utils/dimension/grid_dim.py
import six import re import numpy as np from krux.types.check import * __all__ = [ 'GridDim', 'GridDimParseSerializeMixin', 'GridDimLUTMixin', 'GridDimBase', ] class GridDimParseSerializeMixin(object): """requires: name""" parser = None serializer = None def parse(self, value): ...
PypiClean
/Py-Trading-0.4.9.11.tar.gz/Py-Trading-0.4.9.11/py_trading/download_tickers.py
from requests import get from bs4 import BeautifulSoup from datetime import datetime import pickle from pathlib import Path import pandas as pd # IMPLEMENT THREADING # results = [executor.submit(test_stocks, i, n_threads) for i in range(n_threads)] # Can try executor.map() # for f in concurrent.futur...
PypiClean
/Assembly-1.3.0.tar.gz/Assembly-1.3.0/assembly/_extensions.py
import os import re import six import copy import logging import markdown import flask_s3 import flask_mail import ses_mailer import flask_login import flask_kvsession from jinja2 import Markup from jinja2.ext import Extension from urllib.parse import urlparse from jinja2.nodes import CallBlock from jinja2 import Templ...
PypiClean
/eko_probability01-0.5.tar.gz/eko_probability01-0.5/eko_probability01/Gaussiandistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Gaussian(Distribution): """ Gaussian distribution class for calculating and visualizing a Gaussian distribution. Attributes: mean (float) representing the mean value of the distribution stdev (float) representing ...
PypiClean
/codemagic_cli_tools-0.42.1-py3-none-any.whl/codemagic/tools/_app_store_connect/arguments.py
import argparse import json import pathlib import re import shlex from argparse import ArgumentTypeError from collections import Counter from dataclasses import dataclass from dataclasses import fields from datetime import datetime from datetime import timezone from typing import List from typing import Optional from t...
PypiClean
/idaes-pse-2.2.0rc0.tar.gz/idaes-pse-2.2.0rc0/idaes/apps/matopt/materials/lattices/perovskite_lattice.py
from copy import deepcopy import numpy as np from .unit_cell_lattice import UnitCell, UnitCellLattice from ..geometry import RectPrism from ..tiling import CubicTiling from ..transform_func import ScaleFunc, RotateFunc, ReflectFunc class PerovskiteLattice(UnitCellLattice): RefA = 1 RefB = 1 RefC = 1 ...
PypiClean
/census_consumer_complaint_ineuron-0.0.1-py3-none-any.whl/census_consumer_complaint_custom_component/component.py
from typing import Optional, Union from tfx import types from tfx.components.example_gen import driver from tfx.components.example_gen import utils from tfx.dsl.components.base import base_beam_component from tfx.dsl.components.base import base_beam_executor from tfx.dsl.components.base import executor_spec from tfx.o...
PypiClean
/politico-civic-demography-0.1.2.tar.gz/politico-civic-demography-0.1.2/README.md
![POLITICO](https://rawgithub.com/The-Politico/src/master/images/logo/badge.png) # django-politico-civic-demography Gather U.S. Census data for elections, the POLITICO way. ### Quickstart 1. Install the app. ``` $ pip install django-politico-civic-demography ``` 2. Add the app to your Django project and con...
PypiClean
/airsim_emulator-1.0.1.tar.gz/airsim_emulator-1.0.1/airsim_emulator/run_emulator.py
import airsim_adaptor airsim = airsim_adaptor import setup_path from pynput.keyboard import Listener, Events import time import threading from multiprocessing import Process, Queue import pprint from visca_adapter import viscaAdapter from sBGC_adapter import sBGCAdaper import math # connect to the AirSim simulator c...
PypiClean
/pyGSTi-0.9.11.2-cp37-cp37m-win_amd64.whl/pygsti/forwardsims/forwardsim.py
import collections as _collections import warnings as _warnings import numpy as _np from pygsti.layouts.cachedlayout import CachedCOPALayout as _CachedCOPALayout from pygsti.layouts.copalayout import CircuitOutcomeProbabilityArrayLayout as _CircuitOutcomeProbabilityArrayLayout from pygsti.baseobjs import outcomelabe...
PypiClean
/gevent-20.9.0.tar.gz/gevent-20.9.0/deps/README.rst
================================ Managing Embedded Dependencies ================================ * Generate patches with ``git diff --patch --minimal -b`` Updating libev ============== Download and unpack the tarball into libev/. Remove these extra files:: rm -f libev/Makefile.am rm -f libev/Symbols.ev rm -f...
PypiClean
/nni_daily-1.5.2005180104-py3-none-manylinux1_x86_64.whl/nni_daily-1.5.2005180104.data/data/nni/node_modules/rx/ts/core/concurrency/scheduler.ts
module Rx { export interface IScheduler { /** Gets the current time according to the local machine's system clock. */ now(): number; /** * Schedules an action to be executed. * @param state State passed to the action to be executed. * @param {Function} action A...
PypiClean
/english-words-2.0.1.tar.gz/english-words-2.0.1/README.md
[![PyPI](https://img.shields.io/pypi/v/english-words.svg)](https://pypi.org/project/english-words/) # english-words-py Returns sets of English words created by combining different words lists together. Example usage: to get a set of English words from the "web2" word list, including only lower-case letters, you write...
PypiClean
/tiddlywebplugins.openid2-0.9.tar.gz/tiddlywebplugins.openid2-0.9/tiddlywebplugins/openid2.py
import logging import urlparse from httpexceptor import HTTP302 from openid import oidutil from openid.consumer import consumer from tiddlyweb.web.challengers import ChallengerInterface from tiddlyweb.web.util import server_base_url, server_host_url, make_cookie LOGGER = logging.getLogger(__name__) def log_messa...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/signalrservice/signal_r_private_endpoint_connection.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs from ._enums import * from ._inputs import * __all__ = ['SignalRPrivateEndpointConnectionArgs', 'SignalRPrivateEndpointConnection'] @pul...
PypiClean
/pymzml-tapir-0.8.0.tar.gz/pymzml-tapir-0.8.0/pymzml/run.py
# pymzml # # Copyright (C) 2010-2014 T. Bald, J. Barth, A. Niehues, M. Specht, H. Roest, C. Fufezan # # 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...
PypiClean
/react-frontend-20230406083236.tar.gz/react-frontend-20230406083236/react_frontend/083278ec.js
"use strict";(self.webpackChunkreact_frontend=self.webpackChunkreact_frontend||[]).push([[4724],{34724:function(t,e,r){r.r(e);var n,i,o,a,c=r(7599),s=r(46323),l=r(38513),u=r(18394),f=r(63226),d=r(2733),p=(r(68336),r(37662),r(63383)),h=r(84322),y=r(73132),v=r(11629);function m(t){return m="function"==typeof Symbol&&"sym...
PypiClean
/itk_core-5.4rc1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/itk/itkScaleVersor3DTransformPython.py
import collections from sys import version_info as _version_info if _version_info < (3, 7, 0): raise RuntimeError("Python 3.7 or later required") from . import _ITKCommonPython from . import _ITKTransformPython from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2, 7, ...
PypiClean
/basic_sftp-1.3.6.tar.gz/basic_sftp-1.3.6/basic_sftp/basic_sftp.py
import pysftp import logging import time import os logging.basicConfig(level=logging.INFO) remotepath = '/home/brian/files/' class BasicSftp(): def __init__(self, remotepath, ip, username, password, ssh_key, port): self.sftpConnect = None self.remotePath = remotepath self.ip = ip ...
PypiClean
/dataiku-scoring-12.1.0.tar.gz/dataiku-scoring-12.1.0/dataikuscoring/models/mlflow.py
from .common import PredictionModelMixin, ProbabilisticModelMixin import numpy as np class MLflowModel(PredictionModelMixin, ProbabilisticModelMixin): def __init__(self, resources): self.model = resources["model"] self.metadata = resources["mlflow_metadata"] self.threshold = resources["ml...
PypiClean
/sithom-0.0.4.tar.gz/sithom-0.0.4/README.md
# sithom README [![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)[![Code Style](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)[![Python package](https://github.com/sdat2/sithom/actions/workflows/python-package.yml/badge...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/me/calendars/item/events/item/forward/forward_post_request_body.py
from __future__ import annotations from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from .......models import recipient class ForwardPostRequestBody(AdditionalD...
PypiClean
/gismath_open3d-0.0.2-cp311-cp311-win_amd64.whl/open3d/visualization/tensorboard_plugin/metadata.py
"""Internal information about the Open3D plugin.""" from tensorboard.compat.proto.summary_pb2 import SummaryMetadata from .plugin_data_pb2 import LabelToNames PLUGIN_NAME = "Open3D" # The most recent value for the `version` field of the # `Open3DPluginData` proto. Sync with Open3D version (MAJOR*100 + MINOR) _VERSIO...
PypiClean
/backends-1.5.4.tar.gz/backends-1.5.4/lab/random.py
import sys from functools import reduce from operator import mul import numpy as np from typing import Union from . import dispatch, B from .types import DType, Int, Numeric, RandomState from .util import abstract __all__ = [ "set_random_seed", "create_random_state", "global_random_state", "set_globa...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/type-check/README.md
# type-check [![Build Status](https://travis-ci.org/gkz/type-check.png?branch=master)](https://travis-ci.org/gkz/type-check) <a name="type-check" /> `type-check` is a library which allows you to check the types of JavaScript values at runtime with a Haskell like type syntax. It is great for checking external input, f...
PypiClean
/dbl_sat_sdk-0.1.32-py3-none-any.whl/clientpkgs/unity_catalog_client.py
from core.dbclient import SatDBClient from core.logging_utils import LoggingUtils import json LOGGR=None if LOGGR is None: LOGGR = LoggingUtils.get_logger() class UnityCatalogClient(SatDBClient): '''unity catalog helper''' def get_catalogs_list(self): """ Returns an array of json objects...
PypiClean
/antares-0.3.23.1-py3-none-manylinux1_x86_64.whl/antares_core/3rdparty/tvm/python/tvm/relay/frontend/coreml.py
"""CoreML frontend.""" import math import numpy as np import tvm from tvm.ir import IRModule from .. import analysis from .. import expr as _expr from .. import function as _function from .. import op as _op from ... import nd as _nd from ..._ffi import base as _base from .common import ExprTable from .common import i...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/drives/item/list/subscriptions/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
/pic_dl-0.2.0-py3-none-any.whl/pic_dl/utils.py
import os import html import requests import re import threading import logging logging.getLogger("requests").setLevel("WARNING") class LibError(Exception): pass def r0(pattern, text): _r = re.findall(pattern, text) return _r def r1(pattern, text): _r = re.search(pattern, text) return _r de...
PypiClean
/nepsy-0.1.5.0-py3-none-any.whl/nep_aldebaran/Bumpers.py
# Luis Enrique Coronado Zuniga # You are free to use, change, or redistribute the code in any way you wish # but please maintain the name of the original author. # This code comes with no warranty of any kind. from naoqi import ALProxy from naoqi import ALBroker from naoqi import ALModule import time import os impor...
PypiClean
/fincity-django-allauth-0.40.0.tar.gz/fincity-django-allauth-0.40.0/allauth/socialaccount/providers/oauth/client.py
import requests from django.http import HttpResponseRedirect from django.utils.http import urlencode from django.utils.translation import gettext as _ from requests_oauthlib import OAuth1 from allauth.compat import parse_qsl, urlparse from allauth.utils import build_absolute_uri, get_request_param def get_token_pr...
PypiClean
/django_declarative_apis-0.29.0-py3-none-any.whl/django_declarative_apis/authentication/oauthlib/endpoint.py
import logging from oauthlib.oauth1 import SignatureOnlyEndpoint from oauthlib.oauth1.rfc5849 import SIGNATURE_RSA from oauthlib.oauth1.rfc5849 import errors, signature from django_declarative_apis.resources.utils import preprocess_rsa_key log = logging.getLogger(__name__) class TweakedSignatureOnlyEndpoint(Signa...
PypiClean
/HalRing-2.0.4-py3-none-any.whl/halring/svn/halring_svn.py
import operator import os import re from collections import Counter from halring.windows.halring_os import OsUtil class SvnUtil(object): def __init__(self, username, password): """ 基础信息 Author: Chenying :param username: 账号 :param password: 密码 """ self._user...
PypiClean
/hexagonit.socialbutton-0.11.zip/hexagonit.socialbutton-0.11/src/hexagonit/socialbutton/browser/template.py
from Products.Five import BrowserView from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from hexagonit.socialbutton import _ from hexagonit.socialbutton.data import SocialButtonCode from hexagonit.socialbutton.data import SocialButtonConfig from hexagonit.socialbutton.interfaces import IAddSocialB...
PypiClean
/pspdfutils-3.2.0.tar.gz/pspdfutils-3.2.0/psutils/transformers.py
import io import sys import shutil from abc import ABC, abstractmethod from contextlib import contextmanager from typing import List, Optional, Union, Iterator, IO from warnings import warn from pypdf import PdfWriter, Transformation from pypdf.annotations import PolyLine from .argparse import parserange from .io imp...
PypiClean
/peakrdl-regblock-0.18.0.tar.gz/peakrdl-regblock-0.18.0/src/peakrdl_regblock/field_logic/sw_onwrite.py
from typing import TYPE_CHECKING, List from systemrdl.rdltypes import OnWriteType from .bases import NextStateConditional if TYPE_CHECKING: from systemrdl.node import FieldNode # TODO: implement sw=w1 "write once" fields class _OnWrite(NextStateConditional): onwritetype = None def is_match(self, field:...
PypiClean
/deep_disfluency-0.0.1.tar.gz/deep_disfluency-0.0.1/deep_disfluency/utils/tools.py
import random import numpy as np import itertools import re from collections import defaultdict import os def get_tags(s, open_delim='<', close_delim='/>'): """Iterator to spit out the xml style disfluency tags in a given string. Keyword arguments: s -- input string """ while True: # Sear...
PypiClean
/hrm_omero-0.4.0-py3-none-any.whl/hrm_omero/tree.py
from loguru import logger as log def gen_obj_dict(obj, id_pfx=""): """Create a dict from an OMERO object. Parameters ---------- obj : omero.gateway._*Wrapper The OMERO object to process. id_pfx : str, optional A string prefix that will be added to the `id` value, by default ''. ...
PypiClean
/megaman-0.2.tar.gz/megaman-0.2/doc/_build/Mmani/Mmani/geometry/geometry.py
from __future__ import division ## removes integer division import numpy as np from scipy import sparse from scipy.spatial.distance import pdist import subprocess, os, sys, warnings from Mmani.geometry.distance import distance_matrix from Mmani.utils.validation import check_array sparse_formats = ['csr', 'coo', 'lil',...
PypiClean
/jupyter_jsmol-2022.1.0.tar.gz/jupyter_jsmol-2022.1.0/jsmol/j2s/JU/InfBlocks.js
Clazz.declarePackage ("JU"); Clazz.load (["JU.InfTree"], "JU.InfBlocks", ["JU.InfCodes"], function () { c$ = Clazz.decorateAsClass (function () { this.mode = 0; this.left = 0; this.table = 0; this.index = 0; this.blens = null; this.bb = null; this.tb = null; this.bl = null; this.bd = null; this.tl = null; this.td = nul...
PypiClean
/mindspore_gpu-1.10.0-cp39-cp39-manylinux1_x86_64.whl/mindspore/_akg/akg/tvm/relay/frontend/nnvm_common.py
"""Utility functions common to NNVM and MxNet conversion.""" from __future__ import absolute_import as _abs from .. import expr as _expr from .. import op as _op from .common import get_relay_op from .common import infer_type as _infer_type def _warn_not_used(attr, op='nnvm'): import warnings err = "{} is ign...
PypiClean
/iotoutlier1-0.0.1-py3-none-any.whl/iot_outlier_src/legacy/utils/dataloader.py
import os import pickle import numpy as np from sklearn.model_selection import train_test_split from sklearn.utils import shuffle def random_sampling_data(X, y, num=100, random_state=42): """ :param data: :param num: :return: """ if num > len(y): print(f'input data size {len(y)} is ...
PypiClean
/py_tgcalls-0.9.1-cp310-cp310-macosx_10_15_x86_64.whl/pytgcalls/node_modules/typescript/lib/lib.es2015.core.d.ts
interface Array<T> { /** * Returns the value of the first element in the array where predicate is true, and undefined * otherwise. * @param predicate find calls predicate once for each element of the array, in ascending * order, until it finds one where predicate returns true. If such an eleme...
PypiClean
/GalSim-2.4.11-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl/galsim/roman/__init__.py
import os import numpy as np from .. import meta_data, Image gain = 1.0 pixel_scale = 0.11 # arcsec / pixel diameter = 2.37 # meters obscuration = 0.32 collecting_area = 3.757e4 # cm^2, from Cycle 7 exptime = 140.25 # s dark_current = 0.015 # e-/pix/s nonlinearity_beta = -6.e-7 reciprocity_alpha = 0.0065 read_noise...
PypiClean
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/pandas/core/arrays/string_arrow.py
from __future__ import annotations from collections.abc import Callable # noqa: PDF001 import re from typing import Union import numpy as np from pandas._libs import ( lib, missing as libmissing, ) from pandas._typing import ( Dtype, NpDtype, Scalar, npt, ) from pandas.compat import ( pa...
PypiClean
/jupyter-annotator-1.3.0.tar.gz/jupyter-annotator-1.3.0/README.md
# jupyter json annotator This package provides an annotation UI for arbitrary dataset in json format. ## Install ``` pip install jupyter-annotator ``` ## Usage ### 1. Normal usage ```python from jupyter_annotator import Annotator problems = [{ "id": 2, "problem": "Where would I not want a fox? (a probl...
PypiClean
/pyscard-2.0.7-cp39-cp39-macosx_10_9_universal2.whl/smartcard/ReaderMonitoring.py
from threading import Thread, Event from time import sleep import traceback import smartcard.System from smartcard.Observer import Observer from smartcard.Observer import Observable from smartcard.Synchronization import * # ReaderObserver interface class ReaderObserver(Observer): """ ReaderObserver is a base...
PypiClean
/git-deps-1.1.0.zip/git-deps-1.1.0/git_deps/html/node_modules/jquery/src/core/ready.js
define( [ "../core", "../var/document", "../core/readyException", "../deferred" ], function( jQuery, document ) { "use strict"; // The deferred used on DOM ready var readyList = jQuery.Deferred(); jQuery.fn.ready = function( fn ) { readyList .then( fn ) // Wrap jQuery.readyException in a function so that ...
PypiClean
/python-binance-chain-0.1.20.tar.gz/python-binance-chain-0.1.20/binance_chain/websockets.py
import asyncio import ujson as json import logging from random import random from typing import Dict, Callable, Awaitable, Optional, List import websockets as ws from binance_chain.environment import BinanceEnvironment from binance_chain.constants import KlineInterval class ReconnectingWebsocket: MAX_RECONNECTS...
PypiClean
/pytest-libiio-0.0.13.tar.gz/pytest-libiio-0.0.13/README.rst
============= pytest-libiio ============= .. image:: https://img.shields.io/pypi/v/pytest-libiio.svg :target: https://pypi.org/project/pytest-libiio :alt: PyPI version .. image:: https://img.shields.io/pypi/pyversions/pytest-libiio.svg :target: https://pypi.org/project/pytest-libiio :alt: Python versi...
PypiClean
/pulumi_gcp_native-0.0.2a1617829075.tar.gz/pulumi_gcp_native-0.0.2a1617829075/pulumi_gcp_native/cloudchannel/v1/account_customer_entitlement.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs from ._inputs import * __all__ = ['AccountCustomerEntitlement'] class AccountCustomerEntitlement(pulumi.CustomResource): def __init__(__self__,...
PypiClean
/Pyomo-6.6.2-cp39-cp39-win_amd64.whl/pyomo/gdp/plugins/hull.py
import logging import pyomo.common.config as cfg from pyomo.common import deprecated from pyomo.common.collections import ComponentMap, ComponentSet from pyomo.common.modeling import unique_component_name from pyomo.core.expr.numvalue import ZeroConstant import pyomo.core.expr as EXPR from pyomo.core.base import Tran...
PypiClean
/trepan2-1.2.8.tar.gz/trepan2-1.2.8/trepan/interfaces/server.py
"""Module for Server (i.e. program to communication-device) interaction""" import atexit # Our local modules from trepan import interface as Minterface from trepan.inout import tcpserver as Mtcpserver, fifoserver as Mfifoserver from trepan.interfaces import comcodes as Mcomcodes DEFAULT_INIT_CONNECTION_OPTS = {'IO':...
PypiClean
/context_logging-1.1.0-py3-none-any.whl/context_logging/context.py
import time from collections import UserDict from contextvars import ContextVar, Token from typing import Any, ChainMap, Dict, Optional, Type, cast from deprecated import deprecated from .config import config from .logger import logger from .utils import ( SyncAsyncContextDecorator, context_name_with_code_pat...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/operationsmanagement/v20151101preview/get_solution.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs __all__ = [ 'GetSolutionResult', 'AwaitableGetSolutionResult', 'get_solution', ] @pulumi.output_type class GetSolutionResult: """ ...
PypiClean
/opensesame_plugin_media_player_mpy-0.2.2.tar.gz/opensesame_plugin_media_player_mpy-0.2.2/opensesame_plugins/media_player_mpy/media_player_mpy/locale/fr.ts
<?xml version='1.0' encoding='utf-8'?> <TS version="2.1"> <context> <name>plugin_media_player_mpy</name> <message> <location filename="../../../../translation_tools/translatables.py" line="4" /> <source>Media player based on moviepy</source> <translation>Lecteur multimédia basé sur movie...
PypiClean
/my_recommending-0.1.22-py3-none-any.whl/my_recommending/models/baseline.py
import io import pickle from typing import Literal import implicit import numpy as np import torch import wandb from matplotlib import pyplot as plt from sklearn.decomposition import TruncatedSVD from my_tools.utils import build_class from ..interface import ( RecommenderModuleBase, FitExplicitInterfaceMixin...
PypiClean
/SmsVk%20Wrapper-1.0.1.tar.gz/SmsVk Wrapper-1.0.1/smsvk/services.py
class ServiceModel: @property def short_name(self): return self.__service_short_name @property def count(self): return self.__count_slot @count.setter def count(self, value): self.__count_slot = int(value) def object_factory(name, base_class, argnames): def __init...
PypiClean
/starterkit-1.3.17.tar.gz/starterkit-1.3.17/geosk/static/EDI-NG_client/js/bootstrap-datepicker.js
(function($, undefined){ var $window = $(window); function UTCDate(){ return new Date(Date.UTC.apply(Date, arguments)); } function UTCToday(){ var today = new Date(); return UTCDate(today.getFullYear(), today.getMonth(), today.getDate()); } function alias(method){ return function(){ return this[metho...
PypiClean
/write_the-0.9.1.tar.gz/write_the-0.9.1/write_the/commands/docs/docs.py
import asyncio import libcst as cst from black import format_str, FileMode from write_the.cst import nodes_to_tree from write_the.cst.docstring_adder import add_docstrings_to_tree from write_the.cst.function_and_class_collector import get_node_names from write_the.cst.node_extractor import extract_nodes_from_tree from...
PypiClean
/TDY_PKG_saquibquddus-1.1.1-py3-none-any.whl/tf2_webapp/object_detection/export_tflite_graph_lib_tf2.py
"""Library to export TFLite-compatible SavedModel from TF2 detection models.""" import os import numpy as np import tensorflow.compat.v1 as tf1 import tensorflow.compat.v2 as tf from object_detection.builders import model_builder from object_detection.builders import post_processing_builder from object_detection.core ...
PypiClean
/nisystemlink_clients-1.1.0.tar.gz/nisystemlink_clients-1.1.0/nisystemlink/clients/tag/_http/_http_buffered_tag_writer.py
import datetime from collections import OrderedDict from typing import Any, Dict, Optional from nisystemlink.clients import tag as tbase from nisystemlink.clients.core._internal._http_client import HttpClient from nisystemlink.clients.core._internal._timestamp_utilities import TimestampUtilities from nisystemlink.clie...
PypiClean
/poslocalbll-0.6.tar.gz/poslocalbll-0.6/tools/weather.py
from urllib import request import re import pinyin.pinyin as pinyin import json import time from lxml import etree #省份对应的省会城市 pc_city = { "anhui": "hefei", "beijing": "beijing", "chongqing": "chongqing", "fujian": "fuzhou", "gansu": "lanzhou", "guangdong": "GuangZhou", "guangxi": "NanNing", "guizhou": ...
PypiClean
/henxel-0.2.6.tar.gz/henxel-0.2.6/README.md
# Henxel GUI-editor for Python development. Tested to work with Debian 12, Windows 11 and macOS 12. # Featuring * Auto-indent * Font Chooser * Color Chooser * Line numbering * Tabbed editing * Inspect object * Show git-branch * Run current file * Search - Replace * Indent - Unindent * Comment - Uncomment * Syntax hig...
PypiClean
/wmagent-2.2.4rc3.tar.gz/wmagent-2.2.4rc3/src/python/WMCore/WMSpec/StdSpecs/StoreResults.py
from Utils.Utilities import makeList, makeNonEmptyList from WMCore.Lexicon import dataset, block, physicsgroup, cmsname from WMCore.WMSpec.StdSpecs.StdBase import StdBase class StoreResultsWorkloadFactory(StdBase): """ _StoreResultsWorkloadFactory_ Stamp out StoreResults workloads. """ def __cal...
PypiClean
/bots-open-source-edi-translator-3.1.9.tar.gz/bots-3.1.9/bots/pluglib.py
import os import sys #~ import time import zipfile import zipimport import codecs import django from django.core import serializers from django.utils.translation import ugettext as _ import models import botslib import botsglobal #****************************************** #* read a plugin ************************** #...
PypiClean
/sagemath-standard-10.0b0.tar.gz/sagemath-standard-10.0b0/sage/categories/graded_modules.py
r""" Graded modules """ # **************************************************************************** # Copyright (C) 2008 Teresa Gomez-Diaz (CNRS) <Teresa.Gomez-Diaz@univ-mlv.fr> # 2008-2013 Nicolas M. Thiery <nthiery at users.sf.net> # # Distributed under the terms of the GNU General Public Lic...
PypiClean
/MGP_SDK-1.1.1.tar.gz/MGP_SDK-1.1.1/src/MGP_SDK/OGC_Spec/wms.py
import requests import MGP_SDK.process as process from MGP_SDK.auth.auth import Auth class WMS: def __init__(self, auth: Auth, endpoint): self.auth = auth self.version = auth.version self.api_version = auth.api_version self.endpoint = endpoint if self.endpoint == 'streaming...
PypiClean
/gitsome-0.8.4.tar.gz/gitsome-0.8.4/xonsh/inspectors.py
import os import io import sys import types import inspect import itertools import linecache import collections from xonsh.lazyasd import LazyObject from xonsh.tokenize import detect_encoding from xonsh.openpy import read_py_file from xonsh.tools import cast_unicode, safe_hasattr, indent, print_color, format_color fro...
PypiClean
/pyxmpp-last-1.1.1.tar.gz/pyxmpp-last-1.1.1/pyxmpp/xmppstringprep.py
__revision__="$Id: xmppstringprep.py,v 1.16 2004/10/07 22:28:04 jajcus Exp $" __docformat__="restructuredtext en" import stringprep import unicodedata from pyxmpp.exceptions import StringprepError class LookupFunction: """Class for looking up RFC 3454 tables using function. :Ivariables: - `lookup`: t...
PypiClean
/geezlibs1-2.0.0-py3-none-any.whl/geezlibs/types/inline_mode/inline_query_result_cached_audio.py
from typing import Optional, List import geezlibs from geezlibs import raw, types, utils, enums from .inline_query_result import InlineQueryResult from ...file_id import FileId class InlineQueryResultCachedAudio(InlineQueryResult): """A link to an MP3 audio file stored on the Telegram servers By default, t...
PypiClean
/seaplane.api-0.0.1.tar.gz/seaplane.api-0.0.1/seaplane/api/paths/endpoints_endpoint_request/post.py
from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from seaplane.api import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # no...
PypiClean
/python_jsonschema_objects-0.4.4.tar.gz/python_jsonschema_objects-0.4.4/python_jsonschema_objects/descriptors.py
from . import validators, util, wrapper_types from .classbuilder import ProtocolBase, TypeProxy, TypeRef class AttributeDescriptor(object): """Provides property access for constructed class properties""" def __init__(self, prop, info, desc=""): self.prop = prop self.info = info self.d...
PypiClean
/Sympathy-4.0.1-py3-none-any.whl/sylib/nodes/sympathy/imageprocessing/node_layers.py
from sympathy.api import node from sympathy.api.nodeconfig import Port, Ports, Tag, Tags import numpy as np from sylib.imageprocessing.image import Image from sylib.imageprocessing.algorithm_selector import ImageFiltering_abstract class OverlayImagesAbstract(ImageFiltering_abstract, node.Node): author = 'Mathias...
PypiClean
/open_aea_cosmpy-0.6.5.tar.gz/open_aea_cosmpy-0.6.5/cosmpy/aerial/wallet.py
from abc import ABC, abstractmethod from collections import UserString from typing import Optional from bip_utils import Bip39SeedGenerator, Bip44, Bip44Coins # type: ignore from cosmpy.crypto.address import Address from cosmpy.crypto.hashfuncs import sha256 from cosmpy.crypto.interface import Signer from cosmpy.cry...
PypiClean
/cdktf_cdktf_provider_opentelekomcloud-9.0.0-py3-none-any.whl/cdktf_cdktf_provider_opentelekomcloud/data_opentelekomcloud_css_flavor_v1/__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 DataOpentelekomcloudCssFlavorV1( _cdktf_9a9027ec.T...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_8/api/remote_protection_group_snapshots_api.py
from __future__ import absolute_import import re # python 2 and python 3 compatibility library import six from typing import List, Optional from .. import models class RemoteProtectionGroupSnapshotsApi(object): def __init__(self, api_client): self.api_client = api_client def api28_remote_protectio...
PypiClean
/sendbird_platform_sdk-0.0.16-py3-none-any.whl/sendbird_platform_sdk/api/user_api.py
import re # noqa: F401 import sys # noqa: F401 from sendbird_platform_sdk.api_client import ApiClient, Endpoint as _Endpoint from sendbird_platform_sdk.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_ty...
PypiClean
/copr-common-0.20.tar.gz/copr-common-0.20/copr_common/enums.py
import random import string from six import with_metaclass # We don't know how to define the enums without `class`. # pylint: disable=too-few-public-methods class EnumType(type): def _wrap(cls, attr=None): if attr is None: raise NotImplementedError if isinstance(attr, int): ...
PypiClean
/ir_datasets-0.5.5-py3-none-any.whl/ir_datasets/indices/zpickle_docstore.py
import os import shutil import json import zlib import pickle from contextlib import contextmanager from .indexed_tsv_docstore import NumpyPosIndex import ir_datasets _logger = ir_datasets.log.easy() class ZPickleKeyValueStore: def __init__(self, path, id_idx, doc_cls): self._path = path self._...
PypiClean
/djdgcore-0.8.15.1.tar.gz/djdgcore-0.8.15.1/djdg_core/memberbao/models.py
from __future__ import unicode_literals, absolute_import from django.db import models class PayResult(models.Model): """ 支付结果信息 """ notify_time = models.DateTimeField('通知时间', auto_now_add=True) notify_type = models.CharField(max_length=128, verbose_name='通知类型', null=True) notify_id = models.In...
PypiClean
/levo-0.4.9-py3-none-any.whl/levocli/callbacks.py
from contextlib import contextmanager from typing import Dict, Generator, Tuple from urllib.parse import urlparse import click from . import utils from .docker_utils import is_docker, map_hostpath_to_container from .logger import get_logger from .utils import health_check_http_url LOCALHOST = "localhost" LOCALHOST_I...
PypiClean
/convertapi-1.7.0.tar.gz/convertapi-1.7.0/README.md
# ConvertAPI Python Client [![PyPI version](https://badge.fury.io/py/convertapi.svg)](https://badge.fury.io/py/convertapi) [![Build Status](https://github.com/ConvertAPI/convertapi-python/actions/workflows/main.yml/badge.svg)](https://github.com/ConvertAPI/convertapi-python/actions) [![License: MIT](https://img.shield...
PypiClean
/downward_ch-0.0.10-py3-none-manylinux1_x86_64.whl/downward_ch-0.0.10.data/purelib/downward_ch/misc/autodoc/autodoc.py
import argparse import logging import os from os.path import dirname, join import re import subprocess import sys import time import xmlrpc.client as xmlrpclib import markup # How many seconds to wait after a failed requests. Will be doubled after each failed request. # Don't lower this below ~5, or we may get lock...
PypiClean
/science_optimization-9.0.2-cp310-cp310-manylinux_2_35_x86_64.whl/science_optimization/problems/separable_resource_allocation.py
from science_optimization.builder import BuilderOptimizationProblem from science_optimization.builder import Objective from science_optimization.builder import Variable from science_optimization.builder import Constraint from science_optimization.function import FunctionsComposite class SeparableResourceAllocation(Bu...
PypiClean
/h2o_autodoc-1.0.7-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/h2o_autodoc/templates/templates/sections/Experiment Overview/DAI Reproducibility Settings.md
User-defined settings control the Driverless AI experiment framework. {% if experiment.parameters.seed == True %} In the *{{experiment.description }}* experiment, the setting for reproducibility was turned on. The following settings can be used to reproduce the *{{experiment.description}}* experiment’s results given th...
PypiClean
/NovalIDE-1.1.8-py3-none-any.whl/noval/python/parser/scope.py
import config,nodeast from utils import CmpMember,py_sorted import intellisence import noval.util.utils as logger_utils class Scope(object): def __init__(self,line_start,line_end,parent=None): self._line_start = line_start self._line_end = line_end self._parent = parent self._child_...
PypiClean
/numericube-twistranet-2.0.0.zip/numericube-twistranet-2.0.0/twistranet/themes/twistheme/static/js/jquery.dd.js
*/ ;eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);r...
PypiClean
/vban_cmd-2.4.9.tar.gz/vban_cmd-2.4.9/vban_cmd/strip.py
import time from abc import abstractmethod from typing import Union from .iremote import IRemote from .kinds import kinds_all from .meta import channel_bool_prop, channel_label_prop, strip_output_prop class Strip(IRemote): """ Implements the common interface Defines concrete implementation for strip ...
PypiClean
/commanderbot-0.18.0.tar.gz/commanderbot-0.18.0/README.md
# commanderbot-py A collection of utilities and extensions for discord.py bots. [![package-badge]](https://pypi.python.org/pypi/commanderbot/) [![version-badge]](https://pypi.python.org/pypi/commanderbot/) ## Requirements - Python 3.10+ - discord.py 2.0+ ## Running your bot You can run your own bot without writin...
PypiClean
/suds-bis-1.0.0.tar.gz/suds-bis-1.0.0/suds/cache.py
import suds from suds.sax.parser import Parser from suds.sax.element import Element from datetime import datetime as dt from datetime import timedelta import os from tempfile import gettempdir as tmp try: import pickle as pickle except Exception: import pickle from logging import getLogger log = getLogger(_...
PypiClean
/django_handyhelpers-0.3.9-py3-none-any.whl/handyhelpers/views/export.py
import datetime import csv import xlwt from django.http import HttpResponse from django.views.generic import View from handyhelpers.mixins.view_mixins import FilterByQueryParamsMixin class CsvExportView(FilterByQueryParamsMixin, View): """ View to dump a queryset to a csv file class parameters: q...
PypiClean
/unicms-0.30.2-py3-none-any.whl/cms/contexts/hooks.py
from django.contrib.auth import get_user_model from django.contrib.contenttypes.models import ContentType from django.db.models.fields.related import (ForeignKey, OneToOneField) from cms.contexts.models import EntryUsedBy from taggit.managers import TaggableManager def us...
PypiClean
/solve360-0.9.2.tar.gz/solve360-0.9.2/README.rst
Solve360 API Python wrapper =========================== Python wrapper for `Norada CRM Solve360 <http://norada.com/>`__ API. Solve360 API Documentation -------------------------- http://norada.com/answers/api/external\_api\_introduction Installation ------------ :: $ pip install solve360 Usage ----- The API...
PypiClean
/idem-azure-2.2.0.tar.gz/idem-azure-2.2.0/idem_azure/states/azure/authorization/role_assignments.py
import copy import uuid from typing import Any from typing import Dict __contracts__ = ["resource"] async def present( hub, ctx, name: str, scope: str, role_definition_id: str, principal_id: str, resource_id: str = None, role_assignment_name: str = None, ) -> Dict[str, Any]: r"""...
PypiClean
/python_grains-0.10.1.tar.gz/python_grains-0.10.1/python_grains/dynamic_settings/dynamic_settings.py
from python_grains.dynamic_settings.lua import LuaScripts import requests from requests.sessions import Session from requests.adapters import HTTPAdapter from requests.packages.urllib3.util.retry import Retry import json import datetime import pytz import redis import os DEFAULT_DEBUG_VERSION = 'QUICK_PREVIEW' DEFAUL...
PypiClean
/lbrlabs_scaleway-0.4.1a1662912002.tar.gz/lbrlabs_scaleway-0.4.1a1662912002/pulumiverse_scaleway/get_instance_servers.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs __all__ = [ 'GetInstanceServersResult', 'AwaitableGetInstanceServersResult', 'get_instance_servers', 'get_instance_servers...
PypiClean
/photostash-client-0.0.3.tar.gz/photostash-client-0.0.3/photostash/runner.py
import base64 import sys import subprocess from clint.textui import puts, columns from queryset_client import Client from queryset_client.client import ObjectDoesNotExist from slumber.exceptions import HttpServerError from photostash.exceptions import CommandError class Runner(object): DEFULT_BASE_URL = 'http:/...
PypiClean