id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/collective.loremipsum-0.10.zip/collective.loremipsum-0.10/collective/loremipsum/fakeimagegetter.py
import urllib import string from PIL import Image try: from cStringIO import StringIO except: from StringIO import StringIO from zope import interface class IFakeImageGetter(interface.Interface): """ utility for getting fake images """ class FakeImageGetter(object): interface.implements(IFakeIm...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/resources/v20190701/deployment_at_management_group_scope.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs from ._enums import * from ._inputs import * __all__ = ['DeploymentAtManagementGroupScope'] class DeploymentAtManagementGroupScope(pulumi.CustomRes...
PypiClean
/Firefly_III_API_Client-2.0.5.0-py3-none-any.whl/firefly_iii_client/paths/v1_piggy_banks/get.py
from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from firefly_iii_client import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re...
PypiClean
/Flask-MongoKit-0.6.tar.gz/Flask-MongoKit-0.6/flask_mongokit.py
from __future__ import absolute_import import bson from mongokit import Connection, Database, Collection, Document from werkzeug.routing import BaseConverter from flask import abort, _request_ctx_stack try: # pragma: no cover from flask import _app_ctx_stack ctx_stack = _app_ctx_stack except ImportError: # p...
PypiClean
/alibabacloud_yundun_dbaudit20181029-1.0.0-py3-none-any.whl/alibabacloud_yundun_dbaudit20181029/models.py
from Tea.model import TeaModel from typing import Dict, List class ClearInstanceStorageRequest(TeaModel): def __init__( self, instance_id: str = None, region_id: str = None, storage_space: str = None, storage_category: str = None, ): self.instance_id = instance_...
PypiClean
/python-ravencoinlib-0.2.2.tar.gz/python-ravencoinlib-0.2.2/ravencoin/core/serialize.py
from __future__ import absolute_import, division, print_function, unicode_literals import hashlib import x16r_hash import x16rv2_hash import struct # Py3 compatibility import sys if sys.version > '3': _bchr = lambda x: bytes([x]) _bord = lambda x: x[0] from io import BytesIO as _BytesIO else: _bchr =...
PypiClean
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/compute/alpha/get_region_commitment.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . import outputs __all__ = [ 'GetRegionCommitmentResult', 'AwaitableGetRegionCommitmentResult', 'get_region_commitment', 'get_region_comm...
PypiClean
/fal_serverless-0.6.41-py3-none-any.whl/fal_serverless/toolkit/file/providers/fal.py
from __future__ import annotations import os from base64 import b64encode from dataclasses import dataclass from fal_serverless.toolkit.file.types import FileData, FileRepository from fal_serverless.toolkit.mainify import mainify FAL_STORAGE_ENDPOINT = os.environ.get( "FAL_STORAGE_ENDPOINT", "https://rest.alpha....
PypiClean
/pyTermTk-0.9.0a43-py3-none-any.whl/TermTk/TTkCore/helper.py
# MIT License # # Copyright (c) 2021 Eugenio Parodi <ceccopierangiolieugenio AT googlemail DOT com> # # 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 l...
PypiClean
/beem-witness-library-0.24.32.tar.gz/beem-witness-library-0.24.32/beemapi/noderpc.py
import re import sys from .graphenerpc import GrapheneRPC from . import exceptions import logging log = logging.getLogger(__name__) class NodeRPC(GrapheneRPC): """ This class allows to call API methods exposed by the witness node via websockets / rpc-json. :param str urls: Either a single Websock...
PypiClean
/numpy_mips64-1.17.4.tar.gz/numpy_mips64-1.17.4/numpy/core/multiarray.py
import functools import sys import warnings import sys from . import overrides from . import _multiarray_umath import numpy as np from numpy.core._multiarray_umath import * from numpy.core._multiarray_umath import ( _fastCopyAndTranspose, _flagdict, _insert, _reconstruct, _vec_string, _ARRAY_API, _monotonicity...
PypiClean
/pygame_builder-0.2.1.tar.gz/pygame_builder-0.2.1/src/pygame_builder/main.py
import os import sys, pygame from PIL import Image as PILImage import requests from .element import Element from .image import Image from .sound import Sound from .music import Music imgUrl = "https://raw.githubusercontent.com/dehadeaaryan/pygame-builder/main/pygame-builder.png" img = PILImage.open(requests.get(imgU...
PypiClean
/lark-oapi-1.0.19.tar.gz/lark-oapi-1.0.19/lark_oapi/api/drive/v1/resource/file_comment_reply.py
from typing import * from lark_oapi.core import JSON from lark_oapi.core.const import UTF_8 from lark_oapi.core.http import Transport from lark_oapi.core.model import Config, RequestOption, RawResponse from lark_oapi.core.token import verify from ..model.delete_file_comment_reply_request import DeleteFileCommentReply...
PypiClean
/dg-commons-0.0.33.tar.gz/dg-commons-0.0.33/src/dg_commons/sim/models/pedestrian.py
from dataclasses import dataclass, replace from functools import cached_property from math import cos, sin from typing import Type, Sequence, Mapping import numpy as np from frozendict import frozendict from geometry import SE2value, T2value, SE2_from_xytheta, SO2_from_angle, SO2value from scipy.integrate import solve...
PypiClean
/openimis-be-claim_batch-1.5.1.tar.gz/openimis-be-claim_batch-1.5.1/claim_batch/reports/pbp.py
template = """\ { "docElements": [ { "elementType": "text", "id": 3, "containerId": "0_header", "x": 1, "y": 1, "width": 574, "height": 40, "content": "All Claims Remuneration", "eval": false, "styleId": "", "bold": true, "italic": false, ...
PypiClean
/azure-mgmt-core-1.4.0.zip/azure-mgmt-core-1.4.0/azure/mgmt/core/policies/_base.py
import json import logging import re import time import uuid from azure.core.pipeline import PipelineContext, PipelineRequest from azure.core.pipeline.policies import HTTPPolicy from azure.core.pipeline.transport import HttpRequest _LOGGER = logging.getLogger(__name__) class ARMAutoResourceProviderRegistrationPoli...
PypiClean
/pyaromatics-0.0.2.tar.gz/pyaromatics-0.0.2/keras_tools/esoteric_models/lsnn_tf2.py
import tensorflow as tf from pyaromatics.keras_tools.esoteric_layers import SurrogatedStep from pyaromatics.keras_tools.esoteric_layers.rate_voltage_reg import RateVoltageRegularization @tf.custom_gradient def SpikeFunction(v_scaled, dampening_factor, sharpness): z_ = tf.cast(tf.greater(v_scaled, 0.), dtype=tf.f...
PypiClean
/apache_superset_test-2.1.1.1-py3-none-any.whl/superset/static/assets/11c05249b973b3c272d9.chunk.js
"use strict";(globalThis.webpackChunksuperset=globalThis.webpackChunksuperset||[]).push([[6579],{16579:(t,e,n)=>{n.r(e),n.d(e,{default:()=>x}),n(67294);var s=n(43323),a=n(51995),r=n(15078),l=n.n(r),i=n(45697),c=n.n(i),o=n(28062),h=n(67190),p=n(45636),u=n(45511);function d(t,e,n){t.each((function(){const t=l().select(th...
PypiClean
/pindex-0.5.1.tar.gz/pindex-0.5.1/README.txt
Introduction ============= Abstract ---------- An awesome tool for indexing matrices. propose a new concept “single index” (as in matlab) to index the elements from matrices. exchange python-style index(begin with 0) with matlab-style index(begin with 1) Keywords ---------- Index, Matrix, Single Index, Style of Index...
PypiClean
/movici_simulation_core-2.10.5-py3-none-any.whl/movici_simulation_core/models/traffic_demand_calculation/common.py
from __future__ import annotations import logging import typing as t from collections import defaultdict import numpy as np from movici_geo_query.geo_query import GeoQuery, QueryResult from movici_geo_query.geometry import Geometry from movici_simulation_core.core.entity_group import EntityGroup from movici_simulati...
PypiClean
/maticinfos-0.2.tar.gz/maticinfos-0.2/README.md
# BaseMatics Tools This is a Tools for basematic applications... [Python Packaging User Guide][packaging guide]'s [Tutorial on Packaging and Distributing Projects][distribution tutorial]. This project does not aim to cover best practices for Python project development as a whole. For example, it does not provide guid...
PypiClean
/beowulf-python-0.0.4.tar.gz/beowulf-python-0.0.4/beowulf/commit.py
import logging import random from beowulfbase import operations from beowulfbase.account import PrivateKey, PublicKey from beowulfbase.exceptions import AccountExistsException, MissingKeyError, AccountDoesNotExistsException, \ InvalidParamCreateAccount from beowulfbase.operations import asset_tokens from beowulfbas...
PypiClean
/nonebot_plugin_anime_trace-0.1.3-py3-none-any.whl/nonebot_plugin_anime_trace/__init__.py
import json from io import BytesIO import os from httpx import AsyncClient from PIL import Image from nonebot import logger, on_keyword, get_driver from nonebot.adapters.onebot.v11 import ( Bot, Event, Message, MessageSegment, PrivateMessageEvent, GroupMessageEvent, MessageEvent, ) from no...
PypiClean
/abqpy-2023.5.6-py3-none-any.whl/abaqus/Load/Moment.py
from __future__ import annotations from typing import Union from typing_extensions import Literal from abqpy.decorators import abaqus_class_doc, abaqus_method_doc from ..Region.Region import Region from ..UtilityAndView.abaqusConstants import ( OFF, UNIFORM, UNSET, Boolean, SymbolicConstant, ) f...
PypiClean
/python_telegram_bot-20.4-py3-none-any.whl/telegram/_files/voice.py
"""This module contains an object that represents a Telegram Voice.""" from typing import Optional from telegram._files._basemedium import _BaseMedium from telegram._utils.types import JSONDict class Voice(_BaseMedium): """This object represents a voice note. Objects of this class are comparable in terms of...
PypiClean
/abstra-1.9.10-py3-none-any.whl/abstra_statics/dist/assets/HookEditor.5547b057.js
import{d as w,b as o,c as a,e as n,t as C,r as R,bh as k,eA as y,er as t,bw as S,ez as P,E as V,a as U,u as E,bu as d,aS as b,eF as B,eL as q,eu as H,eB as A,eC as L,ey as O,eq as f}from"./registerWidgets.a7f9f083.js";import{R as G,L as $,T as J,S as M,_ as N,a as D}from"./UnsavedChangesHandler.vue_vue_type_script_setu...
PypiClean
/django-geoexplorer-worldmap-4.0.72.tar.gz/django-geoexplorer-worldmap-4.0.72/geoexplorer-worldmap/static/worldmap_client/script/app/GeoExplorer/LayerFeatureAgent.js
OpenLayers.LayerFeatureAgent = OpenLayers.Class({ /** * Property: cache * {Object} A cache of features under the mouse. */ cache: null, /** * Constructor: OpenLayers.FeatureAgent * Create a new feature agent. * * Parameters: * map - {<OpenLayers.Map>} The ma...
PypiClean
/python-docx-lists-1.0.0.tar.gz/python-docx-lists-1.0.0/docx/text/run.py
from __future__ import absolute_import, print_function, unicode_literals from ..enum.style import WD_STYLE_TYPE from ..enum.text import WD_BREAK from .font import Font from ..shape import InlineShape from ..shared import Parented class Run(Parented): """ Proxy object wrapping ``<w:r>`` element. Several of th...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_3/models/inline_response400.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_3 import models class InlineResponse400(object): """ Attributes: swagger_types (dict): The key is attribute name and the value ...
PypiClean
/apache-airflow-zack-1.10.15.9.tar.gz/apache-airflow-zack-1.10.15.9/airflow/operators/s3_to_hive_operator.py
from builtins import next from builtins import zip from tempfile import NamedTemporaryFile from airflow.utils.file import TemporaryDirectory import gzip import bz2 import tempfile import os from airflow.exceptions import AirflowException from airflow.hooks.S3_hook import S3Hook from airflow.hooks.hive_hooks import Hi...
PypiClean
/openapi_python_embyapi-4.8.0.36.tar.gz/openapi_python_embyapi-4.8.0.36/openapi_python_embyapi/api/item_lookup_service/post_items_remotesearch_person.py
from http import HTTPStatus from typing import Any, Dict, List, Optional, Union, cast import httpx from ... import errors from ...client import AuthenticatedClient, Client from ...models.providers_remote_search_query_providers_person_lookup_info import ( ProvidersRemoteSearchQueryProvidersPersonLookupInfo, ) from...
PypiClean
/openapi_python_embyapi-4.8.0.36.tar.gz/openapi_python_embyapi-4.8.0.36/openapi_python_embyapi/api/live_tv_service/post_livetv_programs.py
from http import HTTPStatus from typing import Any, Dict, Optional, Union import httpx from ... import errors from ...client import AuthenticatedClient, Client from ...models.api_base_items_request import ApiBaseItemsRequest from ...types import UNSET, Response, Unset def _get_kwargs( *, client: Authenticat...
PypiClean
/octo-0.3.0.tar.gz/octo-0.3.0/docs/_build/html/_static/sidebar.js
$(function() { // global elements used by the functions. // the 'sidebarbutton' element is defined as global after its // creation, in the add_sidebar_button function var bodywrapper = $('.bodywrapper'); var sidebar = $('.sphinxsidebar'); var sidebarwrapper = $('.sphinxsidebarwrapper')...
PypiClean
/fastapi_crud-0.0.3-py3-none-any.whl/fastapi_crud/router.py
from fastapi import APIRouter from sqlalchemy import select, inspect as sqli from sqlalchemy.orm import selectinload from typing import Callable, Type import inspect import fastapi_crud.types as t import fastapi_crud.schema as s import fastapi_crud.config as c from fastapi_crud.session import Session def _modify_pat...
PypiClean
/indic_punct-2.1.4-py3-none-any.whl/punctuate/punctuate_text.py
import torch from transformers import AlbertForTokenClassification, AlbertTokenizer import numpy as np import json import torch.nn as nn from indicnlp.tokenize import indic_tokenize import os import wget import sys from nemo.collections.nlp.models import PunctuationCapitalizationModel import sysconfig import string imp...
PypiClean
/regressors-0.0.3.tar.gz/regressors-0.0.3/docs/usage.rst
======== Usage ======== Below are some examples of using the functions in Regressors package. The Boston data set will be used for demonstration purposes:: import numpy as np from sklearn import datasets boston = datasets.load_boston() which_betas = np.ones(13, dtype=bool) which_betas[3] = False ...
PypiClean
/grr-response-server-3.4.6.post0.zip/grr-response-server-3.4.6.post0/grr_response_server/gui/static/angular-components/semantic/byte-size-directive.js
goog.module('grrUi.semantic.byteSizeDirective'); goog.module.declareLegacyNamespace(); /** @const {number} */ var KB_UNIT = 1024; /** @const {number} */ var MB_UNIT = KB_UNIT * 1024; /** @const {number} */ var GB_UNIT = MB_UNIT * 1024; /** * Returns string representation of a given byte size value. * * @param...
PypiClean
/alibabacloud-ros-iacer-0.0.16.tar.gz/alibabacloud-ros-iacer-0.0.16/iacer/generate_params.py
import logging import random import re import string import uuid from urllib.parse import urlparse, parse_qs from urllib.request import urlopen import requests import yaml from iacer.exceptions import IacerException from iacer.plugin.ecs import EcsPlugin from iacer.plugin.oss import OssPlugin from iacer.plugin.ros im...
PypiClean
/oslo.privsep-3.2.0.tar.gz/oslo.privsep-3.2.0/oslo_privsep/comm.py
import datetime import enum import logging import socket import sys import threading import msgpack from oslo_privsep._i18n import _ from oslo_utils import uuidutils LOG = logging.getLogger(__name__) @enum.unique class Message(enum.IntEnum): """Types of messages sent across the communication channel""" PIN...
PypiClean
/python-shopify-api-0.1.0.tar.gz/python-shopify-api-0.1.0/shopify/orders/api_wrapper.py
import requests import json from ..base import ShopifyApiWrapper, datetime_to_string, ShopifyApiError from .objects import Order class OrdersApiWrapper(ShopifyApiWrapper): max_results_limit = 250 default_endpoint = '/admin/orders.json' operational_endpoint = '/admin/orders/{}.json' close_endpoint =...
PypiClean
/2vyper-0.3.0.tar.gz/2vyper-0.3.0/src/twovyper/translation/translator.py
from functools import reduce from itertools import chain from typing import List, Optional from twovyper import resources from twovyper.translation.lemma import LemmaTranslator from twovyper.utils import flatten, seq_to_list from twovyper.ast import names, types, ast_nodes as ast from twovyper.ast.nodes import Vyper...
PypiClean
/django-ckedit-1.0.zip/django-ckedit-1.0/ckeditor/static/javascript/ckeditor/plugins/a11yhelp/dialogs/lang/de.js
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("a11yhelp","de",{title:"Barrierefreiheitinformationen",contents:"Hilfeinhalt. Um den Dialog zu schliessen die Taste 'ESC' drücken.",legend:[{name:"Al...
PypiClean
/tf_gpu-2.11.0.2301-cp38-cp38-manylinux2014_x86_64.whl/tensorflow/python/debug/cli/command_parser.py
"""Command parsing module for TensorFlow Debugger (tfdbg).""" import argparse import ast import re import sys _BRACKETS_PATTERN = re.compile(r"\[[^\]]*\]") _QUOTES_PATTERN = re.compile(r"(\"[^\"]*\"|\'[^\']*\')") _WHITESPACE_PATTERN = re.compile(r"\s+") _NUMBER_PATTERN = re.compile(r"[-+]?(\d+(\.\d*)?|\.\d+)([eE][-+...
PypiClean
/honeybee-grasshopper-energy-1.49.14.tar.gz/honeybee-grasshopper-energy-1.49.14/honeybee_grasshopper_energy/src/HB Apply Shade Schedule.py
ghenv.Component.Name = "HB Apply Shade Schedule" ghenv.Component.NickName = 'ApplyShadeSch' ghenv.Component.Message = '1.6.0' ghenv.Component.Category = 'HB-Energy' ghenv.Component.SubCategory = '2 :: Schedules' ghenv.Component.AdditionalHelpFromDocStrings = '3' try: # import the honeybee-energy extension from h...
PypiClean
/nb_offline_convert-0.1.1.tar.gz/nb_offline_convert-0.1.1/share/jupyter/nbconvert/templates/lab_offline/static/MathJax/extensions/a11y/mathmaps/es/symbols/math_geometry.js
[{"locale":"es"},{"key":"2500","mappings":{"default":{"default":"delimitador horizontal"}},"category":"So"},{"key":"2502","mappings":{"default":{"default":"delimitador vertical"}},"category":"So"},{"key":"250C","mappings":{"default":{"default":"esquina inferior derecha"}},"category":"So"},{"key":"2510","mappings":{"def...
PypiClean
/waste_flow-1.3.2.tar.gz/waste_flow-1.3.2/README.md
[![PyPI version](https://badge.fury.io/py/waste_flow.svg)](https://badge.fury.io/py/waste_flow) ![Pytest passing](https://github.com/xapple/waste_flow/actions/workflows/pytest_master_branch.yml/badge.svg) # `waste_flow` version 1.3.2 `waste_flow` is a python package for retrieving and analyzing data concerning the wa...
PypiClean
/mozlibldap-1.1.0.tar.gz/mozlibldap-1.1.0/mozlibldap.py
# This Source Code Form is subject to the terms of the Mozilla Public # License, v. 2.0. If a copy of the MPL was not distributed with this # file, You can obtain one at http://mozilla.org/MPL/2.0/. # Copyright (c) 2014 Mozilla Corporation # Author: gdestuynder@mozilla.com import ldap class MozLDAP(object): debu...
PypiClean
/jacinle-1.0.2.tar.gz/jacinle-1.0.2/jactorch/models/vision/resnet.py
import math import functools import torch.nn as nn import torch.utils.model_zoo as model_zoo from jactorch.io import load_state_dict from jactorch.nn import ResidualConvBlock, ResidualConvBottleneck __all__ = ['ResNet', 'make_resnet', 'resnet18', 'resnet34', 'resnet50', 'resnet101', 'resnet152', ...
PypiClean
/ssenv-1.0.1.tar.gz/ssenv-1.0.1/README.md
# Super Simple Environment ![Release](https://shields.io/github/v/release/asheswook/Environment?display_name=tag&sort=semver) ![build](https://img.shields.io/github/actions/workflow/status/asheswook/Environment/docker-workflow.yml?branch=main) Super Duper Simple, Super Duper Easy dotenv (.env) package in Python. ## ...
PypiClean
/chatgpt_memory-0.0.1.tar.gz/chatgpt_memory-0.0.1/chatgpt_memory/llm_client/openai/embedding/embedding_client.py
import logging from typing import Any, Dict, List, Union import numpy as np from tqdm import tqdm from chatgpt_memory.constants import MAX_ALLOWED_SEQ_LEN_001, MAX_ALLOWED_SEQ_LEN_002 from chatgpt_memory.llm_client.llm_client import LLMClient from chatgpt_memory.llm_client.openai.embedding.config import EmbeddingConf...
PypiClean
/pysweep2-0.12-py3-none-any.whl/pysweep/data_storage/spyview.py
import numpy as np import os import json import time import re from collections import defaultdict import qcodes from pysweep.data_storage.base_storage import BaseStorage class FileWriter: def __init__(self, file_path, mode="w"): self._file_path = file_path self._mode = mode def write(self,...
PypiClean
/osrframework_server-0.18.0a2.tar.gz/osrframework_server-0.18.0a2/osrframework_server/data/static/css/img/fancybox/jquery.fancybox-1.3.4.pack.js
;(function(b){var m,t,u,f,D,j,E,n,z,A,q=0,e={},o=[],p=0,d={},l=[],G=null,v=new Image,J=/\.(jpg|gif|png|bmp|jpeg)(.*)?$/i,W=/[^\.]\.(swf)\s*$/i,K,L=1,y=0,s="",r,i,h=false,B=b.extend(b("<div/>")[0],{prop:0}),M=b.browser.msie&&b.browser.version<7&&!window.XMLHttpRequest,N=function(){t.hide();v.onerror=v.onload=null;G&&G.a...
PypiClean
/lpocv-0.0.3.tar.gz/lpocv-0.0.3/README.md
#lpocv: Leave-pair-out cross validation # LPOCV: Leave-pair-out cross validation A Python module that implements leave-pair-out cross-validation to obtain a more accurate estimate of model performance in machine learning classification and regression problems. It does so by allowing the user to match the samples by a c...
PypiClean
/azureml_dataprep-4.12.1-py3-none-any.whl/azureml/dataprep/fuse/cli.py
import argparse import json import os import pickle import azureml.dataprep as dprep from azureml.dataprep.api._loggerfactory import _LoggerFactory from azureml.dataprep.fuse._init_event_logger import FileInitEventLogger, NoopInitEventLogger from azureml.dataprep.fuse._logger_helper import _anonymize_stacktrace, _set_...
PypiClean
/solutioncatalog-api-0.0.5.tar.gz/solutioncatalog-api-0.0.5/solutioncatalog/exceptions.py
import six class OpenApiException(Exception): """The base exception class for all OpenAPIExceptions""" class ApiTypeError(OpenApiException, TypeError): def __init__(self, msg, path_to_item=None, valid_classes=None, key_type=None): """ Raises an exception for TypeErrors Args...
PypiClean
/keras_cv-0.6.1-py3-none-any.whl/keras_cv/layers/preprocessing/vectorized_base_image_augmentation_layer.py
import keras import tensorflow as tf if hasattr(keras, "src"): keras_backend = keras.src.backend else: keras_backend = keras.backend from keras_cv import bounding_box from keras_cv.backend import keras from keras_cv.backend import scope from keras_cv.backend.config import multi_backend from keras_cv.utils im...
PypiClean
/scryfall_cache-0.2.2.tar.gz/scryfall_cache-0.2.2/scryfall_cache/scryfall_cache.py
"""Classes for main Scryfall cache objects.""" import logging import os import shutil import time try: from urllib.parse import urlencode except ImportError: from urllib import urlencode import appdirs from pony import orm import requests from requests_ratelimit_adapter import HTTPRateLimitAdapter log = lo...
PypiClean
/napari-tools-menu-0.1.19.tar.gz/napari-tools-menu-0.1.19/README.md
# napari-tools-menu [![License](https://img.shields.io/pypi/l/napari-tools-menu.svg?color=green)](https://github.com/haesleinhuepf/napari-tools-menu/raw/master/LICENSE) [![PyPI](https://img.shields.io/pypi/v/napari-tools-menu.svg?color=green)](https://pypi.org/project/napari-tools-menu) [![Python Version](https://img....
PypiClean
/edc-he-0.1.28.tar.gz/edc-he-0.1.28/edc_he/rule_groups/predicates.py
from django.core.exceptions import ObjectDoesNotExist from edc_constants.constants import YES from edc_metadata.metadata_rules import PredicateCollection from ..utils import ( get_assets_model_cls, get_household_head_model_cls, get_income_model_cls, get_patient_model_cls, get_property_model_cls, ) ...
PypiClean
/isc-py-common-0.1.27.tar.gz/isc-py-common-0.1.27/events/views/event_type_users.py
from events.models.event_type_users import Event_type_users, Event_type_usersManager from isc_common.common.functions import get_relation_field_name from isc_common.http.DSResponse import DSResponseUpdate, DSResponseAdd, DSResponse, JsonResponseWithException from isc_common.http.RPCResponse import RPCResponseConstant f...
PypiClean
/streamlit-render-0.2.0.tar.gz/streamlit-render-0.2.0/streamlit_render/frontend/build/_next/static/chunks/266.b0e706765a4b55d7.js
"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[266],{250266:function(e,t,n){n.d(t,{Z:function(){return Ne}});var o=n(487462),r=n(263366),i=n(667294),a=n(33703),s=n(573546),f=n(382690);function p(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.def...
PypiClean
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/@webassemblyjs/ast/scripts/generateNodeUtils.js
const definitions = require("../src/definitions"); const flatMap = require("array.prototype.flatmap"); const { typeSignature, iterateProps, mapProps, filterProps, unique } = require("./util"); const stdout = process.stdout; const jsTypes = ["string", "number", "boolean"]; const quote = value => `"${value}"...
PypiClean
/patent_client-3.2.7-py3-none-any.whl/patent_client/uspto/public_search/api.py
import time from pathlib import Path from .session import client class UsptoException(Exception): pass def force_list(obj): if not isinstance(obj, list): return [ obj, ] return obj class PublicSearchApi: def __init__(self): self.session = dict() self.ca...
PypiClean
/cupy_cuda117-10.6.0-cp38-cp38-manylinux1_x86_64.whl/cupy/_manipulation/kind.py
import cupy from cupy import _core # TODO(okuta): Implement asfarray def asfortranarray(a, dtype=None): """Return an array laid out in Fortran order in memory. Args: a (~cupy.ndarray): The input array. dtype (str or dtype object, optional): By default, the data-type is inferred ...
PypiClean
/sphinx_ncs_theme-1.0.19-py3-none-any.whl/sphinx_ncs_theme/static/js/bootstrap.bundle.min.js
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";const t="transitionend",e=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){l...
PypiClean
/nodejs_bin-18.4.0a3-py3-none-manylinux_2_12_x86_64.manylinux2010_x86_64.whl/nodejs/lib/node_modules/npm/node_modules/node-gyp/gyp/pylib/gyp/MSVSVersion.py
import errno import os import re import subprocess import sys import glob def JoinPath(*args): return os.path.normpath(os.path.join(*args)) class VisualStudioVersion: """Information regarding a version of Visual Studio.""" def __init__( self, short_name, description, sol...
PypiClean
/Carousel-0.3.2.tar.gz/Carousel-0.3.2/carousel/core/calculators.py
from carousel.core import logging, UREG import numpy as np LOGGER = logging.getLogger(__name__) def index_registry(args, reg, ts=None, idx=None): """ Index into a :class:`~carousel.core.Registry` to return arguments from :class:`~carousel.core.data_sources.DataRegistry` and :class:`~carousel.core.out...
PypiClean
/cryptobox-server-0.3.0.tar.gz/cryptobox-server-0.3.0/src/cryptobox/core/main.py
__revision__ = "$Id" import sys import cryptobox.core.container as cbxContainer from cryptobox.core.exceptions import CBEnvironmentError, CBConfigUndefinedError import re import os import cryptobox.core.tools as cbxTools import subprocess import threading class CryptoBox: '''this class rules them all! put things ...
PypiClean
/ray_delvewheel-1.3.0.0-cp38-cp38-win_amd64.whl/ray-1.3.0.data/purelib/ray/tune/examples/tf_distributed_keras_example.py
import argparse import tensorflow as tf import numpy as np import ray from ray import tune from ray.tune.schedulers import AsyncHyperBandScheduler from ray.tune.integration.keras import TuneReportCheckpointCallback from ray.tune.integration.tensorflow import (DistributedTrainableCreator, ...
PypiClean
/AxlNLP-0.0.1.tar.gz/AxlNLP-0.0.1/axlnlp/training/custom_loggers.py
from comet_ml import Experiment # pytorch from torch import is_tensor #pytroch lightnig from pytorch_lightning.loggers import LightningLoggerBase, rank_zero_only # numpy import numpy as np # am from am import get_logger logger = get_logger("Custom-Loggers") class CustomCometLogger(LightningLoggerBase): def ...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/gis/db/backends/mysql/operations.py
from django.contrib.gis.db.backends.base.adapter import WKTAdapter from django.contrib.gis.db.backends.base.operations import ( BaseSpatialOperations, ) from django.contrib.gis.db.backends.utils import SpatialOperator from django.contrib.gis.db.models import aggregates from django.contrib.gis.geos.geometry import G...
PypiClean
/odoo14_addon_purchase_request_type-14.0.1.0.1-py3-none-any.whl/odoo/addons/purchase_request_type/models/purchase_request.py
from odoo import _, api, fields, models from odoo.exceptions import ValidationError class PurchaseRequest(models.Model): _inherit = "purchase.request" def _default_request_type(self): return self.env["purchase.request.type"].search( [("company_id", "in", [False, self.env.company.id])], ...
PypiClean
/infrasim-compute-3.5.1.tar.gz/infrasim-compute-3.5.1/infrasim/global_status.py
import os import re from texttable import Texttable from infrasim.config import infrasim_home from infrasim import run_command from infrasim import helper def get_dir_list(p): p = str(p) if p == "": return [] p = p.replace("\\", "/") if p[-1] != "/": p += "/" a = os.lis...
PypiClean
/pulumi_github-5.17.0a1693028128.tar.gz/pulumi_github-5.17.0a1693028128/pulumi_github/get_repository_branches.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs __all__ = [ 'GetRepositoryBranchesResult', 'AwaitableGetRepositoryBranchesResult', 'get_repository_branches', 'get_reposit...
PypiClean
/gasbullet-0.0.22.tar.gz/gasbullet-0.0.22/CONTRIBUTING.rst
.. todo:: THIS IS SUPPOSED TO BE AN EXAMPLE. MODIFY IT ACCORDING TO YOUR NEEDS! The document assumes you are using a source repository service that promotes a contribution model similar to `GitHub's fork and pull request workflow`_. While this is true for the majority of services (like GitHub, GitLab, BitB...
PypiClean
/flaightkit-0.4.0.tar.gz/flaightkit-0.4.0/README.md
# Flytekit [![PyPI version fury.io](https://badge.fury.io/py/flytekit.svg)](https://pypi.python.org/pypi/flytekit/) [![PyPI download day](https://img.shields.io/pypi/dd/flytekit.svg)](https://pypi.python.org/pypi/flytekit/) [![PyPI download month](https://img.shields.io/pypi/dm/flytekit.svg)](https://pypi.python.org/p...
PypiClean
/mah51_biopython-1.1-cp39-cp39-macosx_12_0_arm64.whl/Bio/Align/AlignInfo.py
import math import sys from Bio.Seq import Seq class SummaryInfo: """Calculate summary info about the alignment. This class should be used to calculate information summarizing the results of an alignment. This may either be straight consensus info or more complicated things. """ def __init_...
PypiClean
/django-piston-cs-0.11.tar.gz/django-piston-cs-0.11/piston/doc.py
import inspect, handler from piston.handler import typemapper from piston.handler import handler_tracker from django.core.urlresolvers import get_resolver, get_callable, get_script_prefix from django.shortcuts import render_to_response from django.template import RequestContext def generate_doc(handler_cls): """...
PypiClean
/common_logger-1.0.2.tar.gz/common_logger-1.0.2/common_logger/util/log_rotate_handler.py
import os import re from logging.handlers import BaseRotatingHandler import codecs import time from stat import ST_MTIME from portalocker import lock, unlock, LOCK_EX _PER_HOUR = 60 * 60 # 每小时的秒数 _MIDNIGHT = 24 * 60 * 60 # 每天秒数 class SelfRotatingFileHandler(BaseRotatingHandler): """ Handler for logging to...
PypiClean
/neo4j-python-migrations-0.1.1.tar.gz/neo4j-python-migrations-0.1.1/neo4j_python_migrations/cli.py
from datetime import datetime from pathlib import Path from typing import Optional from attr import define from neo4j import GraphDatabase from typer import Exit, Option, Typer from yarl import URL from neo4j_python_migrations.executor import Executor cli = Typer() @define class State: """Storage of common opt...
PypiClean
/object_detection_tf-0.1.2-py3-none-any.whl/object_detection/utils/per_image_vrd_evaluation.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from six.moves import range from object_detection.utils import np_box_list from object_detection.utils import np_box_list_ops class PerImageVRDEvaluation(object): """Evaluate vrd result ...
PypiClean
/cds_api_client-0.0.2-py3-none-any.whl/cds/models/banking_product_fee.py
import pprint import re # noqa: F401 class BankingProductFee(object): """BankingProductFee class.""" """ Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name ...
PypiClean
/wield.iirrational-2.9.5.tar.gz/wield.iirrational-2.9.5/src/wield/iirrational/TFmath/analytic_functionals.py
import numpy as np from wield.bunch import Bunch def analytic_translation( F_Hz, time_s=None, F_displacement_Hz=0, ): """ time_bins shou """ if time_s is None: time_s = ( np.linspace( 0, (len(F_Hz) - 1) / np.max(F_Hz) / 2, 3 * (1 + 1 * len(F_Hz) / 2) ...
PypiClean
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/babel-helper-regex/node_modules/lodash/_createFlow.js
var LodashWrapper = require('./_LodashWrapper'), flatRest = require('./_flatRest'), getData = require('./_getData'), getFuncName = require('./_getFuncName'), isArray = require('./isArray'), isLaziable = require('./_isLaziable'); /** Error message constants. */ var FUNC_ERROR_TEXT = 'Expected a func...
PypiClean
/s3-backups-0.1.0.tar.gz/s3-backups-0.1.0/README.rst
S3 Backups ========== .. image:: https://pypip.in/v/s3-backups/badge.png :target: https://pypi.python.org/pypi/s3-backups .. image:: https://travis-ci.org/epicserve/s3-backups.png?branch=master :alt: Build Status :target: http://travis-ci.org/epicserve/epicserve Overview -------- S3 Backups provides...
PypiClean
/compute_service-0.0.1.tar.gz/compute_service-0.0.1/compute_service/routers/tasks.py
from fastapi import APIRouter, BackgroundTasks, Depends, HTTPException, status, Response from sqlalchemy.orm import Session from compute_service.api import crud, schemas from compute_service.api.config import APIConfig router = APIRouter(tags=["tasks"]) task_queue = APIConfig().queue # /: # GET (skip, limit) -...
PypiClean
/liblxml3-2.7.tar.gz/liblxml3-2.7/bot/modules/bt_select.py
from telegram.ext import CommandHandler, CallbackQueryHandler from os import remove, path as ospath from bot import aria2, download_dict, dispatcher, download_dict_lock, OWNER_ID, user_data, LOGGER from bot.helper.telegram_helper.bot_commands import BotCommands from bot.helper.telegram_helper.filters import CustomFilt...
PypiClean
/MplayerCtrl-0.3.3.tar.gz/MplayerCtrl-0.3.3/MplayerCtrl.py
from subprocess import Popen, PIPE, STDOUT from signal import signal, SIGTERM from Queue import Queue import threading import wx import wx.lib.newevent import atexit import sys import os from pprint import pformat __author__ = 'David Herberth' __version_info__ = (0, 3, 3) __version__ = '.'.join(map(str, __version_info...
PypiClean
/rtm-tsfresh-1.1.102.tar.gz/rtm-tsfresh-1.1.102/tsfresh/transformers/per_column_imputer.py
import pandas as pd from sklearn.base import BaseEstimator, TransformerMixin from sklearn.exceptions import NotFittedError from tsfresh.utilities.dataframe_functions import ( get_range_values_per_column, impute_dataframe_range, ) class PerColumnImputer(BaseEstimator, TransformerMixin): """ Sklearn-c...
PypiClean
/jupyter-vvp-0.1.0.tar.gz/jupyter-vvp-0.1.0/jupytervvp/vvpmagics.py
import getpass from IPython.core.magic import (Magics, magics_class, line_magic, cell_magic) from IPython.core.magic_arguments import magic_arguments, argument, parse_argstring from IPython import get_ipython import sys from jupytervvp.deployments import DeploymentException from jupytervvp.flinksql import run_query f...
PypiClean
/echarts-china-cities-pypkg-0.0.9.tar.gz/echarts-china-cities-pypkg-0.0.9/echarts_china_cities_pypkg/resources/echarts-china-cities-js/shan1_dong1_dong1_ying2.js
!function(B,A){"function"==typeof define&&define.amd?define(["exports","echarts"],A):"object"==typeof exports&&"string"!=typeof exports.nodeName?A(exports,require("echarts")):A({},B.echarts)}(this,function(B,A){var D=function(B){"undefined"!=typeof console&&console&&console.error&&console.error(B)} return A?A.registerM...
PypiClean
/django_celery_results-2.5.1-py3-none-any.whl/django_celery_results/migrations/0001_initial.py
from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='TaskResult', fields=[ ('id', models.AutoField(auto_created=...
PypiClean
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v3_3_0/scorecard_history_broker.py
from ..broker import Broker class ScorecardHistoryBroker(Broker): controller = "scorecard_histories" def index(self, **kwargs): """Lists the available scorecard histories. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the various ways to query lists, usi...
PypiClean
/django-ckedit-1.0.zip/django-ckedit-1.0/ckeditor/static/javascript/ckeditor/plugins/specialchar/dialogs/lang/ca.js
/* Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.md or http://ckeditor.com/license */ CKEDITOR.plugins.setLang("specialchar","ca",{euro:"Símbol d'euro",lsquo:"Signe de cometa simple esquerra",rsquo:"Signe de cometa simple dreta",ldquo:"Signe de cometa doble es...
PypiClean
/RsCMPX_UwbMeas-4.0.170.tar.gz/RsCMPX_UwbMeas-4.0.170/RsCMPX_UwbMeas/Implementations/UwbMeas/MultiEval/Power/PpPower/Maximum.py
from ......Internal.Core import Core from ......Internal.CommandsGroup import CommandsGroup from ......Internal import Conversions from ......Internal.ArgSingleSuppressed import ArgSingleSuppressed from ......Internal.Types import DataType from ...... import repcap # noinspection PyPep8Naming,PyAttributeOutsideInit,S...
PypiClean
/knock_knock_x-0.1.0-py3-none-any.whl/knock_knock/outcome_record.py
def OutcomeRecord_factory(columns_arg, converters_arg): field_index_to_converter = {} for i, c in enumerate(columns_arg): if c in converters_arg: field_index_to_converter[i] = converters_arg[c] class OutcomeRecord(): columns = columns_arg def __init__(self, *args): ...
PypiClean
/pyappnvn-0.0.4.tar.gz/pyappnvn-0.0.4/pynvn/excel/fomulas.py
from pynvn.string.slist import str_seplistint_strbystr,returnliststr_from_str,add_sb_to_str from pynvn.excel import col2num,colnum_string class vlookup: """using function vlookup""" def __init__(self,loopkup_value_range = None, table_array = None, rang_lookup = False, ...
PypiClean
/axelerate-0.5.2.tar.gz/axelerate-0.5.2/README.md
<h1 align="center"> <img src="https://raw.githubusercontent.com/AIWintermuteAI/aXeleRate/master/resources/logo.png" alt="aXeleRate" width="350"> </h1> <h3 align="center">Keras-based framework for AI on the Edge</h3> <hr> <p align="center"> aXeleRate streamlines training and converting computer vision models to be r...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/hetzner/hcloud/plugins/modules/hcloud_subnetwork.py
# Copyright: (c) 2019, Hetzner Cloud GmbH <info@hetzner-cloud.de> # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = """ --- module: hcloud_subnetwork short_description: Manage cloud subnetworks on the Hetzner Cloud. description: - Create, update and d...
PypiClean
/ooti-api-1.0.3.tar.gz/ooti-api-1.0.3/resources/organizations.py
import json import requests from .helper import Helper class Organizations(Helper): def __init__(self, base_url, org_pk, teams_pk, access_token, _csrf_token, headers, pagination): super().__init__(base_url, org_pk, teams_pk, access_token, _csrf_token, headers, pagination) # TODO GET on /api/v1/orga...
PypiClean