id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/unofficial-superset-0.34.0.tar.gz/unofficial-superset-0.34.0/superset/utils/log.py | from abc import ABC, abstractmethod
from datetime import datetime
import functools
import inspect
import json
import logging
import textwrap
from typing import Any, cast, Type
from flask import current_app, g, request
class AbstractEventLogger(ABC):
@abstractmethod
def log(self, user_id, action, *args, **kwa... | PypiClean |
/harmonoid_module-1.0.0.2-py3-none-any.whl/harmonoidmodule/harmonoidservice/browsing.py | import asyncio
class BrowsingHandlerInternal:
async def arrangeVideoIds(self, track):
title = track["artists"] + " " + track["title"]
youtubeResult = await self.ytMusic.searchYoutube(title, "songs")
if track["title"] in youtubeResult[0]["title"]:
return youtubeResult[0]["videoI... | PypiClean |
/smart_home_tng-2023.1.3.tar.gz/smart_home_tng-2023.1.3/smart_home_tng/frontend/frontend_latest/d3af657f.js | "use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[42983],{39841:(t,e,i)=>{i(48175),i(65660);var s=i(9672),o=i(87156),r=i(50856),n=i(44181);(0,s.k)({_template:r.d`
<style>
:host {
display: block;
/**
* Force app-header-layout to... | PypiClean |
/matrix_calculus-0.0.7.tar.gz/matrix_calculus-0.0.7/matrix_calculus/matrix_calculus.py |
from IPython.core.display import TextDisplayObject
import string
from copy import deepcopy
import requests
DEFAULT_N_ROWS = 5
DEFAULT_N_COLS = 5
__version__ = 0.1
__author__ = 'Ray'
__email__ = 'songlinhou1993@gmail.com'
class Terms(TextDisplayObject):
pass
class Operators(Terms):
@staticmethod
def __... | PypiClean |
/pulumi_alicloud-3.44.0a1693632188.tar.gz/pulumi_alicloud-3.44.0a1693632188/pulumi_alicloud/eds/command.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['CommandArgs', 'Command']
@pulumi.input_type
class CommandArgs:
def __init__(__self__, *,
command_content: pulumi.Input[str],
... | PypiClean |
/ModiPy-1.2.2.tar.gz/ModiPy-1.2.2/ez_setup.py | import sys
DEFAULT_VERSION = "0.6c8"
DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3]
md5_data = {
'setuptools-0.6b1-py2.3.egg': '8822caf901250d848b996b7f25c6e6ca',
'setuptools-0.6b1-py2.4.egg': 'b79a8a403e4502fbb85ee3f1941735cb',
'setuptools-0.6b2-py2.3.egg': '5657759... | PypiClean |
/nbdiff-1.0.3.tar.gz/nbdiff-1.0.3/README.rst | ===============================
NBDiff
===============================
.. image:: https://badge.fury.io/py/nbdiff.png
:target: http://badge.fury.io/py/nbdiff
.. image:: https://travis-ci.org/tarmstrong/nbdiff.png?branch=master
:target: https://travis-ci.org/tarmstrong/nbdiff
.. image:: https://pypip.... | PypiClean |
/kappadata-1.3.39.tar.gz/kappadata-1.3.39/README.md | # KappaData
[](https://github.com/BenediktAlkin/KappaData/actions/workflows/publish.yaml)
Utilities for [datasets and dataloading](https://pytorch.org/tutorials/beginner/basics/data_tutorial.html)
with [pytorch](https://pyt... | PypiClean |
/mindfoundry.client.analyze-1.20.4.tar.gz/mindfoundry.client.analyze-1.20.4/src/mindfoundry/client/analyze/swagger/api/data/get_data_set.py | from typing import Any, Dict, Optional, Union, cast
import httpx
from ...client import Client
from ...models.data_set_response import DataSetResponse
from ...types import Response
def _get_kwargs(
id: int,
*,
client: Client,
) -> Dict[str, Any]:
url = "{}/v1/dataSets/{id}".format(
client.ba... | PypiClean |
/biggo_api-0.2.0-py3-none-any.whl/biggo_api/async_clients/_user.py |
from biggo_api.async_clients._base import BaseInstanceClient
from biggo_api.responses import UserVideoResponse
class UserClient(BaseInstanceClient):
"""Async client to access user API."""
async def get_user_videos(self, userid: str, page: int = 1) -> UserVideoResponse:
"""Get user's videos asynchron... | PypiClean |
/apache-airflow-2.7.0.tar.gz/apache-airflow-2.7.0/airflow/operators/__init__.py | """Operators."""
from __future__ import annotations
from airflow.utils.deprecation_tools import add_deprecated_classes
__deprecated_classes = {
'bash_operator': {
'BashOperator': 'airflow.operators.bash.BashOperator',
},
'branch_operator': {
'BaseBranchOperator': 'airflow.operators.branch.... | PypiClean |
/mapfish.plugin.client-0.2.tar.gz/mapfish.plugin.client-0.2/mapfishpluginclient/template/+package+/public/lib/ext/Ext/source/widgets/layout/AccordionLayout.js | * @class Ext.layout.Accordion
* @extends Ext.layout.FitLayout
* <p>This is a layout that contains multiple panels in an expandable accordion style such that only one
* panel can be open at any given time. Each panel has built-in support for expanding and collapsing.
* This class is intended to be extended or crea... | PypiClean |
/qf_lib-2.2.9-py3-none-any.whl/qf_lib/indicators/market_stress_indicator_us.py |
from datetime import datetime, timedelta
from math import floor
from typing import Sequence
from qf_lib.common.enums.price_field import PriceField
from qf_lib.common.tickers.tickers import Ticker
from qf_lib.containers.dataframe.qf_dataframe import QFDataFrame
from qf_lib.containers.series.qf_series import QFSeries
f... | PypiClean |
/CredSLayer-0.1.3-py3-none-any.whl/credslayer/parsers/http.py |
import base64
from urllib.parse import parse_qs
from pyshark.packet.layers.base import BaseLayer
from credslayer.core import logger
from credslayer.core.session import Session
from credslayer.core.utils import Credentials
HTTP_IGNORED_EXTENSIONS = ["css", "ico", "png", "jpg", "jpeg", "gif", "js"]
HTTP_METHODS = ["O... | PypiClean |
/mmdet_taeuk4958-1.0.9-py3-none-any.whl/mmdet_taeuk4958/models/dense_heads/rpn_head.py | import copy
import torch
import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn import ConvModule
from mmcv.ops import batched_nms
from ..builder import HEADS
from .anchor_head import AnchorHead
@HEADS.register_module()
class RPNHead(AnchorHead):
"""RPN head.
Args:
in_channels (int): N... | PypiClean |
/itk_minimalpathextraction-1.2.6-cp37-cp37m-macosx_10_9_x86_64.whl/itk/Configuration/MinimalPathExtractionConfig.py | depends = ('ITKPyBase', 'ITKPath', 'ITKOptimizers', 'ITKFastMarching', 'ITKCommon', )
templates = ( ('ArrivalFunctionToPathFilter', 'itk::ArrivalFunctionToPathFilter', 'itkArrivalFunctionToPathFilterISS2PPP2', True, 'itk::Image<signed short, 2>, itk::PolyLineParametricPath<2>'),
('ArrivalFunctionToPathFilter', 'itk:... | PypiClean |
/poetry-plus-0.11.4.tar.gz/poetry-plus-0.11.4/poetry/console/commands/init.py | from __future__ import unicode_literals
import re
from typing import List
from typing import Tuple
from .command import Command
from .venv_command import VenvCommand
class InitCommand(Command):
"""
Creates a basic <comment>pyproject.toml</> file in the current directory.
init
{--name= : Name o... | PypiClean |
/xl_tensorflow-0.11.2.tar.gz/xl_tensorflow-0.11.2/xl_tensorflow/models/vision/detection/dataloader/utils/matcher.py | from abc import ABCMeta
from abc import abstractmethod
import tensorflow as tf
class Match(object):
"""Class to store results from the matcher.
This class is used to store the results from the matcher. It provides
convenient methods to query the matching results.
"""
def __init__(self, match_results):
... | PypiClean |
/mlflow-stonewise-1.30.1.tar.gz/mlflow-stonewise-1.30.1/mlflow/tracking/_model_registry/fluent.py | from mlflow.tracking.client import MlflowClient
from mlflow.exceptions import MlflowException
from mlflow.entities.model_registry import ModelVersion
from mlflow.protos.databricks_pb2 import RESOURCE_ALREADY_EXISTS, ErrorCode
from mlflow.store.artifact.runs_artifact_repo import RunsArtifactRepository
from mlflow.utils.... | PypiClean |
/mera_tvm_runtime-1.4.0-cp36-cp36m-manylinux_2_27_x86_64.whl/tvm/topi/image/resize.py | """TVM operator input resize compute."""
from __future__ import absolute_import
import tvm
from tvm import te
from tvm.topi.utils import nchw_pack_layout, nchw_xc_layout
from .. import tag
def can_convert_multiply_to_intdiv(origin_size, scaled_size):
"""Check whether can convert multiplication to division"""
... | PypiClean |
/microsoft-bing-customimagesearch-1.0.0.tar.gz/microsoft-bing-customimagesearch-1.0.0/custom_image_search_client/aio/operations/_custom_instance_operations.py | from typing import Any, Callable, Dict, Generic, Optional, TypeVar, Union
import warnings
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
from azure.core.pipeline import PipelineResponse
from azure.core.pipeline.transport import Asyn... | PypiClean |
/zinnia-theme-foundation-1.0.2.tar.gz/zinnia-theme-foundation-1.0.2/zinnia_foundation/static/zinnia/js/foundation/foundation.offcanvas.js | ;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.offcanvas = {
name : 'offcanvas',
version : '5.3.3',
settings : {
open_method: 'move',
close_on_click: false
},
init : function (scope, method, options) {
this.bindings(method, options);
},
... | PypiClean |
/village-fastapi-0.82.0.tar.gz/village-fastapi-0.82.0/docs/ru/docs/deployment/versions.md | # О версиях FastAPI
**FastAPI** уже используется в продакшене во многих приложениях и системах. Покрытие тестами поддерживается на уровне 100%. Однако его разработка все еще продолжается.
Часто добавляются новые функции, регулярно исправляются баги, код продолжает постоянно совершенствоваться.
По указанным причинам ... | PypiClean |
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/three/src/renderers/shaders/ShaderLib.js | import { ShaderChunk } from './ShaderChunk.js';
import { UniformsUtils } from './UniformsUtils.js';
import { Vector3 } from '../../math/Vector3.js';
import { UniformsLib } from './UniformsLib.js';
import { Color } from '../../math/Color.js';
/**
* @author alteredq / http://alteredqualia.com/
* @author mrdoob / http:... | PypiClean |
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v2_9_0/if_trunk_broker.py | from ..broker import Broker
class IfTrunkBroker(Broker):
controller = "if_trunks"
def show(self, **kwargs):
"""Shows the details for the specified if trunk.
**Inputs**
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` True
... | PypiClean |
/autogluon.features-0.7.0b20230216-py3-none-any.whl/autogluon/features/generators/drop_unique.py | import logging
from pandas import DataFrame
from autogluon.common.features.types import R_CATEGORY, R_OBJECT, S_TEXT, S_IMAGE_PATH, S_IMAGE_BYTEARRAY
from autogluon.common.features.feature_metadata import FeatureMetadata
from .abstract import AbstractFeatureGenerator
logger = logging.getLogger(__name__)
# TODO: N... | PypiClean |
/a_pandas_ex_closest_neighbours-0.10-py3-none-any.whl/a_pandas_ex_closest_neighbours-0.10.dist-info/LICENSE.rst |
The MIT License (MIT)
Copyright (c) 2022 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 |
/gbptesthorizonui-0.9.0.tar.gz/horizon-2014.2.0.dev282.g7faf497/horizon/test/helpers.py |
import logging
import os
import socket
import time
from django.contrib.auth.middleware import AuthenticationMiddleware # noqa
from django.contrib.auth.models import Permission # noqa
from django.contrib.auth.models import User # noqa
from django.contrib.contenttypes.models import ContentType # noqa
from django.co... | PypiClean |
/gdata-2.0.18.tar.gz/gdata-2.0.18/src/atom/url.py |
__author__ = 'api.jscudder (Jeff Scudder)'
import urlparse
import urllib
DEFAULT_PROTOCOL = 'http'
DEFAULT_PORT = 80
def parse_url(url_string):
"""Creates a Url object which corresponds to the URL string.
This method can accept partial URLs, but it will leave missing
members of the Url unset.
"""
p... | PypiClean |
/v2/model/list_sub_customer_res_fee_records_request.py |
import pprint
import re
import six
class ListSubCustomerResFeeRecordsRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the valu... | PypiClean |
/ideabox.diazotheme.spirit-1.2.8.tar.gz/ideabox.diazotheme.spirit-1.2.8/docs/LICENSE.rst | ideabox.diazotheme.spirit Copyright 2019, maud gennart
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 2
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRA... | PypiClean |
/myams_js-1.16.0.tar.gz/myams_js-1.16.0/pkg/js/prod/mod-notifications.js | !function(t,e){if("function"==typeof define&&define.amd)define(["exports"],e);else if("undefined"!=typeof exports)e(exports);else{var i={exports:{}};e(i.exports),t.modNotifications=i.exports}}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,(function(t){"use strict";Object.defineProperty(t,... | PypiClean |
/EIVideo-0.1a0.tar.gz/EIVideo-0.1a0/paddlevideo/modeling/framework/segment/base.py |
from abc import abstractmethod
from ... import builder
import paddle.nn as nn
class BaseSegment(nn.Layer):
"""Base class for semi-Video Object Segmentation.
All subclass should overwrite:
- Methods:``train_step``, supporting to forward when training.
- Methods:``valid_step``, supporting to forward w... | PypiClean |
/odoo12_addon_stock_inventory_verification_request-12.0.3.0.1-py3-none-any.whl/odoo/addons/stock_inventory_verification_request/readme/DESCRIPTION.rst | Adds the capability to request a Slot Verification when an inventory is
'Pending to Approve' or create one at will when a potential issue with a
specific location is found. When asked from an inventory adjustment, which have
discrepancies over the threshold for the location, a Slot Verification
Request will be created ... | PypiClean |
/interface_meta-1.3.0-py3-none-any.whl/interface_meta/utils/docs.py | import inspect
import textwrap
from collections import OrderedDict
from .inspection import (
get_class_attr_docs,
get_functional_docs,
get_functional_wrapper,
get_quirk_docs_method,
get_quirk_docs_mro,
has_class_attr_docs,
has_forced_override,
has_quirk_docs_mro,
has_updatable_docs,... | PypiClean |
/napari-amdtrk-1.1.0.tar.gz/napari-amdtrk-1.1.0/src/napari_amdtrk/_reader.py | import numpy as np
import os
import yaml
import pandas as pd
import skimage.io as io
from ._utils import get_annotation
def napari_get_reader(path):
"""A basic implementation of a Reader contribution.
Parameters
----------
path : str
Path to input directory.
Returns
-------
funct... | PypiClean |
/gu-django-tinymce-2.7.2.tar.gz/gu-django-tinymce-2.7.2/tinymce/media/tiny_mce/plugins/style/langs/my_dlg.js | tinyMCE.addI18n('my.style_dlg',{"text_lineheight":"\u1005\u102c\u1031\u103c\u1000\u102c\u1004\u103a\u1038 \u1021\u103c\u1019\u1004\u103a\u1037","text_variant":"\u1015\u1036\u102f\u1005\u1036\u1000\u103d\u1032","text_style":"\u1005\u102c\u101c\u1036\u102f\u1038 \u1005\u1010\u102d\u102f\u1004\u103a","text_weight":"\u1005... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/KoubeiMarketingCampaignMemberRelationCreateRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.KoubeiMarketingCampaignMemberRelationCreateModel import KoubeiMarketingCampaignMemberRelationCreateModel
class KoubeiMarketingCampaignMemberRelationCreateRequest(object):
de... | PypiClean |
/django-xml-3.0.0.tar.gz/django-xml-3.0.0/djxml/xmlmodels/related.py | from .signals import xmlclass_prepared
from .loading import get_xml_model
from .fields import (SchematronField, XmlField, XPathSingleNodeField,
XPathSingleNodeField, XPathListField, XsltField,)
RECURSIVE_RELATIONSHIP_CONSTANT = 'self'
pending_lookups = {}
def add_lazy_relation(cls, field, rela... | PypiClean |
/realsr-ncnn-vulkan-python-1.0.6.tar.gz/realsr-ncnn-vulkan-python-1.0.6/realsr_ncnn_vulkan_python/realsr-ncnn-vulkan/src/ncnn/glslang/gen_extension_headers.py |
# Copyright (c) 2020 Google Inc.
#
# 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 writ... | PypiClean |
/Copreus-0.4.0.tar.gz/Copreus-0.4.0/copreus/schema/drivermanager.py | import copreus.schema.adc
import copreus.schema.bme_280
import copreus.schema.dac
import copreus.schema.dht
import copreus.schema.epaperdirect
import copreus.schema.epapersimple
import copreus.schema.input
import copreus.schema.pollinginput
import copreus.schema.output
import copreus.schema.rotaryencoder
import copreus... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-2.3.2/SCons/Tool/msgfmt.py |
# Copyright (c) 2001 - 2014 The SCons Foundation
#
# 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, modify, merge,... | PypiClean |
/rubicon_ml-0.4.7-py3-none-any.whl/rubicon_ml/viz/dashboard.py | import dash_bootstrap_components as dbc
from dash import html
from rubicon_ml.viz.base import VizBase
COL_WIDTH_LOOKUP = {1: 12, 2: 6, 3: 4, 4: 3}
class Dashboard(VizBase):
"""Compose visualizations into a dashboard to view multiple widgets at once.
Parameters
----------
experiments : list of rubic... | PypiClean |
/perseus_core_library-1.19.4.tar.gz/perseus_core_library-1.19.4/src/majormode/perseus/model/version.py |
from __future__ import annotations
from functools import reduce
from itertools import starmap
import io
import os
import re
from six import string_types
class Version:
"""
The software component version numbering is mostly inspired from
Apache version numbering or similar other version numbering such a... | PypiClean |
/waiter_client-1.5.7-py3-none-any.whl/waiter/subcommands/delete.py | import logging
from waiter import http_util, terminal
from waiter.querying import get_services_using_token, get_target_cluster_from_token, print_no_data, query_token
from waiter.util import get_in, guard_no_cluster, response_message, print_error, str2bool
def delete_token_on_cluster(cluster, token_name, token_etag):... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/response/KoubeiCateringItemQueryResponse.py | import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.AvailablePeriodInfo import AvailablePeriodInfo
from alipay.aop.api.domain.BuyerNotesInfo import BuyerNotesInfo
from alipay.aop.api.domain.ItemDishInfo import ItemDishInfo
from alipay.aop.api.domain.ItemPackageInfo ... | PypiClean |
/synctera_client_ng-0.44.2.tar.gz/synctera_client_ng-0.44.2/synctera_client_ng/api/kyc_verification_deprecated_api.py | import re # noqa: F401
from pydantic import validate_arguments, ValidationError
from typing_extensions import Annotated
from pydantic import Field, StrictBool, StrictStr, conint
from typing import Optional
from synctera_client_ng.models.customer_verification import CustomerVerification
from synctera_client_ng.mode... | PypiClean |
/onnxruntime_gpu-1.15.1-cp311-cp311-win_amd64.whl/onnxruntime/transformers/optimizer.py |
# Convert Bert ONNX model converted from TensorFlow or exported from PyTorch to use Attention, Gelu,
# SkipLayerNormalization and EmbedLayerNormalization ops to optimize
# performance on NVidia GPU and CPU.
#
# For Bert model exported from PyTorch, OnnxRuntime has bert model optimization support internally.
# You can ... | PypiClean |
/django-coupon-management-1.2.tar.gz/django-coupon-management-1.2/coupon_management/models.py | from django.db import models
from django.utils import timezone
from coupon_management.helpers import (
get_random_code,
get_coupon_code_length,
get_user_model,
)
# Create your models here.
# ========================
class Ruleset(models.Model):
allowed_users = models.ForeignKey(
"AllowedUsers... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/sites/item/term_store/sets/item/parent_group/sets/item/children/item/children/children_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 |
/config_tool-0.0.13.tar.gz/config_tool-0.0.13/app/__init__.py | from __future__ import with_statement
from __future__ import absolute_import
from __future__ import generators
from __future__ import nested_scopes
from __future__ import print_function
from __future__ import division
#The MIT License (MIT)
#Copyright (c) 2016 Sam Caldwell.
#
#Permission is hereby granted, free of cha... | PypiClean |
/binary-refinery-0.4.41.tar.gz/binary-refinery-0.4.41/refinery/units/obfuscation/vba/arithmetic.py | from __future__ import annotations
import re
from refinery.units.obfuscation import Deobfuscator, StringLiterals
from refinery.lib.deobfuscation import ExpressionParsingFailure, cautious_eval
from refinery.lib.patterns import formats
class deob_vba_arithmetic(Deobfuscator):
def deobfuscate(self, data):
s... | PypiClean |
/exoplasim_legacy-3.0.0a17-py3-none-any.whl/exoplasimlegacy/puma/dox/html/jquery.js | (function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&... | PypiClean |
/engine-pin-0.2.10rc0.tar.gz/engine-pin-0.2.10rc0/pin/embed/engine_simular_server.py |
#BoBoBo#
import os
import contextlib
import socket
from http.server import *
from functools import partial
import sys
from http.server import BaseHTTPRequestHandler
from http import HTTPStatus
import io
import json
import shutil
class EngineHandler(BaseHTTPRequestHandler):
def do_POST(self):
self.do_P... | PypiClean |
/mistune-hilite-0.1.0.tar.gz/mistune-hilite-0.1.0/README.rst | Mistune-Hilite
==============
`Python-Markdown Code Hilite <https://pythonhosted.org/Markdown/extensions/code_hilite.html>`_ port for `Mistune <https://github.com/lepture/mistune>`_.
Installation
------------
.. code:: shell
$ pip install mistune-hilite
Usage
-----
.. code:: python
import mistune
i... | PypiClean |
/sumo_gym-0.5.0.tar.gz/sumo_gym-0.5.0/src/sumo_gym/plot.py | import sys
import sumo_gym.envs as envs
import numpy as np
from typing import Dict, Any, Union, Set
try:
import matplotlib
import matplotlib.pyplot as plt
import matplotlib.transforms as transforms
except ModuleNotFoundError:
print(
"sumo_gym requires matplotlib to plot, either install sumo_gym... | PypiClean |
/EARL-pytorch-0.5.1.tar.gz/EARL-pytorch-0.5.1/earl_pytorch/util/analyze.py | import logging
import carball as cb
import matplotlib.pyplot as plt
import numpy as np
import pandas as pd
from carball.controls.controls import ControlsCreator
from ..dataset.create_dataset import replay_to_dfs, convert_dfs, normalize
def sigmoid(x):
return 1 / (1 + np.exp(-x))
def inv_sigmoid(x):
return... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/me/calendar_view/item/exception_occurrences/item/instances/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 |
/cody-adapter-transformers-3.0.1.tar.gz/cody-adapter-transformers-3.0.1/src/adapter_transformers/models/reformer/configuration_reformer.py | """ Reformer model configuration"""
from ...configuration_utils import PretrainedConfig
from ...utils import logging
logger = logging.get_logger(__name__)
REFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP = {
"google/reformer-crime-and-punishment": "https://huggingface.co/google/reformer-crime-and-punishment/resolve/main/... | PypiClean |
/object_detection_tf-0.1.2-py3-none-any.whl/object_detection/dataset_tools/context_rcnn/generate_embedding_data.py | r"""A Beam job to generate embedding data for camera trap images.
This tool runs inference with an exported Object Detection model in
`saved_model` format and produce raw embeddings for camera trap data. These
embeddings contain an object-centric feature embedding from Faster R-CNN, the
datetime that the image was tak... | PypiClean |
/PyOpenGL-3.1.7-py3-none-any.whl/OpenGL/GL/ARB/vertex_buffer_object.py | from OpenGL import platform, constant, arrays
from OpenGL import extensions, wrapper
import ctypes
from OpenGL.raw.GL import _types, _glgets
from OpenGL.raw.GL.ARB.vertex_buffer_object import *
from OpenGL.raw.GL.ARB.vertex_buffer_object import _EXTENSION_NAME
def glInitVertexBufferObjectARB():
'''Return boolean i... | PypiClean |
/eric-ide-22.7.1.tar.gz/eric-ide-22.7.1/eric7/DebugClients/Python/coverage/html.py | import datetime
import json
import os
import re
import shutil
import types
import coverage
from coverage.data import add_data_to_hash
from coverage.exceptions import NoDataError
from coverage.files import flat_rootname
from coverage.misc import ensure_dir, file_be_gone, Hasher, isolate_module, format_local_datetime
fr... | PypiClean |
/mypy-boto3-snowball-1.28.36.tar.gz/mypy-boto3-snowball-1.28.36/mypy_boto3_snowball/client.py | import sys
from typing import Any, Dict, Mapping, Sequence, Type, overload
from botocore.client import BaseClient, ClientMeta
from .literals import (
ImpactLevelType,
JobTypeType,
LongTermPricingTypeType,
RemoteManagementType,
ServiceNameType,
ShipmentStateType,
ShippingOptionType,
Sno... | PypiClean |
/baiduads-sdk-auto-snapshot-2022.2.1.5.tar.gz/baiduads-sdk-auto-snapshot-2022.2.1.5/baiduads/indexapi/model/create_task_request_wrapper.py | import re # noqa: F401
import sys # noqa: F401
from baiduads.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,
valid... | PypiClean |
/datafs-0.7.1.tar.gz/datafs-0.7.1/docs/api/python/pythonapi.dependencies.rst | .. _pythonapi-dependencies:
==========================
Managing Data Dependencies
==========================
Dependency graphs can be tracked explicitly in datafs, and each version can have its own dependencies.
You specify dependencies from within python or using the :ref:`command line interface <cli-dependencies>`... | PypiClean |
/gbptesthorizonui-0.9.0.tar.gz/horizon-2014.2.0.dev282.g7faf497/horizon/workflows/views.py |
import copy
import json
from django import forms
from django import http
from django import shortcuts
from django.views import generic
import six
from horizon import exceptions
from horizon.forms.views import ADD_TO_FIELD_HEADER # noqa
from horizon import messages
class WorkflowView(generic.TemplateView):
""... | PypiClean |
/Pylot-0.0.4.tar.gz/Pylot-0.0.4/pylot/component/static/pylot/vendor/mdeditor/bower_components/codemirror/addon/fold/foldgutter.js | (function() {
"use strict";
CodeMirror.defineOption("foldGutter", false, function(cm, val, old) {
if (old && old != CodeMirror.Init) {
cm.clearGutter(cm.state.foldGutter.options.gutter);
cm.state.foldGutter = null;
cm.off("gutterClick", onGutterClick);
cm.off("change", onChange);
... | PypiClean |
/cirb.blog-1.0a1.zip/cirb.blog-1.0a1/cirb/blog/setup_view.py | import logging
from zope import interface
from zope.component import getUtility, getMultiAdapter
from Products.Five.browser import BrowserView
from Products.statusmessages.interfaces import IStatusMessage
from plone import api
from cirb.blog.interfaces import IBlogContainer
from plone.contentrules.rule.interfaces imp... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/created_objects/item/service_principal/service_principal_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 |
/naif_de440-2020.12.21-py3-none-any.whl/naif_de440/fetch.py | import argparse
import hashlib
import os
import requests
URL = "https://naif.jpl.nasa.gov/pub/naif/generic_kernels/spk/planets/de440.bsp"
FILE = os.path.join(os.path.dirname(__file__), "de440.bsp")
MD5_FILE = os.path.join(os.path.dirname(__file__), "de440.md5")
def fetch_file(url: str, output_file: str):
"""
... | PypiClean |
/dash_ifc_wtg-0.0.3.tar.gz/dash_ifc_wtg-0.0.3/dash_ifc_wtg/__init__.py | from __future__ import print_function as _
import os as _os
import sys as _sys
import json
import dash as _dash
# noinspection PyUnresolvedReferences
from ._imports_ import *
from ._imports_ import __all__
if not hasattr(_dash, '__plotly_dash') and not hasattr(_dash, 'development'):
print('Dash was not successf... | PypiClean |
/pythondata_misc_opentitan-0.0.post5512-py3-none-any.whl/pythondata_misc_opentitan/resources/hw/vendor/lowrisc_ibex/vendor/google_riscv-dv/pygen/pygen_src/isa/riscv_floating_point_instr.py | import logging
import vsc
from pygen_src.isa.riscv_instr import riscv_instr
from pygen_src.riscv_instr_pkg import (pkg_ins, riscv_fpr_t, riscv_instr_format_t,
riscv_instr_category_t)
@vsc.randobj
class riscv_floating_point_instr(riscv_instr):
def __init__(self):
supe... | PypiClean |
/git_revise-0.7.0-py3-none-any.whl/gitrevise/utils.py | from __future__ import annotations
from typing import Any, List, Optional, Sequence, Tuple
from subprocess import CompletedProcess, run, CalledProcessError
from pathlib import Path
import textwrap
import sys
import os
import re
from .odb import Repository, Commit, Tree, Oid, Reference
class EditorError(Exception):
... | PypiClean |
/platon.py-1.3.7.tar.gz/platon.py-1.3.7/platonpm/package.py | import json
from pathlib import (
Path,
)
from typing import (
TYPE_CHECKING,
Any,
Dict,
Generator,
Iterable,
List,
Optional,
Tuple,
Type,
Union,
cast,
)
from platon_typing import (
URI,
Address,
ContractName,
Manifest,
)
from platon_utils import (
to... | PypiClean |
/Scrapyer-1.5.13.tar.gz/Scrapyer-1.5.13/scrapy/spidermiddlewares/offsite.py | import re
import logging
import warnings
from scrapy import signals
from scrapy.http import Request
from scrapy.utils.httpobj import urlparse_cached
logger = logging.getLogger(__name__)
class OffsiteMiddleware:
def __init__(self, stats):
self.stats = stats
@classmethod
def from_crawler(cls, cr... | PypiClean |
/django-geoposition-2-0.3.4.tar.gz/django-geoposition-2-0.3.4/README.rst | ==================
django-geoposition
==================
A model field that can hold a geoposition (latitude/longitude), and corresponding admin/form widget.
.. image:: https://badge.fury.io/py/django-geoposition.svg
:target: https://badge.fury.io/py/django-geoposition
.. image:: https://travis-ci.org/philippbosc... | PypiClean |
/jax-md-0.2.8.tar.gz/jax-md-0.2.8/jax_md/util.py | from typing import Iterable, Union, Optional, Any
from jax.tree_util import register_pytree_node
from jax.lib import xla_bridge
import jax.numpy as jnp
from jax import jit
from functools import partial
import numpy as onp
Array = jnp.ndarray
PyTree = Any
i16 = jnp.int16
i32 = jnp.int32
i64 = jnp.int64
f32 = jnp.f... | PypiClean |
/django-nomad-blog-2.1.0.tar.gz/django-nomad-blog-2.1.0/CHANGELOG.rst | =========
CHANGELOG
=========
Version 2.1.0
=============
* Add bio field to blog users so we can have a different user description
for each blog belonging to.
Version 2.0.1
=============
* Fix new package name
Version 2.0.0
=============
* Remove example projects, templatetags.
* Reset south migrations and fix... | PypiClean |
/rb-1.8.tar.gz/rb-1.8/README.md | # rb

rb - the redis blaster.
The fastest way to talk to many redis nodes. Can do routing as well as
blindly blasting commands to many nodes. How does it work?
For full documentation see [rb.rtfd.org](http://rb.rtfd.org/)
## Quickst... | PypiClean |
/pulumi_oci-1.9.0a1693465256.tar.gz/pulumi_oci-1.9.0a1693465256/pulumi_oci/identity/get_domains_app.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__ = [
'GetDomainsAppResult',
'AwaitableGetDomainsAppResult',
'get_domains_app',
'get_domains_app_output',
]
@pulum... | PypiClean |
/isedit-0.3.0.tar.gz/isedit-0.3.0/js/node_modules/ajv/lib/keyword.js | 'use strict';
var IDENTIFIER = /^[a-z_$][a-z0-9_$-]*$/i;
var customRuleCode = require('./dotjs/custom');
var definitionSchema = require('./definition_schema');
module.exports = {
add: addKeyword,
get: getKeyword,
remove: removeKeyword,
validate: validateKeyword
};
/**
* Define custom keyword
* @this Ajv
... | PypiClean |
/aliya_client-0.0.1-py3-none-any.whl/common/metaclasses.py | import dis
class ServerMaker(type):
'''
Метакласс, проверяющий что в результирующем классе нет клиентских
вызовов таких как: connect. Также проверяется, что серверный
сокет является TCP и работает по IPv4 протоколу.
'''
def __init__(cls, clsname, bases, clsdict):
# Список методов, кото... | PypiClean |
/aps_cloud_util-0.1.0-py3-none-any.whl/fivetran/fivetran_response.py | import collections
import json
import logging
from datetime import datetime as dt
class TypedRecords(collections.UserList):
"""Class to create records objects for a fivetran schema.
:param records: The records of the entity.
"""
def __init__(self, records: list[dict] = None):
super().__init__... | PypiClean |
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/metastore/v1beta/get_service.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__ = [
'GetServiceResult',
'AwaitableGetServiceResult',
'get_service',
'get_service_output',
]
@pulumi.output_type... | PypiClean |
/python_asip_client-1.0.9-py3-none-any.whl/python_asip_client/examples/Potentiometer.py | __author__ = 'Gianluca barbon'
from serial_board import SerialBoard
import sys
import time
# this class provides a simple example of how it is possible to read analog values into the Arduino
# in this case, the readings we get control the rate at which the LED blinks.
class Potentiometer(SerialBoard):
def __ini... | PypiClean |
/coloredlogger-1.3.12.tar.gz/coloredlogger-1.3.12/README.rst | .. role:: cmd(code)
:language: python
.. role:: red
.. role:: green
.. role:: blue
.. role:: teal
************************
ColoredLogger for Python
************************
.. image:: https://img.shields.io/pypi/v/coloredlogger.svg
:target: https://pypi.python.org/pypi/coloredlogger/
.. image:: https://img... | PypiClean |
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/models/workflow_sample.py | import datetime
from typing import Any, cast, Dict, List, Optional, Type, TypeVar, Union
import attr
from dateutil.parser import isoparse
from ..extensions import NotPresentError
from ..types import UNSET, Unset
T = TypeVar("T", bound="WorkflowSample")
@attr.s(auto_attribs=True, repr=False)
class WorkflowSample:
... | PypiClean |
/reportlab_x-3.4.0.2-cp34-cp34m-macosx_10_10_x86_64.whl/reportlab/graphics/barcode/qr.py |
__all__ = ('QrCodeWidget')
import itertools
from reportlab.platypus.flowables import Flowable
from reportlab.graphics.shapes import Group, Rect
from reportlab.lib import colors
from reportlab.lib.validators import isNumber, isNumberOrNone, isColor, isString, Validator
from reportlab.lib.attrmap import AttrMap, AttrM... | PypiClean |
/django-mobile-0.7.0.tar.gz/django-mobile-0.7.0/django_mobile/middleware.py | import re
from django_mobile import flavour_storage
from django_mobile import set_flavour, _init_flavour
from django_mobile.conf import settings
class SetFlavourMiddleware(object):
def process_request(self, request):
_init_flavour(request)
if settings.FLAVOURS_GET_PARAMETER in request.GET:
... | PypiClean |
/django_extjs4-1.2.0-extjs4.2.1.tar.gz/django_extjs4-1.2.0-extjs4.2.1/extjs4/static/extjs4/src/lang/Error.js | Ext.Error = Ext.extend(Error, {
statics: {
/**
* @property {Boolean} ignore
* Static flag that can be used to globally disable error reporting to the browser if set to true
* (defaults to false). Note that if you ignore Ext errors it's likely that some other code may fail
... | PypiClean |
/ZoomFoundry-6.21.0-py3-none-any.whl/zoom/site.py | import logging
import os
import zoom
import zoom.apps
import zoom.config
from zoom.context import context
import zoom.helpers
from zoom.helpers import link_to, mail_to
from zoom.utils import dedup, existing
from zoom.tools import zoompath
isdir = os.path.isdir
isfile = os.path.isfile
split = os.path.split
realpath =... | PypiClean |
/pythondata_misc_opentitan-0.0.post5512-py3-none-any.whl/pythondata_misc_opentitan/resources/hw/dv/doc/dv_doc_template.md | ---
title: "FOO DV document"
---
<!-- Copy this file to hw/ip/foo/doc/index.md and make changes as needed.
For convenience 'foo' in the document can be searched and replaced easily with the
desired IP (with case sensitivity!). Also, use the testbench block diagram
located at OpenTitan team drive / 'design verification... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_8/models/policy_rule_quota.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_8 import models
class PolicyRuleQuota(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is... | PypiClean |
/dojah_python_sdk-4.1.0.tar.gz/dojah_python_sdk-4.1.0/dojah_client/paths/api_v1_document_analysis/post.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from dojah_client.request_before_hook import request_before_hook
import json
from urllib3._collections import HTTPHeaderDict
from dojah_client.api_response import AsyncGeneratorResponse
from dojah_client import api_client, exceptions
from dateti... | PypiClean |
/filterify-0.0.1.tar.gz/filterify-0.0.1/scripts/docs.py | import os
import re
import shutil
from http.server import HTTPServer, SimpleHTTPRequestHandler
from multiprocessing import Pool
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import mkdocs.commands.build
import mkdocs.commands.serve
import mkdocs.config
import mkdocs.utils
import typer
import ... | PypiClean |
/pypawapi-2.0.0-py3-none-any.whl/pawapi/pawapi.py | from __future__ import annotations
__all__ = ["Pawapi"]
from typing import Optional
from .api import AlwaysOnTask
from .api import Console
from .api import Cpu
from .api import File
from .api import Python
from .api import ScheduledTask
from .api import Students
from .api import System
from .api import Webapp
from .... | PypiClean |
/criteo_marketing_transition-1.0.3.tar.gz/criteo_marketing_transition-1.0.3/criteo_marketing_transition/rest.py | from __future__ import absolute_import
import io
import json
import logging
import re
import ssl
from datetime import datetime, timedelta
import certifi
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import urlencode
try:
import urllib3
except ImportError:
raise ImportEr... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/latest/get_express_route_circuit.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'GetExpressRouteCircuitResult',
'AwaitableGetExpressRouteCircuitResult',
'get_express_route_circuit',
]
@pulumi.output_type
... | PypiClean |
/gpg_vault-1.5.1-py3-none-any.whl/gpg_vault/client.py |
import socket
import re
import os
import subprocess
import time
import sys
import socket
import errno
from gpg_vault import config, vault, log, errors, utils
def killServer():
log.info("killing server")
sendRequest(['quit'])
def connect(sock, port):
try:
log.verbose(f"connecting to server on p... | PypiClean |
/matrix-synapse-ray-1.12.0.4.tar.gz/matrix-synapse-ray-1.12.0.4/synapse/handlers/ui_auth/checkers.py | import logging
from canonicaljson import json
from twisted.internet import defer
from twisted.web.client import PartialDownloadError
from synapse.api.constants import LoginType
from synapse.api.errors import Codes, LoginError, SynapseError
from synapse.config.emailconfig import ThreepidBehaviour
logger = logging.ge... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.