id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/hassio/entity.py
from __future__ import annotations from typing import Any from homeassistant.helpers.entity import DeviceInfo, EntityDescription from homeassistant.helpers.update_coordinator import CoordinatorEntity from . import DOMAIN, HassioDataUpdateCoordinator from .const import ( ATTR_SLUG, DATA_KEY_ADDONS, DATA_K...
PypiClean
/asr-0.4.1.tar.gz/asr-0.4.1/docs/src/tutorials/setup-params.rst
The `setup.params` recipe ========================= All material folders can contain a `params.json`-file. This file specifies new defaults and take precedence over the standard defaults that are specified in the actual recipes. This file can be edited manually or the `setup.params` recipe can be used to generate and...
PypiClean
/rename_movie-1.2.1.tar.gz/rename_movie-1.2.1/rename_movie.py
to the folder with the director’s name.""" import os import subprocess as sp from argparse import ArgumentParser from itertools import islice from pathlib import Path import isle import macos_tags TMDB_API_KEY = os.environ.get("TMDB_API_KEY") FORMAT = "{year} - {first_title}{second_title}" YES_OR_NO = "(y/n, defau...
PypiClean
/dash_auth_python_client-0.1.1.tar.gz/dash_auth_python_client-0.1.1/dash_auth/configuration.py
from __future__ import absolute_import import copy import logging import multiprocessing import sys import urllib3 import six from six.moves import http_client as httplib class TypeWithDefault(type): def __init__(cls, name, bases, dct): super(TypeWithDefault, cls).__init__(name, bases, dct) cls....
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/iaqualink/climate.py
from __future__ import annotations import logging from typing import Any from homeassistant.components.climate import ( DOMAIN as CLIMATE_DOMAIN, ClimateEntity, ClimateEntityFeature, HVACMode, ) from homeassistant.config_entries import ConfigEntry from homeassistant.const import ATTR_TEMPERATURE, Unit...
PypiClean
/sympy.keras-1.0.23.tar.gz/sympy.keras-1.0.23/sympy/polys/euclidtools.py
from sympy.ntheory import nextprime from sympy.polys.densearith import ( dup_sub_mul, dup_neg, dmp_neg, dmp_add, dmp_sub, dup_mul, dmp_mul, dmp_pow, dup_div, dmp_div, dup_rem, dup_quo, dmp_quo, dup_prem, dmp_prem, dup_mul_ground, dmp_mul_ground, dmp_mul_term, dup_quo...
PypiClean
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/tiering_azure_external_target_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
/propileu_sdk-1.0.0.tar.gz/propileu_sdk-1.0.0/README.md
# Propileu SDK [![Build Status](https://travis-ci.com/juntossomosmais/propileu-sdk.svg?token=cfB1EHQmosyKPne1bPRP&branch=master)](https://travis-ci.com/juntossomosmais/propileu-sdk) [![Maintainability](https://api.codeclimate.com/v1/badges/b8056e184a75503d3a5f/maintainability)](https://codeclimate.com/repos/5c76824edd...
PypiClean
/django-adminactions-2.1.0.tar.gz/django-adminactions-2.1.0/src/adminactions/static/adminactions/js/massupdate.js
"use strict"; (function ($) { $(function () { $('.func_select').change(function () { var $option = $(this).find(':selected'); var target = $(this).parent().parent().find('.col_field input, .col_field select .col_field textarea'); if ($option.hasClass('noparam')) { ...
PypiClean
/you-get-0.4.1650.tar.gz/you-get-0.4.1650/CHANGELOG.rst
Changelog ========= 0.3.36 ------ *Date: 2015-10-05* * New command-line option: --json * New site support: - Internet Archive * Bug fixes: - iQIYI - SoundCloud 0.3.35 ------ *Date: 2015-09-21* * New site support: - 755 http://7gogo.jp/ (via #659 by @soimort) - Funshion http://www.fun.tv/ (via ...
PypiClean
/aws_parallelcluster-3.7.0-py3-none-any.whl/pcluster/api/models/describe_cluster_response_content.py
# pylint: disable=R0801 import re from datetime import datetime from typing import List from pcluster.api import util from pcluster.api.models.base_model_ import Model from pcluster.api.models.cloud_formation_stack_status import CloudFormationStackStatus from pcluster.api.models.cluster_configuration_structure impo...
PypiClean
/azure-agrifood-farming-1.0.0b2.zip/azure-agrifood-farming-1.0.0b2/README.md
# Azure FarmBeats client library for Python FarmBeats is a B2B PaaS offering from Microsoft that makes it easy for AgriFood companies to build intelligent digital agriculture solutions on Azure. FarmBeats allows users to acquire, aggregate, and process agricultural data from various sources (farm equipment, weather, sa...
PypiClean
/boto_brimley-2.61.0.tar.gz/boto_brimley-2.61.0/boto/exception.py
import base64 import xml.sax import boto from boto import handler from boto.compat import json, StandardError from boto.resultset import ResultSet class BotoClientError(StandardError): """ General Boto Client error (error accessing AWS) """ def __init__(self, reason, *args): super(BotoClient...
PypiClean
/ul-db-utils-2.10.9.tar.gz/ul-db-utils-2.10.9/ul_db_utils/model/base_api_user_log_model.py
from datetime import datetime from typing import Optional from uuid import UUID from sqlalchemy import inspect from sqlalchemy.dialects.postgresql import UUID as PG_UUID from sqlalchemy.engine.base import Connection from sqlalchemy.ext.declarative import declared_attr from ul_db_utils.model.base_model import BaseMode...
PypiClean
/zhenxun_bot-0.1.4.3-py3-none-any.whl/zhenxun_bot/utils/manager/plugins2count_manager.py
from typing import Optional, Dict from .data_class import StaticData from utils.utils import DailyNumberLimiter from services.log import logger from pathlib import Path from ruamel.yaml import YAML yaml = YAML(typ="safe") class Plugins2countManager(StaticData): """ 插件命令 次数 管理器 """ def __init__(self,...
PypiClean
/bittrade_binance_websocket-0.2.3.tar.gz/bittrade_binance_websocket-0.2.3/bittrade_binance_websocket/framework/framework.py
from logging import getLogger from typing import Callable, cast import requests from ccxt import binance from elm_framework_helpers.websockets.operators import connection_operators from reactivex import Observable, operators from reactivex.disposable import CompositeDisposable from reactivex.scheduler import ThreadPoo...
PypiClean
/nb_offline_convert-0.1.1.tar.gz/nb_offline_convert-0.1.1/share/jupyter/nbconvert/templates/lab_offline/static/MathJax/localization/zh-hans/FontWarnings.js
MathJax.Localization.addTranslation("zh-hans","FontWarnings",{version:"2.7.7",isLoaded:true,strings:{webFont:"MathJax\u4F7F\u7528\u57FA\u4E8EWeb\u7684\u5B57\u4F53\u6765\u663E\u793A\u6B64\u9875\u4E0A\u663E\u793A\u6570\u5B66\u76F8\u5173\u5185\u5BB9\u3002\u8FD9\u5C06\u82B1\u8D39\u8F83\u957F\u65F6\u95F4\u4E0B\u8F7D\uFF0C\u...
PypiClean
/test-zzz-sdk-5.0.3.tar.gz/test-zzz-sdk-5.0.3/zcrmsdk/src/com/zoho/crm/api/territories/response_wrapper.py
try: from zcrmsdk.src.com.zoho.crm.api.exception import SDKException from zcrmsdk.src.com.zoho.crm.api.util import Constants from zcrmsdk.src.com.zoho.crm.api.territories.response_handler import ResponseHandler except Exception: from ..exception import SDKException from ..util import Constants from .response_hand...
PypiClean
/ignition_api-8.1.31.post1.tar.gz/ignition_api-8.1.31.post1/src/system/date.py
from __future__ import print_function __all__ = [ "addDays", "addHours", "addMillis", "addMinutes", "addMonths", "addSeconds", "addWeeks", "addYears", "daysBetween", "format", "fromMillis", "getAMorPM", "getDate", "getDayOfMonth", "getDayOfWeek", "getDayO...
PypiClean
/PyAlexaClient-0.3-py3-none-any.whl/Alexa-Payloads/VoicePlatformABC.py
from abc import ABC, abstractmethod import json from flask import Response from random import randint class VoicePlatformABC(ABC): def __init__(self, request_data_json): print('request_data_json: ', request_data_json) self._session_id = None self._result = None self._parameters = ...
PypiClean
/robotic-manipulator-rloa-1.0.0.tar.gz/robotic-manipulator-rloa-1.0.0/robotic_manipulator_rloa/utils/replay_buffer.py
import random from collections import deque, namedtuple from typing import Tuple import numpy as np import torch from numpy.typing import NDArray # deque is a Doubly Ended Queue, provides O(1) complexity for pop and append actions # namedtuple is a tuple that can be accessed by both its index and attributes class ...
PypiClean
/sat_mapping_cyborg_ai-0.0.37-py3-none-any.whl/sat_mapping/Lib/gsutil/third_party/pyu2f/pyu2f/hid/windows.py
import ctypes from ctypes import wintypes import platform from pyu2f import errors from pyu2f.hid import base # Load relevant DLLs hid = ctypes.windll.Hid setupapi = ctypes.windll.SetupAPI kernel32 = ctypes.windll.Kernel32 # Various structs that are used in the Windows APIs we call class GUID(ctypes.Structure): ...
PypiClean
/spark_sql_to_sqlite-0.8.tar.gz/spark_sql_to_sqlite-0.8/README.md
# spark_sql_to_sqlite Easily save a Spark dataframe into a SQLite database. #### Why do you need it Although you can use jdbc with Spark to write to SQLite, this method is error prone, and doesn't handle complex data types such as Map, Struct and Array. `spark_sql_to_sqlite` automatically converts these complex dat...
PypiClean
/bpy-2.91a0-cp37-cp37m-manylinux2014_x86_64.whl/bpy-2.91a0.data/scripts/2.91/scripts/addons/sun_position/properties.py
import bpy from bpy.types import AddonPreferences, PropertyGroup from bpy.props import (StringProperty, EnumProperty, IntProperty, FloatProperty, BoolProperty, PointerProperty) from .sun_calc import sun_update, parse_coordinates from .north import north_update from math import pi from datetime...
PypiClean
/azureml_core-1.53.0-py3-none-any.whl/azureml/data/dataset_snapshot.py
from collections import OrderedDict from azureml.data.dataset_type_definitions import HistogramCompareMethod from azureml.data._dataset_deprecation import deprecated class DatasetSnapshot(object): """Manages Dataset snapshots with operations to get a snapsot, return its status, and convert it to a dataframe. ...
PypiClean
/dtleads_api_helper-0.0.2-py3-none-any.whl/dtleads_api_helper/__init__.py
import dtleads_api_helper.dtl_controllers as dtl_controllers import requests import json ## main class to control package methods class DanielTimothyLeads: def __init__(self): url = "https://danieltimothyleads.com/" # api hosted url * end with with / * self.url = url + "oauth/token" # add endpoin...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/permission_grants/item/check_member_objects/check_member_objects_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
/jupyter_manager-0.0.4.tar.gz/jupyter_manager-0.0.4/jupyter_manager/labextension/static/remoteEntry.d3e8d99e49550d64ad91.js
var _JUPYTERLAB; /******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ var __webpack_modules__ = ({ /***/ "webpack/container/entry/@datalayer/jupyter-manager": /*!***********************!*\ !*** container entry ***! \***********************/ /***/ ((__unused_webpack_module, exports, __webpack_req...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/impairment/profile/modifier/modifier.py
import sys from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files if sys.version_info >= (3, 5): from typing import List, Any, Union class Modifier(Base): """Modify a field in incoming packets before sending them. The Modifier class encapsulates a list of modifier resources that ...
PypiClean
/slicesampling-0.1.4-py3-none-any.whl/slicesampler/sampler.py
from slicesampling import univariate_sampler import numpy as np def map_1d_to_nd(u, v, x0): """ :param u: :param v: :param x0: :return: """ x = u * v + x0 return x class SliceSampler(univariate_sampler.UnivariateSliceSampler): """ Implementation of the multivariate slice_sampl...
PypiClean
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/plot/polyobjects.py
__docformat__ = "restructuredtext en" # Standard Library import time as _time import wx import warnings from collections import namedtuple # Third-Party try: import numpy as np except: msg = """ This module requires the NumPy module, which could not be imported. It probably is not installed (it's not...
PypiClean
/bpy_cuda-2.82-cp37-cp37m-win_amd64.whl/bpy_cuda-2.82.data/scripts/2.82/scripts/addons/ui_translate/edit_translation.py
# <pep8 compliant> import os import shutil if "bpy" in locals(): import importlib importlib.reload(settings) importlib.reload(utils_i18n) else: import bpy from bpy.types import Operator from bpy.props import ( BoolProperty, EnumProperty, StringProperty, ) from ....
PypiClean
/rt_thread_studio-2.2-py3-none-any.whl/rt_thread_studio/board_support_package_generator/bsp_generator/generate.py
import os import pathlib import shutil import tkinter as tk from pathlib import Path from tkinter import filedialog from . import bsp_descriptor from . import builtin_files from . import external_files from . import project class Generator(object): """ This is the project generator class, it contains the bas...
PypiClean
/ishtar-0.99.27.tar.gz/ishtar-0.99.27/ishtar_common/static/js/i18n/grid.locale-cat.js
;(function($){ /** * jqGrid Catalan Translation * Traducció jqGrid en Catatà per Faserline, S.L. * http://www.faserline.com * Dual licensed under the MIT and GPL licenses: * http://www.opensource.org/licenses/mit-license.php * http://www.gnu.org/licenses/gpl.html **/ $.jgrid = { defaults : { recordtext: "Mostr...
PypiClean
/edg-0.0.1.tar.gz/edg-0.0.1/edg_core/Link.py
from __future__ import annotations from typing import * import edgir from .Array import BaseVector, DerivedVector from .Blocks import BaseBlock, Connection, DescriptionString from .Core import Refable, non_library from .HdlUserExceptions import * from .IdentityDict import IdentityDict from .Ports import BasePort, Por...
PypiClean
/flattaxdb-0.1.0.tar.gz/flattaxdb-0.1.0/README.md
Parse and query different taxonomic databases ============================================= Aims ---- * Work with taxonomic databases from data dump flatfiles. * Load them directly into memory for queries and other operations. * Use same internal data structures and methods for different source DBs. * Report output as...
PypiClean
/sagemath-standard-10.0b0.tar.gz/sagemath-standard-10.0b0/sage/coding/self_dual_codes.py
r""" Enumerating binary self-dual codes This module implements functions useful for studying binary self-dual codes. The main function is ``self_dual_binary_codes``, which is a case-by-case list of entries, each represented by a Python dictionary. Format of each entry: a Python dictionary with keys "order autgp", "sp...
PypiClean
/quantum-image-classifier-1.0.0.tar.gz/quantum-image-classifier-1.0.0/README.md
[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/jorgevazquezperez/Quantum-image-classifier.git/main?labpath=docs%2FUsageTutorial.ipynb) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) # Quantum image classifier ## Data use You can ...
PypiClean
/scikit-bot-0.14.0.tar.gz/scikit-bot-0.14.0/skbot/ignition/sdformat/bindings/v17/collision.py
from dataclasses import dataclass, field from typing import Optional from .geometry import Geometry __NAMESPACE__ = "sdformat/v1.7/collision.xsd" @dataclass class Collision: """The collision properties of a link. Note that this can be different from the visual properties of a link, for example, simpler ...
PypiClean
/azure-mgmt-monitor-6.0.2.tar.gz/azure-mgmt-monitor-6.0.2/azure/mgmt/monitor/v2022_02_01_preview/models/__init__.py
from ._models_py3 import AzureMonitorMetricsDestination from ._models_py3 import ColumnDefinition from ._models_py3 import ConfigurationAccessEndpointSpec from ._models_py3 import DataCollectionEndpoint from ._models_py3 import DataCollectionEndpointConfigurationAccess from ._models_py3 import DataCollectionEndpointLo...
PypiClean
/OpihiExarata-2023.7.19.tar.gz/OpihiExarata-2023.7.19/src/opihiexarata/astrometry/webclient.py
import os import urllib.parse import urllib.request import urllib.error import random import astropy.wcs as ap_wcs import opihiexarata.library as library import opihiexarata.library.error as error import opihiexarata.library.hint as hint class AstrometryNetWebAPIEngine(library.engine.AstrometryEngine): """A pyth...
PypiClean
/aestate-json-1.0.3.tar.gz/aestate-json-1.0.3/ajson/sim/encoder.py
from __future__ import absolute_import import re from operator import itemgetter # Do not import Decimal directly to avoid reload issues import decimal from .compat import unichr, binary_type, text_type, string_types, integer_types, PY3 def _import_speedups(): try: from . import _speedups return _sp...
PypiClean
/ibm_watson_machine_learning-1.0.320-py3-none-any.whl/ibm_watson_machine_learning/libs/repo/mlrepositoryartifact/xgboost_model_reader.py
import os import shutil import logging from ibm_watson_machine_learning.libs.repo.mlrepository.artifact_reader import ArtifactReader from ibm_watson_machine_learning.libs.repo.mlrepositoryartifact.version_helper import XGBoostModelBinary from ibm_watson_machine_learning.libs.repo.util.compression_util import Compress...
PypiClean
/pynewton-1.1.2.tar.gz/pynewton-1.1.2/README.md
# PyNewton An `asnycio`-based wrapper for [Newton](https://newton.now.sh). The Github project can be found [here.](https://github.com/aunyks/newton-api) ## Installation ``` pip install git+https://github.com/HitaloSama/pynewton ``` ## Example ```py import asyncio import pynewton # Get event loop loop = asyncio.ge...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/ZhimaMerchantOrderRentCreateModel.py
import json from alipay.aop.api.constant.ParamConstants import * class ZhimaMerchantOrderRentCreateModel(object): def __init__(self): self._address = None self._borrow_cycle = None self._borrow_cycle_unit = None self._borrow_shop_name = None self._borrow_time = None ...
PypiClean
/ora2-5.2.5-py3-none-any.whl/openassessment/workflow/api.py
import logging from django.db import DatabaseError from submissions import api as sub_api from openassessment.assessment.errors import PeerAssessmentError, PeerAssessmentInternalError from .errors import (AssessmentWorkflowError, AssessmentWorkflowInternalError, AssessmentWorkflowNotFoundError, ...
PypiClean
/pulumi_vault-5.15.0a1693031013.tar.gz/pulumi_vault-5.15.0a1693031013/pulumi_vault/okta/outputs.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = [ 'AuthBackendGroup', 'AuthBackendUser', ] @pulumi.output_type class AuthBackendGroup(dict): @staticmethod def __key_warning(key: st...
PypiClean
/lbrlabs_pulumi_ovh-0.32.0.tar.gz/lbrlabs_pulumi_ovh-0.32.0/lbrlabs_pulumi_ovh/me/installation_template_partition_scheme.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['InstallationTemplatePartitionSchemeArgs', 'InstallationTemplatePartitionScheme'] @pulumi.input_type class InstallationTemplatePartitionSchemeArgs:...
PypiClean
/mypy_boto3_codebuild-1.28.36-py3-none-any.whl/mypy_boto3_codebuild/paginator.py
from typing import Generic, Iterator, TypeVar from botocore.paginate import PageIterator, Paginator from .literals import ( ProjectSortByTypeType, ReportCodeCoverageSortByTypeType, ReportGroupSortByTypeType, SharedResourceSortByTypeType, SortOrderTypeType, ) from .type_defs import ( BuildBatch...
PypiClean
/survival-0.0.6-py3-none-any.whl/distributions/expmixture.py
import numpy as np class ExpMix(): def __init__(self, s, t, x, xs=None, xt=None, ws=None, wt=None, wx=None): self.s = s self.t = t self.x = x if ws is None: self.ws = np.ones(len(s)) else: self.ws = ws if wt is None: self.wt = np.o...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/MybankMarketingCampaignPrizeListConsultModel.py
import json from alipay.aop.api.constant.ParamConstants import * class MybankMarketingCampaignPrizeListConsultModel(object): def __init__(self): self._alipay_user_id = None self._biz_amt = None self._biz_context = None self._biz_id = None self._channel = None self...
PypiClean
/mimircache-0.0.2.85.tar.gz/mimircache-0.0.2.85/docs/User/Tutorial/open_trace.rst
.. _open_trace: How to Open Different Traces ============================ Supported Trace File Type ------------------------- - plain Text - csv file - binary file - vscsi trace How to Open a Trace File ------------------------ Now let's open a trace file, your have three choices for opening different types of trac...
PypiClean
/tfp_causalimpact-0.2.0-py3-none-any.whl/causalimpact/plot.py
import altair as alt import numpy as np import pandas as pd import tensorflow_probability as tfp def plot(ci_model, **kwargs) -> alt.Chart: """Main plotting function. Args: ci_model: CausalImpactAnalysis object, after having called `fit_causalimpact`. **kwargs: arguments for modifying plot defaults...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojo/nls/ar/colors.js
define( "dojo/nls/ar/colors", //begin v1.x content ({ // local representation of all CSS3 named colors, companion to dojo.colors. To be used where descriptive information // is required for each color, such as a palette widget, and not for specifying color programatically. //Note: due to the SVG 1.0 spec additions, s...
PypiClean
/tensorflow_rocm-2.12.0.560-cp310-cp310-manylinux2014_x86_64.whl/tensorflow/python/keras/mixed_precision/autocast_variable.py
"""Contains AutoCastVariable, a variable which automatically casts itself.""" import threading from tensorflow.python.eager import context from tensorflow.python.framework import ops from tensorflow.python.framework import tensor_conversion_registry from tensorflow.python.keras.distribute import distributed_training_u...
PypiClean
/v1/model/show_ep_quota_response.py
import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ShowEPQuotaResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is att...
PypiClean
/alerta-server-9.0.1.tar.gz/alerta-server-9.0.1/alerta/database/backends/postgres/queryparser.py
from pyparsing import (Forward, Group, Keyword, Literal, Optional, ParseException, ParserElement, QuotedString, Regex, Suppress, Word, infixNotation, opAssoc, printables) ParserElement.enablePackrat() class UnaryOperation: """takes one operand,e.g. not""" def __...
PypiClean
/aas-timeseries-0.1b4.tar.gz/aas-timeseries-0.1b4/aas_timeseries/screenshot/data_server.py
import os import time import socket import logging import asyncio from hashlib import md5 from threading import Thread __all__ = ['get_data_server'] def get_data_server(verbose=False): """ This starts up a tornado server and returns a handle to a DataServer object which can be used to register files to s...
PypiClean
/py_auxo_bee-0.1.9-py3-none-any.whl/bee/net/rpc/codecs/proto/proto.py
import pickle from typing import List from bee.data.option import Options, Option from bee.data.map import Map from bee.errors.error import CodedError from bee.net.rpc.codec import Stream, IClientCodec, IServerCodec, CodecBuilder, Request as _Request, RequestHead as _RequestHead, ResponseHead as _ResponseHead, \ ...
PypiClean
/musma_ray-1.0.0.2-py3-none-any.whl/rllib/offline/dataset_reader.py
import logging import math import ray.data from ray.rllib.offline.input_reader import InputReader from ray.rllib.offline.io_context import IOContext from ray.rllib.offline.json_reader import from_json_data from ray.rllib.utils.annotations import override, PublicAPI from ray.rllib.utils.typing import SampleBatchType, T...
PypiClean
/tensorflow-probability-0.2.0.tar.gz/tensorflow-probability-0.2.0/tensorflow_probability/python/distributions/binomial.py
"""The Binomial distribution class.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import tensorflow as tf from tensorflow.python.framework import tensor_shape from tensorflow.python.ops import control_flow_ops from tensorflow.python.ops.distributions im...
PypiClean
/geoai_GDAL-3.4.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl/osgeo_utils/samples/validate_jp2.py
import os import sys from osgeo import gdal from osgeo import osr def Usage(): print('Usage: validate_jp2 [-expected_gmljp2] [-inspire_tg] [-datatype imagery|non_imagery]') print(' [-oidoc in.xml] [-ogc_schemas_location path|disabled] test.jp2') print('') print('Options:') prin...
PypiClean
/oaebu-workflows-2022.3.0.tar.gz/oaebu-workflows-2022.3.0/oaebu_workflows/workflows/google_books_telescope.py
# Author: Aniek Roelofs import csv import logging import os import re from collections import OrderedDict, defaultdict from typing import List, Optional import pendulum from airflow.exceptions import AirflowException from airflow.models.taskinstance import TaskInstance from google.cloud import bigquery from observa...
PypiClean
/truelayer_signing-0.3.0a0.tar.gz/truelayer_signing-0.3.0a0/README.md
# truelayer-signing Python package to produce & verify TrueLayer API requests signatures. ## Install ``` pip install truelayer-signing ``` ## Generating a signature ```python tl_signature = sign_with_pem(KID, PRIVATE_KEY) \ .set_method(HttpMethod.POST) \ .set_path(path) \ .add_header("Idempotency-Key", ...
PypiClean
/snmpclitools_lextudio-0.6.4-py3-none-any.whl/snmpclitools/scripts/snmptrap.py
import os import socket import sys import traceback from pysnmp import error from pysnmp.entity import engine from pysnmp.entity.rfc3413 import ntforg from pysnmp.proto.api import v1, v2c from pysnmp.proto.proxy import rfc2576 from snmpclitools.cli import base from snmpclitools.cli import main from snmpclitools.cli i...
PypiClean
/spyne-2.14.0.tar.gz/spyne-2.14.0/examples/user_manager/server_basic.py
import logging logging.basicConfig(level=logging.DEBUG) logging.getLogger('spyne.protocol.xml').setLevel(logging.DEBUG) from spyne.application import Application from spyne.decorator import rpc from spyne.error import ResourceNotFoundError from spyne.protocol.soap import Soap11 from spyne.model.primitive import Manda...
PypiClean
/django-flipbook-0.3.7.tar.gz/django-flipbook-0.3.7/flipbook/static/flipbook/js/jquery.bookblock.js
;( function( $, window, undefined ) { 'use strict'; // global var $window = $(window), Modernizr = window.Modernizr; // https://gist.github.com/edankwan/4389601 Modernizr.addTest('csstransformspreserve3d', function () { var prop = Modernizr.prefixed('transformStyle'); var val = 'preserve-3d'; var comput...
PypiClean
/open-autonomy-0.12.0.tar.gz/open-autonomy-0.12.0/docs/key_concepts/fsm_app_introduction.md
Departing from the notions of [AEA](./aea.md), [FSM](./fsm.md), and [ABCI](./abci.md), we are now in position to describe in more detail what an {{fsm_app}} is. ## Definition of an {{fsm_app}} An {{fsm_app}} is a replicated application which uses an underlying consensus engine implementing the [ABCI](./abci.md). Its...
PypiClean
/memon-0.2.0.tar.gz/memon-0.2.0/docs/index.rst
===== memon ===== This is the documentation of **memon**. Contents ======== .. toctree:: :maxdepth: 2 License <license> Authors <authors> Changelog <changelog> Module Reference <api/modules> Indices and tables ================== * :ref:`genindex` * :ref:`modindex` * :ref:`search` .. _toctree: htt...
PypiClean
/fds.sdk.OpenFactSetPartnersDocuments-3.0.3-py3-none-any.whl/fds/sdk/OpenFactSetPartnersDocuments/model/orbit_history_files.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.OpenFactSetPartnersDocuments.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_ty...
PypiClean
/reana-commons-0.9.3a3.tar.gz/reana-commons-0.9.3a3/reana_commons/workflow_engine.py
import os import base64 import json import logging import signal import click from reana_commons.api_client import JobControllerAPIClient from reana_commons.publisher import WorkflowStatusPublisher from reana_commons.utils import check_connection_to_job_controller def load_json(ctx, param, value): """Load json ...
PypiClean
/RackioAdmin-0.5-py3-none-any.whl/rackio_admin/static/vendor/fullcalendar-3.10.0/locale/nl.js
!function(e,n){"object"==typeof exports&&"object"==typeof module?module.exports=n(require("moment"),require("fullcalendar")):"function"==typeof define&&define.amd?define(["moment","fullcalendar"],n):"object"==typeof exports?n(require("moment"),require("fullcalendar")):n(e.moment,e.FullCalendar)}("undefined"!=typeof sel...
PypiClean
/h2o_q-0.6.0-py3-none-any.whl/h2o_q/autoreload.py
# # Copyright 2009 Facebook # # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain # a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, ...
PypiClean
/wegnology_rest-1.16.2-py3-none-any.whl/wegnologyrest/instance_org_member.py
import json """ Module for WEGnology API InstanceOrgMember wrapper class """ # pylint: disable=C0301 class InstanceOrgMember(object): """ Class containing all the actions for the Instance Org Member Resource """ def __init__(self, client): self.client = client def delete(self, **kwargs): ...
PypiClean
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/common_search_indexed_objects_response_params53a94a3678b441c88505_c186d1bcc3e7_exchange_indexed_objects_wrapper_all_of.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
/django-oauth2-provider-unleashed-0.2.12.tar.gz/django-oauth2-provider-unleashed-0.2.12/provider/views.py
import json import urlparse from django.http import HttpResponse from django.http import HttpResponseRedirect, QueryDict from django.utils.translation import ugettext as _ from django.views.generic.base import TemplateView from django.core.exceptions import ObjectDoesNotExist from oauth2.models import Client from . imp...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/compute/v20201201/get_proximity_placement_group.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs __all__ = [ 'GetProximityPlacementGroupResult', 'AwaitableGetProximityPlacementGroupResult', 'get_proximity_placement_group', ] @pulumi....
PypiClean
/vvlab-0.2.4.tar.gz/vvlab-0.2.4/README.md
# VVLAB VVLAB is a reinforcement learning platform based on Pytorch and OpenAI Gym.The supported interface algorithms currently include: - Sarsa - Qlearning - Deep Q-Network (DQN) - Deep Deterministic Policy Gardient (DDPG) ## Installation **Notice:** The platform uses pytorch and numpy. It is recommended to use...
PypiClean
/FlowMaster-0.7.1.tar.gz/FlowMaster-0.7.1/flowmaster/utils/__init__.py
import datetime as dt from copy import deepcopy from itertools import islice from typing import Iterable, Any, Optional, TypeVar, Union import pendulum def chunker(iterable: Iterable, size: int) -> Any: iterator = iter(iterable) while chunk := list(islice(iterator, size)): yield chunk def iter_rang...
PypiClean
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/CHANGELOG.rst
.. Generate incremental updates to this file with $ python setup.py changelog <OPTIONS> .. _CHANGELOG: ========== Change Log ========== ----------------- Version |release| ----------------- This maintenance release adds :ref:`LOGGING` and resolves compatibility issues with recent builds of :term:`PETSc` and :ter...
PypiClean
/safegate_pro-2021.7.6-py3-none-any.whl/homeassistant/components/wled/__init__.py
from __future__ import annotations from homeassistant.components.light import DOMAIN as LIGHT_DOMAIN from homeassistant.components.select import DOMAIN as SELECT_DOMAIN from homeassistant.components.sensor import DOMAIN as SENSOR_DOMAIN from homeassistant.components.switch import DOMAIN as SWITCH_DOMAIN from homeassis...
PypiClean
/lc-django-ckeditor-5.6.8.tar.gz/lc-django-ckeditor-5.6.8/ckeditor/static/ckeditor/ckeditor/lang/pl.js
/* Copyright (c) 2003-2018, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.lang['pl']={"editor":"Edytor tekstu sformatowanego","editorPanel":"Panel edytora tekstu sformatowanego","common":{"editorHelp":"W celu uzyskania pomocy naciśnij ALT 0"...
PypiClean
/youtube_dl_fork-2022.6.30.tar.gz/youtube_dl_fork-2022.6.30/youtube_dl/extractor/jove.py
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( ExtractorError, unified_strdate ) class JoveIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?jove\.com/video/(?P<id>[0-9]+)' _CHAPTERS_URL = 'http://www.jove.com/video-chapters?videoid={vide...
PypiClean
/AeroSandbox-4.1.1.tar.gz/AeroSandbox-4.1.1/aerosandbox/library/aerodynamics/unsteady.py
import aerosandbox.numpy as np from typing import Union, Callable from scipy.integrate import quad # Welcome to the unsteady aerodynamics library! # In here you will find analytical, time-domain models for the # unsteady lift response of thin airfoils. Here is a quick overview # of what's been implemented so...
PypiClean
/gregetsuro_dist-0.1.tar.gz/gregetsuro_dist-0.1/gregetsuro_dist/Binomialdistribution.py
import math import matplotlib.pyplot as plt from .Generaldistribution import Distribution class Binomial(Distribution): """ Binomial distribution class for calculating and visualizing a Binomial distribution. Attributes: mean (float) representing the mean value of the distribution std...
PypiClean
/gce-api-3.0.0.tar.gz/gce-api-3.0.0/gceapi/api/common.py
import os.path import re from webob import exc from oslo_config import cfg from oslo_log import log as logging from oslo_utils import timeutils from gceapi.api import clients from gceapi.api import operation_api from gceapi.api import operation_util from gceapi.api import scopes from gceapi.api import utils from gcea...
PypiClean
/youtrack-rest-client-0.1.5.tar.gz/youtrack-rest-client-0.1.5/youtrack_rest_client/api/default/get_work_items.py
import datetime from typing import Any, Dict, List, Optional, Union import httpx from ...client import Client from ...models import issue_work_item as issue_work_item_m from ...types import UNSET, Response, Unset def _get_kwargs( *, client: Client, query: "Union[Unset, None, str]" = UNSET, start_dat...
PypiClean
/aiida-core-bot-1.0.0b5.tar.gz/aiida-core-bot-1.0.0b5/aiida/cmdline/commands/cmd_devel.py
"""`verdi devel` commands.""" from __future__ import division from __future__ import print_function from __future__ import absolute_import import click from aiida.cmdline.commands.cmd_verdi import verdi from aiida.cmdline.params import options from aiida.cmdline.params.types import TestModuleParamType from aiida.cmdli...
PypiClean
/labml-nn-0.4.135.tar.gz/labml-nn-0.4.135/labml_nn/experiments/nlp_autoregression.py
from typing import Callable import torch import torch.nn as nn from torch.utils.data import DataLoader, RandomSampler from labml import lab, monit, logger, tracker from labml.configs import option from labml.logger import Text from labml_helpers.datasets.text import TextDataset, SequentialDataLoader, SequentialUnBatc...
PypiClean
/adafruit-circuitpython-esp-atcontrol-0.10.0.tar.gz/adafruit-circuitpython-esp-atcontrol-0.10.0/examples/esp_atcontrol_cheerlights.py
import time import board import busio from digitalio import DigitalInOut from digitalio import Direction import neopixel import adafruit_fancyled.adafruit_fancyled as fancy # ESP32 SPI from adafruit_espatcontrol import ( adafruit_espatcontrol, adafruit_espatcontrol_wifimanager, ) # Get wifi details and mor...
PypiClean
/gears-less-0.3.3.tar.gz/gears-less-0.3.3/gears_less/node_modules/less/Gruntfile.js
'use strict'; module.exports = function(grunt) { // Report the elapsed execution time of tasks. require('time-grunt')(grunt); // Project configuration. grunt.initConfig({ // Metadata required for build. build: grunt.file.readYAML('build/build.yml'), pkg: grunt.file.readJSON('package.json'), ...
PypiClean
/py_base_layer-1.0.0-py3-none-any.whl/urllib3/response.py
from __future__ import absolute_import import io import logging import sys import zlib from contextlib import contextmanager from socket import error as SocketError from socket import timeout as SocketTimeout try: try: import brotlicffi as brotli except ImportError: import brotli except Import...
PypiClean
/change_proc_priority-0.10-py3-none-any.whl/change_proc_priority-0.10.dist-info/LICENSE.rst
The MIT License (MIT) Copyright (c) 2023 Johannes Fischer 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, ...
PypiClean
/py_wechat_tools-0.0.6-py3-none-any.whl/py_wechat_tools/mini_program/updatable_message.py
from py_wechat_tools.libs.tools import WeChatBase class TemplateInfo: member_count = None # target_state = 0 时必填,文字内容模板中 member_count 的值 room_limit = None # target_state = 0 时必填,文字内容模板中 room_limit 的值 path = None # target_state = 1 时必填,点击「进入」启动小程序时使用的路径。对于小游戏,没有页面的概念,可以用于传递查询字符串(query),如 "?foo=bar" ...
PypiClean
/django-skylark-0.4.6.tar.gz/django-skylark-0.4.6/src/skylark/templates/chirp/media/dojox/form/manager/_FormMixin.js
if(!dojo._hasResource["dojox.form.manager._FormMixin"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["dojox.form.manager._FormMixin"] = true; dojo.provide("dojox.form.manager._FormMixin"); dojo.require("dojox.form.manager._Mixin"); (function(){ var fm = dojo...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/directory/administrative_units/item/check_member_objects/check_member_objects_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
/soupsieve-2.5.tar.gz/soupsieve-2.5/docs/src/markdown/api.md
# API Soup Sieve implements most of the selectors from the stable specification and even many from the latest draft specification. Selectors can be used to detect and filter elements. To learn more about which specific selectors are implemented, see [CSS Selectors](./selectors/index.md). Soup Sieve will detect the do...
PypiClean
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/plan/robotplanning.py
from .cspace import * from .cspaceutils import EmbeddedCSpace,AffineEmbeddedCSpace,EmbeddedMotionPlan from . import robotcspace from ..model import collide from ..robotsim import IKObjective import warnings def preferred_plan_options(robot,movingSubset=None,optimizing=False): """Returns some options that might be ...
PypiClean
/noyerTransformer-0.1.0.tar.gz/noyerTransformer-0.1.0/README.md
# NoyerTransformer Ce script permet de transformer un fichier tex (dont ses includes) en un fichier markdown utilisable par mkdocs. - Fait avec **Python 3.10** ## Utilisation ```bash python3 -m noyerTransformer <chemin fichier.tex> ``` Exemple de sortie : ```bash $ python3 -m noyerTransformer graphes.tex /!\ Impo...
PypiClean
/pai_easycv-0.11.4-py3-none-any.whl/easycv/configs/edge_models/yolox_tiny.py
# model settings # models tiny model = dict( stage='EDGE', type='YOLOX_EDGE', num_classes=80, model_type='tiny', test_conf=0.01, nms_thre=0.65, depth=0.33, width=0.375, max_model_params=-1, max_model_flops=-1, activation='hsilu') # train setting samples_per_gpu = 16 # batc...
PypiClean