id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/Homevee_Dev-0.0.0.0-py3-none-any.whl/Homevee/Manager/gateway.py
import json import requests from Homevee.Item.Gateway import * from Homevee.Item.Status import * def add_edit_gateway(username, type, user, password, change_pw, ip, port, gateway_type, db): if not user.has_permission("admin"): return Status(type=STATUS_NO_ADMIN).get_dict() param_array = {'name': ty...
PypiClean
/genie.libs.sdk-23.8.1-py3-none-any.whl/genie/libs/sdk/apis/ios/utils.py
# Python import logging import re # Genie from genie.libs.sdk.apis.utils import get_config_dict from genie.metaparser.util.exceptions import SchemaEmptyParserError from genie.utils.timeout import Timeout from genie.libs.parser.iosxe.ping import Ping # unicon from unicon.eal.dialogs import Dialog, Statement from unic...
PypiClean
/gaeframework-2.0.10.tar.gz/gaeframework-2.0.10/google_appengine/lib/django_1_2/django/contrib/sessions/backends/base.py
import base64 import os import random import sys import time from datetime import datetime, timedelta try: import cPickle as pickle except ImportError: import pickle from django.conf import settings from django.core.exceptions import SuspiciousOperation from django.utils.hashcompat import md5_constructor # Us...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/ZhimaCreditPayafteruseCreditagreementSignModel.py
import json from alipay.aop.api.constant.ParamConstants import * class ZhimaCreditPayafteruseCreditagreementSignModel(object): def __init__(self): self._cancel_back_link = None self._category_id = None self._external_logon_id = None self._extra_param = None self._out_agre...
PypiClean
/mmcif.utils-0.26.tar.gz/mmcif.utils-0.26/README.md
## mmCIF Utility Classes ### Introduction This module contains a collection of utility classes used by the Protein Data Bank to manage structure and chemical reference definition mmCIF data objects. ### Installation Download the library source software from the project repository: ```bash git clone https://githu...
PypiClean
/panel-1.2.2.tar.gz/panel-1.2.2/doc/explanation/api/examples/outliers_declarative.md
# Simple Outlier App - Declarative API This app is a complement to the simple app demonstrated in the [Getting Started > Build an app](../../../getting_started/build_app.md) tutorial which utilized the reactive API. The reactive API approach is very flexible, but it ties your domain-specific code (the parts about sin...
PypiClean
/medicine-utils-0.1.7.tar.gz/medicine-utils-0.1.7/medicine_utils/static/medicine_utils/ace/mode-python.js
define("ace/mode/python_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(){var e="and|as|assert|break|class|continue|def|del|elif|else|except|exec|finally|for|from|...
PypiClean
/jarviscore_nightly-0.1.1.203-py3-none-any.whl/jarviscore/socket.py
import traceback import socket from time import sleep from datetime import datetime from .log import Log # from .bridge import Bridge from threading import Thread from .message import RawMessage from .messageparser import parse_line class Socket(): # bridge: Bridge socket: socket.socket buffer: s...
PypiClean
/hydra-base-0.1.7.tar.gz/hydra-base-0.1.7/hydra_base/util/dataset_util.py
# (c) Copyright 2013 to 2017 University of Manchester # # HydraPlatform is free software: you can redistribute it and/or modify # it under the terms of the GNU Lesser General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # Hyd...
PypiClean
/azureml_core-1.53.0-py3-none-any.whl/azureml/_history/utils/_hdi_wasb_utils.py
import re import subprocess from datetime import datetime import logging from azureml._vendor.azure_storage.blob import ContainerSasPermissions from azureml._vendor.azure_storage.blob import generate_container_sas module_logger = logging.getLogger(__name__) WASB_REGEX = r'wasbs?://(.*)@(.*)\.blob\.(core.windows.ne...
PypiClean
/collective.idashboard-1.2.6a1.zip/collective.idashboard-1.2.6a1/collective/idashboard/docs/README.txt
Introduction ============ Pimp your Plone dashboard! This is a Plone Product that makes your user dashboard behave similarly to the iGoogle dashboard. Specifically, it adds the following functionality: - Drag and drop portlets within and between rows - Ajax enabled inline portlet editing and saving - Ajax re...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/prism/components/prism-puppet.js
(function (Prism) { Prism.languages.puppet = { 'heredoc': [ // Matches the content of a quoted heredoc string (subject to interpolation) { pattern: /(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r))*?[ \t]*\|?[ \t]*-?[ \t]*\2/, lookbehind: true, alias: 'string', inside: ...
PypiClean
/gears-jsx-0.1.tar.gz/gears-jsx-0.1/gears_jsx/node_modules/react-tools/node_modules/commoner/node_modules/recast/node_modules/ast-types/lib/types.js
var assert = require("assert"); var Ap = Array.prototype; var slice = Ap.slice; var map = Ap.map; var each = Ap.forEach; var Op = Object.prototype; var objToStr = Op.toString; var funObjStr = objToStr.call(function(){}); var strObjStr = objToStr.call(""); var hasOwn = Op.hasOwnProperty; // A type is an object with a ....
PypiClean
/CLAchievements-0.1.0.tar.gz/CLAchievements-0.1.0/doc/plugin.rst
.. _plugin: Write your own achievement ========================== Achievement without persistent data ----------------------------------- Suppose you want to create an achievement ``Foo`` awarded when user successfully run a command on a file :file:`foo`. Let's write this achievement. Meta-information """""""""""""...
PypiClean
/pydbproperties-0.3.tar.gz/pydbproperties-0.3/pydbproperties.py
from __future__ import print_function import re import sys __doc__ = """ author: José Roberto Meza Cabrera mail: robertpro01@gmail.com With this script, you can use store properties into a MySQL table, you can change the name of the table, and list the properties into a output stream or file stream, etc. """ try: ...
PypiClean
/IFEM-to-VT-2.0.2.tar.gz/IFEM-to-VT-2.0.2/ifem_to_vt/geometry.py
from abc import ABC, abstractmethod from collections import OrderedDict from io import StringIO import lrspline as lr import numpy as np from singledispatchmethod import singledispatchmethod import splipy.io from splipy import SplineObject, BSplineBasis import treelog as log from typing import Tuple, Any, Union, IO, ...
PypiClean
/fabric-credmgr-client-1.6.0b3.tar.gz/fabric-credmgr-client-1.6.0b3/docs/Status400BadRequestErrors.md
# Status400BadRequestErrors ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **message** | **str** | | [optional] [default to 'Bad Request'] **details** | **str** | | [optional] **type** | **str** | | [optional] [default to 'error'] **size** | **int** | ...
PypiClean
/Organise-2.0.0.tar.gz/Organise-2.0.0/README.md
[![Downloads](https://pepy.tech/badge/organise)](https://pepy.tech/project/organise) [![Downloads](https://pepy.tech/badge/organise/month)](https://pepy.tech/project/organise/month) [![Downloads](https://pepy.tech/badge/organise/week)](https://pepy.tech/project/organise/week) # Auto Organise A little tool that help...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/migrate/v20191001/assessment.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__ = ['Assessment'] class Assessment(pulumi.CustomResource): def __init__(__self__, ...
PypiClean
/batchcompute-cli-1.7.7.tar.gz/batchcompute-cli-1.7.7/src/batchcompute_cli/cli.py
from terminal import red, blue, bold, magenta, white from .externals.command import Command from . import const,i18n_util,cli_template,cli_oss,cli_pbs,cli_apps,cli_jobs,cli_clusters,cli_images,cli_project from .action import login, config, info,events, instance_type,log_fetch,checker,disk_type,resource_type import ...
PypiClean
/sas_log_viewer-0.2.0-py3-none-any.whl/sas_log_viewer-0.2.0.data/data/share/jupyter/labextensions/sas_log_viewer/static/lib_index_js.f1abfa74696980b7b1f3.js
(self["webpackChunksas_log_viewer"] = self["webpackChunksas_log_viewer"] || []).push([["lib_index_js"],{ /***/ "./lib/iconImport.js": /*!***************************!*\ !*** ./lib/iconImport.js ***! \***************************/ /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => { "use s...
PypiClean
/symphony_bdk_python-2.6.1-py3-none-any.whl/symphony/bdk/gen/group_model/status.py
import re # noqa: F401 import sys # noqa: F401 from typing import List, Union from symphony.bdk.gen.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, ...
PypiClean
/django_outbox_base_layout-1.2.tar.gz/django_outbox_base_layout-1.2/outbox_base_layout/static/bower_components/jquery/src/queue.js
define([ "./core", "./data/var/data_priv", "./deferred", "./callbacks" ], function( jQuery, data_priv ) { jQuery.extend({ queue: function( elem, type, data ) { var queue; if ( elem ) { type = ( type || "fx" ) + "queue"; queue = data_priv.get( elem, type ); // Speed up dequeue by getting out quickly...
PypiClean
/pyrsl-2.1.1-py3-none-any.whl/rsl/runtime.py
import sys import os import stat import string import subprocess import datetime import logging import re import difflib import getpass from functools import partial import rsl.version import xtuml try: from future_builtins import filter except ImportError: pass try: from StringIO import StringIO except ...
PypiClean
/gears-babel-0.1.tar.gz/gears-babel-0.1/gears_babel/node_modules/babel/node_modules/chokidar/node_modules/readdirp/node_modules/minimatch/node_modules/sigmund/bench.js
// sparseFE10 and sigmund are usually pretty close, which is to be expected, // since they are essentially the same algorithm, except that sigmund handles // regular expression objects properly. var http = require('http') var util = require('util') var sigmund = require('./sigmund.js') var sreq, sres, creq, cres, te...
PypiClean
/stable_baselines-2.10.2-py3-none-any.whl/stable_baselines/common/distributions.py
import numpy as np import tensorflow as tf from tensorflow.python.ops import math_ops from gym import spaces from stable_baselines.common.tf_layers import linear class ProbabilityDistribution(object): """ Base class for describing a probability distribution. """ def __init__(self): super(Prob...
PypiClean
/django-media-explorer-0.3.10.tar.gz/django-media-explorer-0.3.10/media_explorer/fields.py
import json from django.db import models from django.core.exceptions import ValidationError from django.utils.translation import ugettext_lazy as _ from media_explorer.models import Element, Gallery from media_explorer.forms import MediaFormField, RichTextFormField from django.db.models import signals, FileField from ...
PypiClean
/mapfish.plugin.client-0.2.tar.gz/mapfish.plugin.client-0.2/mapfishpluginclient/template/+package+/public/lib/ext/Ext/build/data/Store-min.js
Ext.data.Store=function(a){this.data=new Ext.util.MixedCollection(false);this.data.getKey=function(b){return b.id};this.baseParams={};this.paramNames={start:"start",limit:"limit",sort:"sort",dir:"dir"};if(a&&a.data){this.inlineData=a.data;delete a.data}Ext.apply(this,a);if(this.url&&!this.proxy){this.proxy=new Ext.data...
PypiClean
/PySMT-0.9.5.tar.gz/PySMT-0.9.5/pysmt/cmd/installers/btor.py
import os from pysmt.cmd.installers.base import SolverInstaller class BtorInstaller(SolverInstaller): SOLVER = "btor" def __init__(self, install_dir, bindings_dir, solver_version, mirror_link=None, git_version=None): native_link = "https://github.com/Boolector/boolector/archive/%s....
PypiClean
/nobinobi-child-0.1.4.14.tar.gz/nobinobi-child-0.1.4.14/nobinobi_child/static/vendor/bootstrap-4.3.1/CODE_OF_CONDUCT.md
# Contributor Covenant Code of Conduct ## Our Pledge In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/ping/device_tracker.py
from __future__ import annotations import asyncio from datetime import datetime, timedelta import logging import subprocess from icmplib import async_multiping import voluptuous as vol from homeassistant.components.device_tracker import ( CONF_SCAN_INTERVAL, PLATFORM_SCHEMA as BASE_PLATFORM_SCHEMA, SCAN_...
PypiClean
/graphene-sqlalchemy-filter-1.13.0.tar.gz/graphene-sqlalchemy-filter-1.13.0/graphene_sqlalchemy_filter/connection_field.py
from contextlib import suppress from functools import partial from typing import cast # GraphQL import graphene_sqlalchemy from graphene.utils.str_converters import to_snake_case from promise import Promise, dataloader # Database from sqlalchemy import inspection, tuple_ from sqlalchemy.orm import Load, aliased, cont...
PypiClean
/ga4gh.vrs-0.9.0a1.tar.gz/ga4gh.vrs-0.9.0a1/notebooks/Haplotypes.ipynb
# Haplotypes This notebook demonstrates VRS Haplotypes using ApoE alleles. The ApoE gene is associated with risks of Alzheimer's disease and hypercholesterolemia. Risk of AD is attributed to haplotypes comprised of two locations, [rs429358](https://www.ncbi.nlm.nih.gov/snp/rs429358) and [rs7412](https://www.ncbi.nlm....
PypiClean
/gtl_ville-2.1.51-py3-none-any.whl/gv_vendor/pylr/decoder.py
from __future__ import print_function from collections import namedtuple from itertools import groupby, chain from gv_vendor.pylr import rating as Rating from gv_vendor.pylr.constants import (LocationType, WITH_LINE_DIRECTION, AGAINST_LINE_DIR...
PypiClean
/artellapipe-libs-usd-0.0.5.tar.gz/artellapipe-libs-usd-0.0.5/artellapipe/libs/usd/externals/python/2/OpenGL/raw/GLX/SGIX/fbconfig.py
from OpenGL import platform as _p, arrays # Code generation uses this from OpenGL.raw.GLX import _types as _cs # End users want this... from OpenGL.raw.GLX._types import * from OpenGL.raw.GLX import _errors from OpenGL.constant import Constant as _C import ctypes _EXTENSION_NAME = 'GLX_SGIX_fbconfig' def _f( function ...
PypiClean
/metaapi_cloud_risk_management_sdk-2.0.0.tar.gz/metaapi_cloud_risk_management_sdk-2.0.0/lib/riskManagement.py
from .clients.httpClient import HttpClient from .clients.domain_client import DomainClient from .clients.equityTracking.equityTracking_client import EquityTrackingClient from .models import format_error from typing_extensions import TypedDict from typing import Optional class RetryOpts(TypedDict): retries: Option...
PypiClean
/dataone.gmn-3.5.2-py3-none-any.whl/d1_gmn/app/views/decorators.py
"""View decorators.""" import functools import d1_common.const import d1_common.types import d1_common.types.exceptions import django.conf import d1_gmn.app.auth import d1_gmn.app.did import d1_gmn.app.revision import d1_gmn.app.views.assert_db import d1_gmn.app.views.util # ---------------------------------------...
PypiClean
/ansys_dpf_core-0.9.0.tar.gz/ansys_dpf_core-0.9.0/src/ansys/dpf/core/operators/math/scale_by_field.py
from warnings import warn from ansys.dpf.core.dpf_operator import Operator from ansys.dpf.core.inputs import Input, _Inputs from ansys.dpf.core.outputs import Output, _Outputs from ansys.dpf.core.operators.specification import PinSpecification, Specification class scale_by_field(Operator): """Scales a field (in 0...
PypiClean
/aeroapi_python-1.1.4-py3-none-any.whl/aeroapi_python/History.py
from typing import Optional, Dict, Any from .APICaller import APICaller class History: """ A class for interacting with the OpenSky Network History API. Attributes: api_caller (APICaller): An instance of the `APICaller` class. endpoint (str): The API endpoint for history. Methods: ...
PypiClean
/types_aiobotocore_iotsitewise-2.3.4.post1-py3-none-any.whl/types_aiobotocore_iotsitewise/type_defs.py
import sys from datetime import datetime from typing import IO, Any, Dict, List, Mapping, Sequence, Union from aiobotocore.response import StreamingBody from .literals import ( AggregateTypeType, AssetModelStateType, AssetStateType, AuthModeType, BatchPutAssetPropertyValueErrorCodeType, Capabi...
PypiClean
/tensorflow_cpu_test_package-2.11.0rc0-cp38-cp38-win_amd64.whl/tensorflow/dtensor/python/input_util.py
import dataclasses from typing import Any, List, Optional, Sequence, Tuple from tensorflow.dtensor.python import api from tensorflow.dtensor.python import config from tensorflow.dtensor.python import layout as layout_lib from tensorflow.python.data.experimental.ops import data_service_ops from tensorflow.python.data....
PypiClean
/pxea-1.0.tar.gz/pxea-1.0/README.rst
# PxEA: ProXimal pathway Enrichment Analysis -------------------------------------------- Code for the ProXimal pathway enrichment analysis introduced in the "Targeting comorbid diseases via network endopharmacology" manuscript. ## Requirements - Python 2 or 3 - numpy - scipy - networkx ## Installing & running t...
PypiClean
/h2o_wave-0.26.2-py3-none-macosx_12_0_arm64.whl/h2o_wave-0.26.2.data/data/www/wave-static/java-legacy-9efe1586.js
System.register([],(function(e,n){"use strict";return{execute:function(){e("default",(function(e){var n=e.regex,a="[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",t=a+s("(?:<"+a+"~~~(?:\\s*,\\s*"+a+"~~~)*>)?",/~~~/g,2),i={keyword:["synchronized","abstract","private","var","static","if","const ","for","while","strictfp","finally","prot...
PypiClean
/tencentcloud_iac_pulumi-0.1.5.tar.gz/tencentcloud_iac_pulumi-0.1.5/tencentcloud_iac_pulumi/ha/vip.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['VipArgs', 'Vip'] @pulumi.input_type class VipArgs: def __init__(__self__, *, subnet_id: pulumi.Input[str], vpc_id: pulum...
PypiClean
/pandora-python-sdk-0.0.1.tar.gz/pandora-python-sdk-0.0.1/ontology/crypto/aes_handler.py
from Cryptodome import Random from Cryptodome.Cipher import AES from Cryptodome.Util.Padding import pad, unpad class AESHandler(object): @staticmethod def generate_iv() -> bytes: return Random.new().read(AES.block_size) @staticmethod def generate_key(): key = Random.get_random_bytes(...
PypiClean
/IPFS_Toolkit-0.5.14-py3-none-any.whl/ipfs_api.py
from datetime import datetime from datetime import timedelta from termcolor import colored import time from threading import Event import shutil import tempfile # import sys from subprocess import Popen, PIPE # import subprocess import os import os.path # import threading # import multiprocessing import traceback imp...
PypiClean
/vmware-nsx-17.0.0.tar.gz/vmware-nsx-17.0.0/vmware_nsx/services/dynamic_routing/nsx_v/driver.py
import netaddr from neutron_dynamic_routing.extensions import bgp as bgp_ext from oslo_config import cfg from oslo_log import log as logging from oslo_utils import excutils from neutron_lib.api.definitions import address_scope from neutron_lib.api.definitions import external_net as extnet_apidef from neutron_lib impo...
PypiClean
/superset-2.0.0-custom-0.0.2.tar.gz/superset-2.0.0-custom-0.0.2/superset/utils/webdriver.py
import logging from enum import Enum from time import sleep from typing import Any, Dict, Optional, Tuple, TYPE_CHECKING from flask import current_app from selenium.common.exceptions import ( StaleElementReferenceException, TimeoutException, WebDriverException, ) from selenium.webdriver import chrome, fir...
PypiClean
/invenio-communities-7.7.0.tar.gz/invenio-communities-7.7.0/invenio_communities/permissions.py
from invenio_administration.generators import Administration from invenio_records_permissions.generators import ( AnyUser, AuthenticatedUser, Disable, IfConfig, SystemProcess, ) from invenio_records_permissions.policies import BasePermissionPolicy from .generators import ( AllowedMemberTypes, ...
PypiClean
/e-fonenana-frontend-20190305.1.tar.gz/e-fonenana-frontend-20190305.1/hass_frontend_es5/71e1b56b1dfed1708bd7.chunk.js
(window.webpackJsonp=window.webpackJsonp||[]).push([[81],{160:function(module,__webpack_exports__,__webpack_require__){"use strict";var _polymer_polymer_polymer_legacy_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_polymer_iron_flex_layout_iron_flex_layout_js__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(40...
PypiClean
/lnhub_rest-0.10.18.tar.gz/lnhub_rest-0.10.18/lamindb-setup/lamindb_setup/_check_instance_setup.py
from lamin_logger import logger from ._init_instance import reload_schema_modules from ._silence_loggers import silence_loggers from .dev._settings_store import current_instance_settings_file _INSTANCE_NOT_SETUP_WARNING = """\ You haven't yet setup an instance: Please call `ln.setup.init()` or `ln.setup.load()` """ ...
PypiClean
/drfpasswordless-gstr169-1.1.3.tar.gz/drfpasswordless-gstr169-1.1.3/README.md
![splash-image] ![ci-image] drfpasswordless is a quick way to integrate ‘passwordless’ auth into your Django Rest Framework project using a user’s email address or mobile number only (herein referred to as an alias). Built to work with DRF’s own TokenAuthentication system, it sends the user a 6-digit callback token t...
PypiClean
/thoraxe-0.8.0.tar.gz/thoraxe-0.8.0/docs/source/index.rst
ThorAxe's documentation! ======================== *Assessing Conservation of Alternative Splicing with Evolutionary Splicing Graphs* Check out our **`YouTube tutorial`_** to see how you can easily use *ThorAxe* and visualise the results! If you want to know more, you can read our `Genome Research`_ publication. I...
PypiClean
/nanome-matryx-0.0.1.tar.gz/nanome-matryx-0.0.1/nanome_matryx/menus/SettingsMenu.py
import os from functools import partial import nanome from nanome.util import Logs class SettingsMenu: def __init__(self, plugin, on_close): self._plugin = plugin self._network = 'ropsten' self._gas_price = '4' self._menu = nanome.ui.Menu.io.from_json('menus/json/settings.json') ...
PypiClean
/tensorflow_macos-2.14.0rc0-cp311-cp311-macosx_12_0_arm64.whl/tensorflow/python/keras/layers/pooling.py
"""Pooling layers.""" import functools from tensorflow.python.framework import tensor_shape from tensorflow.python.keras import backend from tensorflow.python.keras.engine.base_layer import Layer from tensorflow.python.keras.engine.input_spec import InputSpec from tensorflow.python.keras.utils import conv_utils from ...
PypiClean
/salt_nornir-0.20.3.tar.gz/salt_nornir-0.20.3/README.md
[![Downloads][pepy-downloads-badge]][pepy-downloads-link] [![PyPI][pypi-latest-release-badge]][pypi-latest-release-link] [![PyPI versions][pypi-versions-badge]][pypi-versions-link] [![GitHub Discussion][github-discussions-badge]][github-discussions-link] [![Code style: black][black-badge]][black-link] [![Documentation ...
PypiClean
/icloudtogcal-1.0.4-py3-none-any.whl/iCloudToGCal/selenuimFunctions/iCloud.py
from datetime import date from time import * from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.select import Select from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.co...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/TaxInfoDto.py
import json from alipay.aop.api.constant.ParamConstants import * class TaxInfoDto(object): def __init__(self): self._address = None self._bank_name = None self._effective_date = None self._invoice_title = None self._org_id = None self._phone_no = None self...
PypiClean
/yet_another_wizz-2.5.7-cp311-cp311-macosx_10_9_x86_64.whl/yaw/core/containers.py
from __future__ import annotations import warnings from collections.abc import Iterator, Sequence from dataclasses import dataclass, field, fields from typing import TYPE_CHECKING, Callable, Generic, NamedTuple, TypeVar import numpy as np import pandas as pd from yaw.config import OPTIONS from yaw.core.abc import Bi...
PypiClean
/scancode-toolkit-32.0.6.tar.gz/scancode-toolkit-32.0.6/src/licensedcode/additional_license_location_provider.py
import logging import os import sys from pluggy import PluginManager as PluggyPluginManager from plugincode import HookimplMarker from plugincode import HookspecMarker """ Support for plugins that provide one or more paths keys typically OS-specific paths to bundled pre-built binaries provided as Python packages. P...
PypiClean
/django-sqs-qc-0.2.zip/django-sqs-qc-0.2/README
django-sqs-qc ========== Author: Maciej Pasternacki <maciej@pasternacki.net> Date: 2010-01-15 Fri Maintainer: Nauman Tariq <nauman3128@gmail.com> Introduction: Modified Version of django-sqs (https://pypi.python.org/pypi/django-sqs/0.2) Actual django-sqs creates new queue every time work...
PypiClean
/lazr.restful-2.0.1-py3-none-any.whl/lazr/restful/docs/webservice-marshallers.rst
LAZR's field marshallers ************************ LAZR defines an interface for converting between the values that come in on an HTTP request, and the object values appropriate for schema fields. This is similar to Zope's widget interface, but much smaller. To test the various marshallers we create a stub request and...
PypiClean
/arxiv_miner-2.0.3.tar.gz/arxiv_miner-2.0.3/throughput_sim/rl_rep.py
import sys import os import signal import time import multiprocessing sys.path.insert(0, os.path.join(os.path.abspath(__file__), "throughput_sim")) from .structures import * from .data_workers import ClientThread from .datasource import get_tcp_server class Agent: def __init__(self): pass def act(s...
PypiClean
/gooddata-api-client-1.5.0.tar.gz/gooddata-api-client-1.5.0/gooddata_api_client/paths/api_v1_entities_workspaces_workspace_id_workspace_settings_object_id/delete.py
from dataclasses import dataclass import typing_extensions import urllib3 from gooddata_api_client import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F401 import typing # noqa: F401 impo...
PypiClean
/mediapipe-rpi4-0.8.8.tar.gz/mediapipe-rpi4-0.8.8/mediapipe/util/sequence/media_sequence.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import numpy as np from mediapipe.util.sequence import media_sequence_util msu = media_sequence_util _HAS_DYNAMIC_ATTRIBUTES = True ################################## METADATA ###############################...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_9/models/performance.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_9 import models class Performance(object): """ Attributes: swagger_types (dict): The key is attribute name and the value is att...
PypiClean
/bitsmiths_monitor-2.2.2-py3-none-any.whl/bs_monitor/braze/blazy_load.py
import datetime import uuid import mettle.braze import mettle.lib from mettle.io.iserializable import ISerializable class bLazyLoad(ISerializable): __slots__ = ("offset", "limit") def __init__(self, offset: int = 0, limit: int = 0): """ Constructor. ...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayCommerceKidsAccountBindRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayCommerceKidsAccountBindModel import AlipayCommerceKidsAccountBindModel class AlipayCommerceKidsAccountBindRequest(object): def __init__(self, biz_model=None): ...
PypiClean
/seinfeld_laugh_corpus-1.0.13.tar.gz/seinfeld_laugh_corpus-1.0.13/seinfeld_laugh_corpus/humor_recogniser/screenplay.py
import re from collections import namedtuple Line = namedtuple('Line', ['character', 'txt', 'start', 'end', 'is_funny', 'laugh_time']) Laugh = namedtuple('Laugh', ['time']) class Screenplay: """ Represents a Seinfeld screenplay in the memory. """ def __init__(self, filename): self.lines = [] ...
PypiClean
/python_wikibase-0.1.0-py3-none-any.whl/python_wikibase/data_types/data_type.py
from abc import abstractmethod from python_wikibase.value import Value class DataType(Value): """Abstract class for Wikibase data types (see https://www.mediawiki.org/wiki/Wikibase/DataModel)""" @abstractmethod def unmarshal(self, data_value): pass @abstractmethod def marshal(self):...
PypiClean
/galts-trade-api-0.2.0.tar.gz/galts-trade-api-0.2.0/src/galts_trade_api/transport/real.py
import asyncio import datetime import json from dataclasses import dataclass from decimal import Decimal from functools import partial from multiprocessing import Event, Pipe, Process from multiprocessing.connection import Connection from typing import Any, Awaitable, Callable, Dict, List, MutableMapping, Optional, Typ...
PypiClean
/zohocrmsdk2_0-5.1.0.tar.gz/zohocrmsdk2_0-5.1.0/zcrmsdk/src/com/zoho/crm/api/currencies/currency.py
try: from zcrmsdk.src.com.zoho.crm.api.exception import SDKException from zcrmsdk.src.com.zoho.crm.api.util import Constants except Exception: from ..exception import SDKException from ..util import Constants class Currency(object): def __init__(self): """Creates an instance of Currency""" self.__symbol = N...
PypiClean
/lingua_language_detector-1.3.2-py3-none-any.whl/lingua/detector.py
import numpy as np from collections import Counter from dataclasses import dataclass from decimal import Decimal from math import exp from typing import ( Counter as TypedCounter, Dict, FrozenSet, NamedTuple, Optional, List, ) from ._constant import ( CHARS_TO_LANGUAGES_MAPPING, JAPAN...
PypiClean
/ufterm-0.0.2.tar.gz/ufterm-0.0.2/README.md
# User Friendly Terminal Simple module help user to use terminal script. The library allows to see a Graphical Interface instead of a terminal. ## Code example ```python import ufterm as uft def command1(): ... def command2(): ... if __name__ == '__main__': uft.add_command(command1) uft.add_comma...
PypiClean
/aio_usb_hotplug-5.2.0.tar.gz/aio_usb_hotplug-5.2.0/src/aio_usb_hotplug/backends/base.py
from abc import abstractmethod, ABCMeta from typing import Any, Dict, List __all__ = ("Device", "USBBusScannerBackend") Device = Any class USBBusScannerBackend(metaclass=ABCMeta): """Interface specification for USB bus scanner backends.""" def configure(self, configuration: Dict[str, Any]) -> None: ...
PypiClean
/tensorflow_edwin-2.10.1-cp38-cp38-win_amd64.whl/tensorflow/python/saved_model/load_v1_in_v2.py
"""Import a TF v1-style SavedModel when executing eagerly.""" import functools from tensorflow.python.eager import context from tensorflow.python.eager import lift_to_graph from tensorflow.python.eager import wrap_function from tensorflow.python.framework import composite_tensor from tensorflow.python.framework impor...
PypiClean
/django-jet-calm-5.1.5.tar.gz/django-jet-calm-5.1.5/jet/static/jet/js/src/layout-updaters/toolbar.js
var $ = require('jquery'); var ToolbarUpdater = function($changelist) { this.$changelist = $changelist; }; ToolbarUpdater.prototype = { getToolbar: function($changelist) { var $toolbar = $changelist.find('#toolbar'); if ($toolbar.length == 0) { $toolbar = $('<div>').attr('id', 'to...
PypiClean
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/v2/stable/models/rna_sequences_archival_change.py
from typing import Any, cast, Dict, List, Optional, Type, TypeVar, Union import attr from ..extensions import NotPresentError from ..types import UNSET, Unset T = TypeVar("T", bound="RnaSequencesArchivalChange") @attr.s(auto_attribs=True, repr=False) class RnaSequencesArchivalChange: """IDs of all RNA Sequence...
PypiClean
/nttai_faust_streaming-0.9.0-py3-none-any.whl/faust/utils/json.py
import datetime import enum import typing import uuid from collections import Counter, deque from decimal import Decimal from typing import ( Any, Callable, Iterable, List, Mapping, Optional, Tuple, Type, TypeVar, Union, ) __all__ = [ "JSONEncoder", "dumps", "loads",...
PypiClean
/react-frontend-20230406083236.tar.gz/react-frontend-20230406083236/react_frontend/cc5a4e16.js
"use strict";(self.webpackChunkreact_frontend=self.webpackChunkreact_frontend||[]).push([[1735],{88423:function(t,r,e){function n(t){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.proto...
PypiClean
/neuro_pypes-1.1.2.tar.gz/neuro_pypes-1.1.2/neuro_pypes/interfaces/ants/segmentation.py
from nipype.external.due import BibTeX from nipype.interfaces.ants.base import ANTSCommand, ANTSCommandInputSpec from nipype.interfaces.base import TraitedSpec, File, traits, isdefined from nipype.utils.filemanip import split_filename class KellyKapowskiInputSpec(ANTSCommandInputSpec): dimension = traits.Enum(3, ...
PypiClean
/AlgBench-2.2.0-py3-none-any.whl/algbench/log_capture.py
import logging from typing import Optional from .db.json_serializer import to_json from .utils import Timer class JsonLogHandler(logging.Handler): """ A logging handler that stores log entries in a list of JSON compatible dictionaries. """ def __init__(self, level=logging.NOTSET) -> None: ...
PypiClean
/imesh-0.0.17-py3-none-any.whl/mesh/prsim/transport.py
from abc import abstractmethod, ABC from typing import Generic, Dict from mesh.macro import spi, mpi, T @spi("mesh") class Transport(ABC, Generic[T]): """ Private compute data channel in async and blocking mode. """ MESH = "mesh" GRPC = "grpc" @abstractmethod @mpi("mesh.chan.open") ...
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/272a360aa205f50ad3798ac8832e0052.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
/cogent3-2023.2.12a1.tar.gz/cogent3-2023.2.12a1/doc/_build/jupyter_execute/examples/hmm_par_heterogeneity.ipynb
``` import set_working_directory from cogent3 import load_aligned_seqs, load_tree from cogent3.evolve.substitution_model import ( TimeReversibleNucleotide, predicate, ) from scipy.stats.distributions import chi2 aln = load_aligned_seqs("data/long_testseqs.fasta") tree = load_tree("data/test.tree") MotifChang...
PypiClean
/raffiot-0.6.3.tar.gz/raffiot-0.6.3/README.md
# Robust And Fast Functional IO Toolkit *Raffiot* is small (almost) dependency-free python library providing some usual functional tools. It currently provides - an easy-to-use `IO` monad which is **stack-safe**, **fast**, support **asynchronous**, **concurrent**, **parallel** programming, has many other features. -...
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/isy994/sensor.py
from __future__ import annotations from typing import Any, cast from pyisy.constants import ( ATTR_ACTION, ATTR_CONTROL, COMMAND_FRIENDLY_NAME, ISY_VALUE_UNKNOWN, NC_NODE_ENABLED, PROP_BATTERY_LEVEL, PROP_COMMS_ERROR, PROP_ENERGY_MODE, PROP_HEAT_COOL_STATE, PROP_HUMIDITY, P...
PypiClean
/flexmeasures_client-0.1.8-py3-none-any.whl/flexmeasures_client/s2/script/websockets_server.py
import asyncio import json import aiohttp from aiohttp import web from flexmeasures_client.client import FlexMeasuresClient from flexmeasures_client.s2.cem import CEM from flexmeasures_client.s2.control_types.FRBC.frbc_simple import FRBCSimple from flexmeasures_client.s2.python_s2_protocol.common.schemas import Contr...
PypiClean
/ultracart_rest_sdk-4.0.173-py3-none-any.whl/ultracart/model/tax_provider_sovos.py
import re # noqa: F401 import sys # noqa: F401 from ultracart.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_type, vali...
PypiClean
/esperclient-0.1.2.tar.gz/esperclient-0.1.2/test/scripts/utils.py
import esperclient import os from esperclient.rest import ApiException def get_esper_credentials(): try: host = os.environ['ESPER_HOST'] except KeyError: print('ESPER_HOST environment variable not set.') return try: key = os.environ['ESPER_KEY'] except KeyError: ...
PypiClean
/python_modulr_client-0.0.11-py3-none-any.whl/modulr_client/api/customers/get_customers.py
import datetime from http import HTTPStatus from typing import Any, Dict, List, Optional, Union import httpx from ... import errors from ...client import Client from ...models.account_customer_page_response import AccountCustomerPageResponse from ...models.account_string_search_criteria import AccountStringSearchCrit...
PypiClean
/tripleo-operator-ansible-0.9.0.tar.gz/tripleo-operator-ansible-0.9.0/roles/tripleo_overcloud_container_image_prepare/README.md
tripleo_overcloud_container_image_prepare ========================================= IMPORTANT: This role is for use in Queens only. This functionality was replaced by the `openstack tripleo container image prepare` command in Rocky. A role to perform the overcloud container image prepare. Requirements ------------ ...
PypiClean
/suds-bis-1.0.0.tar.gz/suds-bis-1.0.0/suds/mx/core.py
from suds.mx.appender import ContentAppender from suds.sax.element import Element from suds.sax.document import Document from suds.sudsobject import Property from logging import getLogger log = getLogger(__name__) class Core: """ An I{abstract} marshaller. This class implement the core functionality of...
PypiClean
/cubed4th-2.0.20221024.tar.gz/cubed4th-2.0.20221024/pdoc/_compat.py
import sys if sys.version_info >= (3, 9): from functools import cache else: # pragma: no cover from functools import lru_cache cache = lru_cache(maxsize=None) if sys.version_info >= (3, 9): from ast import unparse as ast_unparse else: # pragma: no cover from astunparse import unparse as _unpars...
PypiClean
/sdtbu-acm-tool-1.1.1.tar.gz/sdtbu-acm-tool-1.1.1/README.md
# 山东工商学院acm辅助工具 ## OJ网站账号移植 ### **[ 介绍 ]** 将一个账号所做过的所有题移植到另一个账号,部分题目无法转移 ### **[ 纯新手教程 ]** 如果您不是第一次接触python,可以跳过这一步 1. 下载python3.9并安装(Mac用户自行下载任意大于3.6的python版本),安装时请勾选`Add Python 3.9 to PATH` [Windows下载](https://www.python.org/ftp/python/3.9.13/python-3.9.13-amd64.exe) 2. 下载开发工具,这里推荐使用[Pycharm](https://www.jetb...
PypiClean
/snake-shop-0.9.0.tar.gz/snake-shop-0.9.0/apps/checkout/mixins.py
import logging from django.contrib.sites.models import Site from oscar.apps.checkout import mixins as base_mixins from oscar.apps.checkout.mixins import OrderDispatcher from apps.order import models as order_models from apps.communication.utils import CustomDispatcher from custom.context_processors import main as conte...
PypiClean
/minerva_etl-5.3.2-py3-none-any.whl/minerva/commands/entity_type.py
from contextlib import closing from psycopg2 import connect from minerva.util.tabulate import render_table def setup_command_parser(subparsers): cmd = subparsers.add_parser( 'entity-type', help='command for administering entity types' ) cmd_subparsers = cmd.add_subparsers() setup_create_pa...
PypiClean
/msm_we-0.1.27.tar.gz/msm_we-0.1.27/msm_we/_hamsm/_dimensionality.py
from sklearn.decomposition import IncrementalPCA as iPCA import concurrent import multiprocessing as mp import tqdm.auto as tqdm import numpy as np from deeptime.decomposition import TICA, VAMP from msm_we._logging import log from typing import TYPE_CHECKING if TYPE_CHECKING: from msm_we import modelWE class Di...
PypiClean
/tensorflow_cpu-2.14.0rc1-cp311-cp311-macosx_10_15_x86_64.whl/tensorflow/python/debug/lib/profiling.py
"""Data structures and algorithms for profiling information.""" import os class ProfileDatum(object): """Profile data point.""" def __init__(self, device_name, node_exec_stats, file_path, line_number, func_name, op_type): ...
PypiClean
/airflow-plugins-0.1.3.tar.gz/airflow-plugins-0.1.3/airflow_plugins/utils.py
from copy import deepcopy from datetime import datetime from airflow.models import Variable from pytz import timezone def get_variable(key, default_var=None): """Returns variable from Variable or config defaults""" return Variable.get(key, default_var=default_var) def create_variable(key, value): """C...
PypiClean