id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/tensorflow_rocm-2.12.0.560-cp310-cp310-manylinux2014_x86_64.whl/tensorflow/lite/python/convert_saved_model.py | """Functions to convert SavedModel to frozen GraphDefs."""
from tensorflow.lite.python import util
from tensorflow.lite.python.convert_phase import Component
from tensorflow.lite.python.convert_phase import convert_phase
from tensorflow.lite.python.convert_phase import SubComponent
from tensorflow.python.client import... | PypiClean |
/ooouno-2.1.2-py3-none-any.whl/ooo/dyn/sdbc/transaction_isolation.py | import uno
from enum import IntFlag
from typing import TYPE_CHECKING
from ooo.oenv.env_const import UNO_ENVIRONMENT, UNO_RUNTIME
_DYNAMIC = False
if (not TYPE_CHECKING) and UNO_RUNTIME and UNO_ENVIRONMENT:
_DYNAMIC = True
if not TYPE_CHECKING and _DYNAMIC:
# document generators will most likely not see this.
... | PypiClean |
/TimeSide-0.9.6.tar.gz/TimeSide-0.9.6/timeside/player/static/timeside2/app/bower_components/jquery/src/attributes/classes.js | define([
"../core",
"../var/rnotwhite",
"../var/strundefined",
"../data/var/data_priv",
"../core/init"
], function( jQuery, rnotwhite, strundefined, data_priv ) {
var rclass = /[\t\r\n\f]/g;
jQuery.fn.extend({
addClass: function( value ) {
var classes, elem, cur, clazz, j, finalValue,
proceed = typeof valu... | PypiClean |
/openmm_mdanalysis_reporter-0.1-py3-none-any.whl/mdareporter/mdareporter.py | import MDAnalysis as mda
from MDAnalysis.lib.mdamath import triclinic_box
from openmm import unit
import numpy as np
class MDAReporter(object):
"""MDAReporter outputs a series of frames from a Simulation to any file format supported by MDAnalysis.
To use it, create a MDAReporter, then add it to the Simulation'... | PypiClean |
/fast_rl-1.0.1.tar.gz/fast_rl-1.0.1/fast_rl/core/data_block.py | import logging
from fastai.data_block import ItemList
logging.basicConfig()
import gym
from fastai.basic_train import LearnerCallback, DatasetType, DataLoader, Dataset, Tensor
from fastai.tabular.data import def_emb_sz
from gym import Wrapper, Env
from gym.spaces import Discrete, Box, MultiDiscrete
import gc
# from... | PypiClean |
/svdiff-pytorch-0.2.0.tar.gz/svdiff-pytorch-0.2.0/svdiff_pytorch/diffusers_models/resnet.py | from functools import partial
from typing import Optional
import torch
import torch.nn as nn
import torch.nn.functional as F
from svdiff_pytorch.diffusers_models.attention import AdaGroupNorm
from svdiff_pytorch.layers import SVDConv1d, SVDConv2d, SVDLinear, SVDGroupNorm, SVDLayerNorm
class Upsample1D(nn.Module):
... | PypiClean |
/minos_microservice_saga-0.7.0-py3-none-any.whl/minos/saga/middleware.py | from collections.abc import (
Awaitable,
Callable,
)
from typing import (
Optional,
)
from uuid import (
UUID,
)
from minos.aggregate import (
TransactionEntry,
)
from minos.networks import (
REQUEST_HEADERS_CONTEXT_VAR,
BrokerRequest,
Request,
Response,
)
from .utils import (
... | PypiClean |
/sfapi_client-0.0.7.tar.gz/sfapi_client-0.0.7/src/sfapi_client/_sync/users.py | from typing import List, Optional, Callable
from functools import wraps
from pydantic import ConfigDict
from .._models import (
UserInfo as UserBase,
GroupList as GroupsResponse,
)
from .projects import Project, Role
from ..exceptions import SfApiError
def check_auth(method: Callable):
@wraps(method)
... | PypiClean |
/django-tethys_gizmos-1.0.5.tar.gz/django-tethys_gizmos-1.0.5/tethys_gizmos/static/tethys_gizmos/vendor/bootstrap_switch/README.md | # Bootstrap Switch
[](https://david-dm.org/nostalgiaz/bootstrap-switch)
[](https://david-dm.org/nostalgiaz/bootstrap-switch#... | PypiClean |
/gensim_plural-3.8.1-cp36-cp36m-macosx_10_7_x86_64.whl/gensim/test/simspeed2.py | import logging
import sys
import itertools
import os
import math
from time import time
import gensim
if __name__ == '__main__':
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO)
logging.info("running %s", " ".join(sys.argv))
# check and process cmdline input
... | PypiClean |
/py_ask_sdk_test-1.3.tar.gz/py_ask_sdk_test-1.3/src/py_ask_sdk_test/request_builders/audio_player_intent_request_builder.py | from ask_sdk_model.interfaces.audioplayer import PlayerActivity, AudioPlayerState
from py_ask_sdk_test.request_builders.abstract_request_builder import SkillSettings, RequestEnvelope
from py_ask_sdk_test.request_builders.intent_request_builder import IntentRequestBuilder
class AudioPlayerResumeIntentRequestBuilder(I... | PypiClean |
/autoretouch_service_library-2.3.29-py3-none-any.whl/autoretouchlib/tracing.py | import functools
import logging
import os
import re
from typing import Callable, Optional, List
from opencensus.trace import execution_context, utils
from opencensus.trace.print_exporter import PrintExporter
from opencensus.trace.tracer import Tracer
from opencensus.trace.span import SpanKind
from opencensus.trace.sam... | PypiClean |
/txt_to_html-0.0.1.tar.gz/txt_to_html-0.0.1/resources/MathJax-2.7.2/localization/zh-hant/MathML.js | MathJax.Localization.addTranslation("zh-hant","MathML",{version:"2.7.2",isLoaded:true,strings:{BadMglyph:"\u4E0D\u6B63\u78BA\u7684mglyph\uFF1A%1",BadMglyphFont:"\u932F\u8AA4\u5B57\u578B\uFF1A%1",MathPlayer:"MathJax\u6C92\u6709\u8FA6\u6CD5\u8A2D\u7F6EMathPlayer\u3002\n\n\u5982\u679CMathPlayer\u672A\u88AB\u5B89\u88DD\uFF... | PypiClean |
/unblock-1.5.0.1.tar.gz/unblock-1.5.0.1/superset/migrations/versions/956a063c52b3_adjusting_key_length.py | import sqlalchemy as sa
from alembic import op
# revision identifiers, used by Alembic.
revision = "956a063c52b3"
down_revision = "f0fbf6129e13"
def upgrade():
with op.batch_alter_table("clusters", schema=None) as batch_op:
batch_op.alter_column(
"broker_endpoint",
existing_type=s... | PypiClean |
/lizard-ui-5.3.tar.gz/lizard-ui-5.3/lizard_ui/static/openlayers/1.12-r7/lib/OpenLayers/Control/PanPanel.js | * @requires OpenLayers/Control/Panel.js
* @requires OpenLayers/Control/Pan.js
*/
/**
* Class: OpenLayers.Control.PanPanel
* The PanPanel is visible control for panning the map North, South, East or
* West in small steps. By default it is drawn in the top left corner of the
* map.
*
* Note:
* If you wish to ... | PypiClean |
/HEBO-0.3.2-py3-none-any.whl/hebo/acquisitions/acq.py |
# This program is free software; you can redistribute it and/or modify it under
# the terms of the MIT license.
# This program is distributed in the hope that it will be useful, but WITHOUT ANY
# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
# PARTICULAR PURPOSE. See the MIT License ... | PypiClean |
/delphix_dct_api-9.0.0rc1-py3-none-any.whl/delphix/api/gateway/model/connector_update_parameters.py | import re # noqa: F401
import sys # noqa: F401
from delphix.api.gateway.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 |
/requests_utils-0.2.1-py3-none-any.whl/requests_utils/requests_api_with_more_tools.py | from __future__ import annotations
from functools import lru_cache
import asyncio
import logging
# from typing import Literal, Any, TypedDict
from requests import sessions, exceptions
if __name__ in {'__main__', 'requests_api_with_more_tools'}:
import response_proxy
from dealing_unhashable_args import freeze... | PypiClean |
/mfem-4.5.2.1.tar.gz/mfem-4.5.2.1/examples/ex4.py | from mfem import path
import mfem.ser as mfem
from mfem.ser import intArray
from os.path import expanduser, join, dirname, exists
import numpy as np
from numpy import sin, array, cos
set_bc = True
static_cond = False
hybridization = False
freq = 1.0
kappa = np.pi*freq
order = 1
path = dirname((__file__))
meshfile ... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/sites/item/lists/item/subscriptions/item/reauthorize/reauthorize_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 |
/KratosFluidDynamicsApplication-9.4-cp38-cp38-win_amd64.whl/KratosMultiphysics/FluidDynamicsApplication/trilinos_navier_stokes_solver_fractionalstep.py | import KratosMultiphysics
import KratosMultiphysics.mpi as KratosMPI # MPI-python interface
# Import applications
import KratosMultiphysics.TrilinosApplication as KratosTrilinos # MPI solvers
from KratosMultiphysics.FluidDynamicsApplication import TrilinosExtension as TrilinosFluid
from Kr... | PypiClean |
/nlp_datasets-1.3.0.tar.gz/nlp_datasets-1.3.0/nlp_datasets/seq_classify/seq_classify_dataset.py | import tensorflow as tf
from nlp_datasets.dataset import Dataset
class SeqClassifyDataset(Dataset):
def __init__(self, x_tokenizer, config=None):
self.x_tokenizer = x_tokenizer
default_config = self._get_default_config()
if config:
default_config.update(config)
self.c... | PypiClean |
/pylinger-1.1.1-py3-none-any.whl/linger/initialize.py | import itertools
from typing import Tuple
import torch
import torch.nn as nn
import linger
from .config import config
from .modules import *
from .onnx import export as linger_export
from .ops import *
from .ops.iqtensor import iqAddLayer, iqDivLayer, iqMulLayer, iqSumLayer
from .ops.linger_functional import bmm as ... | PypiClean |
/bitsmiths-loco-2.2.1.tar.gz/bitsmiths-loco-2.2.1/bs_loco/db/dao_async/postgresql/no_templ_lock_one.py | import datetime
import uuid
import time
import mettle.lib
import mettle.io
import mettle.db
from bs_loco.db.tables.no_templ_key import tNoTemplKey
from bs_loco.db.tables.no_templ import tNoTempl
class dNoTemplLockOne:
__slots__ = ("_dbcon", "_dbstmnt", "irec", "orec")
def __init__(self, dbcon: mettle.db.IACo... | PypiClean |
/compmake-z6-6.1.5.tar.gz/compmake-z6-6.1.5/docs/source/limitations.rst |
.. contents::
:class: pagetoc
.. _`limitations`:
Limitations and assumptions
---------------------------
The goal of compmake is to be a friendly, compact, simple assistant
for batch operations. To keep simplicity and maintanability high,
you have to define very well the features that you want to have.
Therefor... | PypiClean |
/blobstash-base-0.1.0.tar.gz/blobstash-base-0.1.0/blobstash/base/blobstore.py | from hashlib import blake2b
from requests import HTTPError
from blobstash.base.client import Client
from blobstash.base.iterator import BasePaginationIterator
from blobstash.base.error import BlobStashError
class BlobStoreError(BlobStashError):
"""Base error for the blobstore module."""
class BlobNotFoundErro... | PypiClean |
/pulumi_huaweicloud-0.0.8.tar.gz/pulumi_huaweicloud-0.0.8/pulumi_huaweicloud/iam/get_custom_role.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'GetCustomRoleResult',
'AwaitableGetCustomRoleResult',
'get_custom_role',
'get_custom_role_output',
]
@pulumi.output_type
class Ge... | PypiClean |
/wxPython-zombie-3.1.5.6.tar.gz/wxPython-zombie-3.1.5.6/wx/lib/docview.py |
import os
import os.path
import shutil
import wx
import sys
from functools import cmp_to_key
_ = wx.GetTranslation
#----------------------------------------------------------------------
# docview globals
#----------------------------------------------------------------------
DOC_SDI = 1
DOC_MDI = 2
DOC_NEW = 4
DO... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/deinococcusmaricopensis.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def DeinococcusMaricopensis(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/string",
**additional_graph_kwargs... | PypiClean |
/date_time_literal-1.1.0-py3-none-any.whl/date_time_literal/literal.py | class ConvertTime:
def __init__(self, time, time_format='s'):
self.time = time
self.time_: str = time_format
@property
def convert_time(self):
slug_time = str(self.time)
first = slug_time.split("-")
second = first[0:2]
third = first[2]
fourth = third.... | PypiClean |
/pytorch_tools-0.5.5.tar.gz/pytorch_tools-0.5.5/pytorch_tools/models/bit_resnet.py |
# Lint as: python3
"""Bottleneck ResNet v2 with GroupNorm and Weight Standardization."""
import os
import numpy as np
from copy import deepcopy
from functools import wraps
from urllib.parse import urlparse
from collections import OrderedDict # pylint: disable=g-importing-member
import torch
import torch.nn as nn
imp... | PypiClean |
/pyfundamentus-0.0.7a0.tar.gz/pyfundamentus-0.0.7a0/fundamentus/utils/indicator_names.py |
# ------------------------------------------------------------------------------
# Name: indicator_names.py
# Version: 0.0.1
#
# Summary: Python Fundamentus
# Python Fundamentus is a Python API that allows you to quickly
# access the main fundamental indicators of the main stocks
# in ... | PypiClean |
/powerline-status-2.7.tar.gz/powerline-status-2.7/powerline/renderer.py | from __future__ import (unicode_literals, division, absolute_import, print_function)
import sys
import os
import re
import operator
from itertools import chain
from powerline.theme import Theme
from powerline.lib.unicode import unichr, strwidth_ucs_2, strwidth_ucs_4
NBSP = ' '
np_control_character_translations =... | PypiClean |
/nlp_tools-1.0.tar.gz/nlp_tools-1.0/nlp_tools/tasks/classification/cnn_attention_model.py | from abc import ABC
from typing import Dict,Any
import tensorflow as tf
import tensorflow.keras.layers as L
from tensorflow import keras
from nlp_tools.logger import logger
from nlp_tools.tasks.classification.abc_model import ABCClassificationModel
class CNN_Attention_Model(ABCClassificationModel, ABC):
@classm... | PypiClean |
/django-cookiesession-0.1.1.tar.gz/django-cookiesession-0.1.1/docs/getting_started.rst | .. _getting_started:
===================================
Getting Started with Cookie Session
===================================
Installation
============
1. Install it from the `Python Package Index <http://pypi.python.org/>`_ ::
easy_install cookiesession
2. Comment out, or delete ``django.contrib.sessions.mid... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/desktopvirtualization/v20201110preview/get_host_pool.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'GetHostPoolResult',
'AwaitableGetHostPoolResult',
'get_host_pool',
]
@pulumi.output_type
class GetHostPoolResult:
"""
... | PypiClean |
/TimeSide-0.9.6.tar.gz/TimeSide-0.9.6/timeside/server/south_migrations/0001_initial.py | from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Adding model 'Selection'
db.create_table('timeside_selections', (
('id', self.gf('d... | PypiClean |
/pm4ngs-0.0.21.tar.gz/pm4ngs-0.0.21/docs/source/pipelines/sampleSheet.rst | .. _sampleSheet:
############
Sample sheet
############
A CSV file describing samples, conditions and replicate number is required during the PM4NGS project creation.
PM4NGS will copy the sample sheet file to the folder **data/{{dataset_name}}** with the standard name
**sample_table.csv**.
******************
Single... | PypiClean |
/cmd2-2.4.3.tar.gz/cmd2-2.4.3/examples/read_input.py | from typing import (
List,
)
import cmd2
EXAMPLE_COMMANDS = "Example Commands"
class ReadInputApp(cmd2.Cmd):
def __init__(self, *args, **kwargs) -> None:
super().__init__(*args, **kwargs)
self.prompt = "\n" + self.prompt
self.custom_history = ['history 1', 'history 2']
@cmd2.wit... | PypiClean |
/monocdk.experiment-1.66.0-py3-none-any.whl/monocdk_experiment/aws_logs_destinations/__init__.py | import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import typing_extensions
from .._jsii import *
from .. import Construct as _Construct_f50a3f53
from ..aws_kinesis import IStream as _IStream_c7ff3ed6
from ..aws_lambda import IFunction as _IFunction_1c1de0bc
from ..aw... | PypiClean |
/morris-1.2.tar.gz/morris-1.2/HISTORY.rst | .. :changelog:
History
=======
1.2 (2015-02-030
----------------
* Merge backwards compatibility features for Plainbox migration.
(signal_name, SignalInterceptorMixIn)
* Fix a bug in signal.__repr__()
* Document internals better
1.1 (2015-02-02)
----------------
* Merge ``Signal`` and ``signal`` into one class.
... | PypiClean |
/gymnastics-0.0.1.tar.gz/gymnastics-0.0.1/README.md | 
<p align="center">
<!-- license -->
<a href="https://tldrlegal.com/license/apache-license-2.0-%28apache-2.0%29">
<img src="https://img.shields.io/github/license/jack-willturner/gymNAStics" alt="License" height="20">
</a>
<!-- CI status -->
<a href="">
<img src="h... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/response/AlipayEcoMycarParkingConfigQueryResponse.py | import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.InterfaceInfoList import InterfaceInfoList
class AlipayEcoMycarParkingConfigQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayEcoMycarParkingConfigQueryResponse, self).__init__()
... | PypiClean |
/bitsmiths_monitor-2.2.2-py3-none-any.whl/bs_monitor/db/dao_async/postgresql/job_inst_ready_to_run.py | import copy
import datetime
import uuid
import time
import mettle.lib
import mettle.io
import mettle.db
from bs_monitor.db.tables.job_inst import tJobInst
class dJobInstReadyToRun:
__slots__ = ("_dbcon", "_dbstmnt", "orec")
def __init__(self, dbcon: mettle.db.IAConnect):
"""
Constructor.
... | PypiClean |
/django-sysace-1.2.8.tar.gz/django-sysace-1.2.8/ace/static/bower_components/jquery/src/css.js | define([
"./core",
"./var/pnum",
"./core/access",
"./css/var/rmargin",
"./css/var/rnumnonpx",
"./css/var/cssExpand",
"./css/var/isHidden",
"./css/var/getStyles",
"./css/curCSS",
"./css/defaultDisplay",
"./css/addGetHookIf",
"./css/support",
"./data/var/data_priv",
"./core/init",
"./css/swap",
"./core/r... | PypiClean |
/x-scaffold-2.0.12.tar.gz/x-scaffold-2.0.12/x_scaffold/plugins/fetch.py | import logging
import os
import pathlib
from ..context import ScaffoldContext
from ..rendering import render, render_options, render_token_file, render_tokens
from ..steps import ScaffoldStep
from ..runtime import ScaffoldRuntime
from ..plugin import ScaffoldPluginContext
from fnmatch import fnmatch
_log = logging... | PypiClean |
/jni-1.0.0b17.zip/jni-1.0.0b17/README.rst | jni
===
Python bridge for the Java Native Interface.
Overview
========
| |package_bold| is a complete bridge between Python and Java JNI.
| It is an effort to allow python programs full access to Java JNI API.
`PyPI record`_.
`Documentation`_.
| |package_bold| is a lightweight Python package, based on the *ctypes... | PypiClean |
/transpose_defi_sdk-1.0.1.tar.gz/transpose_defi_sdk-1.0.1/README.md | # transpose-defi-sdk
The Transpose DeFi SDK is a simple Python package for performing multi-chain DeFi analysis using the real-time Transpose SQL API. At the moment, the only supported functionality is the ability to download or chart OHLC prices for any token on Ethereum, Goerli, and Polygon.
The underlying price da... | PypiClean |
/pyf.services-2.0.2.tar.gz/pyf.services-2.0.2/pyf/services/model/__init__.py | """The application's model objects"""
from zope.sqlalchemy import ZopeTransactionExtension
from sqlalchemy.orm import scoped_session, sessionmaker
#from sqlalchemy import MetaData
from sqlalchemy.ext.declarative import declarative_base
# Global session manager: DBSession() returns the Thread-local
# session object ap... | PypiClean |
/podiant-notifications-1.3.0.tar.gz/podiant-notifications-1.3.0/notifications/views.py | from django.views.generic.list import ListView
from django.views.generic.detail import DetailView
from pubsub import channels
from .models import Notification
class NotificationListView(ListView):
model = Notification
def get_queryset(self):
return super().get_queryset().filter(
user=self... | PypiClean |
/nni_daily-1.5.2005180104-py3-none-manylinux1_x86_64.whl/nni_daily-1.5.2005180104.data/data/nni/node_modules/needle/lib/parsers.js |
var Transform = require('stream').Transform;
var sax = require('sax');
function parseXML(str, cb) {
var obj, current, parser = sax.parser(true, { trim: true, lowercase: true })
parser.onerror = parser.onend = done;
function done(err) {
parser.onerror = parser.onend = function() { }
cb(err, obj)
}
... | PypiClean |
/dmr_kaitai-1.0-py3-none-any.whl/okdmr/kaitai/hytera/ip_site_connect_heartbeat.py |
import kaitaistruct
from kaitaistruct import KaitaiStruct, KaitaiStream, BytesIO
if getattr(kaitaistruct, "API_VERSION", (0, 9)) < (0, 9):
raise Exception(
"Incompatible Kaitai Struct Python API: 0.9 or later is required, but you have %s"
% (kaitaistruct.__version__)
)
class IpSiteConnectHe... | PypiClean |
/deci_platform_client-7.2.0-py3-none-any.whl/deci_platform_client/model/api_response_dict_str_api_common_data_types_global_configuration_data_types_accuracy_metrics_schema_response.py | from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
import typing_extensions # noqa: F401
import uuid # noqa: F401
import frozendict # noqa: F401
from deci_platform_client import sc... | PypiClean |
/fds.sdk.FactSetRBICS-0.21.7-py3-none-any.whl/fds/sdk/FactSetRBICS/model/structure.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.FactSetRBICS.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_typ... | PypiClean |
/pytroll-monitor-0.3.0.tar.gz/pytroll-monitor-0.3.0/pytroll_monitor/checkmk_logger.py |
# Copyright (c) 2021
# Author(s):
# Gerrit Holl <gerrit.holl@dwd.de>
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later versio... | PypiClean |
/pyroute2.core-0.6.13.tar.gz/pyroute2.core-0.6.13/pr2modules/iproute/req.py | import logging
from collections import OrderedDict
from socket import AF_INET, AF_INET6
from pr2modules.common import basestring
from pr2modules.netlink.rtnl.fibmsg import FR_ACT_NAMES
from pr2modules.netlink.rtnl.ifinfmsg import ifinfmsg, protinfo_bridge
log = logging.getLogger(__name__)
class IPRequest(OrderedDic... | PypiClean |
/verba_rag-0.2.2-py3-none-any.whl/verba_rag/server/frontend/out/_next/static/chunks/280-74dc7793334d9da5.js | "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[280],{85280:function(t,e,r){r.d(e,{t7:function(){return P}});var n,o,i,l,s,a,c,u,f,d,h,p=r(87462);function m(t){if(void 0===t)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t,e){return(v=Object.s... | PypiClean |
/MySQL-python-glb-1.2.6.tar.gz/MySQL-python-glb-1.2.6/README.md | MySQLdb1
========
This is the legacy (1.x) version of MySQLdb. While it is still being
maintained, there will not be a lot of new feature development.
[](http://travis-ci.org/farcepest/MySQLdb1)
TODO
----
* A bugfix 1.2.4 release
* A 1.3.0 release... | PypiClean |
/th2_data_services_lwdp-2.1.0.2.tar.gz/th2_data_services_lwdp-2.1.0.2/th2_data_services/data_source/lwdp/adapters/event_adapters.py | from typing import Optional, Iterable
from th2_data_services.interfaces.adapter import IRecordAdapter
from th2_data_services.data_source.lwdp.struct import grpc_event_struct, EventStruct
class DeleteEventWrappersAdapter(IRecordAdapter):
"""Adapter that deletes unnecessary wrappers in events.
It used for eve... | PypiClean |
/us2djongo-1.3.44.tar.gz/us2djongo-1.3.44/djongo/operations.py | import pytz
from django.conf import settings
from django.db.backends.base.operations import BaseDatabaseOperations
from django.utils import timezone
import bson
import datetime
import calendar
class DatabaseOperations(BaseDatabaseOperations):
def quote_name(self, name):
if name.startswith('"') and name.e... | PypiClean |
/zs_ebay_sdk-0.0.1-py3-none-any.whl/ebay_sdk/core/trading/best_offer.py | from ebay_sdk.base_trading_api import EbayTradingAPI
from .category import GetEbayCategoryFeatures
from .messages import AbstractSendMessage
__all__ = [
"GetCategoryBestOfferFeatures",
"GetListingBestOffers",
"RespondToListingBestOffer",
"SendBestOfferMessage",
]
class GetCategoryBestOfferFeatures(G... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_1/models/volume_patch.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_1 import models
class VolumePatch(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is att... | PypiClean |
/sgm_data-0.5.0b0-py3-none-any.whl/sgmdata/plots/callbacks/eemscan/flslider_2.x.x.js | const select = sel.data;
const cent = flslider.value;
const wid = wdslider.value;
const rect = fluo.data;
const xarr = xy.data['xaxis'][0];
const yarr = xy.data['yaxis'][0];
const d1 = s1.data['image'][0];
const d2 = xrf.data;
const d3 = xas.data;
const xlength = xarr.length;
const sum = 0.0;
const inds = {x0: xarr[0],... | PypiClean |
/mmps-2.4.0.tar.gz/mmps-2.4.0/mmdet/core/post_processing/bbox_nms_reid.py | from operator import mul
import torch
from mmcv.ops.nms import batched_nms
def multiclass_nms_reid(multi_bboxes,
multi_scores,
multi_reid_feats,
score_thr,
nms_cfg,
max_num=-1,
score_factors=None):
""... | PypiClean |
/twexit-6.43.0b1.tar.gz/twexit-6.43.0b1/twilio/http/validation_client.py | from collections import namedtuple
from requests import Request, Session
from twilio.base.exceptions import TwilioRestException
from twilio.compat import urlparse
from twilio.http import HttpClient
from twilio.http.response import Response
from twilio.jwt.validation import ClientValidationJwt
ValidationPayload = na... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/pinkie/index.js | 'use strict';
var PENDING = 'pending';
var SETTLED = 'settled';
var FULFILLED = 'fulfilled';
var REJECTED = 'rejected';
var NOOP = function () {};
var isNode = typeof global !== 'undefined' && typeof global.process !== 'undefined' && typeof global.process.emit === 'function';
var asyncSetTimer = typeof setImmediate =... | PypiClean |
/tw2.ace-0.2.1.tar.gz/tw2.ace-0.2.1/tw2/ace/static/ace/mode-typescript.js | ace.define('ace/mode/typescript', ['require', 'exports', 'module' , 'ace/lib/oop', 'ace/mode/javascript', 'ace/tokenizer', 'ace/mode/typescript_highlight_rules', 'ace/mode/behaviour/cstyle', 'ace/mode/folding/cstyle', 'ace/mode/matching_brace_outdent'], function(require, exports, module) {
var oop = require("../lib/o... | PypiClean |
/ns-kafka-python-1.4.7.tar.gz/ns-kafka-python-1.4.7/kafka/consumer/multiprocess.py | from __future__ import absolute_import
from collections import namedtuple
import logging
from multiprocessing import Process, Manager as MPManager
import time
import warnings
from kafka.vendor.six.moves import queue # pylint: disable=import-error
from kafka.errors import KafkaError
from kafka.consumer.base import (
... | PypiClean |
/zds-member-0.1.5.tar.gz/zds-member-0.1.5/doc/build/html/_static/underscore.js | (function(){function q(a,c,d){if(a===c)return a!==0||1/a==1/c;if(a==null||c==null)return a===c;if(a._chain)a=a._wrapped;if(c._chain)c=c._wrapped;if(a.isEqual&&b.isFunction(a.isEqual))return a.isEqual(c);if(c.isEqual&&b.isFunction(c.isEqual))return c.isEqual(a);var e=l.call(a);if(e!=l.call(c))return false;switch(e){case... | PypiClean |
/rpmlb-1.1.1-py3-none-any.whl/rpmlb-1.1.1.dist-info/DESCRIPTION.rst | RPM List Builder
================
.. image:: https://img.shields.io/pypi/v/rpmlb.svg
:alt: PyPI
:target: https://pypi.python.org/pypi/rpmlb
.. image:: https://travis-ci.org/sclorg/rpm-list-builder.svg?branch=master
:alt: Travis Build Status
:target: https://travis-ci.org/sclorg/rpm-list-builder
R... | PypiClean |
/fhir_types-0.2.4-py3-none-any.whl/fhir_types/FHIR_ValueSet_Parameter.py | from typing import Any, List, Literal, TypedDict
from .FHIR_Element import FHIR_Element
from .FHIR_string import FHIR_string
# A ValueSet resource instance specifies a set of codes drawn from one or more code systems, intended for use in a particular context. Value sets link between [[[CodeSystem]]] definitions and t... | PypiClean |
/dataretrieval-1.0.5.tar.gz/dataretrieval-1.0.5/demos/hydroshare/USGS_dataretrieval_SiteInventory_Examples.ipynb | # USGS dataretrieval Python Package `what_sites()` Examples
This notebook provides examples of using the Python dataretrieval package to search NWIS for sites within a region with specific data. The dataretrieval package provides a collection of functions to get data from the USGS National Water Information System (NW... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/netapp/ontap/plugins/modules/na_ontap_snapmirror.py | # (c) 2018-2023, NetApp, Inc
# GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt)
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = '''
author: NetApp Ansible Team (@carchi8py) <ng-ansibleteam@netapp.com>
description:
- Crea... | PypiClean |
/datadog_api_client-2.16.0-py3-none-any.whl/datadog_api_client/v1/model/usage_attribution_body.py | from __future__ import annotations
from typing import Union, TYPE_CHECKING
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
datetime,
none_type,
unset,
UnsetType,
)
if TYPE_CHECKING:
from datadog_api_client.v1.model.usage_attribution_tag_names import UsageAttrib... | PypiClean |
/var_print-0.0.6.tar.gz/var_print-0.0.6/var_print/varPrint.py | import inspect
import os
import pickle
import datetime
from pathlib import Path
from pprint import pformat
from textwrap import dedent
from types import GeneratorType
import executing
from colorful_terminal import *
def aktuelle_Zeit():
zeit = datetime.datetime.now()
tag = zeit.strftime("%d")
monat = zei... | PypiClean |
/qtile-0.22.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/libqtile/widget/keyboardkbdd.py |
# type: ignore
import re
from dbus_next.constants import MessageType
from libqtile.log_utils import logger
from libqtile.utils import add_signal_receiver
from libqtile.widget import base
class KeyboardKbdd(base.ThreadPoolText):
"""Widget for changing keyboard layouts per window, using kbdd
kbdd should be... | PypiClean |
/rcsb.exdb-0.98.tar.gz/rcsb.exdb-0.98/rcsb/exdb/utils/ObjectUpdater.py | __docformat__ = "google en"
__author__ = "John Westbrook"
__email__ = "jwest@rcsb.rutgers.edu"
__license__ = "Apache 2.0"
import logging
from rcsb.db.mongo.Connection import Connection
from rcsb.db.mongo.MongoDbUtil import MongoDbUtil
logger = logging.getLogger(__name__)
class ObjectUpdater(object):
"""Utilit... | PypiClean |
/pose_openvr_wrapper-0.3.12.tar.gz/pose_openvr_wrapper-0.3.12/README.md | ### A convenient pose wrapper
#### Requirements
You need steamVR running to use it.
#### Usage
Simple sampling example, return dictionnary poses values converted to different
useful formats.
```
"""Example script using pose_openvr_wrapper."""
import pose_openvr_wrapper
pyopenvr_wrapper = pose_openvr_wrapper.OpenvrW... | PypiClean |
/carl-bench-1.0.0.tar.gz/carl-bench-1.0.0/carl/envs/gymnasium/box2d/parking_garage/street_car.py | from __future__ import annotations
import Box2D
import numpy as np
from Box2D.b2 import circleShape # noqa: F401
from Box2D.b2 import contactListener # noqa: F401
from Box2D.b2 import distanceJointDef # noqa: F401
from Box2D.b2 import edgeShape # noqa: F401
from Box2D.b2 import fixtureDef # noqa: F401
from Box2D.... | PypiClean |
/google-cloud-gke-hub-1.10.1.tar.gz/google-cloud-gke-hub-1.10.1/google/cloud/gkehub_v1beta1/services/gke_hub_membership_service/transports/rest.py |
import dataclasses
import json # type: ignore
import re
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union
import warnings
from google.api_core import (
gapic_v1,
operations_v1,
path_template,
rest_helpers,
rest_streaming,
)
from google.api_core import exceptions as co... | PypiClean |
/mage-ai-0.9.20.tar.gz/mage-ai-0.9.20/mage_ai/orchestration/pipeline_scheduler.py | import asyncio
import os
import traceback
from datetime import datetime, timedelta
from typing import Any, Dict, List, Set, Tuple
import pytz
from dateutil.relativedelta import relativedelta
from sqlalchemy import desc, func
from mage_ai.data_integrations.utils.scheduler import (
clear_source_output_files,
ge... | PypiClean |
/dschmidt-cdktf-provider-google-0.0.1.tar.gz/dschmidt-cdktf-provider-google-0.0.1/src/dschmidt_cdktf_provider_google/data_google_service_account/__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
import constructs
class DataGoogleServiceAccount(
cdktf.TerraformDataSource,
metaclass=jsii.JSIIMeta,
jsii_ty... | PypiClean |
/ponzischeme_game-0.0.3.tar.gz/ponzischeme_game-0.0.3/ponzischeme_game/game.py | import json
from .luxuryTile import LuxuryTile
from .fundCard import FundCard
from .fundingBoard import FundingBoard
from .player import Player
from .status import Status
from .log import Log
from .finance import Finance
import sys
class Game(object):
def __init__(self, players=[{'name': "Alice", 'id': 2}, \
... | PypiClean |
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v2_7_0/job_handler_broker.py | from ..broker import Broker
class JobHandlerBroker(Broker):
controller = "job_handlers"
def index(self, **kwargs):
"""Lists the available job handlers. 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, using this method is mo... | PypiClean |
/maskrcnn-modanet-1.0.3.tar.gz/maskrcnn-modanet-1.0.3/maskrcnn_modanet/cli/main.py | import click, json, os
from maskrcnn_modanet.cli import validators
def print_help(ctx, param, value):
if value is False:
return
click.echo(ctx.get_help())
ctx.exit()
@click.group()
def main():
"""Main CLI."""
pass
@main.group()
def datasets():
''' Manage your datasets
run
\n\n1 -> mas... | PypiClean |
/eisen-core-0.0.9.tar.gz/eisen-core-0.0.9/eisen/models/segmentation/obelisk.py | import torch
import torch.nn.functional as F
from torch import nn
# ATTRIBUTION: the code contained in this file was obtained from https://github.com/mattiaspaul/OBELISK
# the code is licensed under MIT license which is also included below
"""
MIT License
Copyright (c) 2018
Permission is hereby granted, free of ... | PypiClean |
/MAVR-0.93.tar.gz/MAVR-0.93/scripts/primers/filter_degeprime_output.py | __author__ = 'Sergei F. Kliver'
import sys
import argparse
from RouToolPa.Routines import PrimerRoutines
parser = argparse.ArgumentParser()
parser.add_argument("-i", "--input", action="store", dest="input", required=True,
help="Input file with DEGEPRIME output")
parser.add_argument("-o", "--outpu... | PypiClean |
/customgpt_client-1.1.6.tar.gz/customgpt_client-1.1.6/customgpt_client/models/send_message_response_400.py | from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
import attr
from ..models.send_message_response_400_status import SendMessageResponse400Status
from ..types import UNSET, Unset
if TYPE_CHECKING:
from ..models.send_message_response_400_data import SendMessageResponse400Data
T = TypeVar("T... | PypiClean |
/nvidia_dali_cuda110-1.29.0-9289311-py3-none-manylinux2014_x86_64.whl/nvidia/dali/_autograph/pyct/static_analysis/liveness.py | import gast
from nvidia.dali._autograph.pyct import anno
from nvidia.dali._autograph.pyct import cfg
from nvidia.dali._autograph.pyct import transformer
from nvidia.dali._autograph.pyct.static_analysis import annos
class Analyzer(cfg.GraphVisitor):
"""CFG visitor that performs liveness analysis at statement level.... | PypiClean |
/django-speedinfo-2.0.2.tar.gz/django-speedinfo-2.0.2/speedinfo/admin.py |
import csv
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
from django.conf.urls import url
from django.contrib import admin
from django.core.exceptions import PermissionDenied
from django.http import HttpResponse, HttpResponseRedirect
from speedinfo import profiler
from speed... | PypiClean |
/osiris-1.4.zip/osiris-1.4/bootstrap.py | import os, shutil, sys, tempfile, urllib, urllib2, subprocess
from optparse import OptionParser
if sys.platform == 'win32':
def quote(c):
if ' ' in c:
return '"%s"' % c # work around spawn lamosity on windows
else:
return c
else:
quote = str
# See zc.buildout.easy_inst... | PypiClean |
/sio_asyncapi-0.3.0-py3-none-any.whl/sio_asyncapi/asyncapi/models/anypoint_mq_bindings.py | from typing import Optional
from pydantic import BaseModel, Extra
from enum import Enum
from .schema import Schema
class AnypointMqDestinationType(str, Enum):
queue = 'queue'
exchange = 'exchange'
fifo = 'fifo-queue'
class AnypointMqChannelBinding(BaseModel):
"""
The Anypoint MQ Channel Bindin... | PypiClean |
/factern-client-1.0.6.tar.gz/factern-client-1.0.6/factern_client/com/factern/model/entity.py | import pprint
import re # noqa: F401
import six
import importlib
parent_name = "StandardNode"
def get_parent():
# Lazy importing of parent means that loading the classes happens
# in the correct order.
if get_parent.cache is None:
parent_fname = "factern_client.com.factern.model.%s" % re.sub("... | PypiClean |
/jupyterlab_nodeeditor-1.0.8-py3-none-any.whl/jupyterlab_nodeeditor-1.0.8.data/data/share/jupyter/labextensions/jupyterlab_nodeeditor/static/525.efd83915541f187fe395.js | "use strict";(self.webpackChunkjupyterlab_nodeeditor=self.webpackChunkjupyterlab_nodeeditor||[]).push([[525],{525:(e,t,n)=>{n.r(t),n.d(t,{conf:()=>o,language:()=>i});var o={wordPattern:/(#?-?\d*\.\d\w*%?)|([@$#!.:]?[\w-?]+%?)|[@#!.]/g,comments:{blockComment:["/*","*/"],lineComment:"//"},brackets:[["{","}"],["[","]"],["... | PypiClean |
/pyscanprev-0.1.0.tar.gz/pyscanprev-0.1.0/pyscanprev.py | import types, collections, bytecode
__version__ = "0.1.0"
_EMPTY = object()
def code_mix(code, **changes):
"""
Creates a new code object based on another, as a copy where the given
keyword parameters are seen as attributes to be modified. See
code_mix.keys for the keyword list.
"""
args = (ch... | PypiClean |
/python-controlsystems-0.2.1.tar.gz/python-controlsystems-0.2.1/src/polynomial.py |
from error import ControlSystemsError
class Polynomial(list):
var = 'x'
def __str__(self):
#bug: fix first term negative
poly = self[:]
poly.reverse()
response = ''
for order in range(len(self) - 1, -1, -1):
coefficient = poly.pop()
... | PypiClean |
/skit_game-0.1.6.tar.gz/skit_game-0.1.6/skit/card.py | from collections.abc import Sequence
import logging
from pathlib import Path
from typing import Mapping
from PIL import Image
from skit._types import Real, LayoutDef, Color, FreeTypeFont, Alignment
from skit.render import DrawCommand, SingleImageRenderer
from abc import ABC, abstractmethod
logger = logging.getLogger(... | PypiClean |
/avio-2.1.4.tar.gz/avio-2.1.4/pybind11/docs/advanced/cast/strings.rst | Strings, bytes and Unicode conversions
######################################
Passing Python strings to C++
=============================
When a Python ``str`` is passed from Python to a C++ function that accepts
``std::string`` or ``char *`` as arguments, pybind11 will encode the Python
string to UTF-8. All Python `... | PypiClean |
/ganymede_aux-0.4.1-cp39-cp39-win_amd64.whl/ganymede/ml/pytorch/preprocessing/binary_segmentation_random_size_processor.py | import random
from typing import Tuple
# 3rd party
import cv2 as cv
# project
import ganymede.random as g_random
import ganymede.imaging as g_image
import ganymede.ml.pytorch.tensor as g_tensor
from ganymede.imaging import ImageType
from ....dataset.processing.auxiliary import de... | PypiClean |
/g-pypi-0.3.tar.gz/g-pypi-0.3/gpypi/portage_utils.py | import sys
import os
import commands
import logging
from portage import config as portage_config
from portage import settings as portage_settings
try:
# portage >= 2.2
from portage import dep as portage_dep
except ImportError:
# portage <= 2.1
from portage import portage_dep
# TODO: find more clean wa... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.