id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/hdrpy-0.3.3.tar.gz/hdrpy-0.3.3/README.rst | |pypi-version| |pypi-python| |travis-build| |appveyor-build| |pypi-license-apache|
hdrpy
=====
``hdrpy`` is a pure\* Python implementation of HDR histograms.
Compatible with Python 2.7 and Python 3.5+.
\*: Well, if you not count numpy.
Technically, it can be considered a fork of
`hdrhistogram <https://github.co... | PypiClean |
/shareberry-0.1.1.tar.gz/shareberry-0.1.1/hive/post.py | import json
import logging
import re
from datetime import datetime
from funcy.colls import walk_values, get_in
from funcy.flow import silent
from funcy.seqs import flatten
from hivebase.exceptions import (
PostDoesNotExist,
VotingInvalidOnArchivedPost,
)
from hivebase.operations import CommentOptions
from .am... | PypiClean |
/robotframework-ride-2.0.7.tar.gz/robotframework-ride-2.0.7/src/robotide/editor/__init__.py |
import wx
from .editorcreator import EditorCreator
from ..pluginapi import (Plugin, action_info_collection, TreeAwarePluginMixin)
from ..publish import (RideTreeSelection, RideNotebookTabChanging, RideNotebookTabChanged, RideSaving)
from ..publish.messages import RideDataFileRemoved
from ..widgets import PopupCreator... | PypiClean |
/sharePlayer_mplayer.py-0.7.0.tar.gz/sharePlayer_mplayer.py-0.7.0/mplayer/misc.py |
try:
import queue
except ImportError:
import Queue as queue
__all__ = ['CmdPrefix']
class CmdPrefix(object):
"""MPlayer command prefixes"""
PAUSING = 'pausing'
PAUSING_TOGGLE = 'pausing_toggle'
PAUSING_KEEP = 'pausing_keep'
PAUSING_KEEP_FORCE = 'pausing_keep_force'
class _StderrWrapp... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/eslint/lib/formatters/codeframe.js | "use strict";
const chalk = require("chalk");
const codeFrame = require("babel-code-frame");
const path = require("path");
//------------------------------------------------------------------------------
// Helpers
//------------------------------------------------------------------------------
/**
* Given a word a... | PypiClean |
/wxrobot-0.13.tar.gz/wxrobot-0.13/README.rst | WxRobot |python|
================
面向个人账户的微信机器人框架
文档在此:
https://sharpdeep.gitbooks.io/wxrobot-document/content/
Usage
-----
pip 安装
~~~~~~~~
::
pip install wxrobot
setup.py 安装
~~~~~~~~~~~~~
下载项目到本地; 然后安装:
::
python setup.py install
接口使用方法参考\ ``myrobot.py``\ ,详细接口请查看文档。
Credit
------
I used
`WeixinB... | PypiClean |
/xmldirector.plonecore-2.1.1.zip/xmldirector.plonecore-2.1.1/xmldirector/plonecore/browser/resources/ace-builds/src-noconflict/mode-jsx.js | ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var DocCommentHighlightRule... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/request/AlipayCreditAutofinanceLoanApplyRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayCreditAutofinanceLoanApplyModel import AlipayCreditAutofinanceLoanApplyModel
class AlipayCreditAutofinanceLoanApplyRequest(object):
def __init__(self, biz_model=None):... | PypiClean |
/RsCMX_Signaling-4.0.120-py3-none-any.whl/RsCMX_Signaling/Implementations/Diagnostic/Signaling/Eps/Logging/Uplane.py | from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal import Conversions
from ...... import enums
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class UplaneCls:
"""Uplane commands group definition. 2 total commands, 0 Subgroups, 2... | PypiClean |
/criteo_api_marketingsolutions_sdk-2023.7.0.230831-py3-none-any.whl/criteo_api_marketingsolutions_v2023_07/model/audience_update_entity_v1_resource.py | import re # noqa: F401
import sys # noqa: F401
from criteo_api_marketingsolutions_v2023_07.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_... | PypiClean |
/Strobesbufs-0.0.299-py3-none-any.whl/strobesbufs/messier/functions/slack_pb2.py |
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descrip... | PypiClean |
/ImoT_tools-1.2.0.tar.gz/ImoT_tools-1.2.0/imot_tools/math/linalg.py | import numpy as np
import scipy.linalg as linalg
import imot_tools.util.argcheck as chk
@chk.check(
dict(
A=chk.accept_any(chk.has_reals, chk.has_complex),
B=chk.allow_None(chk.accept_any(chk.has_reals, chk.has_complex)),
tau=chk.is_real,
N=chk.allow_None(chk.is_integer),
)
)
... | PypiClean |
/check_manifest-0.49-py3-none-any.whl/check_manifest-0.49.dist-info/LICENSE.rst | The MIT License (MIT)
Copyright (c) 2013 Marius Gedminas and contributors
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 |
/fastasr-0.0.1.tar.gz/fastasr-0.0.1/README.md | # FastASR
这是一个用C++实现ASR推理的项目,它依赖很少,安装也很简单,推理速度很快,在树莓派4B等ARM平台也可以流畅的运行。
推理模型是基于目前最先进的conformer模型,使用10000+小时的wenetspeech数据集训练得到, 所以识别效果也很好,可以媲美许多商用的ASR软件。
## 项目简介
目前本项目实现了3个模型,它们是PaddleSpeech [r1.01版本](https://github.com/PaddlePaddle/PaddleSpeech/releases/tag/r1.0.1)中conformer_wenetspeech-zh-16k和conformer_online_wenet... | PypiClean |
/enough-2.2.35.tar.gz/enough-2.2.35/playbooks/debops/docs/ansible/roles/debops_legacy/man_description.rst | .. Copyright (C) 2018 Maciej Delmanowski <drybjed@gmail.com>
.. Copyright (C) 2018 DebOps <https://debops.org/>
.. SPDX-License-Identifier: GPL-3.0-only
Description
===========
The ``debops.debops_legacy`` Ansible role can be used to clean up legacy files,
directories, APT packages or :command:`dpkg-divert` diversion... | PypiClean |
/epparsers-0.4.1-py3-none-any.whl/epparsers-0.4.1.dist-info/DESCRIPTION.rst |
Effectful Pythonic Parsers
==========================
Welcome to the home of EPP library, which provides a way to combine basic
parsers and effects to build complex parsers that transform text into something
more useful.
For a quick introduction into using the library, see ``quickstart.rst`` in the
``docs`` director... | PypiClean |
/solidpython2_extensions-0.1.4.tar.gz/solidpython2_extensions-0.1.4/solid2_extensions/MCAD/fonts.py | from solid2.core.object_base import OpenSCADObject, OpenSCADConstant
from solid2.core.scad_import import extra_scad_include
from pathlib import Path
extra_scad_include(f"{Path(__file__).parent / Path('../'*1) / 'scad/MCAD/fonts.scad'}", use_not_include=False)
class outline_2d(OpenSCADObject):
def __init__(self, o... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/v20190901/network_interface.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__ = ['NetworkInterface']
class NetworkInterface(pulumi.CustomResource):
def __init__(__self_... | PypiClean |
/examples/datavisualization/surface/doc/surface.rst | Surface Example
===============
Using Q3DSurface in a widget application.
The surface example shows how to make a simple 3D surface graph using
Q3DSurface and combining the use of widgets for adjusting several adjustable
qualities. This example demonstrates the following features:
* How to set up a basic QSurfaceDat... | PypiClean |
/awstools_py-0.1.3-py3-none-any.whl/awstools/_aws.py | import boto3
from configparser import ConfigParser
import configparser
from vital.cache import cached_property, memoize
@memoize
def get_session(**credentials):
return boto3.session.Session(**credentials)
class AwsManager(object):
def __init__(self, session=None, boto_cfg='/etc/boto.cfg',
... | PypiClean |
/lama-cleaner-custom-0.0.2.tar.gz/lama-cleaner-custom-0.0.2/lama_cleaner/plugins/segment_anything/modeling/sam.py |
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
import torch
from torch import nn
from torch.nn import functional as F
from typing import Any, Dict, List, Tuple
from .image_encoder import ImageEncoderViT
from .mask_decoder import MaskDecoder
fr... | PypiClean |
/django_scaffolding_tools-0.10.4.tar.gz/django_scaffolding_tools-0.10.4/django_scaffolding_tools/django/utils.py | from typing import Dict, Any, Tuple
from django.apps.registry import apps
from django_scaffolding_tools.exceptions import DjangoParsingException
class DjangoAppManager:
def __init__(self):
self.installed_apps = dict(self.get_installed_apps())
def get_app(self, app_name):
return self.install... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/domain/EndowmentOrder.py | import json
from alipay.aop.api.constant.ParamConstants import *
class EndowmentOrder(object):
def __init__(self):
self._apply_amount = None
self._order_id = None
self._pay_time = None
self._ta_request_id = None
@property
def apply_amount(self):
return self._appl... | PypiClean |
/indy_plenum-1.13.1rc1-py3-none-any.whl/plenum/server/monitor.py | import time
from datetime import datetime
from statistics import mean
from typing import Dict, Iterable, Optional
from typing import List
from typing import Tuple
import psutil
from plenum.common.config_util import getConfig
from plenum.common.constants import MONITORING_PREFIX
from plenum.common.monitor_strategies i... | PypiClean |
/jupyterlab_vim-4.0.2.tar.gz/jupyterlab_vim-4.0.2/README.md | # jupyterlab-vim
> Community fork of <https://github.com/jwkvam/jupyterlab-vim> updated for jupyterlab 2, 3 and 4

[](https:/... | PypiClean |
/z3c.formwidget.ckeditor-2.0.0a1.zip/z3c.formwidget.ckeditor-2.0.0a1/src/z3c/formwidget/ckeditor/ckeditor-js/lang/lv.js | /*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang.lv={dir:'ltr',editorTitle:'Rich text editor, %1, press ALT 0 for help.',toolbar:'Toolbar',editor:'Rich Text Editor',source:'HTML kods',newPage:'Jauna lapa',sav... | PypiClean |
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/tensorflow/python/profiler/profiler_client.py | """Profiler client APIs."""
from tensorflow.python.framework import errors
from tensorflow.python.profiler.internal import _pywrap_profiler
from tensorflow.python.util.tf_export import tf_export
_GRPC_PREFIX = 'grpc://'
@tf_export('profiler.experimental.client.trace', v1=[])
def trace(service_addr,
logdi... | PypiClean |
/lingua_nostra-0.4.5.tar.gz/lingua_nostra-0.4.5/lingua_nostra/lang/common_data_pt.py | _FUNCTION_NOT_IMPLEMENTED_WARNING = "esta função não foi implementada em 'pt'"
# Undefined articles ["um", "uma", "uns", "umas"] can not be supressed,
# in PT, "um cavalo" means "a horse" or "one horse".
_ARTICLES_PT = ["o", "a", "os", "as"]
# word rules for gender
_FEMALE_ENDINGS_PT = ["a", "as"]
_MALE_ENDINGS_PT =... | PypiClean |
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/hyperion/importers/sph.py | import numpy as np
def DEFAULT_STOPPING_CRITERION(x, y, z, dx, dy, dz, px, py, pz, sigma):
return len(px) <= 2
def refine(x, y, z, dx, dy, dz, px, py, pz, sigma, mass, levels_remaining, stopping_criterion):
if stopping_criterion(x, y, z, dx, dy, dz, px, py, pz, sigma) or levels_remaining == 0:
retu... | PypiClean |
/tzcelery-3.1.27.tar.gz/tzcelery-3.1.27/docs/userguide/application.rst | .. _guide-app:
=============
Application
=============
.. contents::
:local:
:depth: 1
The Celery library must be instantiated before use, this instance
is called an application (or *app* for short).
The application is thread-safe so that multiple Celery applications
with different configurations, componen... | PypiClean |
/bpy-2.91a0-cp37-cp37m-manylinux2014_x86_64.whl/bpy-2.91a0.data/scripts/2.91/scripts/addons_contrib/object_animrenderbake.py |
bl_info = {
"name": "Animated Render Baker",
"author": "Janne Karhu (jahka)",
"version": (2, 0),
"blender": (2, 80, 0),
"location": "Properties > Render > Bake Panel",
"description": "Renderbakes a series of frames",
"doc_url": "http://wiki.blender.org/index.php/Extensions:2.6/Py/"
... | PypiClean |
/ptpuploader-0.11.3-py3-none-any.whl/PtpUploader/release_extractor.py | import logging
import os
from pathlib import Path
from typing import List
import rarfile # type: ignore
from unidecode import unidecode
from PtpUploader.PtpUploaderException import PtpUploaderException
from PtpUploader.Settings import config
# from PtpUploader.ReleaseInfo import ReleaseInfo
log = logging.getLog... | PypiClean |
/pychoosealicense-2023.4.25.tar.gz/pychoosealicense-2023.4.25/README.rst | =================
pychoosealicense
=================
.. start short_desc
**Provides license metadata from choosealicense.com**
.. end short_desc
.. start shields
.. list-table::
:stub-columns: 1
:widths: 10 90
* - Docs
- |docs| |docs_check|
* - Tests
- |actions_linux| |actions_windows| |actions_macos| ... | PypiClean |
/zocalo_dls-0.4.0.tar.gz/zocalo_dls-0.4.0/zocalo_dls/wrapper/jupyter.py | from zocalo.wrapper import BaseWrapper
import os
import procrunner
import logging
from pathlib import Path
from shutil import copyfile
import nbformat
logger = logging.getLogger("zocalo_dls.wrapper.jupyter")
class JupyterWrapper(BaseWrapper):
"""
A zocalo wrapper for jupyter headless processing
Copies n... | PypiClean |
/apify_client-1.4.1b2-py3-none-any.whl/apify_client/clients/resource_clients/dataset_collection.py | from typing import Any, Dict, Optional
from apify_shared.models import ListPage
from apify_shared.utils import filter_out_none_values_recursively, ignore_docs
from ..base import ResourceCollectionClient, ResourceCollectionClientAsync
class DatasetCollectionClient(ResourceCollectionClient):
"""Sub-client for man... | PypiClean |
/test_amundsen_databuilder-1.0.21-py3-none-any.whl/databuilder/models/query/query.py |
import hashlib
from typing import (
Iterator, List, Optional,
)
from databuilder.models.graph_node import GraphNode
from databuilder.models.graph_relationship import GraphRelationship
from databuilder.models.query.base import QueryBase
from databuilder.models.table_metadata import TableMetadata
from databuilder.m... | PypiClean |
/featuretools_sql-0.0.5-py3-none-any.whl/featuretools_sql/connector.py | from collections import namedtuple
from typing import Dict, List, Optional, Tuple
import pandas as pd
from featuretools_sql.db_connectors import (
MySQLConnector,
PostgresConnector,
SnowflakeConnector,
)
class DBConnector:
Relationship = namedtuple(
"Relationship",
["referenced_table... | PypiClean |
/sentry-redis-tools-0.1.7.tar.gz/sentry-redis-tools-0.1.7/sentry_redis_tools/failover_redis.py | from __future__ import annotations
import random
import time
from typing import Any, Callable, Optional
from sentry_redis_tools.clients import StrictRedis
from redis.exceptions import (
ConnectionError,
ReadOnlyError,
TimeoutError,
)
def _sentry_wrap_with_retry(
get_wrapped_fn: Callable[[], Any], cl... | PypiClean |
/adafruit-circuitpython-lifx-2.0.1.tar.gz/adafruit-circuitpython-lifx-2.0.1/CODE_OF_CONDUCT.md | <!--
SPDX-FileCopyrightText: 2014 Coraline Ada Ehmke
SPDX-FileCopyrightText: 2019 Kattni Rembor for Adafruit Industries
SPDX-License-Identifier: CC-BY-4.0
-->
# Adafruit Community Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and leaders pledge to ma... | PypiClean |
/ansible-lint-6.18.0.tar.gz/ansible-lint-6.18.0/src/ansiblelint/rules/no_free_form.md | # no-free-form
This rule identifies any use of
[free-form](https://docs.ansible.com/ansible/2.7/user_guide/playbooks_intro.html#action-shorthand)
module calling syntax and asks for switching to the full syntax.
**Free-form** syntax, also known as **inline** or **shorthand**, can produce
subtle bugs. It can also preve... | PypiClean |
/pyFF-2.0.0.tar.gz/pyFF-2.0.0/src/pyff/locks.py | from contextlib import contextmanager
from threading import Condition, Lock, currentThread
from time import time
# Read write lock
# ---------------
class ReadWriteLock(object):
"""Read-Write lock class. A read-write lock differs from a standard
threading.RLock() by allowing multiple threads to simultaneous... | PypiClean |
/nssjson-0.7.tar.gz/nssjson-0.7/README.rst | =========
nssjson
=========
JSON encoder/decoder for Python
===============================
nssjson is a (not so) simple, fast, complete, correct and extensible `JSON <http://json.org>`_
encoder and decoder for Python 2.5+ and Python 3.3+. It is pure Python code with no
dependencies, but includes an optional C exte... | PypiClean |
/WHIPS-1.2.3.tar.gz/WHIPS-1.2.3/process_sat/filetypes.py | class OMI_NO2_KNMI_HDF_v2_0_preFeb2006_filetype():
parser = 'HDFknmiomil2'
parserParms = {}
doutf = 'OMNO2e_netCDF_avg'
overallQualFlag = 'TroposphericColumnFlag'
cloudFrac = 'CloudFraction'
solarZenithAngle = 'SolarZenithAngle'
time = 'Time'
longitude = 'Longitude'
pixIndXtrackAxis ... | PypiClean |
/pwntools-4.11.0b0.tar.gz/pwntools-4.11.0b0/pwnlib/constants/__init__.py | from __future__ import absolute_import
import importlib
import sys
from types import ModuleType
from pwnlib.constants.constant import Constant
from pwnlib.context import context
from pwnlib.util import safeeval
class ConstantsModule(ModuleType):
"""
ModuleType specialization in order to automatically
ro... | PypiClean |
/CC-dbgen-0.2.0.tar.gz/CC-dbgen-0.2.0/dbgen/scripts/Pure/Atoms/surface_bulkstruct.py | from typing import Tuple
from pymatgen.core.surface import generate_all_slabs, SlabGenerator # type: ignore
from pymatgen.symmetry.analyzer import SpacegroupAnalyzer # type: ignore
from pymatgen import Lattice, Struc... | PypiClean |
/django_dicom-0.0.4.tar.gz/django_dicom-0.0.4/docs/build/html/_static/underscore-1.3.1.js |
(function() {
// Baseline setup
// --------------
// Establish the root object, `window` in the browser, or `global` on the server.
var root = this;
// Save the previous value of the `_` variable.
var previousUnderscore = root._;
// Establish the object that gets returned to break out of a loop itera... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/babel-template/node_modules/lodash/_baseClone.js | var Stack = require('./_Stack'),
arrayEach = require('./_arrayEach'),
assignValue = require('./_assignValue'),
baseAssign = require('./_baseAssign'),
baseAssignIn = require('./_baseAssignIn'),
cloneBuffer = require('./_cloneBuffer'),
copyArray = require('./_copyArray'),
copySymbols = require... | PypiClean |
/pybeagle-1.0.5.tar.gz/pybeagle-1.0.5/beagle/transformers/generic_transformer.py | from typing import Optional, Tuple, Union
from beagle.common.logging import logger
from beagle.constants import EventTypes, FieldNames
from beagle.nodes import URI, Domain, File, IPAddress, Process, RegistryKey
from beagle.transformers.base_transformer import Transformer
# TODO: Add Timestamps to everything, if possi... | PypiClean |
/google-cloud-websecurityscanner-1.12.2.tar.gz/google-cloud-websecurityscanner-1.12.2/google/cloud/websecurityscanner_v1alpha/services/web_security_scanner/transports/grpc_asyncio.py | from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union
import warnings
from google.api_core import gapic_v1, grpc_helpers_async
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore
from google.protobuf import... | PypiClean |
/timezone_converter-0.12.1.tar.gz/timezone_converter-0.12.1/README.md | <div align="center">
<h1>Timezone Converter</h1>
<h3>Compare a full day of your local timezone with foreign ones</h3>
<br>
<p>
<a href="https://github.com/ibLeDy/timezone-converter/actions/workflows/integration.yml">
<img alt="integration status" src="https://github.com/ibLeDy/timezone-converter/act... | PypiClean |
/TGCaptcha-0.11.tar.gz/TGCaptcha-0.11/tgcaptcha/widgets.py | import pkg_resources
import turbogears as tg
import controller
from tgcaptcha.validator import CaptchaFieldValidator
import gettext
_ = gettext.gettext
from turbogears.widgets import CSSLink, JSLink, Widget, WidgetDescription, \
register_static_directory, CompoundFormField, FormField, HiddenField
from turbogears i... | PypiClean |
/GeoBases3K-5.0.16.zip/GeoBases3K-5.0.16/README | GeoBases |travis|_ |cratev|_ |crated|_
======================================
.. _travis : https://travis-ci.org/opentraveldata/geobases
.. |travis| image:: https://api.travis-ci.org/opentraveldata/geobases.png?branch=3000
.. _crated : https://crate.io/packages/GeoBases3K
.. |crated| image:: https://pypip.in/d/GeoBas... | PypiClean |
/crate-anon-0.20.0.tar.gz/crate-anon-0.20.0/crate_anon/crateweb/consent/tasks.py | # noqa
import logging
from celery import shared_task
from django.conf import settings
from django.contrib.auth import get_user_model
from django.urls import set_script_prefix
log = logging.getLogger(__name__)
# noinspection PyCallingNonCallable
@shared_task(ignore_result=True)
def add(x: float, y: float) -> float:
... | PypiClean |
/cumm_cu114-0.4.11-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/cumm/conv/main_real.py |
import os
import sys
import time
from pathlib import Path
from typing import Dict, List, Tuple
import numpy as np
import pccm
import torch
import torch.nn.functional as F
from cumm import dtypes
from cumm import tensorview as tv
from cumm.constants import PACKAGE_ROOT
from cumm.conv.bases import NCHW, NHWC, ConvIter... | PypiClean |
/azure-mgmt-resource-23.1.0b1.zip/azure-mgmt-resource-23.1.0b1/azure/mgmt/resource/resources/v2021_04_01/aio/_resource_management_client.py |
from copy import deepcopy
from typing import Any, Awaitable, TYPE_CHECKING
from azure.core.rest import AsyncHttpResponse, HttpRequest
from azure.mgmt.core import AsyncARMPipelineClient
from .. import models as _models
from ..._serialization import Deserializer, Serializer
from ._configuration import ResourceManageme... | PypiClean |
/GnuCash%20Web-0.1.0rc10.tar.gz/GnuCash Web-0.1.0rc10/gnucash_web/auth.py | from functools import wraps
from flask import Blueprint, render_template, url_for, request, redirect, session
from flask import current_app as app
from sqlalchemy.exc import OperationalError
from .utils.gnucash import open_book, AccessDenied
bp = Blueprint('auth', __name__, url_prefix='/auth')
@bp.app_errorhandler(... | PypiClean |
/kikapay-python-sdk-1.5.3.tar.gz/kikapay-python-sdk-1.5.3/openapi_client/model/reconciliation_payment404_response.py | import re # noqa: F401
import sys # noqa: F401
import nulltype # noqa: F401
from openapi_client.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
... | PypiClean |
/RelevanceAI_Explore_App_SDK-0.0.7-py3-none-any.whl/ai_dashboard/api/client.py | import time
from typing import Optional, Dict, Any
from ai_dashboard.api import endpoints, helpers
from ai_dashboard.dashboard import dashboard
from ai_dashboard import constants
from ai_dashboard import errors
class Client:
def __init__(self, token: str) -> None:
self._credentials = helpers.process_t... | PypiClean |
/napalm-yang-0.1.0.tar.gz/napalm-yang-0.1.0/napalm_yang/models/openconfig/interfaces/interface/subinterfaces/subinterface/ipv6/addresses/address/__init__.py | from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.ya... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/documentdb/latest/cassandra_resource_cassandra_keyspace.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
from ._inputs import *
__all__ = ['CassandraResourceCassandraKeyspace']
warnings.warn("""The 'latest' version is deprecated. Please migrate to the r... | PypiClean |
/pybloom-mirror-2.0.0.tar.gz/pybloom-mirror-2.0.0/pybloom/pybloom.py | from __future__ import absolute_import
import math
import hashlib
from pybloom.utils import range_fn, is_string_io, running_python_3
from struct import unpack, pack, calcsize
try:
import bitarray
except ImportError:
raise ImportError('pybloom requires bitarray >= 0.3.4')
__version__ = '2.0'
__author__ = "Jay... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/saxes/CHANGELOG.md | <a name="3.1.11"></a>
## [3.1.11](https://github.com/lddubeau/saxes/compare/v3.1.10...v3.1.11) (2019-06-25)
### Bug Fixes
* pay attention to comments and processing instructions in DTDs ([52ffd90](https://github.com/lddubeau/saxes/commit/52ffd90)), closes [#19](https://github.com/lddubeau/saxes/issues/19)
### Perf... | PypiClean |
/ethereum_etl_fixbug-1.7.5-py3-none-any.whl/blockchainetl/jobs/exporters/composite_item_exporter.py | import logging
from blockchainetl.atomic_counter import AtomicCounter
from blockchainetl.exporters import CsvItemExporter, JsonLinesItemExporter
from blockchainetl.file_utils import get_file_handle, close_silently
from blockchainetl.jobs.exporters.converters.composite_item_converter import CompositeItemConverter
cla... | PypiClean |
/fuse_client-2.0.0-py3-none-any.whl/fuse_client/paths/v1_financial_connections_accounts_details/post.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from fuse_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 # noq... | PypiClean |
/eureka-opensource-1.0.3.tar.gz/eureka-opensource-1.0.3/eureka/ui/desktop/user/comp.py |
from datetime import datetime, timedelta
import operator
from nagare import security, var, component
from nagare.i18n import _
from eureka.domain.models import RoleType, PointData, RoleLabels
from eureka.domain.queries import (get_all_user_ideas,
get_published_user_ideas,
... | PypiClean |
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/lakeformation/put-data-lake-settings.rst | **To set AWS Lake Formation-managed data lake settings**
The following ``put-data-lake-settings`` example sets the list of data lake administrators and other data lake settings. ::
aws lakeformation put-data-lake-settings \
--cli-input-json file://input.json
Contents of ``input.json``::
{
"D... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_9/models/admin.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_9 import models
class Admin(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attribute... | PypiClean |
/tg_newcalls-0.0.2-cp39-cp39-manylinux2014_armv7l.whl/newcalls/types/input_stream/audio_image_piped.py | from typing import Dict
from typing import Optional
from ...ffprobe import FFprobe
from .audio_parameters import AudioParameters
from .input_audio_stream import InputAudioStream
from .input_stream import InputStream
from .input_video_stream import InputVideoStream
from .video_parameters import VideoParameters
from .vi... | PypiClean |
/knowknow-amcgail-0.3.1.tar.gz/knowknow-amcgail-0.3.1/knowknow/datasources/jstor.py | from .. import *
from ..nlp import *
#from jstor_xml import *
#from intext import *
from nltk import sent_tokenize
from lxml.etree import _ElementTree as ElementTree
from lxml import etree
recovering_parser = etree.XMLParser(recover=True)
from zipfile import ZipFile
if False:
# looks like I don't use this?
... | PypiClean |
/metadata_extraction_vnpt_media-0.0.1.tar.gz/metadata_extraction_vnpt_media-0.0.1/image_to_text/reader_process.py | import numpy as np
import torch
from torchvision import transforms
import torch.nn.functional as F
from image_to_text.config import Config as config
from PIL import Image
from image_to_text.src.deeptext.model import Model
from torch.utils.data import Dataset
class INFER_DATASET(Dataset):
def __init__(self, img_li... | PypiClean |
/nni_yds-0.3.7-py3-none-any.whl/nni_yds-0.3.7.data/data/nni/node_modules/json-schema/lib/validate.js | (function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define([], function () {
return factory();
});
} else if (typeof module === 'object' && module.exports) {
// Node. Does not work with strict CommonJS... | PypiClean |
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/caldav/calendar.py | import copy
from datetime import datetime, timedelta
import logging
import re
import caldav
import voluptuous as vol
from homeassistant.components.calendar import (
ENTITY_ID_FORMAT,
PLATFORM_SCHEMA,
CalendarEventDevice,
calculate_offset,
get_date,
is_offset_reached,
)
from homeassistant.const... | PypiClean |
/convo5-0.1.tar.gz/convo5-0.1/convo/cli/x.py | import argparse
import asyncio
import importlib.util
import logging
import os
import signal
import traceback
from multiprocessing import get_context
from typing import List, Text, Optional, Tuple, Iterable
import aiohttp
import ruamel.yaml as yaml
import convo.cli.utils as cli_utils
import convo.utils.io as io_utils
... | PypiClean |
/skopi-0.6.0.tar.gz/skopi-0.6.0/docs/_build/html/_static/websupport.js | (function($) {
$.fn.autogrow = function() {
return this.each(function() {
var textarea = this;
$.fn.autogrow.resize(textarea);
$(textarea)
.focus(function() {
textarea.interval = setInterval(function() {
$.fn.autogrow.resize(textarea);
}, 500);
})
.blur(fu... | PypiClean |
/channels_hellwebprice_events-1.0.0.tar.gz/channels_hellwebprice_events-1.0.0/pkg_resources/__init__.py | from __future__ import absolute_import
import sys
import os
import io
import time
import re
import types
import zipfile
import zipimport
import warnings
import stat
import functools
import pkgutil
import operator
import platform
import collections
import plistlib
import email.parser
import errno
import tempfile
import... | PypiClean |
/zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/fckeditor/2.6.4.1/fckeditor/editor/_source/internals/fcklistslib.js | /*
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2009 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://ww... | PypiClean |
/citymaker_sdk-1.1.15.0.tar.gz/citymaker_sdk-1.1.15.0/citymaker_sdk/SDK/RenderControl/ISolidSymbol.py | import os, sys,json
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
import Utils.classmake as CM
import Utils.globalData as glodata
import Utils.wsInit as wsObj
from SDK.RenderControl.IGeometrySymbol import IGeometrySymbol
Props={"boundarySymbol":{"t":"ICurveSymbol","v":N... | PypiClean |
/apache-superset_qwerty-2.0.11.tar.gz/apache-superset_qwerty-2.0.11/superset/examples/multiformat_time_series.py | from typing import Dict, Optional, Tuple
import pandas as pd
from sqlalchemy import BigInteger, Date, DateTime, inspect, String
from superset import app, db
from superset.models.slice import Slice
from superset.utils.core import DatasourceType
from ..utils.database import get_example_database
from .helpers import (
... | PypiClean |
/yins_music-0.0.9-py3-none-any.whl/pytgcalls/dispatcher/dispatcher.py |
import asyncio
import logging
from typing import Callable, List
from typing import TYPE_CHECKING
from ..exceptions import PytgcallsError
if TYPE_CHECKING:
from . import GroupCallNative
logger = logging.getLogger(__name__)
class Dispatcher:
def __init__(self, available_actions: type):
self.actions... | PypiClean |
/pyeda_pranav-0.0.1.tar.gz/pyeda_pranav-0.0.1/pyeda/boolalg/bdd.py | import collections
import random
import weakref
from pyeda.boolalg import boolfunc
from pyeda.boolalg.expr import exprvar, Or, And
from pyeda.util import cached_property
# existing BDDVariable references
_VARS = dict()
# node/bdd cache
_NODES = weakref.WeakValueDictionary()
_BDDS = weakref.WeakValueDictionary()
c... | PypiClean |
/gu-django-tinymce-2.7.2.tar.gz/gu-django-tinymce-2.7.2/tinymce/media/tiny_mce/plugins/advimage/langs/bg_dlg.js | tinyMCE.addI18n('bg.advimage_dlg',{"image_list":"\u0421\u043f\u0438\u0441\u044a\u043a \u0441 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0438","align_right":"\u0414\u044f\u0441\u043d\u043e","align_left":"\u041b\u044f\u0432\u043e","align_textbottom":"\u0422\u0435\u043a\u0441\u0442 \u0434\u043e\u043b\u0443","align_textto... | PypiClean |
/osm_conflate-1.4.1.tar.gz/osm_conflate-1.4.1/conflate/conflator.py | import logging
import kdtree
from collections import defaultdict
from .data import OSMPoint
from .version import __version__
from .osm import OsmDownloader, check_moveability
from . import etree
TITLE = 'OSM Conflator ' + __version__
CONTACT_KEYS = set(('phone', 'website', 'email', 'fax', 'facebook', 'twitter', 'inst... | PypiClean |
/pysploit-0.1.0.tar.gz/pysploit-0.1.0/CONTRIBUTING.rst | .. highlight:: shell
============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.
You can contribute in many ways:
Types of Contributions
----------------------
Report Bugs
~~~~~~~~~~~
Report bugs at https://github.com... | PypiClean |
/qpod_hub-2021.10.11-py3-none-any.whl/qpod/base/static/components/flatpickr/dist/l10n/km.d.ts | import { CustomLocale } from "../types/locale";
export declare const Khmer: CustomLocale;
declare const _default: {
default?: CustomLocale | undefined;
hr?: CustomLocale | undefined;
th?: CustomLocale | undefined;
tr?: CustomLocale | undefined;
ar?: CustomLocale | undefined;
at?: CustomLocale | ... | PypiClean |
/distkv_inv-0.22.0.tar.gz/distkv_inv-0.22.0/DATA_MODEL.rst | ==========
Data model
==========
DistInv models these data types:
host
====
A host always has a short name and a domain name.
It may have a default IP address and any number of ports.
Hosts' IP addresses are described by the network name, plus the host's
position in the network.
port
====
Ports are part of hosts... | PypiClean |
/flet_route-0.3.1.tar.gz/flet_route-0.3.1/flet_route/routing.py | from flet import View, Page
from repath import match
from .not_found_view import ViewNotFound,ViewNotFound_async
from .params import Params
from .basket import Basket
from typing import Callable
def route_str(route):
if type(route) == str:
return route
else:return str(route.route)
def path(url: str,... | PypiClean |
/jk_json-0.2023.2.6.tar.gz/jk_json-0.2023.2.6/jk_json/JsonParserRelaxed.py | import math
from .TokenStream import *
from .ParserErrorException import *
from .ParserBase import *
from .JsonParserStrict import *
class JsonParserRelaxed(JsonParserStrict):
################################################################################################################################
## Const... | PypiClean |
/simple_pyirc-0.0.1-py3-none-any.whl/simple_pyirc/client.py | import socket
import select
import threading
import logging
from .message import IRCOutputMsg, IRCInputMsg
class IRCClient:
"""
Creates a light IRC Client that can be used to send messages to a server.
:param network: The network hostname to connect to
(e.g. `chat.freenode.net`).
:param nick... | PypiClean |
/django-lfs-0.11.tar.gz/django-lfs-0.11/lfs/manage/static/tiny_mce-3.5.8/plugins/autolink/editor_plugin.js | (function(){tinymce.create("tinymce.plugins.AutolinkPlugin",{init:function(a,b){var c=this;a.onKeyDown.addToTop(function(d,f){if(f.keyCode==13){return c.handleEnter(d)}});if(tinyMCE.isIE){return}a.onKeyPress.add(function(d,f){if(f.which==41){return c.handleEclipse(d)}});a.onKeyUp.add(function(d,f){if(f.keyCode==32){ret... | PypiClean |
/napari-clusters-plotter-0.7.3.tar.gz/napari-clusters-plotter-0.7.3/napari_clusters_plotter/_plotter_utilities.py | import typing
import matplotlib
import numpy as np
import pandas as pd
from matplotlib.colors import to_hex, to_rgb
from PIL import ImageColor
from scipy import stats
def unclustered_plot_parameters(
frame_id: list,
current_frame: int,
n_datapoints: int,
):
"""
Returns a tuple containing alpha va... | PypiClean |
/jishkucord-2.5.2.tar.gz/jishkucord-2.5.2/jishaku/modules.py | import pathlib
import typing
import pkg_resources
from braceexpand import UnbalancedBracesError, braceexpand
from discord.ext import commands
__all__ = (
"find_extensions_in",
"resolve_extensions",
"package_version",
"ExtensionConverter",
)
def find_extensions_in(path: typing.Union[str, pathlib.Path... | PypiClean |
/armory_testbed-0.18.1-py3-none-any.whl/armory/cli/tools.py | import argparse
import os
from pathlib import Path
from typing import Literal, Union
from armory.logs import log, update_filters
# Helper from armory.__main__
def _debug(parser):
parser.add_argument(
"-d",
"--debug",
action="store_true",
help="synonym for --log-level=armory:debug"... | PypiClean |
/Braindecode-0.7.tar.gz/Braindecode-0.7/braindecode/models/shallow_fbcsp.py |
import numpy as np
from torch import nn
from torch.nn import init
from ..util import np_to_th
from .modules import Expression, Ensure4d
from .functions import (
safe_log, square, transpose_time_to_spat, squeeze_final_output
)
class ShallowFBCSPNet(nn.Sequential):
"""Shallow ConvNet model from Schirrmeister ... | PypiClean |
/pytorch-lightning-bolts-0.3.2.post1.tar.gz/pytorch-lightning-bolts-0.3.2.post1/pl_bolts/callbacks/knn_online.py | from typing import Optional, Tuple, Union
import numpy as np
import torch
from pytorch_lightning import Callback, LightningModule, Trainer
from torch.utils.data import DataLoader
from pl_bolts.utils import _SKLEARN_AVAILABLE
from pl_bolts.utils.warnings import warn_missing_pkg
if _SKLEARN_AVAILABLE:
from sklearn... | PypiClean |
/CO2meter-0.2.6-py3-none-any.whl/co2meter/co2meter.py | try:
import hid
except AttributeError as e:
if 'windll' in e.message:
raise ImportError(('Import failed with an error "AttributeError: %s". '
'Possibly there''s a name conflict. Please check if '
'library "hid" is instlled and if so - uninstall it, '... | PypiClean |
/pimoroni_encoderwheel-0.0.1.tar.gz/pimoroni_encoderwheel-0.0.1/examples/stop_watch.py | import math
import time
from encoderwheel import CENTRE, NUM_LEDS, EncoderWheel
print("""
Display a circular stop-watch on the Encoder Wheel's LED ring.
Press the centre button to start the stopwatch, then again to pause and resume.
Press Ctrl+C to stop the program.
""")
# Constants
BRIGHTNESS = 1.0 ... | PypiClean |
/pygui_cli-0.0.16.tar.gz/pygui_cli-0.0.16/source/template_cli/template_cli/resource_rc.py |
# Resource object code
#
# Created by: The Resource Compiler for PyQt5 (Qt v5.10.1)
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore
qt_resource_data = b"\
\x00\x00\x06\x3a\
\x3c\
\x3f\x78\x6d\x6c\x20\x76\x65\x72\x73\x69\x6f\x6e\x3d\x22\x31\x2e\
\x30\x22\x20\x73\x74\x61\x6e\x64\x61\x... | PypiClean |
/django_linux-2.2.8-py3-none-any.whl/django/db/models/__init__.py | from django.core.exceptions import ObjectDoesNotExist
from django.db.models import signals
from django.db.models.aggregates import * # NOQA
from django.db.models.aggregates import __all__ as aggregates_all
from django.db.models.deletion import (
CASCADE, DO_NOTHING, PROTECT, SET, SET_DEFAULT, SET_NULL, ProtectedEr... | PypiClean |
/pysnmp-bw-5.0.3.tar.gz/pysnmp-bw-5.0.3/examples/hlapi/v3arch/asyncore/manager/cmdgen/query-multiple-snmp-engines-over-ipv4-and-ipv6.py | from pysnmp.hlapi.v3arch.asyncore import *
from pysnmp.carrier.asyncore.dispatch import AsyncoreDispatcher
# List of targets in the following format:
# ( ( authData, transportTarget, varNames ), ... )
TARGETS = (
# 1-st target (SNMPv1 over IPv4/UDP)
(CommunityData('public', mpModel=0),
UdpTransportTarget(... | PypiClean |
/folks-0.1.0.tar.gz/folks-0.1.0/folks.py | file = "~/folks.ini"
import sys
import ConfigParser
import inspect
import os
import difflib
import re
file = os.path.expanduser(file)
config = ConfigParser.ConfigParser()
if not file or not len(config.read(file)):
print "Could not read the file '%s', create it for me or change the path" % file
sys.exit(1)
de... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.