id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/parquet_datastore_utils-0.1.4-py3-none-any.whl/parquet_datastore_utils/read_write.py | import pyarrow as pa
import pyarrow.parquet as pq
import pyarrow.dataset as ds
import pandas as pd
import os
import fsspec
from fsspec.parquet import open_parquet_file
import numpy as np
import datetime
import pyarrow.compute as pc
from parquet_datastore_utils.cleaner import delete_all_except_newest
def get_merged_s... | PypiClean |
/sharepoint-on-prem-0.0.1.tar.gz/sharepoint-on-prem-0.0.1/README.md | # sharepoint-on-prem
A package for basic file handling operations (downloading, uploading, deleting)
on SharePoint on-premises platforms using ntlm auth method.
## Installation
```
pip install sharepoint-on-prem
```
## Usage
1. Import the handler class
```
from sp_on_prem import SPFileHandler
```
2. Initiate a con... | PypiClean |
/bf-nlu-banki-macos-1.1.tar.gz/bf-nlu-banki-macos-1.1/bf_nlu_banki/core/evaluation/marker_base.py | from __future__ import annotations
import os
from abc import ABC, abstractmethod
from typing import (
Dict,
Iterator,
Optional,
Set,
Text,
List,
Tuple,
Type,
TypeVar,
TYPE_CHECKING,
Union,
Any,
AsyncIterator,
)
from pathlib import Path
from dataclasses import datacla... | PypiClean |
/hikari-sake-1.0.7.tar.gz/hikari-sake-1.0.7/sake/abc.py | from __future__ import annotations
__all__: list[str] = [
"Cache",
"CacheIterator",
"EmojiCache",
"GuildCache",
"GuildChannelCache",
"InviteCache",
"MeCache",
"MemberCache",
"MessageCache",
"PresenceCache",
"RefCache",
"RefEmojiCache",
"RefGuildCache",
"RefGuildC... | PypiClean |
/collective.z3cform.datepicker-0.1rc3.tar.gz/collective.z3cform.datepicker-0.1rc3/collective/z3cform/datepicker/widget.py |
#############################################################################
# #
# Copyright (c) 2008 Rok Garbas <rok.garbas@gmail.com> #
# #
# This ... | PypiClean |
/great_expectations_cta-0.15.43.tar.gz/great_expectations_cta-0.15.43/great_expectations/expectations/metrics/column_map_metrics/column_values_not_match_regex_list.py | import logging
import pandas as pd
from great_expectations.execution_engine import (
PandasExecutionEngine,
SparkDFExecutionEngine,
SqlAlchemyExecutionEngine,
)
from great_expectations.expectations.metrics.import_manager import sa
from great_expectations.expectations.metrics.map_metric_provider import (
... | PypiClean |
/napari_brainbow_diagnose-0.1.3-py3-none-any.whl/napari_brainbow_diagnose/_utils_channel_space.py | import math
import numpy as np
import skimage.color as skc
from ._utils_shape import get_2D_wheel_coordinate, image_to_flat_data_points
# this files allows conversion between different color spaces
def rgb_to_hsv(rgb: np.ndarray, channel_axis: int = -1) -> np.ndarray:
"""Convert RGB to HSV.
Parameters
... | PypiClean |
/pyscal_rdf-0.0.14-py3-none-any.whl/pyscal_rdf/network.py | import networkx as nx
import matplotlib.pyplot as plt
import numpy as np
class Network:
"""
Network representation of CMSO
"""
def __init__(self):
self.g = nx.DiGraph()
def add(self, sub, pred, obj, dtype=None, pred_prefix="cmso"):
pred = f'{pred_prefix}:{pred}'
self.g.... | PypiClean |
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/mkdirp/node_modules/minimist/index.js | module.exports = function (args, opts) {
if (!opts) opts = {};
var flags = { bools : {}, strings : {} };
[].concat(opts['boolean']).filter(Boolean).forEach(function (key) {
flags.bools[key] = true;
});
[].concat(opts.string).filter(Boolean).forEach(function (key) {
fla... | PypiClean |
/great_expectations-0.17.14.tar.gz/great_expectations-0.17.14/great_expectations/expectations/metrics/map_metric_provider/multicolumn_map_metric_provider.py | from __future__ import annotations
import logging
from typing import TYPE_CHECKING, Optional, Tuple
from great_expectations.compatibility.typing_extensions import override
from great_expectations.core import ExpectationConfiguration # noqa: TCH001
from great_expectations.core._docs_decorators import public_api
from ... | PypiClean |
/Filezen-1.5.3.tar.gz/Filezen-1.5.3/filezen/advancedScanner/advancedscanner.py | import os
import json
from collections import defaultdict
from filezen.frequencyHeap import frequencyheap
from filezen.scanner import scanner
class AdvancedScanner(scanner.Scanner):
"""
This class maintains a dictionary with
key being the file type and value being a
FREQUENCYHEAP. It then move the fi... | PypiClean |
/in-transformers-1.0.0.tar.gz/in-transformers-1.0.0/src/transformers/models/mvp/tokenization_mvp.py |
import json
import os
from functools import lru_cache
from typing import List, Optional, Tuple
import regex as re
from ...tokenization_utils import AddedToken, PreTrainedTokenizer
from ...utils import logging
logger = logging.get_logger(__name__)
VOCAB_FILES_NAMES = {"vocab_file": "vocab.json", "merges_file": "m... | PypiClean |
/certora_cli_alpha_CVL_rewrite-20230330.12.28.586030-py3-none-any.whl/certora_cli/EVMVerifier/certoraContextValidator.py | import json
import logging
import os
import re
import string
import sys
import itertools
import time
from copy import deepcopy
from pathlib import Path
from typing import Dict, List, Tuple, Set, Any
import EVMVerifier.certoraContext as Ctx
import EVMVerifier.certoraContextAttribute as Attr
import EVMVerifier.certoraVa... | PypiClean |
/aimm_simulator-2.0.3.tar.gz/aimm_simulator-2.0.3/examples/Q_learning_generalized_08.py |
from sys import stdout,stderr,exit
from copy import copy
from math import hypot
from random import choices
from numpy import array as np_array,argmax,exp as np_exp,sum as np_sum
class Q_learner:
def __init__(s,reward_function,alpha=0.5,gamma=1.0,verbose=False):
s.reward_function=reward_function # callback
... | PypiClean |
/nibiru_proto-0.21.7b1-py3-none-any.whl/nibiru_proto/cosmos/distribution/v1beta1/tx_pb2_grpc.py | """Client and server classes corresponding to protobuf-defined services."""
import grpc
from cosmos.distribution.v1beta1 import tx_pb2 as cosmos_dot_distribution_dot_v1beta1_dot_tx__pb2
class MsgStub(object):
"""Msg defines the distribution Msg service.
"""
def __init__(self, channel):
"""Constr... | PypiClean |
/djangoshop-wspay-0.1.2.tar.gz/djangoshop-wspay-0.1.2/README.md | # djangoshop-wspay
[](https://pypi.python.org/pypi/djangoshop-wspay)
**[WSPay](https://www.wspay.info/) Payment Integration for [djangoSHOP](http://www.django-shop.org).**
---
## Requirements
* [django-shop]
## Installation
Install using *pip*:
... | PypiClean |
/intel_scipy-1.0.0.0-cp36-cp36m-win_amd64.whl/scipy/sparse/spfuncs.py | from __future__ import division, print_function, absolute_import
__all__ = ['count_blocks','estimate_blocksize']
from .csr import isspmatrix_csr, csr_matrix
from .csc import isspmatrix_csc
from ._sparsetools import csr_count_blocks
def extract_diagonal(A):
raise NotImplementedError('use .diagonal() instead')
#... | PypiClean |
/sqlalchemy_json-0.7.0-py3-none-any.whl/sqlalchemy_json/__init__.py | from sqlalchemy.ext.mutable import Mutable, MutableDict, MutableList
from sqlalchemy.types import JSON
from .track import TrackedDict, TrackedList
__all__ = "MutableJson", "NestedMutableJson", "mutable_json_type"
__version__ = "0.7.0"
class _PickleMixin:
def __getstate__(self):
d = self.__dict__.copy()
... | PypiClean |
/greendeck-logging-0.2.0.tar.gz/greendeck-logging-0.2.0/greendeck_logging/save_as_single.py | from elasticsearch import Elasticsearch
from datetime import datetime,timedelta
import time
import os
import sys
from bson.objectid import ObjectId
from .logging_function import message_value
class GdLogging:
'''
initializing the gd logging the required variable
'''
def __init__(self, LOG_ECS_HOST, service_name, L... | PypiClean |
/sqlalchemy_migrate_hotoffthehamster-0.13.0-py3-none-any.whl/sqlalchemy_migrate_hotoffthehamster/versioning/script/py.py |
import shutil
import warnings
import logging
import inspect
import sqlalchemy_migrate_hotoffthehamster
from sqlalchemy_migrate_hotoffthehamster.versioning import genmodel, schemadiff
from sqlalchemy_migrate_hotoffthehamster.versioning.config import operations
from sqlalchemy_migrate_hotoffthehamster.versioning.templa... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_10/models/support_response.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_10 import models
class SupportResponse(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value i... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/web/v20180201/list_web_app_publishing_credentials_slot.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = [
'ListWebAppPublishingCredentialsSlotResult',
'AwaitableListWebAppPublishingCredentialsSlotResult',
'list_web_app_publishing_credentials_slot',
]
@... | PypiClean |
/edflow-test-0.0.8.tar.gz/edflow-test-0.0.8/edflow/data/util/util_dsets.py | import numpy as np
from edflow.data.dataset_mixin import DatasetMixin
from edflow.util import PRNGMixin
from edflow.util import retrieve
from edflow.main import get_obj_from_str
def JoinedDataset(dataset, key, n_joins):
"""Concat n_joins random samples based on the condition that
example_i[key] == example_j[k... | PypiClean |
/django-lightning-1.1.0rc2.tar.gz/django-lightning-1.1.0rc2/api_basebone/core/gmeta.py | GMETA_SERIALIZER_EXCLUDE_FIELDS = 'exclude_fields'
"""输出 schema 中的 title_field,数据类型:字符串"""
GMETA_TITLE_FIELD = 'title_field'
"""
字段的重置配置,例如觉得字段默认的 verbose_name 不好看可以使用此配置,例子如下:
field_form_config = {
'comments': {
'verbose_name': '我是谁',
'required': False,
}
}
"""
GMETA_FIELD_CONFIG = 'field_fo... | PypiClean |
/twist-op-0.2.tar.gz/twist-op-0.2/README.md | # twist-op
An order parameter for water with an interesting twist.
## What is twist?
Twist captures the torsion of the dihedral angles of the tetrahedral network-forming materials. Here is a [Newman projection](https://en.wikipedia.org/wiki/Newman_projection) of a bond in the network.
<img src="https://raw.github... | PypiClean |
/raetp-0.6.3.tar.gz/raetp-0.6.3/raet/nacling.py | # Import python libs
import sys
import time
import binascii
import six
import libnacl
from ioflo.base.consoling import getConsole
console = getConsole()
# Import raet libs
# pylint: disable=wildcard-import,unused-wildcard-import,redefined-builtin
from .abiding import * # import globals
# pylint: enable=wildcard-impo... | PypiClean |
/mage-ai-0.9.20.tar.gz/mage-ai-0.9.20/mage_ai/server/frontend_dist_base_path_template/_next/static/chunks/4883.a5bb0edbf8f3cc8f.js | "use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4883],{14883:function(e){e.exports=JSON.parse('{"base":"vs-dark","inherit":true,"rules":[{"background":"272822","token":""},{"foreground":"75715e","token":"comment"},{"foreground":"e6db74","token":"string"},{"foreground":"ae81ff","token":"constant.nu... | PypiClean |
/google_ads_megalista-18.0.2-py3-none-any.whl/google/ads/googleads/v13/services/services/keyword_plan_ad_group_keyword_service/transports/grpc.py | import warnings
from typing import Callable, Dict, Optional, Sequence, Tuple
from google.api_core import grpc_helpers
from google.api_core import gapic_v1
import google.auth # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # ty... | PypiClean |
/casai-home-frontend-20220503.0.tar.gz/casai-home-frontend-20220503.0/hass_frontend/frontend_latest/b6ae7f5e.js | (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[8084,3035,7516,8109,2891,244,6628],{18601:(e,t,i)=>{"use strict";i.d(t,{qN:()=>r.q,Wg:()=>o});var r=i(78220);class o extends r.H{click(){this.formElement&&(this.formElement.focus(),this.formElement.click())}setAriaLabel(e){th... | PypiClean |
/igot-0.1.0.tar.gz/igot-0.1.0/src/i_got/extractors/ckplayer.py |
__all__ = ['ckplayer_download']
from xml.etree import ElementTree as ET
from copy import copy
from ..common import *
#----------------------------------------------------------------------
def ckplayer_get_info_by_xml(ckinfo):
"""str->dict
Information for CKPlayer API content."""
e = ET.XML(ckinfo)
vi... | PypiClean |
/pyprometheus-0.0.9.tar.gz/pyprometheus-0.0.9/README.rst | Prometheus instrumentation library for Python applications
============================================================
The unofficial Python 2 and 3 client for `Prometheus`_.
.. image:: https://travis-ci.org/Lispython/pyprometheus.svg?branch=master
:target: https://travis-ci.org/Lispython/pyprometheus
Feature... | PypiClean |
/yandexcloud-0.229.0-py3-none-any.whl/yandex/cloud/datasphere/v1/project_data_service_pb2_grpc.py | """Client and server classes corresponding to protobuf-defined services."""
import grpc
from yandex.cloud.datasphere.v1 import project_data_service_pb2 as yandex_dot_cloud_dot_datasphere_dot_v1_dot_project__data__service__pb2
class ProjectDataServiceStub(object):
"""A set of methods for managing data of the Proj... | PypiClean |
/zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/ckeditor/3.6.2/ckeditor/skins/kama/skin.js | /*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.skins.add('kama',(function(){var a='cke_ui_color';return{editor:{css:['editor.css']},dialog:{css:['dialog.css']},richcombo:{canGroup:false},templates:{css:['templat... | PypiClean |
/fds.sdk.IRNConfiguration-1.0.7-py3-none-any.whl/fds/sdk/IRNConfiguration/model/relationship_category_save_dto.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.IRNConfiguration.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... | PypiClean |
/ansible-base-2.10.17.tar.gz/ansible-base-2.10.17/lib/ansible/modules/slurp.py |
# (c) 2012, Michael DeHaan <michael.dehaan@gmail.com>
# 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 = r'''
---
module: slurp
version_added: historical
short_description:... | PypiClean |
/django-static-url-0.1.0.tar.gz/django-static-url-0.1.0/README.rst | django-static-url - Generates dynamic static URL
================================================
:Authors:
Resulto Developpement Web Inc.
:Version: 0.1.0
By default, the URI of static resources does not change between deployment and
it is up to each project to come with a solution to invalidate the browser's
cache... | PypiClean |
/ptvpy-0.6.1.tar.gz/ptvpy-0.6.1/doc/getting_started.rst | .. highlight:: shell
===============
Getting started
===============
.. _installation:
Installation
============
Anaconda (recommended)
----------------------
.. warning:: This doesn't work yet!
If you haven't yet installed the `Anaconda distribution`_ please do so before
continuing.
Once this is done open the `A... | PypiClean |
/ciefunctions-1.0.2.tar.gz/ciefunctions-1.0.2/tc1_97/MathJax-2.7.5/unpacked/extensions/fast-preview.js | (function (HUB,HTML,BROWSER) {
var SETTINGS = HUB.config.menuSettings;
var JAX = MathJax.OutputJax;
var msieColorBug = BROWSER.isMSIE && (document.documentMode||0) < 8;
var FastPreview = MathJax.Extension["fast-preview"] = {
version: "2.7.5",
enabled: true,
//
// Configuration for the chun... | PypiClean |
/backpack-for-pytorch-1.6.0.tar.gz/backpack-for-pytorch-1.6.0/backpack/core/derivatives/lstm.py | from typing import List, Tuple
from torch import Tensor, cat, einsum, sigmoid, tanh, zeros
from torch.nn import LSTM
from backpack.core.derivatives.basederivatives import BaseParameterDerivatives
from backpack.utils.subsampling import subsample
class LSTMDerivatives(BaseParameterDerivatives):
"""Partial derivat... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/bluebird/js/main/map.js | "use strict";
module.exports = function(Promise,
PromiseArray,
apiRejection,
tryConvertToPromise,
INTERNAL) {
var getDomain = Promise._getDomain;
var async = require("./async.js");
var util = require("./util.js");
va... | PypiClean |
/ansible-kkvesper-2.3.2.0.tar.gz/ansible-kkvesper-2.3.2.0/test/README.md | Ansible Test System
===================
Folders
=======
units
-----
Unit tests that test small pieces of code not suited for the integration test layer, usually very API based, and should leverage
mock interfaces rather than producing side effects.
Playbook engine code is better suited for integration tests.
Requi... | PypiClean |
/func_adl_servicex_xaodr22-1.1.4.22.2.113-py3-none-any.whl/func_adl_servicex_xaodr22/xAOD/trackparticle_v1.py | from __future__ import annotations
import ast
from typing import Tuple, TypeVar, Iterable
from func_adl import ObjectStream, func_adl_callback, func_adl_parameterized_call
import func_adl_servicex_xaodr22
_method_map = {
'pt': {
'metadata_type': 'add_method_type_info',
'type_string': 'xAOD::TrackPa... | PypiClean |
/cmlibs.zinc-4.0.2-cp310-cp310-win_amd64.whl/cmlibs/zinc/scene.py |
from sys import version_info as _swig_python_version_info
if _swig_python_version_info < (2, 7, 0):
raise RuntimeError("Python 2.7 or later required")
# Import the low-level C/C++ module
if __package__ or "." in __name__:
from . import _scene
else:
import _scene
try:
import builtins as __builtin__
ex... | PypiClean |
/offspring-0.1.1.tar.gz/offspring-0.1.1/README.rst | Offspring
=========
.. image:: https://img.shields.io/travis/borgstrom/offspring.svg
:target: https://travis-ci.org/borgstrom/offspring
.. image:: https://img.shields.io/codecov/c/github/borgstrom/offspring.svg
:target: https://codecov.io/github/borgstrom/offspring
.. image:: https://img.shield... | PypiClean |
/django-ckedit-1.0.zip/django-ckedit-1.0/ckeditor/static/javascript/ckeditor/lang/uk.js | /*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang['uk']={"editor":"Текстовий редактор","editorPanel":"Панель текстового редактора","common":{"editorHelp":"натисніть ALT 0 для довідки","browseServer":"Огляд Серв... | PypiClean |
/fake-switches-1.5.0.tar.gz/fake-switches-1.5.0/fake_switches/brocade/command_processor/config_vlan.py |
from fake_switches.command_processing.base_command_processor import BaseCommandProcessor
from fake_switches.switch_configuration import split_port_name, VlanPort
class ConfigVlanCommandProcessor(BaseCommandProcessor):
def init(self, switch_configuration, terminal_controller, logger, piping_processor, *args):
... | PypiClean |
/phonenumberslite-8.13.19.tar.gz/phonenumberslite-8.13.19/phonenumbers/data/region_AT.py | from ..phonemetadata import NumberFormat, PhoneNumberDesc, PhoneMetadata
PHONE_METADATA_AT = PhoneMetadata(id='AT', country_code=43, international_prefix='00',
general_desc=PhoneNumberDesc(national_number_pattern='1\\d{3,12}|2\\d{6,12}|43(?:(?:0\\d|5[02-9])\\d{3,9}|2\\d{4,5}|[3467]\\d{4}|8\\d{4,6}|9\\d{4,7})|5\\d{... | PypiClean |
/blink_cameras-0.3.13-py3-none-any.whl/blink/blink.py | import dateutil.parser
import os
import pytz
import requests
class Network(object):
def __init__(self, **kwargs):
for k, v in kwargs.items():
setattr(self, k, v)
def __repr__(self):
return '<Network id=%s name=%s>' % (self.id, repr(self.name))
class SyncModule(object):
def _... | PypiClean |
/ehelply_python_experimental_sdk-1.1.118-py3-none-any.whl/ehelply_python_experimental_sdk/api/users_api_endpoints/reset_password_confirmation.py | from dataclasses import dataclass
import re # noqa: F401
import sys # noqa: F401
import typing
import urllib3
import functools # noqa: F401
from urllib3._collections import HTTPHeaderDict
from ehelply_python_experimental_sdk import api_client, exceptions
import decimal # noqa: F401
from datetime import date, datet... | PypiClean |
/typegraph_std-0.0.1.tar.gz/typegraph_std-0.0.1/typegraph_std/google/civicinfo.py | from typegraph import t
from box import Box
from typegraph.importers.base.importer import Import
from typegraph.runtimes.http import HTTPRuntime
def import_civicinfo() -> Import:
civicinfo = HTTPRuntime("https://civicinfo.googleapis.com/")
renames = {
"ErrorResponse": "_civicinfo_1_ErrorResponse",
... | PypiClean |
/sqlmath-2023.7.21.tar.gz/sqlmath-2023.7.21/sqlmath_wrapper_wasm.js | /*global
AsciiToString
FS
HEAPU8
Module
_sqlite3_free
_sqlite3_initialize
_sqlite3_malloc
cwrap
*/
// init debugInline
let debugInline = (function () {
let __consoleError = function () {
return;
};
function debug(...argv) {
// This function will print <argv> to std... | PypiClean |
/Theano-PyMC-1.1.2.tar.gz/Theano-PyMC-1.1.2/theano/gpuarray/basic_ops.py | import copy
import os
import re
from collections import deque
import numpy as np
import theano
from theano import tensor
from theano.configdefaults import config
from theano.gradient import grad_undefined
from theano.graph.basic import Apply, Variable
from theano.graph.op import COp, ExternalCOp, Op, _NoPythonOp
from... | PypiClean |
/Qiber3D-0.7.0.tar.gz/Qiber3D-0.7.0/README.md | # Qiber3D <img src='https://github.com/theia-dev/Qiber3D/raw/master/docs/img/synthetic_animation_silver.gif' align="right"/>
Automated quantification of fibrous networks
[](https://pypi.org/project/Qiber3D/)
[:
def _gettype(arg):
if isinstance(arg... | PypiClean |
/tb-rest-client-3.5.tar.gz/tb-rest-client-3.5/tb_rest_client/models/models_pe/user_group_list_filter.py | # Copyright 2023. ThingsBoard
#
# 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 writi... | PypiClean |
/stellar-sdk-extra-0.0.0.tar.gz/stellar-sdk-extra-0.0.0/stellar_base/base58.py | # This module is based upon base58 snippets found scattered over many bitcoin
# tools written in python. From what I gather the original source is from a
# forum post by Gavin Andresen, so direct your praise to him.
# This module adds shiny packaging and support for python3.
__version__ = '0.2.2'
from hashlib import ... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/device_management/group_policy_object_files/count/count_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 |
/PyCICADA-1.0.9.tar.gz/PyCICADA-1.0.9/src/cicada/analysis/ci_analyses/cicada_splitting_cells_analysis.py | from cicada.analysis.cicada_analysis import CicadaAnalysis
from cicada.utils.display.cells_map_utils import CellsCoord, get_coords_from_caiman_format_file
import sys
from time import sleep, time
import os
import numpy as np
import matplotlib.cm as cm
from cicada.utils.display.colors import BREWER_COLORS
import matplotl... | PypiClean |
/externalpyoverlay-1.0.3-py3-none-any.whl/externalpyoverlay.py | from time import sleep
import pygame
import win32api
import win32gui
import win32con
import os
class OverlayImage:
def __init__(self, image_path: str, alpha: float):
self.image = pygame.image.load(image_path)
if alpha <= 1:
self.image.set_alpha(alpha * 255)
else:
se... | PypiClean |
/djk-bootstrap3-2.1.0.tar.gz/djk-bootstrap3-2.1.0/djk_ui/static/djk/js/lib/bootstrap-datetimepicker.min.js | !function(a,b){"use strict";if("function"==typeof define&&define.amd)define(["jquery","moment"],b);else if("object"==typeof exports)b(require("jquery"),require("moment"));else{if(!jQuery)throw new Error("bootstrap-datetimepicker requires jQuery to be loaded first");if(!moment)throw new Error("bootstrap-datetimepicker r... | PypiClean |
/xengsort-2.0.0.tar.gz/xengsort-2.0.0/README.md | # xengsort: Fast lightweight accurate xenograft sorting
This tool, xengsort, uses 3-way bucketed Cuckoo hashing to efficiently solve the xenograft sorting problem.
For a description of the method an evaluation on several datasets, please see our
[article in "Algorithms for Molecular Biology"](https://almob.biomedcent... | PypiClean |
/ome_types-0.4.2.tar.gz/ome_types-0.4.2/src/xsdata_pydantic_basemodel/compat.py | from contextlib import suppress
from typing import Any, Callable, Dict, Generic, List, Optional, Tuple, Type, TypeVar
try:
from lxml import etree as ET
except ImportError:
import xml.etree.ElementTree as ET # type: ignore
from pydantic import BaseModel, validators
from xsdata.formats.dataclass.compat import ... | PypiClean |
/zero-users-0.1.7.tar.gz/zero-users-0.1.7/users/views.py |
__author__ = 'Jose Maria Zambrana Arze'
__email__ = 'contact@josezambrana.com'
__version__ = '0.1'
__copyright__ = 'Copyright 2012, Mandla Web Studio'
import logging
import traceback
from django import template
from django.http import Http404
from django.shortcuts import render_to_response
from django.shortcuts im... | PypiClean |
/Pyfhel-3.4.1.tar.gz/Pyfhel-3.4.1/examples/Demo_3_Float_CKKS.py | import numpy as np
from Pyfhel import Pyfhel
HE = Pyfhel() # Creating empty Pyfhel object
ckks_params = {
'scheme': 'CKKS', # can also be 'ckks'
'n': 2**14, # Polynomial modulus degree. For CKKS, n/2 values can be
# encoded in a single ciphertext.
... | PypiClean |
/edge_orm-0.8.3.tar.gz/edge_orm-0.8.3/edge_orm/logs.py | import typing as T
import logging
from enum import Enum
FORMAT_STR = "%(asctime)s | %(process)d | %(name)s | %(levelname)s: %(message)s"
class Color(str, Enum):
BLACK = 0
RED = 1
GREEN = 2
YELLOW = 3
BLUE = 4
PURPLE = 5
TEAL = 6
GREY = 7
RESET_STR = "\x1b[0m"
def format_str_from_... | PypiClean |
/mycroft-ekylibre-utils-0.9.tar.gz/mycroft-ekylibre-utils-0.9/mycroft/tts/mimic2_tts.py |
from mycroft.tts import TTS, TTSValidator
from mycroft.tts.remote_tts import RemoteTTSTimeoutException
from mycroft.util.log import LOG
from mycroft.util.format import pronounce_number
from mycroft.util import play_wav, get_cache_directory, create_signal
from requests_futures.sessions import FuturesSession
from reques... | PypiClean |
/tensorflow_ascend-1.15.0-cp37-cp37m-manylinux2014_aarch64.whl/tensorflow_core/python/ops/ragged/ragged_conversion_ops.py | """Ops to convert between RaggedTensors and other tensor types."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow.python.framework import constant_op
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops... | PypiClean |
/azure-mgmt-appplatform-8.0.0.zip/azure-mgmt-appplatform-8.0.0/azure/mgmt/appplatform/aio/_configuration.py | from typing import Any, TYPE_CHECKING
from azure.core.configuration import Configuration
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy
from .._version import VERSION
if TYPE_CHECKING:
# pylint: disable=unused-import,ungro... | PypiClean |
/autobean_refactor-0.2.4-py3-none-any.whl/autobean_refactor/models/internal/value_properties.py | import bisect
import datetime
import decimal
import abc
import itertools
from typing import Any, Callable, Collection, Generic, Iterable, Iterator, MutableSequence, Optional, Type, TypeGuard, TypeVar, cast, overload
from typing_extensions import Self
from .. import base
from . import indexes, base_property, properties
... | PypiClean |
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/intl/locale-data/jsonp/en-GG.js | IntlPolyfill.__addLocaleData({locale:"en-GG",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:true,hour12:false,formats:{short:"{1}, {0}",medium:"{1}, {0}",full:"{1} 'at' {0}",long:"{1} 'at' {0}",available... | PypiClean |
/backtrader2-1.9.76.123.tar.gz/backtrader2-1.9.76.123/backtrader/stores/vcstore.py | from __future__ import (absolute_import, division, print_function,
unicode_literals)
import collections
from datetime import date, datetime, time, timedelta
import os.path
import threading
import time as _timemod
import ctypes
from backtrader import TimeFrame, Position
from backtrader.feed i... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_6/api/kmip_api.py | from __future__ import absolute_import
import re
# python 2 and python 3 compatibility library
import six
from typing import List, Optional
from .. import models
class KMIPApi(object):
def __init__(self, api_client):
self.api_client = api_client
def api26_kmip_delete_with_http_info(
self,
... | PypiClean |
/enough-2.2.35.tar.gz/enough-2.2.35/playbooks/debops/ansible/roles/volkszaehler/docs/getting-started.rst | .. Copyright (C) 2017 Robin Schneider <ypid@riseup.net>
.. Copyright (C) 2017 DebOps <https://debops.org/>
.. SPDX-License-Identifier: GPL-3.0-only
.. _volkszaehler__ref_getting_started:
Getting started
===============
.. include:: includes/all.rst
.. contents::
:local:
Database support
----------------
It is... | PypiClean |
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/autoprefixer/lib/supports.js | 'use strict';
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
function _classCallCheck(instance,... | PypiClean |
/sknrf-core-1.1.1.tar.gz/sknrf-core-1.1.1/sknrf/view/desktop/sideview/sequencer.py | from PySide6.QtWidgets import QFrame, QWidget
from PySide6.QtWidgets import QVBoxLayout
from sknrf.model.base import AbstractModel
from sknrf.view.desktop.sideview.base import AbstractSideView
from sknrf.view.desktop.sideview.QSequencerSideView_ui import Ui_sequencerSideViewFrame
from sknrf.view.desktop.sequencer.widg... | PypiClean |
/ansible-kkvesper-2.3.2.0.tar.gz/ansible-kkvesper-2.3.2.0/lib/ansible/modules/network/avi/avi_poolgroup.py |
ANSIBLE_METADATA = {'metadata_version': '1.0',
'status': ['preview'],
'supported_by': 'community'}
DOCUMENTATION = '''
---
module: avi_poolgroup
author: Gaurav Rastogi (grastogi@avinetworks.com)
short_description: Module for setup of PoolGroup Avi RESTful Object
description:
... | PypiClean |
/legal_doc_processing-2.2.6.tar.gz/legal_doc_processing-2.2.6/legal_doc_processing/press_release/information_extraction.py | from legal_doc_processing.press_release.compliance_obligations.predict import (
predict_compliance_obligations,
)
from legal_doc_processing.press_release.court.predict import (
predict_court,
)
from legal_doc_processing.press_release.cooperation_credit.predict import (
predict_cooperation_credit,
)
from l... | PypiClean |
/django_evolution-2.2.tar.gz/django_evolution-2.2/django_evolution/deprecation.py | from __future__ import unicode_literals
import warnings
class BaseRemovedInDjangoEvolutionWarning(DeprecationWarning):
"""Base class for a Django Evolution deprecation warning.
All version-specific deprecation warnings inherit from this, allowing
callers to check for Django Evolution deprecations withou... | PypiClean |
/sphinxnotes-lilypond-2.0.1.tar.gz/sphinxnotes-lilypond-2.0.1/src/sphinxnotes/lilypond/lilypond.py | from __future__ import annotations
import os
from os import path
import subprocess
from packaging import version
import itertools
from ly import pitch
from ly import document
from ly import docinfo
from ly import pkginfo
from ly.pitch import transpose
# Golbal bining config
class Config(object):
lilypond_args:lis... | PypiClean |
/pantsbuild.pants-2.18.0a0-cp39-cp39-macosx_10_15_x86_64.whl/pants/backend/python/goals/publish.py |
from __future__ import annotations
import logging
from dataclasses import dataclass
from pants.backend.python.subsystems.twine import TwineSubsystem
from pants.backend.python.target_types import PythonDistribution
from pants.backend.python.util_rules.pex import PexRequest, VenvPex, VenvPexProcess
from pants.core.goa... | PypiClean |
/Pyevolve-0.6rc1.tar.gz/Pyevolve-0.6rc1/pyevolve/Consts.py | import Scaling
import Selectors
import Initializators
import Mutators
import Crossovers
import logging
from GTree import GTreeGP
# Required python version 2.5+
CDefPythonRequire = (2, 5)
# Logging system
CDefLogFile = "pyevolve.log"
CDefLogLevel = logging.DEBUG
# Types of sort
# - raw: uses the "score" attribute
# -... | PypiClean |
/keeper-secrets-manager-core-16.6.1.tar.gz/keeper-secrets-manager-core-16.6.1/keeper_secrets_manager_core/core.py |
import hmac
import json
import logging
import os
import re
import requests
import sys
from base64 import urlsafe_b64decode
from distutils.util import strtobool
from http import HTTPStatus
from typing import List, Tuple, Optional
from keeper_secrets_manager_core import utils, helpers
from keeper_secrets_manager_core.c... | PypiClean |
/merge_crm_client-1.0.0-py3-none-any.whl/MergeCRMClient/api/opportunities_api.py | import re # noqa: F401
import sys # noqa: F401
from MergeCRMClient.api_client import ApiClient, Endpoint as _Endpoint
from MergeCRMClient.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types
)
from Mer... | PypiClean |
/wagtail-rest-pack-0.0.43.tar.gz/wagtail-rest-pack-0.0.43/src/wagtail_rest_pack/custom_menu/migrations/0007_alter_custommenu_stream.py |
from django.db import migrations
import wagtail.blocks
import wagtail.fields
class Migration(migrations.Migration):
dependencies = [
('custom_menu', '0006_auto_20211003_1614'),
]
operations = [
migrations.AlterField(
model_name='custommenu',
name='stream',
... | PypiClean |
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/securityhub/delete-finding-aggregator.rst | **To stop finding aggregation**
The following ``delete-finding-aggregator`` example stops finding aggregation. It is run from US East (Virginia), which is the aggregation Region. ::
aws securityhub delete-finding-aggregator \
--region us-east-1 \
--finding-aggregator-arn arn:aws:securityhub:us-eas... | PypiClean |
/ap_features-2023.6.1-py3-none-any.whl/ap_features/plot.py | from functools import wraps
from typing import List
import numpy as np
from . import beat as _beat
def has_matplotlib() -> bool:
try:
import matplotlib.pyplot # noqa: F401
except (ImportError, ModuleNotFoundError):
return False
return True
def require_matplotlib(f):
@wraps(f)
... | PypiClean |
/pytest_hypo_25-2.3.tar.gz/pytest_hypo_25-2.3/pytest_hypo_25/escalation.py |
import os
import sys
import traceback
from inspect import getframeinfo
from pathlib import Path
from typing import Dict
import hypothesis
from hypothesis.errors import (
DeadlineExceeded,
HypothesisException,
MultipleFailures,
StopTest,
UnsatisfiedAssumption,
)
def belongs_to(package):
if no... | PypiClean |
/actsnclass-1.2-py3-none-any.whl/actsnclass-1.2.data/scripts/run_time_domain.py |
__all__ = ['main']
import argparse
from actsnclass.time_domain_loop import time_domain_loop
def main(user_choice):
"""Command line interface to the Time Domain Active Learning scenario.
Parameters
----------
-d: sequence
List of 2 elements. First and last day of observations since the
... | PypiClean |
/superset-erikxt-0.26.0.tar.gz/superset-erikxt-0.26.0/superset/static/assets/src/visualizations/country_map.js | import d3 from 'd3';
import './country_map.css';
import { colorScalerFactory } from '../modules/colors';
function countryMapChart(slice, payload) {
// CONSTANTS
const fd = payload.form_data;
let path;
let g;
let bigText;
let resultText;
const container = slice.container;
const data = payload.data;
c... | PypiClean |
/discord-py-interactions-5.9.2.tar.gz/discord-py-interactions-5.9.2/interactions/models/discord/asset.py | import re
from typing import TYPE_CHECKING, Optional, Union
import attrs
from interactions.client.utils.serializer import no_export_meta
if TYPE_CHECKING:
from os import PathLike
from interactions.client import Client
__all__ = ("Asset",)
@attrs.define(eq=False, order=False, hash=False, kw_only=False)
cl... | PypiClean |
/fds.sdk.SecuritizedDerivativesAPIforDigitalPortals-0.10.2-py3-none-any.whl/fds/sdk/SecuritizedDerivativesAPIforDigitalPortals/model/inline_response2005_data_knock_out.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.SecuritizedDerivativesAPIforDigitalPortals.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetim... | PypiClean |
/galaxy-fds-sdk-1.4.41.tar.gz/galaxy-fds-sdk-1.4.41/fds/galaxy_fds_client.py | import hashlib
import json
from sys import version_info
IS_PY3 = version_info[0] >= 3
if IS_PY3:
from urllib.parse import quote
from urllib.parse import urlparse
else:
from urllib import quote as _quote
from urlparse import urlparse
def quote(x):
if isinstance(x, unicode):
x = x.encode('utf8')
... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/@lumino/widgets/types/gridlayout.d.ts | import { IIterator } from '@lumino/algorithm';
import { Message } from '@lumino/messaging';
import { Layout } from './layout';
import { Widget } from './widget';
/**
* A layout which arranges its widgets in a grid.
*/
export declare class GridLayout extends Layout {
/**
* Construct a new grid layout.
*
... | PypiClean |
/chainer-7.8.1.tar.gz/chainer-7.8.1/onnx_chainer/functions/normalization.py | import sys
import chainer
import numpy as np
from onnx_chainer.functions.array import get_slice_node
from onnx_chainer.functions.opset_version import support
from onnx_chainer import onnx_helper
@support((1, 6, 7))
def convert_BatchNormalization(
func, opset_version, input_names, output_names, context):
... | PypiClean |
/pygeojson-0.2.0.tar.gz/pygeojson-0.2.0/README.md | # pygeojson 🗺
GeoJSON library for Python with [types](https://docs.python.org/3/library/typing.html).
The world doesn't need another
[GeoJSON library for python](https://github.com/jazzband/geojson), but it needs
a better one. The goal of this library is to provide a simple and typed data
model for GeoJSON such that... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/identity_governance/entitlement_management/access_package_assignments/item/access_package_assignment_resource_roles/item/access_package_assignment_resource_role_item_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 |
/deap-er-2.0.0.tar.gz/deap-er-2.0.0/deap_er/utilities/initializers.py | from collections.abc import Callable, Iterable
__all__ = ['init_repeat', 'init_iterate', 'init_cycle']
# ====================================================================================== #
def init_repeat(container: Callable, func: Callable, size: int) -> Iterable:
"""
Calls the **func** argument **cou... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/eslint/lib/rules/comma-style.js | "use strict";
const astUtils = require("./utils/ast-utils");
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
module.exports = {
meta: {
type: "layout",
docs: {
... | PypiClean |
/spookvooperapi-0.0.1.tar.gz/spookvooperapi-0.0.1/node_modules/punycode/README.md | # Punycode.js [](https://travis-ci.org/bestiejs/punycode.js) [](https://codecov.io/gh/bestiejs/punycode.js) [![Dependency status](https://gemnasium.com/bes... | PypiClean |
/smartdata-1.0.tar.gz/smartdata-1.0/smartui/static/admin/simpleui-x/elementui/locale/lang/sl.js | 'use strict';
exports.__esModule = true;
exports.default = {
el: {
colorpicker: {
confirm: 'V redu',
clear: 'Počisti'
},
datepicker: {
now: 'Zdaj',
today: 'Danes',
cancel: 'Prekliči',
clear: 'Počisti',
confirm: 'Potrdi',
selectDate: 'Izberi datum',
se... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.