id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/graftpress_cli-0.0.4.1.tar.gz/graftpress_cli-0.0.4.1/graftpress_cli/main.py
import sys import cookiecutter from cookiecutter.main import cookiecutter import os import graftpress_cli.compile_elm as ce import graftpress_cli.rust_json as rj import json from typing import List VERSION = "0.1.0" def main(): if len(sys.argv) == 1: print( f"""\ Hi, thank you for trying ou...
PypiClean
/xicam.SAXS-2.2.2.tar.gz/xicam.SAXS-2.2.2/xicam/SAXS/utils/__init__.py
from typing import List import numpy as np import pyqtgraph as pg from camsaxs.remesh_bbox import q_from_geometry from xicam.SAXS.patches.pyFAI import AzimuthalIntegrator def get_label_array(images: np.ndarray, rois: np.ndarray = None, image_item: pg.ImageItem = None, geometry: AzimuthalIntegrator = None) -> np.nda...
PypiClean
/bobtemplates.eea-4.0.9.tar.gz/bobtemplates.eea-4.0.9/bobtemplates/eea/base.py
from colorama import Fore from colorama import Style from datetime import date from lxml import etree from mrbob import hooks from mrbob.bobexceptions import MrBobError from mrbob.bobexceptions import SkipQuestion from mrbob.bobexceptions import ValidationError from mrbob.rendering import jinja2_env from six.moves impo...
PypiClean
/pyretis-2.5.0-py3-none-any.whl/docs/_build/html/_static/examples/extending-example/potential/ljpotentialc.py
"""Example of using a Lennard-Jones potential implemented in C.""" import logging import os import sys import numpy as np from pyretis.forcefield.potentials import PairLennardJonesCut from pyretis.forcefield.potentials.pairpotentials import ( generate_pair_interactions, ) logger = logging.getLogger(__name__) # pyl...
PypiClean
/imgtotxt-0.1.2.tar.gz/imgtotxt-0.1.2/README.md
# ImgToTxt Native python OCR app running locally to extract text from your images. It provides a native look and feel, and downloads the models for recognition of text to use without any remote connection. Made with great libraries: - [EasyOCR](https://github.com/JaidedAI/EasyOCR) (OCR Models and Code) - [Toga](http...
PypiClean
/bpy_2.79-1.0.0-py3-none-manylinux2014_x86_64.whl/bpy/2.79/scripts/addons/netrender/operators.py
import bpy import os import http, http.client, http.server import webbrowser import json import netrender from netrender.utils import * import netrender.client as client import netrender.model import netrender.versioning as versioning class RENDER_OT_netclientsendbake(bpy.types.Operator): """Send a baking job to...
PypiClean
/pyasn1_modules_lextudio-0.2.9.tar.gz/pyasn1_modules_lextudio-0.2.9/pyasn1_modules/rfc3709.py
from pyasn1.type import char, constraint, namedtype, namedval, tag, univ from pyasn1_modules import rfc5280, rfc6170 MAX = float("inf") class HashAlgAndValue(univ.Sequence): pass HashAlgAndValue.componentType = namedtype.NamedTypes( namedtype.NamedType("hashAlg", rfc5280.AlgorithmIdentifier()), named...
PypiClean
/acdcserver-2.2.4rc3.tar.gz/acdcserver-2.2.4rc3/src/python/WMCore/Database/DBExceptionHandler.py
from __future__ import division, print_function from builtins import str from functools import wraps import logging import threading ### Don't crash the components on the following database exceptions # ORA-03113: end-of-file on communication channel # ORA-03114: Not Connected to Oracle # ORA-03135: connection lost c...
PypiClean
/stir-invariance-0.0.tar.gz/stir-invariance-0.0/stir/helper.py
from ast import excepthandler import torch import torch.nn as nn from torchvision import datasets from torch.utils.data import DataLoader import numpy as np from enum import Enum import math, os import sys, pickle, functools import joblib, pickle from sklearn.metrics import accuracy_score from stir.attack.losses impor...
PypiClean
/realms-wiki-0.9.3.tar.gz/realms-wiki-0.9.3/realms/static/vendor/ace/demo/kitchen-sink/token_tooltip.js
define(function(require, exports, module) { "use strict"; var dom = require("ace/lib/dom"); var oop = require("ace/lib/oop"); var event = require("ace/lib/event"); var Range = require("ace/range").Range; var Tooltip = require("ace/tooltip").Tooltip; function TokenTooltip (editor) { if (editor.tokenTooltip) ...
PypiClean
/stsynphot-1.2.0.tar.gz/stsynphot-1.2.0/CODE_OF_CONDUCT.md
# Spacetelescope Open Source Code of Conduct We expect all "spacetelescope" organization projects to adopt a code of conduct that ensures a productive, respectful environment for all open source contributors and participants. We are committed to providing a strong and enforced code of conduct and expect everyone in ou...
PypiClean
/rocksolid-agent-1.0.17.tar.gz/rocksolid-agent-1.0.17/rocksolid_agent/libs/lmd.py
class LMD: def __init__(self, agent): from base import bcolors self.bcolors = bcolors self.agent = agent def cmd (self, cmd, args): # Maldet execution # -s, --restore FILE|SCANID # Restore file from quarantine queue to orginal path or restore all items fro...
PypiClean
/Products.ParsedXML-1.5.1.tar.gz/Products.ParsedXML-1.5.1/Products/ParsedXML/README.DOMProxy
How and why we are proxying DOM nodes. Parsed XML consists of two DOM interfaces. Our DOM is a tight and fast implementation. Our ManageableDOM (of which the ParsedXML object that is instantiated acts as the top object) contains an instance of a DOM tree, proxies its DOM interface, and also provides Zope support...
PypiClean
/inception-android-0.9.18.tar.gz/inception-android-0.9.18/inception/argparsers/bootstrap.py
from .argparser import InceptionArgParser from .exceptions import InceptionArgParserException from inception.constants import InceptionConstants from inception.common.configsyncer import ConfigSyncer from inception.tools import imgtools import os, shutil, logging from inception.config import ConfigTreeParser, DotIdenti...
PypiClean
/nni-3.0rc1-py3-none-macosx_10_9_x86_64.whl/nni_node/node_modules/moment/locale/el.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
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/globals/topology/openflowchannel/packetoutactiontemplate_cdfd5cc0a95b553333af05df056c6f5a.py
import sys from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files if sys.version_info >= (3, 5): from typing import List, Any, Union class PacketOutActionTemplate(Base): """Global data for OpenFlow Action Builder template data extension. The PacketOutActionTemplate class encapsul...
PypiClean
/imio.schedule-2.0.2.tar.gz/imio.schedule-2.0.2/src/imio/schedule/content/object_factories.py
from z3c.form.object import FactoryAdapter from zope.interface import implements from zope.schema.fieldproperty import FieldProperty from imio.schedule.content.task_config import ICreationConditionSchema from imio.schedule.content.task_config import IEndConditionSchema from imio.schedule.content.task_config import IF...
PypiClean
/panda-jedi-0.0.24.tar.gz/panda-jedi-0.0.24/pandajedi/jeditest/addTestTaskParamToDEFT.py
import sys try: metaID = sys.argv[1] except Exception: metaID = None import json import uuid taskParamMap = {} taskParamMap['taskName'] = str(uuid.uuid4()) taskParamMap['userName'] = 'pandasrv1' taskParamMap['vo'] = 'atlas' taskParamMap['taskPriority'] = 100 taskParamMap['architecture'] = 'i686-slc5-gcc43-opt' ...
PypiClean
/sinon-0.1.1.tar.gz/sinon-0.1.1/README.rst
Sinon.PY ======== |Documentation| |Build| |Coverage| |Style| |Version| |Downloads| |Support| |Status| .. |Documentation| image:: https://readthedocs.org/projects/sinon/badge/?version=master :target: https://sinon.readthedocs.io .. |Version| image:: https://badge.fury.io/py/sinon.svg :target: https://badge.fu...
PypiClean
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/tar/lib/list.js
'use strict' // XXX: This shares a lot in common with extract.js // maybe some DRY opportunity here? // tar -t const hlo = require('./high-level-opt.js') const Parser = require('./parse.js') const fs = require('fs') const fsm = require('fs-minipass') const path = require('path') const stripSlash = require('./strip-tr...
PypiClean
/pulumi_kubernetes_ingress_nginx-0.0.10.tar.gz/pulumi_kubernetes_ingress_nginx-0.0.10/pulumi_kubernetes_ingress_nginx/provider.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['ProviderArgs', 'Provider'] @pulumi.input_type class ProviderArgs: def __init__(__self__): """ The set of arguments for construc...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/caniuse-lite/data/regions/alt-ww.js
module.exports={C:{"2":0.00832,"4":0.01664,"15":0.00832,"18":0.00416,"21":0.00832,"23":0.00416,"25":0.01248,"30":0.00832,"36":0.00416,"43":0.04161,"44":0.00832,"48":0.00416,"51":0.00832,"52":0.06242,"55":0.00832,"56":0.00832,"59":0.00416,"60":0.00832,"63":0.00832,"68":0.00832,"72":0.00832,"77":0.00416,"78":0.05825,"79"...
PypiClean
/keystack-0.12.0.tar.gz/keystack-0.12.0/Keystack/KeystackUI/static/admin/js/SelectBox.js
'use strict'; { const SelectBox = { cache: {}, init: function(id) { const box = document.getElementById(id); SelectBox.cache[id] = []; const cache = SelectBox.cache[id]; for (const node of box.options) { cache.push({value: node.value, t...
PypiClean
/timi_kafka-0.0.2.tar.gz/timi_kafka-0.0.2/kafka/consumer/base.py
from __future__ import absolute_import import atexit import logging import numbers from threading import Lock import warnings from kafka.errors import ( UnknownTopicOrPartitionError, check_error, KafkaError) from kafka.structs import ( OffsetRequestPayload, OffsetCommitRequestPayload, OffsetFetchRequestPayloa...
PypiClean
/yt-dlp-custom-0.0.1.tar.gz/yt-dlp-custom-0.0.1/yt_dlp/extractor/tv2.py
import re from .common import InfoExtractor from ..compat import compat_HTTPError from ..utils import ( determine_ext, ExtractorError, int_or_none, float_or_none, js_to_json, parse_iso8601, remove_end, strip_or_none, try_get, ) class TV2IE(InfoExtractor): _VALID_URL = r'https?...
PypiClean
/dash_calendar-0.0.3.tar.gz/dash_calendar-0.0.3/dash_calendar/dash_calendar.min.js
window.dash_calendar=function(e){var t={};function n(r){if(t[r])return t[r].exports;var a=t[r]={i:r,l:!1,exports:{}};return e[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&S...
PypiClean
/Pygments-2.16.1-py3-none-any.whl/pygments/lexers/_asy_builtins.py
ASYFUNCNAME = { 'AND', 'Arc', 'ArcArrow', 'ArcArrows', 'Arrow', 'Arrows', 'Automatic', 'AvantGarde', 'BBox', 'BWRainbow', 'BWRainbow2', 'Bar', 'Bars', 'BeginArcArrow', 'BeginArrow', 'BeginBar', 'BeginDotMargin', 'BeginMargin', 'BeginPenMargin',...
PypiClean
/django_talos-0.20.1215-py3-none-any.whl/talos/helpers/admin.py
def _formfield_for_foreignkey(self, db_field, request=None, **kwargs): from django.contrib.contenttypes.models import ContentType field = super(type(self), self).formfield_for_foreignkey(db_field, request, **kwargs) if db_field.name == 'action': field.queryset = field.queryset.filter(content_type=...
PypiClean
/PyInq-0.2.1.zip/PyInq-0.2.1/docs/_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
/aws_toolbox-0.0.2-py3-none-any.whl/aws_toolbox/commands/ec2/delete_snapshot.py
import re import boto3 import click from aws_toolbox.commands.regions import get_regions from aws_toolbox.utils import logutils log = logutils.get_logger(__name__) @click.command(help="Delete Snapshots.") @click.option( "--region", required=True, help="Region name.", ) @click.option( "--description...
PypiClean
/monk_gluon_cpu_test-0.0.11.tar.gz/monk_gluon_cpu_test-0.0.11/monk/system/eda/utils.py
from monk.system.eda.imports import * from monk.system.imports import * @accepts(str, str, post_trace=False) #@TraceFunction(trace_args=True, trace_rv=False) def get_img_label(fname, delimiter): ''' Find list of images and corresponding labels in csv file Args: fname (str): Path to csv file ...
PypiClean
/ppocr_onnx-0.0.3.9-py3-none-any.whl/ppocronnx/det/preprocess.py
import cv2 import sys import numpy as np class DetResizeForTest(object): def __init__(self, **kwargs): super(DetResizeForTest, self).__init__() self.resize_type = 0 if 'image_shape' in kwargs: self.image_shape = kwargs['image_shape'] self.resize_type = 1 eli...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_24/models/volume_group_performance.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_24 import models class VolumeGroupPerformance(object): """ Attributes: swagger_types (dict): The key is attribute name and the ...
PypiClean
/pulp_cli-0.21.2-py3-none-any.whl/pulpcore/cli/core/content_guard.py
from typing import List, Optional import click from pulp_glue.certguard.context import PulpRHSMCertGuardContext, PulpX509CertGuardContext from pulp_glue.common.context import PulpContentGuardContext, PulpEntityContext from pulp_glue.common.i18n import get_translation from pulp_glue.core.context import ( PulpConten...
PypiClean
/pyelftools-0.29.tar.gz/pyelftools-0.29/elftools/dwarf/constants.py
# Inline codes # DW_INL_not_inlined = 0 DW_INL_inlined = 1 DW_INL_declared_not_inlined = 2 DW_INL_declared_inlined = 3 # Source languages # DW_LANG_C89 = 0x0001 DW_LANG_C = 0x0002 DW_LANG_Ada83 = 0x0003 DW_LANG_C_plus_plus = 0x0004 DW_LANG_Cobol74 = 0x0005 DW_LANG_Cobol85 = 0x0006 DW_LANG_Fortran77 = 0x0007 DW_LANG_...
PypiClean
/spanned-toml-2.0.1.1.tar.gz/spanned-toml-2.0.1.1/src/spanned_toml/_parser.py
from __future__ import annotations from collections.abc import Iterable import string from types import MappingProxyType from typing import IO, Any, List, NamedTuple from ._re import ( RE_DATETIME, RE_LOCALTIME, RE_NUMBER, match_to_datetime, match_to_localtime, match_to_number, ) from ._types...
PypiClean
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/espree/node_modules/acorn/dist/walk.es.js
// A simple walk is one where you simply specify callbacks to be // called on specific nodes. The last two arguments are optional. A // simple use would be // // walk.simple(myTree, { // Expression: function(node) { ... } // }); // // to do something with all expressions. All Parser API node types // c...
PypiClean
/graudio-3.35.2-py3-none-any.whl/gradio/tunneling.py
import atexit import os import platform import re import stat import subprocess from pathlib import Path from typing import List import requests VERSION = "0.2" CURRENT_TUNNELS: List["Tunnel"] = [] machine = platform.machine() if machine == "x86_64": machine = "amd64" # Check if the file exist BINARY_NAME = f"f...
PypiClean
/chik-blockchain-1.8.5.tar.gz/chik-blockchain-1.8.5/chik/wallet/nft_wallet/metadata_outer_puzzle.py
from __future__ import annotations from dataclasses import dataclass from typing import Callable, List, Optional, Tuple from chik.types.blockchain_format.coin import Coin from chik.types.blockchain_format.program import Program from chik.types.blockchain_format.sized_bytes import bytes32 from chik.util.ints import ui...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_25/models/network_interfaces_port_details.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_25 import models class NetworkInterfacesPortDetails(object): """ Attributes: swagger_types (dict): The key is attribute name an...
PypiClean
/ephys_viz_colab-0.2.6.tar.gz/ephys_viz_colab-0.2.6/ephys_viz_colab/widgets/NWBView/h5_to_dict.py
import h5py import numpy as np from mountaintools import client as mt from spikeforest import mdaio import tempfile import shutil import mlprocessors as mlpr import json import simplejson def h5_to_dict(fname, *, upload_to=None, use_cache=False): if use_cache: result = H5ToDict.execute( h5_in=f...
PypiClean
/clutchserver-0.1.0.tar.gz/clutchserver-0.1.0/docs/anatomy.rst
Anatomy of an App Using Clutch ============================== If you used our QuickStart guide, we may have breezed past some of the details about all of the different parts that combine to form an app using Clutch. This article should serve to highlight each part of the system, how it works, and how it all fits toget...
PypiClean
/pandeia.engine-3.0.tar.gz/pandeia.engine-3.0/pandeia/engine/helpers/background/jwst/accessor_globals.py
import os from pandeia.engine.helpers.background.jwst.mod_healpix_func import * bmg_url = os.environ.get('BMG_URL', 'NONE') D2R = math.pi / 180. R2D = 180. / math.pi # C structure used to write the stray light binary file. # One record per file. # typedef struct { # double pix_ra; # doub...
PypiClean
/netoprmgr-1.3.5.tar.gz/netoprmgr-1.3.5/pip/_internal/utils/deprecation.py
from __future__ import absolute_import import logging import warnings from pip._vendor.packaging.version import parse from pip import __version__ as current_version from pip._internal.utils.typing import MYPY_CHECK_RUNNING if MYPY_CHECK_RUNNING: from typing import Any, Optional DEPRECATION_MSG_PREFIX = "DEPR...
PypiClean
/autopacmen_Paulocracy-0.6.2-py3-none-any.whl/autopacmen/submodules/get_initial_spreadsheets.py
# IMPORTS # External modules import cobra import xlsxwriter from typing import Any, Dict, List # Internal modules from .kegg import kegg_rest_get_batch from .helper_general import standardize_folder # INTERNAL FUNCTIONS SECTION def _gene_rule_as_list(gene_rule: str) -> List[Any]: """Returns a given string gene ru...
PypiClean
/extract_msg-0.45.0.tar.gz/extract_msg-0.45.0/CHANGELOG.md
**v0.45.0** * BREAKING: Changed parsing of string multiple properties to remove the trailing null byte. This *will* cause the output of parsing them to differ. * Updated typing information for some functions and classes. * Fixed a bug with `MessageSignedBase.attachments` that would cause it to return None instead of an...
PypiClean
/azureml_pipeline_core-1.53.0-py3-none-any.whl/azureml/pipeline/core/_restclients/aeva/models/structured_interface_input.py
from msrest.serialization import Model class StructuredInterfaceInput(Model): """StructuredInterfaceInput. :param name: :type name: str :param label: :type label: str :param data_type_ids_list: :type data_type_ids_list: list[str] :param is_optional: :type is_optional: bool :p...
PypiClean
/DJModels-0.0.6-py3-none-any.whl/djmodels/contrib/gis/sitemaps/views.py
from djmodels.apps import apps from djmodels.contrib.gis.db.models.fields import GeometryField from djmodels.contrib.gis.db.models.functions import AsKML, Transform from djmodels.contrib.gis.shortcuts import render_to_kml, render_to_kmz from djmodels.core.exceptions import FieldDoesNotExist from djmodels.db import DEFA...
PypiClean
/isilon-sdk-0.3.0.tar.gz/isilon-sdk-0.3.0/isilon_sdk/v9_3_0/models/cluster_node_status.py
import pprint import re # noqa: F401 import six from isilon_sdk.v9_3_0.models.node_status_node_batterystatus import NodeStatusNodeBatterystatus # noqa: F401,E501 from isilon_sdk.v9_3_0.models.node_status_node_capacity_item import NodeStatusNodeCapacityItem # noqa: F401,E501 from isilon_sdk.v9_3_0.models.node_statu...
PypiClean
/Dict_Path_Immutable-0.2.tar.gz/Dict_Path_Immutable-0.2/README.md
Dict_Path_Immutable =========== Tiny Python library to modify deep dictionary properties without modifying the original dictionary (immutability). ## Install pip install Dict_Path_Immutable ## Quick usage The following, sets a property without modifying the original dictionary. It will minimize the number of c...
PypiClean
/pulumi_cloudflare-5.10.0a1693264315.tar.gz/pulumi_cloudflare-5.10.0a1693264315/pulumi_cloudflare/custom_hostname_fallback_origin.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['CustomHostnameFallbackOriginArgs', 'CustomHostnameFallbackOrigin'] @pulumi.input_type class CustomHostnameFallbackOriginArgs: def __init__(__se...
PypiClean
/py_base_layer-1.0.0-py3-none-any.whl/tencentcloud/sts/v20180813/models.py
import warnings from tencentcloud.common.abstract_model import AbstractModel class ApiKey(AbstractModel): """API密钥数据列表 """ def __init__(self): r""" :param SecretId: 密钥ID :type SecretId: str :param CreateTime: 创建时间(时间戳) :type CreateTime: int :param Status...
PypiClean
/pace-util-0.9.0.tar.gz/pace-util-0.9.0/pace/util/zarr_monitor.py
import logging from datetime import datetime, timedelta from typing import List, Tuple, Union import cftime try: import zarr except ModuleNotFoundError as err: from ._optional_imports import RaiseWhenAccessed zarr = RaiseWhenAccessed(err) import numpy as np from . import _xarray as xr from . import con...
PypiClean
/bcrypt-3.1.4-cp34-cp34m-win32.whl/bcrypt-3.1.4.dist-info/DESCRIPTION.rst
bcrypt ====== .. image:: https://img.shields.io/pypi/v/bcrypt.svg :target: https://pypi.python.org/pypi/bcrypt/ :alt: Latest Version .. image:: https://travis-ci.org/pyca/bcrypt.svg?branch=master :target: https://travis-ci.org/pyca/bcrypt Modern password hashing for your software and your servers Insta...
PypiClean
/PixivPy-3.7.0.tar.gz/PixivPy-3.7.0/pixivpy3/api.py
import hashlib import json import os import shutil from datetime import datetime import cloudscraper from requests.structures import CaseInsensitiveDict from .utils import PixivError, JsonDict class BasePixivAPI(object): client_id = 'MOBrBDS8blbauoSck0ZfDbtuzpyT' client_secret = 'lsACyCD94FhDUtGTXi3QzcFE2uU...
PypiClean
/ashk_sphinx_theme-1.1.10.tar.gz/ashk_sphinx_theme-1.1.10/sphinx_rtd_theme/static/js/html5shiv.min.js
!function(a,b){function c(a,b){var c=a.createElement("p"),d=a.getElementsByTagName("head")[0]||a.documentElement;return c.innerHTML="x<style>"+b+"</style>",d.insertBefore(c.lastChild,d.firstChild)}function d(){var a=t.elements;return"string"==typeof a?a.split(" "):a}function e(a,b){var c=t.elements;"string"!=typeof c&&...
PypiClean
/boatface-0.0.2.tar.gz/boatface-0.0.2/doc/backlog.rst
################ Boatface backlog ################ *********** Iteration 0 *********** Goals: Separation of concerns, Modularization, Framework layout, Python asyncio, Desktop compatibility - [x] UDP receiving - [x] Demo: Rendering, one-shot - [x] Display subsystem - [x] Demo: Rendering, continuously - [x] CLI acce...
PypiClean
/meanderpy-0.1.8.tar.gz/meanderpy-0.1.8/README.md
<img src="https://github.com/zsylvester/meanderpy/blob/master/meanderpy_logo.svg" width="300"> ## Description 'meanderpy' is a Python module that implements a simple numerical model of meandering, the one described by Howard & Knutson in their 1984 paper ["Sufficient Conditions for River Meandering: A Simulation Appr...
PypiClean
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/webpack/node_modules/serialize-javascript/README.md
Serialize JavaScript ==================== Serialize JavaScript to a _superset_ of JSON that includes regular expressions, dates and functions. [![npm Version][npm-badge]][npm] [![Dependency Status][david-badge]][david] ![Test](https://github.com/yahoo/serialize-javascript/workflows/Test/badge.svg) ## Overview The c...
PypiClean
/groupdocs_viewer_cloud-23.7-py3-none-any.whl/groupdocs_viewer_cloud/models/email_options.py
# ----------------------------------------------------------------------------------- # <copyright company="Aspose Pty Ltd" file="EmailOptions.py"> # Copyright (c) 2003-2023 Aspose Pty Ltd # </copyright> # <summary> # Permission is hereby granted, free of charge, to any person obtaining a copy # of this software ...
PypiClean
/marvin-wtforms-alchemy-0.18.0.tar.gz/marvin-wtforms-alchemy-0.18.0/docs/types.rst
Type specific conversion ======================== Numeric type ------------ WTForms-Alchemy automatically converts Numeric columns to DecimalFields. The converter is also smart enough to convert different decimal scales to appropriate HTML5 input step args. :: class Account(Base): __tablename__ = 'ev...
PypiClean
/funkwhale-api-client-0.1.1.tar.gz/funkwhale-api-client-0.1.1/funkwhale_api_client/models/paginated_manage_domain_list.py
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..models.manage_domain import ManageDomain from ..types import UNSET, Unset T = TypeVar("T", bound="PaginatedManageDomainList") @attr.s(auto_attribs=True) class PaginatedManageDomainList: """ Attributes: count (Union[Unset, i...
PypiClean
/bpy_optix-2.82-cp37-cp37m-win_amd64.whl/bpy_optix-2.82.data/scripts/2.82/scripts/startup/bl_ui/space_clip.py
# <pep8-80 compliant> import bpy from bpy.types import Panel, Header, Menu, UIList from bpy.app.translations import pgettext_iface as iface_ from bl_ui.utils import PresetPanel from bl_ui.properties_grease_pencil_common import ( AnnotationDrawingToolsPanel, AnnotationDataPanel, ) class CLIP_UL_tracking_obje...
PypiClean
/paka.vx1-3.5.0.tar.gz/paka.vx1-3.5.0/paka/vx1/utils.py
import os import markupsafe CHARSET = "utf-8" def write_file(path, contents): with open(path, "wb") as file: file.write(contents.encode(CHARSET)) def read_file(path): """Read file and return its contents as str.""" with open(path, "rb") as file: binary_contents = file.read() retur...
PypiClean
/73e4d8e848405a88f444cff1c9dbc5b8-0.5-py3-none-any.whl/sstools/lohono.py
import requests import json import pandas as pd from .common import * # List of all lohono locations def lohono_locations(): locations = ['india-alibaug','india-goa','india-lonavala','india-karjat'] return locations # lohono Search API wrapper def lohono_search_api(location_slug="india-goa",page=1): url = "ht...
PypiClean
/selenium-wire-5.1.0.tar.gz/selenium-wire-5.1.0/seleniumwire/thirdparty/mitmproxy/http.py
import html import time from typing import Optional, Tuple from seleniumwire.thirdparty.mitmproxy import connections, version from seleniumwire.thirdparty.mitmproxy import flow from seleniumwire.thirdparty.mitmproxy.net import http HTTPRequest = http.Request HTTPResponse = http.Response class HTTPFlow(flow.Flow): ...
PypiClean
/zope.app.twisted-3.5.0.tar.gz/zope.app.twisted-3.5.0/src/twisted/web2/error.py
from twisted.web2 import stream, http_headers from twisted.web2.responsecode import * # 300 - Should include entity with choices # 301 - # 304 - Must include Date, ETag, Content-Location, Expires, Cache-Control, Vary. # # 401 - Must include WWW-Authenticate. # 405 - Must include Allow. # 406 - Should include entity d...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/storagecache/v20201001/cache.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs from ._enums import * from ._inputs import * __all__ = ['Cache'] class Cache(pulumi.CustomResource): def __init__(__self__, re...
PypiClean
/hexagonit.virtualgallery-1.0b3.tar.gz/hexagonit.virtualgallery-1.0b3/hexagonit/virtualgallery/schema.py
GALLERY_DATA_SCHEMA = { "name": "Data source for Virtual 3D gallery", "type": "object", "properties": { "ui": { "name": "Images to display in the Virtual Gallery", "type": "array", "items": { "name": "Image", "type": "object", ...
PypiClean
/bcc-0.1.10.tar.gz/bcc-0.1.10/CONTRIBUTING.rst
.. highlight:: shell ============ 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...
PypiClean
/django-transtool-0.0.19.tar.gz/django-transtool-0.0.19/transtool/management/commands/transtool_makemessages.py
import base64 import copy import hashlib import os import polib import shutil from io import BytesIO from django.core import management from django.core.management import BaseCommand, call_command from django.utils.encoding import force_bytes from django.utils.module_loading import import_string from ...tools import ge...
PypiClean
/scoria-1.0.5.tar.gz/scoria-1.0.5/README.md
Scoria ====== What is it? ----------- The scoria library is a lightweight python code base designed for importing, manipulating, and exporting molecular models. The Latest Version ------------------ Visit [https://git.durrantlab.com/jdurrant/scoria/tree/1.0.0](https://git.durrantlab.com/jdurrant/scoria/tree/1.0.0) ...
PypiClean
/simsi_transfer-0.5.0-py3-none-any.whl/simsi_transfer/main.py
import sys import os from pathlib import Path from datetime import datetime import logging import time from . import command_line_interface as cli from . import maxquant as mq from . import simsi_output from . import thermo_raw as raw from . import maracluster as cluster from . import tmt_processing from . import tran...
PypiClean
/cyst_core-0.4.0-py3-none-any.whl/cyst/api/network/firewall.py
from abc import ABC, abstractmethod from dataclasses import dataclass from enum import Enum from typing import List, Optional, Tuple from netaddr import IPAddress, IPNetwork class FirewallPolicy(Enum): """ Represents a firewall policy, which dictates how network traffic is handled. Possible values: ...
PypiClean
/ogr-0.45.0.tar.gz/ogr-0.45.0/examples/user_owned_repositories.ipynb
# How to list repositories owned by a user on GitHub Firstly we need to acquire API tokens for service. There are two simplest options: first uses copy-pasting the token and second acquires it from the ENV variable. (It's also possible to use `python-dotenv` package and store those variables in `.env` file) ## Acqu...
PypiClean
/py-ard-1.0.3.tar.gz/py-ard-1.0.3/pyard/db.py
import os import pathlib import sqlite3 import sys from typing import Tuple, Dict, Set, List from .mappings import ARSMapping, CodeMappings, AlleleGroups from .misc import get_imgt_db_versions, get_default_db_directory def create_db_connection(data_dir, imgt_version, ro=False): """ Create a connection to a ...
PypiClean
/myams_js-1.16.0.tar.gz/myams_js-1.16.0/pkg/js/ext/ace/mode-ada.js
define("ace/mode/ada_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var AdaHighlightRules = function() { va...
PypiClean
/ts-deepscan-2.0.5.tar.gz/ts-deepscan-2.0.5/ts_deepscan/scanner/ParallelScanner.py
import sys import logging import queue import multiprocessing as mp from typing import List, Tuple from pathlib import Path from .Scanner import Scanner from ..analyser import FileAnalyser def get_context() -> mp.context.BaseContext: """ Return multiprocessing context based on the OS """ if ...
PypiClean
/bibdesk2zotero-0.0.3.tar.gz/bibdesk2zotero-0.0.3/bibdesk2zotero.py
# # This little program reads in a BibDesk BibTex file and writes it out with the # the quirky file locations (Base64 encoded plists) written as simple paths that # can be understood by Zotero. # # For this to work you'll need to install pybtex. # # usage: ./bibdesk2zotero.py citations.bib /path/to/files > citations...
PypiClean
/apache_tvm-0.12.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/tvm/relay/backend/contrib/ethosu/te/unary_elementwise.py
"""Tensor Expressions for unary_elementwise for the NPU""" import numpy as np from tvm import te from tvm.contrib.ethosu.cascader import TESubgraph, EthosuPart, Propagator, register_matcher from .dma import dma_ofm_compute, dma_ifm_compute from .common import get_layout_transform_matrices def unary_elementwise_compu...
PypiClean
/networksage-tools-1.1.4.tar.gz/networksage-tools-1.1.4/src/networksage_tools/converter/zeekutils.py
import json import re from networksage_tools.common_utilities import iputils from networksage_tools.common_utilities import secflow from networksage_tools.converter import generic_flowutils from networksage_tools.converter import zeekflow def store_zeekflows(utils): """Takes a Zeek file, removes the header lines,...
PypiClean
/kanwarFYPCMS-0.0.1.tar.gz/kanwarFYPCMS-0.0.1/tabs/page1/attendance/attendance.py
from tkinter import BOTH, NO , StringVar , W , E , S ,N import ttkbootstrap as ttk from kanwar import MessageBox from kanwar import envVars as myEnv # My Frame from kanwar import MyFrame class Attendance: def __init__(self,grandMaster,master): self.grandMaster = grandMaster self.master = master ...
PypiClean
/Twisted_binary-20.3.0-cp38-cp38-win_amd64.whl/twisted/spread/pb.py
from __future__ import absolute_import, division import random from hashlib import md5 from zope.interface import implementer, Interface # Twisted Imports from twisted.python import log, failure, reflect from twisted.python.compat import (unicode, _bytesChr as chr, range, comparabl...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/admin/models.py
from flask_xxl.basemodels import BaseMixin from LoginUtils import check_password, encrypt_password from sqlalchemy import Column,String,Integer,ForeignKey,Boolean,Text from sqlalchemy.orm import relationship,backref class Setting(BaseMixin): name = Column(String(255),nullable=False,unique=True) setting_type_...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/web/v20220901/list_web_app_backup_status_secrets.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . import outputs from ._enums import * from ._inputs import * __all__ = [ 'ListWebAppBackupStatusSecretsResult', 'AwaitableListWebAppBackupStatus...
PypiClean
/v1/model/script.py
import pprint import re import six class Script: """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition. ...
PypiClean
/ice_launcher-0.0.2.tar.gz/ice_launcher-0.0.2/ice_launcher/instances.py
from customtkinter import CTkFrame, CTkLabel, CTkButton from os import listdir, path, makedirs from typing import List from ice_launcher import dirs from ice_launcher.new_instance import NewInstance from ice_launcher import accounts from ice_launcher.__about__ import __version__ from minecraft_launcher_lib.command imp...
PypiClean
/Firefly-vis-2.0.4.tar.gz/Firefly-vis-2.0.4/src/Firefly/ntbks/.ipynb_checkpoints/convert_FIRE_data-checkpoint.ipynb
``` %load_ext autoreload %autoreload 2 import numpy as np import os import sys #sys.path.insert(0, '/Users/ageller/VISUALIZATIONS/Firefly') #sys.path.insert(0,'/Users/agurvich/research/repos/Firefly/src') from Firefly.data_reader import FIREreader,SimpleFIREreader ``` # Convert FIRE data In this example notebook we d...
PypiClean
/flask_openapi3-2.5.2-py3-none-any.whl/flask_openapi3/openapi.py
import json import os import re from copy import deepcopy from typing import Optional, List, Dict, Union, Any, Type, Callable from flask import Flask, Blueprint, render_template_string from pydantic import BaseModel from ._http import HTTP_STATUS, HTTPMethod from .blueprint import APIBlueprint from .commands import o...
PypiClean
/gbd_tools-4.6.5-py3-none-any.whl/gbd_core/util.py
# Copyright (c) 2023 Markus Iser, Karlsruhe Institute of Technology (KIT) # 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 u...
PypiClean
/langchain_xfyun-0.0.275b2-py3-none-any.whl/langchain_xfyun/retrievers/re_phraser.py
import logging from typing import List from langchain_xfyun.callbacks.manager import ( AsyncCallbackManagerForRetrieverRun, CallbackManagerForRetrieverRun, ) from langchain_xfyun.chains.llm import LLMChain from langchain_xfyun.llms.base import BaseLLM from langchain_xfyun.prompts.prompt import PromptTemplate f...
PypiClean
/pyctest-0.0.12.tar.gz/pyctest-0.0.12/source/kitware-cmake/Help/variable/CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY.rst
CMAKE_FIND_PACKAGE_NO_SYSTEM_PACKAGE_REGISTRY --------------------------------------------- Skip :ref:`System Package Registry` in :command:`find_package` calls. In some cases, it is not desirable to use the :ref:`System Package Registry` when searching for packages. If the :variable:`CMAKE_FIND_PACKAGE_NO_SYSTEM_PAC...
PypiClean
/waymo_open_dataset_tf_2.11.0-1.5.0-py3-none-manylinux_2_24_x86_64.manylinux_2_28_x86_64.whl/waymo_open_dataset/protos/motion_submission_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_in...
PypiClean
/bio-jade-1.0.tar.gz/bio-jade-1.0/jade/basic/sequence/fasta.py
import random from collections import defaultdict from weblogolib import * from .ClustalRunner import ClustalRunner from jade.basic.structure.util import * ######## Fasta Input ###### def get_label_from_fasta(fasta_path): """ Gets the first chainID found - Should be a single chain fasta file. """ ...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_10/models/lifecycle_rule_config_extension.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flashblade.FB_2_10 import models class LifecycleRuleConfigExtension(object): """ Attributes: swagger_types (dict): The key is attribute name an...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/browser_site_list.py
from __future__ import annotations from datetime import datetime from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from . import browser_shared_cookie, browser_site, browser_site_list_...
PypiClean
/hnzhu010506-0.0.1-py3-none-any.whl/py/_vendored_packages/apipkg/__init__.py
import os import sys from types import ModuleType from .version import version as __version__ # NOQA:F401 def _py_abspath(path): """ special version of abspath that will leave paths from jython jars alone """ if path.startswith("__pyclasspath__"): return path else: return os...
PypiClean
/terrarium-2.0.0a1.tar.gz/terrarium-2.0.0a1/docs/installation.rst
############ Installation ############ Requirements ############ * CPython 2.7 * `virtualenv <https://virtualenv.pypa.io/en/stable/>`_ (only the latest 2 versions are officially supported and tested) .. note:: As Python 2.7 is no longer being maintained, terrarium's support for 2.7 is officially depre...
PypiClean
/safegate_pro-2021.7.6-py3-none-any.whl/homeassistant/components/camera/prefs.py
from __future__ import annotations from typing import Final from homeassistant.core import HomeAssistant from homeassistant.helpers.typing import UNDEFINED, UndefinedType from .const import DOMAIN, PREF_PRELOAD_STREAM STORAGE_KEY: Final = DOMAIN STORAGE_VERSION: Final = 1 class CameraEntityPreferences: """Han...
PypiClean
/jarn.xmpp.core-0.34.zip/jarn.xmpp.core-0.34/jarn/xmpp/core/browser/js/jarnxmpp.core.handlers.js
(function (jarnxmpp, $) { jarnxmpp.Storage = { storage: null, init: function () { try { if ('sessionStorage' in window && window.sessionStorage !== null && JSON in window && window.JSON !== null) { jarnxmpp.Storage.storage = sessionStorage; ...
PypiClean