id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/auquan_toolbox_beta-1.1.4.tar.gz/auquan_toolbox_beta-1.1.4/backtester/model_learning_system.py | import sys, os
import pandas as pd
import glob, json
import numpy as np
from dateutil import parser
from datetime import timedelta
from backtester.dataSource import data_source_classes
from backtester.dataSource.features_data_source import FeaturesDataSource
from backtester.modelLearningManagers.feature_manager import ... | PypiClean |
/stockwebscraper-0.2.2.tar.gz/stockwebscraper-0.2.2/README.md | # StockWebScraperPipPkg
Open source stock webscraper, downloadable through PIP (python's package manager)
The stock-webscraper makes getting stock prices easier then ever to get started run:
pip install stock-webscraper
create a new file and import stock-webscraper
now to get the price of a stock simply make a variab... | PypiClean |
/iso639_1-1.0-py3-none-any.whl/iso639_1/language.py | from enum import Enum, unique
@unique
class Language(Enum):
AB = "Abkhazian"
AA = "Afar"
AF = "Afrikaans"
AK = "Akan"
SQ = "Albanian"
AM = "Amharic"
AR = "Arabic"
AN = "Aragonese"
HY = "Armenian"
AS = "Assamese"
AV = "Avaric"
AE = "Avestan"
AY = "Aymara"
AZ = "A... | PypiClean |
/codat-assess-0.31.1.tar.gz/codat-assess-0.31.1/src/codatassess/excel_reports.py |
from .sdkconfiguration import SDKConfiguration
from codatassess import utils
from codatassess.models import operations, shared
from typing import Optional
class ExcelReports:
r"""Downloadable reports"""
sdk_configuration: SDKConfiguration
def __init__(self, sdk_config: SDKConfiguration) -> None:
... | PypiClean |
/rnnlm-python-0.2.3.tar.gz/rnnlm-python-0.2.3/README.rst | RNNLM Toolkit wrapper for python
==========================
rnnlm-python is a python wrapper module for RNNLM Toolkit.
RNNLM Toolkit is developed by Tomas Mikolov
Detailed information of RNNLM Toolkit can be found at
http://rnnlm.org/
Install rnnlm-python
--------------------
% pip install rnnlm-python
Instal... | PypiClean |
/conda_lock-2.2.0.tar.gz/conda_lock-2.2.0/conda_lock/_vendor/conda/plan.py | from __future__ import absolute_import, division, print_function, unicode_literals
from collections import defaultdict
from logging import getLogger
import sys
try:
from tlz.itertoolz import concatv, groupby
except ImportError:
from conda_lock._vendor.conda._vendor.toolz.itertoolz import concatv, groupby
fro... | PypiClean |
/dsin100daysv28-6.0.1.tar.gz/dsin100daysv28-6.0.1/notebook/static/components/MathJax/extensions/a11y/mathmaps/en/symbols/latin-mathfonts-bold-script.js | [{"locale":"en"},{"category":"Lu","mappings":{"default":{"default":"bold script capital a","short":"bold script cap a"},"mathspeak":{"default":"bold script upper A"}},"key":"1D4D0"},{"category":"Lu","mappings":{"default":{"default":"bold script capital b","short":"bold script cap b"},"mathspeak":{"default":"bold script... | PypiClean |
/js.tinymce-4.5.4.tar.gz/js.tinymce-4.5.4/js/tinymce/resources/classes/dom/ControlSelection.js | * This class handles control selection of elements. Controls are elements
* that can be resized and needs to be selected as a whole. It adds custom resize handles
* to all browser engines that support properly disabling the built in resize logic.
*
* @class tinymce.dom.ControlSelection
*/
define("tinymce/dom/Cont... | PypiClean |
/matrix-synapse-ray-1.12.0.4.tar.gz/matrix-synapse-ray-1.12.0.4/synapse/storage/data_stores/main/cache.py |
import itertools
import logging
from typing import Any, Iterable, Optional, Tuple
from twisted.internet import defer
from synapse.storage._base import SQLBaseStore
from synapse.storage.engines import PostgresEngine
from synapse.util.iterutils import batch_iter
logger = logging.getLogger(__name__)
# This is a spe... | PypiClean |
/fds.sdk.ETFProfileandPrices-0.10.8-py3-none-any.whl/fds/sdk/ETFProfileandPrices/model/inline_response20013.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.ETFProfileandPrices.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,
n... | PypiClean |
/sas-frontend-20211225.2.tar.gz/sas-frontend-20211225.2/sas_frontend/frontend_latest/39e2b31e.js | "use strict";(self.webpackChunksas_frontend=self.webpackChunksas_frontend||[]).push([[18449],{21157:(t,e,i)=>{i(94604);const n=i(50856).d`
/* Most common used flex styles*/
<dom-module id="iron-flex">
<template>
<style>
.layout.horizontal,
.layout.vertical {
display: -ms-flexbox;
displ... | PypiClean |
/Orange3_WorldHappiness-0.1.9-py3-none-any.whl/Orange3_WorldHappiness-0.1.9.data/data/help/orange3-worldhappiness/_static/js/html5shiv-printshiv.min.js | !function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=y.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=y.elements;"string"!=typeof c&&... | PypiClean |
/docx_charts-0.1.10-py3-none-any.whl/docx_charts/document.py | import os
import tempfile
import shutil
from xml.dom import minidom
from docx_charts.chart import Chart
class Document:
'''
Represents a Word document.
Attributes:
file_path (str): The path to the Word document.
extracted (tempfile.TemporaryDirectory): A temporary directory containing the extracted contents ... | PypiClean |
/azure_percept-0.0.13-cp38-cp38-manylinux_2_24_aarch64.whl/azure/iot/percept/mo/front/common/partial_infer/concat.py |
import logging as log
# Concat infer : N - number of inputs to concat
# axis - dimension number for tensors concatenation
import numpy as np
from mo.front.caffe.extractors.utils import get_canonical_axis_index
from mo.front.common.partial_infer.utils import int64_array
from mo.ops.op import PermuteAtt... | PypiClean |
/mamba-framework-0.3.5.tar.bz2/mamba-framework-0.3.5/mamba/enterprise/postgres.py | import sys
import inspect
from storm import variables
from twisted.python import components
from storm.references import Reference
from mamba.utils import config
from mamba.core.interfaces import IMambaSQL
from mamba.core.adapters import MambaSQLAdapter
from mamba.enterprise.common import CommonSQL, NativeEnumVariabl... | PypiClean |
/symphony_bdk_python-2.6.1-py3-none-any.whl/symphony/bdk/gen/pod_api/info_barriers_api.py | import re # noqa: F401
import sys # noqa: F401
from symphony.bdk.gen.api_client import ApiClient, Endpoint as _Endpoint
from symphony.bdk.gen.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types
)
from... | PypiClean |
/564bff00ff_strawberry_graphql-0.168.2-py3-none-any.whl/strawberry/experimental/pydantic/utils.py | from __future__ import annotations
import dataclasses
from typing import (
TYPE_CHECKING,
Any,
List,
NamedTuple,
NoReturn,
Set,
Tuple,
Type,
Union,
cast,
)
from pydantic.utils import smart_deepcopy
from strawberry.experimental.pydantic.exceptions import (
AutoFieldsNotInBa... | PypiClean |
/robotframework-couchbaselibrary-2.0.2.tar.gz/robotframework-couchbaselibrary-2.0.2/README.rst | Robot Framework Couchbase Library
=================================
|Build Status|
Short Description
-----------------
`Robot Framework`_ library to work with Couchbase.
Installation
------------
Before installing robotframework-couchbaselibrary, you should have the following to be installed:
- Couchbase Server (... | PypiClean |
/djangorestframework-inclusions-1.1.0.tar.gz/djangorestframework-inclusions-1.1.0/CHANGES.rst | 1.1.0 (2020-03-26)
------------------
The old approach would generate a new database query for each inclusion made.
This meant that Django mechanisms such as select_related and prefetch_related
to optimize queryset performance had no effect, and it became harder to debug
the performance hotspots of applications.
This... | PypiClean |
/nni-3.0rc1-py3-none-macosx_10_9_x86_64.whl/nni_node/node_modules/sqlite3/node_modules/node-gyp/gyp/tools/graphviz.py |
# Copyright (c) 2011 Google Inc. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Using the JSON dumped by the dump-dependency-json generator,
generate input suitable for graphviz to render a dependency graph of
targets."""
import collecti... | PypiClean |
/py_basic_commands-0.2.25b2-py3-none-any.whl/py_basic_commands/file_dir_scripts/remove_file_dir.py | from py_basic_commands.file_dir_scripts import read_file
from py_basic_commands.fscripts import Fprint
from py_basic_commands.base import Base
from dataclasses import dataclass
from send2trash import send2trash
from os import listdir
fprint = Fprint()
@dataclass
class RemoveFileDir(Base):
"""Remove ... | PypiClean |
/meta_blocks-0.1.0a3.tar.gz/meta_blocks-0.1.0a3/meta_blocks/adaptation/maml.py |
import logging
from typing import Callable, List, Optional
import tensorflow.compat.v1 as tf
from meta_blocks import common, optimizers
from meta_blocks.adaptation import base
from meta_blocks.adaptation import maml_utils as utils
from meta_blocks.tasks.base import Task, TaskDistribution
__all__ = ["Maml"]
logger ... | PypiClean |
/fair_lnc_evaluation-0.0.1.tar.gz/fair_lnc_evaluation-0.0.1/examples/standardMLdataset.ipynb | # Example Notebook: Using `fair-lnc-evaluation` on standard ML datasets
This notebook demonstrates the usage of `fair-lnc-evaluation` to empirically evaluate the **Polishing Labels** noise correction method (Nicholson, Bryce, et al. "Label noise correction methods." 2015 IEEE International Conference on Data Science a... | PypiClean |
/collective.elasticindex-1.2.5.zip/collective.elasticindex-1.2.5/src/collective/elasticindex/browser/search.js | (function($, JSON) {
// Hang on in there. We have jQuery, 1.4.
var BATCH_SIZE = 15;
var ALLOWED_COLON_WORDS = /(title|description|contributors|subject|content)$/i;
// Lucene special chars: && || ! ( ) { } [ ] ^ \
// Following regex contains Lucene special chars and punctuation chars (the colon it's... | PypiClean |
/virtualenv-activator-0.1.2.tar.gz/virtualenv-activator-0.1.2/activate.sh |
# Only allow bash
if [[ -z "${BASH_SOURCE}" ]]; then
echo "Don't be ridiculous. Use bash." >&2
return 1
fi
deactivate () {
__OLDPWD="${OLDPWD}"; cd "${VIRTUAL_ENV}"
# Save a list of current environment variables
env | awk -F"=" '{print $1}' | sort > tmp/post_activate_variables.$$
# Save a li... | PypiClean |
/bunker-1.0.1-py3-none-any.whl/openapi_client/api_client.py | from __future__ import absolute_import
import datetime
import json
import mimetypes
from multiprocessing.pool import ThreadPool
import os
import re
import tempfile
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import quote
from openapi_client.configuration import Configuration
... | PypiClean |
/ssh_proxy_server-0.2.8.tar.gz/ssh_proxy_server-0.2.8/ssh_proxy_server/session.py | import logging
import threading
from paramiko import Transport, AUTH_SUCCESSFUL
from paramiko.agent import AgentServerProxy
from ssh_proxy_server.interfaces.server import ProxySFTPServer
class Session:
CIPHERS = None
def __init__(self, proxyserver, client_socket, client_address, authenticator, remoteaddr):... | PypiClean |
/PyrogramXd-2.0.64-py3-none-any.whl/pyrogram/methods/messages/send_sticker.py |
import os
import re
from datetime import datetime
from typing import Union, BinaryIO, Optional, Callable
import pyrogram
from pyrogram import StopTransmission
from pyrogram import raw
from pyrogram import types
from pyrogram import utils
from pyrogram.errors import FilePartMissing
from pyrogram.file_id import FileTyp... | PypiClean |
/jax_am-0.0.3-py3-none-any.whl/jax_am/cfd/cfd_am.py | import jax
import jax.numpy as np
import numpy as onp
import scipy
from jax.experimental.sparse import BCOO
from functools import partial
import os
import time
import glob
jax.config.update("jax_enable_x64", True)
# calculate ghost_cell values
def ghost_cell(BC, value, dx=None, neighbor=None):
if BC == 'Dirchlet... | PypiClean |
/azure-mgmt-appplatform-8.0.0.zip/azure-mgmt-appplatform-8.0.0/azure/mgmt/appplatform/v2021_06_01_preview/operations/_operations.py | import sys
from typing import Any, Callable, Dict, Iterable, Optional, TypeVar
import urllib.parse
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
ResourceNotModifiedError,
map_error,
)
from azure.core.paging import I... | PypiClean |
/baiduads_sdk_auto-2023.1.0-py3-none-any.whl/baiduads/dpacreative/model/bat_set_range_response_wrapper_body.py | import re # noqa: F401
import sys # noqa: F401
from baiduads.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
valid... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/eventgrid/v20170915preview/get_topic.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = [
'GetTopicResult',
'AwaitableGetTopicResult',
'get_topic',
]
@pulumi.output_type
class GetTopicResult:
"""
EventGrid Topic
"""
def ... | PypiClean |
/django_Tinymce4_lsu-3.0-py3-none-any.whl/tinymce/static/tinymce/js/tinymce/langs/lb.js | tinymce.addI18n('lb',{
"Cut": "Ausschneiden",
"Heading 5": "Iwwerschr\u00ebft 5",
"Header 2": "Titel 2",
"Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "D\u00e4i Web-Browser \u00ebnnerst\u00ebtzt keen direkten Acc\u00e8s op d'Zw\u00ebschenaplag. B... | PypiClean |
/mindspore_gpu-1.10.0-cp39-cp39-manylinux1_x86_64.whl/mindspore/ops/_op_impl/aicpu/addcmul.py |
"""Addcmul op"""
from mindspore.ops.op_info_register import op_info_register, AiCPURegOp, DataType
# pylint: disable=too-many-function-args
addcmul_op_info = AiCPURegOp("Addcmul") \
.fusion_type("OPAQUE") \
.input(0, "input_data", "required") \
.input(1, "x1", "required") \
.input(2, "x2", "required")... | PypiClean |
/tencentcloud_iac_pulumi-0.1.5.tar.gz/tencentcloud_iac_pulumi-0.1.5/tencentcloud_iac_pulumi/postgresql/get_xlogs.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
__all__ = [
'GetXlogsResult',
'AwaitableGetXlogsResult',
'get_xlogs',
'get_xlogs_output',
]
@pulumi.output_type
class GetXlogsResult... | PypiClean |
/n2-0.1.7b0.tar.gz/n2-0.1.7b0/third_party/boost/iterator/doc/make_filter_iterator.rst | .. Copyright David Abrahams 2006. Distributed under the Boost
.. Software License, Version 1.0. (See accompanying
.. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
::
template <class Predicate, class Iterator>
filter_iterator<Predicate,Iterator>
make_filter_iterator(Predicate f, Ite... | PypiClean |
/pycoin-ceres-0.90a0.tar.gz/pycoin-ceres-0.90a0/pycoin/satoshi/stackops.py | import hashlib
from . import errno
from pycoin.coins.SolutionChecker import ScriptError
from ..encoding.hash import hash160, double_sha256, ripemd160
def do_OP_NOP(s):
pass
for i in range(1, 11):
exec("def do_OP_NOP%d(s): pass" % i)
def do_OP_VER(stack):
raise ScriptError("OP_VER encountered", errno... | PypiClean |
/google-cloud-aiplatform-1.31.1.tar.gz/google-cloud-aiplatform-1.31.1/google/cloud/aiplatform_v1beta1/types/featurestore_monitoring.py | from __future__ import annotations
from typing import MutableMapping, MutableSequence
import proto # type: ignore
from google.protobuf import duration_pb2 # type: ignore
__protobuf__ = proto.module(
package="google.cloud.aiplatform.v1beta1",
manifest={
"FeaturestoreMonitoringConfig",
},
)
c... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/PaymentItems.py | import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.TuitionMoneyDTO import TuitionMoneyDTO
class PaymentItems(object):
def __init__(self):
self._allowd_partial_payment = None
self._payment_item_end_time = None
self._payment_item_id = None
s... | PypiClean |
/epiVIA-1.1.2.tar.gz/epiVIA-1.1.2/README.md | ## Description of epiVIA
Vector Integration Analysis with epigenomic assays.
### (1) Identify Chimeric reads from bam file
EpiVIA parses each read and identifies the chimeric fragments, which are further classified into three different categories based on how the read pair is aligned to the combined reference genome:... | PypiClean |
/fds.sdk.SecuritizedDerivativesAPIforDigitalPortals-0.10.2-py3-none-any.whl/fds/sdk/SecuritizedDerivativesAPIforDigitalPortals/model/securitized_derivative_notation_ranking_intraday_list_data_notation_restriction_list.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 |
/l2rpn_baselines-0.8.0.tar.gz/l2rpn_baselines-0.8.0/l2rpn_baselines/TopoOracleAgent/evaluate.py |
# Copyright (c) 2020, RTE (https://www.rte-france.com)
# See AUTHORS.txt
# This Source Code Form is subject to the terms of the Mozilla Public License, version 2.0.
# If a copy of the Mozilla Public License, version 2.0 was not distributed with this file,
# you can obtain one at http://mozilla.org/MPL/2.0/.
# SPDX-Lic... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_7/api_client.py | from __future__ import absolute_import
import atexit
import datetime
import json
import mimetypes
from multiprocessing.pool import ThreadPool
import os
import re
import tempfile
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import quote
from .configuration import Configuration
... | PypiClean |
/micropython-argparse-0.4.1.tar.gz/micropython-argparse-0.4.1/argparse.py | import sys
from ucollections import namedtuple
class _ArgError(BaseException):
pass
class _Arg:
def __init__(self, names, dest, action, nargs, const, default, help):
self.names = names
self.dest = dest
self.action = action
self.nargs = nargs
self.const = const
... | PypiClean |
/backports.pbkdf2-0.1.tar.gz/backports.pbkdf2-0.1/README.txt | ========================================================
PKCS#5 password-based key derivation function 2 (PBKDF2)
========================================================
This is a backport of ``hashlib.pbkdf2_hmac`` for Python 2.6 to 2.7. The
implementation comes with a pure Python implementation and a C module that
... | PypiClean |
/PyBOMBS-2.3.5.tar.gz/PyBOMBS-2.3.5/pybombs/gitcache_manager.py | """ Git cache manager """
from __future__ import print_function
import os
from six import iteritems
from pybombs import pb_logging
from pybombs.utils import sysutils
from pybombs.utils import subproc
class GitCacheManager(object):
" Git cache manager "
def __init__(self, path):
self.path = path
... | PypiClean |
/jsonpath_tp-1.0.1-py3-none-any.whl/jsonpath_tp-1.0.1.dist-info/LICENSE.md | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
... | PypiClean |
/py-optimus-0.0.2.tar.gz/py-optimus-0.0.2/optimus/utils/command.py |
import os
import jinja2
import os.path
class TemplateCommand(object):
""" Using template to construct a project structure.
"""
def __init__(self, project_name, template_name=None, target=None):
self.project_name = project_name
self.template_name = template_name
self.target = ta... | PypiClean |
/smsapi-client-2.7.0.tar.gz/smsapi-client-2.7.0/smsapi/sms/api.py | from smsapi.api import Api
from smsapi.endpoint import bind_api_endpoint
from smsapi.exception import EndpointException, SendException
from smsapi.models import ResultCollection, SendResult, RemoveMessageResult
from smsapi.sms import response_format_param
from smsapi.sms.model import SmsSendResult, SmsMFASendResult, Sm... | PypiClean |
/templess-0.3.tar.gz/templess-0.3/doc/README.txt | ========
Templess
========
This document is valid for Templess 0.3.
What is it?
===========
Templess is an XML templating language for Python, that is very compact and
simple, fast, and has a very strict seperation of logic and design. It is
different from other templating languages because instead of 'asking' for
d... | PypiClean |
/fake_bpy_module_3.1-20230117-py3-none-any.whl/bpy_extras/io_utils.py | import sys
import typing
import bpy.types
GenericType = typing.TypeVar("GenericType")
class ExportHelper:
def check(self, _context):
'''
'''
pass
def invoke(self, context, _event):
'''
'''
pass
class ImportHelper:
def check(self, _context):
'... | PypiClean |
/pytmpdir-1.0.6.tar.gz/pytmpdir-1.0.6/README.rst | .. _README:
=======
Read Me
=======
pytmpdir
--------
A class representing a file system directory, that deletes on garbage collect.
Requirements
------------
- Python 3.3+ (Tested on python 3.5)
The Directory object can be
---------------------------
- Initialised on an existing directory
- Scan that directory
- ... | PypiClean |
/breath_data-0.2.0.tar.gz/breath_data-0.2.0/src/breath_data/bd_acess_point/relational_querier/dataSUS.py | import sys
import pandas as pd
import unicodedata
import numpy as np
from relational_querier import RelationalQuerier
# Loads dadtaSUS info into a single .csv
def loadcsv():
print('baixando os dados')
srag_2013 = pd.read_csv(
"https://opendatasus.saude.gov.br/dataset/e6b03178-551c-495c-9935-adaab4b2f966/resource/4... | PypiClean |
/bingo-nasa-0.4.1.tar.gz/bingo-nasa-0.4.1/bingocpp/external/googletest/googletest/docs/primer.md | # Googletest Primer
## Introduction: Why googletest?
*googletest* helps you write better C++ tests.
googletest is a testing framework developed by the Testing Technology team with
Google's specific requirements and constraints in mind. Whether you work on
Linux, Windows, or a Mac, if you write C++ code, googletest c... | PypiClean |
/airflow-add-ons-0.2.10.tar.gz/airflow-add-ons-0.2.10/airflow_add_ons/sensors/gcs_sensors.py | from airflow.providers.google.cloud.sensors.gcs import GCSObjectExistenceSensor
from airflow.providers.google.cloud.hooks.gcs import GCSHook as GoogleCloudStorageHook
class GoogleCloudStorageObjectKeySensor(GCSObjectExistenceSensor):
"""
Checks for the existence of a file in Google Cloud Storage.
:param ... | PypiClean |
/odoo_addon_connector_jira-15.0.1.0.1.7-py3-none-any.whl/odoo/addons/connector_jira/models/project_task/importer.py |
from odoo import _
from odoo.addons.component.core import Component
from odoo.addons.connector.components.mapper import mapping
from odoo.addons.connector.exception import MappingError
class ProjectTaskMapper(Component):
_name = "jira.project.task.mapper"
_inherit = "jira.import.mapper"
_apply_on = ["ji... | PypiClean |
/v3/model/batch_tag_action_del_request_body.py |
import pprint
import re
import six
class BatchTagActionDelRequestBody:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is js... | PypiClean |
/eke.specimens-1.1.12.zip/eke.specimens-1.1.12/eke/specimens/content/inactiveerneset.py | from base import ERNESpecimenSet, ERNESpecimenSetSchema
from eke.specimens import ProjectMessageFactory as _
from eke.specimens.config import PROJECTNAME
from eke.specimens.interfaces import IInactiveERNESet
from Products.Archetypes import atapi
from Products.ATContentTypes.content.schemata import finalizeATCTSchema
fr... | PypiClean |
/Flask_JSONRPC-2.2.2-py3-none-any.whl/flask_jsonrpc/exceptions.py | import sys
import typing as t
import traceback
from flask import current_app
try:
from flaskext.babel import gettext as _ # type: ignore
_("You're lazy...") # this function lazy-loads settings (pragma: no cover)
except (ImportError, NameError):
_ = lambda t, *a, **k: t # noqa: E731 pylint: disable=C3... | PypiClean |
/drf_simplejwt-4.4.1-py3-none-any.whl/rest_framework_simplejwt/serializers.py | from django.contrib.auth import authenticate
from django.utils.translation import ugettext_lazy as _
from rest_framework import exceptions, serializers
from .settings import api_settings
from .state import User
from .tokens import RefreshToken, SlidingToken, UntypedToken
class PasswordField(serializers.CharField):
... | PypiClean |
/boto_brimley-2.61.0.tar.gz/boto_brimley-2.61.0/boto/s3/resumable_download_handler.py | import errno
import httplib
import os
import re
import socket
import time
import boto
from boto import config, storage_uri_for_key
from boto.connection import AWSAuthConnection
from boto.exception import ResumableDownloadException
from boto.exception import ResumableTransferDisposition
from boto.s3.keyfile import KeyFi... | PypiClean |
/SAMPEI-0.0.9.tar.gz/SAMPEI-0.0.9/src/sampei/cli.py | import argparse
from src.sampei.driver import main as driver
def main():
parser = argparse.ArgumentParser(
description="SAMPEI is a searching method leveraging high quality query spectra within the same or different dataset to assign target spectra with peptide sequence and undefined modification (mass s... | PypiClean |
/jira-select-3.2.0.tar.gz/jira-select-3.2.0/docs/troubleshooting.rst | Troubleshooting
===============
After running a query in jira-select's ``shell`` subcommand, the output results are printed directly to the screen instead of opening in a spreadsheet viewer
---------------------------------------------------------------------------------------------------------------------------------... | PypiClean |
/costngn_cli-0.0.18-py3-none-any.whl/ngn/aws/actions.py |
import os, sys, time
#from os.path import exists
#from pathlib import Path
#from itertools import count
#from datetime import date, datetime
import copy
import pprint as pp
import boto3
#import json
#import toml
from botocore.config import Config
from botocore.exceptions import ClientError
from termcolor import colore... | PypiClean |
/confluent-kafka-amine-1.4.2.1.tar.gz/confluent-kafka-amine-1.4.2.1/confluent_kafka/__init__.py |
from .deserializing_consumer import DeserializingConsumer
from .serializing_producer import SerializingProducer
from .error import KafkaException, KafkaError
from .cimpl import (Producer,
Consumer,
Message,
TopicPartition,
libversion,
... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_10/models/object_lock_config_response.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flashblade.FB_2_10 import models
class ObjectLockConfigResponse(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and th... | PypiClean |
/reparted-1.2.tar.gz/reparted-1.2/README.rst | Introduction
============
Reparted is my attempt at learning python ctypes module to create bindings for c api's so use it
at your own risk. I was a bit confused on the way parted and pyparted interface works, my aim was
to create a simple interface. It does not have the full set of features parted has to offer, only
... | PypiClean |
/python-craigslist-meta-0.5.1.tar.gz/python-craigslist-meta-0.5.1/craigslist_meta/metadata.py | CRAIGSLIST = {
"africa": {
"selector": "region",
"title": "Africa",
"child": {
"egypt": {
"selector": "country",
"title": "Egypt",
"child": {"cairo": {"selector": "site", "title": "Egypt", "child": {},}},
},
... | PypiClean |
/bodhi_server-7.2.1-py3-none-any.whl/bodhi/server/security.py | """A collection of authentication and authorization functions and classes."""
import typing
from cornice.errors import Errors
from pyramid.threadlocal import get_current_registry
try:
# Pyramid >= 2.0
from pyramid.authorization import ALL_PERMISSIONS, Allow, DENY_ALL
except ImportError:
# Pyramid < 2.0
... | PypiClean |
/mopidy-mopidy-1.0.tar.gz/mopidy-mopidy-1.0/mopidy_mopidy/library_provider.py | from mopidy import backend, models, config
from .classes import ATrack, AArtist, AAlbum, ARef, APlaylist
from .utils import Utils
import logging
import requests
logger = logging.getLogger("mopidy_mopidy")
class MopidyLibraryProvider(backend.LibraryProvider):
def __init__(self, url):
self._url = url
... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/synapse/v20210601/big_data_pool.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from . import outputs
from ._enums import *
from ._inputs import *
__all__ = ['BigDataPoolArgs', 'BigDataPool']
@pulumi.input_type
class BigDataPoolArgs:
... | PypiClean |
/highcharts_gantt-1.3.0.tar.gz/highcharts_gantt-1.3.0/docs/using/populating_series_data/_new_from_pandas.rst | .. note::
The ``.from_pandas()`` method is available on all :term:`series` classes and on the
:class:`Chart <highcharts_gantt.chart.Chart>` class, allowing you to either assemble
a series or an entire chart from Pandas :class:`DataFrame <pandas:DataFrame>`
with only one method call.
.. code-block:: ... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/graphql/admin/versioncheck.py | import requests
from ariadne import QueryType
from django.core.cache import cache
from django.utils.translation import gettext as _
from requests.exceptions import RequestException
from ... import __released__, __version__
from .status import Status
CACHE_KEY = "misago_admin_version_check"
CACHE_LENGTH = 3600 * 4 # ... | PypiClean |
/elyra_python_editor_extension-3.15.0rc0-py3-none-any.whl/elyra_python_editor_extension-3.15.0rc0.data/data/share/jupyter/labextensions/@elyra/metadata-extension/static/metadata-common_lib_index_js.2a357b6b24e2cfbc86f1.js | "use strict";
(self["webpackChunk_elyra_metadata_extension"] = self["webpackChunk_elyra_metadata_extension"] || []).push([["metadata-common_lib_index_js"],{
/***/ "../../node_modules/css-loader/dist/cjs.js!../metadata-common/style/index.css":
/*!*************************************************************************... | PypiClean |
/isedit-0.3.0.tar.gz/isedit-0.3.0/js/node_modules/@webpack-cli/serve/lib/index.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const WEBPACK_PACKAGE = process.env.WEBPACK_PACKAGE || "webpack";
const WEBPACK_DEV_SERVER_PACKAGE = process.env.WEBPACK_DEV_SERVER_PACKAGE || "webpack-dev-server";
class ServeCommand {
async apply(cli) {
const loadDevServerOptions... | PypiClean |
/django-ug-4.2.41.tar.gz/django-ug-4.2.41/django/forms/formsets.py | from django.core.exceptions import ValidationError
from django.forms import Form
from django.forms.fields import BooleanField, IntegerField
from django.forms.renderers import get_default_renderer
from django.forms.utils import ErrorList, RenderableFormMixin
from django.forms.widgets import CheckboxInput, HiddenInput, N... | PypiClean |
/aquacrop_pacs27-0.0.31-py3-none-any.whl/aquacrop/solution/transpiration.py | import os
import numpy as np
from ..entities.totalAvailableWater import TAWClass
from ..entities.moistureDepletion import DrClass
from ..entities.rootZoneWaterContent import thRZClass, thRZNT
from ..entities.waterStressCoefficients import KswClass, KswNT
# This compiled function is called a few times inside other f... | PypiClean |
/lfview_resources_spatial-0.0.6-py3-none-any.whl/lfview/resources/spatial/base.py | from __future__ import absolute_import
import json
from collections import OrderedDict
from lfview.resources import files
import properties.extras
from six import string_types
def to_hex(value):
"""Converts RGB tuple to hex string"""
hex_values = (hex(i).lstrip('0x').upper().ljust(2, '0') for i in value)
... | PypiClean |
/tensorflow_macos-2.14.0rc0-cp311-cp311-macosx_12_0_arm64.whl/tensorflow/python/distribute/cross_device_ops.py | """Classes for different algorithms of reduction and broadcasting."""
import collections
import copy
import multiprocessing.dummy
import multiprocessing.pool
import threading
import numpy as np
import six
from tensorflow.python.client import device_lib
from tensorflow.python.distribute import collective_util
from te... | PypiClean |
/bec_lib-0.28.0-py3-none-any.whl/bec_lib/scans.py | from __future__ import annotations
import builtins
import uuid
from contextlib import ContextDecorator
from typing import TYPE_CHECKING, Callable
import msgpack
from cytoolz import partition
from typeguard import typechecked
from bec_lib.core import BECMessage, MessageEndpoints, bec_logger
from bec_lib.core.connecto... | PypiClean |
/module_hot_reload-0.0.8.tar.gz/module_hot_reload-0.0.8/module_hot_reload/reloaders.py | from types import ModuleType
from typing import Dict, Set, Union
from watchdog.observers import Observer
from watchdog.observers.api import ObservedWatch
from .module_wrappers import (
ModuleAttributeAccessor,
ModuleWrapperBase,
NewModuleAwareAllModulesRecursiveStandardModuleWrapper,
NewModuleAwareDir... | PypiClean |
/DigiTwin_CO2_SampleProject-2.tar.gz/DigiTwin_CO2_SampleProject-2/src/DigiTwin_CO2_SampleProject/SimultanCO2Prediction/template.py | import os
from PySimultan import Template, yaml
try:
import importlib.resources as pkg_resources
except ImportError:
# Try backported to PY<37 importlib_resources.
import importlib_resources as pkg_resources
from . import resources
with pkg_resources.path(resources, 'co2_prediction_template.yml') as r_... | PypiClean |
/dbpedia_ent-0.1.9-py3-none-any.whl/dbpedia_ent/dto/ent/n1/w/trie_wu.py |
d_trie_wu = {'_': ['wu-chronicles',
'wu-syndicate',
'wu-massacre',
'wu-elements',
'wu-nuwaubu',
"wu'erkaixi",
'wu-nuwaupu',
'wu-manber',
'wu-tsung',
'wu-seong',
'wu-hsing',
'wu-chou',
'wu-wang',
'wu-ftpd',
'wu-long',
... | PypiClean |
/cerc-hub-0.1.8.10.tar.gz/cerc-hub-0.1.8.10/hub/persistence/models/city_object.py | import datetime
import logging
from sqlalchemy import Column, Integer, String, Sequence, ForeignKey, Float
from sqlalchemy import DateTime
from hub.city_model_structure.building import Building
from hub.persistence.configuration import Models
class CityObject(Models):
"""
A model representation of an applicatio... | PypiClean |
/cobra-policytool-1.1.6.tar.gz/cobra-policytool-1.1.6/policytool/ranger.py | import requests
class Client:
def __init__(self, url_prefix, auth=None):
"""
:param url_prefix: Prefix of the URL to the Ranger API. Example: 'http://ranger.my.org:6080'
:param auth: If authentication is used. For Kerberos HTTPKerberosAuth(principal="user@MY.REALM")
"""
sel... | PypiClean |
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/pimrouter/pimrouter_39524eebf8e4ea0724ec1feb3d8b789b.py | import sys
from ixnetwork_restpy.base import Base
from ixnetwork_restpy.files import Files
if sys.version_info >= (3, 5):
from typing import List, Any, Union
class PimRouter(Base):
"""Pim Port Specific Data
The PimRouter class encapsulates a required pimRouter resource which will be retrieved from the se... | PypiClean |
/django_ckeditor_improved-1.8.tar.gz/django_ckeditor_improved-1.8/ckeditorfiles/static/ckeditorfiles/plugins/a11yhelp/dialogs/lang/de.js | /*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","de",{title:"Barrierefreiheitinformationen",contents:"Hilfeinhalt. Um den Dialog zu schliessen die Taste 'ESC' drücken.",legend:[{name:"... | PypiClean |
/audible-cli-0.2.4.tar.gz/audible-cli-0.2.4/src/audible_cli/_logging.py | import logging
import pathlib
from typing import Optional, Union
from warnings import warn
import click
audible_cli_logger = logging.getLogger("audible_cli")
audible_cli_logger.addHandler(logging.NullHandler())
log_formatter = logging.Formatter(
"%(asctime)s %(levelname)s [%(name)s] %(filename)s:%(lineno)d: %(m... | PypiClean |
/fenrir-screenreader-1.9.6.post1.tar.gz/fenrir-screenreader-1.9.6.post1/src/fenrirscreenreader/core/screenManager.py |
# Fenrir TTY screen reader
# By Chrys, Storm Dragon, and contributers.
from fenrirscreenreader.core import debug
from fenrirscreenreader.utils import screen_utils
import time, os, re, difflib
class screenManager():
def __init__(self):
self.differ = difflib.Differ()
self.currScreenIgnored = False
... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/domain/MybankCreditSceneprodPrepaymentApplyModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class MybankCreditSceneprodPrepaymentApplyModel(object):
def __init__(self):
self._app_seq_no = None
self._biz_type = None
self._cust_name = None
self._drawdown_no = None
self._id_card_no = None
self... | PypiClean |
/rcpchgrowth_python_cli-1.2.0-py3-none-any.whl/rcpchgrowth_python_cli/__main__.py | from datetime import date
# third party imports
import click
import pyfiglet
from scipy import stats
# RCPCH imports
from rcpchgrowth import date_calculations
from rcpchgrowth.global_functions import centile, measurement_from_sds, sds_for_measurement as sfm, mid_parental_height
@click.group()
def methods():
"""... | PypiClean |
/SyMBac-0.2.0.tar.gz/SyMBac-0.2.0/examples/Drawing_Phase_Contrast_100x_oil.ipynb | # SyMBac Example Notebook 1
Drawing 100x images of _E. coli_ in the mother machine
### Imports
```
from joblib import Parallel, delayed
from matplotlib import pyplot as plt
from SyMBac.PSF import get_phase_contrast_kernel, get_condensers
from SyMBac.misc import get_sample_images
from SyMBac.general_drawing impor... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/AlipayEcoEduKtDownloadurlQueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayEcoEduKtDownloadurlQueryModel import AlipayEcoEduKtDownloadurlQueryModel
class AlipayEcoEduKtDownloadurlQueryRequest(object):
def __init__(self, biz_model=None):
... | PypiClean |
/openimis_be_dhis2_etl-1.1.0-py3-none-any.whl/dhis2_etl/converters/InsureeConverter.py | from insuree.models import Insuree, Gender, Education, Profession, Family
from location.models import Location
from product.models import Product
from ..models.dhis2Program import *
from . import BaseDHIS2Converter
from ..configurations import GeneralConfiguration
from dhis2.utils import *
import hashlib
from ..utils ... | PypiClean |
/kerb-sts-0.1.13.tar.gz/kerb-sts-0.1.13/kerb_sts/handler.py |
import base64
import boto.sts
import configparser
import logging
import os
import requests
import xml.etree.ElementTree as ET
import sys
import traceback
from bs4 import BeautifulSoup
from kerb_sts.awsrole import AWSRole
class DefaultRoleCredsGenerationError(Exception):
pass
class KerberosHandler:
"""
T... | PypiClean |
/comai-0.1.0.tar.gz/comai-0.1.0/README.md | <div align="center">
<img src="https://raw.githubusercontent.com/ricopinazo/comai/main/logo.svg" alt="demo" width="200"/>
**The AI powered terminal assistant**
[](https://github.com/ricopinazo/comai/actions/workflows/tests.ym... | PypiClean |
/python_modulr_client-0.0.11-py3-none-any.whl/modulr_client/models/directdebitoutbound_mandate_cancel_request.py | from typing import Any, Dict, List, Type, TypeVar
import attr
from ..models.directdebitoutbound_mandate_cancel_request_cancellation_code import (
DirectdebitoutboundMandateCancelRequestCancellationCode,
)
T = TypeVar("T", bound="DirectdebitoutboundMandateCancelRequest")
@attr.s(auto_attribs=True)
class Directd... | PypiClean |
/sphinx_needs_enterprise-1.0.1-py3-none-any.whl/sphinx_needs_enterprise/services/codebeamer.py | import json
import time
from sphinx_needs_enterprise.extensions.extension import ServiceExtension
from sphinx_needs_enterprise.util import dict_undefined_set
DEFAULT_CONTENT = """
{% set desc_list = data.description.split('\n') %}
{% if options.raw == "True"%}
.. code-block:: text
{% for line in desc_list %}
{{... | PypiClean |
/safe-eth-py-axon-4.6.0.tar.gz/safe-eth-py-axon-4.6.0/gnosis/eth/ethereum_client.py | import os
from enum import Enum
from functools import wraps
from logging import getLogger
from typing import (
Any,
Dict,
Iterable,
List,
NamedTuple,
Optional,
Sequence,
Tuple,
Union,
cast,
)
import eth_abi
import requests
from eth_abi.exceptions import DecodingError
from eth_ac... | PypiClean |
/justpy-0.13.0.tar.gz/justpy-0.13.0/docs/how_to/add_row_to_grid.md | # How to Add a Row to a Grid
```python
import justpy as jp
grid_options = {
'defaultColDef': {'filter': True, 'sortable': True, 'resizable': True, 'cellStyle': {'textAlign': 'center'},
'headerClass': 'font-bold'},
'columnDefs': [{'headerName': 'Make', 'field': 'make', 'editable': True},... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.