id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/csp_cryspy-1.2.0-py3-none-any.whl/cryspy/RS/gen_struc_RS/random_generation.py
import json from logging import getLogger import math import os import random import subprocess import sys import numpy as np from pymatgen.core import Structure from ...IO import read_input as rin from ...util.struc_util import check_distance, out_poscar logger = getLogger('cryspy') class Rnd_struc_gen: ''' ...
PypiClean
/nni_daily-1.5.2005180104-py3-none-manylinux1_x86_64.whl/nni_daily-1.5.2005180104.data/data/nni/node_modules/express/lib/router/route.js
'use strict'; /** * Module dependencies. * @private */ var debug = require('debug')('express:router:route'); var flatten = require('array-flatten'); var Layer = require('./layer'); var methods = require('methods'); /** * Module variables. * @private */ var slice = Array.prototype.slice; var toString = Object....
PypiClean
/nlpsandbox-client-4.3.1.tar.gz/nlpsandbox-client-4.3.1/nlpsandbox/api/text_covid_symptom_annotation_api.py
import re # noqa: F401 import sys # noqa: F401 from nlpsandbox.api_client import ApiClient, Endpoint as _Endpoint from nlpsandbox.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_types ) from nlpsandbox....
PypiClean
/django-markdown-editor-1.0.3.tar.gz/django-markdown-editor-1.0.3/markdown_editor/views.py
import os import time import json from django.http import HttpResponse from django.views.decorators.csrf import csrf_exempt from markdown_editor import settings as markdown_settings @csrf_exempt def upload_image(request): if request.method == "POST": # 请求方法为POST时,进行处理 _file = request.FILES.get("editorm...
PypiClean
/dnamlops-0.0.3-py3-none-any.whl/mlopsdna/evidently/analyzers/regression_performance_analyzer.py
import copy from dataclasses import dataclass from typing import Optional import pandas as pd from mlopsdna.evidently import ColumnMapping from mlopsdna.evidently.analyzers.base_analyzer import Analyzer from mlopsdna.evidently.analyzers.base_analyzer import BaseAnalyzerResult from mlopsdna.evidently.calculations.regr...
PypiClean
/MaxwellBloch-0.7.1.tar.gz/MaxwellBloch-0.7.1/maxwellbloch/fixed.py
import numpy as np from scipy import interpolate def t_list(mb_solve, speed_of_light): """ Return the time points shifted to the fixed (lab) frame of reference given a speed-of-light. Args: mb_solve: An MBSolve object speed_of_light: The speed of light in the system. ...
PypiClean
/opp-koi-1.1.0.tar.gz/opp-koi-1.1.0/koi/base.py
import json import logging import urllib import tornado.httpclient from tornado.gen import coroutine, Return from tornado.web import RequestHandler from tornado.options import options from chub import API from .exceptions import HTTPError from .configure import ssl_server_options def _get_http_error(kwargs): i...
PypiClean
/Mainflux-0.0.1.tar.gz/Mainflux-0.0.1/lib/errors.py
def handle_error(error_dict, status_code): if status_code in error_dict.keys(): return error_dict[status_code] elif status_code in errors.keys(): return errors[status_code] else: return "Unknown error" errors = { 400: "Failed due to malformed JSON.", 401: "Missing or invali...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/jsdom/lib/jsdom/living/generated/HTMLProgressElement.js
"use strict"; const conversions = require("webidl-conversions"); const utils = require("./utils.js"); const impl = utils.implSymbol; const HTMLElement = require("./HTMLElement.js"); function HTMLProgressElement() { throw new TypeError("Illegal constructor"); } Object.setPrototypeOf(HTMLProgressElement.prototype, ...
PypiClean
/vrt_lss_universal-6.13.2112-py3-none-any.whl/vrt_lss_universal/models/calculation_state.py
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from pydantic import BaseModel, Field, conint from vrt_lss_universal.models.calculation_info import CalculationInfo from vrt_lss_universal.models.tracedata import Tracedata class CalculationState(...
PypiClean
/iotile-core-5.2.0.tar.gz/iotile-core-5.2.0/iotile/core/hw/reports/signed_list_format.py
import datetime import struct import hashlib import hmac from enum import IntEnum from .report import IOTileReport, IOTileReading from struct import unpack from iotile.core.exceptions import NotFoundError, ExternalError from iotile.core.hw.auth.auth_provider import AuthProvider from iotile.core.hw.auth.auth_chain impo...
PypiClean
/happybase-sql-0.1.0.tar.gz/happybase-sql-0.1.0/happybase_sql/connection.py
from contextlib import contextmanager from sqlalchemy import ( create_engine, MetaData, ) from sqlalchemy.orm import sessionmaker from .table import Table class Connection(object): """ (Almost) drop-in replacement for the happybase.Connection class. """ def __init__( self, ...
PypiClean
/shiny_api-0.2.83.tar.gz/shiny_api-0.2.83/shiny_api/classes/ipsw_me_ipsw.py
import os from typing import Any from dataclasses import dataclass from pathlib import Path from urllib.parse import urlparse import requests from kivy.uix.button import Button from shiny_api.modules.connect_ls import get_data print(f"Importing {os.path.basename(__file__)}...") IPSW_PATH = ["iPad Software Updates", ...
PypiClean
/dnv_bladed_models-0.3.44.tar.gz/dnv_bladed_models-0.3.44/src/dnv_bladed_models/initial_position.py
from __future__ import annotations from datetime import date, datetime # noqa: F401 from enum import Enum, IntEnum import re # noqa: F401 from typing import Any, Dict, List, Optional, Type, Union, Callable # noqa: F401 from pathlib import Path from typing import TypeVar Model = TypeVar('Model', bound='BaseModel') ...
PypiClean
/tibia.py-5.6.0-py3-none-any.whl/tibiapy/world.py
import re from collections import OrderedDict from typing import List, TYPE_CHECKING from tibiapy import abc from tibiapy.character import OnlineCharacter from tibiapy.enums import BattlEyeType, PvpType, TournamentWorldType, TransferType, WorldLocation from tibiapy.errors import InvalidContent from tibiapy.utils impor...
PypiClean
/bambu_server-0.0.2-py3-none-any.whl/bambu_server/static/js/jsme/deferredjs/8508C994125211B70C8DC6A6B3128C9F/1.cache.js
$wnd.jsme.runAsyncCallback1('var Z6="Assignment of aromatic double bonds failed";function $6(a,b){var c;c=a.A[b];return 3<=c&&4>=c||11<=c&&13>=c||19<=c&&31>=c||37<=c&&51>=c||55<=c&&84>=c||87<=c&&103>=c}function $(a,b){var c,d;c=b;for(d=0;0!=b;)0==a.c&&(a.e=(a.a[++a.d]&63)<<11,a.c=6),d|=~~(65536&a.e)>>16-c+b,a.e<<=1,--b...
PypiClean
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/intl/locale-data/jsonp/mer.js
IntlPolyfill.__addLocaleData({locale:"mer",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:true,hour12:false,formats:{short:"{1} {0}",medium:"{1} {0}",full:"{1} {0}",long:"{1} {0}",availableFormats:{"d":"...
PypiClean
/bitcoin-etl-1.5.2.tar.gz/bitcoin-etl-1.5.2/blockchainetl/streaming/streamer.py
import logging import os import time from blockchainetl.streaming.streamer_adapter_stub import StreamerAdapterStub from blockchainetl.file_utils import smart_open class Streamer: def __init__( self, blockchain_streamer_adapter=StreamerAdapterStub(), last_synced_block_file='l...
PypiClean
/msqlparse-0.4.4.tar.gz/msqlparse-0.4.4/docs/source/intro.rst
Introduction ============ Download & Installation ----------------------- The latest released version can be obtained from the `Python Package Index (PyPI) <https://pypi.org/project/sqlparse/>`_. To extract and install the module system-wide run .. code-block:: bash $ tar cvfz python-sqlparse-VERSION.tar.gz ...
PypiClean
/lizard-ui-5.3.tar.gz/lizard-ui-5.3/lizard_ui/static/openlayers/1.12-r7/lib/OpenLayers/Layer/EventPane.js
* @requires OpenLayers/Layer.js * @requires OpenLayers/Util.js */ /** * Class: OpenLayers.Layer.EventPane * Base class for 3rd party layers, providing a DOM element which isolates * the 3rd-party layer from mouse events. * Only used by Google layers. * * Automatically instantiated by the Google constructor, a...
PypiClean
/gears-babel-0.1.tar.gz/gears-babel-0.1/gears_babel/node_modules/babel/node_modules/regenerator-babel/node_modules/commoner/node_modules/glob/node_modules/minimatch/test/basic.js
var tap = require("tap") , globalBefore = Object.keys(global) , mm = require("../") , files = [ "a", "b", "c", "d", "abc" , "abd", "abe", "bb", "bcd" , "ca", "cb", "dd", "de" , "bdir/", "bdir/cfile"] , next = files.concat([ "a-b", "aXb" , ".x", ".y" ]...
PypiClean
/autogroceries-1.0.1.tar.gz/autogroceries-1.0.1/README.md
## autogroceries <!-- badges: start --> [![Lifecycle: experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html#experimental) [![ci](https://github.com/dzhang32/autogroceries/workflows/test-deploy-package/badge.svg)](https://github.com/dzhang32/aut...
PypiClean
/VIP-yt-2022.7.26.tar.gz/VIP-yt-2022.7.26/VIP_yt/extractor/_extractors.py
from .abc import ( ABCIE, ABCIViewIE, ABCIViewShowSeriesIE, ) from .abcnews import ( AbcNewsIE, AbcNewsVideoIE, ) from .abcotvs import ( ABCOTVSIE, ABCOTVSClipsIE, ) from .abematv import ( AbemaTVIE, AbemaTVTitleIE, ) from .academicearth import AcademicEarthCourseIE from .acast impo...
PypiClean
/gaussian_step-2023.2.26.1.tar.gz/gaussian_step-2023.2.26.1/gaussian_step/tk_energy.py
import logging import tkinter as tk import tkinter.ttk as ttk import gaussian_step import seamm import seamm_widgets as sw logger = logging.getLogger(__name__) class TkEnergy(seamm.TkNode): def __init__( self, tk_flowchart=None, node=None, canvas=None, x=120, y=20...
PypiClean
/sasview-5.0.6b3-py3-none-any.whl/sas/sascalc/pr/distance_explorer.py
import sys class Results(object): """ Class to hold the inversion output parameters as a function of D_max """ def __init__(self): """ Initialization. Create empty arrays and dictionary of labels. """ # Array of output for each inversion self.chi2 = ...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/education/schools/schools_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
/torchimize-0.0.14-py3-none-any.whl/torchimize-0.0.14.dist-info/LICENSE.md
GNU General Public License ========================== *Version 3, 29 June 2007* *Copyright © 2007 Free Software Foundation, Inc* <http://fsf.org> Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble -------- The GNU General Public License is...
PypiClean
/trains_agent-0.16.3-py3-none-any.whl/trains_agent/backend_api/session/session.py
import json as json_lib import sys import types from socket import gethostname from six.moves.urllib.parse import urlparse, urlunparse import jwt import requests import six from pyhocon import ConfigTree from requests.auth import HTTPBasicAuth from .callresult import CallResult from .defs import ENV_VERBOSE, ENV_HOST...
PypiClean
/vioneta_agro_frontend-20230809.1-py3-none-any.whl/hass_frontend/frontend_latest/69029-aAkrexRW408.js
export const id=69029;export const ids=[69029];export const modules={25517:(t,e,a)=>{Object.defineProperty(e,"__esModule",{value:!0});var r=a(43204),l=a(77021),n=a(54308);function o(t,e){if(!(t instanceof c))throw new TypeError("Method Intl.ListFormat.prototype.".concat(e," called on incompatible receiver ").concat(Str...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/MybankPaymentTradeFinancingOrderCloseRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.MybankPaymentTradeFinancingOrderCloseModel import MybankPaymentTradeFinancingOrderCloseModel class MybankPaymentTradeFinancingOrderCloseRequest(object): def __init__(self, b...
PypiClean
/evernote3-1.25.14-py3-none-any.whl/evernote/api/client.py
import sys import functools import inspect import re import oauth2 as oauth import urllib.error import urllib.parse import urllib.request import evernote.edam.userstore.UserStore as UserStore import evernote.edam.notestore.NoteStore as NoteStore import evernote.edam.userstore.constants as UserStoreConstants import t...
PypiClean
/autopwn_suite-2.1.2-py3-none-any.whl/autopwn_suite/autopwn.py
from datetime import datetime from rich.console import Console from modules.banners import print_banner from modules.getexploits import GetExploitsFromArray from modules.logger import Logger from modules.report import InitializeReport from modules.scanner import AnalyseScanResults, DiscoverHosts, NoiseScan, PortScan ...
PypiClean
/consulate-fork-0.7.1.tar.gz/consulate-fork-0.7.1/consulate/api/acl.py
import logging from consulate.models import acl as model from consulate.api import base from consulate import exceptions # from typing import List, Dict, Union LOGGER = logging.getLogger(__name__) # ServiceIdentity = Dict[str, Union[str, List[str]]] # ServiceIdentities = List[ServiceIdentity] # PolicyLink = Dict[str...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/KoubeiContentContentinfoModifyRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.KoubeiContentContentinfoModifyModel import KoubeiContentContentinfoModifyModel class KoubeiContentContentinfoModifyRequest(object): def __init__(self, biz_model=None): ...
PypiClean
/fusion_engine_client-1.21.0-py3-none-any.whl/fusion_engine_client/messages/solution.py
import struct from typing import List, Sequence from construct import (Struct, Float64l, Float32l, Int32ul, Int8ul, Padding, Array) import numpy as np from ..utils.construct_utils import AutoEnum, construct_message_to_string from ..utils.enum_utils import IntEnum from .defs import * class PoseMessage(MessagePayload...
PypiClean
/EDDIE-Tool-1.0.0.tar.gz/EDDIE-Tool-1.0.0/eddietool/common/Directives/ipf.py
__version__ = '$Revision: 893 $' __copyright__ = 'Copyright (c) Chris Miles 2000-2005' __author__ = 'Chris Miles' __license__ = ''' This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; eithe...
PypiClean
/trell-data-pipeline-0.4.11.tar.gz/trell-data-pipeline-0.4.11/pipeline/decoders.py
import base64 import asyncio import logging from abc import ABC LOG = logging.getLogger(__name__) INDOOR_SENSOR = 'indoor_sensor' DOOR_LOCK_SENSOR = 'door_lock_sensor' class Decoder(ABC): ''' Base class for decoders. Abstact. ''' def __init__(self, data): self.raw = data self.data = None ...
PypiClean
/vgg_gd_sso-1.0.4.tar.gz/vgg_gd_sso-1.0.4/vgg_gd_sso/__init__.py
import os import base64 from datetime import datetime, timedelta import requests import json import urllib class SSOAccess: """ The custom object to handle access calls and requests to the SSO Identity Server """ def __init__(self, debug=True, config_data={}): self.client_id = config_data.get...
PypiClean
/DACBench-0.2.0.tar.gz/DACBench-0.2.0/dacbench/benchmarks/fast_downward_benchmark.py
import os import ConfigSpace as CS import ConfigSpace.hyperparameters as CSH import numpy as np from dacbench.abstract_benchmark import AbstractBenchmark, objdict from dacbench.envs import FastDownwardEnv HEURISTICS = [ "tiebreaking([pdb(pattern=manual_pattern([0,1])),weight(g(),-1)])", "tiebreaking([pdb(pat...
PypiClean
/nr.databind-0.0.4.tar.gz/nr.databind-0.0.4/src/nr/databind/core/datatypes.py
import datetime import decimal import six import typing from nr.collections import abc from nr.interface import implements, override from nr.pylang.utils import classdef from nr.pylang.utils.typing import is_generic, get_generic_args from .decoration import Decoration from .interfaces import IDataType from .errors imp...
PypiClean
/django-listable-0.8.1.tar.gz/django-listable-0.8.1/listable/static/listable/js/moment.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : global.moment = factory() }(this, function () { 'use strict'; var hookCallback; function utils_hooks__hooks () ...
PypiClean
/serverPKI-0.9.11.tar.gz/serverPKI-0.9.11/README.rst
========= serverPKI ========= .. image:: https://img.shields.io/pypi/v/serverpki.svg :target: https://pypi.org/project/serverPKI/ :alt: Latest Version .. image:: https://readthedocs.org/projects/serverpki/badge/?version=latest :target: https://serverpki.readthedocs.io/en/latest/ :alt: Latest Docs ...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_25/api/active_directory_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 ActiveDirectoryApi(object): def __init__(self, api_client): self.api_client = api_client def api225_active_directory_delete_with_h...
PypiClean
/taskplot-0.1.2.tar.gz/taskplot-0.1.2/src/taskplot.py
# Copyright (c) 2014 Susam Pal # All rights reserved. # # 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 of conditions and...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/device_management/templates/item/migratable_to/item/categories/count/count_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
/Mopidy-Mobile-1.10.0.tar.gz/Mopidy-Mobile-1.10.0/README.rst
Mopidy Mobile ======================================================================== Mopidy Mobile is a simple, easy to use remote that lets you fully control a Mopidy_ music server from your mobile device. It is available as a `Web client extension <http://mopidy.readthedocs.org/en/latest/ext/web/>`_ and a `hybrid...
PypiClean
/spdx_lookup-0.3.3-py3-none-any.whl/spdx_lookup/__init__.py
from collections import namedtuple import os import re import spdx from spdx import License LicenseMatch = namedtuple('LicenseMatch', ['confidence', 'license', 'filename']) _id_idx = {} _name_idx = {} for n, record in enumerate(spdx._licenses): _name_idx[record['name'].lower().strip()] = n _id_idx[...
PypiClean
/appdaemon_testing-0.1.4-py3-none-any.whl/appdaemon_testing/hass_driver.py
import contextlib import logging import unittest.mock as mock from collections import defaultdict from copy import copy from dataclasses import dataclass from typing import Dict, Any, List, Callable, Union, Optional import appdaemon.plugins.hass.hassapi as hass _LOGGER = logging.getLogger(__name__) @dataclass(froze...
PypiClean
/SearchOverflow-1.0.1.tar.gz/SearchOverflow-1.0.1/README.md
#SearchOverflow ##Command line script to consult StackOverflow With SearchOverflow you can quickly look up questions on StackOverflow from any terminal, allowing for quick searches without exiting your IDE. ##Usage * Without any input ` sflow ` Using it like this will make the program ask you for search terms ...
PypiClean
/paddle2coreml-6.2-cp38-none-macosx_11_0_arm64.whl/coremltools/converters/_profile_utils.py
import os import time _FUNCTION_PROFILE_REGISTRY = {} # str -> list (function name to time stack) _ENABLE_PROFILING = os.environ.get("ENABLE_PROFILING", False) def _profile(_f=None): def func_wrapper(func): f_name = func.__module__ + "." + func.__name__ if f_name in _FUNCTION_PROFILE_REGISTRY: ...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/vmware/vmware_rest/plugins/modules/vcenter_vm_hardware_boot_device_info.py
from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = r""" module: vcenter_vm_hardware_boot_device_info short_description: Returns an ordered list of boot devices for the virtual machine description: Returns an ordered list of boot devices for the virtual machine. If t...
PypiClean
/streamlit-chat-foto-0.0.2.7.tar.gz/streamlit-chat-foto-0.0.2.7/README.md
# st-chat Streamlit Component, for a Chat-bot UI, [example app](https://share.streamlit.io/ai-yash/st-chat/main/examples/chatbot.py) authors - [@yashppawar](https://github.com/yashppawar) & [@YashVardhan-AI](https://github.com/yashvardhan-ai) ## Installation Install `streamlit-chat-foto` with pip ```bash pip instal...
PypiClean
/thoth_pipenv-2020.1.29-py3-none-any.whl/pipenv/vendor/tomlkit/items.py
from __future__ import unicode_literals import re import string from datetime import date from datetime import datetime from datetime import time from ._compat import PY2 from ._compat import decode from ._compat import long from ._compat import unicode from ._utils import escape_string if PY2: from pipenv.vend...
PypiClean
/xblock_drag_and_drop_v2-3.2.0-py3-none-any.whl/drag_and_drop_v2/public/js/translations/es_419/text.js
(function(global){ var DragAndDropI18N = { init: function() { 'use strict'; { const globals = this; const django = globals.django || (globals.django = {}); django.pluralidx = function(n) { const v = n == 1 ? 0 : n != 0 && n % 1000000 == 0 ? 1 : 2; ...
PypiClean
/sdss_mangadap-4.1.1-py3-none-any.whl/mangadap/scripts/manga_dap_inspector.py
from pathlib import Path import os import time import argparse from IPython import embed import numpy from astropy.io import fits from matplotlib import pyplot from matplotlib.ticker import NullFormatter from matplotlib.widgets import Button, AxesWidget, Cursor, RangeSlider from mangadap.dapfits import DAPCubeBitM...
PypiClean
/pytrnsys_gui-0.10.15-py3-none-any.whl/trnsysGUI/MyQTreeView.py
import os import shutil from pathlib import Path from PyQt5.QtCore import Qt from PyQt5.QtWidgets import QTreeView, QMenu, QMessageBox, QFileDialog, QInputDialog class MyQTreeView(QTreeView): def __init__(self, model, blockitem): """ Self defined QTreeView that contains operations related to the...
PypiClean
/typer-0.9.0.tar.gz/typer-0.9.0/docs/tutorial/first-steps.md
## The simplest example The simplest **Typer** file could look like this: ```Python {!../docs_src/first_steps/tutorial001.py!} ``` Copy that to a file `main.py`. Test it: <div class="termy"> ```console $ python main.py Hello World // It just prints "Hello World". // Now check the --help $ python main.py --help...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/notification_collection_response.py
from __future__ import annotations from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from . import base_collection_pagination_count_response, notification from . import base_collectio...
PypiClean
/ambition_edc-0.3.72-py3-none-any.whl/ambition_subject/admin/microbiology_admin.py
from django.contrib import admin from edc_model_admin import audit_fieldset_tuple from ..admin_site import ambition_subject_admin from ..forms import MicrobiologyForm from ..models import Microbiology from .modeladmin import CrfModelAdmin @admin.register(Microbiology, site=ambition_subject_admin) class MicrobiologyA...
PypiClean
/alpaca-prov-0.1.0.tar.gz/alpaca-prov-0.1.0/doc/examples/visualize.rst
************************* Visualize provenance data ************************* The **visualize_prov.py** script shows the basic functionality to generate a graph file from serialized provenance data. The script takes a file serialized in one of the RDF formats (e.g. Turtle) and writes a GEXF file. Running the script...
PypiClean
/pybudgea-0.1.12-py3-none-any.whl/budgea/models/user_connection_informations.py
import pprint import re # noqa: F401 import six import marshmallow from marshmallow import Schema, validates, ValidationError, post_load, missing import budgea import budgea.fields from budgea.configuration import Configuration """ CodegenModel{parent='null', parentSchema='null', interfaces=null, allParents=null,...
PypiClean
/ansible-kkvesper-2.3.2.0.tar.gz/ansible-kkvesper-2.3.2.0/lib/ansible/modules/windows/win_reboot.py
# This file is part of Ansible # # Ansible is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Ansible is distributed in the hope that...
PypiClean
/zope.testrunner-6.1.tar.gz/zope.testrunner-6.1/src/zope/testrunner/filter.py
import re import zope.testrunner.feature UNITTEST_LAYER = 'zope.testrunner.layer.UnitTests' class Filter(zope.testrunner.feature.Feature): """Filters and orders all tests registered until now.""" active = True def global_setup(self): layers = self.runner.tests_by_layer_name options = ...
PypiClean
/testy_quick-0.1.3.tar.gz/testy_quick-0.1.3/testy_quick/variable_handlers/exception_handler.py
import json from pathlib import Path from typing import Any from .base_handler import DefaultSingleHandler class ExceptionHandler(DefaultSingleHandler): def condition(self, variable_value: Any) -> bool: return isinstance(variable_value, BaseException) def exception_to_dict(self, e: BaseException): ...
PypiClean
/highcharts_stock-1.3.0.tar.gz/highcharts_stock-1.3.0/docs/api/options/series/data/wordcloud.rst
########################################################################################## :mod:`.wordcloud <highcharts_stock.options.series.data.wordcloud>` ########################################################################################## .. contents:: Module Contents :local: :depth: 3 :backlinks: entr...
PypiClean
/ydk-models-cisco-ios-xr-6.6.3.tar.gz/ydk-models-cisco-ios-xr-6.6.3/ydk/models/cisco_ios_xr/Cisco_IOS_XR_infra_alarm_logger_oper.py
import sys from collections import OrderedDict from ydk.types import Entity as _Entity_ from ydk.types import EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64 from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Em...
PypiClean
/avtraj-0.0.8.tar.gz/avtraj-0.0.8/doc/index.rst
Welcome to AvTraj's documentation! ================================== AvTraj is tool to calculate accessible volumes of labels attached to biomolecules. using MD trajectories as an input qvTraj can generate, write, and analyze accessible volumes (AVs) with only a few lines of Python code. By the use of LabelLib AvTraj...
PypiClean
/scipion-em-continuousflex-3.3.16.tar.gz/scipion-em-continuousflex-3.3.16/continuousflex/viewers/viewer_nma_dimred.py
from continuousflex.protocols.data import PathData from os.path import basename, join, exists, isfile import numpy as np from joblib import load from pyworkflow.utils.path import cleanPath, makePath from pyworkflow.viewer import (ProtocolViewer, DESKTOP_TKINTER, WEB_DJANGO) from pyworkflow.protocol.params import Strin...
PypiClean
/sushy_oem_idrac-5.0.0-py3-none-any.whl/sushy_oem_idrac/resources/system/raid_service.py
import logging from sushy import exceptions from sushy.resources import base from sushy.resources import common from sushy import taskmonitor from sushy_oem_idrac import constants LOG = logging.getLogger(__name__) class ActionsField(base.CompositeField): convert_to_raid = common.ActionField("#DellRaidService....
PypiClean
/misspellings-2.0c.tar.gz/misspellings-2.0c/misspellings_lib.py
from __future__ import with_statement from collections import defaultdict import os import re import sys import string _NORM_REGEX = re.compile('([a-z])([A-Z][a-z])') _WORD_REGEX = re.compile('[\s_0-9<>/,\.]+') def normalize(word): """Return word with symbols stripped from its ends.""" return word.strip(string....
PypiClean
/walt_server-8.2-py3-none-any.whl/walt/server/processes/main/images/fixowner.py
from __future__ import annotations import typing if typing.TYPE_CHECKING: from walt.server.processes.main.registry import WalTLocalRegistry MSG_SAME_USER = """\ Invalid username. According to your walt.conf file, you are '%s'! """ MSG_IN_USE = """\ Cannot proceed because some images of %s are in use: %s """ MS...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_4/models/volume_group_response.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_4 import models class VolumeGroupResponse(object): """ Attributes: swagger_types (dict): The key is attribute name and the valu...
PypiClean
/casai-home-frontend-20220503.0.tar.gz/casai-home-frontend-20220503.0/hass_frontend/frontend_es5/43209661.js
(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[41360],{23682:function(e,t,n){"use strict";function r(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}n.d(t,{Z:function(){return r}})},90394:function(e,t,n){"use s...
PypiClean
/git-workout-0.0.0.tar.gz/git-workout-0.0.0/README.md
# Git Workout [![Build Status](https://travis-ci.com/judy2k/git-workout.svg?branch=master)](https://travis-ci.com/judy2k/git-workout) [![codecov](https://codecov.io/gh/judy2k/git-workout/branch/master/graph/badge.svg)](https://codecov.io/gh/judy2k/git-workout) A git plugin to shift your commits out of work hours. __...
PypiClean
/django-apm-0.3.0.tar.gz/django-apm-0.3.0/djapm/apm/integrations/discord.py
import requests from typing import Any, Dict, List from djapm.apm import models from djapm.apm.integrations import base __all__ = ("DiscordNotifier",) class DiscordNotifier(base.Notificator): base_url = "https://discord.com/api" def __init__( self, integration: models.Integration, ...
PypiClean
/netbox-inventory-1.4.2.tar.gz/netbox-inventory-1.4.2/netbox_inventory/views/asset.py
import logging from django.contrib import messages from django.db import IntegrityError from django.shortcuts import redirect from django.template import Template from netbox.views import generic from utilities.forms import ConfirmationForm, restrict_form_fields from .. import filtersets, forms, models, tables from ....
PypiClean
/xbus.monitor-0.2.1.zip/xbus.monitor-0.2.1/xbus/monitor/static/monitor_js/sources/assets/devoops/plugins/bootstrapvalidator/bootstrapValidator.js
(function($) { var BootstrapValidator = function(form, options) { this.$form = $(form); this.options = $.extend({}, BootstrapValidator.DEFAULT_OPTIONS, options); if ('disabled' == this.options.live) { // Don't disable the submit buttons if the live validating is disabled ...
PypiClean
/pyzolib-0.3.4.tar.gz/pyzolib-0.3.4/ssdf/ssdf_bin.py
import struct import zlib from . import ClassManager from .ssdf_base import Struct, VirtualArray, SSDFReader, SSDFWriter, Block, _CLASS_NAME from .ssdf_base import np, binary_type, ascii_type # Formatters for struct (un)packing _SMALL_NUMBER_FMT = '<B' _LARGE_NUMBER_FMT = '<Q' _TYPE_FMT = '<B' _PARTITION_LEN_FMT = '...
PypiClean
/Spire.XLS_for_Python-13.5.0-py3-none-any.whl/spire/xls/XlsChartFormat.py
from enum import Enum from plum import dispatch from typing import TypeVar,Union,Generic,List,Tuple from spire.common import * from spire.xls import * from ctypes import * import abc class XlsChartFormat ( XlsObject, IChartFormat, ICloneParent) : """ """ @property def IsPrimaryAxis(self)->bool: ...
PypiClean
/orbit_nrel-1.0.8-py3-none-any.whl/ORBIT/manager.py
__author__ = ["Jake Nunemaker"] __copyright__ = "Copyright 2020, National Renewable Energy Laboratory" __maintainer__ = "Jake Nunemaker" __email__ = ["jake.nunemaker@nrel.gov"] import os import re import datetime as dt import collections.abc as collections from copy import deepcopy from math import ceil from numbers ...
PypiClean
/pictosquare-0.1.1.tar.gz/pictosquare-0.1.1/README.rst
=========== PicToSquare =========== .. image:: https://img.shields.io/pypi/v/pictosquare.svg :target: https://pypi.python.org/pypi/pictosquare .. image:: https://img.shields.io/travis/hithismani/pictosquare.svg :target: https://travis-ci.org/hithismani/pictosquare .. image:: https://readthedocs.org/...
PypiClean
/citymaker_sdk-1.1.15.0.tar.gz/citymaker_sdk-1.1.15.0/citymaker_sdk_test/SDK/RenderControl/ILabel.py
import os, sys,json sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))) import Utils.classmake as CM import Utils.classPath as CP import Utils.SocketApiServe as socketApi from SDK.RenderControl.IRenderable import IRenderable Props={"position":{"t":"IPoint","v":None, "F":"gs"},...
PypiClean
/ais_dom_frontend-20230831.0-py3-none-any.whl/hass_frontend/frontend_latest/86444-MrEDnf-1RzU.js
export const id=86444;export const ids=[86444];export const modules={9381:(e,i,t)=>{var o=t(17463),s=t(68144),a=t(79932),r=t(83448),n=t(47181);t(10983),t(52039);const d={info:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,2...
PypiClean
/ztfy.jqueryui-0.7.12.tar.gz/ztfy.jqueryui-0.7.12/src/ztfy/jqueryui/resources/js/jquery-datetime.min.js
(function($){$.fn.dynDateTime=function(options){$.fn.dynDateTime.defaults={displayArea:null,button:null,eventName:"click",ifFormat:"%Y/%m/%d",daFormat:"%Y/%m/%d",singleClick:true,dateStatusFunc:null,dateText:null,firstDay:null,align:"Br",range:[1900,2999],weekNumbers:true,flat:null,flatCallback:null,onSelect:null,onClo...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/web/app_service_plan_route_for_vnet.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from ._enums import * __all__ = ['AppServicePlanRouteForVnetArgs', 'AppServicePlanRouteForVnet'] @pulumi.input_type class AppServicePlanRouteForVnetArgs: ...
PypiClean
/django-xadmin-0.5.0.tar.gz/django-xadmin-0.5.0/xadmin/static/xadmin/js/xadmin.plugin.quick-form.js
;(function($){ $('form.widget-form').on('post-success', function(e, data){ $(this).data('ajaxform').clean() $('.alert-success #change-link').attr('href', data['change_url']) $('.alert-success').show() }) var AjaxForm = function(element, options) { var that = this this.$form = $(element) ...
PypiClean
/allmydata-tahoe-1.10.2.tar.gz/allmydata-tahoe-1.10.2/src/allmydata/util/happinessutil.py
from copy import deepcopy def failure_message(peer_count, k, happy, effective_happy): # If peer_count < needed_shares, this error message makes more # sense than any of the others, so use it. if peer_count < k: msg = ("shares could be placed or found on only %d " "server(s). " ...
PypiClean
/lightning-2022.10.25-py3-none-any.whl/lightning_lite/strategies/launchers/multiprocessing.py
import os from dataclasses import dataclass from multiprocessing.queues import SimpleQueue from typing import Any, Callable, Dict, Optional, TYPE_CHECKING import torch import torch.backends.cudnn import torch.multiprocessing as mp from typing_extensions import Literal from lightning_lite.strategies.launchers.base imp...
PypiClean
/ibm_watson_openscale-3.0.32-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl/ibm_watson_openscale/supporting_classes/enums.py
# Copyright 2020 IBM 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. # You may obtain a copy of the License at # # http://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed ...
PypiClean
/py-ea-0.0.2.tar.gz/py-ea-0.0.2/pyea/multiobjectivedifferentialevolution.py
from random import shuffle as _shuffle, randint as _randint, random as _random from operator import lt from matplotlib import pyplot as _plt from functools import reduce as _reduce class MultiObjectiveDifferentialEvolution(): def __init__(self, Individual, population_size=50, generations=1000, number_of_mutagens...
PypiClean
/labml-helpers-0.4.89.tar.gz/labml-helpers-0.4.89/labml_helpers/device.py
import torch from labml.configs import BaseConfigs, hyperparams, option class DeviceInfo: def __init__(self, *, use_cuda: bool, cuda_device: int): self.use_cuda = use_cuda self.cuda_device = cuda_device self.cuda_count = torch.cuda.device_count() ...
PypiClean
/python_sec-0.1.6-py3-none-any.whl/edgar/series.py
from typing import Dict from edgar.session import EdgarSession from edgar.utilis import EdgarUtilities from edgar.parser import EdgarParser class Series(): """ ## Overview: ---- """ def __init__(self, session: EdgarSession) -> None: """Initializes the `Series` object. ### Param...
PypiClean
/nomad_broker_cli-1.7.0.tar.gz/nomad_broker_cli-1.7.0/nomad_broker_cli/models/__init__.py
# import all models into this package # if you have many models here with many references from one model to another this may # raise a RecursionError # to avoid this, import only the models that you directly need like: # from from nomad_broker_cli.model.pet import Pet # or import this package, but before doing it, use...
PypiClean
/roverApp-1.0.tar.gz/roverApp-1.0/mainApp/serial_execution.py
import time import paramiko from PyQt5 import QtCore class SerialThread(QtCore.QThread): """""" current_outputs_signal = QtCore.pyqtSignal(str) unreachable_hots_signal = QtCore.pyqtSignal(str) configured_hosts_signal = QtCore.pyqtSignal(str) def __init__(self, user_name, pass_word, commands, host...
PypiClean
/py-az-cli-0.1.8.tar.gz/py-az-cli-0.1.8/pyaz/cosmosdb/sql/role/definition/__init__.py
from ..... pyaz_utils import _call_az def create(account_name, body, resource_group, no_wait=None): ''' Create a SQL role definition under an Azure Cosmos DB account. Required Parameters: - account_name -- Cosmosdb account name. - body -- Role Definition body with Id (Optional for create), DataAct...
PypiClean
/pip_services3_container-3.2.5.tar.gz/pip_services3_container-3.2.5/pip_services3_container/ProcessContainer.py
import os import signal import sys import threading from typing import Optional from pip_services3_commons.config import ConfigParams from pip_services3_components.log import ConsoleLogger from .Container import Container class ProcessContainer(Container): """ Inversion of control (IoC) container that runs ...
PypiClean
/waterch_tasker-0.4.3-py3-none-any.whl/tasker/launcher.py
__all__ = [ 'Launcher', 'launch' ] from argparse import ArgumentParser, Namespace from datetime import datetime from logging import getLogger as get_logger from logging.config import dictConfig as dict_config from os import makedirs, path, curdir from sys import stdout, stderr, path as syspath from typing impo...
PypiClean
/wasp-launcher-0.0.2.tar.gz/wasp-launcher-0.0.2/wasp_launcher/static/angular/1.6.1/i18n/angular-locale_zh-cn.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; $provide.value("$locale", { "DATETIME_FORMATS": { "AMPMS": [ "\u4e0a\u5348", "\u4e0b\u5348" ], "DAY": [ "...
PypiClean
/django_cradmin-10.4.1.tar.gz/django_cradmin-10.4.1/django_cradmin/apps/django_cradmin_js/staticsources/django_cradmin_js/lib/components/CenteredLoadingIndicator.js
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _react = _interopRequireDefault(require("react")); var _LoadingIndicator2 = _interopRequireDefault(require("./LoadingIndicator")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : ...
PypiClean
/v2/model/batch_stop_servers_option.py
import pprint import re import six class BatchStopServersOption: """ 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...
PypiClean