id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/flask-logmanager-0.2.11.tar.gz/flask-logmanager-0.2.11/flask_logmanager/swagger-ui/lib/marked.js
;(function() { /** * Block-Level Grammar */ var block = { newline: /^\n+/, code: /^( {4}[^\n]+\n*)+/, fences: noop, hr: /^( *[-*_]){3,} *(?:\n+|$)/, heading: /^ *(#{1,6}) *([^\n]+?) *#* *(?:\n+|$)/, nptable: noop, lheading: /^([^\n]+)\n *(=|-){2,} *(?:\n+|$)/, blockquote: /^( *>[^\n]+(\n(?!def)[^\n]...
PypiClean
/defichainTest-0.0.1b1-py3-none-any.whl/defichain/transactions/builder/rawtransactionbuilder.py
from defichain import Account from defichain.exceptions.transactions import TxBuilderError, NotYetSupportedError from defichain.transactions.address import Address from defichain.transactions.constants import AddressTypes from defichain.networks import Network from defichain.transactions.remotedata.remotedata import R...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_20/models/offload_google_cloud.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_20 import models class OffloadGoogleCloud(object): """ Attributes: swagger_types (dict): The key is attribute name and the valu...
PypiClean
/universal_pathlib_edge-0.0.13.tar.gz/universal_pathlib_edge-0.0.13/upath/core.py
import os import pathlib import re import urllib from abc import ABCMeta from fsspec.registry import ( get_filesystem_class, known_implementations, registry, ) from fsspec.utils import stringify_path from upath.errors import NotDirectoryError class _FSSpecAccessor: def __init__(self, parsed_url, *ar...
PypiClean
/ikaaro-0.75.0.tar.gz/ikaaro-0.75.0/resource_.py
# Import from the Standard Library from pickle import dumps from os.path import basename, dirname # Import from itools from itools.core import is_prototype, lazy from itools.csv import Property from itools.database import Resource, Metadata, register_field from itools.database import AndQuery, NotQuery, PhraseQuery f...
PypiClean
/ricsdl-3.1.3-py3-none-any.whl/examples/sync.py
# # This source code is part of the near-RT RIC (RAN Intelligent Controller) # platform project (RICP). # """ Examples how to use synchronous API functions of the Shared Data Layer (SDL). Execution of these examples requires: * Following Redis extension commands have been installed to runtime environment: - MSE...
PypiClean
/hops-petastorm-0.9.4.tar.gz/hops-petastorm-0.9.4/examples/mnist/pytorch_example.py
### # Adapted to petastorm dataset using original contents from # https://github.com/pytorch/examples/mnist/main.py . ### from __future__ import division, print_function import argparse # Must import pyarrow before torch. See: https://github.com/uber/petastorm/blob/master/docs/troubleshoot.rst import pyarrow # noqa...
PypiClean
/traktexport-0.1.4.tar.gz/traktexport-0.1.4/README.md
# traktexport [![PyPi version](https://img.shields.io/pypi/v/traktexport.svg)](https://pypi.python.org/pypi/traktexport) [![Python 3.7|3.8|3.9](https://img.shields.io/pypi/pyversions/traktexport.svg)](https://pypi.python.org/pypi/traktexport) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?sty...
PypiClean
/django-fluent-contents-3.0.tar.gz/django-fluent-contents-3.0/fluent_contents/rendering/main.py
from django.core.cache import cache from django.utils.safestring import mark_safe from fluent_contents.cache import get_placeholder_cache_key_for_parent from fluent_contents.models import ContentItemOutput, get_parent_language_code from . import markers from .core import PlaceholderRenderingPipe, RenderingPipe from ....
PypiClean
/GetOptions-1.0.3.tar.gz/GetOptions-1.0.3/README.en.md
************************************* # Get options > Gets options from the console command, Format the options and return a dict. This is similar to the way non-GNU Unix systems work. ------------------------------ ## Install: ```bash pip install GetOptions ``` ------------------------------ ## System requirement...
PypiClean
/openpeerpower_frontend-20210523.2-py3-none-any.whl/opp_frontend/frontend_es5/chunk.a6a05e49b5487d486578.js
(self.webpackChunkopenpeerpower_frontend=self.webpackChunkopenpeerpower_frontend||[]).push([[6051],{74015:function(t,e,n){"use strict";n.d(e,{j2:function(){return r},UX:function(){return i},KT:function(){return o}});var i={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DI...
PypiClean
/timemory-3.3.0rc2.tar.gz/timemory-3.3.0rc2/external/llvm-ompt/libomptarget/README.txt
README for the LLVM* OpenMP* Offloading Runtime Library (libomptarget) ====================================================================== How to Build the LLVM* OpenMP* Offloading Runtime Library (libomptarget) ======================================================================== In-tree build: $ cd w...
PypiClean
/es-fluent-0.0.5.tar.gz/es-fluent-0.0.5/docs/es_fluent.filters.rst
Filters ======= Filters typically have corresponding elasticsearch filters. ESFluent helps intelligently compose them and provides a common interface, via :func:`~es_fluent.filters.Filter.to_query` whose responsibility is to generate the corresponding elasticsearch filter dictionary. A Filter can :class:`~es_fluent.f...
PypiClean
/python-graspfile-0.4.1.tar.gz/python-graspfile-0.4.1/src/graspfile/torfile.py
from collections import OrderedDict import graspfile.torparser as torparser _debug_ = False # trick for py2/3 compatibility if 'basestring' not in globals(): basestring = str """List of acceptable GraspTorObject types""" grasp_object_types = [""] class GraspTorValue: """A container for values from GraspT...
PypiClean
/mattermost_api_reference_client-4.0.0.post1.tar.gz/mattermost_api_reference_client-4.0.0.post1/mattermost_api_reference_client/models/data_retention_policy.py
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="DataRetentionPolicy") @attr.s(auto_attribs=True) class DataRetentionPolicy: """ Attributes: display_name (Union[Unset, str]): The display name for this retention policy. ...
PypiClean
/pcalf-1.2.1.tar.gz/pcalf-1.2.1/README.md
# PCALF - Retrieve Calcyanin protein and ccyA gene from genomes. PCALF stand for Python CALcyanin Finder. Benzerara, K., Duprat, E., Bitard-Feildel, T., Caumes, G., Cassier-Chauvat, C., Chauvat, F., ... & Callebaut, I. (2022). [A new gene family diagnostic for intracellular biomineralization of amorphous Ca car...
PypiClean
/rinoh-typeface-trebuchetms-0.1.0.tar.gz/rinoh-typeface-trebuchetms-0.1.0/README.rst
========================== rinoh-typeface-trebuchetms ========================== This package provides the `Trebuchet MS`_ 1.22 typeface from Microsoft's `Core fonts for the Web`_ for use with rinohtype_. In order to comply with the EULA for these fonts, the font archive is downloaded during installation of this pack...
PypiClean
/lco-banzai-0.19.3.tar.gz/lco-banzai-0.19.3/astropy_helpers/astropy_helpers/extern/automodapi/smart_resolver.py
from docutils.nodes import literal, reference def process_docstring(app, what, name, obj, options, lines): if isinstance(obj, type): env = app.env if not hasattr(env, 'class_name_mapping'): env.class_name_mapping = {} mapping = env.class_name_mapping mapping[obj.__modul...
PypiClean
/call_recorder_api-1.0.1-py3-none-any.whl/call_recorder_api/models/device_type.py
import pprint import re # noqa: F401 import six class DeviceType(object): """NOTE: Do not edit the class manually. """ """ allowed enum values """ ANDROID = "android" IOS = "ios" MAC = "mac" WINDOWS = "windows" WEB = "web" CUSTOM = "custom" """ Attributes: ...
PypiClean
/peng-1.0.11.zip/peng-1.0.11/pypkg/term_echo.py
import os import platform import subprocess import sys ### # Functions ### def ste(command, nindent, mdir, fpointer): r""" Echo terminal output. Print STDOUT resulting from a given Bash shell command (relative to the package :code:`pypkg` directory) formatted in reStructuredText :param command:...
PypiClean
/one_interfaces-4.7.1.tar.gz/one_interfaces-4.7.1/one_interfaces/point3d_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
/elastic-apm-6.18.0.tar.gz/elastic-apm-6.18.0/elasticapm/contrib/aiohttp/middleware.py
import aiohttp from aiohttp.web import HTTPException, middleware import elasticapm from elasticapm import get_client from elasticapm.conf import constants from elasticapm.contrib.aiohttp.utils import get_data_from_request, get_data_from_response from elasticapm.utils.disttracing import TraceParent class AioHttpTrac...
PypiClean
/sealea-1.4.tar.gz/sealea-1.4/instagrapi/mixins/highlight.py
import json import random import time from pathlib import Path from typing import Dict, List from urllib.parse import urlparse from instagrapi import config from instagrapi.exceptions import HighlightNotFound from instagrapi.extractors import extract_highlight_v1 from instagrapi.types import Highlight from instagrapi....
PypiClean
/apache-beam-li-2.38.7.0.zip/apache-beam-li-2.38.7.0/apache_beam/runners/portability/portable_runner.py
# pytype: skip-file # mypy: check-untyped-defs import atexit import functools import itertools import logging import threading import time from typing import TYPE_CHECKING from typing import Any from typing import Dict from typing import Iterator from typing import Optional from typing import Tuple import grpc from...
PypiClean
/batchspawner-1.2.0.tar.gz/batchspawner-1.2.0/SPAWNERS.md
# Notes on specific spawners **Spawner maintainers**: Included below are "spawner maintainers", when available. There aren't official obligations, but the general idea is that you should watch the repository and feel especially empowered to comment on issues when you think it might be relevant to you (obviously everyo...
PypiClean
/qumulo_api-6.2.1-py3-none-any.whl/qumulo/lib/util.py
import os.path import re from contextlib import contextmanager from typing import ( Callable, cast, Dict, IO, Iterable, Iterator, List, Mapping, Optional, Sequence, Tuple, Union, ) from typing_extensions import Literal def get_bytes(byte_string: str) -> int: sym...
PypiClean
/apache_superset_iteco-2.1.1.4-py3-none-any.whl/superset/migrations/versions/2018-07-19_23-41_c617da68de7d_form_nullable.py
# revision identifiers, used by Alembic. revision = "c617da68de7d" down_revision = "18dc26817ad2" from alembic import op from sqlalchemy import Column, Integer, String, Text from sqlalchemy.ext.declarative import declarative_base from superset import db from superset.utils.core import MediumText Base = declarative_b...
PypiClean
/openpmd-beamphysics-0.8.0.tar.gz/openpmd-beamphysics-0.8.0/pmd_beamphysics/readers.py
from .units import dimension, dimension_name, SI_symbol, pg_units, c_light, e_charge from .tools import decode_attrs, decode_attr import h5py import numpy as np #----------------------------------------- # General Utilities #----------------------------------------- # Records, components, units particle_record_c...
PypiClean
/xrpl_py-2.4.0b0-py3-none-any.whl/xrpl/models/transactions/xchain_create_bridge.py
from __future__ import annotations from dataclasses import dataclass, field from typing import Dict, Optional from xrpl.models.currencies import XRP from xrpl.models.required import REQUIRED from xrpl.models.transactions.transaction import Transaction from xrpl.models.transactions.types import TransactionType from x...
PypiClean
/RegScale_CLI-5.15.0-py3-none-any.whl/regscale/integrations/commercial/gitlab.py
""" RegScale Gitlab integration""" # standard python imports import sys import os import re import click import requests import markdown from urllib.parse import urljoin from regscale.core.app.logz import create_logger from regscale.core.app.utils.app_utils import ( check_license, create_progress_object, ...
PypiClean
/nertivia.py-0.2.9-py3-none-any.whl/engineioN/asyncio_client.py
import asyncio import signal import ssl import threading import aiohttp from . import client from . import exceptions from . import packet from . import payload async_signal_handler_set = False def async_signal_handler(): """SIGINT handler. Disconnect all active async clients. """ async def _handl...
PypiClean
/odoo_addon_l10n_nl_account_tax_unece-15.0.1.0.0.2-py3-none-any.whl/odoo/addons/l10n_nl_account_tax_unece/models/res_company.py
from odoo import api, models MAPPING = { "btw_0": {"categ": "tax_categ_z"}, "btw_6": {"categ": "tax_categ_aa"}, "btw_9": {"categ": "tax_categ_aa"}, "btw_21": {"categ": "tax_categ_h"}, "btw_overig": {"categ": "tax_categ_s"}, "btw_0_d": {"categ": "tax_categ_z"}, "btw_6_d": {"categ": "tax_cat...
PypiClean
/python-pyparts-1.0.0.tar.gz/python-pyparts-1.0.0/src/pyparts/systems/temperature_controller.py
import time from pyparts.logic import pid_controller class TemperatureController(object): """A PID based temperature controller. TemperatureController uses a PID controller to regulate temperature. A temperature sensor is used to read the current temperature and a PWM based heater is used to increase the te...
PypiClean
/pointers.py-2.4.0-cp36-cp36m-macosx_10_9_x86_64.whl/pointers/base_pointers.py
import ctypes import sys import warnings import weakref from abc import ABC, abstractmethod from contextlib import suppress from typing import ( Any, Generic, Iterator, Optional, Tuple, Type, TypeVar, Union ) from typing_extensions import final from _pointers import add_ref, remove_ref from ._utils import deref,...
PypiClean
/btc-lib-0.0.2.tar.gz/btc-lib-0.0.2/README.md
btc-lib: Simple Bitcoin Library. ======================= This library is a simple python cold wallet management library for the Bitcoin network. It allows you to generate private/public keys, get Bitcoin addresses from them, create transactions, deserialize already created ones, sign them, sign messages, create multi-...
PypiClean
/intel_tensorflow-2.13.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/tensorflow/python/data/experimental/ops/io.py
"""Python API for save and loading a dataset.""" from tensorflow.python.data.ops import dataset_ops from tensorflow.python.util import deprecation from tensorflow.python.util.tf_export import tf_export COMPRESSION_GZIP = "GZIP" COMPRESSION_SNAPPY = "NONE" DATASET_SPEC_FILENAME = "dataset_spec.pb" @tf_export("data.e...
PypiClean
/crmCustomer-1.0.1-py3-none-any.whl/crmSaleOrder/operation.py
def getCode(app3): ''' 查询出表中的编码 :param app2: :return: ''' sql = "select FSALEORDERNO from RDS_CRM_SRC_sales_order where FIsDo=0 and FIsfree!=1 " res = app3.select(sql) return res def getClassfyData(app3, code): ''' 获得分类数据 :param app2: :param code: :return: ''...
PypiClean
/fusspy-2.2.1.tar.gz/fusspy-2.2.1/astropy_helpers/astropy_helpers/sphinx/ext/autodoc_enhancements.py
import inspect import sys import types from sphinx.ext.autodoc import AttributeDocumenter, ModuleDocumenter from sphinx.util.inspect import isdescriptor if sys.version_info[0] == 3: class_types = (type,) else: class_types = (type, types.ClassType) MethodDescriptorType = type(type.__subclasses__) # See # h...
PypiClean
/salt-ssh-9000.tar.gz/salt-ssh-9000/salt/modules/win_servermanager.py
import logging import salt.utils.json import salt.utils.platform import salt.utils.powershell import salt.utils.versions from salt.exceptions import CommandExecutionError try: from shlex import quote as _cmd_quote # pylint: disable=E0611 except ImportError: from pipes import quote as _cmd_quote log = loggi...
PypiClean
/sidp-CanvasSync-0.2.4.tar.gz/sidp-CanvasSync-0.2.4/CanvasSync/entities/folder.py
from __future__ import print_function # Third party from six import text_type # CanvasSync modules from CanvasSync.utilities.ANSI import ANSI from CanvasSync.entities.canvas_entity import CanvasEntity from CanvasSync.entities.file import File from CanvasSync.utilities import helpers class Folder(CanvasEntity): ...
PypiClean
/weconnect-cupra-daern-0.50.4.tar.gz/weconnect-cupra-daern-0.50.4/weconnect_cupra/api/cupra/elements/controls.py
import logging import json import requests from weconnect_cupra.addressable import AddressableObject, ChangeableAttribute from weconnect_cupra.elements.control_operation import ControlOperation from weconnect_cupra.api.cupra.elements.charging_settings import ChargingSettings from weconnect_cupra.api.cupra.elements.cli...
PypiClean
/cmip6-downscaling-0.1.11.tar.gz/cmip6-downscaling-0.1.11/cmip6_downscaling/methods/deepsd/utils.py
import fsspec import numpy as np import xarray as xr import xesmf as xe EPSILON = 1e-6 # small value to add to the denominator when normalizing to avoid division by 0 INPUT_SIZE = 51 # number of pixels in a patch example used for training deepsd model (in both lat/lon (or x/y) directions) PATCH_STRIDE = 20 # number...
PypiClean
/ZMS-5.1.0-py3-none-any.whl/Products/zms/plugins/www/ZMSRepositoryManager/manage_main_diff.js
$(function() { if ( $('.prettyTextDiff').length > 0 ) { $('#repo-changesets').prepend('<h4>Changesets</h4>'); } $(".prettyTextDiff").each(function() { var diffContainer = ".diff"; $(this).prettyTextDiff({ cleanup:true, originalContainer:".original", changedContainer:".changed", diffContai...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/contacts/contacts_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
/yowsup-celery-0.2.1.tar.gz/yowsup-celery-0.2.1/README.rst
=============================== yowsup celery =============================== CI: .. image:: https://img.shields.io/travis/jlmadurga/yowsup-celery.svg :target: https://travis-ci.org/jlmadurga/yowsup-celery .. image:: http://codecov.io/github/jlmadurga/yowsup-celery/coverage.svg?branch=master :alt: Cove...
PypiClean
/fhir_types-0.2.4-py3-none-any.whl/fhir_types/FHIR_StructureMap_Group.py
from typing import Any, List, Literal, TypedDict from .FHIR_Element import FHIR_Element from .FHIR_id import FHIR_id from .FHIR_string import FHIR_string from .FHIR_StructureMap_Input import FHIR_StructureMap_Input from .FHIR_StructureMap_Rule import FHIR_StructureMap_Rule # A Map of relationships between 2 structure...
PypiClean
/dagster_custom-0.12.14.tar.gz/dagster_custom-0.12.14/dagster/core/execution/plan/execute_step.py
from collections import defaultdict from typing import Any, Dict, Iterator, List, Optional, Set, Tuple, Union, cast from dagster import check from dagster.core.definitions import ( AssetKey, AssetMaterialization, ExpectationResult, Materialization, Output, OutputDefinition, SolidDefinition,...
PypiClean
/clowder-repo-4.0b6.tar.gz/clowder-repo-4.0b6/clowder/cli/branch.py
import argparse import clowder.util.formatting as fmt from clowder.clowder_controller import CLOWDER_CONTROLLER from clowder.config import Config from clowder.model.util import filter_projects from clowder.util.decorators import ( print_clowder_name, print_clowder_repo_status, valid_clowder_yaml_required )...
PypiClean
/eulith_web3-0.14.4.tar.gz/eulith_web3-0.14.4/src/eulith_web3/asn_dump.py
from __future__ import absolute_import, division, print_function, unicode_literals from builtins import open, bytes, str import sys import base64 import binascii import asn1 def read_pem(input_file): """ Reads PEM formatted input like private keys and public keys used for SSL/TLS encryption, and X.509/SSL c...
PypiClean
/hurm.fe-0.10.tar.gz/hurm.fe-0.10/hurm/fe/static/app/module/Activities.js
/*jsl:declare Ext*/ /*jsl:declare _*/ /*jsl:declare MP*/ /*jsl:declare HuRM*/ Ext.define('HuRM.module.Activities.Actions', { extend: 'MP.action.StoreAware', uses: [ 'Ext.Action', 'Ext.form.field.TextArea', 'MP.form.Panel', 'MP.window.Notification' ], statics: { ...
PypiClean
/TxGNN-0.0.3.tar.gz/TxGNN-0.0.3/txgnn/TxEval.py
from .utils import * class TxEval: def __init__(self, model): self.df, self.df_train, self.df_valid, self.df_test, self.data_folder, self.G, self.best_model, self.weight_bias_track, self.wandb = model.df, model.df_train, model.df_valid, model.df_test, model.data_folder, model.G, model.best_model, mode...
PypiClean
/itk_rtk-2.4.1-cp37-cp37m-macosx_10_9_x86_64.whl/itk/Configuration/RTKConfig.py
depends = ('ITKPyBase', 'ITKSmoothing', 'ITKRegistrationCommon', 'ITKOptimizers', 'ITKImageNoise', 'ITKIOTIFF', 'ITKIORAW', 'ITKIOMeta', 'ITKIOGDCM', 'ITKFFT', 'ITKConvolution', 'ITKCommon', 'ITKBridgeNumPy', ) templates = ( ('FixedArray', 'itk::FixedArray', 'itkFixedArrayi2', False, 'int, 2'), ('Vector', 'itk::Vect...
PypiClean
/HISpectralModel-0.1.0.tar.gz/HISpectralModel-0.1.0/hispectrum/hiutils/fitsWcs.py
# Name: fitsWcs # # Author: Ian Stewart # # TODO: # # vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv # Copyright (C) 2014 Ian M Stewart # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public Licen...
PypiClean
/tableschema-bigquery-1.0.1.tar.gz/tableschema-bigquery-1.0.1/tableschema_bigquery/storage.py
from __future__ import division from __future__ import print_function from __future__ import absolute_import from __future__ import unicode_literals import io import six import time import unicodecsv import tableschema from apiclient.http import MediaIoBaseUpload from .mapper import Mapper # Module API class Storag...
PypiClean
/git-deps-1.1.0.zip/git-deps-1.1.0/git_deps/html/node_modules/which-typed-array/README.md
# which-typed-array <sup>[![Version Badge][2]][1]</sup> [![Build Status][3]][4] [![dependency status][5]][6] [![dev dependency status][7]][8] [![License][license-image]][license-url] [![Downloads][downloads-image]][downloads-url] [![npm badge][11]][1] Which kind of Typed Array is this JavaScript value? Works cross-r...
PypiClean
/microcosm-pubsub-2.28.0.tar.gz/microcosm-pubsub-2.28.0/microcosm_pubsub/result.py
from dataclasses import dataclass, field from enum import Enum, unique from logging import DEBUG, INFO, WARNING from sys import exc_info from typing import ( Any, Dict, Optional, Tuple, ) from microcosm.opaque import Opaque from microcosm_pubsub.errors import ( IgnoreMessage, Nack, SkipMes...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/v20150501preview/get_security_rule.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables __all__ = [ 'GetSecurityRuleResult', 'AwaitableGetSecurityRuleResult', 'get_security_rule', ] @pulumi.output_type class GetSecurityRuleResult: """ Net...
PypiClean
/django-treeadmin-fork-alt-storage-0.5.tar.gz/django-treeadmin-fork-alt-storage-0.5/docs/index.rst
django-treeadmin ================ django-treeadmin is a complement to models that are `django-mptt`_-enabled. It provides a drag-&-drop interface to modify the tree. It was originally developed as part of `FeinCMS`_. They deserve all the kudos for this. .. _django-mptt: https://github.com/django-mptt/django-mptt .. ...
PypiClean
/deepvision-toolkit-0.1.6.tar.gz/deepvision-toolkit-0.1.6/deepvision/evaluation/feature_analysis.py
import matplotlib.pyplot as plt import tensorflow as tf import torch from mpl_toolkits.mplot3d import Axes3D from sklearn.decomposition import PCA from sklearn.manifold import TSNE class FeatureAnalyzer: def __init__( self, model, dataset, backend, classnames=None, ...
PypiClean
/guacamole-0.9.2.tar.gz/guacamole-0.9.2/docs/usage/concepts.rst
.. _bundled_ingredients: Recipes, Ingredients and Spices =============================== Guacamole is a framework for creating command line applications. To understand how to use it, you need to know about the three concepts (recipes, ingredients and spices). They define how guacamole works (tastes) and they are how ...
PypiClean
/pytest-pingguo-pytest-plugin-0.1.0.tar.gz/pytest-pingguo-pytest-plugin-0.1.0/README.rst
============================ pytest-pingguo-pytest-plugin ============================ .. image:: https://img.shields.io/pypi/v/pytest-pingguo-pytest-plugin.svg :target: https://pypi.org/project/pytest-pingguo-pytest-plugin :alt: PyPI version .. image:: https://img.shields.io/pypi/pyversions/pytest-pingguo-py...
PypiClean
/hawks-0.1.0.tar.gz/hawks-0.1.0/README.md
# HAWKS Data Generator ![HAWKS Animation](examples/hawks_animation.gif) HAWKS is a tool for generating controllably difficult synthetic data, used primarily for clustering. This repo is associated with the following paper: 1. Shand, C, Allmendinger, R, Handl, J, Webb, A & Keane, J 2019, Evolving Controllably Difficu...
PypiClean
/termage-0.6.0.tar.gz/termage-0.6.0/site/assets/javascripts/lunr/min/lunr.es.min.js
* based on * Snowball JavaScript Library v0.3 * http://code.google.com/p/urim/ * http://snowball.tartarus.org/ * * Copyright 2010, Oleg Mazko * http://www.mozilla.org/MPL/ */ !function(e,s){"function"==typeof define&&define.amd?define(s):"object"==typeof exports?module.exports=s():s()(e.lunr)}(this,function(){...
PypiClean
/yt-dlp-custom-0.0.1.tar.gz/yt-dlp-custom-0.0.1/yt_dlp/extractor/gronkh.py
import functools from .common import InfoExtractor from ..utils import ( OnDemandPagedList, float_or_none, traverse_obj, unified_strdate, ) class GronkhIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?gronkh\.tv/(?:watch/)?streams?/(?P<id>\d+)' _TESTS = [{ 'url': 'https://gronkh....
PypiClean
/manic_xai-1.0.83-py3-none-any.whl/manic/Utility.py
import decimal import seaborn as sns import matplotlib.pyplot as plt import numpy as np class Utility: """ Utility class for formatting counterfactuals, checking their validity, printing results, and computing the disagreement matrix. @param data_instance: The instance to be explained. @type data_inst...
PypiClean
/pulumi_artifactory-4.6.0a1693459609.tar.gz/pulumi_artifactory-4.6.0a1693459609/pulumi_artifactory/proxy.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities __all__ = ['ProxyArgs', 'Proxy'] @pulumi.input_type class ProxyArgs: def __init__(__self__, *, host: pulumi.Input[str], k...
PypiClean
/ipodshuffle-0.4.1-py3-none-any.whl/teresa/show.py
import os import pprint from ipodshuffle.db import Shuffle as ShuffleDB L1 = '=' * 80 L2 = '-' * 50 def show(args): base = args.base _ctrl = 'iPod_Control' _itunessd_chunk = open(base + '/' + _ctrl + '/iTunes/iTunesSD', 'rb').read() _itunesstats_chunk = None _itunesstats_path = base + '/' + _...
PypiClean
/xerparser-0.10.3.tar.gz/xerparser-0.10.3/README.md
# xerparser Read the contents of a P6 .xer file and convert it into a Python object. *Disclaimers: It's helpfull if you are already familiar with the mapping and schemas used by P6 during the export process. Refer to the [Oracle Documentation]( https://docs.oracle.com/cd/F25600_01/English/Mapping_and_Schema/xer_i...
PypiClean
/tencentcloud-sdk-python-intl-en-3.0.786.tar.gz/tencentcloud-sdk-python-intl-en-3.0.786/tencentcloud/trtc/v20190722/errorcodes.py
# CAM signature/authentication error. AUTHFAILURE = 'AuthFailure' # Identity verification has not been completed, so this operation is not allowed. AUTHFAILURE_UNREALNAMEAUTHENTICATED = 'AuthFailure.UnRealNameAuthenticated' # CAM authentication failed. AUTHFAILURE_UNAUTHORIZEDOPERATION = 'AuthFailure.UnauthorizedOp...
PypiClean
/testeCryptoguardian-0.0.1.tar.gz/testeCryptoguardian-0.0.1/README.md
# CryptoGuardian CryptoGuardian é um pacote Python que fornece uma ferramenta simples e poderosa de criptografia e descriptografia de arquivos. Ele permite que você proteja seus arquivos confidenciais com criptografia forte usando a biblioteca de criptografia Fernet, ao mesmo tempo em que fornece uma interface gráfica...
PypiClean
/w-0.11.1.tar.gz/w-0.11.1/wallace/nodes.py
from wallace.models import Node, Info from wallace.information import State from sqlalchemy import Integer from sqlalchemy.ext.hybrid import hybrid_property from sqlalchemy.sql.expression import cast from operator import attrgetter import random class Agent(Node): """A Node with fitness.""" __mapper_args__ ...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/securityinsights/v20200101/incident.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__ = ['Incident'] class Incident(pulumi.CustomResource): def __init__(__self__, ...
PypiClean
/pascalvoc_to_image-1.0.0.tar.gz/pascalvoc_to_image-1.0.0/pascalvoc_to_image/__init__.py
import argparse import os import xml.etree.ElementTree as ET import time from tqdm import tqdm from PIL import Image # Main entry function to start the program def main(): parser = argparse.ArgumentParser() parser.add_argument('pascalDirectory', metavar='pascalDirectory', type=str, help='A path to the director...
PypiClean
/django-asyncviews-0.1.0.tar.gz/django-asyncviews-0.1.0/README.md
Django AsyncViews ================= ![Build](https://git.steadman.io/podiant/django-asyncviews/badges/master/build.svg) ![Coverage](https://git.steadman.io/podiant/django-asyncviews/badges/master/coverage.svg) Asynchronous JSON/HTML view library ## Quickstart Install Django AsyncViews: ```sh pip install django-asy...
PypiClean
/codex_africanus-0.3.4-py3-none-any.whl/africanus/rime/fast_beam_cubes.py
from functools import reduce import numpy as np from africanus.util.docs import DocstringTemplate from africanus.util.numba import njit @njit(nogil=True, cache=True) def freq_grid_interp(frequency, beam_freq_map): # Interpolated grid coordinate beam_nud = beam_freq_map.shape[0] freq_data = np.empty((fre...
PypiClean
/local_llama_index-0.5.11.tar.gz/local_llama_index-0.5.11/local_llama_index/prompts/prompts.py
from typing import List from local_llama_index.prompts.base import Prompt from local_llama_index.prompts.prompt_type import PromptType class SummaryPrompt(Prompt): """Summary prompt. Prompt to summarize the provided `context_str`. Required template variables: `context_str` Args: template (...
PypiClean
/python-ffmpeg-2.0.4.tar.gz/python-ffmpeg-2.0.4/README.md
# python-ffmpeg A python binding for FFmpeg which provides sync and async APIs ## Help See [documentation](https://python-ffmpeg.readthedocs.io) for more details. ## Install To install **python-ffmpeg**, simply use pip: ```console $ pip install python-ffmpeg ``` ## Examples You can find more examples in [the docume...
PypiClean
/plone.patternslib-1.3.0-py3-none-any.whl/plone/patternslib/static/components/patternslib/docs/developer/create-a-pattern.md
# How to create a new pattern This document provides a quick tutorial on how to create a new Patternslib pattern. Patterns are implemented as javascript objects that are registered with the Patternslib library. ## Creating a colorchanger pattern In this tutorial we will create a new pattern called pat-colorchanger. ...
PypiClean
/imu4gopigo3ros-0.4-py3-none-any.whl/rosBNO055.py
from __future__ import print_function from __future__ import division import di_i2c import time # Constants # I2C addresses ADDRESS_A = 0x28 ADDRESS_B = 0x29 ID = 0xA0 # Page id register definition REG_PAGE_ID = 0x07 # PAGE0 REGISTER DE...
PypiClean
/z3c.pt-4.0.tar.gz/z3c.pt-4.0/README.rst
======== z3c.pt ======== .. image:: https://img.shields.io/pypi/v/z3c.pt.svg :target: https://pypi.python.org/pypi/z3c.pt/ :alt: Latest release .. image:: https://img.shields.io/pypi/pyversions/z3c.pt.svg :target: https://pypi.org/project/z3c.pt/ :alt: Supported Python versions .. im...
PypiClean
/tensorflow_intel-2.14.0rc0-cp39-cp39-win_amd64.whl/tensorflow/python/ops/logging_ops.py
"""Logging and Summary Operations.""" # pylint: disable=protected-access import collections as py_collections import os import pprint import random import sys from absl import logging from tensorflow.python import pywrap_tfe from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops fr...
PypiClean
/scrapy_coco-0.1.1-py3-none-any.whl/coco/pagination/interface.py
import logging from typing import Dict from urllib.parse import ParseResult from urllib.parse import urlparse as parse_url from coco.exceptions import (NextPageNotFoundError, PaginationPageThresholdReached) LOG = logging.getLogger('coco') class BasePagination: __slots__ = ('_page', ...
PypiClean
/jupedsim-0.10.0-cp310-cp310-manylinux_2_27_x86_64.manylinux_2_28_x86_64.whl/jupedsim_visualizer/main_window.py
import math from pathlib import Path from jupedsim_visualizer.geometry import Geometry from jupedsim_visualizer.replay_widget import ReplayWidget from jupedsim_visualizer.trajectory import Trajectory from jupedsim_visualizer.view_geometry_widget import ViewGeometryWidget from PySide6.QtCore import QSettings, QSize fro...
PypiClean
/django_bkendoz-1.0.7-py3-none-any.whl/django_bkendoz/serializers.py
from rest_framework import serializers from rest_framework.validators import UniqueTogetherValidator from django.contrib.auth import get_user_model from .core import get_global_history_model class GenericSerializer(serializers.ModelSerializer): class Meta: model = None fields = "__all__" d...
PypiClean
/gphoto2-2.3.2.tar.gz/gphoto2-2.3.2/src/swig-gp2.5.28/widget.py
from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2, 7, 0): raise RuntimeError("Python 2.7 or later required") import gphoto2.abilities_list import gphoto2.camera import gphoto2.context import gphoto2.file import gphoto2.filesys import gphoto2.list import gphoto2.port_info_...
PypiClean
/nipype-1.8.6.tar.gz/nipype-1.8.6/doc/devel/index.rst
.. _developers-guide-index: ================= Developer Guide ================= :Release: |version| :Date: |today| Since nipype is part of the NIPY_ project, we follow the same conventions documented in the `NIPY Developers Guide <http://nipy.org/devel>`_. For bleeding-edge version help see `Nightly documentation <...
PypiClean
/trucks-and-drones-0.0.6.tar.gz/trucks-and-drones-0.0.6/trucks_and_drones/simulation/auto_agent.py
import numpy as np class BaseAutoAgent: def __init__(self, temp_db): self.temp_db = temp_db def find_destination(self): if (np.sum(self.temp_db.status_dict['v_stuck']) != 0 and bool(self.temp_db.constants_dict['v_is_truck'][self.temp_db.cur_v_index]) ): ...
PypiClean
/nornir_nautobot-2.6.0-py3-none-any.whl/nornir_nautobot/plugins/processors/__init__.py
import logging from nornir.core.inventory import Host from nornir.core.task import AggregatedResult, MultiResult, Task LOGGER = logging.getLogger(__name__) class BaseProcessor: """Base Processor for nornir.""" task_name = "'no task defined'" def task_started(self, task: Task) -> None: """Boile...
PypiClean
/FlexGet-3.9.6-py3-none-any.whl/flexget/components/sites/sites/frenchtorrentdb.py
import re from loguru import logger from flexget import plugin from flexget.components.sites.urlrewriting import UrlRewritingError from flexget.event import event from flexget.utils.soup import get_soup logger = logger.bind(name='FTDB') class UrlRewriteFTDB: """FTDB RSS url_rewrite""" def url_rewritable(s...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/permission_grants/item/get_member_objects/get_member_objects_post_request_body.py
from __future__ import annotations from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union class GetMemberObjectsPostRequestBody(AdditionalDataHolder, Parsable): def __init__(self,) -> N...
PypiClean
/uniohomeassistant-0.1.3.tar.gz/uniohomeassistant-0.1.3/homeassistant/components/digitalloggers/switch.py
from datetime import timedelta import logging import dlipower import voluptuous as vol from homeassistant.components.switch import PLATFORM_SCHEMA, SwitchEntity from homeassistant.const import ( CONF_HOST, CONF_NAME, CONF_PASSWORD, CONF_TIMEOUT, CONF_USERNAME, ) import homeassistant.helpers.config...
PypiClean
/anticp2-1.1.tar.gz/anticp2-1.1/README.md
# Anticp2: Prediction, Design and scan of anticancer prptides AntiCP 2.0 is an updated version of AntiCP, developed to predict and design anticancer peptides with high accuracy. This study utilize largest possible dataset of anticancer and non-anticancer peptides. Main dataset consists of experimentally validated 861 a...
PypiClean
/feature_selection_fdr-0.1.tar.gz/feature_selection_fdr-0.1/feature_selection_fdr/knockoff_features_construction.py
import numpy as np import pandas as pd import utils from sklearn.preprocessing import scale import warnings # ["ASDP", "selfblocks", 50, 50] class Knockoff(object): def __init__(self, X, selection_method, optimization, SDP_use=False, cholesky=False, **kwargs): """ Creates knockoff features only; It does not se...
PypiClean
/pysit-0.5b3.zip/pysit-0.5b3/docs/exercises/part_3.rst
***************************************** Part 3: The Linear Problem and Validation ***************************************** In this exercise you will solve the *linear* forward modeling equations and verify that the adjoint conditions hold for your code. The definition of the adjoint of a linear operator states that...
PypiClean
/aws_service_catalog_puppet-0.242.0.tar.gz/aws_service_catalog_puppet-0.242.0/servicecatalog_puppet/workflow/workspaces/terminate_workspace_task.py
import io import zipfile import luigi from servicecatalog_puppet import constants, serialisation_utils from servicecatalog_puppet.workflow.dependencies import tasks class TerminateWorkspaceTask(tasks.TaskWithParameters): workspace_name = luigi.Parameter() region = luigi.Parameter() account_id = luigi.P...
PypiClean
/Products.Marshall-2.4.1.tar.gz/Products.Marshall-2.4.1/Products/Marshall/doc/README.txt
======== Marshall ======== Installation ------------ Installing is as simple as clicking a button. However, by default only the ``marshaller_tool`` is installed. After that, you need to add some ``marshaller predicates`` by yourself. You can do that through the ZMI. The interface should be verbose enough to tell you ...
PypiClean
/pyjx-html5-0.1.0.tar.gz/pyjx-html5-0.1.0/pyjswidgets/pyjamas/ui/Panel.py
from pyjamas import Factory from pyjamas import DOM from pyjamas.ui.Widget import Widget class PanelBase(object): def clear(self): """ use this method, due to list changing as it's being iterated. also, it's possible to use this method even """ children = [] for child ...
PypiClean
/actingweb-2.6.5.tar.gz/actingweb-2.6.5/LICENSE.rst
License ======= Copyright -2016 Cisco Systems Inc Copyright 2017, 2018 Greger Teigre Wedel Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/calendar/calendar_view/item/instances/item/attachments/item/attachment_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
/lisa-plugin-Wifiledlamps-1.2.2.tar.gz/lisa-plugin-Wifiledlamps-1.2.2/lisa/plugins/Wifiledlamps/web/api.py
from tastypie import authorization from django.conf.urls import patterns, url, include from tastypie import resources from tastypie.utils import trailing_slash import json from lisa.server.web.weblisa.api.mixins import CustomApiKeyAuthentication from tastypie.authentication import MultiAuthentication, SessionAuthentica...
PypiClean