id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/django-short-text-field-0.2-0.2.tar.gz/django-short-text-field-0.2-0.2/README.md
# Short Text Field for Django A very simple Django app that adds a `ShortTextField` model field class, which is treated like a `TextField` in the database (i.e. the data is stored in the database with the `text` rather than the `varchar` type, and the developer does not need to specify a `max_length`), but like a `Cha...
PypiClean
/dynamics/basic/linear_dynamics_base.py
import numpy as np from warnings import warn from .dynamics_base import DynamicsBase class LinearDynamicsBase(DynamicsBase): """Base class for all linear dynamics models. Child classes should define their own get_state_mat function and set the state names class variable. The remainder of the functions au...
PypiClean
/faerun_notebook-0.1.6b0.tar.gz/faerun_notebook-0.1.6b0/faerun_notebook/labextension/static/690.0db0c4e193624b2b0ea6.js
(self.webpackChunkfaerun_notebook=self.webpackChunkfaerun_notebook||[]).push([[690],{2614:(e,t,n)=>{var r=n(1337),o=n(5431),i=n(6726),s=n(3666);function a(e,t){const n=e.lightness();return e.lightness(n+t)}function l(e,t){const n=e.lightness();return e.lightness(n-t)}n(5524);var d=r.DOMWidgetModel.extend({defaults:o.ex...
PypiClean
/fastapi_hive-1.0.8-py3-none-any.whl/fastapi_hive/ioc_framework/module_container/implement.py
import importlib import os from loguru import logger # import sys # from .module_path import ModulePath from fastapi_hive.ioc_framework.module_abstraction import Module class ModuleContainer: def __init__(self): self._modules = {} self._module_package_paths = set([]) @property def modules...
PypiClean
/oide-slurm-assist-0.7.3.tar.gz/oide-slurm-assist-0.7.3/oideslurm/static/bower_components/angular-schema-form-bootstrap/bootstrap-decorator.js
angular.module("schemaForm").run(["$templateCache", function($templateCache) {$templateCache.put("decorators/bootstrap/actions-trcl.html","<div class=\"btn-group schema-form-actions {{form.htmlClass}}\" ng-transclude=\"\"></div>"); $templateCache.put("decorators/bootstrap/actions.html","<div class=\"btn-group schema-fo...
PypiClean
/icpp_pro-3.1.1-py3-none-any.whl/icpp/config_default.py
import sys import platform from pathlib import Path import getpass import icpp_candid # pylint: disable = unused-import from icpp import __version_wasi_sdk__ # The OS we're running on - https://stackoverflow.com/a/1857/5480536 OS_SYSTEM = platform.system() OS_PROCESSOR = platform.processor() ######################...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_5/api/policies___nfs_api.py
from __future__ import absolute_import import re # python 2 and python 3 compatibility library import six from typing import List, Optional from .. import models class PoliciesNFSApi(object): def __init__(self, api_client): self.api_client = api_client def api25_nfs_export_policies_delete_with_htt...
PypiClean
/pbxplore-1.4.0.tar.gz/pbxplore-1.4.0/doc/build/html/_static/js/modernizr.min.js
;window.Modernizr=function(a,b,c){function D(a){j.cssText=a}function E(a,b){return D(n.join(a+";")+(b||""))}function F(a,b){return typeof a===b}function G(a,b){return!!~(""+a).indexOf(b)}function H(a,b){for(var d in a){var e=a[d];if(!G(e,"-")&&j[e]!==c)return b=="pfx"?e:!0}return!1}function I(a,b,d){for(var e in a){var...
PypiClean
/cloudproof_ecies-0.1.2-cp37-abi3-win_amd64.whl/cloudproof_ecies-0.1.2.dist-info/license_files/LICENSE.md
The library is made available under two different licenses depending on how you plan to use it. # Open Source License The library is made available under an Affero GPLv3 license for open-source, academic, technology evaluation, and personal projects. A copy of this license is available below. # Commercial License A...
PypiClean
/sparkfun-circuitpython-qwiickeypad-1.0.4.tar.gz/sparkfun-circuitpython-qwiickeypad-1.0.4/examples/example3_change_i2c_address.py
# This is example is for the SparkFun Qwiic Keypad. # SparkFun sells these at its website: www.sparkfun.com # Do you like this library? Help support SparkFun. Buy a board! # https://www.sparkfun.com/products/15290 """ Qwiic Keypad Example 3 - example3_change_i2c_address.py Written by Gaston Williams, July 1st...
PypiClean
/grpc-micorservice-discover-0.0.3.tar.gz/grpc-micorservice-discover-0.0.3/grpc_microservice/example/reg_zk/room_proto/room_server_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 # @@p...
PypiClean
/rmnd_lca-0.1.6-py3-none-any.whl/rmnd_lca/electricity.py
import os from . import DATA_DIR from .activity_maps import InventorySet from .geomap import Geomap from wurst import searching as ws from wurst.ecoinvent import filters import csv import numpy as np import uuid import wurst from datetime import date PRODUCTION_PER_TECH = ( DATA_DIR / "electricity" / "electricity_...
PypiClean
/unimatrix.ext.octet-0.5.3.tar.gz/unimatrix.ext.octet-0.5.3/unimatrix/ext/octet/lib/backends/gcs.py
import os import tempfile import aiohttp import gcloud.aio.storage from aiofile import AIOFile from aiofile import Reader from google.cloud import storage from .base import BaseStorageBackend from .base import RemoteStorageBackendMixin class StorageBackend(RemoteStorageBackendMixin, BaseStorageBackend): """A s...
PypiClean
/echarts-china-counties-pypkg-0.0.2.tar.gz/echarts-china-counties-pypkg-0.0.2/echarts_china_counties_pypkg/resources/echarts-china-counties-js/ac011e908c123b6d4a948fb82035df8f.js
(function (root, factory) {if (typeof define === 'function' && define.amd) {define(['exports', 'echarts'], factory);} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {factory(exports, require('echarts'));} else {factory({}, root.echarts);}}(this, function (exports, echarts) {var log = func...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/codestar-notifications/list-tags-for-resource.rst
**To get a list of tags attached to a notification rule** The following ``list-tags-for-resource`` example retrieves a list of all tags attached to the specified notification rule. In this example, the notification rule currently has no tags associated with it. :: aws codestar-notifications list-tags-for-resource...
PypiClean
/zipline_crypto-0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/zipline/algorithm.py
from collections.abc import Iterable from collections import namedtuple from copy import copy import warnings from datetime import tzinfo, time import logbook import pytz import pandas as pd import numpy as np from itertools import chain, repeat from zipline.utils.calendar_utils import get_calendar, days_at_time fro...
PypiClean
/monk_pytorch_cuda90_test1-0.0.1.tar.gz/monk_pytorch_cuda90_test1-0.0.1/monk/pytorch/models/common.py
from monk.pytorch.models.imports import * from monk.system.imports import * from monk.pytorch.models.layers import get_layer @accepts("self", bool, post_trace=False) #@TraceFunction(trace_args=False, trace_rv=False) def set_parameter_requires_grad(finetune_net, freeze_base_network): ''' Freeze based network a...
PypiClean
/bipedal_skills-2.0-py3-none-any.whl/bisk/features/joints.py
import logging import re from typing import List, Set import gym import numpy as np from bisk.features.base import Featurizer class JointsFeaturizer(Featurizer): ''' Featurizes joint observations (qpos, qvel) as well as contact forces (clipped to [-1,1]). ''' def __init__( self, p: 'dm...
PypiClean
/deepNets-0.1.8.tar.gz/deepNets-0.1.8/.eggs/py-1.10.0-py3.8.egg/py/_io/saferepr.py
import py import sys builtin_repr = repr reprlib = py.builtin._tryimport('repr', 'reprlib') class SafeRepr(reprlib.Repr): """ subclass of repr.Repr that limits the resulting size of repr() and includes information on exceptions raised during the call. """ def repr(self, x): return self._c...
PypiClean
/graphite-datasets-1.0.5.tar.gz/graphite-datasets-1.0.5/tensorflow_datasets/image_classification/visual_domain_decathlon.py
import json import os import tensorflow as tf import tensorflow_datasets.public_api as tfds _DESCRIPTION = """\ This contains the 10 datasets used in the Visual Domain Decathlon, part of the PASCAL in Detail Workshop Challenge (CVPR 2017). The goal of this challenge is to solve simultaneously ten image classification...
PypiClean
/nni_yds-0.3.7-py3-none-any.whl/nni_yds-0.3.7.data/data/nni/node_modules/moment/src/locale/ta.js
import moment from '../moment'; var symbolMap = { '1': '௧', '2': '௨', '3': '௩', '4': '௪', '5': '௫', '6': '௬', '7': '௭', '8': '௮', '9': '௯', '0': '௦' }, numberMap = { '௧': '1', '௨': '2', '௩': '3', '௪': '4', '௫': '5', '௬': '6', '௭': '7', '௮': '8', ...
PypiClean
/olymp-0.0.1b0-py3-none-any.whl/olympus/datasets/dataset.py
import json from pandas import DataFrame, read_csv import numpy as np from olympus import Logger from olympus.campaigns import ParameterSpace from olympus.objects import Parameter import os from glob import glob # ========================= # Main Class of This Module # ========================= class Dataset: ...
PypiClean
/Flask-Diced-0.3.tar.gz/Flask-Diced-0.3/flask_diced.py
"""Flask-Diced - CRUD views generator for Flask""" from flask import flash, redirect, render_template, url_for __version__ = '0.3' __all__ = [ 'Detail', 'Index', 'Create', 'Edit', 'Delete', 'Base', 'Diced', 'persistence_methods', ] def apply_decorators(func, decorators): for decorator in reversed(...
PypiClean
/honeybee-energy-standards-2.2.6.tar.gz/honeybee-energy-standards-2.2.6/standards_update/_lib/materials.py
from honeybee_energy.material.opaque import EnergyMaterial, EnergyMaterialNoMass from honeybee_energy.material.glazing import EnergyWindowMaterialGlazing, \ EnergyWindowMaterialSimpleGlazSys from honeybee_energy.material.gas import EnergyWindowMaterialGas from honeybee_energy.lib.materials import _opaque_materials,...
PypiClean
/text_selector-2.3.0.tar.gz/text_selector-2.3.0/text_selector/widget.py
import ipywidgets as widgets from traitlets import HasTraits, Unicode, List, Int, Any, observe, Bool @widgets.register class Widget(widgets.DOMWidget, HasTraits): """Jupyter widget for selecting part of txt and assingning it on of tags. Attributes: widget_id (int): ID of widgets instance. tag...
PypiClean
/shuup-1.6.0.tar.gz/shuup-1.6.0/doc/api/shuup.admin.modules.settings.forms.rst
shuup.admin.modules.settings.forms package ========================================== Submodules ---------- shuup.admin.modules.settings.forms.columns module ------------------------------------------------- .. automodule:: shuup.admin.modules.settings.forms.columns :members: :undoc-members: :show-inheri...
PypiClean
/OctoPrint-1.9.2.tar.gz/OctoPrint-1.9.2/src/octoprint/schema/config/access_control.py
__license__ = "GNU Affero General Public License http://www.gnu.org/licenses/agpl.html" __copyright__ = "Copyright (C) 2022 The OctoPrint Project - Released under terms of the AGPLv3 License" from typing import List, Optional from octoprint.schema import BaseModel from octoprint.vendor.with_attrs_docs import with_att...
PypiClean
/superset_extender-1.0.0-py3-none-any.whl/supextend/static/css/bootstrap-iconpicker-1.10.0/src/js/iconset/iconset-glyphicon-all.js
;(function($){ var data = { iconClass: 'glyphicon', iconClassFix: 'glyphicon-', icons: [], allVersions: [ { version: '3.3.7', icons: [ '', 'adjust', 'align-center', ...
PypiClean
/kde-material-you-colors-1.6.0b2.tar.gz/kde-material-you-colors-1.6.0b2/src/kde_material_you_colors/utils/extra_image_utils.py
from material_color_utilities_python.quantize.quantizer_celebi import * from material_color_utilities_python.score.score import * from material_color_utilities_python.utils.color_utils import * import logging # /** # * Get the source color from an image. # * # * @param image The image element # * @param top wether...
PypiClean
/fqe-0.3.0.tar.gz/fqe-0.3.0/README.md
# OpenFermion-FQE The Fermionic Quantum Emulator (FQE) is a light weight fermionic circuit simulator. The emulator uses number and projected spin quantum numbers to reduce the cost of simulating state evolutions under fermionic generators. ![Python package](https://github.com/quantumlib/OpenFermion-FQE/workflows/P...
PypiClean
/gatey_sdk-0.0.10.tar.gz/gatey_sdk-0.0.10/gatey_sdk/api.py
from typing import Optional, Dict, Any import requests from gatey_sdk.auth import Auth from gatey_sdk.response import Response from gatey_sdk.exceptions import GateyApiError, GateyApiAuthError, GateyApiResponseError from gatey_sdk.utils import remove_trailing_slash from gatey_sdk.consts import ( API_DEFAULT_SERVE...
PypiClean
/classicML-python-0.9.tar.gz/classicML-python-0.9/classicML/backend/training.py
from classicML import CLASSICML_LOGGER from classicML.backend import initializers from classicML.backend import kernels from classicML.backend import losses from classicML.backend import optimizers from classicML.backend import metrics from classicML.backend.python import tree def get_criterion(criterion): """获取使...
PypiClean
/fastly-3.0.0.tar.gz/fastly-3.0.0/docs/WafActiveRulesResponse.md
# WafActiveRulesResponse ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **links** | [**PaginationLinks**](PaginationLinks.md) | | [optional] **meta** | [**PaginationMeta**](PaginationMeta.md) | | [optional] **data** | [**[WafActiveRuleResponseData]**](...
PypiClean
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/caniuse-lite/data/regions/TV.js
module.exports={D:{"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0.055788,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":1.822408...
PypiClean
/poppycdn-1.0.13.tar.gz/poppycdn-1.0.13/poppy/distributed_task/taskflow/task/purge_service_tasks.py
import json from oslo_config import cfg from oslo_log import log from taskflow import task from poppy.distributed_task.utils import memoized_controllers from poppy.transport.pecan.models.request import ( provider_details as req_provider_details) from poppy.transport.pecan.models.request import service LOG = lo...
PypiClean
/iocbio.gel-1.0.1.tar.gz/iocbio.gel-1.0.1/iocbio/gel/gui/contexts/projects.py
from typing import Callable from PySide6.QtCore import Slot, QItemSelectionModel from PySide6.QtGui import QShowEvent, QAction, QHideEvent from PySide6.QtWidgets import ( QVBoxLayout, QWidget, QToolBar, QAbstractItemView, QHeaderView, ) from iocbio.gel.application.application_state.mode import A...
PypiClean
/v2/model/restore_instance_body.py
import pprint import re import six class RestoreInstanceBody: """ 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...
PypiClean
/zope.html-2.4.2.zip/zope.html-2.4.2/src/zope/html/fckeditor/2.6.4.1/fckeditor/editor/_source/internals/fcktoolbarset.js
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2009 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://ww...
PypiClean
/mindspore_ascend-1.10.0-cp39-none-any.whl/mindspore/nn/probability/bijector/power_transform.py
"""PowerTransform Bijector""" from mindspore.ops import operations as P from ..distribution._utils.utils import check_greater_equal_zero from ..distribution._utils.custom_ops import exp_generic, log_generic from .bijector import Bijector class PowerTransform(Bijector): r""" PowerTransform Bijector. This B...
PypiClean
/certora_cli_alpha_EyalH_CallTraceErrorsToProblemView-20230504.10.52.611423-py3-none-any.whl/certora_cli/EVMVerifier/certoraType.py
from typing import Any, Dict, List, Optional, Callable from EVMVerifier.certoraNodeFilters import NodeFilters from abc import ABC, abstractmethod from enum import Enum import logging ast_logger = logging.getLogger("ast") class Type(ABC): def __init__(self, name: str, type_string: str): """ not e...
PypiClean
/certora-cli-alpha-alex-more-cvlrange-meta-try-ors-fix-20230504.16.5.826473.tar.gz/certora-cli-alpha-alex-more-cvlrange-meta-try-ors-fix-20230504.16.5.826473/certora_cli/EVMVerifier/certoraBuild.py
import enum import json import logging import os import re import shutil import sys import typing from collections import OrderedDict from enum import Enum from functools import lru_cache, reduce from pathlib import Path from typing import Any, Dict, List, Tuple, Optional, Set, BinaryIO, Iterator from Crypto.Hash impor...
PypiClean
/kss.plugin.jsmath-1.0.2.tar.gz/kss.plugin.jsmath-1.0.2/kss/plugin/jsmath/3rd_party/jsMath/extensions/double-click.js
jsMath.Add(jsMath.Click,{ dragging: 0, /* * Create the hidden DIV used for the tex source window */ Init: function () { this.source = jsMath.Setup.DIV("float",{display:'none'}); this.source.innerHTML = '<div class="drag"><div class="close"></div></div>' + '<div class="source"><sp...
PypiClean
/openalea.deploy-2.0.0.tar.gz/openalea.deploy-2.0.0/src/openalea/deploy/system_dependencies/qtpatch.py
__license__ = "Cecill-C" __revision__ = " $Id$" import sys import os, os.path import fnmatch import shutil def patch(files, qtDirPath, where): if not os.path.isdir(qtDirPath): print qtDirPath, "does not exist" sys.exit(-1) if os.path.exists( files ): with open(files, "r") as fn: ...
PypiClean
/thera-py-0.4.0.tar.gz/thera-py-0.4.0/therapy/etl/ncit.py
import logging from typing import Set import requests import owlready2 as owl from owlready2.entity import ThingClass from therapy import DownloadException from therapy.schemas import SourceName, NamespacePrefix, SourceMeta, RecordParams from therapy.etl.base import Base logger = logging.getLogger("therapy") logger....
PypiClean
/PyMunin-0.9.27.tar.gz/PyMunin-0.9.27/pymunin/plugins/lighttpdstats.py
# Munin - Magic Markers #%# family=auto #%# capabilities=autoconf nosuggest import sys from pymunin import MuninGraph, MuninPlugin, muninMain from pysysinfo.lighttpd import LighttpdInfo __author__ = "Ali Onur Uyar" __copyright__ = "Copyright 2011, Ali Onur Uyar" __credits__ = [] __license__ = "GPL" __version__ = "0....
PypiClean
/azure-mgmt-databoxedge-2.0.0b1.zip/azure-mgmt-databoxedge-2.0.0b1/azure/mgmt/databoxedge/v2020_05_01_preview/aio/_data_box_edge_management_client.py
from copy import deepcopy from typing import Any, Awaitable, TYPE_CHECKING from azure.core.rest import AsyncHttpResponse, HttpRequest from azure.mgmt.core import AsyncARMPipelineClient from .. import models as _models from ..._serialization import Deserializer, Serializer from ._configuration import DataBoxEdgeManag...
PypiClean
/pyspin-1.1.1.tar.gz/pyspin-1.1.1/README.rst
Py-Spin ======= | |Latest Version| | |Build Status| | |Python Versions| A little terminal spinner lib. Heavily inspired by `go-spin`_. Demo ---- |pyspin_demo| Install ------- :: $ pip install pyspin Usage ----- make a spinner by hand: .. code:: python from __future__ import print_function import...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/prauserellarugosa.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def PrauserellaRugosa( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_graph_kwargs: Dict...
PypiClean
/realms-wiki-0.9.3.tar.gz/realms-wiki-0.9.3/realms/static/vendor/ace-builds/src-min/mode-scad.js
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(),{de...
PypiClean
/maxfuse-0.0.2.tar.gz/maxfuse-0.0.2/Archive/strong-link/10xe18/analysis/check_metrics_e18.ipynb
### calculated all the benchmarking metrics ``` import numpy as np import pandas as pd import matplotlib.pyplot as plt from sklearn.metrics import confusion_matrix, ConfusionMatrixDisplay import anndata as ad import scanpy as sc import sys sys.path.append("./") import match import metrics import utils from scipy.io...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_3/api/object_store_users_api.py
from __future__ import absolute_import import re # python 2 and python 3 compatibility library import six from typing import List, Optional from .. import models class ObjectStoreUsersApi(object): def __init__(self, api_client): self.api_client = api_client def api23_object_store_users_delete_with...
PypiClean
/cykeccak-0.13.2.2.tar.gz/cykeccak-0.13.2.2/vcversioner.py
from __future__ import print_function, unicode_literals import collections import os import subprocess Version = collections.namedtuple('Version', 'version commits sha') _print = print def print(*a, **kw): _print('vcversioner:', *a, **kw) def find_version(include_dev_version=True, version_file='version.txt',...
PypiClean
/python-graspfile-0.4.1.tar.gz/python-graspfile-0.4.1/src/graspfile/grid.py
try: import configparser except ImportError: import ConfigParser as configparser import numpy import graspfile.numpy_utilities as numpy_utilities class GraspField: """Object holding a single dataset from a Grasp field on grid output file (``*.grd``) The field is held in a complex numpy array of sha...
PypiClean
/pymeos_diviloper-0.0.3-py3-none-any.whl/pymeos/main/ttext.py
from __future__ import annotations from abc import ABC from datetime import datetime from typing import Optional, Union, List from dateutil.parser import parse from pymeos_cffi.functions import ttext_in, ttextinst_make, datetime_to_timestamptz, ttext_out, \ ttext_start_value, ttext_end_value, ttext_value_at_time...
PypiClean
/de_ausbildungssuche-0.1.0-py3-none-any.whl/deutschland/ausbildungssuche/model/response_aggregations_anbieter171482.py
import re # noqa: F401 import sys # noqa: F401 from deutschland.ausbildungssuche.exceptions import ApiAttributeError from deutschland.ausbildungssuche.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, OpenApiModel, cached_property, change_keys_js_to...
PypiClean
/odoo13_addon_shopfloor_mobile_base-13.0.1.13.0-py3-none-any.whl/odoo/addons/shopfloor_mobile_base/controllers/main.py
import json import os from odoo import http from odoo.modules.module import load_information_from_description_file from odoo.tools.config import config as odoo_config APP_VERSIONS = {} def _get_running_env(): """Retrieve current system environment. Expected key `RUNNING_ENV` is compliant w/ `server_envir...
PypiClean
/python-windscribe-cli-wrapper-2021.10.7.tar.gz/python-windscribe-cli-wrapper-2021.10.7/README.md
<h2>Cloned and fixed from <a href="https://github.com/Dayzpd/Python-Windscribe">*click</a></h2> # Python-Windscribe ## Intro I had purchased a lifetime subscription to Windscribe a few years ago and recently noticed that they had released a CLI. Being interested in web crawling, I threw together this basic CLI wrap...
PypiClean
/wordrank-0.1.6.tar.gz/wordrank-0.1.6/README.md
# wordrank [![PyPI version](https://badge.fury.io/py/wordrank.svg)](https://badge.fury.io/py/wordrank) [![Contributions welcome](https://img.shields.io/badge/contributions-welcome-brightgreen.svg)](CONTRIBUTING.md) [![GitHub contributors](https://img.shields.io/github/contributors/shibing624/wordrank.svg)](https://gith...
PypiClean
/drypatrick-frontend-20210603.0.tar.gz/drypatrick-frontend-20210603.0/hass_frontend/frontend_latest/chunk.be06c2e4e0a758adee5a.js
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[4077],{34821:(e,t,r)=>{"use strict";r.d(t,{i:()=>g});var i=r(13967),n=r(68546),o=r(50424),a=r(55358),s=r(87744);r(10983);function l(){l=function(){return e};var e={elementsDefinitionOrder:[["method"],["field"]],initializeInst...
PypiClean
/js.momentjs-2.13.1.tar.gz/js.momentjs-2.13.1/js/momentjs/resources/locale/ml.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
/fennel_ai-0.18.0-py3-none-any.whl/fennel/lib/to_proto/source_code.py
import ast import inspect import os import re import sys from textwrap import dedent, indent from typing import Callable import fennel.gen.pycode_pb2 as pycode_proto from fennel.datasets import Dataset from fennel.featuresets import Featureset from fennel.lib.includes.include_mod import FENNEL_INCLUDED_MOD from fenne...
PypiClean
/mindpowered_reservedseating-0.0.5-py3-none-any.whl/mindpowered_reservedseating/ReservedSeating.py
import maglev import reservedseating from typing import Any, List, Callable class ReservedSeating: """ An Library for Reserved Seating Venues have Seats, Events are at Venues Reservations are Seats at Events """ def __init__(self): bus = maglev.maglev_MagLev.getInstance("default") lib = reservedseating.rese...
PypiClean
/act-atmos-1.5.1.tar.gz/act-atmos-1.5.1/act/utils/io_utils.py
from pathlib import Path import tarfile from os import PathLike from shutil import rmtree import random import string import gzip import shutil import tempfile def pack_tar(filenames, write_filename=None, write_directory=None, remove=False): """ Creates TAR file from list of filenames provided. Currently only...
PypiClean
/shapflex-0.0.2.tar.gz/shapflex-0.0.2/README.md
# shapflex [![image](https://img.shields.io/pypi/v/shapflex.svg)](https://pypi.python.org/pypi/shapflex) [![image](https://img.shields.io/conda/vn/conda-forge/shapflex.svg)](https://anaconda.org/conda-forge/shapflex) **A python version of R package for computing asymmetric Shapley values to assess causality in any...
PypiClean
/give_me_python-3.10.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/give_me_python/data/lib/python3.10/encodings/iso8859_3.py
"""#" import codecs ### Codec APIs class Codec(codecs.Codec): def encode(self,input,errors='strict'): return codecs.charmap_encode(input,errors,encoding_table) def decode(self,input,errors='strict'): return codecs.charmap_decode(input,errors,decoding_table) class IncrementalEncoder(codecs...
PypiClean
/azure_ml_component-0.9.18-py3-none-any.whl/azure/ml/component/_execution/_command_driver.py
import os import sys import runpy import argparse import subprocess import traceback import shlex from os import name as os_name from datetime import datetime from urllib.parse import unquote DSL_COMPONENT_EXECUTOR_MODULE = 'azure.ml.component.dsl.executor' def print_log(msg): message = '[{}] Run execute stage: ...
PypiClean
/mozilla-django-oidc-foxtail-1.2.3.tar.gz/mozilla-django-oidc-foxtail-1.2.3/mozilla_django_oidc/auth.py
import base64 import hashlib import json import logging import requests import six from requests.auth import HTTPBasicAuth from django.contrib.auth import get_user_model from django.contrib.auth.backends import ModelBackend from django.core.exceptions import SuspiciousOperation, ImproperlyConfigured from django.urls i...
PypiClean
/spyder-terminal-1.2.2.tar.gz/spyder-terminal-1.2.2/spyder_terminal/server/static/components/@babel/generator/lib/source-map.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _sourceMap = require("source-map"); class SourceMap { constructor(opts, code) { this._cachedMap = void 0; this._code = void 0; this._opts = void 0; this._rawMappings = void 0; this._last...
PypiClean
/aequitas_lite-0.43.5-py3-none-any.whl/aequitas/plot/commons/style/classes.py
from aequitas.plot.commons.style import color as Color from aequitas.plot.commons.style import text as Text class Bubble: opacity = 0.2 color_faded = Color.FADED center_size = 60 # From bubble size scale: (1 - 2 * chart_padding) / 4 max_bubble_ratio = 0.2 cursor = "pointer" class Title: ...
PypiClean
/nrel.hive-1.3.1.tar.gz/nrel.hive-1.3.1/nrel/hive/runner/local_simulation_runner.py
from __future__ import annotations import functools as ft import logging from typing import NamedTuple, TYPE_CHECKING, Callable, Optional from tqdm import tqdm from nrel.hive.runner.runner_payload import RunnerPayload log = logging.getLogger(__name__) if TYPE_CHECKING: from nrel.hive.runner.environment import ...
PypiClean
/Products.mediaOrganization-0.2.tar.gz/Products.mediaOrganization-0.2/Products/mediaOrganization/content/mediaorganization.py
from zope.interface import implements from Products.Archetypes import atapi from Products.ATContentTypes.content import folder from Products.ATContentTypes.content import document from Products.ATContentTypes.content import schemata from Products.Archetypes.atapi import DateTimeField from Products.Archetypes.atapi imp...
PypiClean
/django_coreplus-0.4-py3-none-any.whl/coreplus/notices/api/v1/viewsets.py
from django.conf import settings from django.shortcuts import get_object_or_404 from drf_spectacular.utils import extend_schema from notifications.models import Notification from rest_framework.decorators import action from rest_framework.permissions import IsAuthenticated from rest_framework.response import Response f...
PypiClean
/alnoda_wrk-0.4.33-py3-none-any.whl/alnoda_wrk/cheatsheet.py
import os import logging import json, yaml from jinja2 import Template from collections import OrderedDict from .globals import * from .templates import cheatsheet_template CHEATSHEET_DATA_FILE = os.path.join(WORKSPACE_DIR, 'cheatsheet.json') WORKSPACE_CHEATSHEET_FILE = os.path.join(WORKSPACE_UI_DIR, 'docs', 'cheats...
PypiClean
/emmet-core-0.67.5.tar.gz/emmet-core-0.67.5/emmet/core/vasp/calc_types/enums.py
from emmet.core.utils import ValueEnum class RunType(ValueEnum): """VASP calculation run types.""" AM05 = "AM05" GGA = "GGA" PBE = "PBE" PBESol = "PBESol" RevPBE_PADE = "RevPBE+PADE" optB86b = "optB86b" optB88 = "optB88" optPBE = "optPBE" revPBE = "revPBE" B3LYP = "B3LYP" ...
PypiClean
/azureml_core-1.53.0-py3-none-any.whl/azureml/_restclient/experiment_client.py
"""Access a experiment client""" import copy import six from azureml._base_sdk_common import _ClientSessionId from .contracts.utils import get_new_id from .constants import DEFAULT_PAGE_SIZE from .models.create_run_dto import CreateRunDto from .utils import _generate_client_kwargs, _validate_order_by from .workspace_...
PypiClean
/simple_multiprocessing-0.0.15.tar.gz/simple_multiprocessing-0.0.15/simple_multiprocessing/_multi_task.py
# System from abc import abstractmethod from typing import Optional, Callable, List from threading import Thread, Lock from multiprocessing import Manager import sys # Pip import stopit # Local from .models.task import Task # ------------------------------------------------------------------------------------------...
PypiClean
/integreat-cms-2023.8.0.tar.gz/integreat-cms-2023.8.0/integreat_cms/cms/forms/pois/poi_form.py
import json import logging from django import forms from django.conf import settings from django.utils.translation import gettext as _ from geopy.distance import distance from jsonschema import validate from jsonschema.exceptions import ValidationError from ....nominatim_api.nominatim_api_client import NominatimApiCl...
PypiClean
/restful_starlette-0.0.4-py3-none-any.whl/restful_starlette/command/admin.py
import os import click import file_content project_structure = { # root directory './{project_name}': {'is_dir': True}, './{project_name}/aerich.toml': {'is_dir': False, 'content': file_content.project_name_aerich_toml}, './{project_name}/main.py': {'is_dir': False, 'content': file_content.project_nam...
PypiClean
/xeda-0.2.2.tar.gz/xeda-0.2.2/src/flows/vivado/vivado_sim.py
import logging from typing import List, Optional from ...dataclass import Field from ...utils import SDF from ...flow import SimFlow from ..vivado import Vivado log = logging.getLogger(__name__) # FIXME: Does not return error when simulation is finished with a failure assertion class VivadoSim(Vivado, SimFlow): ...
PypiClean
/evalplus-0.1.3.tar.gz/evalplus-0.1.3/codegen/model.py
import os from abc import ABC, abstractmethod from typing import List from warnings import warn # Communism os.environ["HF_HOME"] = os.environ.get("HF_HOME", "/ColossalTitan/huggingface/") import openai # ============================================================== # # The vicuna-7b weights are at /ColossalTitan/v...
PypiClean
/echarts-china-counties-pypkg-0.0.2.tar.gz/echarts-china-counties-pypkg-0.0.2/echarts_china_counties_pypkg/resources/echarts-china-counties-js/328579cd37149a5d5733131c22cb24d7.js
(function (root, factory) {if (typeof define === 'function' && define.amd) {define(['exports', 'echarts'], factory);} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {factory(exports, require('echarts'));} else {factory({}, root.echarts);}}(this, function (exports, echarts) {var log = func...
PypiClean
/one_interfaces-4.7.1.tar.gz/one_interfaces-4.7.1/one_interfaces/gis_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
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/socketcluster-client/lib/sctransport.js
var Emitter = require('component-emitter'); var Response = require('./response').Response; var querystring = require('querystring'); var WebSocket; var createWebSocket; if (global.WebSocket) { WebSocket = global.WebSocket; createWebSocket = function (uri, options) { return new WebSocket(uri); }; } else { W...
PypiClean
/zjkdemo2-0.91.tar.gz/zjkdemo2-0.91/d3rlpy/algos/torch/awac_impl.py
from typing import Optional, Sequence, Tuple import numpy as np import torch import torch.nn.functional as F from ...gpu import Device from ...models.builders import create_squashed_normal_policy from ...models.encoders import EncoderFactory from ...models.optimizers import AdamFactory, OptimizerFactory from ...model...
PypiClean
/perun.connector-3.7.3-py3-none-any.whl/perun/connector/perun_openapi/model/paginated_rich_applications.py
import re # noqa: F401 import sys # noqa: F401 from perun.connector.perun_openapi.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, ...
PypiClean
/democritus_dates-2021.2.1101.tar.gz/democritus_dates-2021.2.11/democritus_dates/dates_and_times.py
import calendar import datetime import functools import os import sys import time import re sys.path.append(os.path.abspath(os.path.join(os.path.dirname(__file__), '.'))) from dates_and_times_temp_utils import number_zero_pad, string_remove_from_end # todo: I think there is a better way to provide the data below (e....
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/v20190801/get_express_route_connection.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs __all__ = [ 'GetExpressRouteConnectionResult', 'AwaitableGetExpressRouteConnectionResult', 'get_express_route_connection', ] @pulumi.out...
PypiClean
/idem_aws-4.0.1-py3-none-any.whl/idem_aws/tool/aws/lambda_aws/function.py
from collections import OrderedDict from dataclasses import field from dataclasses import make_dataclass from typing import Any from typing import Dict from typing import List from dict_tools import data from dict_tools import differ async def compare_inputs_and_update_lambda_function( hub, ctx, name: st...
PypiClean
/PyX-0.16.tar.gz/PyX-0.16/manual/text.rst
.. module:: text :synopsis: High-level interface for text output including a TeX/LaTeX interface **** Text **** Rationale ========= The :mod:`text` module is used to create text output. It seamlessly integrates Donald E. Knuths famous TeX typesetting engine\ [#]_. The module is a high-level interfa...
PypiClean
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/models/dna_sequence_base_request_for_create.py
from typing import Any, cast, Dict, List, Type, TypeVar, Union import attr from ..extensions import NotPresentError from ..models.custom_fields import CustomFields from ..models.dna_annotation import DnaAnnotation from ..models.dna_sequence_part import DnaSequencePart from ..models.fields import Fields from ..models....
PypiClean
/rkd_harbor-2.0.3-py3-none-any.whl/rkd_harbor/tasks/configsmanagement.py
import os from argparse import ArgumentParser from abc import abstractmethod from tabulate import tabulate from rkd.api.contract import ExecutionContext from .base import HarborBaseTask from ..formatting import development_formatting class ListConfigsTask(HarborBaseTask): """Gets environment variable value""" ...
PypiClean
/cubids-bond-fork-0.1.0.tar.gz/cubids-bond-fork-0.1.0/bond/validator.py
import subprocess import json import logging import os import glob import pathlib import pandas as pd logger = logging.getLogger('bond-cli') def build_validator_call(path, ignore_headers=False, ignore_subject=True): """Build a subprocess command to the bids validator""" # build docker call command = ['b...
PypiClean
/Spire.Pdf-9.8.1-py3-none-win_amd64.whl/spire/pdf/PdfPaperSizes.py
from enum import Enum from plum import dispatch from typing import TypeVar,Union,Generic,List,Tuple from spire.pdf.common import * from spire.pdf import * from ctypes import * import abc class PdfPaperSizes (SpireObject) : """ <summary> Represents information about page size. The PaperSize'...
PypiClean
/torchmanager_nightly-1.3a1-py3-none-any.whl/torchmanager/callbacks/lr.py
from torchmanager_core import torch, Version from torchmanager_core.protocols import Frequency, SummaryWriteble from torchmanager_core.typing import Any, Generic, Optional, TypeVar from .callback import FrequencyCallback _LrScheduler = torch.optim.lr_scheduler._LRScheduler if Version(torch.__version__) < "2.0" else t...
PypiClean
/tw.tinymce-0.8.tar.gz/tw.tinymce-0.8/tw/tinymce/static/javascript/themes/advanced/jscripts/color_picker.js
function init() { if (tinyMCE.isMSIE) tinyMCEPopup.resizeToInnerSize(); } function selectColor() { var color = document.getElementById("selectedColorBox").value; tinyMCEPopup.execCommand(tinyMCE.getWindowArg('command'), false, color); tinyMCEPopup.close(); } function showColor(color) { document.getElementById...
PypiClean
/prodigy-teams-recipes-sdk-0.1.6.tar.gz/prodigy-teams-recipes-sdk-0.1.6/prodigy_teams_recipes_sdk/prodigy_teams_pam_sdk/client/for_cluster.py
from .. import ty from ..models import ( ActionDetail, ClusterJobReading, EmptyResponse, MetricsCreating, MetricsLogging, NomadAttemptUpdating, NomadEventBatchCreating, NomadEventGetIndex, NomadEventIndex, NomadJobs, ReportNomadJobResponse, TaskDetail, ) from .base import...
PypiClean
/espnet_onnx-0.1.11.tar.gz/espnet_onnx-0.1.11/espnet_onnx/asr/model/decoders/xformer.py
from typing import Any, Dict, List, Optional, Tuple, Union import numpy as np import onnxruntime from espnet_onnx.asr.scorer.interface import BatchScorerInterface from espnet_onnx.utils.config import Config class XformerDecoder(BatchScorerInterface): def __init__( self, config: Config, p...
PypiClean
/ask-sdk-model-1.82.0.tar.gz/ask-sdk-model-1.82.0/ask_sdk_model/interfaces/viewport/viewport_state.py
# # Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. # # Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file # except in compliance with the License. A copy of the License is located at # # http://aws.amazon.com/apache2.0/ # # or in the "license" file accomp...
PypiClean
/netunicorn-connector-aws-0.0.3.tar.gz/netunicorn-connector-aws-0.0.3/src/netunicorn/director/infrastructure/connectors/aws.py
from __future__ import annotations import asyncio import logging import os from copy import deepcopy from logging import Logger from typing import Optional, Tuple, Any, NoReturn import boto3 import yaml from netunicorn.base.architecture import Architecture from netunicorn.base.deployment import Deployment from netuni...
PypiClean
/odoo14_addon_l10n_es_aeat_sii_oca-14.0.2.8.3-py3-none-any.whl/odoo/addons/l10n_es_aeat_sii_oca/migrations/14.0.2.1.0/post-migration.py
from openupgradelib import openupgrade def _get_tax_agency_map(env): """Map to move records from aeat.sii.tax.agency to aeat.tax.agency.""" get_id = env["ir.model.data"].xmlid_to_res_id mig_map = { get_id("l10n_es_aeat_sii_oca.aeat_sii_tax_agency_spain"): get_id( "l10n_es_aeat.aeat_ta...
PypiClean