id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/gaeframework-2.0.10.tar.gz/gaeframework-2.0.10/google_appengine/google/appengine/api/mail_stub.py | from email import MIMEBase
from email import MIMEMultipart
from email import MIMEText
import logging
import mail
import mimetypes
import re
import subprocess
import smtplib
from google.appengine.api import apiproxy_stub
MAX_REQUEST_SIZE = 32 << 20
class MailServiceStub(apiproxy_stub.APIProxyStub):
"""Python only... | PypiClean |
/PSY_TaLiRo-1.0.0a14-py3-none-any.whl/staliro/options.py | from __future__ import annotations
import enum
import random
import sys
from typing import Any, List, Optional, Tuple, Union
if sys.version_info >= (3, 9):
from collections.abc import Iterable, Sequence
else:
from typing import Iterable, Sequence
from attr import attrs, attrib, Attribute
from attr.validators... | PypiClean |
/py_base_layer-1.0.0-py3-none-any.whl/pymongo/encryption_options.py | from typing import TYPE_CHECKING, Any, List, Mapping, Optional
try:
import pymongocrypt # noqa: F401
_HAVE_PYMONGOCRYPT = True
except ImportError:
_HAVE_PYMONGOCRYPT = False
from pymongo.common import validate_is_mapping
from pymongo.errors import ConfigurationError
from pymongo.uri_parser import _parse... | PypiClean |
/x-thonny-4.1.6.tar.gz/x-thonny-4.1.6/thonny/plugins/pi/__init__.py | import os
import re
from logging import getLogger
from thonny import get_workbench
from thonny.ui_utils import scale
DESKTOP_SESSION = os.environ.get("DESKTOP_SESSION", "_")
CONFIGURATION_PATH = os.path.join(
os.path.expanduser("~"), ".config/lxsession", DESKTOP_SESSION, "desktop.conf"
)
GLOBAL_CONFIGURATION_PATH... | PypiClean |
/tb_nightly-2.13.0a20230217-py3-none-any.whl/tensorboard/auth.py | """Experimental framework for authentication in TensorBoard."""
import abc
class AuthProvider(metaclass=abc.ABCMeta):
"""Authentication provider for a specific kind of credential."""
def authenticate(self, environ):
"""Produce an opaque auth token from a WSGI request environment.
Args:
... | PypiClean |
/volttron_server-0.3.12-py3-none-any.whl/volttron/router/router.py | import logging
import os
import sys
from typing import Optional
from urllib.parse import urlparse
import uuid
import zmq
from zmq import ZMQError, NOBLOCK
from volttron.utils import jsonapi, serialize_frames, deserialize_frames
from volttron.utils.logging import FramesFormatter
from volttron.utils.socket import Addre... | PypiClean |
/odfit-0.6.2.tar.gz/odfit-0.6.2/odfit.py | # Licensed under the FreeBSD license.
# See the file COPYING for details.
from functools import partial
import logging
from sys import stderr
# logging
def make_logger(name, level=logging.DEBUG, strm=stderr):
import logging
logger = logging.getLogger(name)
handler = logging.StreamHandler(strm=stderr)
... | PypiClean |
/critic-review-2.0.1.tar.gz/critic-review-2.0.1/src/maintenance/dumppreferences.py |
import sys
import os.path
sys.path.insert(0, os.path.dirname(os.path.dirname(sys.argv[0])))
from dbaccess import connect
db = connect()
cursor = db.cursor()
cursor.execute("SELECT item, type, default_integer, default_string, description FROM preferences")
preferences = cursor.fetchall()
installpreferences_py = o... | PypiClean |
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v3_6_0/best_origin_route_broker.py | from ..broker import Broker
class BestOriginRouteBroker(Broker):
controller = "best_origin_routes"
def show(self, **kwargs):
"""Shows the details for the specified best origin route.
**Inputs**
| ``api version min:`` None
| ``api version max:`` None
... | PypiClean |
/sparsemax-0.1.9.tar.gz/sparsemax-0.1.9/README.rst | =========
sparsemax
=========
.. image:: https://img.shields.io/pypi/v/sparsemax.svg
:target: https://pypi.python.org/pypi/sparsemax
.. image:: https://img.shields.io/travis/aced125/sparsemax.svg
:target: https://travis-ci.com/aced125/sparsemax
.. image:: https://readthedocs.org/projects/sparsemax/b... | PypiClean |
/flake8-print-clean-3.1.4.tar.gz/flake8-print-clean-3.1.4/flake8_print.py | import pycodestyle
import ast
from six import PY2, PY3
try:
from flake8.engine import pep8 as stdin_utils
except ImportError:
from flake8 import utils as stdin_utils
__version__ = "3.1.4"
PRINT_FUNCTION_NAME = "print"
PPRINT_FUNCTION_NAME = "pprint"
PRINT_FUNCTION_NAMES = [PRINT_FUNCTION_NAME, PPRINT_FUNCTIO... | PypiClean |
/js.ace-1.4.11.tar.gz/js.ace-1.4.11/js/ace/resources/mode-csharp.js | ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},s.getTagRule()... | PypiClean |
/denoising_diffusion_mindspore-0.0.1a0-py3-none-any.whl/ddm/ops.py | import mindspore
from mindspore import ops, Tensor, context
from mindspore.ops._primitive_cache import _get_cache_prim
from mindspore.ops import constexpr
gpu_target = (context.get_context("device_target") == "GPU")
def rsqrt(x):
rsqrt_op = _get_cache_prim(ops.Rsqrt)()
return rsqrt_op(x)
def rearrange(head, ... | PypiClean |
/crowdstrike_falconpy-1.3.0-py3-none-any.whl/falconpy/_endpoint/_hosts.py | _hosts_endpoints = [
[
"QueryDeviceLoginHistory",
"POST",
"/devices/combined/devices/login-history/v1",
"Retrieve details about recent login sessions for a set of devices.",
"hosts",
[
{
"name": "body",
"in": "body",
"required": True
}
]
],
[
"Qu... | PypiClean |
/pk-dlp-2023.3.4.tar.gz/pk-dlp-2023.3.4/yt_dlp/extractor/popcorntv.py | from .common import InfoExtractor
from ..utils import (
extract_attributes,
int_or_none,
unified_timestamp,
)
class PopcornTVIE(InfoExtractor):
_VALID_URL = r'https?://[^/]+\.popcorntv\.it/guarda/(?P<display_id>[^/]+)/(?P<id>\d+)'
_TESTS = [{
'url': 'https://animemanga.popcorntv.it/guarda/... | PypiClean |
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/base64-js/README.md | base64-js
=========
`base64-js` does basic base64 encoding/decoding in pure JS.
[](http://travis-ci.org/beatgammit/base64-js)
[](https://ci.testling.com/beatgammit/base64-js)
Many... | PypiClean |
/aiml_lab-0.1-py3-none-any.whl/sudoku_solver/utils.py |
import bisect
import collections
import collections.abc
import functools
import heapq
import operator
import os.path
import random
from itertools import chain, combinations
from statistics import mean
import numpy as np
# ______________________________________________________________________________
# Functions on ... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/domain/KoubeiAdvertDeliveryDiscountAuthwebBatchqueryModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class KoubeiAdvertDeliveryDiscountAuthwebBatchqueryModel(object):
def __init__(self):
self._channel = None
self._latitude = None
self._longitude = None
self._shop_id = None
@property
def channel(self):
... | PypiClean |
/azure-graphrbac-0.61.1.zip/azure-graphrbac-0.61.1/azure/graphrbac/models/app_role_py3.py |
from msrest.serialization import Model
class AppRole(Model):
"""AppRole.
:param id: Unique role identifier inside the appRoles collection.
:type id: str
:param allowed_member_types: Specifies whether this app role definition
can be assigned to users and groups by setting to 'User', or to other
... | PypiClean |
/abqpy-2023.5.6-py3-none-any.whl/abaqus/Constraint/Tie.py | from typing_extensions import Literal
from abqpy.decorators import abaqus_class_doc, abaqus_method_doc
from ..Region.Region import Region
from ..UtilityAndView.abaqusConstants import (
COMPUTED,
DEFAULT,
OFF,
ON,
SOLVER_DEFAULT,
Boolean,
SymbolicConstant,
)
from ..UtilityAndView.abaqusCons... | PypiClean |
/venn-0.1.3.tar.gz/venn-0.1.3/README.md | # pyvenn: Venn diagrams for 2, 3, 4, 5, 6 sets
Please refer to the Jupyter notebook for demos and a brief explanation of the
interface; a more complete documentation is in the works as the project keeps
evolving:
https://github.com/LankyCyril/pyvenn/blob/master/pyvenn-demo.ipynb
This library is an evolution of tcti... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_internal/req/req_file.py | from __future__ import absolute_import
import optparse
import os
import re
import shlex
import sys
from pip._vendor.six.moves import filterfalse
from pip._vendor.six.moves.urllib import parse as urllib_parse
from pip._internal.cli import cmdoptions
from pip._internal.download import get_file_content
from pip._intern... | PypiClean |
/aws-sam-cli-1.96.0.tar.gz/aws-sam-cli-1.96.0/samcli/lib/utils/definition_validator.py | import logging
from pathlib import Path
from typing import Any, Dict, Optional
import yaml
from samcli.yamlhelper import parse_yaml_file
LOG = logging.getLogger(__name__)
class DefinitionValidator:
_path: Path
_detect_change: bool
_data: Optional[Dict[str, Any]]
def __init__(self, path: Path, dete... | PypiClean |
/Flask_Menu-0.7.2-py3-none-any.whl/flask_menu/classy.py | import inspect
from flask import Blueprint
from flask_menu import current_menu
def register_flaskview(app, classy_view):
"""Register a Flask-Classy FlaskView's menu items with the menu register.
Example::
bp = Blueprint('bp', __name__)
menu.register_flaskview(bp, MyEndpoint)
:param ap... | PypiClean |
/tensorflow_fedora28-1.9.0rc01-cp27-cp27mu-manylinux1_x86_64.whl/tensorflow_fedora28-1.9.0rc0.data/purelib/tensorflow/contrib/learn/python/learn/estimators/tensor_signature.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import collections
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import sparse_tensor
from tensorflow.python.framework import tensor_shape
from tensorflow.python.ops import ar... | PypiClean |
/nnisgf-0.4-py3-none-manylinux1_x86_64.whl/nnisgf-0.4.data/data/nni/node_modules/moment/locale/nb.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/zscaler_pulumi_zpa-0.0.4.tar.gz/zscaler_pulumi_zpa-0.0.4/zscaler_pulumi_zpa/browsercertificate/get_ba_certificate.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'GetBaCertificateResult',
'AwaitableGetBaCertificateResult',
'get_ba_certificate',
'get_ba_certificate_output',
]
@pulumi.output_t... | PypiClean |
/wymypy-ng-2.1.tar.gz/wymypy-ng-2.1/wymypy/app.py | import ConfigParser
from functools import wraps
import json
from flask import Flask, render_template, request, abort, Response
from wymypy.libs.mpdsafe import MpdSafe
app = Flask(__name__)
config = ConfigParser.SafeConfigParser()
mpd = MpdSafe()
plugins = []
def requires_auth(f):
@wraps(f)
def decorated(*ar... | PypiClean |
/chaton-0.1.3.2.tar.gz/chaton-0.1.3.2/README.md | # Chaton
Chaton is a small chatbot with the following characteristics:
* [RiveScript](https://www.rivescript.com)-like Syntax
* Event-based Dialog Management for Multi-Modal Event Processing
* Context Information Exchange Protocol
## Required Software
### Python 3.x
Chaton depends on python 3.x.
### Lark
Lark is us... | PypiClean |
/aquacrop_pacs27-0.0.31-py3-none-any.whl/aquacrop/solution/root_development.py | import numpy as np
from numba import njit, f8, i8, b1
from numba.pycc import CC
try:
from ..entities.soilProfile import SoilProfileNT_typ_sig
from ..entities.crop import CropStructNT_type_sig
except:
from entities.soilProfile import SoilProfileNT_typ_sig
from entities.crop import CropStructNT_type_si... | PypiClean |
/kagsa-1.2.0-py3-none-any.whl/kagsasrc/parse_id.py | class ParseError (Exception):pass
def __init__ (value,parseMemory):
# Catch Error
if (parseMemory[7] == 'else'):
raise SyntaxError(f'invalid syntax (<file>, line {parseMemory[4]})\ncan\'t add any arguments to else command')
if (parseMemory[7] == 'catch'):
raise SyntaxError(f'invalid syntax... | PypiClean |
/dflit_core-2.3.0.1.tar.gz/dflit_core-2.3.0.1/flit_core/versionno.py | import logging
import os
import re
log = logging.getLogger(__name__)
# Regex below from packaging, via PEP 440. BSD License:
# Copyright (c) Donald Stufft and individual contributors.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided t... | PypiClean |
/core_main_app-2.4.0.tar.gz/core_main_app-2.4.0/core_main_app/utils/notifications/mail.py | from django.template import loader
from core_main_app.settings import SERVER_EMAIL, SEND_EMAIL_ASYNC
from core_main_app.templatetags.stripjs import stripjs
from core_main_app.utils.notifications.tasks import task_mail as task
def send_mail_from_template(
recipient_list,
subject,
path_to_template,
con... | PypiClean |
/sre_snapshots-0.0.8.tar.gz/sre_snapshots-0.0.8/README.md | # SERP Real Estate Snapshots Package #
A pure Python package to allow developers access to a SERP Real Estate snapshots library hosted on a NoSQL architecture.
## Installation ##
Install using pip:
```bash
pip install sre-snapshots
```
## Reading Snapshots ##
You can read snapshots by:
```python
from sre_snapsho... | PypiClean |
/tse_option-0.1.2.1.tar.gz/tse_option-0.1.2.1/src/tse_option/__init__.py | import warnings
warnings.filterwarnings("ignore")
import numpy as np
import pandas as pd
import requests as rq
from scipy.stats import norm
import jdatetime
import jalali_pandas
import io
#----------------------------------------
def BSM_call(S0, K, rf, T, sigma):
"""
Black, Scholes and Merton model for optio... | PypiClean |
/fake_bpy_module_2.90-20230117-py3-none-any.whl/bl_ui/space_info.py | import sys
import typing
import bpy_types
GenericType = typing.TypeVar("GenericType")
class INFO_HT_header(bpy_types.Header, bpy_types._GenericUI):
bl_rna = None
''' '''
bl_space_type = None
''' '''
id_data = None
''' '''
def append(self, draw_func):
'''
'''
p... | PypiClean |
/django_htmx_ui_adminlte-0.1.13-py3-none-any.whl/django_htmx_ui_adminlte/static/adminlte/plugins/bootstrap/js/bootstrap.bundle.min.js | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap={},t.jQuery)}(this,(function(t,e){"use strict";function n(t){return t&&"object"==typeof ... | PypiClean |
/synctera_client-0.49.0-py3-none-any.whl/synctera_client/paths/cards_products/get.py | from dataclasses import dataclass
import typing_extensions
import urllib3
from urllib3._collections import HTTPHeaderDict
from synctera_client import api_client, exceptions
from datetime import date, datetime # noqa: F401
import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re #... | PypiClean |
/inject_javascript-0.0.8-py3-none-any.whl/inject_javascript/__init__.py |
## From standard libraries
from os import fdopen as os_fdopen
from os import remove as os_remove
from os.path import exists as path_exists
from os.path import join as path_join
from os.path import basename, dirname
from shutil import copyfile
from tempfile import mkstemp
## From third-party libraries
from PyPDF2 imp... | PypiClean |
/aioquic-gcc49-0.8.2.tar.gz/aioquic-gcc49-0.8.2/aioquic/quic/packet.py | import ipaddress
import os
from dataclasses import dataclass
from enum import IntEnum
from typing import List, Optional, Tuple
from ..buffer import Buffer
from ..tls import pull_block, push_block
from .rangeset import RangeSet
PACKET_LONG_HEADER = 0x80
PACKET_FIXED_BIT = 0x40
PACKET_SPIN_BIT = 0x20
PACKET_TYPE_INITI... | PypiClean |
/azure_mgmt_eventhub-11.0.0b1-py3-none-any.whl/azure/mgmt/eventhub/v2017_04_01/aio/operations/_consumer_groups_operations.py | import sys
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFo... | PypiClean |
/nfv_manager-1.3.3-py3-none-any.whl/nfv_manager-1.3.3.dist-info/DESCRIPTION.rst | Copyright © 2016-2018 `SoftFIRE`_ and `TU Berlin`_. Licensed under
`Apache v2 License`_.
NFV Manager
===========
The SoftFIRE NFV Manager is one of the managers in the SoftFIRE
middleware. It is responsible for handling Network Function
Virtualization (NFV) resources used by experimenters. It interfaces with
Open Bat... | PypiClean |
/WebTestRecorder-0.1.1.tar.gz/WebTestRecorder-0.1.1/webtestrecorder/apachelog.py | import re
from datetime import datetime
from webob import Request, Response
apache_regex = re.compile(
r'''
(?P<remote_host>[^\s]+) \s+
(?P<remote_ident>[^\s]+) \s+
(?P<remote_user>[^\s]+) \s+
\[ (?P<date>[^\]]*) \] \s+
" (?P<method>[A-Z]+) \s+
(?P<path>[^\s]+) \s+
(?P<http_version>... | PypiClean |
/xnni-0.7.4-py3-none-manylinux1_x86_64.whl/xnni-0.7.4.data/data/nni/node_modules/lodash/_unicodeWords.js | var rsAstralRange = '\\ud800-\\udfff',
rsComboMarksRange = '\\u0300-\\u036f',
reComboHalfMarksRange = '\\ufe20-\\ufe2f',
rsComboSymbolsRange = '\\u20d0-\\u20ff',
rsComboRange = rsComboMarksRange + reComboHalfMarksRange + rsComboSymbolsRange,
rsDingbatRange = '\\u2700-\\u27bf',
rsLowerRange = 'a-... | PypiClean |
/cnx_archive-4.15.23-py3-none-any.whl/cnxarchive/views/sitemap.py | """Sitemap Views."""
import logging
import re
from pyramid.view import view_config
from ..database import db_connect
from ..sitemap import Sitemap, SitemapIndex
NON_WORD = re.compile('\W+', re.UNICODE)
PAGES_TO_BLOCK = [
'legacy.cnx.org', '/lenses', '/browse_content', '/content/', '/content$',
'/*/pdf$', '/... | PypiClean |
/python-binance-us-1.0.16.tar.gz/python-binance-us-1.0.16/binance_us/helpers.py | from decimal import Decimal
from typing import Union, Optional, Dict
import dateparser
import pytz
from datetime import datetime
from binance.exceptions import UnknownDateFormat
def date_to_milliseconds(date_str: str) -> int:
"""Convert UTC date to milliseconds
If using offset strings add "UTC" to date st... | PypiClean |
/s-coda-1.0.tar.gz/s-coda-1.0/s_coda/sequence/sequence.py | from __future__ import annotations
import copy
import enum
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt, pyplot
from matplotlib.patches import Rectangle
from pandas import DataFrame
import s_coda
from s_coda.elements.message import MessageType, Message
from s_coda.sequence.absolute_seq... | PypiClean |
/bpy36-1.0.0-py3-none-any.whl/bpy2/2.79/scripts/startup/bl_ui/properties_data_bone.py |
# <pep8 compliant>
import bpy
from bpy.types import Panel
from rna_prop_ui import PropertyPanel
class BoneButtonsPanel:
bl_space_type = 'PROPERTIES'
bl_region_type = 'WINDOW'
bl_context = "bone"
@classmethod
def poll(cls, context):
return (context.bone or context.edit_bone)
class BONE... | PypiClean |
/pimms-learn-0.0.1.tar.gz/pimms-learn-0.0.1/vaep/io/datasets.py | import numpy as np
import pandas as pd
import sklearn.pipeline
import torch
from torch.utils.data import Dataset
from typing import Tuple
DEFAULT_DTYPE = torch.get_default_dtype()
class PeptideDatasetInMemory(Dataset):
"""Peptide Dataset fully in memory."""
nan = torch.tensor(float('NaN'))
def __init_... | PypiClean |
/flup-py3-1.0.3.tar.gz/flup-py3-1.0.3/flup/server/threadedserver.py |
__author__ = 'Allan Saddi <allan@saddi.com>'
__version__ = '$Revision$'
import sys
import socket
import select
import signal
import errno
try:
import fcntl
except ImportError:
def setCloseOnExec(sock):
pass
else:
def setCloseOnExec(sock):
fcntl.fcntl(sock.fileno(), fcntl.F_SETFD, fcntl.FD... | PypiClean |
/pyqlib-0.9.3-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_12_x86_64.manylinux2010_x86_64.whl/qlib/data/dataset/__init__.py | from ...utils.serial import Serializable
from typing import Callable, Union, List, Tuple, Dict, Text, Optional
from ...utils import init_instance_by_config, np_ffill, time_to_slc_point
from ...log import get_module_logger
from .handler import DataHandler, DataHandlerLP
from copy import copy, deepcopy
from inspect impor... | PypiClean |
/click-completion-dyncomplete-0.5.2.1.tar.gz/click-completion-dyncomplete-0.5.2.1/click_completion_dyncomplete/lib.py |
from __future__ import print_function, absolute_import
import re
import shlex
import click
import shellingham
from click import MultiCommand
find_unsafe = re.compile(r'[^\w@%+=:,./-]').search
def single_quote(s):
"""Escape a string with single quotes in order to be parsed as a single element by shlex
Par... | PypiClean |
/fds.sdk.SPGlobalFixedIncomeEvaluatedPricesandAnalytics-0.1.7-py3-none-any.whl/fds/sdk/SPGlobalFixedIncomeEvaluatedPricesandAnalytics/model/bond_issuer_yield_curve.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.SPGlobalFixedIncomeEvaluatedPricesandAnalytics.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
dat... | PypiClean |
/bitcode-test-1.0.0.tar.gz/bitcode-test-1.0.0/etc/scripts/utils_pip_compatibility_tags.py | import re
from packvers.tags import (
compatible_tags,
cpython_tags,
generic_tags,
interpreter_name,
interpreter_version,
mac_platforms,
)
_osx_arch_pat = re.compile(r"(.+)_(\d+)_(\d+)_(.+)")
def version_info_to_nodot(version_info):
# type: (Tuple[int, ...]) -> str
# Only use up to t... | PypiClean |
/mmps-2.4.0.tar.gz/mmps-2.4.0/mmdet/core/bbox/assigners/atss_assigner.py | import torch
from ..builder import BBOX_ASSIGNERS
from ..iou_calculators import build_iou_calculator
from .assign_result import AssignResult
from .base_assigner import BaseAssigner
@BBOX_ASSIGNERS.register_module()
class ATSSAssigner(BaseAssigner):
"""Assign a corresponding gt bbox or background to each bbox.
... | PypiClean |
/fake_bpy_module_3.0-20230117-py3-none-any.whl/bpy/ops/workspace.py | import sys
import typing
import bpy.types
GenericType = typing.TypeVar("GenericType")
def add(override_context: typing.Union[typing.
Dict, 'bpy.types.Context'] = None,
execution_context: typing.Union[str, int] = None,
undo: typing.Optional[bool] = None):
'''... | PypiClean |
/pyxtal_ff-0.2.3.tar.gz/pyxtal_ff-0.2.3/pyxtal_ff/calculator/__init__.py | import numpy as np
from ase import units
from ase.optimize import LBFGS
from ase.optimize.fire import FIRE
from ase.constraints import ExpCellFilter
from ase.calculators.calculator import Calculator, all_changes
from ase.spacegroup.symmetrize import FixSymmetry, check_symmetry
from pyxtal_ff import PyXtal_FF
from pyxta... | PypiClean |
/pyadlml-0.0.8.0a0-py3-none-any.whl/tools/dashboard.py | import argparse
import dash_bootstrap_components as dbc
import dash
from dask.distributed import Client, LocalCluster
from pyadlml.constants import TIME, START_TIME, END_TIME, ACTIVITY
from pyadlml.dataset._core.activities import ActivityDict
from pyadlml.dataset.io import set_data_home
from pyadlml.dataset.plot.plotl... | PypiClean |
/ansible_alicloud_bak-1.0.9.tar.gz/ansible_alicloud_bak-1.0.9/lib/ansible/modules/cloud/alicloud/ecs_slb_lb.py |
ANSIBLE_METADATA = {'status': ['stableinterface'],
'supported_by': 'core',
'version': '1.0'}
DOCUMENTATION = """
---
module: ecs_slb_lb
short_description: Create, Delete, Enable or Disable Server Load Balancer in ECS
common options:
alicloud_access_key:
description:
... | PypiClean |
/test_pysimplesoap-1.0.tar.gz/test_pysimplesoap-1.0/pysimplesoap/server.py |
"Simple SOAP Server implementation"
__author__ = "Mariano Reingart (reingart@gmail.com)"
__copyright__ = "Copyright (C) 2010 Mariano Reingart"
__license__ = "LGPL 3.0"
__version__ = "1.02c"
from simplexml import SimpleXMLElement, TYPE_MAP, DateTime, Date, Decimal
DEBUG = False
class SoapDispatcher(object):
"S... | PypiClean |
/pyodps-0.11.4.1-cp39-cp39-manylinux2014_aarch64.whl/odps/ml/cross_validation.py |
import time
from ..df import RandomScalar, Delay
from ..compat import six
from ..utils import with_wait_argument
from .utils import get_function_args
from .metrics import SCORERS
try:
import numpy as np
_has_numpy = True
except ImportError:
_has_numpy = False
def k_fold(n_folds=3):
def _calc(df):
... | PypiClean |
/pyjdbc-0.2.2.tar.gz/pyjdbc-0.2.2/README.md | # PyJdbc
`pyjdbc` provides a `db api 2.0` compliant interface around any `JDBC` driver.
`pyjdbc` is used by various other projects as the basis for their jdbc compatibility interface.
## Features
- wrap jdbc `DriverManager` functionality
- custom exception handlers to deliver better python-like exceptions and avoidin... | PypiClean |
/netoprmgr-1.3.5.tar.gz/netoprmgr-1.3.5/html5lib/treebuilders/base.py | from __future__ import absolute_import, division, unicode_literals
from six import text_type
from ..constants import scopingElements, tableInsertModeElements, namespaces
# The scope markers are inserted when entering object elements,
# marquees, table cells, and table captions, and are used to prevent formatting
# fr... | PypiClean |
/pythoncrest-1.0.0-py3-none-any.whl/crest/all_in_one/crest_init.py | from selenium import webdriver
import selenium.common.exceptions
from selenium.webdriver.common.keys import Keys
from selenium.webdriver.chrome.options import Options
from selenium.webdriver.common.action_chains import ActionChains
import time
import webbrowser
import requests
import re
import traceback
import logging
... | PypiClean |
/dl_utils385-0.12.6-py3-none-any.whl/dl_utils/label_funcs.py | import numpy as np
import math
try:
import torch
except ImportError:
pass
import warnings
from pdb import set_trace
from scipy.optimize import linear_sum_assignment
from scipy import stats
from dl_utils.tensor_funcs import numpyify, recursive_np_or
class TranslationError(Exception):
pass
def discretize_l... | PypiClean |
/aws-syndicate-0.9.6.tar.gz/aws-syndicate-0.9.6/syndicate/core/resources/cloud_watch_alarm_resource.py | from botocore.exceptions import ClientError
from syndicate.commons.log_helper import get_logger
from syndicate.core.helper import unpack_kwargs
from syndicate.core.resources.base_resource import BaseResource
from syndicate.core.resources.helper import (build_description_obj, chunks,
... | PypiClean |
/django-simple-backup-2.1.tar.gz/django-simple-backup-2.1/README.rst | This is a fork of the `django-backup app <https://github.com/chriscohoat/django-backup>`_
This app backs up database and the media directory on the local disk
in a plain directory, without subdirectories.
It does not set a goal of syncing files offsite.
To sync the files or do other post-processing,
please use a sign... | PypiClean |
/bpy_nibbler-0.1.tar.gz/bpy_nibbler-0.1/bpy_lambda/2.78/scripts/addons/add_mesh_extra_objects/add_mesh_round_cube.py |
import bpy
from bpy_extras import object_utils
from itertools import permutations
from math import (
copysign, pi,
sqrt,
)
from bpy.types import Operator
from bpy.props import (
BoolProperty,
EnumProperty,
FloatProperty,
FloatVectorProperty,
IntProperty
... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/web/v20181101/list_web_app_function_secrets.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = [
'ListWebAppFunctionSecretsResult',
'AwaitableListWebAppFunctionSecretsResult',
'list_web_app_function_secrets',
]
@pulumi.output_type
class ListWe... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/kusto/v20200614/__init__.py |
# Export this package's modules as members:
from ._enums import *
from .attached_database_configuration import *
from .cluster import *
from .cluster_principal_assignment import *
from .data_connection import *
from .database import *
from .database_principal_assignment import *
from .get_attached_database_configurati... | PypiClean |
/lesscode_utils-0.0.13.tar.gz/lesscode_utils-0.0.13/lesscode_utils/encryption_algorithm/smx.py | import importlib
class SMX:
@staticmethod
def generate_sm2_key():
try:
smx_sm2 = importlib.import_module("pysmx.SM2")
except ImportError as e:
raise Exception(f"snowland-smx is not exist,run:pip install snowland-smx==0.3.1")
pk, sk = smx_sm2.generate_keypair()
... | PypiClean |
/leap.bonafide-0.0.2.tar.gz/leap.bonafide-0.0.2/src/leap/bonafide/provider.py | from copy import deepcopy
import re
from urlparse import urlparse
class _MetaActionDispatcher(type):
"""
A metaclass that will create dispatcher methods dynamically for each
action made available by the LEAP provider API.
The new methods will be created according to the values contained in an
`_... | PypiClean |
/yuehui-miji-2022.10.11.0.tar.gz/yuehui-miji-2022.10.11.0/YuehuiMiji/js/hooks.min.js | EPUBJS.Hooks.register("beforeChapterDisplay").endnotes=function(a,b){var c=b.contents.querySelectorAll("a[href]"),d=Array.prototype.slice.call(c),e=EPUBJS.core.folder(location.pathname),f=(EPUBJS.cssPath,{});EPUBJS.core.addCss(EPUBJS.cssPath+"popup.css",!1,b.render.document.head),d.forEach(function(a){function c(){var ... | PypiClean |
/panda-pilot-3.5.1.4.tar.gz/panda-pilot-3.5.1.4/pilot/user/atlas/diagnose.py |
import json
import os
import re
import logging
from glob import glob
from pilot.common.errorcodes import ErrorCodes
from pilot.common.exception import PilotException, BadXML
from pilot.util.config import config
from pilot.util.filehandling import get_guid, tail, grep, open_file, read_file, scan_file #, write_file
fr... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_17/models/software_checks_get_response.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_17 import models
class SoftwareChecksGetResponse(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and t... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/get_private_endpoint.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from . import outputs
__all__ = [
'GetPrivateEndpointResult',
'AwaitableGetPrivateEndpointResult',
'get_private_endpoint',
]
@pulumi.output_type
class GetPriva... | PypiClean |
/etsy_api_zs-0.4-py3-none-any.whl/ebay/order/migrations/0002_auto_20200117_1440.py |
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('ebay_order', '0001_initial'),
('marketplace', '0001_initial'),
]
operations = [
migrations.AddField(
model_name='eb... | PypiClean |
/hgvs-1.5.4.tar.gz/hgvs-1.5.4/docs/getting_help.rst | Getting Help
!!!!!!!!!!!!
`hgvs` always works and has no bugs. Furthermore, its interface is
so easy to use that a manual is unnecessary.
Just kidding.
While hgvs is well-tested and has been used by many groups for several
years, bugs, unexpected behaviors, and other questions occur.
Fortunately, there's a small co... | PypiClean |
/odoo14_addon_l10n_br_account_payment_brcobranca-14.0.3.1.3-py3-none-any.whl/odoo/addons/l10n_br_account_payment_brcobranca/readme/HISTORY.rst | 14.0.1.0.0 (2022-05-26)
~~~~~~~~~~~~~~~~~~~~~~~
* [MIG] Migration
12.0.1.0.0 (2021-05-07)
~~~~~~~~~~~~~~~~~~~~~~~
* [MIG] Finish migration
* [IMP] Integrate with module account_move_base_import used to import CNAB file
* [IMP] Make possible automatic reconciliation and register the values of Fees, Tariff Bank, Rebat... | PypiClean |
/colouration-2020.4.17.tar.gz/colouration-2020.4.17/README.md | # *Colouration*
*Colouration* is a Python library for working with colours.
It unifies three representation of colour:
- [RGB](https://en.wikipedia.org/wiki/RGB_color_model) (red, green, blue)
- [HSL](https://en.wikipedia.org/wiki/HSL_and_HSV) (hue, saturation, lightness)
- [HSV](https://en.wikipedia.org/wiki/HSL_a... | PypiClean |
/fastly-3.0.0.tar.gz/fastly-3.0.0/docs/InlineResponse2003.md | # InlineResponse2003
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**data** | [**[StoreResponse]**](StoreResponse.md) | | [optional]
**meta** | [**InlineResponse2003Meta**](InlineResponse2003Meta.md) | | [optional]
**any string name** | **bool, date, ... | PypiClean |
/treelib-1.6.1.tar.gz/treelib-1.6.1/examples/folder_tree.py |
__author__ = 'holger'
from treelib import tree
import fnmatch
import os
import zlib
import argparse
DEBUG = 0
FILECOUNT = 0
DIRCOUNT = 0
DIR_ERRORLIST = []
FILE_ERRORLIST = []
# Time Profiling
PROFILING = 0
# 0 - nothing
# 1 - time
# 2 - cProfile
if PROFILING == 1:
import timeit
if PROFILING == 2:
import... | PypiClean |
/aliyun-python-sdk-oos-1.5.13.tar.gz/aliyun-python-sdk-oos-1.5.13/aliyunsdkoos/request/v20190601/UpdateStateConfigurationRequest.py |
from aliyunsdkcore.request import RpcRequest
from aliyunsdkoos.endpoint import endpoint_data
class UpdateStateConfigurationRequest(RpcRequest):
def __init__(self):
RpcRequest.__init__(self, 'oos', '2019-06-01', 'UpdateStateConfiguration','oos')
self.set_method('POST')
if hasattr(self, "endpoint_map"):
set... | PypiClean |
/test_gh_action_test-1.0.5-py3-none-any.whl/test_gh_action_test/gen/admin/v1/integration_external_api_pb2_grpc.py | """Client and server classes corresponding to protobuf-defined services."""
import grpc
from . import integration_external_api_pb2 as admin_dot_v1_dot_integration__external__api__pb2
class ExternalApiServiceStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, chann... | PypiClean |
/e-fonenana-frontend-20190305.1.tar.gz/e-fonenana-frontend-20190305.1/hass_frontend_es5/53a55b6cf1a8eefdce66.chunk.js | (window.webpackJsonp=window.webpackJsonp||[]).push([[50],{788:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.r(__webpack_exports__);var lit_element=__webpack_require__(5),hui_entities_card=__webpack_require__(459),EXCLUDED_DOMAINS=["zone"],addFromAction=function addFromAction(... | PypiClean |
/django-rte-0.4.0.tar.gz/django-rte-0.4.0/rte/static/rte/tiny_mce/plugins/fullpage/langs/mk_dlg.js | tinyMCE.addI18n('mk.fullpage_dlg',{title:"Svojstva dokumenta","meta_tab":"Osnovno","appearance_tab":"Izgled","advanced_tab":"Napredno","meta_props":"Meta informacije",langprops:"Jezik i kodiranje","meta_title":"\u041d\u0430\u0441\u043b\u043e\u0432","meta_keywords":"Klju\u010dne re\u010di","meta_description":"Opis","met... | PypiClean |
/skypatrol-0.6.14-py3-none-any.whl/pyasassn/lightcurve.py | from __future__ import division, print_function
import os
from astropy.timeseries import LombScargle
import matplotlib.pyplot as plt
import pandas as pd
import numpy as np
from .wavelet import LS_wavelet
from .utils import Vcams, gcams
class LightCurve:
"""
Object for analysing and visualizing ASAS-SN Sky Pa... | PypiClean |
/model_factory-0.0.8.tar.gz/model_factory-0.0.8/model_factory/models/model.py |
import tqdm
from typing import Any, Tuple, List, Dict
import tensorflow as tf
import numpy as np
import math
import sys
""" model interface
"""
class Model(object):
def __init__(self, optimizer, loss, model):
self.optimizer = optimizer
self.loss = loss
self.model = model
self.mod... | PypiClean |
/seoulai_gym-0.1.2-py3-none-any.whl/seoulai_gym/envs/traders/graphics.py | from typing import List
import matplotlib.backends.backend_agg as agg
import matplotlib.pyplot as plt
import pylab
import pygame
from seoulai_gym.envs.traders.base import Constants
class Graphics(Constants):
def __init__(
self,
window_size: int=600,
):
self.window_size = window_size
... | PypiClean |
/fluiddyn-0.5.2.tar.gz/fluiddyn-0.5.2/doc/code-of-conduct.md | # Code of conduct
- We are committed to providing a friendly, safe and welcoming environment for
all, regardless of level of experience, gender identity and expression, sexual
orientation, disability, personal appearance, body size, race, ethnicity, age,
religion, nationality, or other similar characteristic.
- Pleas... | PypiClean |
/pycirkuit-0.5.1-py3-none-any.whl/COPYING.md | PyCirkuit is Copyright (c) 2018-2019 Orestes Mas <orestes@tsc.upc.edu>
You may use, distribute and copy PyCirkuit under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, which is shown below, or (at your option) any later version.
PyCirkuit uses... | PypiClean |
/ckanext-federated-index-0.0.2.tar.gz/ckanext-federated-index-0.0.2/ckanext/federated_index/logic/action.py | from __future__ import annotations
import json
import logging
from typing import Any
from sqlalchemy.exc import IntegrityError
import ckan.plugins as p
import ckan.plugins.toolkit as tk
from ckan import model
from ckan.lib import redis, search
from ckan.logic import validate
from ckanext.federated_index import inte... | PypiClean |
/stackdio-server-0.8.0a4.tar.gz/stackdio-server-0.8.0a4/stackdio/ui/static/stackdio/lib/bower_components/typeahead.js/test/bloodhound/persistent_storage_spec.js | describe('PersistentStorage', function() {
var engine, ls;
// test suite is dependent on localStorage being available
if (!window.localStorage) {
console.warn('no localStorage support – skipping PersistentStorage suite');
return;
}
// for good measure!
localStorage.clear();
beforeEach(function(... | PypiClean |
/rahulworld_distributions-0.1.tar.gz/rahulworld_distributions-0.1/rahulworld_distributions/Binomialdistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Binomial(Distribution):
""" Binomial distribution class for calculating and
visualizing a Binomial distribution.
Attributes:
mean (float) representing the mean value of the distribution
std... | PypiClean |
/arctic_latest-1.75.0-py3-none-any.whl/arctic/scripts/arctic_copy_data.py | import argparse
import logging
import os
import pwd
from multiprocessing import Pool
from arctic.decorators import _get_host
from arctic.store.audit import ArcticTransaction
from .utils import setup_logging
from ..date import DateRange, to_pandas_closed_closed, CLOSED_OPEN, OPEN_CLOSED
from ..hosts import get_arctic_l... | PypiClean |
/cbpi4-4.1.11.tar.gz/cbpi4-4.1.11/cbpi/http_endpoints/http_fermenterrecipe.py | from cbpi.controller.fermenter_recipe_controller import FermenterRecipeController
from cbpi.api.dataclasses import Props, Step
from aiohttp import web
from cbpi.api import *
import logging
class FermenterRecipeHttpEndpoints():
def __init__(self, cbpi):
self.cbpi = cbpi
self.controller : FermenterR... | PypiClean |
/fog05-sdk-0.2.1.tar.gz/fog05-sdk-0.2.1/fog05_sdk/interfaces/FDU.py |
import json
from fog05_sdk.interfaces.States import State
from fog05_sdk.types import user_fdu
from pyangbind.lib.serialise import pybindJSONDecoder
from pyangbind.lib.serialise import pybindJSONEncoder
from collections import OrderedDict
class FDU(object):
def __init__(self, data=None):
'''
C... | PypiClean |
/salt-ssh-9000.tar.gz/salt-ssh-9000/doc/topics/cloud/parallels.rst | ==============================
Getting Started With Parallels
==============================
Parallels Cloud Server is a product by Parallels that delivers a cloud hosting
solution. The PARALLELS module for Salt Cloud enables you to manage instances
hosted using PCS. Further information can be found at:
http://www.pa... | PypiClean |
/dna.node-2.1.1-py3-none-any.whl/scripts/dna_draw_trajs.py | from typing import Union
from contextlib import closing
from collections import defaultdict
import cv2
from omegaconf import OmegaConf
from dna import Box, Image, BGR, color, Frame, Point
from dna.camera import create_opencv_camera
from dna.event import TrackEvent, read_event_file
from dna.node.world_coord_localizer ... | PypiClean |
/sf-hamilton-1.27.3.tar.gz/sf-hamilton-1.27.3/hamilton/function_modifiers/metadata.py | from typing import Any, Callable, Dict
from hamilton import node
from hamilton.function_modifiers import base
"""Decorators that attach metadata to nodes"""
class tag(base.NodeDecorator):
"""Decorator class that adds a tag to a node. Tags take the form of key/value pairings.
Tags can have dots to specify na... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.