id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/FetchNovels-0.9.6.2.tar.gz/FetchNovels-0.9.6.2/novel/single.py |
from enum import Enum
from pyquery import PyQuery
from termcolor import colored
from novel.base import SinglePage
from novel.db import new_session
from novel.models import Article, Website
from novel.utils import get_filename, get_base_url
class TitleType(Enum):
selector = 1
meta = 2
class SingleNovel(Si... | PypiClean |
/nengolib-0.5.2.tar.gz/nengolib-0.5.2/.eggs/scipy-1.3.0-py3.7-linux-x86_64.egg/scipy/optimize/_lsq/dogbox.py | from __future__ import division, print_function, absolute_import
import numpy as np
from numpy.linalg import lstsq, norm
from scipy.sparse.linalg import LinearOperator, aslinearoperator, lsmr
from scipy.optimize import OptimizeResult
from scipy._lib.six import string_types
from .common import (
step_size_to_boun... | PypiClean |
/numpy_mips64-1.17.4.tar.gz/numpy_mips64-1.17.4/doc/source/reference/random/extending.rst | .. currentmodule:: numpy.random
Extending
---------
The BitGenerators have been designed to be extendable using standard tools for
high-performance Python -- numba and Cython. The `~Generator` object can also
be used with user-provided BitGenerators as long as these export a small set of
required functions.
Numba
==... | PypiClean |
/opsas-pylib-0.2.2.tar.gz/opsas-pylib-0.2.2/src/opsas/utils/SlackLogHandler.py | from logging import Handler
from opsas.utils.HttpSession import HttpSession
class SlackMessager(HttpSession):
def __init__(self, logger, token, channel):
super().__init__(logger, endpoint='https://slack.com/api')
self.session.headers.setdefault('Authorization', 'Bearer ' + token)
self.se... | PypiClean |
/captricity-python-client-0.21.tar.gz/captricity-python-client-0.21/captools/api/application.py | import urllib
import webbrowser
import urlparse
import BaseHTTPServer
import SocketServer
import re
from util import generate_request_access_signature
_API_TOKEN = ""
class CallbackHandler(BaseHTTPServer.BaseHTTPRequestHandler):
def do_GET(self):
global _API_TOKEN
parsed_query = urlparse.parse_qs... | PypiClean |
/dummy_wx-0.3.0-py3-none-any.whl/wx/lib/throbber.py |
import os
import wx
# ------------------------------------------------------------------------------
THROBBER_EVENT = wx.NewEventType()
EVT_UPDATE_THROBBER = wx.PyEventBinder(THROBBER_EVENT, 0)
class UpdateThrobberEvent(wx.PyEvent):
def __init__(self):
wx.PyEvent.__init__(self)
self.SetEventTyp... | PypiClean |
/BiologicalProcessNetworks-1.0a3.tar.gz/BiologicalProcessNetworks-1.0a3/README.rst | ==================================
Python Biological Process Networks
==================================
Python Biological Process Networks (PyBPN) provides programs to detect
connections between biological processes (called "links") based on gene
interaction, expression, and annotation data. A collection of
significa... | PypiClean |
/kolibri_ml-1.1.88-py3-none-any.whl/kolibri/tokenizers/kolibri_tokenizer.py |
__author__ = 'mohamedbenhaddou'
from kolibri.tokenizers.tokenizer import Tokenizer
from kolibri.stopwords import get_stop_words
from kdmt.dict import update
import numpy as np
import os, joblib
from kolibri.logger import get_logger
from kolibri.data import load
from kolibri.tools._regex import Regex
from kolibri.too... | PypiClean |
/smart_home_tng-2023.1.3.tar.gz/smart_home_tng-2023.1.3/script/gen_requirements_all.py | """Generate an updated requirements_all.txt."""
import difflib
import importlib
import os
import pkgutil
import sys
from pathlib import Path
import packaging.requirements as pack_req
from .shc_from_manifests.integration import Integration
from .shc_from_manifests.requirements import normalize_package_name
if sys.ver... | PypiClean |
/datadog_api_client-2.16.0-py3-none-any.whl/datadog_api_client/v2/model/rum_application_list_attributes.py | from __future__ import annotations
from typing import Union
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
unset,
UnsetType,
)
class RUMApplicationListAttributes(ModelNormal):
validations = {
"org_id": {
"inclusive_maximum": 2147483647,
},
... | PypiClean |
/diffpy.srmise-0.5.2.tar.gz/diffpy.srmise-0.5.2/diffpy/srmise/modelevaluators/aic.py |
import numpy as np
from diffpy.srmise.modelevaluators.base import ModelEvaluator
from diffpy.srmise.srmiseerrors import SrMiseModelEvaluatorError
import logging, diffpy.srmise.srmiselog
logger = logging.getLogger("diffpy.srmise")
class AIC (ModelEvaluator):
"""Evaluate and compare models with the AIC statistic.
... | PypiClean |
/pymgclient-1.2.0.tar.gz/pymgclient-1.2.0/docs/source/module.rst | ===============================
:mod:`mgclient` module content
===============================
The module interface respects the DB-API 2.0 standard defined in :pep:`249`.
.. py:module:: mgclient
.. autofunction:: mgclient.connect
See :ref:`lazy-connections` section to learn about
advantages and limitations of usin... | PypiClean |
/django-files-1.1.tar.gz/django-files-1.1/files/__init__.py |
from __future__ import absolute_import
from files.models import Attachment
from files.forms import AttachmentForm
from django.conf import settings
from django.core import urlresolvers
from django.core.exceptions import ImproperlyConfigured
from django.utils.importlib import import_module
DEFAULT_FILE_STORAGE_BACKEN... | PypiClean |
/kiwitcms-12.4.tar.gz/kiwitcms-12.4/tcms/node_modules/moment/dist/locale/lv.js |
import moment from '../moment';
var units = {
ss: 'sekundes_sekundēm_sekunde_sekundes'.split('_'),
m: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
mm: 'minūtes_minūtēm_minūte_minūtes'.split('_'),
h: 'stundas_stundām_stunda_stundas'.split('_'),
hh: 'stundas_stundām_stunda_stundas'.split('_'),
d... | PypiClean |
/social_edu_federation-2.1.1.tar.gz/social_edu_federation-2.1.1/README.md | # social-edu-federation: An SAML authentication backend for python-social-auth dedicated to education federation (RENATER)
[](https://www.python.org/)
[]... | PypiClean |
/kube_resource_report-21.2.1-py3-none-any.whl/kube_resource_report/output.py | import logging
import shutil
from pathlib import Path
from typing import Optional
from jinja2 import Environment
from jinja2 import FileSystemLoader
from jinja2 import select_autoescape
from kube_resource_report import filters
TEMPLATES_PATH = Path(__file__).parent / "templates"
logger = logging.getLogger(__name__)... | PypiClean |
/goodcrap-0.2.2.tar.gz/goodcrap-0.2.2/README.md | # `goodcrap`
`goodcrap` is a python package that generates random data stuff: creates and fills data structures (tables, databases and `csv` files) with random data, generates [`Mage`](https://github.com/mage-ai/mage-ai) pipelines that the user can use to orchestrate filling the data structures, and generate random SQ... | PypiClean |
/GrilloModem-1.2.4.tar.gz/GrilloModem-1.2.4/grillo/config.py | CHIRP_APP_KEY = "CC6C1FbeE6D84fe75Abd4bbdD"
CHIRP_APP_SECRET = "51Fdc627f8E2D68B61cE162dF10f00aaD4F10b6f24F063c40a"
CHIRP_APP_CONFIG = "R3X2itsZu2HcnHP+yXF32PHrpjtKBmiQqdXXX9WtTfGMw0p4g51q2VPY4bVUzVdUuEtADt/hBHEfAjwy2cvmKtj+ltAQY78ptUJ9obX7LMN5xihed+qbS9RNr1R9gPJD2QHv/N5k1jiyoL9iEXSIRUaEJvSmf0AaNs7tRKa6lm0InwCT2TseldrE... | PypiClean |
/ssdk-0.0.3-py3-none-any.whl/sec/function/cli.py | import tabulate
from sec.function.client import FunctionClient
class FunctionCli:
def __init__(self, namespace=None):
self._client = FunctionClient.from_env(namespace, try_config=True, try_env=True)
self.queue = FunctionQueueCli(self._client)
self.repo = FunctionRepoCli(self._client)
... | PypiClean |
/cruds_dj_adminlte2-1.0-py3-none-any.whl/cruds_adminlte/static/ckeditor/lang/bg.js | /*
Copyright (c) 2003-2016, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.lang['bg']={"editor":"Текстов редактор за форматиран текст","editorPanel":"Панел на текстовия редактор","common":{"editorHelp":"натиснете ALT 0 за помощ","browseServer... | PypiClean |
/aifs_nni-1.9.5-py3-none-manylinux1_x86_64.whl/aifs_nni-1.9.5.data/data/nni/node_modules/json-stringify-safe/README.md | # json-stringify-safe
Like JSON.stringify, but doesn't throw on circular references.
## Usage
Takes the same arguments as `JSON.stringify`.
```javascript
var stringify = require('json-stringify-safe');
var circularObj = {};
circularObj.circularRef = circularObj;
circularObj.list = [ circularObj, circularObj ];
cons... | PypiClean |
/odooku_odoo_base-11.0.7-py35-none-any.whl/odoo/exceptions.py | import logging
from inspect import currentframe
from .tools.func import frame_codeinfo
_logger = logging.getLogger(__name__)
# kept for backward compatibility
class except_orm(Exception):
def __init__(self, name, value=None):
if type(self) == except_orm:
caller = frame_codeinfo(currentframe()... | PypiClean |
/collective.js.angular-1.5.5.0.tar.gz/collective.js.angular-1.5.5.0/src/collective/js/angular/resources/i18n/angular-locale_ur-in.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... | PypiClean |
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/platform/operations/entitlement/enable_user_entitlement.py |
# template file: ags_py_codegen
# pylint: disable=duplicate-code
# pylint: disable=line-too-long
# pylint: disable=missing-function-docstring
# pylint: disable=missing-module-docstring
# pylint: disable=too-many-arguments
# pylint: disable=too-many-branches
# pylint: disable=too-many-instance-attributes
# pylint: dis... | PypiClean |
/anycore_dbg_supplement-0.7.0-py3-none-any.whl/Checkpointing/DumpHTIF/chkpt_htif_dump.py |
# chkpt format: HTIF | 0xbaadbeefdeadbeef | memory | 0xdeadbeefbaadbeef | proc
import click
import gzip
import sys
from typing import Tuple, Iterable, Dict, Any, List, Callable, Optional, Set
SYSTEM_ENCODING = 'ascii'
TARGET_XLEN = 64
TARGET_ENDIAN = 'little'
HOST_XLEN = 64
HOST_ENDIAN = 'little'
class htif_stream... | PypiClean |
/jk_packunpack-0.2022.10.25.tar.gz/jk_packunpack-0.2022.10.25/jk_packunpack/Spooler.py | import os
import typing
import jk_simpleexec
import jk_logging
import jk_utils
from .SpoolInfo import SpoolInfo
class Spooler(object):
################################################################################################################################
## Static Helper Methods
###################... | PypiClean |
/python-lei-0.1.1.tar.gz/python-lei-0.1.1/README.md | # python-lei
[](https://codecov.io/gh/jdvala/python-lei)
[](https://github.com/python/black)

class CCMAIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?ccma\.cat/(?:[^/]+/)*?(?P<type>video|audio)/(?P<id>\d+)'
_TES... | PypiClean |
/google-cloud-dialogflow-cx-1.26.0.tar.gz/google-cloud-dialogflow-cx-1.26.0/google/cloud/dialogflowcx_v3beta1/services/intents/transports/grpc_asyncio.py | import warnings
from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union
from google.api_core import gapic_v1
from google.api_core import grpc_helpers_async
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore
... | PypiClean |
/linode_api4-5.7.2-py3-none-any.whl/linode_api4/objects/database.py | from linode_api4.objects import Base, DerivedBase, MappedObject, Property
class DatabaseType(Base):
"""
The type of a managed database.
API Documentation: https://www.linode.com/docs/api/databases/#managed-database-type-view
"""
api_endpoint = "/databases/types/{id}"
properties = {
... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Control/CacheRead.js | * @requires OpenLayers/Control.js
*/
/**
* Class: OpenLayers.Control.CacheRead
* A control for using image tiles cached with <OpenLayers.Control.CacheWrite>
* from the browser's local storage.
*
* Inherits from:
* - <OpenLayers.Control>
*/
OpenLayers.Control.CacheRead = OpenLayers.Class(OpenLayers.Control, {... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/joined_teams/item/members/add/add_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, Union
from .......models import conversation_member
class AddPostRequestBody(AdditionalDataHolder, Parsable):
"""
... | PypiClean |
/dsin100daysv28-6.0.1.tar.gz/dsin100daysv28-6.0.1/notebook/static/components/MathJax/extensions/a11y/mathmaps/en/symbols/greek-mathfonts-bold.js | [{"locale":"en"},{"category":"Lu","mappings":{"default":{"default":"mathematical bold capital alpha","alternative":"bold capital alpha","short":"bold cap alpha"},"mathspeak":{"default":"bold upper Alpha"}},"key":"1D6A8"},{"category":"Lu","mappings":{"default":{"default":"mathematical bold capital beta","alternative":"b... | PypiClean |
/typedb-client-2.18.2.tar.gz/typedb-client-2.18.2/typedb/connection/cluster/stub.py | from typing import Iterator
from typing import TypeVar, Callable
import typedb_protocol.cluster.cluster_database_pb2 as cluster_database_proto
import typedb_protocol.cluster.cluster_server_pb2 as cluster_server_proto
import typedb_protocol.cluster.cluster_service_pb2_grpc as cluster_service_proto
import typedb_protoco... | PypiClean |
/datarunner-1.2.5.tar.gz/datarunner-1.2.5/README.rst | datarunner
==========
A simple data workflow runner that helps you write better ETL scripts using reusable code pieces.
Quick Start Tutorial
====================
Install using pip::
pip install datarunner
Then write a few steps (functions, classes, etc) that can be called, pass to `datarunner.Workflow`, and ca... | PypiClean |
/fontParts-0.11.0.zip/fontParts-0.11.0/documentation/source/environments/objects/contour.rst | .. highlight:: python
.. module:: fontParts.base
Contour
*******
Must Override
-------------
.. automethod:: BaseContour._getPoint
.. automethod:: BaseContour._get_clockwise
.. automethod:: BaseContour._get_identifier
.. automethod:: BaseContour._insertPoint
.. automethod:: BaseContour._lenPoints
.. automethod:: Base... | PypiClean |
/otter_grader-5.1.3-py3-none-any.whl/otter/assign/output.py |
import nbformat
import os
import pathlib
import shutil
import tempfile
import warnings
from .assignment import Assignment
from .notebook_transformer import NotebookTransformer, TransformedNotebookContainer
from .r_adapter import rmarkdown_converter
from .r_adapter.tests_manager import RAssignmentTestsManager
from .te... | PypiClean |
/saba-0.1.1a0.tar.gz/saba-0.1.1a0/astropy_helpers/ah_bootstrap.py | import contextlib
import errno
import imp
import io
import locale
import os
import re
import subprocess as sp
import sys
try:
from ConfigParser import ConfigParser, RawConfigParser
except ImportError:
from configparser import ConfigParser, RawConfigParser
if sys.version_info[0] < 3:
_str_types = (str, un... | PypiClean |
/delta-center-client-0.0.4.tar.gz/delta-center-client-0.0.4/src/utils.py | from yacs.config import CfgNode
import os
import http.cookiejar
import json
import urllib.request
import sys
import logging
def getConfigFromFile(path):
cfg = CfgNode(new_allowed=True)
cfg.merge_from_file(path)
return cfg
def saveCookie(cookie, path='login.cookie'):
path = os.path.join(os.path.dirna... | PypiClean |
/rackspace-python-neutronclient-2.5.3.tar.gz/rackspace-python-neutronclient-2.5.3/neutronclient/neutron/v2_0/vpn/vpnservice.py |
from neutronclient._i18n import _
from neutronclient.neutron import v2_0 as neutronv20
class ListVPNService(neutronv20.ListCommand):
"""List VPN service configurations that belong to a given tenant."""
resource = 'vpnservice'
list_columns = [
'id', 'name', 'router_id', 'status'
]
_format... | PypiClean |
/PyLabRobot-0.1.4-py3-none-any.whl/pylabrobot/liquid_handling/resources/opentrons/plates.py | from pylabrobot.liquid_handling.resources import Plate
from pylabrobot.liquid_handling.resources.opentrons.load import load_shared_opentrons_resource
def corning_384_wellplate_112ul_flat(name: str) -> Plate:
return load_shared_opentrons_resource(
definition="corning_384_wellplate_112ul_flat",
name=name,
... | PypiClean |
/larq_zoo-2.3.2-py3-none-any.whl/larq_zoo/training/knowledge_distillation/knowledge_distillation.py | from pathlib import Path
from typing import List, Optional
import tensorflow as tf
from zookeeper import ComponentField, Field, factory
from larq_zoo.core.model_factory import ModelFactory
class AttentionMatchingLossLayer(tf.keras.layers.Layer):
"""Layer that adds a loss and a metric based on the difference is ... | PypiClean |
/django-formfactory-0.2.3.tar.gz/django-formfactory-0.2.3/formfactory/utils.py | from os import path
from django.apps import apps
from django.utils.module_loading import import_module
def clean_key(func):
"""Provides a clean, readable key from the funct name and module path.
"""
module = func.__module__.replace("formfactoryapp.", "")
return "%s.%s" % (module, func.__name__)
def... | PypiClean |
/pororo_versionUp-0.5.0.tar.gz/pororo_versionUp-0.5.0/pororo/models/brainOCR/imgproc.py | import cv2
import numpy as np
from skimage import io
def load_image(img_file):
img = io.imread(img_file) # RGB order
if img.shape[0] == 2:
img = img[0]
if len(img.shape) == 2:
img = cv2.cvtColor(img, cv2.COLOR_GRAY2RGB)
if img.shape[2] == 4:
img = img[:, :, :3]
img = np.ar... | PypiClean |
/biosimulators_cobrapy-0.1.23.tar.gz/biosimulators_cobrapy-0.1.23/biosimulators_cobrapy/data_model.py | from biosimulators_utils.data_model import ValueType
import cobra
import cobra.flux_analysis
import collections
import enum
__all__ = ['Solver', 'KISAO_ALGORITHMS_PARAMETERS_MAP']
class Solver(str, enum.Enum):
""" Solver """
cplex = 'cplex'
glpk = 'glpk'
gurobi = 'gurobi'
KISAO_ALGORITHMS_PARAMETER... | PypiClean |
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/energyzero/sensor.py | from __future__ import annotations
from collections.abc import Callable
from dataclasses import dataclass
from datetime import datetime, timedelta
from homeassistant.components.sensor import (
DOMAIN as SENSOR_DOMAIN,
SensorDeviceClass,
SensorEntity,
SensorEntityDescription,
SensorStateClass,
)
fr... | PypiClean |
/python3_albow-2.90.0-py3-none-any.whl/albow/widgets/Control.py | from albow.utils import overridable_property
class Control:
"""
Control is a mixin class for use by widgets that display and/or edit a value of some kind. It provides a value
property that can be linked, via a reference object, to a specific attribute or item of another object.
Reading and writing the... | PypiClean |
/tb-rest-client-3.5.tar.gz/tb-rest-client-3.5/tb_rest_client/models/models_ce/last_visited_dashboard_info.py | # Copyright 2023. ThingsBoard
#
# 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 writi... | PypiClean |
/python_golos-1.1.1-py3-none-any.whl/golosbase/http_client.py | import logging
import socket
import time
from functools import partial
from http.client import RemoteDisconnected
from itertools import cycle
import certifi
import urllib3
from urllib3.connection import HTTPConnection
from urllib3.exceptions import MaxRetryError, ProtocolError, ReadTimeoutError
from golos.consts impo... | PypiClean |
/gabi_probs-1.0.tar.gz/gabi_probs-1.0/gabi_probs/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 |
/django-persistent-filters-1.0.tar.gz/django-persistent-filters-1.0/persistent_filters/middleware.py | from django.http import HttpResponseRedirect
from django.shortcuts import redirect
from django.conf import settings
class PersistentFiltersMiddleware:
def __init__(self, get_response):
self.get_response = get_response
def _set_filters(self):
if self.use_request:
self.request.sessi... | PypiClean |
/solana-nft-0.0.1.tar.gz/solana-nft-0.0.1/src/solen/nft_client.py | import os
import json
import time
import base64
import struct
import logging
from typing import Dict, List, Union, Optional
from datetime import datetime, timedelta
from collections import Counter
import base58
import requests
from asyncit import Asyncit
from asyncit.dicts import DotDict
from solana.publickey import P... | PypiClean |
/funboost_install-17.4-py3-none-any.whl/funboost/publishers/kombu_publisher.py | import json
# noinspection PyUnresolvedReferences
try:
from kombu import Connection, Exchange, Queue, Consumer, Producer
from kombu.transport.virtual.base import Channel
except ModuleNotFoundError:
Connection = Exchange = Queue = Consumer = Producer = Channel = None
from nb_log import LogManager
from fun... | PypiClean |
/syml_ultralytics-8.0.145.tar.gz/syml_ultralytics-8.0.145/ultralytics/models/utils/ops.py |
import torch
import torch.nn as nn
import torch.nn.functional as F
from scipy.optimize import linear_sum_assignment
from ultralytics.utils.metrics import bbox_iou
from ultralytics.utils.ops import xywh2xyxy, xyxy2xywh
class HungarianMatcher(nn.Module):
"""
A module implementing the HungarianMatcher, which i... | PypiClean |
/django-analytical-3.1.0.tar.gz/django-analytical-3.1.0/docs/services/heap.rst | =====================================
Heap -- analytics and events tracking
=====================================
`Heap`_ automatically captures all user interactions on your site, from the moment of installation forward.
.. _`Heap`: https://heap.io/
.. heap-installation:
Installation
============
To start using... | PypiClean |
/dask-image-2023.8.1.tar.gz/dask-image-2023.8.1/dask_image/imread/__init__.py | import glob
import numbers
import warnings
import dask.array as da
import numpy as np
import pims
from tifffile import natural_sorted
def imread(fname, nframes=1, *, arraytype="numpy"):
"""
Read image data into a Dask Array.
Provides a simple, fast mechanism to ingest image data into a
Dask Array.
... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/AlipayOpenSearchBrandboxQueryModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.SearchBrandBoxRequest import SearchBrandBoxRequest
class AlipayOpenSearchBrandboxQueryModel(object):
def __init__(self):
self._biz_data = None
self._biz_type = None
self._opt_type = None
@pro... | PypiClean |
/axiom.top-1.0.0.tar.gz/axiom.top-1.0.0/axiom/sets/lt/el/el/imply/gt/sqrt/open/__init__.py | from util import *
@apply
def apply(lt, contains, contains_y):
x, domain_x = contains.of(Element)
y, domain_y = contains_y.of(Element)
assert domain_x in Interval(-1, 1, left_open=True, right_open=True)
assert domain_y in Interval(-1, 1, left_open=True, right_open=True)
S[x], S[y] = lt.of(Less)
... | PypiClean |
/convo_new_version_abdo-1.0.2-py3-none-any.whl/convo/core/policies/rule_policy.py | import logging
from typing import List, Dict, Text, Optional, Any, Set, TYPE_CHECKING
from tqdm import tqdm
import numpy as np
import json
from convo.shared.constants import RULES_DOCUMENTS_URL
from convo.shared.exceptions import ConvoExceptions
import convo.shared.utils.io
from convo.shared.core.events import LoopHi... | PypiClean |
/pyjpt-0.1.25-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/jpt/distributions/univariate/integer.py | import numbers
import re
from itertools import tee
from operator import itemgetter
from types import FunctionType
from typing import Optional, Type, Dict, Any, Union, Set, Iterable, Tuple
import numpy as np
from dnutils import edict, ifnone, project, first
from matplotlib import pyplot as plt
from . import Distributi... | PypiClean |
/clusterfuzz-2.6.0.tar.gz/clusterfuzz-2.6.0/appengine/handlers/testcase_detail/show.py | """Handler for showing the testcase detail page."""
import datetime
import html
import re
from flask import request
import jinja2
from clusterfuzz._internal.base import utils
from clusterfuzz._internal.build_management import revisions
from clusterfuzz._internal.build_management import source_mapper
from clusterfuzz... | PypiClean |
/typed_zmanim-0.1.0.tar.gz/typed_zmanim-0.1.0/zmanim/astronomical_calendar.py | from datetime import date, datetime, timedelta
from typing import Optional
from dateutil import tz
from zmanim.util.astronomical_calculations import AstronomicalCalculations
from zmanim.util.geo_location import GeoLocation
from zmanim.util.math_helper import MathHelper
from zmanim.util.noaa_calculator import NOAACalc... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/applications/item/token_lifetime_policies/token_lifetime_policies_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 |
/cloudshell-networking-cisco-beta-2.1.196.tar.gz/cloudshell-networking-cisco-beta-2.1.196/cloudshell/networking/cisco/cisco_configuration_operations.py | import time
from collections import OrderedDict
from cloudshell.configuration.cloudshell_cli_binding_keys import CLI_SERVICE, CONNECTION_MANAGER
from cloudshell.configuration.cloudshell_shell_core_binding_keys import LOGGER, API
import inject
import re
from cloudshell.networking.networking_utils import validateIP
from... | PypiClean |
/DeepCellTL-0.12.5.tar.gz/DeepCellTL-0.12.5/deepcell/image_generators/scale.py | from __future__ import absolute_import
from __future__ import print_function
from __future__ import division
import os
import numpy as np
from tensorflow.keras import backend as K
from tensorflow.keras.preprocessing.image import array_to_img
from tensorflow.keras.preprocessing.image import Iterator
from deepcell.im... | PypiClean |
/pyatem-0.9.0.tar.gz/pyatem-0.9.0/gtk_switcher/videohubbus.py | import math
import gi
from gtk_switcher.template_i18n import TemplateLocale
from gtk_switcher.videohubconnection import VideoHubConnection
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk, GObject
@TemplateLocale(resource_path='/nl/brixit/switcher/ui/videohub-bus.glade')
class VideoHubBus(Gtk.Grid):... | PypiClean |
/mct-nightly-1.9.0.20230903.post433.tar.gz/mct-nightly-1.9.0.20230903.post433/model_compression_toolkit/core/common/mixed_precision/mixed_precision_quantization_config.py |
from enum import Enum
from typing import List, Callable, Tuple
from model_compression_toolkit.logger import Logger
from model_compression_toolkit.core.common.mixed_precision.distance_weighting import get_average_weights
from model_compression_toolkit.core.common.quantization.quantization_config import QuantizationCon... | PypiClean |
/Shinken-2.4.3.tar.gz/Shinken-2.4.3/shinken/objects/hostextinfo.py |
# -*- coding: utf-8 -*-
# Copyright (C) 2009-2014:
# Gabes Jean, naparuba@gmail.com
# Gerhard Lausser, Gerhard.Lausser@consol.de
# Gregory Starck, g.starck@gmail.com
# Hartmut Goebel, h.goebel@goebel-consult.de
#
# This file is part of Shinken.
#
# Shinken is free software: you can redistribute it and/or ... | PypiClean |
/h2o_pysparkling_3.2-3.42.0.2.post1.tar.gz/h2o_pysparkling_3.2-3.42.0.2.post1/h2o/model/models/word_embedding.py | from h2o.utils.compatibility import * # NOQA
from collections import OrderedDict
import h2o
from h2o.expr import ExprNode
from h2o.model import ModelBase
class H2OWordEmbeddingModel(ModelBase):
"""
Word embedding model.
"""
def find_synonyms(self, word, count=20):
"""
Find synonyms... | PypiClean |
/jupyter-runner-2022.10.26.1.tar.gz/jupyter-runner-2022.10.26.1/jupyter_runner/mail.py | import logging
import tempfile
import os
import smtplib
import zipfile
from email.mime.text import MIMEText
from email.mime.application import MIMEApplication
from email.mime.multipart import MIMEMultipart
from .file_handler import LocalFile
LOGGER = logging.getLogger(__file__)
class MailConfiguration:
"""Mail... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/readable-stream/GOVERNANCE.md | ### Streams Working Group
The Node.js Streams is jointly governed by a Working Group
(WG)
that is responsible for high-level guidance of the project.
The WG has final authority over this project including:
* Technical direction
* Project governance and process (including this policy)
* Contribution policy
* GitHub r... | PypiClean |
/invenio-drafts-resources-1.8.1.tar.gz/invenio-drafts-resources-1.8.1/CHANGES.rst | ..
Copyright (C) 2020-2023 CERN.
Copyright (C) 2020 Northwestern University.
Invenio-Drafts-Resources is free software; you can redistribute it and/or
modify it under the terms of the MIT License; see LICENSE file for more
details.
Changes
=======
Version 1.8.1 (2023-08-25)
- tasks: add margin t... | PypiClean |
/Intelligent_Stock_Market_API-0.0.6-py3-none-any.whl/IntelligentStockMarketAPI/rest.py | from __future__ import absolute_import
import io
import json
import logging
import re
import ssl
import certifi
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import urlencode
import urllib3
from urllib3.exceptions import SSLError
from src.IntelligentStockMarketAPI.exceptions im... | PypiClean |
/pyodps-0.11.4.1-cp39-cp39-manylinux2014_aarch64.whl/odps/models/security/config.py |
from ... import serializers
from ..core import LazyLoad
class SecurityConfiguration(LazyLoad):
_root = 'SecurityConfiguration'
class ProjectProtection(serializers.XMLSerializableModel):
_root = 'ProjectProtection'
protected = serializers.XMLNodeAttributeField(attr='Protected', type='bool')
... | PypiClean |
/django-yacon-0.8.0.tar.gz/django-yacon-0.8.0/yacon/static/yacon/ckeditor/plugins/wsc/dialogs/wsc_ie.js | /*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.dialog.add("checkspell",function(a){function c(a,c){var d=0;return function(){"function"==typeof window.doSpell?("undefined"!=typeof e&&window.clearInterval(e),j(a... | PypiClean |
/captif-data-structures-0.12.tar.gz/captif-data-structures-0.12/captif_data_structures/structure/deflection_beam.py | from datetime import date, datetime, time
from pydantic import BaseModel
from .base import BaseDataStructure
"""
Contains data structure definitions for deflection beam data.
New data structures must be defined as a new class that derives from the
DeflectionBeamDataStructure class. These subclasses must be named wi... | PypiClean |
/iredis_bin-1.9.4-cp310-cp310-manylinux2010_x86_64.whl/iredis_bin-1.9.4.data/scripts/lib/iredis/data/commands/save.md | The `SAVE` commands performs a **synchronous** save of the dataset producing a
_point in time_ snapshot of all the data inside the Redis instance, in the form
of an RDB file.
You almost never want to call `SAVE` in production environments where it will
block all the other clients. Instead usually `BGSAVE` is used. How... | PypiClean |
/django-frontend-presets-0.1.2.tar.gz/django-frontend-presets-0.1.2/CONTRIBUTING.rst | ============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.
You can contribute in many ways:
Types of Contributions
----------------------
Report Bugs
~~~~~~~~~~~
Report bugs at https://github.com/mikemenard/django-fr... | PypiClean |
/ono-0.2.3.zip/ono-0.2.3/vertex_70_mock/views.py |
### imports ###################################################################
import calendar
import datetime
import os
import threading
import time
import yaml
### imports from ##############################################################
# from flask import redirect
from flask import render_template
from flask i... | PypiClean |
/gardener-1.0.3.tar.gz/gardener-1.0.3/gardener.py | from typing import Any, Dict
from json import dumps, JSONEncoder
hooks = {}
class GardenerJSON(JSONEncoder):
def default(self, obj):
if isinstance(obj, Node):
return {
"key": obj.key,
"props": {key: value for key, value in obj.props.items()},
}
... | PypiClean |
/fw_classification-0.4.3-py3-none-any.whl/fw_classification/classify/expressions/base.py | import abc
import re
import typing as t
from dotty_dict import Dotty # type: ignore
from ..utils import ExpressionError, ProfileError
class Expression(abc.ABC):
"""Base class for expressions.
Attributes:
op (str): Key that each concrete subclass should set, used to match
a particular o... | PypiClean |
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/network/aaz/latest/network/vnet_gateway/_list_bgp_peer_status.py |
# pylint: skip-file
# flake8: noqa
from azure.cli.core.aaz import *
@register_command(
"network vnet-gateway list-bgp-peer-status",
)
class ListBgpPeerStatus(AAZCommand):
"""Retrieve the status of BGP peers.
:example: Retrieve the status of a BGP peer.
az network vnet-gateway list-bgp-peer-stat... | PypiClean |
/rurusetto_allauth-0.53.0-py3-none-any.whl/allauth/account/forms.py | from __future__ import absolute_import
import warnings
from importlib import import_module
from django import forms
from django.contrib.auth.tokens import PasswordResetTokenGenerator
from django.contrib.sites.shortcuts import get_current_site
from django.core import exceptions, validators
from django.urls import reve... | PypiClean |
/pypotree-1.0.5.tar.gz/pypotree-1.0.5/README.md | # PyPotree (potree for jupyter notebooks and colab)
Allows to insert potree cells into jupyter and colab notebooks
[Gabriele Facciolo](mailto:gfacciol@gmail.com), Gabriele Facciolo, CMLA 2019
[**Try it on colab here**](https://colab.research.google.com/drive/1It3EbWy9W8Xf65ikP-_tpkVdJRmvwTQT)
# Installation and de... | PypiClean |
/django-happystamp-0.3.tar.gz/django-happystamp-0.3/happystamp/static/fonts/README.txt |
Lato font family
================
Version 2.010; Latin+Cyrillic+Greek+IPA opensource
Created by: tyPoland Lukasz Dziedzic
Creation year: 2014
Copyright (c) 2010-2014 by tyPoland Lukasz Dziedzic with Reserved Font Name "Lato". Licensed under the SIL Open Font License, Version 1.1.
Lato is a trademark of tyPoland L... | PypiClean |
/approval-bot-0.0.2.tar.gz/approval-bot-0.0.2/README.md | # approval-bot (WIP...)

## Intro
This tool was created to facilitate a flexible approval workflow using a simple CLI and custom Slack slash command.
It can be easily integrated with any CI/CD tool to request a... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/web/v20181101/web_app_relay_service_connection.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = ['WebAppRelayServiceConnection']
class WebAppRelayServiceConnection(pulumi.CustomResource):
def __init__(__self__,
resource_name: str,
... | PypiClean |
/dyconnmap-1.0.3.tar.gz/dyconnmap-1.0.3/docs/dyconnmap.rst | dyconnmap package
=================
Subpackages
-----------
.. toctree::
:maxdepth: 4
dyconnmap.chronnectomics
dyconnmap.cluster
dyconnmap.fc
dyconnmap.graphs
dyconnmap.sim_models
dyconnmap.ts
Submodules
----------
dyconnmap.analytic\_signal module
---------------------------------
.. automod... | PypiClean |
/OpenCobolIDE-4.7.6.tar.gz/OpenCobolIDE-4.7.6/open_cobol_ide/extlibs/pyqode/core/modes/autocomplete.py | """ Contains the AutoCompleteMode """
import logging
from pyqode.qt import QtCore, QtGui
from pyqode.core.api import TextHelper
from pyqode.core.api.mode import Mode
class AutoCompleteMode(Mode):
""" Automatically complete quotes and parentheses
Generic auto complete mode that automatically completes the fol... | PypiClean |
/spyrk-0.0.4.tar.gz/spyrk-0.0.4/README.rst | Spyrk
=====
Python module for Spark devices.
Use it as follow:
.. code:: python
from spyrk import SparkCloud
USERNAME = 'he.ho@example.com'
PASSWORD = 'pasSs'
ACCESS_TOKEN = '12adza445452d4za524524524d5z2a4'
spark = SparkCloud(USERNAME, PASSWORD)
# Or
spark = SparkCloud(ACCESS_TOKEN)
... | PypiClean |
/gridx-prescient-2.2.2.tar.gz/gridx-prescient-2.2.2/prescient/gosm/structures/skeleton_point_paths.py | import datetime
import os
import random
from itertools import product
import numpy as np
import matplotlib as mpl
import matplotlib.pyplot as plt
import pandas as pd
from cycler import cycler
from prescient.util.distributions.distribution_factory import distribution_factory
from prescient.gosm.structures.hyperrectang... | PypiClean |
/lg_april_permissions-0.1.14.tar.gz/lg_april_permissions-0.1.14/README.md | # buditool
Das Tool dient hauptsächlich zum synchronisieren von Berechtigungen: es schaut in die Postgres-DB (April_Permissions) und schickt API calls an Budibase, um die Berechtigungen zu setzten. Bitte auch die KNOWN ISSUES in tests/bb_test.py lesen! Die entsprechenden Images werden über die CI gebaut und können einf... | PypiClean |
/census-geocoder-0.1.0.tar.gz/census-geocoder-0.1.0/README.rst | ####################################################
US Census Geocoder
####################################################
**(Unofficial) Python Binding for the US Census Geocoder API**
The **US Census Geocoder** is a Python library that provides Python bindings for the
`U.S. Census Geocoder API <https://geocoding.... | PypiClean |
/nniv04-0.4.1-py3-none-any.whl/nniv04-0.4.1.data/data/nni/node_modules/extsprintf/lib/extsprintf.js | var mod_assert = require('assert');
var mod_util = require('util');
/*
* Public interface
*/
exports.sprintf = jsSprintf;
exports.printf = jsPrintf;
exports.fprintf = jsFprintf;
/*
* Stripped down version of s[n]printf(3c). We make a best effort to throw an
* exception when given a format string we don't underst... | PypiClean |
/thingsboard-gateway-3.3.tar.gz/thingsboard-gateway-3.3/thingsboard_gateway/connectors/opcua_asyncio/opcua_uplink_converter.py |
from time import time
from datetime import timezone
from thingsboard_gateway.connectors.opcua_asyncio.opcua_converter import OpcUaConverter, log
from asyncua.ua.uatypes import LocalizedText, VariantType
DATA_TYPES = {
'attributes': 'attributes',
'timeseries': 'telemetry'
}
class OpcUaUplinkConverter(OpcUaC... | PypiClean |
/openstack_venus-2.0.0-py3-none-any.whl/venus/api/v1/views/versions.py |
import copy
import os
from venus.conf import CONF
def get_view_builder(req):
base_url = CONF.public_endpoint or req.application_url
return ViewBuilder(base_url)
class ViewBuilder(object):
def __init__(self, base_url):
"""Initialize ViewBuilder.
:param base_url: url of the root wsgi ap... | PypiClean |
/cluster_vcf_records-0.13.3.tar.gz/cluster_vcf_records-0.13.3/cluster_vcf_records/vcf_clusterer.py | import typing
import logging
import operator
import pyfastaq
from cluster_vcf_records import vcf_file_read, vcf_record_cluster
class VcfClusterer:
"""Class to cluster one (or more) VCF files. Records in the VCf files
can be in any order.
Required parameters:
vcf_files: list of VCF files
... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.