id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/pulumi_gcp_native-0.0.2a1617829075.tar.gz/pulumi_gcp_native-0.0.2a1617829075/pulumi_gcp_native/dataproc/v1beta2/region_autoscaling_policy_iam_policy.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
from ._inputs import *
__all__ = ['RegionAutoscalingPolicyIamPolicy']
class RegionAutoscalingPolicyIamPolicy(pulumi.CustomResource):
def __init... | PypiClean |
/numba_rvsdg-0.0.5.tar.gz/numba_rvsdg-0.0.5/numba_rvsdg/rendering/rendering.py | from numba_rvsdg.core.datastructures.basic_block import (
BasicBlock,
RegionBlock,
PythonBytecodeBlock,
SyntheticAssignment,
SyntheticBranch,
SyntheticBlock,
)
from numba_rvsdg.core.datastructures.scfg import SCFG
from numba_rvsdg.core.datastructures.byte_flow import ByteFlow
import dis
from typ... | PypiClean |
/django-staff-1.1.2.tar.gz/django-staff-1.1.2/doc_src/reference/staff_fields.rst | =====================
Staff Model Reference
=====================
StaffMember
===========
.. py:class:: StaffMember
.. py:attribute:: user
**Required** :py:class:`ForeignKey` :py:class:`User`
The :py:class:`User` to which this profile relates. Choices are limited to active users.
.. py:attribute... | PypiClean |
/Open%20Weather%20API-1.0.tar.gz/Open Weather API-1.0/open_weather_api/controllers/weather_ap_is_controller.py | from open_weather_api.api_helper import APIHelper
from open_weather_api.configuration import Configuration
from open_weather_api.controllers.base_controller import BaseController
from open_weather_api.http.auth.custom_query_auth import CustomQueryAuth
from open_weather_api.models.weather_api_response import WeatherAPIR... | PypiClean |
/crispy-forms-foundation-1.0.1.tar.gz/crispy-forms-foundation-1.0.1/crispy_forms_foundation/layout/buttons.py | from django.template.loader import render_to_string
from crispy_forms.utils import render_field, TEMPLATE_PACK
from crispy_forms import layout as crispy_forms_layout
__all__ = [
'ButtonHolder', 'ButtonHolderCallout', 'ButtonGroup',
'Button', 'Submit', 'Reset',
'InputButton', 'InputSubmit', 'InputReset',
... | PypiClean |
/yt-dlp-custom-0.0.1.tar.gz/yt-dlp-custom-0.0.1/yt_dlp/extractor/keezmovies.py | import re
from .common import InfoExtractor
from ..aes import aes_decrypt_text
from ..compat import compat_urllib_parse_unquote
from ..utils import (
determine_ext,
format_field,
int_or_none,
str_to_int,
strip_or_none,
url_or_none,
)
class KeezMoviesIE(InfoExtractor):
_VALID_URL = r'https... | PypiClean |
/utailBase-0.0.73-py3-none-any.whl/utail_base/nlp_support.py |
import jpype
from konlpy.tag import Komoran
import logging
import re
import threading
log = logging.getLogger(__name__)
class NLPManager:
instance_cnt = 0
def __init__(self, userdic=None):
self._komoran = Komoran(userdic=userdic)
NLPManager.instance_cnt += 1
log.debug('created NL... | PypiClean |
/inverterdb-0.1.0-py3-none-any.whl/SSOPInvertorDataBase/gCentralComponentDB.py |
#ERRORS
# -1 -> Could not connect to the central database
# -2 -> Type of argument not correct
# -3 -> Entry/Table does not exist (or the object that is being search for doesn't exist)
# -4 -> Being implemented ( it is in datatypes available but it is yet to be implemented)
# -5 -> Something unexpected
# -6 -> Could ... | PypiClean |
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/v2/stable/api/legacy_workflows_deprecated/list_workflows.py | from typing import Any, Dict, Optional
import httpx
from ...client import Client
from ...models.workflow_list import WorkflowList
from ...types import Response
def _get_kwargs(
*,
client: Client,
) -> Dict[str, Any]:
url = "{}/workflows".format(client.base_url)
headers: Dict[str, Any] = client.http... | PypiClean |
/django-rte-0.4.0.tar.gz/django-rte-0.4.0/rte/static/rte/tiny_mce/plugins/fullpage/langs/id_dlg.js | tinyMCE.addI18n('id.fullpage_dlg',{title:"Document properties","meta_tab":"General","appearance_tab":"Appearance","advanced_tab":"Advanced","meta_props":"Meta information",langprops:"Language and encoding","meta_title":"Title","meta_keywords":"Keywords","meta_description":"Description","meta_robots":"Robots",doctypes:"... | PypiClean |
/django-fever-notifications-0.1.3.tar.gz/django-fever-notifications-0.1.3/CONTRIBUTING.rst | ============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.
You can contribute in many ways:
Types of Contributions
----------------------
Report Bugs
~~~~~~~~~~~
Report bugs at https://github.com/dnmellen/django-feve... | PypiClean |
/adspygoogle.adwords-15.7.0.tar.gz/adspygoogle.adwords-15.7.0/adspygoogle/common/Utils.py | __author__ = 'api.sgrinberg@gmail.com (Stan Grinberg)'
import codecs
import csv
import datetime
import htmlentitydefs
import re
import sys
import traceback
import urllib
from urlparse import urlparse
from urlparse import urlunparse
from adspygoogle.common.AuthToken import AuthToken
from adspygoogle.common.Buffer impo... | PypiClean |
/serviceb-client-1.0.0.tar.gz/serviceb-client-1.0.0/serviceb_client/model/http_validation_error.py | import re # noqa: F401
import sys # noqa: F401
from serviceb_client.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
... | PypiClean |
/yawast-0.11.0.tar.gz/yawast-0.11.0/README.md | ## YAWAST [](https://codecov.io/gh/adamcaudill/yawast) [](https://www.codefactor.io/repository/github/adamcaudill/yawast) [
from homeassistant.const impor... | PypiClean |
/FAS_FT-0.0.2.tar.gz/FAS_FT-0.0.2/Face_Anti_Spoofing/inference_onnx.py | import cv2
import torch.onnx
import onnxruntime
import time
import numpy as np
import torchvision.transforms as transforms
from torch import nn
from importlib import resources
import io
def to_numpy(tensor):
return tensor.detach().cpu().numpy() if tensor.requires_grad else tensor.cpu().numpy()
class FAS():
de... | PypiClean |
/google-cloud-automl-2.11.2.tar.gz/google-cloud-automl-2.11.2/google/cloud/automl_v1beta1/types/data_items.py | from __future__ import annotations
from typing import MutableMapping, MutableSequence
import proto # type: ignore
from google.cloud.automl_v1beta1.types import geometry
from google.cloud.automl_v1beta1.types import io
from google.cloud.automl_v1beta1.types import text_segment as gca_text_segment
from google.protobu... | PypiClean |
/eth-brownie-1.19.3.tar.gz/eth-brownie-1.19.3/brownie/test/stateful.py |
import sys
from collections import deque
from inspect import getmembers
from types import FunctionType
from typing import Any, Dict, Optional
from hypothesis import settings as hp_settings
from hypothesis import stateful as sf
from hypothesis.strategies import SearchStrategy
import brownie
from brownie.utils import ... | PypiClean |
/stellar_sdk-9.0.0a1-py3-none-any.whl/stellar_sdk/operation/create_passive_sell_offer.py | from decimal import Decimal
from typing import Optional, Union
from .. import xdr as stellar_xdr
from ..asset import Asset
from ..muxed_account import MuxedAccount
from ..price import Price
from ..utils import raise_if_not_valid_amount
from .operation import Operation
__all__ = ["CreatePassiveSellOffer"]
class Crea... | PypiClean |
/dynamic_rest_bse-2.2.1-py3-none-any.whl/dynamic_rest/paginator.py |
from math import ceil
import inspect
from django.utils.functional import cached_property
from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage
from django.utils.inspect import method_has_no_args
try:
from django.utils.translation import gettext_lazy as _
except ImportError:
def _(x):
... | PypiClean |
/lilacai-0.0.9.tar.gz/lilacai-0.0.9/lilac/web/_app/immutable/nodes/5.08500f08.js | import{S as Z,i as w,s as X,E as G,k as P,a as R,l as N,m as y,c as H,h as k,n as j,H as S,I as O,b as D,J as V,K as L,g as T,v as x,d as E,f as $,O as se,P as re,D as U,aj as Le,ab as je,R as me,F as oe,G as ue,L as fe,M as de,N as ce,Q as q,w as z,q as le,r as ne,u as _e,a1 as J,C as Ge,T as Me,o as Re,a4 as ge,an as... | PypiClean |
/pylabrad-0.98.2.tar.gz/pylabrad-0.98.2/labrad/node/__init__.py | from __future__ import print_function
import logging
import logging.handlers
import os
import shlex
import socket
import sys
import zipfile
from datetime import datetime
from twisted.application.internet import TCPClient
from twisted.application.service import MultiService
from twisted.internet import defer, reactor
... | PypiClean |
/TemporalGeneralizedRules-1.0.2-py3-none-any.whl/TemporalGeneralizedRules-1.0.2.dist-info/LICENSE.md | Copyright (c) 2011-2022 GitHub Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, s... | PypiClean |
/tensorflow_intel-2.14.0rc0-cp39-cp39-win_amd64.whl/tensorflow/python/ops/gen_stateful_random_ops.py | import collections
from tensorflow.python import pywrap_tfe as pywrap_tfe
from tensorflow.python.eager import context as _context
from tensorflow.python.eager import core as _core
from tensorflow.python.eager import execute as _execute
from tensorflow.python.framework import dtypes as _dtypes
from tensorflow.security.... | PypiClean |
/mahotas_nh-1.4.10-cp36-cp36m-win_amd64.whl/mahotas/features/texture.py |
import numpy as np
from . import _texture
from ..internal import _verify_is_integer_type
__all__ = [
'haralick',
'haralick_labels',
'cooccurence',
]
def _entropy(p):
p = p.ravel()
p1 = p.copy()
p1 += (p==0)
return -np.dot(np.log2(p1), p)
def haralick(f,
ignore_zeros=Fal... | PypiClean |
/google_generativeai-0.1.0rc3-py3-none-any.whl/google/generativeai/types/model_types.py | """Type definitions for the models service."""
import abc
import dataclasses
from typing import Iterator, List, Optional, Union
__all__ = [
"Model",
"ModelNameOptions",
"ModelsIterable",
]
@dataclasses.dataclass
class Model:
"""A dataclass representation of a `glm.Model`.
Attributes:
na... | PypiClean |
/easy_aoc-0.2.0.tar.gz/easy_aoc-0.2.0/src/easy_aoc/utils.py | import functools
from collections import abc
from typing import Any, TypeAlias, Union
import attrs
RecursiveDict: TypeAlias = abc.Mapping[str, Union[str, int, "RecursiveDict"]]
def serialize(instance: Any) -> dict[str, int | str]:
"""Serialize the instance into a flattened dict.
:param instance: The `attrs... | PypiClean |
/AeroSandbox-4.1.1.tar.gz/AeroSandbox-4.1.1/aerosandbox/library/propulsion_propeller.py | import aerosandbox.numpy as np
def propeller_shaft_power_from_thrust(
thrust_force,
area_propulsive,
airspeed,
rho,
propeller_coefficient_of_performance=0.8,
):
"""
Using dynamic disc actuator theory, gives the shaft power required to generate
a certain amount of th... | PypiClean |
/asteriskrealtimedata-1.1.15-py3-none-any.whl/AsteriskRealtimeData/application/pause_reasons_service.py | from typing import List
from antidote import Provide, inject
from AsteriskRealtimeData.domain.pause_reason.pause_reason_search_criteria_vo import PauseReasonSearchCriteriaVo
from AsteriskRealtimeData.domain.pause_reason.pause_reason_update_vo import PauseReasonUpdateVo
from AsteriskRealtimeData.application.pause_reason... | PypiClean |
/spinnaker-python-client-1.0.0.tar.gz/spinnaker-python-client-1.0.0/swagger_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 swagger_client.configuration import Configuration
... | PypiClean |
/p6-projen-project-awesome-list-1.0.21.tar.gz/p6-projen-project-awesome-list-1.0.21/README.md | Projen External Project to setup an Awesome List
# p6-projen-project-awesome-list
## LICENSE
[](https://opensource.org/licenses/Apache-2.0)
## Other
[, ".cidc")
TOKEN_CACHE_PATH = os.path.join(CIDC_WORKING_DIR, "id_token")
# Environment management
_ENV_KEY = "env"
def set_env(value: str) -> None:
"""Set the current CLI environment... | PypiClean |
/django-grappelli-3.0.7.tar.gz/django-grappelli-3.0.7/docs/_build/_static/searchtools.js | if (!Scorer) {
/**
* Simple result scoring code.
*/
var Scorer = {
// Implement the following function to further tweak the score for each result
// The function takes a result array [filename, title, anchor, descr, score]
// and returns the new score.
/*
score: function(result) {
re... | PypiClean |
/scikit-bio-0.5.9.tar.gz/scikit-bio-0.5.9/skbio/io/_exception.py |
class IOSourceError(Exception):
"""Raised when a file source cannot be resolved."""
pass
class FileFormatError(Exception):
"""Raised when a file cannot be parsed."""
pass
class UnrecognizedFormatError(FileFormatError):
"""Raised when a file's format is unknown, ambiguous, or unidentifiable."""... | PypiClean |
/aliyun-python-sdk-cspro-1.3.9.tar.gz/aliyun-python-sdk-cspro-1.3.9/aliyunsdkcspro/request/v20180315/UpdateOmniSecCheckConfigRequest.py |
from aliyunsdkcore.request import RpcRequest
from aliyunsdkcspro.endpoint import endpoint_data
class UpdateOmniSecCheckConfigRequest(RpcRequest):
def __init__(self):
RpcRequest.__init__(self, 'cspro', '2018-03-15', 'UpdateOmniSecCheckConfig','cspro')
self.set_protocol_type('https')
self.set_method('POST')
i... | PypiClean |
/django-mapit-3.0.tar.gz/django-mapit-3.0/mapit/management/commands/mapit_generation_raise_on_current_areas.py |
from django.core.management.base import BaseCommand, CommandError
from mapit.models import Area, Generation, Type, Country
def check_option(option_name, options, model_class):
'''Get a model instance from an option specifying its code field'''
supplied = options[option_name]
if not supplied:
re... | PypiClean |
/Grammaticomastix-0.0.1rc2-py3-none-any.whl/grammaticomastix/dchars/languages/bod/transliterations/bodsan/bodsan_symbols.py | from dchars.utilities.dicttools import invertdict
#
# * CAVEAT ! If you modify these dictionaries, don't forget to modify their
# corresponding symbols' dictionaries in symbols.py !
#
# * CAVEAT ! No duplicate value allowed in these dictionaries !
#
CONSONANTS = {
'K' : chr(0x091... | PypiClean |
/mo-hg-2.18.18240.tar.gz/mo-hg-2.18.18240/mo_hg/cache.py |
from __future__ import division
from __future__ import unicode_literals
import json
from flask import Response
from mo_dots import coalesce
from mo_files.url import URL
from mo_future import text_type, xrange
from mo_json import value2json
from mo_kwargs import override
from mo_logs import Log
from mo_threads import... | PypiClean |
/iredis_bin-1.9.4-cp310-cp310-manylinux2010_x86_64.whl/iredis_bin-1.9.4.data/scripts/lib/distutils/command/install_data.py |
import os
from distutils.core import Command
from distutils.util import change_root, convert_path
class install_data(Command):
description = "install data files"
user_options = [
('install-dir=', 'd',
"base directory for installing data files "
"(default: installation base dir)"),
... | PypiClean |
/opstool-0.8.3.tar.gz/opstool-0.8.3/README.md | <p align="center">
<font size=7><a href="https://github.com/yexiang1992/opstool">opstool</a></font>
<p align="center"><font size=5 color=YellowGreen>modelling, visualization, post-processing for OpenSeesPy.</font></p>
</p>
[](https://pypi.org/project/opstool/)
[![Downl... | PypiClean |
/askbot_selimgul-0.11.0-py3-none-any.whl/askbot/media/tinymce/plugins/fullpage/langs/en_dlg.js | tinyMCE.addI18n('en.fullpage_dlg',{title:"Document Properties","meta_tab":"General","appearance_tab":"Appearance","advanced_tab":"Advanced","meta_props":"Meta Information",langprops:"Language and Encoding","meta_title":"Title","meta_keywords":"Keywords","meta_description":"Description","meta_robots":"Robots",doctypes:"... | PypiClean |
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/aurora_abb_powerone/config_flow.py | from __future__ import annotations
from collections.abc import Mapping
import logging
from typing import Any
from aurorapy.client import AuroraError, AuroraSerialClient
import serial.tools.list_ports
import voluptuous as vol
from homeassistant import config_entries, core
from homeassistant.const import CONF_ADDRESS,... | PypiClean |
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/iam/operations/users/public_delete_platform_link_v2.py |
# template file: ags_py_codegen
# pylint: disable=duplicate-code
# pylint: disable=line-too-long
# pylint: disable=missing-function-docstring
# pylint: disable=missing-module-docstring
# pylint: disable=too-many-arguments
# pylint: disable=too-many-branches
# pylint: disable=too-many-instance-attributes
# pylint: dis... | PypiClean |
/starlink-pywrapper-0.3.tar.gz/starlink-pywrapper-0.3/starlink/kappa_help/setqual.rst |
SETQUAL
=======
Purpose
~~~~~~~
Assign a specified quality to selected pixels within an NDF
Description
~~~~~~~~~~~
This routine assigns (or optionally removes) the quality specified by
Parameter QNAME to (or from) selected pixels in an NDF. For more
information about using quality within KAPPA see the appendix "... | PypiClean |
/dr_scaffold-2.1.2-py3-none-any.whl/dr_scaffold/scaffold_templates/view_templates.py | VIEWSET = """class %(model)sViewSet(viewsets.ModelViewSet):
queryset = %(model)s.objects.all()
serializer_class = %(model)sSerializer
"""
MODEL_IMPORT = """from %(app)s.models import %(model)s
"""
SERIALIZER_IMPORT = """from %(app)s.serializers import %(model)sSerializer
"""
SETUP = """from rest_framework i... | PypiClean |
/repoze.zodbconn-0.15.tar.gz/repoze.zodbconn-0.15/repoze/zodbconn/cachecleanup.py | import re
from ZODB.utils import z64
from .connector import CONNECTION_KEY
from ._compat import STRING_TYPES
class CacheCleanup:
"""WGSI framework component that reduces the ZODB cache.
Keeps only objects of certain classes.
"""
def __init__(self, next_app, class_regexes, connection_key=CONNECTION_... | PypiClean |
/readability_lxml-0.8.1-py3-none-any.whl/readability/readability.py | from __future__ import print_function
import logging
import re
import sys
from lxml.etree import tounicode
from lxml.html import document_fromstring
from lxml.html import fragment_fromstring
from .cleaners import clean_attributes
from .cleaners import html_cleaner
from .htmls import build_doc
from .htmls import get_b... | PypiClean |
/typhos-2.4.0.tar.gz/typhos-2.4.0/LICENSE.md | Copyright (c) 2016, The Board of Trustees of the Leland Stanford Junior
University, through SLAC National Accelerator Laboratory (subject to receipt
of any required approvals from the U.S. Dept. of Energy). All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitt... | PypiClean |
/PythonStarterPackage-0.4.4.tar.gz/PythonStarterPackage-0.4.4/src/pythonstarterpackage/starterpkg.py |
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# cop... | PypiClean |
/napari-ehooke-0.0.5.tar.gz/napari-ehooke-0.0.5/src/napari_ehooke/ehooke/segments.py | """Module responsible for the identification of single regions inside the
mask, which should correspond to the cell regions.
The regions are then labeled using the watershed algorithm. Requires an
ImageManager object containg the loaded images (base + fluor) and the mask.
Contains a single class, Segments, which store... | PypiClean |
/elements-sdk-23.7.0.tar.gz/elements-sdk-23.7.0/elements_sdk/model/tape_library_format_endpoint_request.py | import re # noqa: F401
import sys # noqa: F401
from elements_sdk.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,
v... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/people/item/person_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 |
/encuentro-4.0.tar.gz/encuentro-4.0/external/youtube-dl/youtube_dl/extractor/dctp.py | from __future__ import unicode_literals
from .common import InfoExtractor
from ..compat import compat_str
class DctpTvIE(InfoExtractor):
_VALID_URL = r'http://www.dctp.tv/(#/)?filme/(?P<id>.+?)/$'
_TEST = {
'url': 'http://www.dctp.tv/filme/videoinstallation-fuer-eine-kaufhausfassade/',
'info_... | PypiClean |
/topacedo-0.2.10.tar.gz/topacedo-0.2.10/LICENSE.md | *This Github favoured markdown format document is meant to be read after rendering.*
Copyright (c) 2020 Parashar Dhapola
The code within this repository is distributed under CC-NC-SA 4.0 license. The legal text for the license is below. A human readable summary of the license is here: https://creativecommons.org/lice... | PypiClean |
/Elasticsearch-Raven-1.5.0.tar.gz/Elasticsearch-Raven-1.5.0/elasticsearch_raven/udp_server.py | import argparse
import socket
import sys
import signal
try:
import queue
except ImportError:
import Queue as queue
from elasticsearch_raven import configuration
from elasticsearch_raven import transport
from elasticsearch_raven import queue_sender
from elasticsearch_raven import queues
from elasticsearch_rave... | PypiClean |
/inky_pi-0.1.2.tar.gz/inky_pi-0.1.2/inky_pi/display/util/shapes.py | from typing import Any, Tuple
from PIL import ImageDraw # type: ignore
def gen_large_sun(
draw: ImageDraw, color: Any, color_neg: Any, x_y: Tuple[int, int]
) -> None:
"""Generate large sun icon
Args:
draw: ImageDraw object
color: Color of the outlines
color_neg: Color of the neg... | PypiClean |
/zeno_etl_libs-1.0.126.tar.gz/zeno_etl_libs-1.0.126/sagemaker-jobs/src/scripts/experiments/redshift-write-demo.ipynb | ```
import argparse
import os
import datetime
import sys
sys.path.append('../../../..')
from zeno_etl_libs.db.db import DB
from zeno_etl_libs.config.common import Config
from zeno_etl_libs.logger import get_logger
env = "stage"
os.environ['env'] = env
logger = get_logger(level="INFO")
db = DB(read_only=False)
... | PypiClean |
/kaf_pas-0.0.121-py3-none-any.whl/kaf_pas/ckk/views/material_added_values.py | from isc_common.http.DSResponse import DSResponseUpdate, DSResponseAdd, DSResponse, JsonResponseWithException
from isc_common.http.RPCResponse import RPCResponseConstant
from isc_common.http.response import JsonResponse
from kaf_pas.ckk.models.material_added_values import Material_added_values
@JsonResponseWithExcept... | PypiClean |
/message_ix-3.7.0-py3-none-any.whl/tutorial/westeros/westeros_firm_capacity.ipynb | # Westeros Tutorial - Adding representation of renewables (part1/3): Introducing `"firm capacity"`
This tutorial demonstrates how to apply various features of the MESSAGEix formulation to provide a more realistic representation of renewable energy integration in the energy system.
In the first part of this series of ... | PypiClean |
/aliyun-python-sdk-vpc-3.0.45.tar.gz/aliyun-python-sdk-vpc-3.0.45/aliyunsdkvpc/request/v20160428/AssociateNetworkAclRequest.py |
from aliyunsdkcore.request import RpcRequest
from aliyunsdkvpc.endpoint import endpoint_data
class AssociateNetworkAclRequest(RpcRequest):
def __init__(self):
RpcRequest.__init__(self, 'Vpc', '2016-04-28', 'AssociateNetworkAcl','vpc')
self.set_method('POST')
if hasattr(self, "endpoint_map"):
setattr(self,... | PypiClean |
/omnicloud_airport-0.0.2.tar.gz/omnicloud_airport-0.0.2/omnicloud/airport/terminals/__init__.py | import importlib as _importlib
import re as _re
from os import environ as _env
from os import path as _path
from os import scandir as _scandir
from sys import modules as _modules
from ..abc import Building as _Building
from ..tools.type import underscore_to_camelcase as _2camelcase
infobox = {} # It is an idea to ha... | PypiClean |
/lawsql_cases_justices-0.0.5-py3-none-any.whl/lawsql_cases_justices/__main__.py | from datetime import date
from typing import Iterator, Optional
from sqlite_utils.db import NotFoundError
from .config import JUSTICES_TABLE
from .typos import is_typo
def get_id(d: date, x: str) -> Optional[int]:
"""With a "cleaned" surname, including considered typos, get primary key (pk) of matching Justice ... | PypiClean |
/pandexo.engine-2.0.0-py3-none-any.whl/pandexo/engine/jwst.py | import os
import sys
import json
import numpy as np
import pandas as pd
from copy import deepcopy
from astropy.io import fits
from pandeia.engine.instrument_factory import InstrumentFactory
from pandeia.engine.perform_calculation import perform_calculation
from . import create_input as create
from .compute_noise impor... | PypiClean |
/python-manilaclient-4.6.0.tar.gz/python-manilaclient-4.6.0/manilaclient/v2/share_access_rules.py | """Interface for share access rules extension."""
from manilaclient import api_versions
from manilaclient import base
RESOURCE_PATH = '/share-access-rules/%s'
RESOURCE_NAME = 'access'
RESOURCES_METADATA_PATH = '/share-access-rules/%s/metadata'
RESOURCE_METADATA_PATH = '/share-access-rules/%s/metadata/%s'
RESOURCE_LI... | PypiClean |
/zipdetr-2.0.10.tar.gz/zipdetr-2.0.10/vehicle/models/sam/amg.py |
import math
from itertools import product
from typing import Any, Generator, List, Tuple
import numpy as np
import torch
def is_box_near_crop_edge(boxes: torch.Tensor,
crop_box: List[int],
orig_box: List[int],
atol: float = 20.0) -> torch... | PypiClean |
/pypeit-1.13.0.tar.gz/pypeit-1.13.0/doc/include/dev_suite_readme.rst | The Python Spectroscopic Data Reduction Pipeline (PypeIt) development suite
===========================================================================
This repository provides data and input files used for testing `PypeIt
<https://github.com/pypeit/PypeIt>`__.
Installation
------------
To install, run:
.. code-blo... | PypiClean |
/starlink-pywrapper-0.3.tar.gz/starlink-pywrapper-0.3/starlink/kappa_help/gdnames.rst |
GDNAMES
=======
Purpose
~~~~~~~
Shows which graphics devices are available
Description
~~~~~~~~~~~
The routine displays a list of the graphics devices available and the
names (both traditional Starlink GNS names and the equivalent PGPLOT
names) which identify them. Each name is accompanied by a brief
descriptive ... | PypiClean |
/idealoom-0.1.0-py3-none-any.whl/assembl/static/widget/session/bower_components/moment/locale/bg.js |
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['moment'], factory) :
factory(global.moment)
}(this, function (moment) { 'use strict';
var bg = moment.defineLocale('bg', {
... | PypiClean |
/causal_tree_learn-2.43-cp310-cp310-macosx_12_0_arm64.whl/CTL/causal_tree/r_tree/tree.py | try:
from CTL.causal_tree.util_c import *
except:
from CTL.causal_tree.util import *
from CTL.causal_tree.ct import *
import numpy as np
from scipy.spatial import cKDTree
# TODO: Add weighting on evaluations
# TODO: add weighting on k > 1 nearest neighbors?
def compute_nn_effect(x, y, t, k=1):
kdtree = c... | PypiClean |
/js.tinymce-4.5.4.tar.gz/js.tinymce-4.5.4/js/tinymce/resources/classes/ui/ListBox.js | * Creates a new list box control.
*
* @-x-less ListBox.less
* @class tinymce.ui.ListBox
* @extends tinymce.ui.MenuButton
*/
define("tinymce/ui/ListBox", [
"tinymce/ui/MenuButton",
"tinymce/ui/Menu"
], function(MenuButton, Menu) {
"use strict";
return MenuButton.extend({
/**
* Constructs a instance with ... | PypiClean |
/sphinxnotes_snippet-1.1.1-py3-none-any.whl/sphinxnotes/snippet/picker.py | from __future__ import annotations
from typing import List, Tuple
from docutils import nodes
from sphinx.util import logging
from . import Snippet, Section, Document
logger = logging.getLogger(__name__)
def pick(doctree:nodes.document) -> List[Tuple[Snippet,nodes.section]]:
"""
Pick snippets from documen... | PypiClean |
/Flask-CKEditor-0.4.6.tar.gz/Flask-CKEditor-0.4.6/flask_ckeditor/static/basic/lang/mn.js | /*
Copyright (c) 2003-2020, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/license
*/
CKEDITOR.lang['mn']={"editor":"Хэлбэрт бичвэр боловсруулагч","editorPanel":"Rich Text Editor panel","common":{"editorHelp":"Press ALT 0 for help","browseServer":"Үйлчлэгч тооц... | PypiClean |
/columbia-discord-bot-0.2.1.tar.gz/columbia-discord-bot-0.2.1/docs/_build/html/_static/pygments/lexers/haskell.py | import re
from pygments.lexer import Lexer, RegexLexer, bygroups, do_insertions, \
default, include, inherit, line_re
from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
Number, Punctuation, Generic, Whitespace
from pygments import unistring as uni
__all__ = ['HaskellLexer', 'HspecLex... | PypiClean |
/collective.portaltabs-0.4.0.zip/collective.portaltabs-0.4.0/collective/portaltabs/browser/manage_portaltabs_view.py |
from AccessControl import getSecurityManager
from AccessControl import Unauthorized
from Acquisition import aq_inner
from Products.CMFCore import permissions
from Products.CMFCore.ActionInformation import Action
from Products.CMFCore.utils import getToolByName
from Products.CMFPlone.utils import getFSVersionTuple
from... | PypiClean |
/ansible-kkvesper-2.3.2.0.tar.gz/ansible-kkvesper-2.3.2.0/contrib/inventory/landscape.py |
# (c) 2015, Marc Abramowitz <marca@surveymonkey.com>
#
# This file is part of Ansible.
#
# Ansible is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any la... | PypiClean |
/django_ckeditor-6.7.0-py3-none-any.whl/ckeditor/static/ckeditor/ckeditor/lang/cs.js | /*
Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license/
*/
CKEDITOR.lang['cs']={"application":"Rich Text Editor","editor":"Textový editor","editorPanel":"Panel textového editoru","common":{"editorHelp":"Stiskněte ALT... | PypiClean |
/mLib-1.2.4.tar.gz/mLib-1.2.4/src/crypto/spritz.py | class Spritz:
def __init__(self, op):
self.initialise_state()
self.op = op
def encrypt(self, K, M):
self.initialise_state()
self.absorb(K)
return bytearray(self.op(b1, b2) for b1, b2 in zip(M, self.squeeze(len(M))))
def decrypt(self, K, C):
self.initialise_... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/drives/item/list/items/item/document_set_versions/document_set_versions_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 |
/aiida-castep-2.0.1.tar.gz/aiida-castep-2.0.1/aiida_castep/calculations/utils.py | from __future__ import absolute_import
from collections import Counter
from aiida.common import InputValidationError
def get_castep_ion_line(name,
pos,
label=None,
spin=None,
occupation=None,
mix_nu... | PypiClean |
/email_validator-2.0.0.post1-py3-none-any.whl/email_validator/deliverability.py | from typing import Optional, Any, Dict
from .exceptions_types import EmailUndeliverableError
import dns.resolver
import dns.exception
def caching_resolver(*, timeout: Optional[int] = None, cache=None):
if timeout is None:
from . import DEFAULT_TIMEOUT
timeout = DEFAULT_TIMEOUT
resolver = dns... | PypiClean |
/tweet_nlp_toolkit-1.0.5.tar.gz/tweet_nlp_toolkit-1.0.5/tweet_nlp_toolkit/prep/token.py | import re
import unicodedata
import emoji
from emoji import EMOJI_ALIAS_UNICODE_ENGLISH, UNICODE_EMOJI_ENGLISH
from tweet_nlp_toolkit.constants import (
MENTION_TAG,
HASHTAG_TAG,
URL_TAG,
DIGIT_TAG,
EMOJI_TAG,
EMOTICON_TAG,
PUNCTUATION_TAG,
EMAIL_TAG,
UNKNOWN_LANGUAGE,
)
from tweet... | PypiClean |
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/melcloud/sensor.py | from pymelcloud import DEVICE_TYPE_ATA, DEVICE_TYPE_ATW
from pymelcloud.atw_device import Zone
from homeassistant.components.sensor import (
DEVICE_CLASS_ENERGY,
DEVICE_CLASS_TEMPERATURE,
STATE_CLASS_MEASUREMENT,
SensorEntity,
)
from homeassistant.const import (
ATTR_DEVICE_CLASS,
ATTR_ICON,
... | PypiClean |
/django-admin-volt-1.0.10.tar.gz/django-admin-volt-1.0.10/admin_volt/views.py | from django.shortcuts import render, redirect
from admin_volt.forms import RegistrationForm, LoginForm, UserPasswordResetForm, UserPasswordChangeForm, UserSetPasswordForm
from django.contrib.auth.views import LoginView, PasswordResetView, PasswordChangeView, PasswordResetConfirmView
from django.contrib.auth import logo... | PypiClean |
/bpy36-1.0.0-py3-none-any.whl/bpy2/2.79/scripts/addons/sequencer_kinoraw_tools/recursive_loader.py |
import bpy
import os
from bpy.types import (
Operator,
Panel,
)
from bpy.props import (
EnumProperty,
BoolProperty,
)
from . import functions
from . import exiftool
class Sequencer_Extra_RecursiveLoader(Operator):
bl_idname = "sequencerextra.recursiveload"
bl_l... | PypiClean |
/django-content-edit-2.0.tar.gz/django-content-edit-2.0/content_edit/static/content_edit/ckeditor/plugins/specialchar/dialogs/lang/ug.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","ug",{euro:"ياۋرو بەلگىسى",lsquo:"يالاڭ پەش سول",rsquo:"يالاڭ پەش ئوڭ",ldquo:"قوش پەش سول",rdquo:"قوش پەش ئوڭ",ndash:"سىزىقچە",mdash:"س... | PypiClean |
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/ecoal_boiler/switch.py | from __future__ import annotations
from typing import Any
from homeassistant.components.switch import SwitchEntity
from homeassistant.core import HomeAssistant
from homeassistant.helpers.entity_platform import AddEntitiesCallback
from homeassistant.helpers.typing import ConfigType, DiscoveryInfoType
from . import AV... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/recoveryservices/v20230601/replication_storage_classification_mapping.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 ._inputs import *
__all__ = ['ReplicationStorageClassificationMappingArgs', 'ReplicationStorageClassificationMapping']
@pulumi.inp... | PypiClean |
/Vespa_Suite-1.1.0-py37-none-any.whl/vespa/interfaces/inline/ge/run_inline_vespa_ge_v1.py |
# import packages/libraries
import GERecon
import os
import shutil
import numpy as np
#import matplotlib.pyplot as plt # this line causes SegFault on Linux
import inline_vespa_ge as ivg
"""
Version History
--------------------------
v1 - testing in linux so we can have access to GERecon library v1.0. Callin... | PypiClean |
/fast-boot-security-0.0.12.tar.gz/fast-boot-security-0.0.12/fast_boot/security_lite/url_authorization_configurer.py | from typing import Generic, TypeVar, List, Dict, Tuple
from fast_boot.matcher.request_matcher import RequestMatcher, AnyRequestMatcher, RegexRequestMatcher, AntPathRequestMatcher
from fast_boot.security_lite.access_decision_manager import AccessDecisionManager
from fast_boot.security_lite.filters.filter_security_inter... | PypiClean |
/swh.web.client-0.6.0.tar.gz/swh.web.client-0.6.0/swh/web/client/cli.py |
import os
from typing import Any, Dict, List
# WARNING: do not import unnecessary things here to keep cli startup time under
# control
import click
from click.core import Context
from swh.auth.cli import auth as auth_cli
from swh.auth.cli import generate_token as auth_generate_token
from swh.auth.cli import revoke_t... | PypiClean |
/sp_storage-0.0.1.tar.gz/sp_storage-0.0.1/sp_storage/sharepoint.py | import os
import mimetypes
from tempfile import SpooledTemporaryFile
from django.core.exceptions import ImproperlyConfigured
from django.core.files.base import File
from django.utils.deconstruct import deconstructible
from storages.base import BaseStorage
from storages.utils import clean_name
from storages.utils impo... | PypiClean |
/import-wrappers-0.0.2.tar.gz/import-wrappers-0.0.2/README.md | [](https://badge.fury.io/py/import-wrappers)

[](https://coveralls.io/github/eyadgaran/impor... | PypiClean |
/browse_ocrd-0.5.5-py3-none-any.whl/ocrd_browser/ui/page_store.py | from gi.repository import Gtk, GLib, GdkPixbuf
from typing import Tuple, Optional, Dict, List, Union, NewType, Callable, Any
from itertools import count
from ocrd_browser.util.image import cv_to_pixbuf, cv_scale
from ocrd_browser.model import Document
from .icon_store import LazyLoadingListStore
from ..util.config im... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/groups/item/sites/item/onenote/notebooks/item/section_groups/item/section_groups/section_groups_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 |
/OpenNMT-py-3.3.tar.gz/OpenNMT-py-3.3/onmt/decoders/transformer.py | import torch
import torch.nn as nn
from onmt.decoders.decoder import DecoderBase
from onmt.modules import MultiHeadedAttention, AverageAttention
from onmt.modules.position_ffn import PositionwiseFeedForward
from onmt.modules.position_ffn import ActivationFunction
from onmt.utils.misc import sequence_mask
from onmt.modu... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/template/defaulttags.py | from __future__ import unicode_literals
import sys
import re
from datetime import datetime
from itertools import groupby, cycle as itertools_cycle
from django.conf import settings
from django.template.base import (Node, NodeList, Template, Context, Library,
TemplateSyntaxError, VariableDoesNotExist, InvalidTempla... | PypiClean |
/m4us-0.3.0.tar.gz/m4us-0.3.0/docs/source/api/core/m4us.core.api.rst | .. This file is part of Message For You Sir (m4us).
.. Copyright © 2009-2012 Krys Lawrence
..
.. Message For You Sir is free software: you can redistribute it and/or modify
.. it under the terms of the GNU Affero General Public License as published by
.. the Free Software Foundation, either version 3 of the License, or... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.