id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/dhl_delivery-2.0.12.tar.gz/dhl_delivery-2.0.12/dhl_delivery/pickup.py | import dhl_delivery
import dhl_delivery.config
import dhl_delivery.common
import dhl_delivery.dhl_process
import xmltodict
import datetime
import random
class Pickup:
def __init__(self):
self.date_now = datetime.datetime.now()
def schedule_pickup(self, dict_param):
return_status = True
... | PypiClean |
/jdarray-0.0.0.tar.gz/jdarray-0.0.0/jina/types/arrays/mixins/io/pushpull.py | import io
from contextlib import nullcontext
from typing import Type, TYPE_CHECKING
from .....helper import get_request_header
if TYPE_CHECKING:
from .....helper import T
class PushPullMixin:
"""Transmitting :class:`DocumentArray` via Jina Cloud Service"""
_service_url = 'http://apihubble.staging.jina.... | PypiClean |
/PyMacApp-3.2.3.tar.gz/PyMacApp-3.2.3/pymacapp/buildtools/app/_custom_extensions.py | import plistlib
from ...logger import logger
import os
from dataclasses import dataclass
from ...command import Command
@dataclass(frozen=True)
class LSHandlerRank:
Owner = "Owner"
Default = "Default"
Alternate = "Alternate"
NA = "None"
@dataclass(frozen=True)
class CFBundleTypeRole:
Editor = "E... | PypiClean |
/beta_rec-0.3.2.tar.gz/beta_rec-0.3.2/examples/train_lcfn.py | import argparse
import os
import sys
import time
sys.path.append("../")
from ray import tune
from beta_rec.core.train_engine import TrainEngine
from beta_rec.data.deprecated_data_base import DataLoaderBase
from beta_rec.models.lcfn import LCFNEngine
from beta_rec.utils.common_util import DictToObject
from beta_rec.u... | PypiClean |
/linktransformer-0.1.7.tar.gz/linktransformer-0.1.7/README.md | # LinkTransformer
[](https://www.gnu.org/licenses/gpl-3.0)

LinkTransformer is a Python library for merging a... | PypiClean |
/scikit_build_core-0.5.0-py3-none-any.whl/scikit_build_core/builder/sysconfig.py | from __future__ import annotations
import configparser
import os
import sys
import sysconfig
from collections.abc import Mapping
from pathlib import Path
from .._logging import logger
__all__ = ["get_python_include_dir", "get_python_library", "get_cmake_platform"]
TARGET_TO_PLAT = {
"x86": "win32",
"x64": ... | PypiClean |
/golismero-2.0.3.tar.gz/golismero-2.0.3/thirdparty_libs/django/utils/unittest/suite.py |
import sys
import unittest
from django.utils.unittest import case, util
__unittest = True
class BaseTestSuite(unittest.TestSuite):
"""A simple test suite that doesn't provide class or module shared fixtures.
"""
def __init__(self, tests=()):
self._tests = []
self.addTests(tests)
def... | PypiClean |
/django_scaffold_tools-0.0.63-py3-none-any.whl/scaffold/apps/config/models.py | from django.conf import settings
from django.db import models
# class Menu(HierarchicalModel, models.Model):
# seq = models.IntegerField(
# verbose_name='序号',
# blank=True,
# default=0,
# )
#
# project = models.CharField(
# verbose_name='项目名称',
# max_length=50,
# ... | PypiClean |
/apache-airflow-zack-1.10.15.9.tar.gz/apache-airflow-zack-1.10.15.9/airflow/contrib/operators/jira_operator.py |
from airflow.contrib.hooks.jira_hook import JIRAError
from airflow.contrib.hooks.jira_hook import JiraHook
from airflow.exceptions import AirflowException
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
class JiraOperator(BaseOperator):
"""
JiraOperator to interac... | PypiClean |
/pylsp-mypy-0.6.7.tar.gz/pylsp-mypy-0.6.7/pylsp_mypy/plugin.py | import ast
import atexit
import collections
import logging
import os
import os.path
import re
import shutil
import subprocess
import tempfile
from configparser import ConfigParser
from pathlib import Path
from typing import IO, Any, Dict, List, Optional
try:
import tomllib
except ModuleNotFoundError:
import to... | PypiClean |
/lark_dynamic-1.1.4-py3-none-any.whl/lark_dynamic/combinators.py | from __future__ import annotations
from typing import Iterable
from lark_dynamic.utils import render_all, separated, wrap
from .constants import ContextType
from .token import Renderable, Token
class Combinator(Token):
def __init__(self, *children: Renderable):
self.children = children
def repr_chi... | PypiClean |
/ivy-core-1.1.10.tar.gz/ivy-core-1.1.10/ivy/jax/nn/converters.py | import haiku as hk
# noinspection PyProtectedMember
from haiku._src.data_structures import FlatMapping
# local
import ivy
def _hk_flat_map_to_dict(hk_flat_map):
ret_dict = dict()
for k, v in hk_flat_map.items():
new_k = k.replace('/', '|')
if isinstance(v, FlatMapping):
ret_dict[n... | PypiClean |
/neizai-xiaohai-kuaile-nicai-kuaile-2022.9.29.0.tar.gz/neizai-xiaohai-kuaile-nicai-kuaile-2022.9.29.0/NeizaiXiaohaiKuaileNicaiKuaile/js/plugins/search.js | EPUBJS.reader.search = {};
// Search Server -- https://github.com/futurepress/epubjs-search
EPUBJS.reader.search.SERVER = "https://pacific-cliffs-3579.herokuapp.com";
EPUBJS.reader.search.request = function(q, callback) {
var fetch = $.ajax({
dataType: "json",
url: EPUBJS.reader.search.SERVER + "/search?q=" + en... | PypiClean |
/criteo_api_retailmedia_sdk-2023.7.0.230831-py3-none-any.whl/criteo_api_retailmedia_v2023_07/model/creative202110.py | import re # noqa: F401
import sys # noqa: F401
from criteo_api_retailmedia_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_type,
... | PypiClean |
/adapter_transformers-3.2.1-py3-none-any.whl/transformers/models/decision_transformer/configuration_decision_transformer.py | """ Decision Transformer model configuration"""
from ...configuration_utils import PretrainedConfig
from ...utils import logging
logger = logging.get_logger(__name__)
DECISION_TRANSFORMER_PRETRAINED_CONFIG_ARCHIVE_MAP = {
"edbeeching/decision-transformer-gym-hopper-medium": (
"https://huggingface.co/edb... | PypiClean |
/django_coreplus-0.4-py3-none-any.whl/coreplus/utils/models/tracker.py | from copy import deepcopy
from functools import wraps
from django.core.exceptions import FieldError
from django.db import models
from django.db.models.fields.files import FieldFile, FileDescriptor
from django.db.models.query_utils import DeferredAttribute
class LightStateFieldFile(FieldFile):
"""
FieldFile s... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/enhanced-resolve/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md | # streams WG Meeting 2015-01-30
## Links
* **Google Hangouts Video**: http://www.youtube.com/watch?v=I9nDOSGfwZg
* **GitHub Issue**: https://github.com/iojs/readable-stream/issues/106
* **Original Minutes Google Doc**: https://docs.google.com/document/d/17aTgLnjMXIrfjgNaTUnHQO7m3xgzHR2VXBTmi03Qii4/
## Agenda
Extrac... | PypiClean |
/rflow_ml_pipelines_sdk-1.1.18-py3-none-any.whl/tfx/experimental/templates/penguin/models/model.py | from typing import List, Text
from absl import logging
import tensorflow as tf
from tensorflow import keras
import tensorflow_transform as tft
from tensorflow_transform.tf_metadata import schema_utils
from tfx.components.trainer.executor import TrainerFnArgs
from tfx.components.trainer.fn_args_utils import DataAccesso... | PypiClean |
/baiduads_sdk_auto-2023.1.0-py3-none-any.whl/baiduads/videosynthetise/model/smart_synthetise_request_wrapper.py | import re # noqa: F401
import sys # noqa: F401
from baiduads.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
valid... | PypiClean |
/rowing-0.3.1.tar.gz/rowing-0.3.1/README.md | # world_rowing
Collection of code to load, process and analyse rowing data from [World Rowing](https://worldrowing.com/).
Can view the world rowing data by running `streamlit run world_rowing_app/home.py` or visiting https://matthewghgriffiths-worldrowing.streamlit.app/
# rowing.analysis
A python library for analysin... | PypiClean |
/streamlit_monaco_yaml-0.1.3.tar.gz/streamlit_monaco_yaml-0.1.3/streamlit_monaco_yaml/frontend-build/4347.js | "use strict";(globalThis.webpackChunk=globalThis.webpackChunk||[]).push([[4347],{4347:(e,n,o)=>{o.r(n),o.d(n,{conf:()=>t,language:()=>s});var t={comments:{lineComment:"//",blockComment:["/*","*/"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",close:"]"},{open:"(",close:")"},... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/documentdb/v20200901/get_notebook_workspace.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = [
'GetNotebookWorkspaceResult',
'AwaitableGetNotebookWorkspaceResult',
'get_notebook_workspace',
]
@pulumi.output_type
class GetNotebookWorkspaceRes... | PypiClean |
/cdnget-1.2.0.tar.gz/cdnget-1.2.0/Kookbook.py |
import sys, os, re
pyvers = prop('pyvers', "2.6.9, 2.7.13, 3.3.6, 3.4.5, 3.5.2, 3.6.0")
pyroot = prop('pyroot', "/opt/vs/python/%s")
@recipe
def task_help(self):
print(r"""
How to release:
$ git checkout python-dev
$ git checkout -b python-1.0
$ kk edit 1.0.0
### create package
$ kk package
$ ls d... | PypiClean |
/energyplus_pet-0.50-py3-none-any.whl/energyplus_pet/equipment/wwhp_heating_curve.py | from json import dumps
from typing import Callable, List, Tuple
from energyplus_pet.equipment.common_curves import CommonCurves
from energyplus_pet.data_manager import CatalogDataManager
from energyplus_pet.equipment.base import BaseEquipment
from energyplus_pet.equipment.equip_types import EquipType
from energyplus_p... | PypiClean |
/cngi_prototype-1.0.1.tar.gz/cngi_prototype-1.0.1/ngcasa/imaging/_imaging_utils/_make_pb_symmetric.py |
#Simple 1D Cases
#Airy Disk dish, blockage, freq
#Gaussian halfWidth
#Poly
#Cos Polyp
#Inverse Poly coeff
#Formula for obscured airy pattern found in https://en.wikipedia.org/wiki/Airy_disk (see Obscured Airy pattern section)
# If ipower is 1 the voltage pattern is returned if ipower is 2 the primary beam is returned... | PypiClean |
/league_shop_base-1.0.47-py3-none-any.whl/lsb/views.py | from django.conf import settings
from django.db.models import Count
from django.db.models import Q
from django.shortcuts import render
from django.utils.module_loading import import_string
from . import ddragon
from . import models
from .utils.champion_rates import get_champion_rates
from .utils.skins import get_lol_c... | PypiClean |
/easymailing_client-0.1.0.tar.gz/easymailing_client-0.1.0/src/easymailing_api_client/models/custom_field_jsonld_contact_read.py | import datetime
from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union, cast
import attr
from dateutil.parser import isoparse
from ..types import UNSET, Unset
if TYPE_CHECKING:
from ..models.custom_field_jsonld_contact_read_context_type_1 import CustomFieldJsonldContactReadContextType1
T = Typ... | PypiClean |
/XStatic-CKEditor-3.6.4.0.tar.gz/XStatic-CKEditor-3.6.4.0/xstatic/pkg/ckeditor/data/lang/nb.js | /*
Copyright (c) 2003-2012, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang.nb={dir:'ltr',editorTitle:'Rikteksteditor, %1',editorHelp:'Trykk ALT 0 for hjelp',toolbars:'Verktøylinjer for editor',editor:'Rikteksteditor',source:'Kilde',ne... | PypiClean |
/dag-factory-0.19.0.tar.gz/dag-factory-0.19.0/dagfactory/utils.py | import ast
import importlib.util
import os
import re
import sys
import types
from datetime import date, datetime, timedelta
from pathlib import Path
from typing import Any, AnyStr, Dict, Match, Optional, Pattern, Union, List, Tuple
import yaml
import pendulum
from dagfactory.exceptions import DagFactoryException
de... | PypiClean |
/coopr.solvers-3.2.1.tar.gz/coopr.solvers-3.2.1/coopr/solvers/plugins/solvers/GUROBI_RUN.py |
import re
import string
from gurobipy import *
GUROBI_VERSION = gurobi.version()
# NOTE: this function / module is independent of Coopr, and only relies on the
# GUROBI python bindings. consequently, nothing in this function should
# throw an exception that is expected to be handled by Coopr - it won't... | PypiClean |
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/packages/dns/rdtypes/IN/SRV.py |
import struct
import dns.exception
import dns.rdata
import dns.name
class SRV(dns.rdata.Rdata):
"""SRV record
@ivar priority: the priority
@type priority: int
@ivar weight: the weight
@type weight: int
@ivar port: the port of the service
@type port: int
@ivar target: the target hos... | PypiClean |
/zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/fckeditor/2.6.4.1/fckeditor/editor/_source/classes/fckdomrange_gecko.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 |
/vnpy_huobi-2021.9.24.tar.gz/vnpy_huobi-2021.9.24/vnpy_huobi/huobi_apibase.py | import re
import urllib
import pytz
import base64
import json
import zlib
import hashlib
import hmac
from typing import Dict
from datetime import datetime
from vnpy.trader.gateway import BaseGateway
from vnpy_websocket import WebsocketClient
# 中国时区
CHINA_TZ = pytz.timezone("Asia/Shanghai")
class HuobiWebsocketApiBas... | PypiClean |
/ofxstatement-be-kbc-0.2.0.tar.gz/ofxstatement-be-kbc-0.2.0/README.rst | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Belgian KBC Bank plugin for ofxstatement
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This project provides an `ofxstatement`_ plugin for converting the Belgian KBC
bank's CSV format statements to OFX.
`ofxstatement`_ is a tool to convert proprietary bank statement to OFX format,
... | PypiClean |
/pointevector_irs990-0.0.8-py3-none-any.whl/pointevector/irs990/cache.py | import csv
import logging
from pathlib import Path
from typing import Any, List
import zipfile
from pointevector.irs990.config import CacheConfig, Config
from pointevector.xml_parser import ParserConfig, parse
def gen_records(config: Config, parser_config: ParserConfig):
cache_path = config['cache']['cache_direct... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_6/models/policy_member_export_response.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_6 import models
class PolicyMemberExportResponse(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and t... | PypiClean |
/motaword-0.9.1.tar.gz/motaword-0.9.1/motaword_sdk/controllers/activities.py | from __future__ import unicode_literals
from motaword_sdk.controllers.base import BaseController
class Activities(BaseController):
def list(self, project_id, page=1, per_page=10):
"""
Get a list of realtime activities on the project, such as translation suggestion and translation approval.
... | PypiClean |
/xnni-0.7.4-py3-none-manylinux1_x86_64.whl/xnni-0.7.4.data/data/nni/node_modules/ssh2-streams/lib/keyParser.js |
var utils;
var Ber = require('asn1').Ber;
var semver = require('semver');
var readUInt32BE = require('./buffer-helpers').readUInt32BE;
var RE_PPK = /^PuTTY-User-Key-File-2: ssh-(rsa|dss)\r?\nEncryption: (aes256-cbc|none)\r?\nComment: ([^\r\n]*)\r?\nPublic-Lines: \d+\r?\n([\s\S]+?)\r?\nPrivate-Lines: \d+\r?\n([\s\S]+... | PypiClean |
/edu-airflow-1.10.5.tar.gz/edu-airflow-1.10.5/airflow/contrib/hooks/aws_sqs_hook.py |
from airflow.contrib.hooks.aws_hook import AwsHook
class SQSHook(AwsHook):
"""
Get the SQS client using boto3 library
:return: SQS client
:rtype: botocore.client.SQS
"""
def get_conn(self):
return self.get_client_type('sqs')
def create_queue(self, queue_name, attributes=None):
... | PypiClean |
/cdktf-cdktf-provider-azurerm-10.0.1.tar.gz/cdktf-cdktf-provider-azurerm-10.0.1/src/cdktf_cdktf_provider_azurerm/logz_monitor/__init__.py | import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import typing_extensions
from typeguard import check_type
from .._jsii import *
import cdktf as _cdktf_9a9027ec
import constructs as _constructs_77d1e7e8
class LogzMonitor(
_cdktf_9a9027ec.TerraformResource,
... | PypiClean |
/pyhaze-0.1.3.tar.gz/pyhaze-0.1.3/ext/Catch2/docs/release-notes.md | <a id="top"></a>
# Release notes
**Contents**<br>
[2.13.10](#21310)<br>
[2.13.9](#2139)<br>
[2.13.8](#2138)<br>
[2.13.7](#2137)<br>
[2.13.6](#2136)<br>
[2.13.5](#2135)<br>
[2.13.4](#2134)<br>
[2.13.3](#2133)<br>
[2.13.2](#2132)<br>
[2.13.1](#2131)<br>
[2.13.0](#2130)<br>
[2.12.4](#2124)<br>
[2.12.3](#2123)<br>
[2.12.2... | PypiClean |
/ldb_alpha-0.7.0-py3-none-any.whl/ldb/plugins/resnet_utils.py | from typing import Optional, Sequence, TypeVar
import torch
from PIL import Image
from torch.nn import AdaptiveAvgPool2d, CosineSimilarity, Module
from torchvision import models, transforms
from torchvision.models.feature_extraction import create_feature_extractor
from torchvision.transforms import InterpolationMode
... | PypiClean |
/auto_pi_lot-0.5.0a0-py3-none-any.whl/autopilot/data/modeling/base.py | import typing
from datetime import datetime
from typing import Optional, List
import pandas as pd
import tables
from autopilot.root import Autopilot_Type
class Data(Autopilot_Type):
"""
The top-level container for Data.
Subtypes will define more specific formats and uses of data, but this is the most ge... | PypiClean |
/symbiont_io.assembly_client-4.1.1b0-py3-none-any.whl/assembly_client/api/util/json.py |
from collections import OrderedDict
from typing import Union, Optional
import msgpack
import simplejson
from assembly_client.api.contracts import ContractRef
def unparse_unsupported_types(o):
if isinstance(o, ContractRef):
od = OrderedDict()
od["__is_custom__"] = "contract_ref"
od["val"]... | PypiClean |
/ape-polygon-zkevm-0.1.1.tar.gz/ape-polygon-zkevm-0.1.1/README.md | # Quick Start
Ecosystem Plugin for Polygon ZkEVM support in Ape.
## Dependencies
- [python3](https://www.python.org/downloads) version 3.8 up to 3.11.
## Installation
### via `pip`
You can install the latest release via [`pip`](https://pypi.org/project/pip/):
```bash
pip install ape-polygon-zkevm
```
### via `s... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/planner/tasks/item/progress_task_board_format/progress_task_board_format_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 |
/iris-dollar-list-0.9.6.tar.gz/iris-dollar-list-0.9.6/src/iris_dollar_list/dollar_list.py |
from dataclasses import dataclass
from enum import Enum
import struct
from typing import Any,List
import decimal
class DollarType(Enum):
ITEM_UNDEF = -1
ITEM_PLACEHOLDER = 0
ITEM_ASCII = 1
ITEM_UNICODE = 2
ITEM_POSINT = 4
ITEM_NEGINT = 5
ITEM_POSNUM = 6
ITEM_NEGNUM = 7
ITEM_DOUBLE ... | PypiClean |
/azure-mgmt-resource-23.1.0b1.zip/azure-mgmt-resource-23.1.0b1/azure/mgmt/resource/resources/v2021_01_01/_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 ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
from ._version import VERSION
if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-... | PypiClean |
/safegate_pro-2021.7.6-py3-none-any.whl/homeassistant/components/fritzbox_callmonitor/config_flow.py |
from fritzconnection import FritzConnection
from fritzconnection.core.exceptions import FritzConnectionException, FritzSecurityError
from requests.exceptions import ConnectionError as RequestsConnectionError
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.const import (
CONF_H... | PypiClean |
/ToolBoxV2-0.1.0.tar.gz/ToolBoxV2-0.1.0/toolboxv2/mods/isaa_extars/isaa_modi.py | import json
import os
import sys
import threading
import fnmatch
import subprocess
import re
from pathlib import Path
import time
from langchain.agents import load_tools
from langchain.tools import ShellTool
from transformers import pipeline
from langchain.tools.file_management import (
ReadFileTool,
CopyFileT... | PypiClean |
/apache_beam_ai2-2.47.0-py3-none-any.whl/apache_beam/typehints/schemas.py | # pytype: skip-file
import decimal
import logging
from typing import Any
from typing import ByteString
from typing import Dict
from typing import Generic
from typing import List
from typing import Mapping
from typing import NamedTuple
from typing import Optional
from typing import Sequence
from typing import Tuple
fro... | PypiClean |
/shapeshifter-uftp-1.1.0.tar.gz/shapeshifter-uftp-1.1.0/shapeshifter_uftp/service/dso_service.py | from abc import ABC, abstractmethod
from .base_service import ShapeshifterService
from ..client import ShapeshifterDsoAgrClient, ShapeshifterDsoCroClient
from ..uftp import (
AcceptedRejected,
DPrognosis,
DsoPortfolioQueryResponse,
DsoPortfolioUpdateResponse,
FlexOffer,
FlexOfferRevocation,
... | PypiClean |
/pesfit-0.6.6.tar.gz/pesfit-0.6.6/docs/html/_static/doctools.js | * select a different prefix for underscore
*/
$u = _.noConflict();
/**
* make the code below compatible with browsers without
* an installed firebug like debugger
if (!window.console || !console.firebug) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
"dirxml", "group", "groupEnd", "... | PypiClean |
/bpy-2.91a0-cp37-cp37m-manylinux2014_x86_64.whl/bpy-2.91a0.data/scripts/2.91/scripts/addons/cycles/operators.py |
# <pep8 compliant>
import bpy
from bpy.types import Operator
from bpy.props import StringProperty
from bpy.app.translations import pgettext_tip as tip_
class CYCLES_OT_use_shading_nodes(Operator):
"""Enable nodes on a material, world or light"""
bl_idname = "cycles.use_shading_nodes"
bl_label = "Use No... | PypiClean |
/mpi-sppy-0.11.1.tar.gz/mpi-sppy-0.11.1/mpisppy/utils/pickle_bundle.py |
# NOTE: if/because we require the bundles to consume entire
# second stage tree nodes, the resulting problem is two stage.
# This adds complications when working with multi-stage problems.
# BTW: ssn (not in this repo) uses this as of March 2022
import os
import dill
from mpisppy import global_toc
def dill... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/applied_conditional_access_policy.py | from __future__ import annotations
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
if TYPE_CHECKING:
from . import applied_conditional_access_policy_result, authentication_streng... | PypiClean |
/flora-blockchain-0.2.5.tar.gz/flora-blockchain-0.2.5/flora/consensus/multiprocess_validation.py | import asyncio
import logging
import traceback
from concurrent.futures.process import ProcessPoolExecutor
from dataclasses import dataclass
from typing import Dict, List, Optional, Sequence, Tuple, Union, Callable
from flora.consensus.block_header_validation import validate_finished_header_block
from flora.consensus.b... | PypiClean |
/quant_util-1.0.5-py3-none-any.whl/quant_util/FeatureHf1.py | import pandas as pd
import numpy as np
from quant_util import fill_dict_nan, sort_dict_by_key
class FeatureHf1:
def __init__(self):
pass
def calc_hf_feature(self, df):
time_np = df['server_datetime'].to_numpy()
price_np = df['close'].to_numpy()
last_close = df['pre_close'][-1]... | PypiClean |
/bout_install-0.1.9.tar.gz/bout_install-0.1.9/bout_install/installer/SLEPcInstaller.py | from pathlib import Path
from bout_install.Installer import Installer
from bout_install.installer.PETScInstaller import PETScInstaller
class SLEPcInstaller(Installer):
"""
Installer object for installing SLEPc
"""
def __init__(self,
config_path=Path(__file__).parent.joinpath('config.... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/AlipayMarketingToolFengdieSpaceBatchqueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayMarketingToolFengdieSpaceBatchqueryModel import AlipayMarketingToolFengdieSpaceBatchqueryModel
class AlipayMarketingToolFengdieSpaceBatchqueryRequest(object):
def __in... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/redeyed/examples/browser/sample-config.js | window.sampleConfig = {
'Boolean': {
'true' : undefined
, 'false' : undefined
, _default : '?:?'
}
, 'Identifier': {
_default: '-> : <-'
}
, 'Null': {
_default: '**:**'
}
, 'Numeric': {
_default: 'n:N'
}
, 'String': {
_default: 'string -> :'
... | PypiClean |
/codeformer-0.0.11-py3-none-any.whl/basicsr/data/prefetch_dataloader.py | import queue as Queue
import threading
import torch
from torch.utils.data import DataLoader
class PrefetchGenerator(threading.Thread):
"""A general prefetch generator.
Ref:
https://stackoverflow.com/questions/7323664/python-generator-pre-fetch
Args:
generator: Python generator.
num_p... | PypiClean |
/django_bpp-1.0.9-py3-none-any.whl/django_bpp/staticroot/sntp/test/index.js |
var Dns = require('dns');
var Dgram = require('dgram');
var Lab = require('lab');
var Sntp = require('../lib');
// Declare internals
var internals = {};
// Test shortcuts
var lab = exports.lab = Lab.script();
var before = lab.before;
var after = lab.after;
var describe = lab.experiment;
var it = lab.test;
var ex... | PypiClean |
/onshape-test-client-1.0.0.tar.gz/onshape-test-client-1.0.0/onshape_client/oas/model/btfs_value_boolean1195_all_of.py | import re # noqa: F401
import sys # noqa: F401
from onshape_client.oas.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,... | PypiClean |
/gettsim-0.7.0.tar.gz/gettsim-0.7.0/src/_gettsim/transfers/kindergeld.py | from _gettsim.shared import dates_active
aggregation_kindergeld = {
"kumulativer_kindergeld_anspruch_tu": {
"source_col": "kindergeld_anspruch",
"aggr": "cumsum",
},
"anz_kinder_mit_kindergeld_tu": {
"source_col": "kindergeld_anspruch",
"aggr": "sum",
},
}
def kinderge... | PypiClean |
/pulumi_mongodbatlas-3.11.0a1693029055.tar.gz/pulumi_mongodbatlas-3.11.0a1693029055/pulumi_mongodbatlas/get_api_keys.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
from . import outputs
__all__ = [
'GetApiKeysResult',
'AwaitableGetApiKeysResult',
'get_api_keys',
'get_api_keys_output',
]
@pulumi.output_type... | PypiClean |
/odoo12_addon_geoengine_swisstopo-12.0.1.0.2-py3-none-any.whl/odoo/addons/geoengine_swisstopo/README.rst | .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:alt: License
GeoEngine - Swisstopo layers
============================
This module adds Swisstopo layers support.
Bug Tracker
===========
Bugs are tracked on `GitHub Issues <https://github.com/OCA/geospatial/issues>`_.
In case of trouble, please ... | PypiClean |
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/es-abstract/2016/OrdinaryDefineOwnProperty.js | 'use strict';
var GetIntrinsic = require('get-intrinsic');
var $gOPD = require('gopd');
var $SyntaxError = GetIntrinsic('%SyntaxError%');
var $TypeError = GetIntrinsic('%TypeError%');
var isPropertyDescriptor = require('../helpers/isPropertyDescriptor');
var IsAccessorDescriptor = require('./IsAccessorDescriptor');... | PypiClean |
/hyperpython-1.1.1.tar.gz/hyperpython-1.1.1/INSTALL.rst | =========================
Installation instructions
=========================
Hyperpython can be installed using pip::
$ python -m pip install hyperpython
This command will fetch the archive and its dependencies from the internet and
install them.
If you've downloaded the tarball, unpack it, and execute::
... | PypiClean |
/django_easypush-1.1.3-py3-none-any.whl/easypush/tasks/task_send_message.py | from __future__ import absolute_import
import time
import json
import logging
import traceback
from datetime import datetime
from operator import itemgetter
from itertools import groupby
from easypush.core.mq.context import get_celery_app
from easypush.client.utils import get_push_backend
from easypush.models import ... | PypiClean |
/PyPTS-0.2.5.tar.gz/PyPTS-0.2.5/pypts/tgens/squares.py | from pypts.tissue import Tissue
import numpy as np
import scipy as sp
def squares(num_rows, num_cols, wall_length=1.0):
"""
This function returns a square cell tissue, given the number of cell rows
and cell columns.
For example, the following tissue has 4 cell rows and 5 cell columns.
(Notice the o... | PypiClean |
/certora_cli_alpha_eric_autoDetekt-20230502.17.24.966353-py3-none-any.whl/certora_cli/EVMVerifier/certoraType.py | from typing import Any, Dict, List, Optional, Callable
from EVMVerifier.certoraNodeFilters import NodeFilters
from abc import ABC, abstractmethod
from enum import Enum
import logging
ast_logger = logging.getLogger("ast")
class Type(ABC):
def __init__(self, name: str, type_string: str):
"""
not e... | PypiClean |
/mir-flare-1.3.3.tar.gz/mir-flare-1.3.3/flare/io/parsers.py | import numpy as np
from copy import deepcopy
import os
def parse_outfiles(output_dir, ase_output_reader):
"Return data from DFT output files as np arrays."
# Get list of output files.
output_files = os.listdir(output_dir)
# Remove extraneous files (e.g. .DS_Store on Mac)
n_frames = len(output_fi... | PypiClean |
/compas_rv3-0.4.0.tar.gz/compas_rv3-0.4.0/src/compas_rv3/rhino/ui/RV3/dev/RV3_boundary_boundaries_cmd.py | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from functools import partial
from itertools import groupby
import compas_rhino
from compas.geometry import centroid_points
from compas.geometry import distance_point_point_xy
from compas.geometry import int... | PypiClean |
/agx.generator.plone-1.0a1.tar.gz/agx.generator.plone-1.0a1/LICENSE.rst |
License
=======
Copyright (c) 2010-2013, BlueDynamics Alliance, Austria
All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
... | PypiClean |
/Mongothon-0.8.0.tar.gz/Mongothon-0.8.0/mongothon/model.py | import re
import types
from copy import deepcopy, copy
from bson import ObjectId
from .document import Document
from .queries import ScopeBuilder
from .exceptions import NotFoundException
from .events import EventHandlerRegistrar
from .scopes import STANDARD_SCOPES
OBJECTIDEXPR = re.compile(r"^[a-fA-F0-9]{24}$")
cl... | PypiClean |
/remote_actions-6.0.18.tar.gz/remote_actions-6.0.18/docs/src/handlers.rst | Handler Setup
============================
Newer versions of Remote Action require that at least one handler is setup.
Handlers take actions on completed forms. Custom handlers can be developed to
take new actions, such as creating an object, in place of the default form
approval.
There is one supported handler:
... | PypiClean |
/kafkacrypto-0.9.10.0.tar.gz/kafkacrypto-0.9.10.0/README.md | # kafkacrypto
Message Layer Encryption for Kafka
Available on PyPI at https://pypi.org/project/kafkacrypto/
Available on Github at https://github.com/tmcqueen-materials/kafkacrypto
Java implementation available on Github at https://github.com/tmcqueen-materials/kafkacrypto-java
## Quick Start
On every kafka consu... | PypiClean |
/datupapi-1.4.1.tar.gz/datupapi-1.4.1/uservices/simulation_uservice.py | import os
import pandas as pd
import sys
import time
import numpy as np
import gc
from tensorflow.keras import backend as K
import datetime
from datupapi.extract.io import IO
from datupapi.training.attup import Attup
from datupapi.predict.forecast import Forecast
def main():
DOCKER_CONFIG_PATH = os.path.join('/o... | PypiClean |
/algocash-sdk-1.3.0.tar.gz/algocash-sdk-1.3.0/algocash_sdk/models/url.py | import pprint
import re # noqa: F401
import json
import six
class Url(object):
""".
Do not edit the class manually.
"""
"""
Attributes:
attribute_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attr... | PypiClean |
/django_pyodbc_azure-2.1.0.0-py3-none-any.whl/sql_server/pyodbc/schema.py | import binascii
import datetime
from django.db.backends.base.schema import (
BaseDatabaseSchemaEditor, logger, _is_relevant_relation, _related_non_m2m_objects,
)
from django.db.backends.ddl_references import (
Statement,
)
from django.db.models import Index
from django.db.models.fields import AutoField, BigAut... | PypiClean |
/aws_lambda_stream-1.0.32-py3-none-any.whl/aws_lambda_stream/flavors/correlate.py | import os
from reactivex import Observable
from pydash import get
from aws_lambda_stream.utils.dynamodb import put_dynamodb
from aws_lambda_stream.utils.faults import faulty
from aws_lambda_stream.utils.filters import on_event_type, on_content
from aws_lambda_stream.utils.time import ttl_rule
from aws_lambda_stream.uti... | PypiClean |
/ibm-watson-openscale-cli-tool-3.5.54.tar.gz/ibm-watson-openscale-cli-tool-3.5.54/ibm_ai_openscale_cli/openscale_ops.py |
# coding=utf-8
import time
from ibm_ai_openscale_cli.enums import ResetType, MLEngineType
from ibm_ai_openscale_cli.openscale.openscale_client import OpenScaleClient
from ibm_ai_openscale_cli.ops import Ops
from ibm_ai_openscale_cli.utility_classes.fastpath_logger import FastpathLogger
logger = FastpathLogger(__name_... | PypiClean |
/pointstudio/operations.py |
import enum
import numpy
from mapteksdk.common import convert_to_rgba
from mapteksdk.data.colourmaps import NumericColourMap
from mapteksdk.internal.transaction import (request_transaction,
RequestTransactionWithInputs)
# pylint: disable=unused-import
# Import operations wh... | PypiClean |
/parsec_cloud-2.16.0rc2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/parsec/_subprocess_dialog.py | from __future__ import annotations
from typing import Any, Iterator, Type, cast
from PyQt5.QtWidgets import QApplication, QWidget
"""
Helper module used by `parsec.core.gui.custom_dialogs.QDialogInProcess`
to run the file selection dialog in a subprocess.
"""
import contextlib
import functools
import importlib.reso... | PypiClean |
/prismacloud-cli-0.6.35.tar.gz/prismacloud-cli-0.6.35/prismacloud/cli/cwpp/cmd_host_auto_deploy.py | import logging
import click
from prismacloud.cli import cli_output, pass_environment
from prismacloud.cli.api import pc_api
@click.group("host_auto_deploy", short_help="[CSPM] Create host auto defend rules")
@pass_environment
def cli(ctx):
pass
@click.command("list", short_help="[CSPM] List host auto defend p... | PypiClean |
/vumi-go-0.5.0.tar.gz/vumi-go-0.5.0/go/api/go_api/action_dispatcher.py |
from twisted.internet.defer import maybeDeferred
from vumi.rpc import signature, Unicode, Dict
from go.config import (
configured_conversation_types, configured_router_types,
get_conversation_definition, get_router_definition)
from go.api.go_api.utils import GoApiSubHandler, GoApiError
class ActionError(Go... | PypiClean |
/aopi-0.1.16.tar.gz/aopi-0.1.16/aopi-frontend/dist/_nuxt/3b2e673.js | !function(e){function r(data){for(var r,n,f=data[0],l=data[1],d=data[2],i=0,h=[];i<f.length;i++)n=f[i],Object.prototype.hasOwnProperty.call(o,n)&&o[n]&&h.push(o[n][0]),o[n]=0;for(r in l)Object.prototype.hasOwnProperty.call(l,r)&&(e[r]=l[r]);for(v&&v(data);h.length;)h.shift()();return c.push.apply(c,d||[]),t()}function ... | PypiClean |
/azure-ai-textanalytics-5.3.0.zip/azure-ai-textanalytics-5.3.0/samples/async_samples/sample_analyze_healthcare_entities_with_cancellation_async.py | import asyncio
async def sample_analyze_healthcare_entities_with_cancellation_async() -> None:
# [START analyze_healthcare_entities_with_cancellation_async]
import os
from azure.core.exceptions import HttpResponseError
from azure.core.credentials import AzureKeyCredential
from azure.ai.textanalyti... | PypiClean |
/fiware-glancesync-1.7.0.tar.gz/fiware-glancesync-1.7.0/fiwareglancesync/glancesync_ami.py |
from app.settings.settings import logger_cli
"""This internal module check and update the kernel_id and ramdisk_id of
AMI images. This metadata points to the UUID of two auxiliary images: the
kernel and the ramdisk.
The images has the same name on all regions, but the UUIDs are different. To
solve this, first in the ... | PypiClean |
/anti_clustering-0.3.0-py3-none-any.whl/anti_clustering/_cluster_swap_heuristic.py | """Abstract class containing utilities for cluster swap-based heuristics."""
from abc import ABC
import random
import numpy as np
import numpy.typing as npt
from anti_clustering._base import AntiClustering
from anti_clustering._union_find import UnionFind
class ClusterSwapHeuristic(AntiClustering, ABC):
"""Abstr... | PypiClean |
/django-bulbs-3.25.0.tar.gz/django-bulbs-3.25.0/bulbs/content/custom_search.py | from datetime import timedelta
from django.utils import timezone
from elasticsearch_dsl.filter import Term, Terms, MatchAll, Nested, Range
from elasticsearch_dsl import query as es_query
from bulbs.conf import settings
def custom_search_model(model, query, preview=False, published=False,
id_... | PypiClean |
/aa_taskmonitor-0.17.0.tar.gz/aa_taskmonitor-0.17.0/taskmonitor/views.py | import csv
from django.conf import settings
from django.contrib import messages
from django.contrib.admin.views.decorators import staff_member_required
from django.contrib.auth.decorators import login_required
from django.http import Http404, JsonResponse, StreamingHttpResponse
from django.shortcuts import redirect, r... | PypiClean |
/arm_pyart-1.15.2-cp39-cp39-macosx_10_9_x86_64.whl/pyart/util/datetime_utils.py | try:
from cftime import date2num, num2date
except ImportError:
from netCDF4 import date2num, num2date
EPOCH_UNITS = "seconds since 1970-01-01T00:00:00Z"
def datetime_from_radar(radar, epoch=False, **kwargs):
"""Return a datetime for the first ray in a Radar."""
if epoch:
dtrad = num2date(rada... | PypiClean |
/mass_composition-0.1.20-py3-none-any.whl/elphick/mass_composition/utils/interp.py | from typing import List, Dict
import numpy as np
import pandas as pd
from scipy.interpolate import pchip_interpolate
import xarray as xr
def interp_monotonic(ds: xr.Dataset, coords: Dict, include_original_coords: bool = True) -> xr.Dataset:
"""Interpolate with zero mass loss using pchip
The pchip interpola... | PypiClean |
/powerline-status-2.7.tar.gz/powerline-status-2.7/powerline/renderers/tmux.py | from __future__ import (unicode_literals, division, absolute_import, print_function)
from powerline.renderer import Renderer
from powerline.colorscheme import ATTR_BOLD, ATTR_ITALIC, ATTR_UNDERLINE
def attrs_to_tmux_attrs(attrs):
if attrs is False:
return ['nobold', 'noitalics', 'nounderscore']
else:
ret = []
... | PypiClean |
/h2o_pysparkling_3.1-3.42.0.2.post1.tar.gz/h2o_pysparkling_3.1-3.42.0.2.post1/h2o/estimators/gam.py |
from h2o.utils.metaclass import deprecated_params, deprecated_property
import h2o
from h2o.utils.typechecks import U
from h2o.exceptions import H2OValueError
from h2o.estimators.estimator_base import H2OEstimator
from h2o.exceptions import H2OValueError
from h2o.frame import H2OFrame
from h2o.utils.typechecks import a... | PypiClean |
/aws_recommendation_a7-0.0.19-py3-none-any.whl/aws_recommendation_a7/recommendation.py | from aws_recommendation_a7.ec2 import *
from aws_recommendation_a7.rds import *
from aws_recommendation_a7.cost_estimations import *
from aws_recommendation_a7.redshift import *
from aws_recommendation_a7.ebs import *
from aws_recommendation_a7.s3 import *
from aws_recommendation_a7.elb import *
from aws_recommendation... | PypiClean |
/Shabti-0.4.4.tar.gz/Shabti-0.4.4/shabti/templates/moinmoin/+package+/public/moin_static/applets/moinFCKplugins/moinlink/fck_link.js | /*
* FCKeditor - The text editor for internet
* Copyright (C) 2003-2004 Frederico Caldeira Knabben
*
* Licensed under the terms of the GNU Lesser General Public License:
* http://www.opensource.org/licenses/lgpl-license.php
*
* For further information visit:
* http://www.fckeditor.net/
*
* File Name: ... | PypiClean |
/transfer_nlp-0.1.6.tar.gz/transfer_nlp-0.1.6/transfer_nlp/loaders/vocabulary.py | from typing import Dict
class Vocabulary:
def __init__(self, token2id: Dict = None, add_unk: bool = True, unk_token: str = "<UNK>"):
if token2id is None:
token2id = {}
self._token2id: Dict = token2id
self._id2token = {idx: token for token, idx in self._token2id.items()}
... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.