id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/monk_kaggle_test-0.0.3-py3-none-any.whl/monk/pytorch/finetune/imports.py
import warnings warnings.filterwarnings("ignore", category=FutureWarning) warnings.simplefilter(action='ignore', category=Warning) import matplotlib.pyplot as plt import time import os import copy import sys import psutil import numpy as np import GPUtil def isnotebook(): try: shell = get_ipython().__clas...
PypiClean
/moai-mdk-0.1.5a16.tar.gz/moai-mdk-0.1.5a16/moai/visualization/visdom/gizmo2d.py
from moai.visualization.visdom.base import Base from moai.utils.arguments import ensure_string_list import torch import visdom import functools import typing import logging import numpy as np import cv2 import colour log = logging.getLogger(__name__) __all__ = ["Gizmo2d"] class Gizmo2d(Base): def __init__(self,...
PypiClean
/minipip-0.1b1-py3-none-any.whl/minipip.py
import io import json import os.path import sys import shlex import shutil import subprocess import tarfile import tempfile import textwrap from typing import Union, List, Dict, Any, Optional from urllib.error import HTTPError from urllib.request import urlopen import pkg_resources import logging from pkg_resources i...
PypiClean
/valohai_yaml-0.31.0.tar.gz/valohai_yaml-0.31.0/valohai_yaml/objs/pipelines/pipeline_parameter.py
from typing import TYPE_CHECKING, List, Optional, Union from valohai_yaml.lint import LintResult from valohai_yaml.objs.base import Item from valohai_yaml.objs.utils import check_type_and_listify from valohai_yaml.types import LintContext, SerializedDict from valohai_yaml.utils.node_socket_utils import split_socket_st...
PypiClean
/yafowil.widget.slider-2.0a1.tar.gz/yafowil.widget.slider-2.0a1/CHANGES.rst
Changes ======= 2.0a1 (2023-05-15) ------------------ - Add ``webresource`` support. [rnix] - Extend JS by ``slider_on_array_add`` and ``register_array_subscribers`` functions to enable usage in ``yafowil.widget.array``. [lenadax] - Rewrite of Javascript slider widget. No more jQuery UI. [lenadax, rnix] 1...
PypiClean
/tw.dojo-0.9.181.tar.gz/tw.dojo-0.9.181/tw/dojo/static/1.8.1/min/dojox/app/widgets/_ScrollableMixin.js.uncompressed.js
define("dojox/app/widgets/_ScrollableMixin", [ "dojo/_base/declare", "dojo/_base/lang", "dojo/dom-class", "dojo/dom-construct", "./scrollable"], function(declare, lang, domClass, domConstruct, Scrollable){ // module: // dojox/mobile/_ScrollableMixin // summary: // Mixin for widgets to have a touch scrolling...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/kusto/v20221229/iot_hub_data_connection.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__ = ['IotHubDataConnectionArgs', 'IotHubDataConnection'] @pulumi.input_type class IotHubDataConnectionArgs: def __init__(__se...
PypiClean
/django-dojo-0.0.1.tar.gz/django-dojo-0.0.1/dojo/static/dojo/dojo/cldr/nls/ja/buddhist.js
define( //begin v1.x content { "eraNames": [ "仏暦" ], "dateFormat-full": "GGGGy年M月d日EEEE", "dateFormat-long": "GGGGy年M月d日", "dateFormat-medium": "Gy/MM/dd", "dateFormat-short": "Gy/MM/dd", "dateFormatItem-d": "d日", "dateFormatItem-Ed": "d日(E)", "dateFormatItem-GGGGyMd": "GGGGy年M月d日", "dateFormatItem-Gy": "Gy...
PypiClean
/_encoding/_protobuf/converter/_e2e_call.py
__all__ = ["WireToProto", "ProtoToWire"] from iscp._encoding.codegen.e2e_call_pb2 import DownstreamCall as DownstreamCallPB from iscp._encoding.codegen.e2e_call_pb2 import UpstreamCall as UpstreamCallPB from iscp._encoding.codegen.e2e_call_pb2 import UpstreamCallAck as UpstreamCallAckPB from iscp._encoding.codegen.ext...
PypiClean
/siphon-0.9.tar.gz/siphon-0.9/examples/Radar_Server_Level_3.py
from datetime import datetime import matplotlib.pyplot as plt import numpy as np from siphon.cdmr import Dataset from siphon.radarserver import get_radarserver_datasets, RadarServer ########################################### # First, point to the top-level thredds radar server accessor to find what datasets are # a...
PypiClean
/jupyter_enterprise_gateway-3.2.2.tar.gz/jupyter_enterprise_gateway-3.2.2/docs/source/operators/config-file.md
# Configuration file options Placing configuration options into the configuration file `jupyter_enterprise_gateway_config.py` is recommended because this will enabled the use of the [_dynamic configurables_](config-dynamic.md/#dynamic-configurables) functionality. To generate a template configuration file, run the fol...
PypiClean
/autosys-1.5.1.tar.gz/autosys-1.5.1/AutoSys/dev/profile/system/sys.py
""" as_system.py - system utilities and tools for efficient python3 """ # copyright (c) 2019 Michael Treanor # https://www.github.com/skeptycal # https://www.twitter.com/skeptycal SET_DEBUG: bool = False if True: import os import pathlib import sys import time from pathlib import WindowsPath, Posi...
PypiClean
/bk_plugin_runtime-2.0.2-py3-none-any.whl/bk_plugin_runtime/static/remote/v3/assets/js/jquery-migrate-1.2.1.min.js
jQuery.migrateMute===void 0&&(jQuery.migrateMute=!0),function(e,t,n){function r(n){var r=t.console;i[n]||(i[n]=!0,e.migrateWarnings.push(n),r&&r.warn&&!e.migrateMute&&(r.warn("JQMIGRATE: "+n),e.migrateTrace&&r.trace&&r.trace()))}function a(t,a,i,o){if(Object.defineProperty)try{return Object.defineProperty(t,a,{configur...
PypiClean
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v3_5_0/system_backup_broker.py
from ..broker import Broker class SystemBackupBroker(Broker): controller = "system_backup" def create_archive(self, **kwargs): """Creates backup of current system database. **Inputs** | ``api version min:`` None | ``api version max:`` None | ``requ...
PypiClean
/adafruit-circuitpython-max9744-1.2.15.tar.gz/adafruit-circuitpython-max9744-1.2.15/adafruit_max9744.py
try: # Imports only used for typing. # First check if the the typing module exists, to avoid loading # other typing-only modules when running under circuitpython. import typing # pylint: disable=unused-import import busio except ImportError: pass from micropython import const __version__ = "...
PypiClean
/mxnet_cu112-2.0.0b1-py3-none-manylinux2014_x86_64.whl/mxnet/_ctypes/symbol.py
# coding: utf-8 # pylint: disable=invalid-name, protected-access, too-many-arguments, global-statement """Symbolic configuration API.""" import ctypes from ..base import _LIB from ..base import c_str_array, c_handle_array, c_str, mx_uint from ..base import SymbolHandle from ..base import check_call # The symbol cla...
PypiClean
/superpower_gui-0.3.0.tar.gz/superpower_gui-0.3.0/superpower_gui/views/mod.py
__all__ = ['VariableLanding', 'LEVELS', 'INIT_LEVEL', 'CONT', 'CATG', 'CONT_CATG_OPTS', 'FLOAT_TEXT_STEP', 'DEFAULT_SD_VALUE', 'PROP_MIN', 'PROP_MAX', 'LEVEL_MIN', 'LEVEL_MAX', 'Interactions', 'Equation', 'ModerationLandingView', 'DEPENDENT_VARIABLE', 'PREDICTORS', 'POWER_COVARIATES', 'POWER_CUST...
PypiClean
/neuron_morphology-1.1.7-py3-none-any.whl/neuron_morphology/feature_extractor/feature_extraction_run.py
from typing import ( AbstractSet, Set, Collection, Optional, Dict, Type, FrozenSet, List) import logging import warnings from neuron_morphology.feature_extractor.data import Data from neuron_morphology.feature_extractor.marked_feature import MarkedFeature from neuron_morphology.feature_extractor.mark import Mark ...
PypiClean
/pulumiverse_harbor-3.10.0.tar.gz/pulumiverse_harbor-3.10.0/pulumiverse_harbor/retention_policy.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 ._inputs import * __all__ = ['RetentionPolicyArgs', 'RetentionPolicy'] @pulumi.input_type class RetentionPolicyArgs: def __init_...
PypiClean
/KyberPC-0.0.2.tar.gz/KyberPC-0.0.2/Kyber_Polar_Codes/Kyber.py
from sage.all import parent, ZZ, vector, PolynomialRing, GF from sage.all import log, ceil, randint, set_random_seed, random_vector, matrix, floor import numpy as np import random # Kyber parameters n = 256 q = 3329 k = 3 eta1 = 2 eta2 = 2 du = 10 dv = 4 Fq = GF(q) Rq = PolynomialRing(Fq, "x") R, x = PolynomialRing(Z...
PypiClean
/cubicweb-narval-4.2.3.tar.gz/cubicweb-narval-4.2.3/logformat.py
__docformat__ = "restructuredtext en" _ = unicode import logging import re from logilab.mtconverter import xml_escape from cubicweb.utils import make_uid REVERSE_SEVERITIES = { logging.DEBUG: _('DEBUG'), logging.INFO: _('INFO'), logging.WARNING: _('WARNING'), logging.ERROR: _('ERROR'), log...
PypiClean
/compare_my_stocks-1.0.5-py3-none-any.whl/compare_my_stocks/common/common.py
import logging import dataclasses from collections import namedtuple from datetime import datetime,date from functools import wraps import time import numpy as np import pytz import psutil from common.simpleexceptioncontext import simple_exception_handling, SimpleExceptionContext, print_formatted_traceback def timeit(f...
PypiClean
/leonardo-horizon-2016.8.3.tar.gz/leonardo-horizon-2016.8.3/doc/source/ref/local_conf.rst
========== local.conf ========== Configuring DevStack for Horizon ================================ Place the following content into `devstack/local.conf` to start the services that Horizon supports in DevStack when `stack.sh` is run. :: [[local|localrc]] ADMIN_PASSWORD=secretadmin MYSQL_PASSWORD=secreta...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/drives/item/items/item/workbook/functions/im_cot/im_cot_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
/metanetx-post-0.5.1.tar.gz/metanetx-post-0.5.1/README.rst
============================= MetaNetX Post-Processing ============================= .. image:: https://img.shields.io/pypi/v/metanetx-post.svg :target: https://pypi.org/project/metanetx-post/ :alt: Current PyPI Version .. image:: https://img.shields.io/pypi/pyversions/metanetx-post.svg :target: https://pypi...
PypiClean
/tuf-2.0.0.tar.gz/tuf-2.0.0/docs/_posts/2022-05-04-ngclient-design.md
--- title: "What's new in Python-TUF ngclient?" author: Jussi Kukkonen --- We recently released a new TUF client implementation, `ngclient`, in Python-TUF. This post explains why we ended up doing that when a client already existed. # Simpler implementation, "correct" abstractions The legacy code had a few problems ...
PypiClean
/zenodo-accessrequests-1.0.0a3.tar.gz/zenodo-accessrequests-1.0.0a3/docs/changes.rst
.. This file is part of Zenodo. Copyright (C) 2015 CERN. Zenodo 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 2 of the License, or (at your option) any later version. ...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/blueprint/artifact.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables from ._enums import * __all__ = ['Artifact'] class Artifact(pulumi.CustomResource): def __init__(__self__, resource_name: str, opts:...
PypiClean
/symautomata-0.0.12.tar.gz/symautomata-0.0.12/README.md
# symautomata Automata classes A python framework for working with Automata. The framework contains a python implementation and C bindings using pywrapfst (optional). This framework is part of the [lightbulb-framework](https://github.com/lightbulb-framework/lightbulb-framework). ## Changelog 0.0.12: Added support fo...
PypiClean
/django-m2m-fix-1.0.0.tar.gz/django-m2m-fix-1.0.0/django/contrib/gis/management/commands/ogrinspect.py
import argparse from django.contrib.gis import gdal from django.core.management.base import BaseCommand, CommandError from django.utils.inspect import get_func_args class LayerOptionAction(argparse.Action): """ Custom argparse action for the `ogrinspect` `layer_key` keyword option which may be an integer...
PypiClean
/p4a-django-1.9.1.tar.gz/p4a-django-1.9.1/django/db/migrations/optimizer.py
from __future__ import unicode_literals from django.db.migrations import ( AddField, AlterField, AlterIndexTogether, AlterModelTable, AlterOrderWithRespectTo, AlterUniqueTogether, CreateModel, DeleteModel, RemoveField, RenameField, RenameModel, ) from django.utils import six class MigrationOptimizer(obje...
PypiClean
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/dkc_returns/objects/TimeAttackEOLDisplay.py
import dataclasses import struct import typing from retro_data_structures.game_check import Game from retro_data_structures.properties.base_property import BaseObjectType from retro_data_structures.properties.dkc_returns.archetypes.EditorProperties import EditorProperties @dataclasses.dataclass() class TimeAttackEOL...
PypiClean
/monk_pytorch_cuda100_test-0.0.1.tar.gz/monk_pytorch_cuda100_test-0.0.1/monk/tf_keras_1/finetune/level_11_optimizers_main.py
from monk.tf_keras_1.finetune.imports import * from monk.system.imports import * from monk.tf_keras_1.finetune.level_10_schedulers_main import prototype_schedulers class prototype_optimizers(prototype_schedulers): ''' Main class for all optimizers in expert mode Args: verbose (int): Set verbosit...
PypiClean
/UncertaintyWrapper-0.4.2a0.tar.gz/UncertaintyWrapper-0.4.2a0/README.rst
.. image:: https://travis-ci.org/SunPower/UncertaintyWrapper.svg?branch=master :target: https://travis-ci.org/SunPower/UncertaintyWrapper UncertaintyWrapper ================== Use ``@unc_wrapper`` decorator to wrap any Python callable to append the covariance and Jacobian matrices to the return values. See do...
PypiClean
/wasp-general-0.0.3.3.tar.gz/wasp-general-0.0.3.3/wasp_general/network/clients/base.py
# TODO: document the code # TODO: write tests for the code # noinspection PyUnresolvedReferences from wasp_general.version import __author__, __version__, __credits__, __license__, __copyright__, __email__ # noinspection PyUnresolvedReferences from wasp_general.version import __status__ from enum import Enum from ab...
PypiClean
/PyCIM-15.15.0.tar.gz/PyCIM-15.15.0/CIM15/CDPSM/Connectivity/IEC61970/Core/VoltageLevel.py
from CIM15.CDPSM.Connectivity.IEC61970.Core.EquipmentContainer import EquipmentContainer class VoltageLevel(EquipmentContainer): """A collection of equipment at one common system voltage forming a switchgear. The equipment typically consist of breakers, busbars, instrumentation, control, regulation and protection...
PypiClean
/neural_search-0.6.3.tar.gz/neural_search-0.6.3/jina/parser.py
__copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved." __license__ = "Apache-2.0" import argparse def add_arg_group(parser, title): return parser.add_argument_group(title) def set_base_parser(): from . import __version__ from .helper import colored, get_full_version, format_full_ver...
PypiClean
/yuan-tool-2.57.tar.gz/yuan-tool-2.57/yuantool/database/mysql_obj.py
import pymysql from dbutils.pooled_db import PooledDB, SharedDBConnection import logging logger = logging.getLogger(__name__) class Mysql(object): """ 注意:insert,update,delete操作时需要commit """ def __init__(self, db, host, port, user, pwd): self.db = pymysql.connect(host=host, port=port, user=s...
PypiClean
/slixmppfix-1.4.3.tar.gz/slixmppfix-1.4.3/slixmpp/util/misc_ops.py
import builtins import sys import hashlib def unicode(text): if not isinstance(text, str): return text.decode('utf-8') else: return text def bytes(text): """ Convert Unicode text to UTF-8 encoded bytes. Since Python 2.6+ and Python 3+ have similar but incompatible signatures...
PypiClean
/ConceptNet-5.7.0.tar.gz/ConceptNet-5.7.0/conceptnet5/readers/wiktionary.py
import os import pathlib import sqlite3 from collections import Counter from conceptnet5.edges import make_edge from conceptnet5.formats.json_stream import read_json_stream from conceptnet5.formats.msgpack_stream import MsgpackStreamWriter from conceptnet5.languages import ALL_LANGUAGES, valid_language from conceptnet...
PypiClean
/graphql-from-struct-1.0.3.tar.gz/graphql-from-struct-1.0.3/README.rst
|License| |Release| |Docs| |Code Coverage| |Build Status Travis CI| |Blog| GraphQL-From-Struct =================== A simple one-method library makes a `GraphQL <https://graphql.org/>`__ query from Python data structures. Table of Contents ----------------- 1. `Installation`_ 2. `Usage`_ 3. `Exceptions`_ 4. `Paramet...
PypiClean
/django_crispy_forms-2.0a1-py3-none-any.whl/crispy_forms/helper.py
import re from django.urls import NoReverseMatch, reverse from django.utils.safestring import mark_safe from crispy_forms.exceptions import FormHelpersException from crispy_forms.layout import Layout from crispy_forms.layout_slice import LayoutSlice from crispy_forms.utils import TEMPLATE_PACK, flatatt, list_differen...
PypiClean
/pyro-api-0.1.2.tar.gz/pyro-api-0.1.2/pyroapi/dispatch.py
import importlib from contextlib import contextmanager DEFAULT_RNG_SEED = 1 _ALIASES = {} class GenericModule(object): """ Wrapper for a module that can be dynamically routed to a custom backend. """ current_backend = {} _modules = {} def __init__(self, name, default_backend): assert...
PypiClean
/cdktf_cdktf_provider_mongodbatlas-5.0.0-py3-none-any.whl/cdktf_cdktf_provider_mongodbatlas/data_mongodbatlas_federated_settings_org_configs/__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 DataMongodbatlasFederatedSettingsOrgConfigs( _cdkt...
PypiClean
/peek-storage-service-3.4.11.tar.gz/peek-storage-service-3.4.11/peek_storage_service/_private/alembic/objects/object_run_generic_python.py
sql = """ DROP FUNCTION IF EXISTS peek_storage_service.run_generic_python(character varying, character varying, character varying, character varying); CREATE OR REPLA...
PypiClean
/portmod-2.6.2.tar.gz/portmod-2.6.2/test/_benchmarks/hash.py
import pytest from portmod.globals import env from portmodlib._deprecated.vfs import find_file from portmodlib.portmod import _get_hash def canimport(name: str) -> bool: """Returns true if the given module can be imported""" try: __import__(name) return True except ModuleNotFoundError: ...
PypiClean
/odoo12_addon_repair_discount-12.0.1.0.1-py3-none-any.whl/odoo/addons/repair_discount/models/mrp_repair.py
from odoo import api, fields, models import odoo.addons.decimal_precision as dp class RepairFee(models.Model): _inherit = 'repair.fee' @api.depends( 'invoiced', 'price_unit', 'repair_id', 'product_uom_qty', 'product_id') def _compute_price_subtotal(self): ...
PypiClean
/h2o_pysparkling_3.2-3.42.0.2.post1.tar.gz/h2o_pysparkling_3.2-3.42.0.2.post1/h2o/estimators/kmeans.py
from h2o.estimators.estimator_base import H2OEstimator from h2o.exceptions import H2OValueError from h2o.frame import H2OFrame from h2o.utils.typechecks import assert_is_type, Enum, numeric class H2OKMeansEstimator(H2OEstimator): """ K-means Performs k-means clustering on an H2O dataset. """ al...
PypiClean
/graph_learn-1.2.0a1-cp37-cp37m-manylinux_2_24_x86_64.whl/graphlearn/python/nn/tf/model/ego_gnn.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function """EgoGraph based GNN model.""" try: # https://www.tensorflow.org/guide/migrate import tensorflow.compat.v1 as tf tf.disable_v2_behavior() except ImportError: import tensorflow as tf from graphlearn.p...
PypiClean
/simoptlib-1.0.2.tar.gz/simoptlib-1.0.2/simopt/solvers/spsa.py
import numpy as np from ..base import Solver class SPSA(Solver): """ Simultaneous perturbation stochastic approximation (SPSA) is an algorithm for optimizing systems with multiple unknown parameters. Attributes ---------- name : string name of solver objective_type : string d...
PypiClean
/aliby_post-0.1.36-py3-none-any.whl/postprocessor/core/processes/bud_metric.py
from typing import Dict, Tuple import numpy as np import pandas as pd from agora.utils.lineage import mb_array_to_dict from postprocessor.core.processes.lineageprocess import ( LineageProcess, LineageProcessParameters, ) class bud_metricParameters(LineageProcessParameters): """ Parameters """ ...
PypiClean
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/recover_netapp_files_params.py
import re # noqa: F401 import sys # noqa: F401 from cohesity_sdk.cluster.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_typ...
PypiClean
/inigo_py-0.27.8.tar.gz/inigo_py-0.27.8/inigo_py/flask/middleware.py
import ctypes import json import os import sys from importlib import import_module from io import BytesIO from urllib.parse import parse_qs from werkzeug.datastructures import EnvironHeaders from inigo_py import ffi, Query class Middleware: def __init__(self, app): self.app = app.wsgi_app self....
PypiClean
/tg_utils-1.0.1.tar.gz/tg_utils-1.0.1/README.rst
=============================== tg-utils =============================== .. image:: https://img.shields.io/pypi/v/tg-utils.svg :target: https://pypi.python.org/pypi/tg-utils .. image:: https://github.com/thorgate/tg-utils/actions/workflows/python-package.yml/badge.svg?branch=master :target: https://gi...
PypiClean
/datadog_api_client-2.16.0-py3-none-any.whl/datadog_api_client/v2/model/ci_app_aggregate_sort.py
from __future__ import annotations from typing import Union, TYPE_CHECKING from datadog_api_client.model_utils import ( ModelNormal, cached_property, unset, UnsetType, ) if TYPE_CHECKING: from datadog_api_client.v2.model.ci_app_aggregation_function import CIAppAggregationFunction from datado...
PypiClean
/aifs_nni-1.9.5-py3-none-manylinux1_x86_64.whl/aifs_nni-1.9.5.data/data/nni/node_modules/url-join/CHANGELOG.md
## 4.0.0 - 2018-02-02 - Ignore empty string arguments and throw an exception for non-string. Closes #36, #18 ([da05242f381bfe1ae09d00b708cfdbdb93c1a85d](https://github.com/jfromaniello/url-join/commit/da05242f381bfe1ae09d00b708cfdbdb93c1a85d)), closes [#36](https://github.com/jfromaniello/url-join/issues/36) [#18](ht...
PypiClean
/ttkbwidgets-1.0.4.tar.gz/ttkbwidgets-1.0.4/widgets/ttkb_widgets.py
from abc import abstractmethod from datetime import datetime, date, time from decimal import Decimal import re import tkinter as tk import ttkbootstrap as ttkb import ttkbootstrap.dialogs.dialogs as dialogs from ttkbootstrap.validation import add_validation from ttkbootstrap.constants import * from typing import Any, ...
PypiClean
/nanorpc-0.0.3.tar.gz/nanorpc-0.0.3/README.md
# NanoRPC NanoRPC is a Python library for interacting with Nano cryptocurrency nodes via their JSON-RPC API. It provides an easy-to-use interface to execute RPC (Remote Procedure Call) commands supported by different versions of Nano nodes. ## Features - Compatible with Python 3.7 and higher. - Supports asynchronous...
PypiClean
/acryl-datahub-0.10.0.2rc2.tar.gz/acryl-datahub-0.10.0.2rc2/src/datahub_provider/hooks/datahub.py
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Tuple, Union from airflow.exceptions import AirflowException from airflow.hooks.base import BaseHook from datahub.metadata.com.linkedin.pegasus2avro.mxe import ( MetadataChangeEvent, MetadataChangeProposal, ) if TYPE_CHECKING: from airflow.mode...
PypiClean
/pyqtgraph-for-dubble-bubble-2016.11.2.tar.gz/pyqtgraph-for-dubble-bubble-2016.11.2/pyqtgraph/widgets/VerticalLabel.py
from ..Qt import QtGui, QtCore __all__ = ['VerticalLabel'] #class VerticalLabel(QtGui.QLabel): #def paintEvent(self, ev): #p = QtGui.QPainter(self) #p.rotate(-90) #self.hint = p.drawText(QtCore.QRect(-self.height(), 0, self.height(), self.width()), QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter...
PypiClean
/dimsim-0.2.2.tar.gz/dimsim-0.2.2/README.md
# DimSim - A Chinese Soundex Library (Python version) DimSim is a library developed by the Scalable Knowledge Intelligence team at IBM Almaden Research Center as part of the [SystemT](https://researcher.watson.ibm.com/researcher/view_group.php?id=1264) project. The PyPi project page can be found [here](https://pypi...
PypiClean
/Orange3-Survival-Analysis-0.5.1.tar.gz/Orange3-Survival-Analysis-0.5.1/README.md
Orange3-Survival-Analysis ========================= Orange3 Survival Analysis add-on for the [Orange3](http://orange.biolab.si) data mining suite. Installation ------------ Install from Orange add-on installer through Options - Add-ons. To install the add-on from source run pip install . To register this add-o...
PypiClean
/aliyun-python-sdk-rds-2.7.43.tar.gz/aliyun-python-sdk-rds-2.7.43/aliyunsdkrds/request/v20140815/CheckCloudResourceAuthorizedRequest.py
from aliyunsdkcore.request import RpcRequest from aliyunsdkrds.endpoint import endpoint_data class CheckCloudResourceAuthorizedRequest(RpcRequest): def __init__(self): RpcRequest.__init__(self, 'Rds', '2014-08-15', 'CheckCloudResourceAuthorized') self.set_method('POST') if hasattr(self, "endpoint_map"): s...
PypiClean
/landsatxplore-0.10.tar.gz/landsatxplore-0.10/README.md
# Description ![CLI Demo](https://raw.githubusercontent.com/yannforget/landsatxplore/master/demo.gif?s=0.5) The **landsatxplore** Python package provides an interface to the [EarthExplorer](http://earthexplorer.usgs.gov/) portal to search and download [Landsat Collections](https://landsat.usgs.gov/landsat-collections...
PypiClean
/allenact_plugins-0.5.3.tar.gz/allenact_plugins-0.5.3/allenact_plugins/ithor_plugin/ithor_tasks.py
import random from typing import Dict, Tuple, List, Any, Optional, Union, Sequence, cast import gym import numpy as np from allenact.base_abstractions.misc import RLStepResult from allenact.base_abstractions.sensor import Sensor from allenact.base_abstractions.task import Task from allenact.utils.system import get_lo...
PypiClean
/custom-e-celery-4.0.2.tar.gz/custom-e-celery-4.0.2/celery/worker/consumer/mingle.py
from __future__ import absolute_import, unicode_literals from celery import bootsteps from celery.five import items from celery.utils.log import get_logger from .events import Events __all__ = ['Mingle'] logger = get_logger(__name__) debug, info, exception = logger.debug, logger.info, logger.exception class Mingle(...
PypiClean
/AbsBox-0.12.5.tar.gz/AbsBox-0.12.5/absbox/local/component.py
from absbox.local.util import mkTag, DC, mkTs, guess_locale, readTagStr from enum import Enum import itertools import functools import logging import pandas as pd from pyspecter import query, S datePattern = {"月末": "MonthEnd", "季度末": "QuarterEnd", "年末": "YearEnd", "月初": "MonthFirst", "季度初": "QuarterFir...
PypiClean
/das7pad-dns-lexicon-3.5.1.post1.tar.gz/das7pad-dns-lexicon-3.5.1.post1/lexicon/providers/cloudns.py
from __future__ import absolute_import import logging import requests from lexicon.providers.base import Provider as BaseProvider LOGGER = logging.getLogger(__name__) NAMESERVER_DOMAINS = ["cloudns.net"] def provider_parser(subparser): """Configure provider parser for CloudNS""" identity_group = subparse...
PypiClean
/bigml_sensenet-0.7.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/sensenet/models/settings.py
from sensenet.constants import WARP, PAD, CROP COLOR_SPACES = ["bgr", "rgb", "bgra", "rgba"] COLOR_SPACES += [f.upper() for f in COLOR_SPACES] OPTIONAL = { "bounding_box_threshold": [1e-8, 1.0], "color_space": COLOR_SPACES, "extract_image_features": bool, "iou_threshold": [1e-8, 1.0], "load_pretra...
PypiClean
/kabirrec-1.0.11.tar.gz/kabirrec-1.0.11/dataset/ml-1m/README
SUMMARY ================================================================================ These files contain 1,000,209 anonymous ratings of approximately 3,900 movies made by 6,040 MovieLens users who joined MovieLens in 2000. USAGE LICENSE ============================================================================...
PypiClean
/ceilometer-18.0.0.0rc1.tar.gz/ceilometer-18.0.0.0rc1/HACKING.rst
Ceilometer Style Commandments ============================= - Step 1: Read the OpenStack Style Commandments https://docs.openstack.org/hacking/latest/ - Step 2: Read on Ceilometer Specific Commandments -------------------------------- - [C301] LOG.warn() is not allowed. Use LOG.warning() - [C302] Deprecated librar...
PypiClean
/batoid-0.3.7.tar.gz/batoid-0.3.7/pybind11/tools/mkdoc.py
import os import sys import platform import re import textwrap from clang import cindex from clang.cindex import CursorKind from collections import OrderedDict from glob import glob from threading import Thread, Semaphore from multiprocessing import cpu_count RECURSE_LIST = [ CursorKind.TRANSLATION_UNIT, Cur...
PypiClean
/FAdo3-1.0.tar.gz/FAdo3-1.0/FAdo/witness.py
from __future__ import absolute_import from __future__ import division from __future__ import unicode_literals from __future__ import print_function from future import standard_library standard_library.install_aliases() from builtins import range from builtins import * from past.utils import old_div from . import fa f...
PypiClean
/Funspec-0.1.0.tar.gz/Funspec-0.1.0/src/funspec/grader.py
from faker import Factory from lazyutils import delegate_to from funspec.exceptions import BuildError from funspec.mod import FunspecMod, TestMod from funspec.result import Result, ErrorResult fake = Factory.create() class Grader: """ Represents a Funspec testing module. Usage: >>> grader = Gr...
PypiClean
/xnni-0.7.4-py3-none-manylinux1_x86_64.whl/xnni-0.7.4.data/data/nni/node_modules/reflect-metadata/Reflect.d.ts
declare module "reflect-metadata" { // The "reflect-metadata" module has no imports or exports, but can be used by modules to load the polyfill. } declare namespace Reflect { /** * Applies a set of decorators to a target object. * @param decorators An array of decorators. * @param target The...
PypiClean
/woo-0.1.0.tar.gz/woo-0.1.0/README.md
📦 setup.py (for humans) ======================= This repo exists to provide [an example setup.py] file, that can be used to bootstrap your next Python project. It includes some advanced patterns and best practices for `setup.py`, as well as some commented–out nice–to–haves. For example, this `setup.py` provides a `$...
PypiClean
/Ax_Handoff-3.1.0.tar.gz/Ax_Handoff-3.1.0/axonchisel/handoff/protocol/__init__.py
import math import hashlib import hmac import axonchisel.handoff.config as config import axonchisel.handoff.util as util import axonchisel.handoff.error as error # ---------------------------------------------------------------------------- def get_variant(encstr): """Given encoded object (string), return th...
PypiClean
/confine-controller-1.0.2.tar.gz/confine-controller-1.0.2/controller/apps/firmware/migrations/0040_datamigration__b620_drop_legacy_fw_config.py
from south.utils import datetime_utils as datetime from south.db import db from south.v2 import DataMigration from django.db import models class Migration(DataMigration): def forwards(self, orm): "Drop legacy firmware configuration. #245 note-25" # Note: Don't use "from appname.models import Model...
PypiClean
/scikit-diveMove-0.3.0.tar.gz/scikit-diveMove-0.3.0/docs/source/demo_simulbouts.rst
.. _demo_simulbouts-label: ================== Simulating bouts ================== This follows the simulation of mixed Poisson distributions in `Luque & Guinet (2007)`_, and the comparison of models for characterizing such distributions. .. _Luque & Guinet (2007): https://doi.org/10.1163/156853907782418213 Set up ...
PypiClean
/mplleaflet-0.0.5.tar.gz/mplleaflet-0.0.5/mplexporter/mplexporter/renderers/base.py
import warnings import itertools from contextlib import contextmanager import numpy as np from matplotlib import transforms from .. import utils from .. import _py3k_compat as py3k class Renderer(object): @staticmethod def ax_zoomable(ax): return bool(ax and ax.get_navigate()) @staticmethod ...
PypiClean
/discordbot_bc_editor-0.0.1.tar.gz/discordbot_bc_editor-0.0.1/discordbot_bc_editor/edits/other/meow_medals.py
from enum import Enum import json from typing import Any, Optional from ... import helper, user_input_handler, game_data_getter def get_medal_names(is_jp: bool) -> Optional[list[str]]: """Get all medal names""" file_data = game_data_getter.get_file_latest("resLocal", "medalname.tsv", is_jp) if file_data...
PypiClean
/aws_service_catalog_puppet-0.242.0.tar.gz/aws_service_catalog_puppet-0.242.0/servicecatalog_puppet/workflow/portfolio/portfolio_management/copy_into_spoke_local_portfolio_task.py
import time import luigi from servicecatalog_puppet import constants from servicecatalog_puppet.workflow.dependencies import tasks class CopyIntoSpokeLocalPortfolioTask(tasks.TaskWithReference): account_id = luigi.Parameter() region = luigi.Parameter() portfolio_task_reference = luigi.Parameter() ...
PypiClean
/Auptimizer-2.0.tar.gz/Auptimizer-2.0/src/aup/Proposer/hpbandster/optimizers/randomsearch.py
import os import time import math import copy import logging import numpy as np import ConfigSpace as CS from hpbandster.core.master import Master from hpbandster.optimizers.iterations import SuccessiveHalving from hpbandster.optimizers.config_generators.random_sampling import RandomSampling as RS class RandomSear...
PypiClean
/ory_client-1.1.51-py3-none-any.whl/ory_client/model/successful_native_login.py
import re # noqa: F401 import sys # noqa: F401 from ory_client.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, none_type, val...
PypiClean
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/keyvault/vendored_sdks/azure_keyvault_t1/http_bearer_challenge.py
try: import urllib.parse as parse except ImportError: import urlparse as parse # pylint: disable=import-error class HttpBearerChallenge(object): def __init__(self, request_uri, challenge): """ Parses an HTTP WWW-Authentication Bearer challenge from a server. """ self.source_authority = se...
PypiClean
/uhfReaderApi-0.0.9.tar.gz/uhfReaderApi-0.0.9/uhf/reader/protocol/base_writeEpc.py
from uhf.reader.protocol import * from uhf.reader.utils import * class MsgBaseWriteEpc(Message): def __init__(self, antennaEnable: int, area: int, start: int, hexWriteData: str, **kwargs): super().__init__() self.mt_8_11 = EnumG.Msg_Type_Bit_Base.value self.msgId = EnumG.BaseMid_WriteEpc....
PypiClean
/comuneimola.compensi-1.3.zip/comuneimola.compensi-1.3/comuneimola/compensi/content/atareacompensi.py
from zope.interface import implements from Products.Archetypes import atapi from Products.ATContentTypes.content import folder from Products.ATContentTypes.content import schemata from comuneimola.compensi.interfaces.atareacompensi import IATAreaCompensi from comuneimola.compensi.config import PROJECTNAME from comune...
PypiClean
/FlowTutor-0.9.0.tar.gz/FlowTutor-0.9.0/src/flowtutor/flowchart/declarations.py
from __future__ import annotations import math from typing import TYPE_CHECKING, Any, Optional import dearpygui.dearpygui as dpg from flowtutor.flowchart.node import FLOWCHART_TAG, Node if TYPE_CHECKING: from flowtutor.flowchart.flowchart import Flowchart class Declarations(Node): def __init__(self) -> Non...
PypiClean
/fds.sdk.StocksAPIforDigitalPortals-0.10.12-py3-none-any.whl/fds/sdk/StocksAPIforDigitalPortals/model/inline_response2001_data_balance_sheet_total_deposits.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.StocksAPIforDigitalPortals.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type...
PypiClean
/puresec-cli-1.2.1.tar.gz/puresec-cli-1.2.1/puresec_cli/resources/node_modules/typescript/lib/lib.webworker.d.ts
///////////////////////////// /// Worker APIs ///////////////////////////// interface AddEventListenerOptions extends EventListenerOptions { once?: boolean; passive?: boolean; } interface Algorithm { name: string; } interface CacheQueryOptions { cacheName?: string; ignoreMethod?: boolean; i...
PypiClean
/modules/events.py
import pytz from metabot.util import adminui from metabot.util import eventutil from metabot.util import html from metabot.util import humanize from metabot.util import icons ALIASES = ('calendar', 'event', 'events') def modhelp(unused_ctx, unused_modconf, sections): # pylint: disable=missing-docstring sectio...
PypiClean
/letter-tools-0.2.4.tar.gz/letter-tools-0.2.4/letter_tools/__init__.py
import random import requests import re def range(start = 1, stop = 1, step = 1): """Find a range from one letter to another. Args: start: the start of the range, stop: the end of the range, step: each increment it goes up by Returns: the range from start to stop ...
PypiClean
/FunID-0.3.16.2.tar.gz/FunID-0.3.16.2/funid/src/manage_input.py
import os import sys import shutil import re import subprocess import json import pandas as pd import numpy as np import logging from copy import deepcopy from unidecode import unidecode from Bio import SeqIO from funid.src.tool import ( initialize_path, get_genus_species, get_id, manage_unicode, ...
PypiClean
/OnedriveCMD-0.1.8.1.tar.gz/OnedriveCMD-0.1.8.1/onedrivecmd/utils/uploader.py
import json from progress.bar import Bar import requests from collections import OrderedDict try: from static import * from helper_file import * from helper_item import * from session import * from helper_print import * except ImportError: from .static import * from .helper_file import * ...
PypiClean
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/wu-ya-jiu-shu/连招1.0学习训练系统完整版:乌鸦连招1.0学习训练系统完整版:女性性格分类:女性性格分类1.md
# 连招1.0 学习训练系统完整版:乌鸦 连招1.0学习训练系统完整版:女性性格分类:女性性格分类1 嗯好,就是大家都看过我的文章吧,女性性格分来没看过的打个一,没看过的打个一,我的女性性格分来,再没看过,然后,身边有看过,打直到看了吧,性格分来你们看的肯定感觉,特别难特别难懂。 主要确实是英文自动比较多,女性格分来就是,在我体系里面,也是第一步,也是定位节套必须做的,就是所以我们,第一个要给一个自己一个定位,因为就是每个女人都是不一样的,我们在炮牛过程当中。 根据不同女人所使的手段,要一定的调整,所以就是说,今天作业我可以先按布置下去,就是你们自己,有适合教全个方面分析,觉得你能炮的卖的是哪几种,是以后一个训练的阶段,比如...
PypiClean
/fluidon-doepy-0.0.6.tar.gz/fluidon-doepy-0.0.6/README.md
Welcome to DOEPY ================= Design of Experiments Generator in Python (`pip install fluidon-doepy`) ------------------------------------------------------------------ ## Introduction --- [Design of Experiments (DOE)](https://en.wikipedia.org/wiki/Design_of_experiments) is an important activity for any scientist...
PypiClean
/shimao-nosidebar-frontend-20180926.0.tar.gz/shimao-nosidebar-frontend-20180926.0/hass_frontend_es5/870fcc2320e7d91600a1.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[44],{138:function(e,t){!function(e){function t(e,t){if("function"==typeof window.CustomEvent)return new CustomEvent(e,t);var n=document.createEvent("CustomEvent");return n.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail),n}function n(e){if(s)return e.ownerDocum...
PypiClean
/eureka-opensource-1.0.3.tar.gz/eureka-opensource-1.0.3/static/yui-3.4.1/event-base-ie/event-base-ie-debug.js
(function() { var stateChangeListener, GLOBAL_ENV = YUI.Env, config = YUI.config, doc = config.doc, docElement = doc && doc.documentElement, EVENT_NAME = 'onreadystatechange', pollInterval = config.pollInterval || 40; if (docElement.doScroll && !GLOBAL_ENV._ieready) { ...
PypiClean
/sphinxcontrib-autoprogram-0.1.8.tar.gz/sphinxcontrib-autoprogram-0.1.8/doc/changelog.rst
Changelog ========= Version 0.1.8 ------------- Released on February 11, 2023. - Test against Python 3.10, 3.11. Version 0.1.7 ------------- Released on February 10, 2021. - Publish to PyPI via Github Actions. Version 0.1.6 ------------- Released on February 10, 2021. - Dropped support for Python 2 and Pypy ...
PypiClean
/backend-library-createquestions-0.1.0.tar.gz/backend-library-createquestions-0.1.0/question_builder/data/question_type_repository/question_getter.py
from collections import defaultdict from .. import config from ..config import QuestionMode from ..domain.data_converters import to_verb_question from ..domain.lemma_data import LemmaData from neo4j import DirectDriver from neo4j import BoltStatementResult from typing import List, Dict class QuestionGetter: """ ...
PypiClean