id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/amdgpu_pptable-0.9.2-py3-none-any.whl/amdgpu_pptable/generated/smu_v11_0_pptable_navi10.py
import ctypes class struct_atom_common_table_header(ctypes.LittleEndianStructure): _pack_ = True # source:False _fields_ = [ ('structuresize', ctypes.c_uint16), ('format_revision', ctypes.c_ubyte), ('content_revision', ctypes.c_ubyte), ] class struct_c__SA_I2cControllerConfig_t(ctypes.Litt...
PypiClean
/visible_model_runner-0.0.2-py3-none-any.whl/visible_model_runner/proto/NamedDataSet_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
/pygeoip-0.3.2.tar.gz/pygeoip-0.3.2/CHANGELOG.md
# ChangeLog for pygeoip ### Release 0.3.2 * New: Support for Python 3.4 * New: Support for NetSpeedCell databases (Thanks to Gregory Oschwald) * Fix: Improved exception handling (Thanks to Oliver Keyes) * Fix: Return country for region lookups outside US and CA Not yet uploaded to PyPi ### Release 0.3.1 * New: Doc...
PypiClean
/pymvpa2-2.6.5.tar.gz/pymvpa2-2.6.5/doc/sphinxext/autosummary/generate.py
import os import re import sys import pydoc import optparse from jinja2 import FileSystemLoader, TemplateNotFound from jinja2.sandbox import SandboxedEnvironment from sphinx import package_dir from sphinx.ext.autosummary import import_by_name, get_documenter from sphinx.jinja2glue import BuiltinTemplateLoader from sp...
PypiClean
/modislock-0.2.1.tar.gz/modislock-0.2.1/modislock_webservice/static/js/libs/bootstrap.js
if (typeof jQuery === 'undefined') { throw new Error('Bootstrap\'s JavaScript requires jQuery') } +function ($) { 'use strict'; var version = $.fn.jquery.split(' ')[0].split('.') if ((version[0] < 2 && version[1] < 9) || (version[0] == 1 && version[1] == 9 && version[2] < 1) || (version[0] > 3)) { throw ne...
PypiClean
/typeidea_czz-0.15-py3-none-any.whl/extra_apps/xadmin/plugins/passwords.py
from django.contrib.auth.forms import PasswordResetForm, SetPasswordForm from django.contrib.auth.tokens import default_token_generator from django.contrib.auth.views import PasswordResetConfirmView as password_reset_confirm from django.template.response import TemplateResponse from django.utils.translation import uget...
PypiClean
/EdaSpiffWorkflow-0.0.2.tar.gz/EdaSpiffWorkflow-0.0.2/EdaSpiffWorkflow_Aadesh_G/bpmn/parser/event_parsers.py
from lxml import etree from .ValidationException import ValidationException from .TaskParser import TaskParser from .util import first, one from ..specs.events import (TimerEventDefinition, MessageEventDefinition, ErrorEventDefinition, EscalationEventDefinition,SignalEventDefinition, ...
PypiClean
/nodepy-runtime-2.1.5.tar.gz/nodepy-runtime-2.1.5/nodepy/resolver.py
from nodepy import base, utils from nodepy.utils import json, pathlib import itertools import os import warnings def load_package(context, directory, doraise_exists=True): """ Loads a #base.Package from the specified *directory* in TOML format. """ if not isinstance(directory, pathlib.Path): directory = ...
PypiClean
/fspath-20230629.tar.gz/fspath-20230629/README.rst
====== fspath ====== After 10 years juggling with os.path, zipfile & Co. I thought it is time to bring back more *pythonic* to APIs. It is made with the philosophy that API's should be intuitive and their defaults should at least cover 80% of what programmer daily needs. Started with the semantic file system pathes, ...
PypiClean
/ebook-converter-noimage-4.12.2.tar.gz/ebook-converter-noimage-4.12.2/ebook_converter/utils/cleantext.py
import re import html.entities def ascii_pat(for_binary=False): attr = 'binary' if for_binary else 'text' ans = getattr(ascii_pat, attr, None) if ans is None: chars = set(range(32)) - {9, 10, 13} chars.add(127) pat = '|'.join(map(chr, chars)) if for_binary: pat ...
PypiClean
/RsCMPX_WcdmaMeas-4.0.185.tar.gz/RsCMPX_WcdmaMeas-4.0.185/RsCMPX_WcdmaMeas/Implementations/WcdmaMeas/MultiEval/__init__.py
from ....Internal.Core import Core from ....Internal.CommandsGroup import CommandsGroup # noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection class MultiEvalCls: """MultiEval commands group definition. 529 total commands, 8 Subgroups, 3 group commands""" def __init__(self, core: Core, parent):...
PypiClean
/v1/model/error_response.py
import pprint import re import six class ErrorResponse: """ 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 defin...
PypiClean
/jupytery_react-0.0.6.tar.gz/jupytery_react-0.0.6/packages/widgets/src/widgets/settings/SettingsRedux.ts
export type ISettings = number; export interface ISettingsState { outputs: ISettings; } export const settingsInitialState: ISettingsState = { outputs: 0 } /* Selectors */ import { useSelector } from "react-redux"; export const selectSettings = (): ISettingsState => useSelector((state: ISettingsState) => { ...
PypiClean
/aqt-2.1.66-py3-none-any.whl/_aqt/data/web/js/vendor/plot.js
(function($){$.color={};$.color.make=function(r,g,b,a){var o={};o.r=r||0;o.g=g||0;o.b=b||0;o.a=a!=null?a:1;o.add=function(c,d){for(var i=0;i<c.length;++i)o[c.charAt(i)]+=d;return o.normalize()};o.scale=function(c,f){for(var i=0;i<c.length;++i)o[c.charAt(i)]*=f;return o.normalize()};o.toString=function(){if(o.a>=1){retu...
PypiClean
/django-richtextfield-1.6.1.tar.gz/django-richtextfield-1.6.1/testproject/settings.py
import os BASE_DIR = os.path.dirname(os.path.dirname(__file__)) SECRET_KEY = '--1oh7*5-1_rr%*34^&@e^b59(vgv=zm1wt(wm1ga=pfm73(9i' DEBUG = True INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', 'django.contrib.sessions', 'django.contrib.messages', ...
PypiClean
/astroquery-integral-0.4.5.tar.gz/astroquery-integral-0.4.5/astroquery/utils/tap/model/job.py
import time from astroquery.utils.tap.model import modelutils from astroquery.utils.tap.xmlparser import utils from astroquery.utils.tap import taputils import requests import sys __all__ = ['Job'] class Job: """Job class """ def __init__(self, async_job, query=None, connhandler=None): """Const...
PypiClean
/ci-cmg-cruise-schema-orm-1.1.2.tar.gz/ci-cmg-cruise-schema-orm-1.1.2/src/ncei_cruise_schema/entity/dataset.py
from ..orm.entity import Entity, Column from ..orm.column_consts import DATE_PLACEHOLDER, date_select_name, WKT_PLACEHOLDER, wkt_select_name class Dataset(Entity): @staticmethod def _table(): return "datasets" def __init__( self, id=None, other_id=None, name=None, dataset_type...
PypiClean
/siibra_cli-0.2a1-py3-none-any.whl/siibra_cli/cli.py
# Copyright 2018-2021 # Institute of Neuroscience and Medicine (INM-1), Forschungszentrum Jülich GmbH # 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/LIC...
PypiClean
/pypeit-1.13.0.tar.gz/pypeit-1.13.0/doc/pypeit_file.rst
.. include:: include/links.rst .. _pypeit_file: ===================== PypeIt Reduction File ===================== Overview ======== The PypeIt Reduction File is *the* critical component to any successful run of PypeIt. It is where you set (1) how PypeIt is executed using its :ref:`parameters` and (2) what data fi...
PypiClean
/tensorflow_federated-0.61.0-py3-none-manylinux_2_31_x86_64.whl/tensorflow_federated/python/core/impl/computation/computation_impl.py
"""Defines the implementation of the base Computation interface.""" from typing import Any, Optional from tensorflow_federated.proto.v0 import computation_pb2 as pb from tensorflow_federated.python.common_libs import py_typecheck from tensorflow_federated.python.core.impl.compiler import building_blocks from tensorfl...
PypiClean
/module/orm/import_utilities.py
import datetime from typing import List, Dict from stixorm.module.authorise import authorised_mappings import copy import logging from stixorm.module.typedb_lib.factories.auth_factory import get_auth_factory_instance from stixorm.module.typedb_lib.factories.definition_factory import get_definition_factory_instance fr...
PypiClean
/opentps_core-1.0.7.tar.gz/opentps_core-1.0.7/opentps/core/processing/planOptimization/solvers/bfgs.py
import json import logging import time import numpy as np import scipy.optimize from scipy.optimize import Bounds from opentps.core.processing.planOptimization.acceleration.linesearch import LineSearch from opentps.core.processing.planOptimization.solvers.gradientDescent import GradientDescent logger = logging.getLog...
PypiClean
/tf-models-official-2.13.1.tar.gz/tf-models-official-2.13.1/official/projects/mobilebert/run_distillation.py
# pylint: disable=line-too-long """Creating the task and start trainer.""" import pprint from absl import app from absl import flags from absl import logging import gin from official.common import distribute_utils from official.common import flags as tfm_flags from official.core import config_definitions as cfg from...
PypiClean
/openqaoa-core-0.2.0rc1.tar.gz/openqaoa-core-0.2.0rc1/README.md
<div align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://github.com/entropicalabs/openqaoa/blob/main/.github/images/openqaoa_logo_offW.png" width="650"> <img alt="OpenQAOA" src="https://github.com/entropicalabs/openqaoa/blob/main/.github/images/openqaoa_logo.png" width="650"> </p...
PypiClean
/horizon-23.2.0.tar.gz/horizon-23.2.0/openstack_dashboard/static/app/core/server_groups/server-groups.module.js
(function() { 'use strict'; /** * @ngdoc overview * @ngname horizon.app.core.server_groups * * @description * Provides all of the services and widgets required * to support and display server groups related content. */ angular .module('horizon.app.core.server_groups', [ 'horizon.fr...
PypiClean
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/miller-rabin/README.md
# Miller-Rabin #### LICENSE This software is licensed under the MIT License. Copyright Fedor Indutny, 2014. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including withou...
PypiClean
/conan-2.0.10.tar.gz/conan-2.0.10/conans/paths/__init__.py
import os import platform from pathlib import Path if platform.system() == "Windows": from conans.util.windows import conan_expand_user else: conan_expand_user = os.path.expanduser DEFAULT_CONAN_HOME = ".conan2" def get_conan_user_home(): def _find_conanrc_file(): path = Path(os.getcwd()) ...
PypiClean
/fds.sdk.FactSetEstimates-1.1.1-py3-none-any.whl/fds/sdk/FactSetEstimates/model/segment_type.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.FactSetEstimates.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, none...
PypiClean
/mycelyso_inspector-1.0.0rc2-py3-none-any.whl/mycelyso_inspector/static/bower_components/jquery-ui/ui/widgets/progressbar.js
( function( factory ) { if ( typeof define === "function" && define.amd ) { // AMD. Register as an anonymous module. define( [ "jquery", "../version", "../widget" ], factory ); } else { // Browser globals factory( jQuery ); } }( function( $ ) { return $.widget( "ui.progressbar", { version: "1...
PypiClean
/pi-env-0.1.2rc1.tar.gz/pi-env-0.1.2rc1/pi/_requires/docker/models/services.py
import copy from pi._requires.docker.errors import create_unexpected_kwargs_error, InvalidArgument from pi._requires.docker.types import TaskTemplate, ContainerSpec, Placement, ServiceMode from .resource import Model, Collection class Service(Model): """A service.""" id_attribute = 'ID' @property def...
PypiClean
/fusionsc-2.0.0a2.tar.gz/fusionsc-2.0.0a2/vendor/catch2/tools/scripts/updateDocumentToC.py
# # updateDocumentToC.py # # Insert table of contents at top of Catch markdown documents. # # This script is distributed under the GNU General Public License v3.0 # # It is based on markdown-toclify version 1.7.1 by Sebastian Raschka, # https://github.com/rasbt/markdown-toclify # import argparse import glob import os...
PypiClean
/matomo_dl-1.3.0.tar.gz/matomo_dl-1.3.0/matomo_dl/distribution/file.py
import json import os import pathlib import typing as typ from hashlib import sha256 import attr import cattr import toml from .customisations import Customisations from .version import AnyVersion, Version class Plugin: pass @attr.s class VersionedPlugin(Plugin): version: Version = attr.ib() @attr.s cl...
PypiClean
/tupak-0.2.3.tar.gz/tupak-0.2.3/tupak/gw/waveform_generator.py
import numpy as np from ..core import utils class WaveformGenerator(object): def __init__(self, duration=None, sampling_frequency=None, start_time=0, frequency_domain_source_model=None, time_domain_source_model=None, parameters=None, parameter_conversion=None, w...
PypiClean
/gbptestneutron-0.9.0.tar.gz/gbptestneutron-0.9.0.dev194.g9d5bd52/neutron/plugins/hyperv/agent/security_groups_driver.py
from neutron.agent import firewall from neutron.openstack.common import log as logging from neutron.plugins.hyperv.agent import utilsfactory from neutron.plugins.hyperv.agent import utilsv2 LOG = logging.getLogger(__name__) class HyperVSecurityGroupsDriver(firewall.FirewallDriver): """Security Groups Driver. ...
PypiClean
/netoprmgr-1.3.5.tar.gz/netoprmgr-1.3.5/sqlalchemy/sql/base.py
import itertools import re from .visitors import ClauseVisitor from .. import exc from .. import util PARSE_AUTOCOMMIT = util.symbol("PARSE_AUTOCOMMIT") NO_ARG = util.symbol("NO_ARG") class Immutable(object): """mark a ClauseElement as 'immutable' when expressions are cloned.""" def unique_params(self, *o...
PypiClean
/python-ldap-3.4.3.tar.gz/python-ldap-3.4.3/Tests/t_ldap_syncrepl.py
import os import shelve import unittest import binascii # Switch off processing .ldaprc or ldap.conf before importing _ldap os.environ['LDAPNOINIT'] = '1' import ldap from ldap.ldapobject import SimpleLDAPObject from ldap.syncrepl import SyncreplConsumer, SyncInfoMessage from slapdtest import SlapdObject, SlapdTestC...
PypiClean
/mypy_boto3_lookoutvision-1.28.36-py3-none-any.whl/mypy_boto3_lookoutvision/paginator.py
from typing import Generic, Iterator, TypeVar from botocore.paginate import PageIterator, Paginator from .type_defs import ( ListDatasetEntriesResponseTypeDef, ListModelPackagingJobsResponseTypeDef, ListModelsResponseTypeDef, ListProjectsResponseTypeDef, PaginatorConfigTypeDef, TimestampTypeDe...
PypiClean
/mindpowered_financecalculator-0.0.2-py3-none-any.whl/financecalculator.py
import sys import math as python_lib_Math import math as Math from os import path as python_lib_os_Path import inspect as python_lib_Inspect import os as python_lib_Os from maglev import maglev_MagLev from maglev import maglev_MagLevResult from maglev import maglev_MagLevError from maglev import maglev_MagLevAny from ...
PypiClean
/openbabel_wheel-3.1.1.17-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/openbabel/pybel.py
import sys import os.path import tempfile import xml.etree.ElementTree as ET if sys.platform[:4] == "java": import org.openbabel as ob import java.lang.System java.lang.System.loadLibrary("openbabel_java") _obfuncs = ob.openbabel_java _obconsts = ob.openbabel_javaConstants import javax elif sys...
PypiClean
/jetblack-fixengine-1.0.0a2.tar.gz/jetblack-fixengine-1.0.0a2/jetblack_fixengine/persistence/sql_store.py
import sqlite3 from typing import Any, List, Mapping, MutableMapping, Tuple import aiosqlite from ..types import Session, Store CREATE_SEQNUM_TABLE_SQL = """ CREATE TABLE IF NOT EXISTS initiator_seqnums ( sender_comp_id VARCHAR(64) NOT NULL, target_comp_id VARCHAR(64) NOT NULL, outgoing_seqnum INT NOT N...
PypiClean
/pose_format-0.2.2-py3-none-any.whl/pose_format/utils/reader.py
import struct from typing import Tuple import numpy as np from dataclasses import dataclass @dataclass class ConstStructs: float: struct.Struct = struct.Struct("<f") short: struct.Struct = struct.Struct("<h") ushort: struct.Struct = struct.Struct("<H") double_ushort: struct.Struct = struct.Struct("...
PypiClean
/bitdust_p2p-0.0.3-py3-none-any.whl/bitdust/lib/schedule.py
from __future__ import absolute_import import os import sys import time import calendar from six.moves import range if __name__ == '__main__': sys.path.append(os.path.abspath('..')) from logs import lg from system import bpio from lib import misc from lib import maths #------------------------------------------...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/intune/android_mam_policy_by_name.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from .. import _utilities, _tables __all__ = ['AndroidMAMPolicyByName'] class AndroidMAMPolicyByName(pulumi.CustomResource): def __init__(__self__, resource_name: str, ...
PypiClean
/mipt_npm_hv_controls-0.2.2-py3-none-any.whl/hv/ui/generators/custom.py
import itertools import pathlib from PyQt5 import QtCore from PyQt5.QtCore import QSettings from PyQt5.QtWidgets import QVBoxLayout, QLineEdit, QHBoxLayout, QPushButton, QFileDialog from hv.hv_device import HVDevice from hv.ui.generators import Generator, GeneratorWidget TEMPLATE_GENERATOR = """import math TIME_STE...
PypiClean
/fastapi_health_monitor-1.0.1-py3-none-any.whl/fastapi_health_monitor/healthmonitor.py
import logging from typing import Optional, List, Callable from fastapi import FastAPI, APIRouter, Response, status from .constants import HealthStatus from .models import ComponentHealth, SystemHealth from .manager import HealthCheckManager from .checkrunner import CheckRunner logger = logging.getLogger(__name__) r...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/compute/v20180601/gallery_image.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__ = ['GalleryImage'] class GalleryImage(pulumi.CustomResource): def __init__(__self__, ...
PypiClean
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/request/AlipayInsAutoAutoinsprodQuoteApplyRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayInsAutoAutoinsprodQuoteApplyModel import AlipayInsAutoAutoinsprodQuoteApplyModel class AlipayInsAutoAutoinsprodQuoteApplyRequest(object): def __init__(self, biz_model=...
PypiClean
/pyssf-0.4.7.tar.gz/pyssf-0.4.7/occi/backend.py
def is_related_valid(link): ''' Verifies that a link is consistent. link -- The link which should be verified. ''' if link.target.kind == link.kind.related: return True else: return False def is_attr_mutable(category, attribute_name): ''' Checks if an attribute is muta...
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/uvc/camera.py
from __future__ import annotations from datetime import datetime import logging import re import requests from uvcclient import camera as uvc_camera, nvr import voluptuous as vol from homeassistant.components.camera import PLATFORM_SCHEMA, Camera, CameraEntityFeature from homeassistant.const import CONF_PASSWORD, CO...
PypiClean
/toolcheck1-0.1.tar.gz/toolcheck1-0.1/src/dna_audit_tool/main.py
import os import argparse from datetime import datetime from dna_audit_tool.common.utils import helper from dna_audit_tool.common.service import dat_service from dna_audit_tool.common.constants import application_constants as constants from dna_audit_tool.common.utils.initialize_logger import logger class Main: d...
PypiClean
/xmldirector.plonecore-2.1.1.zip/xmldirector.plonecore-2.1.1/xmldirector/plonecore/browser/resources/ag-grid/src/ts/headerRendering/bodyDropTarget.ts
import {DropTarget, DraggingEvent, DragAndDropService} from "../dragAndDrop/dragAndDropService"; import {Autowired, PostConstruct, Context} from "../context/context"; import {MoveColumnController} from "./moveColumnController"; import {Column} from "../entities/column"; import {GridPanel} from "../gridPanel/gridPanel";...
PypiClean
/paperwork-backend-2.1.2.tar.gz/paperwork-backend-2.1.2/src/paperwork_backend/cairo/cache.py
import logging import openpaperwork_core import openpaperwork_core.deps import openpaperwork_core.promise CAIRO_AVAILABLE = False GLIB_AVAILABLE = False try: import cairo CAIRO_AVAILABLE = True except (ImportError, ValueError): pass try: from gi.repository import GObject GLIB_AVAILABLE = True ex...
PypiClean
/Annalist-0.5.18.tar.gz/Annalist-0.5.18/annalist_root/sampledata/empty/annalist_site/c/_annalist_site/d/_enum_render_type/Render-types.md
# Values of annal:Enum_render_type property Obtained by: grep -rh annal:Enum_render_type ./annalist | awk '{print $3}' | sort | uniq Results (reorganized and "attic" values removed) "annal:Enum_render_type/EntityId" "annal:Enum_render_type/EntityTypeId" "annal:Enum_render_type/EntityRef" "annal:...
PypiClean
/pysploit-0.1.0.tar.gz/pysploit-0.1.0/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install pysploit, run this command in your terminal: .. code-block:: console $ pip install pysploit If you don't have `pip`_ installed, this `Python installation guide`_ can guide you through the process. .. _pip: h...
PypiClean
/jdcloud_cli-1.2.12.tar.gz/jdcloud_cli-1.2.12/jdcloud_cli/controllers/services/detection.py
# Copyright 2018 JDCLOUD.COM # # 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 to in writing,...
PypiClean
/docker_gobject-0.0.2-py3-none-any.whl/docker_gobject/image.py
import gi, json, datetime gi.require_version("Gtk", "4.0") gi.require_version('GLib', '2.0') from gi.repository import GObject, Gtk, GLib, Gio from docker_gobject.container import Config class Image(GObject.Object): __gtype_name__ = "Image" id: GObject.Property = GObject.Property(type=str) parent_id: GObj...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/MiniVersionBaseInfo.py
import json from alipay.aop.api.constant.ParamConstants import * class MiniVersionBaseInfo(object): def __init__(self): self._app_version = None self._build_source = None self._bundle_id = None self._dev_id = None self._gray_strategy = None self._mini_app_id = Non...
PypiClean
/compose-py-0.3.0.tar.gz/compose-py-0.3.0/README.md
# compose-py A Python library for parsing and loading [Compose](https://github.com/compose-spec/compose-spec) files ## Installation ```sh pip install compose-py ``` By default, the library doesn't have any dependencies for dataclass libraries. Choose 'pydantic' or 'dataclasses' and install the library. We also prov...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/me/calendar_groups/item/calendars/item/calendar_view/item/instances/item/attachments/attachments_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
/lockstep_sdk-2023.28.10-py3-none-any.whl/lockstep/clients/transactions_client.py
from lockstep.lockstep_response import LockstepResponse from lockstep.models.errorresult import ErrorResult from lockstep.models.transactiondetailmodel import TransactionDetailModel from lockstep.models.transactionmodeltransactionsummarytotalmodelsummaryfetchresult import TransactionModelTransactionSummaryTotalModelSu...
PypiClean
/keyfactor_v_1_client-1.0.3-py3-none-any.whl/keyfactor_v_1_client/models/keyfactor_api_models_ssl_update_network_request.py
from typing import Any, Dict, List, Type, TypeVar, Union, cast import attr from ..models.keyfactor_api_models_ssl_quiet_hour_request import KeyfactorApiModelsSslQuietHourRequest from ..models.keyfactor_common_scheduling_keyfactor_schedule import KeyfactorCommonSchedulingKeyfactorSchedule from ..types import UNSET, Un...
PypiClean
/dash_aladin_lite-0.1.1.tar.gz/dash_aladin_lite-0.1.1/README.md
# dash_aladin_lite Dash Aladin Lite is a Dash component library for [Aladin Sky Atlas](https://aladin.cds.unistra.fr/aladin.gml). * Free software: BSD license * Documentation: https://toltec-astro.github.io/dash_aladin_lite ## Installation ### PyPI ```sh pip install dash-aladin-lite ``` ### Anaconda ```sh conda ...
PypiClean
/google-csv-helper-1.1.1.tar.gz/google-csv-helper-1.1.1/google_csv_helper/cmd.py
import sys import argparse import datetime from google_csv_helper import __version__ from google_csv_helper import adsense_csv_helper from google_csv_helper import ga3_csv_helper from google_csv_helper import ga4_csv_helper def main(): def valid_date(data: str): output = datetime.date.today() if d...
PypiClean
/quinteng-chaoyue-1.0.0.tar.gz/quinteng-chaoyue-1.0.0/quinteng/circuit/library/n_local/pauli_two_design.py
from typing import Optional import numpy as np from quinteng.circuit import QuantumCircuit from .two_local import TwoLocal class PauliTwoDesign(TwoLocal): r"""The Pauli Two-Design ansatz. This class implements a particular form of a 2-design circuit [1], which is frequently studied in quantum machine ...
PypiClean
/vorpy-0.9.0.tar.gz/vorpy-0.9.0/README.md
# Vorpy A Python package for (usually math-related) code that I've written that finds use over and over. Vorpy is short for "VictOR dods' PYthon package". Plus if you Google "vorpy", you come up with some pretty [hilarious](http://www.urbandictionary.com/define.php?term=Vorpy) [shit](http://vorpycrill.bandcamp.com/r...
PypiClean
/collada_wt-0.4.tar.gz/collada_wt-0.4/collada_wt/collada_wt.py
import collada import numpy as np def rotation_matrix(x_degrees=0,y_degrees=0,z_degrees=0): theta_x = np.radians(x_degrees) rx = np.array([[1,0,0], [0,np.cos(theta_x),-np.sin(theta_x)], [0,np.sin(theta_x), np.cos(theta_x)]]) theta_y = np.radians(y_degrees) ...
PypiClean
/python_clu-0.8.5-py3-none-any.whl/clu/scripts/treeline.py
from __future__ import print_function import clu.abstract import collections.abc import contextlib import copy import shlex import sys from itertools import filterfalse from clu.config.abc import NamespaceWalker from clu.config.keymap import articulate, FrozenNested from clu.config.ns import get_ns_and_key, split_ns...
PypiClean
/tripleo-operator-ansible-0.9.0.tar.gz/tripleo-operator-ansible-0.9.0/roles/tripleo_undercloud_backup/README.md
tripleo_undercloud_backup ========================= A role to run backup of a TripleO undercloud. Requirements ------------ None. Role Variables -------------- * `tripleo_undercloud_backup_become`: (Boolean) Run the command as root. This needs to be true as the commands require root privileges to run. Default: tru...
PypiClean
/robot_grpc-0.0.4.tar.gz/robot_grpc-0.0.4/robot_grpc/node_modules/is-retry-allowed/readme.md
# is-retry-allowed [![Build Status](https://travis-ci.org/floatdrop/is-retry-allowed.svg?branch=master)](https://travis-ci.org/floatdrop/is-retry-allowed) Is retry allowed for Error? ## Install ``` $ npm install --save is-retry-allowed ``` ## Usage ```js const isRetryAllowed = require('is-retry-allowed'); isRet...
PypiClean
/v1/model/set_tenant_info_req.py
import pprint import re import six class SetTenantInfoReq: """ 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 de...
PypiClean
/noah-vega-1.8.5.tar.gz/noah-vega-1.8.5/vega/networks/pytorch/losses/sum_loss.py
# Copyright (C) 2020. Huawei Technologies Co., Ltd. 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 require...
PypiClean
/smc-python-0.6.2.tar.gz/smc-python-0.6.2/smc/policy/policy.py
import collections from smc.api.exceptions import PolicyCommandFailed from smc.administration.tasks import Task from smc.base.model import Element, lookup_class, ElementRef class Policy(Element): """ Policy is the base class for all policy types managed by the SMC. This base class is not intended to be in...
PypiClean
/zdppy_log-0.2.0.tar.gz/zdppy_log-0.2.0/README.md
# zdppy_log python的日志库 项目地址:https://github.com/zhangdapeng520/zdppy_log ## 版本历史 - v0.1.9 新增:自动记录动态参数和字典参数 - v0.2.0 新增:代码优化和示例丰富 ## 安装方式 ```shell script pip install zdppy_log ``` ## 使用方式 ```python from zdppy_log import Log log1 = Log("logs/zdppy/zdppy_log1.log") @log1.catch() def my_function(x, y, z): # A...
PypiClean
/rl-coach-1.0.1.tar.gz/rl-coach-1.0.1/rl_coach/environments/environment.py
import operator import time from collections import OrderedDict from typing import Union, List, Tuple, Dict import numpy as np from rl_coach import logger from rl_coach.base_parameters import Parameters from rl_coach.base_parameters import VisualizationParameters from rl_coach.core_types import GoalType, ActionType,...
PypiClean
/google-ads-21.3.0.tar.gz/google-ads-21.3.0/google/ads/googleads/v12/errors/types/query_error.py
import proto # type: ignore __protobuf__ = proto.module( package="google.ads.googleads.v12.errors", marshal="google.ads.googleads.v12", manifest={"QueryErrorEnum",}, ) class QueryErrorEnum(proto.Message): r"""Container for enum describing possible query errors. """ class QueryError(proto.E...
PypiClean
/ajenti.plugin.core-0.102.tar.gz/ajenti.plugin.core-0.102/ajenti_plugin_core/resources/vendor/core.js/library/modules/_iter-define.js
'use strict'; var LIBRARY = require('./_library'); var $export = require('./_export'); var redefine = require('./_redefine'); var hide = require('./_hide'); var Iterators = require('./_iterators'); var $iterCreate = require('./_iter-create'); var setToStringTag = require('./_set-to-string-tag'); var getPrototypeOf = re...
PypiClean
/invenio-requests-2.11.1.tar.gz/invenio-requests-2.11.1/invenio_requests/services/user_moderation/service.py
"""User moderation service.""" from flask import current_app from invenio_accounts.models import Role from invenio_i18n import gettext as _ from invenio_records_resources.services.uow import unit_of_work from invenio_search.engine import dsl from invenio_requests.customizations.user_moderation.user_moderation import (...
PypiClean
/mathematical-expression-py-1.2.0.tar.gz/mathematical-expression-py-1.2.0/mathematical_expression/core/calculation/bool/booleanCalculation2.py
import re from mathematical_expression.core.calculation.bool.booleanCalculation import BooleanCalculation from mathematical_expression.core.container.CalculationBooleanResults import CalculationBooleanResults from mathematical_expression.core.container.CalculationNumberResults import CalculationNumberResults from math...
PypiClean
/pixelcms_server-0.4.2-py3-none-any.whl/cms/admin_addons/dashboard.py
from django.utils.translation import ugettext_lazy as _ from grappelli.dashboard import modules, Dashboard from grappelli.dashboard.utils import get_admin_site_name class IndexDashboard(Dashboard): def init_with_context(self, context): site_name = get_admin_site_name(context) self.children.appen...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/push/camera.py
from __future__ import annotations import asyncio from collections import deque from datetime import timedelta import logging import aiohttp import async_timeout import voluptuous as vol from homeassistant.components import webhook from homeassistant.components.camera import DOMAIN, PLATFORM_SCHEMA, STATE_IDLE, Came...
PypiClean
/h2o_pysparkling_2.2-3.36.1.5-1.tar.gz/h2o_pysparkling_2.2-3.36.1.5-1/ai/h2o/sparkling/ml/features/H2OAutoEncoder.py
from warnings import warn from pyspark import keyword_only from ai.h2o.sparkling.Initializer import Initializer from ai.h2o.sparkling.ml.Utils import Utils from ai.h2o.sparkling.ml.features.H2OAutoEncoderBase import H2OAutoEncoderBase from ai.h2o.sparkling.ml.models.H2OAutoEncoderMOJOModel import H2OAutoEncoderMOJOMod...
PypiClean
/faker-edu-1.0.0.tar.gz/faker-edu-1.0.0/faker_edu/__init__.py
from faker import Faker from faker.generator import Generator import faker.providers.address.en_US import random INSTITUTIONTYPES = { 'University', 'College', 'Junior College', 'State University' } TOPICS = { 'Cloud', 'ABC Computing', 'Friendly', 'Sunshine', 'XYZ', 'Rainbow', ...
PypiClean
/UP-Manager-0.0.0.tar.gz/UP-Manager-0.0.0/django/contrib/auth/management/commands/createsuperuser.py
from __future__ import unicode_literals import getpass import sys from optparse import make_option from django.contrib.auth import get_user_model from django.contrib.auth.management import get_default_username from django.core import exceptions from django.core.management.base import BaseCommand, CommandError from dj...
PypiClean
/js_sdk-12.0.0.tar.gz/js_sdk-12.0.0/jumpscale/packages/chatflows/actors/chatbot.py
from jumpscale.servers.gedis.baseactor import BaseActor, actor_method from jumpscale.loader import j import base64 import sys import uuid import importlib import os class ChatFlows(BaseActor): def __init__(self): super().__init__() self.chats = {} self.sessions = {} @actor_method ...
PypiClean
/package_andraziel-0.0.1.tar.gz/package_andraziel-0.0.1/README.md
# M1-2022-git ## Introduction This repository is a fork from the previous repository. The bugs in the converter have been fixed and now we want to publish our work as a publicly available python package. ## Getting started You should be working from **your own repository** that is a fork of M1-2022-git-workflow. In o...
PypiClean
/cbtop-1.0.1.tar.gz/cbtop-1.0.1/lib/membase/helper/rebalance_helper.py
from random import shuffle import time import logger from membase.api.exception import StatsUnavailableException, \ ServerAlreadyJoinedException, RebalanceFailedException from membase.api.rest_client import RestConnection, RestHelper from membase.helper.bucket_helper import BucketOperationHelper from memcached.help...
PypiClean
/SwissArmyTransformer-0.4.5.tar.gz/SwissArmyTransformer-0.4.5/sat/model/official/glm_model.py
import torch import torch.nn as nn from sat.model.base_model import BaseModel, BaseMixin class BlockPositionEmbeddingMixin(BaseMixin): def __init__(self, max_sequence_length, hidden_size, init_method_std=0.02): super(BlockPositionEmbeddingMixin, self).__init__() self.max_sequence_length = max_sequ...
PypiClean
/Owlready-0.3.1.tar.gz/Owlready-0.3.1/doc/disjoint.rst
Disjointness and open world assumption ====================================== By default, OWL considers the world as 'open', *i.e.* everything that is not stated in the ontology is not 'false' but 'possible' (this is known as *open world assumption*). Therfore, things and facts that are 'false' or 'impossible' must be...
PypiClean
/picsellia_tf2-0.11.10.tar.gz/picsellia_tf2-0.11.10/picsellia_tf2/slim/datasets/download_and_convert_cifar10.py
r"""Downloads and converts cifar10 data to TFRecords of TF-Example protos. This module downloads the cifar10 data, uncompresses it, reads the files that make up the cifar10 data and creates two TFRecord datasets: one for train and one for test. Each TFRecord dataset is comprised of a set of TF-Example protocol buffers...
PypiClean
/ml_quant_risk-0.3.2.tar.gz/ml_quant_risk-0.3.2/ml_quant_risk/MC.py
import pandas as pd import numpy as np #Calculate the exponentially weighted covariance matrix def expo_weighted_cov(ret_data,w_lambda): weight = np.zeros(len(ret_data)) for i in range(len(ret_data)): weight[len(ret_data)-1-i] = (1-w_lambda)*w_lambda**i weight = weight/sum(weight) ret_means = ...
PypiClean
/owl_finder-0.1.13-py3-none-any.whl/owl_finder/singlequery/dmo/owl_query_extract.py
from collections import defaultdict from baseblock import BaseObject from rdflib import Graph, Literal, URIRef from rdflib.plugins.sparql.processor import SPARQLResult from owl_finder.singlequery.dto import QueryResultType class OwlQueryExtract(BaseObject): """ Perform the RDF Query """ def __init__(self, ...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/networkrepository/roadroadnetca.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def RoadRoadnetCa( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/networkrepository", **additional_graph_kwarg...
PypiClean
/nsg-python-sdk-0.0.4.tar.gz/nsg-python-sdk-0.0.4/apps/views_app.py
import argparse import inspect import json import sys import nsg # import customer's views app. This is supposed to be their "old" script with no changes from scripts import views def find_class(): """ inspect imported module `tags` to find and return class that has method `execute` """ klasses = [x[1...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_21/models/transfer.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_21 import models class Transfer(object): """ Attributes: swagger_types (dict): The key is attribute name and the value is attri...
PypiClean
/toshi_hazard_store-0.7.5.tar.gz/toshi_hazard_store-0.7.5/toshi_hazard_store/query/gridded_hazard_query.py
import itertools import logging from typing import Iterable, Iterator from toshi_hazard_store.model.gridded_hazard import GriddedHazard log = logging.getLogger(__name__) mGH = GriddedHazard def get_one_gridded_hazard( hazard_model_id: str, location_grid_id: str, vs30: float, imt: str, agg: str...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/groups/item/sites/item/term_store/sets/sets_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
/windows/networking/connectivity/__init__.py
import typing, winrt import enum _ns_module = winrt._import_ns_module("Windows.Networking.Connectivity") try: import winrt.windows.foundation except: pass try: import winrt.windows.foundation.collections except: pass try: import winrt.windows.networking except: pass try: import winrt.w...
PypiClean
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/platform/operations/payment/create_user_payment_order.py
# template file: ags_py_codegen # pylint: disable=duplicate-code # pylint: disable=line-too-long # pylint: disable=missing-function-docstring # pylint: disable=missing-module-docstring # pylint: disable=too-many-arguments # pylint: disable=too-many-branches # pylint: disable=too-many-instance-attributes # pylint: dis...
PypiClean
/ecs_composex-0.24.0rc1.tar.gz/ecs_composex-0.24.0rc1/ecs_composex/kinesis/kinesis_stack.py
from __future__ import annotations from typing import TYPE_CHECKING if TYPE_CHECKING: from ecs_composex.common.settings import ComposeXSettings from ecs_composex.mods_manager import XResourceModule from botocore.exceptions import ClientError from compose_x_common.aws.kinesis import KINESIS_STREAM_ARN_RE from...
PypiClean
/cctbx_base-2020.8-0_py38h167b89d-cp38-cp38m-manylinux2010_x86_64.whl/mmtbx/geometry_restraints/torsion_restraints/torsion_ncs.py
from __future__ import absolute_import, division, print_function import cctbx.geometry_restraints from mmtbx.validation import rotalyze from mmtbx.validation import ramalyze from mmtbx.validation import analyze_peptides from mmtbx.rotamer.sidechain_angles import SidechainAngles from cctbx.array_family import flex impor...
PypiClean