id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/groupdocs-rewriter-cloud-23.6.tar.gz/groupdocs-rewriter-cloud-23.6/groupdocsrewritercloud/models/file_version.py
from groupdocsrewritercloud.models.base_model import BaseModel class FileVersion(BaseModel): """ Attributes: model_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and...
PypiClean
/feature-selectionpy-0.0.4.tar.gz/feature-selectionpy-0.0.4/INSTRUCTIONS.md
# Template for python project this project I created for easily launch project to pip and create the automated documentations ## Steps to upload to pip: - first edit the setup.py and write in the details by replacing previous details - install_requires need requirements of project to be automatically install before p...
PypiClean
/durham-directory-1.3.0.tar.gz/durham-directory-1.3.0/README.md
# Python bindings for the Durham University (UK) Directory This package provides basic python bindings for [the Durham University Directory](https://dur.ac.uk/directory/password), where Durham University students and staff can look up fellow students and staff. It is nothing more than a wrapper around `requests` and ...
PypiClean
/paradise-0.2.0.tar.gz/paradise-0.2.0/README.md
# Paradise A file sharing and media streaming solution for local networks. Using this utility you can start a local server on your machine that is visible to other devices like mobile, laptop etc. Which can be used to download/upload files from other machines. ![preview](docs/img/preview.png) ## Why it's needed? ##...
PypiClean
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/prime_remastered/objects/RetronomeDriver.py
import dataclasses import struct import typing from retro_data_structures.game_check import Game from retro_data_structures.properties.base_property import BaseProperty import base64 @dataclasses.dataclass() class RetronomeDriver(BaseProperty): unknown_properties: dict[int, bytes] = dataclasses.field(default_fac...
PypiClean
/pyvision_toolkit-1.3.4.tar.gz/pyvision_toolkit-1.3.4/src/pyvision/optimize/genetic.py
import random #import unittest import math import multiprocessing as mp #import sys import traceback import numpy as np import copy #import time import pyvision as pv import os import pickle as pkl # Genetic algorithm message types _GA_EVALUATE="GA_EVALUATE" _GA_STOP_WORKER="GA_STOP_WORKER" _GA_SCORE = "GA_SCORE" def...
PypiClean
/core/sly/lex.py
__all__ = ['Lexer', 'LexerStateChange'] import re import copy class LexError(Exception): def __init__(self, message, text, error_index): self.args = (message,) self.text = text self.error_index = error_index class PatternError(Exception): pass class LexerBuildError(Exception): pass c...
PypiClean
/melon_translate_client-0.11.4.tar.gz/melon_translate_client-0.11.4/melon_translate_client/request.py
import concurrent.futures import time from itertools import product from math import ceil from typing import List, Optional from urllib.parse import urlparse import gevent import requests from melon_translate_client.settings import ( TRANSLATE_REQUESTS_TIMEOUT, TRANSLATE_URL, TRANSLATE_WORKER_POOL_SIZE, ...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/branding/branding_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
/stark_rest_apiresponse-0.0.4-py3-none-any.whl/rest_apiresponse/apiresponse.py
from rest_framework.response import Response class ApiResponse(object): def __init__(self, message="Okay", code=200, success=True, data={}, paginator={}): if data is None: data = dict() self.message = message self.code = code self.success = success self.data = da...
PypiClean
/slack-tunes-0.4.1.tar.gz/slack-tunes-0.4.1/README.rst
python-slack-tunes -------------------- send slack music notifications from itunes or spotify Requirements ============ - OS X - iTunes or Spotify Installation ============ Using PIP via PyPI:: pip install slack-tunes Using PIP via Github:: pip install git+https://github.com/josegonzalez/python-slack-tu...
PypiClean
/botbuilder_ai-4.14.4-py3-none-any.whl/botbuilder/ai/qna/qnamaker_options.py
from .models import Metadata, QnARequestContext from .models.ranker_types import RankerTypes from .models.join_operator import JoinOperator class QnAMakerOptions: """ Defines options used to configure a `QnAMaker` instance. remarks: -------- All parameters are optional. """ def __in...
PypiClean
/py_yuwinzer_client-0.3.14.tar.gz/py_yuwinzer_client-0.3.14/client/client/transport.py
import json import sys import threading import hashlib import hmac import binascii import logging import log.client_log_config from PyQt5.QtCore import pyqtSignal, QObject from time import time, sleep from socket import socket, AF_INET, SOCK_STREAM from common.globals import * from common.utils import send_message, ge...
PypiClean
/pynb2docker-0.0.1.tar.gz/pynb2docker-0.0.1/README.md
# pynb2docker Library for turning Python Jupyter Notebooks into Docker images. ## Installation (Linux) * Create a virtual environment: ```commandline virtualenv -p /usr/bin/python3.7 venv ``` * From source: ```commandline git clone https://github.com/fracpete/pynb2docker.git cd pynb2docker ../venv/bi...
PypiClean
/openstack-placement-9.0.0.0rc1.tar.gz/openstack-placement-9.0.0.0rc1/placement/objects/usage.py
import sqlalchemy as sa from sqlalchemy import distinct from sqlalchemy import func from sqlalchemy import sql from placement.db.sqlalchemy import models from placement import db_api from placement.objects import consumer_type as consumer_type_obj class Usage(object): def __init__(self, resource_class=None, us...
PypiClean
/google-cloud-compute-1.14.0.tar.gz/google-cloud-compute-1.14.0/google/cloud/compute_v1/services/ssl_policies/transports/rest.py
import dataclasses import json # type: ignore import re from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import warnings from google.api_core import gapic_v1, path_template, rest_helpers, rest_streaming from google.api_core import exceptions as core_exceptions from google.api_core impor...
PypiClean
/NewsLookout-2.1.0-py3-none-any.whl/newslookout/plugins/mod_en_in_ndtv.py
# ################################################################################################## # File name: mod_en_in_ndtv.py # # Application: The NewsLookout Web Scraping Application # # Date: 2021-06-...
PypiClean
/nstool-1.1.2.tar.gz/nstool-1.1.2/py/ztools/lib/Fs/pyNPDM.py
import io import re from Utils import read_at, read_u8, read_u32, read_u64, memdump class FsAccessControl: def __init__(self, fp): self.f = fp self._parse() def __str__(self): string = ' FS Access Control:\n' string += ' Version: %d\n' % self.version string += ' Permission bitm...
PypiClean
/solara_assets-1.19.0.tar.gz/solara_assets-1.19.0/cdn/vega-lite@5.2.0/build/src/compile/data/stack.js
import { isArray, isString } from 'vega-util'; import { getFieldDef, isFieldDef, vgField } from '../../channeldef'; import { duplicate, getFirstDefined, hash } from '../../util'; import { sortParams } from '../common'; import { DataFlowNode } from './dataflow'; function getStackByFields(model) { return model.stack....
PypiClean
/scikit-xray-0.0.3-r0.zip/scikit-xray-0.0.3-r0/skxray/fitting/models.py
from __future__ import (absolute_import, division, print_function, unicode_literals) import six import numpy as np import sys import inspect from lmfit import Model from lmfit.models import GaussianModel as LmGaussianModel from lmfit.models import LorentzianModel as LmLorentzianModel from .lin...
PypiClean
/cupy_cuda110-12.2.0-cp310-cp310-manylinux2014_x86_64.whl/cupyx/scipy/special/_trig.py
csinpi_definition = """ #include <cupy/math_constants.h> // Compute sin(pi*z) for complex arguments __device__ complex<double> csinpi(complex<double> z) { double x = z.real(); double piy = M_PI*z.imag(); double abspiy = abs(piy); double sinpix = sinpi(x); double cospix = cospi(x); double exph...
PypiClean
/ask-smapi-model-1.36.0.tar.gz/ask-smapi-model-1.36.0/ask_smapi_model/v1/isp/__init__.py
# # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the 'License'). You may not use this file # except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the 'license' file accomp...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/devcenter/v20221111preview/outputs.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from ._enums import * __all__ = [ 'ImageReferenceResponse', 'ImageValidationErrorDetailsResponse', 'SkuResponse', 'SystemDataResponse', ] @pu...
PypiClean
/smart_home_tng-2023.1.3.tar.gz/smart_home_tng-2023.1.3/smart_home_tng/frontend/frontend_es5/c973053c.js
"use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[89493],{48091:function(e,t,r){function n(e,t,r,n,i,o,a){try{var s=e[o](a),c=s.value}catch(l){return void r(l)}s.done?t(c):Promise.resolve(c).then(n,i)}function i(e){return function(){var t=this,r=arguments;return...
PypiClean
/azure_cli_core-2.51.0-py3-none-any.whl/azure/cli/core/auth/identity.py
import json import os import re import sys from azure.cli.core._environment import get_config_dir from knack.log import get_logger from knack.util import CLIError from msal import PublicClientApplication # Service principal entry properties from .msal_authentication import _CLIENT_ID, _TENANT, _CLIENT_SECRET, _CERTI...
PypiClean
/pip-23.2.tar.gz/pip-23.2/docs/html/development/issue-triage.md
```{note} This section of the documentation is currently being written. pip developers welcome your help to complete this documentation. If you're interested in helping out, please let us know in the [tracking issue](https://github.com/pypa/pip/issues/6583), or just submit a pull request and mention it in that tracking...
PypiClean
/deeppyer-1.0.1.tar.gz/deeppyer-1.0.1/README.md
# deeppyer ![banner image](./banner.jpg) deeppyer is an image deepfryer written in Python using [Pillow](https://python-pillow.org/) and [OpenCV](https://pypi.org/project/opencv-python/). NOTE: This *requires* at least Python v3.6 in order to run. ## How to use You can either use deeppyer as a module, or straight fr...
PypiClean
/kPAL-2.1.1.tar.gz/kPAL-2.1.1/kpal/metrics.py
from __future__ import (absolute_import, division, print_function, unicode_literals) from future import standard_library import numpy as np with standard_library.hooks(): from collections import Counter def distribution(vector): """ Calculate the distribution of the values in a v...
PypiClean
/Agrothon-1.3.2.tar.gz/Agrothon-1.3.2/agrothon/tgbot/translations/english.py
class Language(object): # Main Menu MAIN_MENU = "<b>Main Menu</b>" # Open Weather WEATHER_FETCH = "Fetching Details Please Wait" WEATHER = """ <b>📍 Location :</b><code> {}</code> <b>🌡️ Temperature : </b><code>{} °C</code> <b>💨 Pressure : </b><code>{} Pa</code> <b>💧 Humidity : </b><code>{} g.m-3...
PypiClean
/cjk-defn-1.0.1.tar.gz/cjk-defn-1.0.1/LICENSE.rst
MIT License =========== 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, a...
PypiClean
/django-filemanager-lte-0.0.7.tar.gz/django-filemanager-lte-0.0.7/filemanager/core.py
import os from django.conf import settings from django.core.files.base import ContentFile from filemanager import signals from filemanager.settings import DIRECTORY, STORAGE from filemanager.utils import sizeof_fmt class Filemanager(object): def __init__(self, path=None): self.update_path(path) def...
PypiClean
/Orange-Bioinformatics-2.6.25.tar.gz/Orange-Bioinformatics-2.6.25/orangecontrib/bio/utils/group.py
from collections import defaultdict from operator import add from functools import reduce import numpy import math def data_type(vals): try: _ = [ int(a) for a in vals ] return int except ValueError: try: _ = [ float(a) for a in vals ] return float except...
PypiClean
/reasoner_transpiler-2.0.2-py3-none-any.whl/reasoner_transpiler/util.py
import re from typing import List, Union, overload def _space_case(arg: str): """Convert string to space case. "ThisCase" is replaced with "this case". """ # replace "_" with " " tmp = re.sub("_", " ", arg) # replace "xYz" with "x yz" tmp = re.sub( r"(?<=[a-z])(?=[A-Z][a-z])", ...
PypiClean
/betterlifepsi-0.6.8.tar.gz/betterlifepsi-0.6.8/psi/static/ckeditor/plugins/specialchar/dialogs/lang/vi.js
/* Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("specialchar","vi",{euro:"Ký hiệu Euro",lsquo:"Dấu ngoặc đơn trái",rsquo:"Dấu ngoặc đơn phải",ldquo:"Dấu ngoặc đôi trái",rdquo:"Dấu ngoặc đôi phải",n...
PypiClean
/sfdc-merlion-1.0.0.tar.gz/sfdc-merlion-1.0.0/merlion/models/automl/seasonality_mixin.py
from abc import ABC from typing import Iterator, Tuple, Optional, Any from merlion.models.automl.forecasting_layer_base import ForecasterAutoMLBase from merlion.models.forecast.base import ForecasterBase, logger from merlion.utils import TimeSeries, autosarima_utils class SeasonalityModel(ABC): """ Class pro...
PypiClean
/gbptestneutron-0.9.0.tar.gz/gbptestneutron-0.9.0.dev194.g9d5bd52/neutron/context.py
import copy import datetime from neutron.db import api as db_api from neutron.openstack.common import context as common_context from neutron.openstack.common import local from neutron.openstack.common import log as logging from neutron import policy LOG = logging.getLogger(__name__) class ContextBase(common_conte...
PypiClean
/tensorflow_tflex-1.13.1rc1-cp27-cp27mu-manylinux1_x86_64.whl/tensorflow_tflex-1.13.1rc1.data/purelib/tensorflow/include/tensorflow/include/external/eigen_archive/unsupported/Eigen/CXX11/src/Tensor/README.md
# Eigen Tensors {#eigen_tensors} Tensors are multidimensional arrays of elements. Elements are typically scalars, but more complex types such as strings are also supported. [TOC] ## Tensor Classes You can manipulate a tensor with one of the following classes. They all are in the namespace `::Eigen.` ### Class Te...
PypiClean
/visualml-0.1b2.tar.gz/visualml-0.1b2/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install VisualML, run this command in your terminal: .. code-block:: console $ pip install visualml This is the preferred method to install VisualML, as it will always install the most recent stable release. If you ...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/teamwork/deleted_teams/item/channels/item/messages/item/replies/item/soft_delete/soft_delete_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
/pymars-0.10.0a1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl/mars/learn/contrib/statsmodels/api.py
import pickle # nosec # pylint: disable=import_pickle from .train import StatsModelsTrain from .predict import StatsModelsPredict try: from statsmodels.base.distributed_estimation import DistributedModel except ImportError: DistributedModel = None class MarsDistributedModel: def __init__( sel...
PypiClean
/wwpdb.utils.wf-0.35.tar.gz/wwpdb.utils.wf-0.35/wwpdb/utils/wf/plugins/ValidationUtils.py
__docformat__ = "restructuredtext en" __author__ = "John Westbrook" __email__ = "jwest@rcsb.rutgers.edu" __license__ = "Creative Commons Attribution 3.0 Unported" __version__ = "V0.01" import os import sys import traceback from wwpdb.utils.wf.plugins.UtilsBase import UtilsBase from wwpdb.utils.config.ConfigInfo import...
PypiClean
/py_viptela-0.2.9.8.5.tar.gz/py_viptela-0.2.9.8.5/py_viptela/api/monitoring/cflowd.py
def getStatDataRawData(vmanage, query): """ Get stats raw data Parameters: query (string): Query string Returns response (dict) """ query_string = vmanage.builder.generateQuery(query) endpoint = f"dataservice/statistics/cflowd?query={query_string}" respons...
PypiClean
/mediapipe-rpi4-0.8.8.tar.gz/mediapipe-rpi4-0.8.8/mediapipe/python/solutions/drawing_utils.py
import math from typing import List, Mapping, Optional, Tuple, Union import cv2 import dataclasses import matplotlib.pyplot as plt import numpy as np from mediapipe.framework.formats import detection_pb2 from mediapipe.framework.formats import location_data_pb2 from mediapipe.framework.formats import landmark_pb2 _P...
PypiClean
/sdnn-cl-2.2.0.tar.gz/sdnn-cl-2.2.0/tvm/meta_schedule/search_strategy/search_strategy.py
from typing import List, Optional, TYPE_CHECKING from tvm._ffi import register_object from tvm.runtime import Object from tvm.tir.schedule import Schedule from .. import _ffi_api from ..arg_info import ArgInfo from ..runner import RunnerResult from ..utils import check_override if TYPE_CHECKING: from ..tune_cont...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/shares/item/list/content_types/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
/avalanche-etl-0.0.2.tar.gz/avalanche-etl-0.0.2/avalancheetl/progress_logger.py
import logging from datetime import datetime from avalancheetl.atomic_counter import AtomicCounter # Thread safe progress logger. class ProgressLogger: def __init__(self, name='work', logger=None, log_percentage_step=10, log_item_step=5000): self.name = name self.total_items = None self...
PypiClean
/choochoo-0.41.1.tar.gz/choochoo-0.41.1/ch2/data/response.py
import datetime as dt import re from logging import getLogger import numpy as np from math import exp from pandas import DataFrame, Series from scipy import optimize from .lib import decay_params, inplace_decay from ..lib.data import safe_dict from ..names import Titles, like, N, SPACE log = getLogger(__name__) IMP...
PypiClean
/dash-2.13.0.tar.gz/dash-2.13.0/components/dash-table/dash_table/Format.py
import collections def get_named_tuple(name, dict): return collections.namedtuple(name, dict.keys())(*dict.values()) Align = get_named_tuple( "align", {"default": "", "left": "<", "right": ">", "center": "^", "right_sign": "="}, ) Group = get_named_tuple("group", {"no": "", "yes": ","}) Padding = get_...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/frr/frr/plugins/modules/frr_bgp.py
from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = """ module: frr_bgp author: Nilashish Chakraborty (@NilashishC) short_description: Configure global BGP settings on Free Range Routing(FRR). description: - This module provides configuration management of global B...
PypiClean
/torvy-hass-0.1.tar.gz/torvy-hass-0.1/homeassistant/util/__init__.py
from collections.abc import MutableSet from itertools import chain import threading import queue from datetime import datetime import re import enum import socket import random import string from functools import wraps from types import MappingProxyType from typing import Any, Optional, TypeVar, Callable, Sequence, Ke...
PypiClean
/stoobly_agent-0.30.6-py3-none-any.whl/stoobly_agent/app/cli/config_cli.py
import json import time from typing import List import click from stoobly_agent.app.settings import Settings from stoobly_agent.app.settings.constants import firewall_action, request_component from stoobly_agent.app.settings.firewall_rule import FirewallRule from stoobly_agent.app.settings.match_rule import MatchRule...
PypiClean
/rg_javascript-1!1.0.4.tar.gz/rg_javascript-1!1.0.4/src/rg_javascript/js/errors.js
const supportsColors = true const chalk = { boldRed: text => supportsColors ? `\x1b[1m\x1b[91m${text}\x1b[0m` : text, blueBright: text => supportsColors ? `\x1b[91m${text}\x1b[0m` : text, dim: text => supportsColors ? `\x1b[2m${text}\x1b[0m` : text, red: text => supportsColors ? `\x1b[91m${text}\x1b[0m` : text,...
PypiClean
/flappy-bird-gym-0.3.0.tar.gz/flappy-bird-gym-0.3.0/README.md
## Flappy Bird for OpenAI Gym ![Python versions](https://img.shields.io/pypi/pyversions/flappy-bird-gym) [![PyPI](https://img.shields.io/pypi/v/flappy-bird-gym)](https://pypi.org/project/flappy-bird-gym/) [![License](https://img.shields.io/github/license/Talendar/flappy-bird-gym)](https://github.com/Talendar/flappy-bi...
PypiClean
/ArduinoBoardCollection-0.1.1566386412.tar.gz/ArduinoBoardCollection-0.1.1566386412/arduino_board_collection_bu/boards/sensor_boards/light_sensors/tsl2591/board.py
import struct import numpy as np import scipy.interpolate from ArduinoCodeCreator.arduino_data_types import ( uint32_t, uint8_t, boolean, uint16_t, float_, ) from ArduinoCodeCreator.basic_types import ArduinoClass, Function, ArduinoEnum from arduino_controller.arduino_variable import arduio_variab...
PypiClean
/hedtools-0.3.1-py3-none-any.whl/hed/tools/remodeling/operations/merge_consecutive_op.py
import pandas as pd from hed.tools.remodeling.operations.base_op import BaseOp class MergeConsecutiveOp(BaseOp): """ Merge consecutive rows with same column value. Required remodeling parameters: - **column_name** (*str*): name of column whose consecutive values are to be compared (the merge column)...
PypiClean
/debug_print-0.6.1.tar.gz/debug_print-0.6.1/README
=========== debug_print =========== This package comes from a basic idea that I have redone a couple of times originally in c and have dropped as a single .py(or .h) file in many of my projects. This can be used by dumping the folder with your project or you can install it by running `pip install debug_print`. While...
PypiClean
/Pootle-2.9.0b3.tar.bz2/Pootle-2.9.0b3/pootle/assets/js/vendor/spin.js
(function(root, factory) { /* CommonJS */ if (typeof exports == 'object') module.exports = factory() /* AMD module */ else if (typeof define == 'function' && define.amd) define(factory) /* Browser global */ else root.Spinner = factory() } (this, function() { "use strict"; var prefixes = ['webkit', ...
PypiClean
/check-wheel-contents-0.4.0.tar.gz/check-wheel-contents-0.4.0/src/check_wheel_contents/__main__.py
from __future__ import annotations from collections.abc import Iterator from pathlib import Path from typing import Any, Optional import click from wheel_filename import InvalidFilenameError from . import __version__ from .checker import NO_CONFIG, WheelChecker from .checks import Check, parse_checks_string from .conte...
PypiClean
/h2o_pysparkling_scoring_2.3-3.42.0.2.post1.tar.gz/h2o_pysparkling_scoring_2.3-3.42.0.2.post1/ai/h2o/sparkling/ml/models/H2OGAMMOJOModel.py
from ai.h2o.sparkling.ml.params.H2OMOJOModelParams import H2OSupervisedMOJOModelParams from pyspark.ml.util import _jvm from py4j.java_gateway import JavaObject from ai.h2o.sparkling.Initializer import Initializer from ai.h2o.sparkling.ml.models.H2OMOJOSettings import H2OMOJOSettings from ai.h2o.sparkling.ml.params.H2...
PypiClean
/augurlib-1.1.62.tar.gz/augurlib-1.1.62/augur/common.py
import json import os import re import arrow import datetime import pytz from munch import munchify import augur from augur import db from functools import reduce __author__ = 'karim' from math import sqrt, floor from dateutil.parser import parse JIRA_KEY_REGEX = r"([A-Za-z]+\-\d{1,6})" # Note: The order matters ...
PypiClean
/AppDynamicsRESTx-0.4.22.tar.gz/AppDynamicsRESTx-0.4.22/examples/audit.py
from __future__ import print_function from string import Template from datetime import datetime, timedelta from time import mktime from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from MySQLdb.cursors import DictCursor from jinja2 import Environment, FileSystemLoader import argparse...
PypiClean
/sphinx_tags-0.2.1.tar.gz/sphinx_tags-0.2.1/README.md
# sphinx-tags [![sphinx-tags](https://circleci.com/gh/melissawm/sphinx-tags.svg?style=svg)](https://circleci.com/gh/melissawm/sphinx-tags) A tiny Sphinx extension that implements blog-style tags for documentation. **🗣 If you use this extension in your project, please drop us a note [in this discussion post](https://...
PypiClean
/RIFT-0.0.15.10rc1.tar.gz/RIFT-0.0.15.10rc1/MonteCarloMarginalizeCode/Code/bin/util_RIFT_MultiMetaPipe.py
# EXAMPLE # python util_RIFT_MultiMetaPipe.py --workflow dummy_metafile.meta # dummy_metafile.meta # common_args arg1 arg2 # A argA1 argA2 # B argB1 argB2 # C # D # parent A child B # parent B child C # parent B child D # flow C child D # flow D chid C # we can even have a synchronous_child option, for children th...
PypiClean
/qiskit-optimization-0.5.0.tar.gz/qiskit-optimization-0.5.0/qiskit_optimization/algorithms/grover_optimizer.py
import logging import math import warnings from copy import deepcopy from typing import Dict, List, Optional, Union, cast import numpy as np from qiskit import QuantumCircuit, QuantumRegister from qiskit.algorithms import AmplificationProblem from qiskit.algorithms.amplitude_amplifiers.grover import Grover from qiskit...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AntMerchantExpandBrandAssetUnbindRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AntMerchantExpandBrandAssetUnbindModel import AntMerchantExpandBrandAssetUnbindModel class AntMerchantExpandBrandAssetUnbindRequest(object): def __init__(self, biz_model=Non...
PypiClean
/limitloop-0.1.tar.gz/limitloop-0.1/README.md
# __Limitloop__ Limitloop is a lightweight python module for running loops that depend on precise timing. This package is available through Pypi and can be installed with the following command. ```sh python -m pip install limitloop ``` ## Basic usage All functionality of the module is provided through the `limitlo...
PypiClean
/b5-1.3.5.tar.gz/b5-1.3.5/README.md
![b5 ready](assets/badges/b5_ready.png) # b5 Task Runner b5 is the central task runner for all projects of our agency (TEAM23 - www.team23.de). It tries to be as simple as possible while empowering you to write your own tasks, extend existing ones and use b5 for all of the everyday project jobs. ## Basic usage and c...
PypiClean
/pycopy-uasyncio.core-2.3.3.tar.gz/pycopy-uasyncio.core-2.3.3/uasyncio/core.py
import utime as time import utimeq import ucollections type_gen = type((lambda: (yield))()) _DEBUG = 0 _log = None def set_debug(val): global _DEBUG, _log _DEBUG = val if val: import ulogging _log = ulogging.getLogger("uasyncio.core") class CancelledError(Exception): pass class T...
PypiClean
/clingo-lp-0.2.0.tar.gz/clingo-lp-0.2.0/src/lps.py
import time # lpsolve wrapper import lp_solve from lp_solve import lpsolve class lps: def __init__(self, mapping, doms, ilp): self.__var_mapping = {} # {varname : position} self.__doms = doms # {varname : [(lb,ub)]} self.__clist = [] # [({varname : weig...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/eventgrid/get_client_group.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__ = [ 'GetClientGroupResult', 'AwaitableGetClientGroupResult', 'get_client_group', 'get_client_group_output', ] @p...
PypiClean
/temporalio-0.1a2.tar.gz/temporalio-0.1a2/README.md
# Temporal Python SDK [![Python 3.7+](https://img.shields.io/pypi/pyversions/temporalio.svg?style=for-the-badge)](https://pypi.org/project/temporalio) [![PyPI](https://img.shields.io/pypi/v/temporalio.svg?style=for-the-badge)](https://pypi.org/project/temporalio) [![MIT](https://img.shields.io/pypi/l/temporalio.svg?st...
PypiClean
/claret-assistant-frontend-20210707.0.tar.gz/claret-assistant-frontend-20210707.0/hass_frontend/frontend_es5/chunk.e99b8b47b1b941d97f56.js
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[7065],{67065:function(e,t,n){"use strict";var r,i=n(83511),o=n(3239),a=n(50424),l=n(55358),c=n(76666),s=n(82816),d=n(92483),u=n(14516),h=n(25516),f=n(47181),p=(n(7164),n(38346)),m=n(96151),b=n(11654),y=(n(32511),n(16509),n(91...
PypiClean
/nomad_broker_cli-1.7.0.tar.gz/nomad_broker_cli-1.7.0/nomad_broker_cli/api/settlement_api.py
import re # noqa: F401 import sys # noqa: F401 from nomad_broker_cli.api_client import ApiClient, Endpoint from nomad_broker_cli.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_types ) from nomad_broker...
PypiClean
/aries_cloudagent-1.0.0rc3.tar.gz/aries_cloudagent-1.0.0rc3/aries_cloudagent/vc/ld_proofs/purposes/controller_proof_purpose.py
from typing import TYPE_CHECKING from pyld.jsonld import JsonLdProcessor from pyld import jsonld from ..constants import SECURITY_CONTEXT_URL from ..document_loader import DocumentLoaderMethod from ..error import LinkedDataProofException from ..validation_result import PurposeResult from .proof_purpose import Proof...
PypiClean
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/an-xiao-yao/13-安小妖《好男人,你也要学会撩妹》:0-100:045遭遇情场老司机微信ziyuan-share.md
# 13-安小妖《好男人,你也要学会撩妹》:0-100:045遭遇情场老司机微信 ziyuan-share 本节目由喜马拉雅读家播出,成为更好的自己让爱情自然发生,大家好 我是白拉,第二个案例就是我去了下一场,去了酒吧之后,当时我到酒吧的时候,我的三个朋友他们都已经到了,他们坐在八台。 这个酒吧是其中一个朋友的朋友开的,也就是这个酒吧的老板,跟我其中一个朋友他们认识,那我进门之后,因为朋友坐在八台外面,这个老板就在八台里面调酒,然后当时我看了他眼,我对这个老板的第一印象。 就是其实这个男生还挺是我的菜,但是他没有对我表现的特别热情,就是他也只是远远的看了我一眼,然后也没有任何的表情,也没有说话,然后我朋友就跟我介绍了这个老板,...
PypiClean
/craft-parts-1.24.1.tar.gz/craft-parts-1.24.1/craft_parts/packages/apt_cache.py
from __future__ import annotations import logging import os import re import shutil from contextlib import ContextDecorator from pathlib import Path from typing import Any, Dict, Iterable, List, Optional, Set, Tuple, Union try: import apt import apt.cache import apt.package import apt.progress imp...
PypiClean
/bitmex_websocket-0.3.5.tar.gz/bitmex_websocket-0.3.5/bitmex_websocket/auth/api_key_auth.py
from urllib.parse import urlparse from requests.auth import AuthBase import time import hashlib import hmac class APIKeyAuth(AuthBase): '''Attaches API Key Authentication to the given Request object.''' def __init__(self, apiKey, apiSecret): '''Init with Key & Secret.''' self.apiKey = apiKey...
PypiClean
/pdfplumber-aemc-0.7.7.tar.gz/pdfplumber-aemc-0.7.7/pdfplumber/page.py
import re from functools import lru_cache from typing import ( TYPE_CHECKING, Any, Callable, Dict, Generator, List, Optional, Pattern, Tuple, Union, ) from pdfminer.converter import PDFPageAggregator from pdfminer.layout import ( LTChar, LTComponent, LTContainer, ...
PypiClean
/mysqlpy-8.0.12-py3-none-any.whl/mysql/connector/__init__.py
try: import _mysql_connector # pylint: disable=F0401 from .connection_cext import CMySQLConnection except ImportError: HAVE_CEXT = False else: HAVE_CEXT = True from . import version from .connection import MySQLConnection from .errors import ( # pylint: disable=W0622 Error, Warning, InterfaceErro...
PypiClean
/lizard-ui-5.3.tar.gz/lizard-ui-5.3/lizard_ui/static/openlayers/1.12-r7/lib/OpenLayers/Lang/gsw.js
* @requires OpenLayers/Lang.js */ /** * Namespace: OpenLayers.Lang["gsw"] * Dictionary for Alemannisch. Keys for entries are used in calls to * <OpenLayers.Lang.translate>. Entry bodies are normal strings or * strings formatted for use with <OpenLayers.String.format> calls. */ OpenLayers.Lang["gsw"] =...
PypiClean
/fds.sdk.DirectStreamingofTransactionMessages-0.22.7-py3-none-any.whl/fds/sdk/DirectStreamingofTransactionMessages/configuration.py
import copy import logging import multiprocessing import sys import urllib3 from http import client as http_client from fds.sdk.DirectStreamingofTransactionMessages.exceptions import ApiValueError from fds.sdk.utils.authentication import OAuth2Client JSON_SCHEMA_VALIDATION_KEYWORDS = { 'multipleOf', 'maximum', '...
PypiClean
/climlab-0.8.1.tar.gz/climlab-0.8.1/docs/source/api/climlab.rst
CLIMLAB API reference ================= .. automodule:: climlab .. toctree:: :maxdepth: 4 climlab.convection climlab.domain climlab.dynamics climlab.model climlab.process climlab.radiation climlab.solar climlab.surface climlab.utils Inheritance Diagram ------------------- ...
PypiClean
/nni_yds-0.3.7-py3-none-any.whl/nni_yds-0.3.7.data/data/nni/node_modules/needle/node_modules/iconv-lite/Changelog.md
# 0.4.24 / 2018-08-22 * Added MIK encoding (#196, by @Ivan-Kalatchev) # 0.4.23 / 2018-05-07 * Fix deprecation warning in Node v10 due to the last usage of `new Buffer` (#185, by @felixbuenemann) * Switched from NodeBuffer to Buffer in typings (#155 by @felixfbecker, #186 by @larssn) # 0.4.22 / 2018-05-05 ...
PypiClean
/vivarium-notebooks-0.0.5.tar.gz/vivarium-notebooks-0.0.5/README.md
# Vivarium notebooks ## Setup To run the code used in this work, you will need to install the following modules: `vivarium-core`, `vivarium-cobra`, `vivarium-bioscrape`, and `vivarium-multibody`. These modules can be installed locally by executing the following command in the root directory: 1. Clone the repository....
PypiClean
/fair-esm-2.0.0.tar.gz/fair-esm-2.0.0/esm/inverse_folding/features.py
import math import numpy as np import torch import torch.nn as nn import torch.nn.functional as F from .gvp_utils import flatten_graph from .gvp_modules import GVP, LayerNorm from .util import normalize, norm, nan_to_num, rbf class GVPInputFeaturizer(nn.Module): @staticmethod def get_node_features(coords, ...
PypiClean
/openclio-0.2.tar.gz/openclio-0.2/README.md
# `openclio` ![PyPI](https://img.shields.io/pypi/v/openclio?color=dark%20green&label=PyPI%20release) A tool to quickly figure out the input and output arguments of an OpenCL kernel. ## 1. What is `openclio`? In many engineering and predictive tasks involving OpenCL kernels, it is unfortunately common that the engin...
PypiClean
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/newgram/types/messages_and_media/message_entity.py
from typing import Optional import newgram from newgram import raw, enums from newgram import types from ..object import Object class MessageEntity(Object): """One special entity in a text message. For example, hashtags, usernames, URLs, etc. Parameters: type (:obj:`~newgram.enums.MessageE...
PypiClean
/opencl_fdfd-0.4-py3-none-any.whl/opencl_fdfd/ops.py
from typing import List, Callable, Union, Type, Sequence, Optional, Tuple import logging import numpy from numpy.typing import NDArray, ArrayLike import jinja2 import pyopencl import pyopencl.array from pyopencl.elementwise import ElementwiseKernel from pyopencl.reduction import ReductionKernel logger = logging.get...
PypiClean
/NlpToolkit-NER-Cy-1.0.4.tar.gz/NlpToolkit-NER-Cy-1.0.4/README.md
# Named Entity Recognition ## Task Definition In named entity recognition, one tries to find the strings within a text that correspond to proper names (excluding TIME and MONEY) and classify the type of entity denoted by these strings. The problem is difficult partly due to the ambiguity in sentence segmentation; one...
PypiClean
/eulith_web3-0.14.4.tar.gz/eulith_web3-0.14.4/src/eulith_web3/contract_bindings/curve/curve_v2_eth_crv_gauge.py
from typing import Optional, Union, List from eth_typing import Address, ChecksumAddress from web3 import Web3 from web3.types import TxParams class ContractAddressNotSet(Exception): pass class CurveV2EthCrvGauge: def __init__(self, web3: Web3, contract_address: Optional[Union[Address, ChecksumAddress]] = N...
PypiClean
/fullmarks.mathjax-1.0.zip/fullmarks.mathjax-1.0/fullmarks/mathjax/static/mathjax/extensions/FontWarnings.js
(function(d,g){var f="1.1";var b=d.CombineConfig("FontWarnings",{messageStyle:{position:"fixed",bottom:"4em",left:"3em",width:"40em",border:"3px solid #880000","background-color":"#E0E0E0",padding:"1em","font-size":"small","white-space":"normal","border-radius":".75em","-webkit-border-radius":".75em","-moz-border-radiu...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/rachio/const.py
DEFAULT_NAME = "Rachio" DOMAIN = "rachio" CONF_CUSTOM_URL = "hass_url_override" # Manual run length CONF_MANUAL_RUN_MINS = "manual_run_mins" DEFAULT_MANUAL_RUN_MINS = 10 # Slope constants SLOPE_FLAT = "ZERO_THREE" SLOPE_SLIGHT = "FOUR_SIX" SLOPE_MODERATE = "SEVEN_TWELVE" SLOPE_STEEP = "OVER_TWELVE" # Keys used in ...
PypiClean
/software_mentions_client-0.1.9.tar.gz/software_mentions_client-0.1.9/software_mentions_client/S3.py
import os from boto3 import client """ This is derived from: https://gist.github.com/freewayz/1fbd00928058c3d682a0e25367cc8ea4 """ class S3(object): def __init__(self, config): self.config = config if self.config['region'] is not None: region = self.config['region'] else: ...
PypiClean
/funkiio-1.0.1-py3-none-any.whl/homeassistant/components/tado/__init__.py
import logging import urllib from datetime import timedelta import voluptuous as vol from homeassistant.helpers.discovery import load_platform from homeassistant.helpers import config_validation as cv from homeassistant.const import CONF_USERNAME, CONF_PASSWORD from homeassistant.util import Throttle _LOGGER = loggi...
PypiClean
/dffrntlab_thumbor-7.2.1-cp27-cp27m-macosx_11_2_x86_64.whl/thumbor/filters/redeye.py
# thumbor imaging service # https://github.com/thumbor/thumbor/wiki # Licensed under the MIT license: # http://www.opensource.org/licenses/mit-license # Copyright (c) 2011 globo.com thumbor@googlegroups.com from os.path import abspath, dirname, join import cv2 import numpy as np from thumbor.filters import BaseFil...
PypiClean
/geek_mess_server-0.0.1-py3-none-any.whl/server/server/server_gui.py
import binascii import hashlib import os from PyQt5.QtCore import QTimer, Qt from PyQt5.QtGui import QStandardItemModel, QStandardItem from PyQt5.QtWidgets import QMainWindow, qApp, QDialog, \ QFileDialog, QMessageBox, QLineEdit from server.server_ui import Ui_ServerGui from server.set_server_ui import Ui_DialogSe...
PypiClean
/flask_adminlte_full-0.2.0-py3-none-any.whl/flask_adminlte_full/static/plugins/summernote/lang/summernote-ja-JP.min.js
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(window,(function(){return function(e){var t={};function r(o){if(t[o])return t[o].exports;var n=t[...
PypiClean
/agora_demo-0.1.0.tar.gz/agora_demo-0.1.0/agora_demo/core/listener.py
from core.blockchain.blockchain_utils import * from core.blockchain.ipfs_utils import * from web3.auto import w3 import core.scheduler as scheduler from core.utils.dmljob import DMLJob, deserialize_job class DMLListener(object): """ This class handles all interactions with the blockchain. This includes l...
PypiClean
/turta_iothat-1.1.1.tar.gz/turta_iothat-1.1.1/turta_iothat/Turta_MMA8491Q.py
# Python Driver for NXP MMA8491Q 3-Axis Accelerometer & Tilt Sensor # Version 1.01 # Updated: July 14th, 2018 # Visit https://docs.turta.io for documentation. import time import RPi.GPIO as GPIO from smbus import SMBus class MMA8491QSensor: "MMA8491Q Sensor" #Pins mma8491qEn, mma8491qInt = 5, 17 #...
PypiClean
/poseidon-python-1.1.5.tar.gz/poseidon-python-1.1.5/Poseidon/Cryptography.py
import gmpy2 import base64 from Crypto.Cipher import AES as aes from Crypto.Util.number import long_to_bytes, bytes_to_long from typing import Optional, List class MiscUtils(): """ 本模块用于处理进制转换和常用哈希。静态类,无需实例化。 """ @staticmethod def Binary_String(Binary: str) -> str: """ 用于将形如"1010....
PypiClean