id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/pywapor_test-3.1.7-py3-none-any.whl/pywapor/collect/product/COPERNICUS.py
import functools import os import numpy as np from itertools import product import xarray as xr import pywapor from pywapor.collect.protocol import cog from pywapor.general.processing_functions import open_ds, save_ds, remove_ds from pywapor.enhancers.apply_enhancers import apply_enhancer from pywapor.enhancers.dem imp...
PypiClean
/wallace-platform-0.12.4.tar.gz/wallace-platform-0.12.4/wallace/custom.py
from flask import ( Blueprint, request, Response, send_from_directory, render_template ) from psiturk.psiturk_config import PsiturkConfig from psiturk.user_utils import PsiTurkAuthorization from psiturk.db import init_db from psiturk.db import db_session as session_psiturk from wallace import db,...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/calendars/item/events/item/accept/accept_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
/tensorflow_fedora28-1.9.0rc01-cp27-cp27mu-manylinux1_x86_64.whl/tensorflow_fedora28-1.9.0rc0.data/purelib/tensorflow/python/estimator/inputs/queues/feeding_queue_runner.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import threading from tensorflow.python.framework import errors from tensorflow.python.platform import tf_logging as logging from tensorflow.python.training import queue_runner as qr class _FeedingQueueRunne...
PypiClean
/python_siren-6.0.8-py3-none-any.whl/blocks/mine/classCharbon.py
import numpy try: from classQuery import * from classRedescription import Redescription from classCandidates import TermCand # from classData import Data # from classConstraints import Constraints except ModuleNotFoundError: from .classQuery import * from .classRedescription import Redescrip...
PypiClean
/django_subserver-1.0.0a5.tar.gz/django_subserver-1.0.0a5/src/django_subserver/base.py
from abc import ABC from copy import copy from django.http import HttpRequest, HttpResponse class SubRequest: ''' HttpRequest wrapper, with the ability to keep track of "parent_path" and "sub_path". Exposes all of the public attributes of the underlying HttpRequest, so in most cases a SubRequest c...
PypiClean
/andesite.py-0.2.4-py3-none-any.whl/andesite/web_socket_client_events.py
from __future__ import annotations import dataclasses import logging from typing import Any, Dict, TypeVar import andesite __all__ = ["WebSocketConnectEvent", "WebSocketDisconnectEvent", "RawMsgReceiveEvent", "RawMsgSendEvent"] ROPT = TypeVar("ROPT", bound=andesite.ReceiveOperation) ET = Type...
PypiClean
/recohut-0.0.11.tar.gz/recohut-0.0.11/nbs/datasets/bases/datasets.bases.interactions.ipynb
``` # default_exp datasets.bases.interactions ``` # Interactions Dataset > Implementation of base modules for interactions dataset. ``` #export from typing import Any, Iterable, List, Optional, Tuple, Union, Callable import sys import os from os import path as osp import collections import random import numpy as np...
PypiClean
/Godot-0.1.1.zip/Godot-0.1.1/godot/component/polygon.py
#------------------------------------------------------------------------------ # Imports: #------------------------------------------------------------------------------ from numpy import array from enthought.traits.api import \ Instance, Float, Bool, List, Trait, Tuple, on_trait_change from enthought.traits.u...
PypiClean
/Hikka_TL_New-2.0.4-py3-none-any.whl/hikkatl/crypto/rsa.py
import os import struct from hashlib import sha1 try: import rsa import rsa.core except ImportError: rsa = None raise ImportError('Missing module "rsa", please install via pip.') from ..tl import TLObject # {fingerprint: (Crypto.PublicKey.RSA._RSAobj, old)} dictionary _server_keys = {} def get_byte...
PypiClean
/verity-sdk-0.6.1.tar.gz/verity-sdk-0.6.1/verity_sdk/utils/__init__.py
import json from typing import Dict from uuid import uuid4 from verity_sdk.utils.Context import Context from vdrtools import crypto USE_NEW_QUALIFIER_FORMAT = False EVERNYM_MSG_QUALIFIER = 'https://didcomm.evernym.com' if USE_NEW_QUALIFIER_FORMAT else 'did:sov:123456789abcdefghi1234;spec' """QUALIFIER for evernym...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/AlipayOpenPublicTopicBatchqueryRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * class AlipayOpenPublicTopicBatchqueryRequest(object): def __init__(self, biz_model=None): self._biz_model = biz_model self._version = "1.0" self._terminal_type = None s...
PypiClean
/dionysus-2.0.9.tar.gz/dionysus-2.0.9/bindings/python/pybind11/docs/advanced/misc.rst
Miscellaneous ############# .. _macro_notes: General notes regarding convenience macros ========================================== pybind11 provides a few convenience macros such as :func:`PYBIND11_DECLARE_HOLDER_TYPE` and ``PYBIND11_OVERRIDE_*``. Since these are "just" macros that are evaluated in the preprocessor ...
PypiClean
/PyCIM-15.15.0.tar.gz/PyCIM-15.15.0/CIM14/CDPSM/GIS_Connectivity/IEC61970/Core/PowerSystemResource.py
from CIM14.CDPSM.GIS_Connectivity.IEC61970.Core.IdentifiedObject import IdentifiedObject class PowerSystemResource(IdentifiedObject): """A power system resource can be an item of equipment such as a Switch, an EquipmentContainer containing many individual items of equipment such as a Substation, or an organisat...
PypiClean
/jupyter_react-0.7.0.tar.gz/jupyter_react-0.7.0/src/jupyter/lite/LiteServer.ts
import { JupyterLiteServer } from '@datalayer/jupyterlite-server'; import { PageConfig } from '@jupyterlab/coreutils'; import { ServiceManager } from '@jupyterlab/services'; const serverExtensions = [ // import('@jupyterlite/javascript-kernel-extension'), import('@datalayer/jupyterlite-ipykernel-extension'), impo...
PypiClean
/amazon_appflow_custom_connector_sdk-1.0.4.tar.gz/amazon_appflow_custom_connector_sdk-1.0.4/custom_connector_example/handlers/configuration.py
import custom_connector_sdk.lambda_handler.requests as requests import custom_connector_sdk.lambda_handler.responses as responses import custom_connector_sdk.connector.settings as settings import custom_connector_sdk.connector.configuration as config import custom_connector_sdk.connector.context as context import custo...
PypiClean
/reading_impact_model-1.0.3-py3-none-any.whl/reading_impact_model/models/impact_model_nl.py
model_nl = { "impact_terms": [ { "Impact_group": "adjective_term_book_related", "Impact_term": "echt" }, { "Impact_group": "adjective_term_book_related", "Impact_term": "mooi" }, { "Impact_group": "adjective_term_boo...
PypiClean
/casai-home-frontend-20220503.0.tar.gz/casai-home-frontend-20220503.0/hass_frontend/frontend_latest/f606ccca.js
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[8690],{49706:(e,t,r)=>{"use strict";r.d(t,{Rb:()=>s,Zy:()=>i,h2:()=>a,PS:()=>n,l:()=>o,ht:()=>l,f0:()=>c,tj:()=>d,uo:()=>u,lC:()=>h,Kk:()=>p,iY:()=>f,ot:()=>m,gD:()=>y});const s="hass:bookmark",i={alert:"hass:alert",alexa:"ha...
PypiClean
/foxtail-trainer-api-0.5.2.tar.gz/foxtail-trainer-api-0.5.2/foxtail_trainer_api/model/create_training_config_dto.py
import re # noqa: F401 import sys # noqa: F401 from foxtail_trainer_api.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...
PypiClean
/aurt-0.0.4.tar.gz/aurt-0.0.4/README.md
![Install and run api tests](https://github.com/INTO-CPS-Association/aurt/actions/workflows/run_tests.yml/badge.svg) # Aarhus University Robotics Toolbox (AURT) Overview # Installation To install the tool, type: ``` pip install aurt ``` or, if plotting and visualization features are needed, ``` pip install aurt[vis] ...
PypiClean
/pytorch_lightning_help-0.0.2.tar.gz/pytorch_lightning_help-0.0.2/pytorch_lightning_help/callbacks.py
import pytorch_lightning as pl # 专门用于在on_train_epoch_end的时候计算分数 class EvalCallback(pl.callbacks.Callback): def __init__(self): super(EvalCallback, self).__init__() self.best_score = 0 # def val_operation(self, trainer, train_model, outputs): # val_y_pre = predict(val_x, trainer, tra...
PypiClean
/mkdocs-dark_enhanced_dirtree-1.2.0.tar.gz/mkdocs-dark_enhanced_dirtree-1.2.0/dark_enhanced_dirtree/highlight/languages/1c.min.js
(()=>{var s=(()=>{"use strict";return s=>{ const x="[A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_][A-Za-z\u0410-\u042f\u0430-\u044f\u0451\u0401_0-9]+",n="\u0434\u0430\u043b\u0435\u0435 \u0432\u043e\u0437\u0432\u0440\u0430\u0442 \u0432\u044b\u0437\u0432\u0430\u0442\u044c\u0438\u0441\u043a\u043b\u044e\u0447\u0435\u043d\...
PypiClean
/mindspore_gpu-1.10.0-cp39-cp39-manylinux1_x86_64.whl/mindspore/ops/_op_impl/aicpu/sparse_dense_cwise_div.py
"""SparseDenseCwiseDiv op""" from mindspore.ops.op_info_register import op_info_register, AiCPURegOp, DataType sparse_dense_cwise_div_op_info = AiCPURegOp("SparseDenseCwiseDiv") \ .fusion_type("OPAQUE") \ .input(0, "x1_indices", "required") \ .input(1, "x1_values", "required") \ .input(2, "x1_sparse",...
PypiClean
/qwer_python-0.0.2-py3-none-any.whl/qwer_python/root_handler.py
import os import subprocess from typing import Optional from . import helper def get_data_path() -> str: """ Get the data path Returns: str: The data path """ return "/data/data/" def get_installed_battlecats_versions() -> Optional[list[str]]: """ Get a list of installed battle ...
PypiClean
/cloud23-1.0.2-py3-none-any.whl/main.py
import os import json import argparse from datetime import datetime from common.utils import helper from common.service import dat_service from common.constants import application_constants as constants from common.utils.initialize_logger import logger class Main: def __init__(self) -> None: pass ...
PypiClean
/eznet_keras-1.1.0-py3-none-any.whl/eznet_keras/models/conv_block.py
if __package__=="eznet_keras.models": from ..utils import * else: import os, sys parent_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) sys.path.append(parent_dir) from utils import * import warnings class Conv_Block(tf.keras.layers.Layer): def __init__(self, input_shape:list,...
PypiClean
/cosmospy_protobuf-0.3.0.tar.gz/cosmospy_protobuf-0.3.0/src/cosmospy_protobuf/ibc/applications/transfer/v1/genesis_pb2.py
from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database from google.protobuf.internal import builder as _builder _sym_db = _symbol_database.Default() from .....ibc.applications.transfer.v1 impor...
PypiClean
/django-croppic-0.0.2.zip/django-croppic-0.0.2/croppic/static/croppic/js/croppic.min.js
!function(o,t){Croppic=function(o,t){var e=this;e.id=o,e.obj=$("#"+o),e.outputDiv=e.obj,e.options={uploadUrl:"",uploadData:{},cropUrl:"",cropData:{},outputUrlId:"",imgEyecandy:!0,imgEyecandyOpacity:.2,zoomFactor:10,rotateFactor:5,doubleZoomControls:!0,rotateControls:!0,modal:!1,customUploadButtonId:"",loaderHtml:"",sca...
PypiClean
/rststable-0.16.7.tar.gz/rststable-0.16.7/rst/motioncontrol/MotionStatus_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database from google.p...
PypiClean
/livecellx-0.0.2.tar.gz/livecellx-0.0.2/livecell_tracker/trajectory/legacy_utils/index.py
import numpy as np class Indexes(object): """The Indexes class stores indexes for manipulating subsets on behalf of a parent set The idea here is that you have a parent set of "things", for instance some pixels or objects. Each of these might have, conceptually, an N-d array of sub-objects where each...
PypiClean
/django-categories-1.9.2.tar.gz/django-categories-1.9.2/doc_src/getting_started.rst
=============== Getting Started =============== You can use Django Categories in two ways: 1. As storage for one tree of categories, using the :py:class:`Category` model:: Top Category 1 Subcategory 1-1 Subcategory 1-2 subcategory 1-2-1 Top Category 2 Subcategory 2-1 2. As the basis for several ...
PypiClean
/pymixup-1.0.2.tar.gz/pymixup-1.0.2/docs/program-flow.rst
============ Program Flow ============ *pymixup* will read a Python project and create a corresponding obfuscated project by using the following steps. Initially load the reserved names list ====================================== It executes data/builddb.py to initially populate the **Identifier** (which contains all ...
PypiClean
/streamlink-lanroth-1.4.1.999.tar.gz/streamlink-lanroth-1.4.1.999/src/streamlink/plugins/vidio.py
import re from streamlink.plugin import Plugin from streamlink.plugin.api import useragents, validate from streamlink.stream import HLSStream from streamlink.utils import parse_json class Vidio(Plugin): _url_re = re.compile(r"https?://(?:www\.)?vidio\.com/(?:en/)?(?P<type>live|watch)/(?P<id>\d+)-(?P<name>[^/?#&]...
PypiClean
/OpenLP-3.0.2-py3-none-any.whl/openlp/plugins/songs/lib/songcompare.py
########################################################################## # OpenLP - Open Source Lyrics Projection # # ---------------------------------------------------------------------- # # Copyright (c) 2008-2023 OpenLP Developers # # -----------------...
PypiClean
/ropee-0.13.3.tar.gz/ropee-0.13.3/rope/refactor/multiproject.py
from rope.base import resources, libutils class MultiProjectRefactoring(object): def __init__(self, refactoring, projects, addpath=True): """Create a multiproject proxy for the main refactoring `projects` are other project. """ self.refactoring = refactoring self.project...
PypiClean
/extractable-0.0.29.tar.gz/extractable-0.0.29/src/weasyprint/pdf.py
import hashlib import io import mimetypes import os import re import string import zlib from urllib.parse import unquote, urlsplit import cairocffi as cairo from . import Attachment from .logger import LOGGER from .urls import URLFetchingError def pdf_escape(value): """Escape parentheses and backslashes in ``va...
PypiClean
/typepad-motion-1.1.3.tar.gz/typepad-motion-1.1.3/doc/wsgi.rst
============== Using mod_wsgi ============== While Django's development server is fine for trying Motion out, to run Motion on a production internet web site requires a more stable Web server environment. Because Django applications can run as `WSGI applications`_, you have several excellent options for production gra...
PypiClean
/gsmtasks_client-0.4.0-py3-none-any.whl/gsmtasks/components/schemas/invoice.py
from __future__ import annotations import typing import lapidary.runtime import pydantic import datetime import gsmtasks.components.schemas.invoice_account import gsmtasks.components.schemas.invoice_billing_method_enum import gsmtasks.components.schemas.invoice_item import gsmtasks.components.schemas.invoice_state_en...
PypiClean
/faraday-plugins-1.13.1.tar.gz/faraday-plugins-1.13.1/faraday_plugins/plugins/repo/acunetix360/plugin.py
from urllib.parse import urlsplit import ipaddress from lxml import etree from faraday_plugins.plugins.plugin import PluginJsonFormat from faraday_plugins.plugins.repo.acunetix.DTO import Acunetix, Scan from json import loads __author__ = "Gonzalo Martinez" __copyright__ = "Copyright (c) 2013, Infobyte LLC" __credit...
PypiClean
/smartnoise-sql-1.0.1.tar.gz/smartnoise-sql-1.0.1/snsql/xpath/ast.py
from typing import Union, Sequence, Iterable import operator import numpy as np from numpy.lib.arraysetops import isin from pandas.core.indexing import IndexSlice ops = { ">": operator.gt, "<": operator.lt, ">=": operator.ge, "<=": operator.le, "=": operator.eq, "!=": operator.ne, "==": ope...
PypiClean
/wmagent-2.2.4rc3.tar.gz/wmagent-2.2.4rc3/src/python/WMCore/WMBS/File.py
from builtins import next, str, bytes import logging import threading from WMCore.DataStructs.File import File as WMFile from WMCore.DataStructs.Run import Run from WMCore.WMBS.WMBSBase import WMBSBase class File(WMBSBase, WMFile): """ A simple object representing a file in WMBS """ def __init__(se...
PypiClean
/video/ffmpeg/overlay.py
from typing import List from augme.video.ffmpeg.base_augmenter import BaseFFMPEGAugmenter from augme.video.helpers import get_video_info, validate_path, get_audio_info from math import ceil class VideoAugmenterByOverlay(BaseFFMPEGAugmenter): def __init__( self, overlay_path: str, x_factor:...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/KoubeiMarketingCampaignRetailDmSetRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.KoubeiMarketingCampaignRetailDmSetModel import KoubeiMarketingCampaignRetailDmSetModel class KoubeiMarketingCampaignRetailDmSetRequest(object): def __init__(self, biz_model=...
PypiClean
/yace-0.5.6.tar.gz/yace-0.5.6/README.rst
.. image:: docs/source/_static/yace-mascot.png :alt: yace Welcome to yace =============== .. image:: https://img.shields.io/pypi/v/yace.svg :target: https://pypi.org/project/yace :alt: PyPI .. image:: https://github.com/safl/yace/actions/workflows/build_deploy.yml/badge.svg :target: https://github.com/sa...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/gardnerellavaginalis101.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def GardnerellaVaginalis101( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_graph_kwargs...
PypiClean
/counterparty-lib-9.55.4.tar.gz/counterparty-lib-9.55.4/counterpartylib/lib/kickstart/bc_data_stream.py
import struct import mmap from .exceptions import SerializationError class BCDataStream(object): def __init__(self): self.input = None self.read_cursor = 0 def clear(self): self.input = None self.read_cursor = 0 def write(self, bytes): # Initialize with string of bytes if self.input is Non...
PypiClean
/zopyx.existdb-0.2.11.1.zip/zopyx.existdb-0.2.11.1/zopyx/existdb/browser/resources/ace-builds/src-min/mode-vala.js
define("ace/mode/vala",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/vala_highlight_rules","ace/mode/folding/cstyle","ace/mode/behaviour/cstyle","ace/mode/matching_brace_outdent"],function(e,t,n){var r=e("../lib/oop"),i=e("./text").Mode,s=e("../tokenizer").Tokenizer,o=e("./vala_h...
PypiClean
/fake_bpy_module_2.80-20230117-py3-none-any.whl/bl_ui/properties_scene.py
import sys import typing import bpy_types import rna_prop_ui GenericType = typing.TypeVar("GenericType") class SCENE_UL_keying_set_paths(bpy_types.UIList, bpy_types._GenericUI): bl_rna = None ''' ''' id_data = None ''' ''' def append(self, draw_func): ''' ''' pass ...
PypiClean
/verizon-api-sdk-1.0.0.tar.gz/verizon-api-sdk-1.0.0/verizon/models/cluster_provider_params.py
from verizon.api_helper import APIHelper class ClusterProviderParams(object): """Implementation of the 'ClusterProviderParams' model. TODO: type model description here. Attributes: created_at (string): TODO: type description here. modified_at (string): TODO: type description here. ...
PypiClean
/sifflet_sdk-0.3.2-py3-none-any.whl/client/model/looker_params.py
import re # noqa: F401 import sys # noqa: F401 from 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, validat...
PypiClean
/uonet-request-signer-hebe-0.1.1.tar.gz/uonet-request-signer-hebe-0.1.1/README.md
# UONET+ (hebe) request signer for Python [![pypi](https://img.shields.io/pypi/v/uonet-request-signer-hebe.svg?style=flat-square)](https://pypi.org/project/uonet-request-signer-hebe/) ## Installation ```console $ pip install -U uonet-request-signer-hebe ``` ## Usage Generate an RSA2048 key pair (private key and ce...
PypiClean
/simgrid-3.34.tar.gz/simgrid-3.34/examples/README.rst
.. S4U (SimGrid for you) is the modern interface of SimGrid, which new project should use. .. .. This file follows the ReStructured syntax to be included in the .. documentation, but it should remain readable directly. .. _s4u_examples: S4U Examples ############ SimGrid comes with an extensive set of examples, docum...
PypiClean
/PortalAuth-1.0.2.zip/PortalAuth-1.0.2/PortalAuth.py
import requests import threading import time,os,re from time import ctime from requests_toolbelt.adapters import source responses = [] sources_and_urls={"192.168.3.33":"http://www.baidu.com","192.168.3.34":"http://www.qq.com"} class PortalAuth(): def __init__(self,**kargs): #kargs 必须时IP与域名的字典形式kargs={"19...
PypiClean
/netaddr2-0.7.19.tar.gz/netaddr2-0.7.19/netaddr/strategy/__init__.py
import re as _re from netaddr.compat import _range, _is_str def bytes_to_bits(): """ :return: A 256 element list containing 8-bit binary digit strings. The list index value is equivalent to its bit string value. """ lookup = [] bits_per_byte = _range(7, -1, -1) for num in range(256): ...
PypiClean
/gqylpy_cache-1.3.4-py3-none-any.whl/gqylpy_cache/__init__.py
def cache(fn): """Decorator, cache the return value of a callable object. Compatible usage with editor syntax hint.""" class _xe6_xad_x8c_xe7_x90_xaa_xe6_x80_xa1_xe7_x8e_xb2_xe8_x90_x8d_xe4_xba_x91: """ QYYYQLLYYYYYYYQLYYQYYQQQYQQYQQQQQQQQQQQQQQQQQQQQQQYYYQQQQQQYL YYYYQYLLQYLLYYQYYYYYYYQQYQYQYQQQ...
PypiClean
/cryptocode.py-3.1.tar.gz/cryptocode.py-3.1/Cryptodome/Signature/pss.py
from Cryptodome.Util.py3compat import bchr, bord, iter_range import Cryptodome.Util.number from Cryptodome.Util.number import (ceil_div, long_to_bytes, bytes_to_long ) from Cryptodome.Util.strxor import strxor from Cryptodo...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/KoubeiCateringItemCreateRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.KoubeiCateringItemCreateModel import KoubeiCateringItemCreateModel class KoubeiCateringItemCreateRequest(object): def __init__(self, biz_model=None): self._biz_model...
PypiClean
/python-tweetphoto-0.2.tar.gz/python-tweetphoto-0.2/README.txt
=Python TweetPhoto= _A python wrapper around the TweetPhoto API_ Author: `Marcel Caraciolo <caraciol@gmail.com>` ==Introduction== This library provides a pure python interface for the TweetPhoto API. TweetPhoto (http://tweetphoto.com) provides a service that allows people to upload photos to the web. The TweetPhot...
PypiClean
/dequests-2.28.1.tar.gz/dequests-2.28.1/README.md
# Requests **Requests** is a simple, yet elegant, HTTP library. ```python >>> import requests >>> r = requests.get('https://httpbin.org/basic-auth/user/pass', auth=('user', 'pass')) >>> r.status_code 200 >>> r.headers['content-type'] 'application/json; charset=utf8' >>> r.encoding 'utf-8' >>> r.text '{"authenticated"...
PypiClean
/fineart-superset-0.18.5.tar.gz/fineart-superset-0.18.5/superset/static/assets/javascripts/explore/stores/store.js
import controls from './controls'; import visTypes, { sectionsToRender } from './visTypes'; export function getFormDataFromControls(controlsState) { const formData = {}; Object.keys(controlsState).forEach((controlName) => { formData[controlName] = controlsState[controlName].value; }); return formData; } e...
PypiClean
/kaiterra_async_client-1.1.0-py3-none-any.whl/kaiterra_async_client/client.py
import json from typing import List from enum import Enum from kaiterra_async_client import dateutil class AQIStandard(Enum): """ Denotes a scale according to which air quality index should be calculated from pollutant readings. """ USA = "us" China = "cn" India = "in" @staticmethod ...
PypiClean
/asyncio_zabbix_sender-0.1.2-py3-none-any.whl/asyncio_zabbix_sender/_zabbix_sender.py
import asyncio import logging import typing import asyncio_zabbix_sender._measurements as _measurements import asyncio_zabbix_sender._protocol as _protocol import asyncio_zabbix_sender._response as _response class ZabbixSender: def __init__( self, zabbix_host: str, zabbix_port: typing.Uni...
PypiClean
/cdktf-cdktf-provider-google_beta-9.0.1.tar.gz/cdktf-cdktf-provider-google_beta-9.0.1/src/cdktf_cdktf_provider_google_beta/google_logging_organization_exclusion/__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 GoogleLoggingOrganizationExclusion( _cdktf_9a9027e...
PypiClean
/libretiny-esphome-dashboard-20230214.0.tar.gz/libretiny-esphome-dashboard-20230214.0/esphome_dashboard/static/js/esphome/c.f4d2c129.js
import{m as e}from"./c.ff44c2ea.js";import"./index-f2af38a5.js";import"./c.5cd5d307.js";import"./c.419250e6.js";var n,t,r=Object.defineProperty,o=Object.getOwnPropertyDescriptor,l=Object.getOwnPropertyNames,i=Object.prototype.hasOwnProperty,a=(e,n,t,a)=>{if(n&&"object"==typeof n||"function"==typeof n)for(let c of l(n))...
PypiClean
/django-pwa-webpush-1.1.3.tar.gz/django-pwa-webpush-1.1.3/pwa_webpush/migrations/0001_initial.py
from django.conf import settings from django.db import migrations, models import django.db.models.deletion class Migration(migrations.Migration): initial = True dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ] operations = [ migrations.CreateModel( ...
PypiClean
/celery-meiqia-3.1.26-3.tar.gz/celery-meiqia-3.1.26-3/docs/userguide/periodic-tasks.rst
.. _guide-beat: ================ Periodic Tasks ================ .. contents:: :local: Introduction ============ :program:`celery beat` is a scheduler. It kicks off tasks at regular intervals, which are then executed by the worker nodes available in the cluster. By default the entries are taken from the :set...
PypiClean
/gears-babel-0.1.tar.gz/gears-babel-0.1/gears_babel/node_modules/babel/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/node_modules/sigmund/README.md
# sigmund Quick and dirty signatures for Objects. This is like a much faster `deepEquals` comparison, which returns a string key suitable for caches and the like. ## Usage ```javascript function doSomething (someObj) { var key = sigmund(someObj, maxDepth) // max depth defaults to 10 var cached = cache.get(key) ...
PypiClean
/python_openstackclient-6.2.0-py3-none-any.whl/openstackclient/common/availability_zone.py
import copy import logging from novaclient import exceptions as nova_exceptions from osc_lib.command import command from osc_lib import utils from openstackclient.i18n import _ LOG = logging.getLogger(__name__) def _xform_common_availability_zone(az, zone_info): if hasattr(az, 'zoneState'): zone_info[...
PypiClean
/minecode-2.0.0.tar.gz/minecode-2.0.0/src/discovery/mappers/pypi.py
import json from packagedcode import models as scan_models from discovery import map_router from discovery.mappers import Mapper from discovery.utils import parse_date @map_router.route('https://pypi.python.org/pypi/[^/]+/[^/]+/json') class PypiPackageMapper(Mapper): def get_packages(self, uri, resource_uri)...
PypiClean
/pade_python-202303.0.13.tar.gz/pade_python-202303.0.13/pade_python/admin_service/environment_logging.py
from opencensus.ext.azure.log_exporter import AzureLogHandler import sys # don't remove required for error handling import os import logging import logging.config # Import from sibling directory ..\tech_environment_service OS_NAME = os.name sys.path.append("..") if OS_NAME.lower() == "nt": print("windows") ...
PypiClean
/MedPy-0.4.0.tar.gz/MedPy-0.4.0/medpy/utilities/argparseu.py
# build-in modules import argparse import itertools import os # third-party modules # own modules # code def existingDirectory(string): """ A custom type for the argparse commandline parser. Check whether the supplied string points to a valid directory. Examples -------- >>> parser...
PypiClean
/bsfc-1.0.1.tar.gz/bsfc-1.0.1/helpers/save_bsfc4mitim.py
import subprocess import MDSplus import numpy as np import cPickle as pkl from bsfc_moment_fitter import * from helpers import bsfc_clean_moments from helpers import bsfc_slider from helpers import bsfc_cmod_shots ''' This script creates an input file for MITIM from Hirex-Sr analysis using BSFC results. This requir...
PypiClean
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/three/src/objects/Points.js
import { Sphere } from '../math/Sphere.js'; import { Ray } from '../math/Ray.js'; import { Matrix4 } from '../math/Matrix4.js'; import { Object3D } from '../core/Object3D.js'; import { Vector3 } from '../math/Vector3.js'; import { PointsMaterial } from '../materials/PointsMaterial.js'; import { BufferGeometry } from '....
PypiClean
/pensando_cloud-1.16.3.tar.gz/pensando_cloud-1.16.3/pensando_cloud/psm/model/network_network_interface_spec.py
import re # noqa: F401 import sys # noqa: F401 import nulltype # noqa: F401 from pensando_cloud.psm.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime...
PypiClean
/det-sys-calc-eziped-0.0.3.tar.gz/det-sys-calc-eziped-0.0.3/README.md
# determinant-calc ## calculate systems of equations and determinants to your heart's content with tkinter and eddie ## installation * prerequisites: python 3.6 or above * go to terminal or command prompt * pip install det-sys-calc-eziped * python3 -m det-sys-calculator OR python -m det-sys-calculator ## https://pypi...
PypiClean
/genie.libs.sdk-23.8.1-py3-none-any.whl/genie/libs/sdk/apis/junos/bgp/get.py
# Python import re import logging import datetime # unicon from unicon.core.errors import SubCommandFailure # Genie from genie.utils import Dq from genie.utils.timeout import Timeout from genie.libs.sdk.apis.utils import get_config_dict from genie.metaparser.util.exceptions import SchemaEmptyParserError log = loggin...
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_th.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u0e01\u0e48\u0e2d\u0e19\u0e40\u0e17\u0e35\u0e48\u0e22\u0e07", ...
PypiClean
/gamma_desk-0.7.0-py3-none-any.whl/gdesk/live/manage.py
import os, sys, traceback, time from pathlib import Path import functools import logging logger = logging.getLogger(__name__) def show_syntax_error(writer_call): """Display the syntax error that just occurred.""" type, value, tb = sys.exc_info() sys.last_type = type sys.last_value = value sys.la...
PypiClean
/django-niceadmin_ds-0.0.2.tar.gz/django-niceadmin_ds-0.0.2/niceadmin/static/niceadmin/vendor/chart.js/docs/assets/js/208.296ee160.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[208],{538:function(t,e,a){"use strict";a.r(e);var o=a(6),s=Object(o.a)({},(function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("ContentSlotsDistributor",{attrs:{"slot-key":t.$parent.slotKey}},[a("h1",{attrs:{id:"information"}},[a("a",{staticClass:"heade...
PypiClean
/django-oscar-easyrec-0.0.9.tar.gz/django-oscar-easyrec-0.0.9/easyrec/receivers.py
from itertools import ifilter from django.conf import settings from oscar.core.loading import get_class product_viewed = get_class('catalogue.signals', 'product_viewed') post_checkout = get_class('checkout.signals', 'post_checkout') review_added = get_class('catalogue.reviews.signals', 'review_added') def has_prod...
PypiClean
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v3_8_0/global_collection_schedules_broker.py
from ..broker import Broker class GlobalCollectionSchedulesBroker(Broker): controller = "global_collection_schedules" def spm_schedules(self, **kwargs): """Lists the global Switch Port Management polling schedule entries. **Inputs** **Outputs** """ retu...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/datamigration/v20211030preview/outputs.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from ._enums import * __all__ = [ 'DatabaseInfoResponse', 'MiSqlConnectionInfoResponse', 'MongoDbConnectionInfoResponse', 'MySqlConnectionInfo...
PypiClean
/sematic-0.0.2.alpha.1654672757-py3-none-any.whl/socketio/zmq_manager.py
import pickle import re try: import eventlet.green.zmq as zmq except ImportError: zmq = None from .pubsub_manager import PubSubManager class ZmqManager(PubSubManager): # pragma: no cover """zmq based client manager. NOTE: this zmq implementation should be considered experimental at this time. ...
PypiClean
/google_cl-0.9.15.tar.gz/google_cl-0.9.15/src/googlecl/authentication.py
"""Handling authentication to Google for all services.""" from __future__ import with_statement import logging import os import pickle import stat import googlecl TOKENS_FILENAME_FORMAT = 'access_tok_%s' LOGGER_NAME = __name__ LOG = logging.getLogger(LOGGER_NAME) #XXX: Public-facing functions are confusing, clean u...
PypiClean
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/fipy/terms/term.py
from __future__ import division from __future__ import unicode_literals from builtins import object __docformat__ = 'restructuredtext' import os from fipy import input from fipy.tools import numerix from fipy.terms import AbstractBaseClassError from fipy.terms import SolutionVariableRequiredError __all__ = ["Term"] ...
PypiClean
/where_was_i-0.2.3.tar.gz/where_was_i-0.2.3/README.md
Usage: where-was-i [-h] [args] [file1..fileN] Parse Google's semantic location data (in JSON format) into human readable form. This reads in all the JSON files specified, aggregates location information, and prints out each date and locations visited on that date, optionally entries by regular expression. Older vers...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/onenote/onenote_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
/cellulose_sdk-0.0.3-py3-none-any.whl/cellulose/artifact/cellulose_artifact_manager.py
import logging import platform from dataclasses import asdict from datetime import datetime, timezone from pathlib import Path from zipfile import ZipFile # Third party imports import click import tomlkit from pydantic.dataclasses import dataclass # Cellulose imports from cellulose.artifact.cellulose_artifact import ...
PypiClean
/kafka_connect_manager-0.5.1-py3-none-any.whl/kafka_connect_manager/main.py
import json import asyncio from datetime import datetime from typing import Any, Callable, List from timeit import default_timer as timer from collections import defaultdict, namedtuple import typer import httpx from rich.text import Text from rich.live import Live from rich.panel import Panel from rich.table import ...
PypiClean
/thoth_pipenv-2020.1.29-py3-none-any.whl/pipenv/vendor/markupsafe/_constants.py
HTML_ENTITIES = { "AElig": 198, "Aacute": 193, "Acirc": 194, "Agrave": 192, "Alpha": 913, "Aring": 197, "Atilde": 195, "Auml": 196, "Beta": 914, "Ccedil": 199, "Chi": 935, "Dagger": 8225, "Delta": 916, "ETH": 208, "Eacute": 201, "Ecirc": 202, "Egrave":...
PypiClean
/spatialdata_io-0.0.7.tar.gz/spatialdata_io-0.0.7/docs/_templates/autosummary/class.rst
{{ fullname | escape | underline}} .. currentmodule:: {{ module }} .. add toctree option to make autodoc generate the pages .. autoclass:: {{ objname }} {% block attributes %} {% if attributes %} Attributes table ~~~~~~~~~~~~~~~~~~ .. autosummary:: {% for item in attributes %} ~{{ fullname }}.{{ item }} {%-...
PypiClean
/ploigos_step_runner-2.0.0rc1-py3-none-any.whl/ploigos_step_runner/step_implementers/deploy/argocd_deploy.py
import os import re from ploigos_step_runner.results import StepResult from ploigos_step_runner.exceptions import StepRunnerException from ploigos_step_runner.step_implementers.shared import (ArgoCDGeneric, ContainerDeployMixin) DEFAULT_CONFIG = { 'argocd-...
PypiClean
/wandb-ng-0.0.44.tar.gz/wandb-ng-0.0.44/wandb/vendor/graphql-core-1.1/graphql/utils/value_from_ast.py
from ..language import ast from ..type import (GraphQLEnumType, GraphQLInputObjectType, GraphQLList, GraphQLNonNull, GraphQLScalarType) def value_from_ast(value_ast, type, variables=None): """Given a type and a value AST node known to match this type, build a runtime value.""" if isins...
PypiClean
/pyprobml-0.0.2.tar.gz/pyprobml-0.0.2/vae/experiment.py
import torch import warnings from models.pixel_cnn import PixelCNN from pytorch_lightning import LightningModule from torch.nn import functional as F class VAEModule(LightningModule): """ Standard lightning training code. """ def __init__( self, model, lr: float = ...
PypiClean
/gc-boto-2.37.1.tar.gz/gc-boto-2.37.1/boto/fps/response.py
from decimal import Decimal from boto.compat import filter, map def ResponseFactory(action): class FPSResponse(Response): _action = action _Result = globals().get(action + 'Result', ResponseElement) # due to nodes receiving their closing tags def endElement(self, name, value, conn...
PypiClean
/osdatahub-1.2.7.tar.gz/osdatahub-1.2.7/Examples/CRS pitfalls.ipynb
# CRS pitfalls When working with `osdatahub` you will notice that some of the methods on `Extent` have an argument called CRS. For example when creating a bounding box you need to specify a CRS like this `extent = Extent.from_bbox((-1, -1, 1, 1), "EPSG:4326")`. The second argument is called CRS, which stand for "coo...
PypiClean
/py4design_cea-0.30-py3-none-any.whl/py4design/py3dmodel/modify.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function # ================================================================================================== # # Copyright (c) 2016, Chen Kian Wee (chenkianwee@gmail.com) # # This file is part of py4design # # ...
PypiClean
/voeventdb.server-1.3.4.tar.gz/voeventdb.server-1.3.4/versioneer.py
from __future__ import print_function try: import configparser except ImportError: import ConfigParser as configparser import errno import json import os import re import subprocess import sys class VersioneerConfig: pass def get_root(): # we require that all commands are run from the project root, ...
PypiClean
/haruhi_dl-2021.8.1.tar.gz/haruhi_dl-2021.8.1/haruhi_dl/extractor/tagesschau.py
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( determine_ext, js_to_json, parse_iso8601, parse_filesize, ) class TagesschauPlayerIE(InfoExtractor): IE_NAME = 'tagesschau:player' _VALID_URL = r'https?://(?:www\.)?tagesschau\.de/multim...
PypiClean
/github_analyzer-0.1.4-py3-none-any.whl/Github_Analyzer_StefanoMarano80017/Github_Analyzer_StefanoMarano80017/Datas/QueryGit.py
from github import BadCredentialsException from github import Github from github import RateLimitExceededException from github import Repository from ..Datas import TokenUtil from ..Datas import Query_Txt # Classe che effettua la query su Github class QueryRepo: def __init__(self, token): self.repos = Non...
PypiClean