id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/giwaxs_gui-0.3.5.1.tar.gz/giwaxs_gui-0.3.5.1/giwaxs_gui/gui/debug_widgets.py
import logging from typing import Dict, Tuple, List, DefaultDict, Set from collections import defaultdict import gc from PyQt5.QtCore import QObject, pyqtSignal, Qt, pyqtSlot from PyQt5.QtWidgets import (QPlainTextEdit, QTreeWidget, QTreeWidgetItem, QWidget, QPushButton, ...
PypiClean
/pysophia2test-0.0.1-py3-none-any.whl/sophia2/tools.py
from nltk.probability import FreqDist import matplotlib.pyplot as plt __stop_words__ = "" with open(__file__.replace("tools.py","stop_words.txt"), encoding='utf-8') as f: __stop_words__ = f.read().splitlines() def get_frecuency(dataset): """provides a list with all the countries that currently have media o...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/pouchdb/dist/pouchdb.find.js
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.ex...
PypiClean
/FP-SMC-ALS-test1-0.0.1.tar.gz/FP-SMC-ALS-test1-0.0.1/smc/examples/vpn_to_external_peer.py
import smc.examples from smc import session from smc.elements.network import Network from smc.core.engines import Engine, Layer3Firewall from smc.vpn.elements import ExternalGateway from smc.vpn.policy import PolicyVPN def create_single_fw(): """ Create single layer 3 firewall for this example """ La...
PypiClean
/torchrec_nightly_cpu-2022.5.12-py38-none-any.whl/torchrec/distributed/quant_embedding_kernel.py
import copy import logging from typing import Any, Dict, Iterator, List, Optional, Tuple import torch import torch.distributed as dist from fbgemm_gpu.split_embedding_configs import SparseType from fbgemm_gpu.split_table_batched_embeddings_ops import ( EmbeddingLocation, IntNBitTableBatchedEmbeddingBagsCodege...
PypiClean
/dmarc_metrics_exporter-0.9.4.tar.gz/dmarc_metrics_exporter-0.9.4/dmarc_metrics_exporter/imap_parser.py
from bite import ( And, CaselessLiteral, CharacterSet, Combine, Counted, FixedByteCount, Forward, Literal, Opt, Parser, Suppress, TransformValues, ) from bite.transformers import Group nil = CaselessLiteral(b"NIL") atom_char = CharacterSet( rb'(){ %*"\]' + bytes(rang...
PypiClean
/arbor-bcumming-0.5.tar.gz/arbor-bcumming-0.5/doc/concepts/domdec.rst
.. _modeldomdec: Domain decomposition ==================== A *domain decomposition* describes the distribution of the model over the available computational resources. The description partitions the cells in the model as follows: * group the cells into cell groups of the same :ref:`kind <modelcellkind>` of cell;...
PypiClean
/django-sct-0.7.tar.gz/django-sct-0.7/sphenecoll/sphene/sphboard/migrations/0001_initial.py
import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): depends_on = ( ("sphene.community", "0001_initial"), ) def forwards(self, orm): # Adding model 'Category' db.create_table('sphboard_...
PypiClean
/dcx_utils-0.1a1.tar.gz/dcx_utils-0.1a1/dcx_utils/helpers.py
from copy import deepcopy from rest_framework import serializers from rest_framework.metadata import SimpleMetadata from rest_framework.reverse import reverse from rest_framework.relations import Hyperlink class DcxMetadata(SimpleMetadata): def determine_metadata(self, request, view): metadata = super()...
PypiClean
/python-xlib-0.33.tar.gz/python-xlib-0.33/examples/childwin.py
# Python 2/3 compatibility. from __future__ import print_function import sys import os # Change path so we find Xlib sys.path.append(os.path.join(os.path.dirname(__file__), '..')) from Xlib import X, display, Xutil # Application window class Window(object): def __init__(self, display): self.d = display # Fin...
PypiClean
/wflow-2020.1.2.tar.gz/wflow-2020.1.2/doc/wflow_gr4.rst
The wflow_gr4 model =================== .. warning:: The documentation is incomplete Introduction ------------ An *experimental* implementation of the gr4 model. It is based on the hourly (gr4h) version Dependencies ------------ [PM] Configuration ------------- The model needs a number of settings in the i...
PypiClean
/torchvision-extra-0.0.17.tar.gz/torchvision-extra-0.0.17/torchvision_extra/datasets/stanford_dogs.py
import os import os.path import pathlib from typing import Any, Callable, Dict, List, Optional, Tuple import PIL from PIL.Image import Image as PilImage from torchvision.datasets.utils import download_and_extract_archive, verify_str_arg from torchvision.datasets.vision import VisionDataset __all__ = ["StanfordDogs"] ...
PypiClean
/merge%20spreadsheets-0.0.2.tar.gz/merge spreadsheets-0.0.2/src/spreadsheets.py
import copy from collections import OrderedDict import openpyxl class Table: def __init__(self, headers=None, rows=None): if rows is None: rows = [] self.headers = headers self.rows = rows def _new_row(self): return [None] * len(self.headers) def add(self, ...
PypiClean
/configure.py-1.1.tar.gz/configure.py-1.1/src/configure/lang/c/libraries/sdl.py
from ..library import Library from configure import platform, path, tools from configure import Dependency, Target from configure.command import Command class SDLLibrary(Library): def __init__(self, compiler, components=[], **kw): super(SDLLibrary, self).__init__( 'SDL', compiler, ...
PypiClean
/dps-pxpy-0.2.1.tar.gz/dps-pxpy-0.2.1/README.rst
======== dps-pxpy ======== .. image:: https://pypip.in/version/dps-pxpy/badge.svg :target: https://pypi.python.org/pypi/dps-pxpy/ .. image:: https://pypip.in/format/dps-pxpy/badge.svg :target: https://pypi.python.org/pypi/dps-pxpy/ .. image:: https://travis-ci.org/OohlaLabs/dps-pxpy.svg?branch=master :ta...
PypiClean
/pyhalcyon-0.1.1.tar.gz/pyhalcyon-0.1.1/halcyon/ml/net/cnn.py
from abc import ABCMeta, abstractclassmethod from typing import Any, List import tensorflow as tf from halcyon.ml.net.sub_net import SubNet class CnnBase(SubNet, metaclass=ABCMeta): """ Convolutional Neural Network Module """ def __init__( self, is_inference: bool, ) -> N...
PypiClean
/scikit-bio-0.5.9.tar.gz/scikit-bio-0.5.9/skbio/sequence/_protein.py
import numpy as np from skbio.util._decorator import classproperty, overrides from skbio.util._decorator import stable from ._grammared_sequence import (GrammaredSequence, DisableSubclassingMeta, _motifs as parent_motifs) class Protein(GrammaredSequence, metaclass=DisableSubclassin...
PypiClean
/django-ug-4.2.41.tar.gz/django-ug-4.2.41/django/test/signals.py
import os import time import warnings from asgiref.local import Local from django.apps import apps from django.core.exceptions import ImproperlyConfigured from django.core.signals import setting_changed from django.db import connections, router from django.db.utils import ConnectionRouter from django.dispatch import ...
PypiClean
/hello_robot_stretch_factory-0.4.10-py3-none-any.whl/hello_robot_stretch_factory-0.4.10.data/scripts/REx_discover_hello_devices.py
import os import stretch_body.stepper from stretch_body.dynamixel_XL430 import DynamixelXL430, DynamixelCommError import stretch_body.hello_utils as hu from stretch_body.device import Device import click import pprint from stretch_factory import hello_device_utils as hdu from stretch_body.robot_params import RobotParam...
PypiClean
/oc-js-0.8.tar.gz/oc-js-0.8/opencore/js/thirdparty/xinha/plugins/Equation/equation.js
function Equation(editor) { this.editor = editor; var cfg = editor.config; var self = this; // register the toolbar buttons provided by this plugin cfg.registerButton({ id : "equation", tooltip : this._lc("Formula Editor"), image : editor.imgURL("equation.gif", "Equation"), textMode : false, act...
PypiClean
/aroay_translate-1.3-py3-none-any.whl/aroay_translate/pretend.py
SET_USER_AGENT = '''() => {Object.defineProperty(navigator, 'userAgent', {get: () => 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/83.0.4103.116 Safari/537.36'})}''' SET_APP_VERSION = '''() => {Object.defineProperty(navigator, 'appVersion', {get: () => '5.0 (Macintosh; I...
PypiClean
/acryl-datahub-0.10.0.2rc2.tar.gz/acryl-datahub-0.10.0.2rc2/src/datahub/utilities/sql_parser.py
import contextlib import logging import multiprocessing import re import sys import traceback from multiprocessing import Process, Queue from typing import Any, List, Optional, Tuple, Type from datahub.utilities.sql_lineage_parser_impl import SqlLineageSQLParserImpl from datahub.utilities.sql_parser_base import SQLPar...
PypiClean
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/session/models/apimodels_request_member.py
# template file: ags_py_codegen # AccelByte Gaming Services Session Service (3.1.0) # 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 # pylin...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/uhd_restpy/testplatform/sessions/ixnetwork/topology/ipv6pseudonoderoutes_e49889067cd5030685c5c28101e243d5.py
import sys from uhd_restpy.base import Base from uhd_restpy.files import Files if sys.version_info >= (3, 5): from typing import List, Any, Union class IPv6PseudoNodeRoutes(Base): """Isis IPv6 pseudo node routes The IPv6PseudoNodeRoutes class encapsulates a list of IPv6PseudoNodeRoutes resources that are ...
PypiClean
/ansible-kkvesper-2.3.2.0.tar.gz/ansible-kkvesper-2.3.2.0/lib/ansible/module_utils/openstack.py
import os from ansible.module_utils.six import iteritems def openstack_argument_spec(): # DEPRECATED: This argument spec is only used for the deprecated old # OpenStack modules. It turns out that modern OpenStack auth is WAY # more complex than this. # Consume standard OpenStack environment variables...
PypiClean
/webtimer-0.0.2.tar.gz/webtimer-0.0.2/webtimer.py
VERSION = (0, 0, 2) __version__ = '.'.join(map(str, VERSION)) import os import sys import re import urllib import urllib2 import urlparse import time from fake_useragent import UserAgent ua = UserAgent() JS_URLS = re.compile(r'<\s*script\s+src=[\'"]([^\'"]+)[\'"]', flags=re.DOTALL|re.IGNORECASE) CSS_URLS = re.compil...
PypiClean
/velovae-0.1.2-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/scvelo_preprocessing/moments.py
from . import settings from . import logging as logg from .utils import not_yet_normalized, normalize_per_cell from .neighbors import neighbors, get_connectivities, get_n_neighs, verify_neighbors from scipy.sparse import csr_matrix, issparse import numpy as np def moments( data, n_neighbors=30, n_pcs=Non...
PypiClean
/py3-aeneas-1.1.0.tar.gz/py3-aeneas-1.1.0/aeneas/cdtw/__init__.py
# aeneas is a Python/C library and a set of tools # to automagically synchronize audio and text (aka forced alignment) # # Copyright (C) 2012-2013, Alberto Pettarin (www.albertopettarin.it) # Copyright (C) 2013-2015, ReadBeyond Srl (www.readbeyond.it) # Copyright (C) 2015-2017, Alberto Pettarin (www.albertopettarin....
PypiClean
/django-geoprisma-0.0.1.tar.gz/django-geoprisma-0.0.1/geoprisma/static/geoprisma/lib/OpenLayers/lib/OpenLayers/Tile/Image/IFrame.js
* @requires OpenLayers/Tile/Image.js */ /** * Constant: OpenLayers.Tile.Image.IFrame * Mixin for tiles that use form-encoded POST requests to get images from * remote services. Images will be loaded using HTTP-POST into an IFrame. * * This mixin will be applied to <OpenLayers.Tile.Image> instances * configured...
PypiClean
/python_microscopy-20.12.8-cp36-cp36m-win_amd64.whl/PYME/Acquire/Spooler.py
################## # Spooler.py # # Copyright David Baddeley, 2009 # d.baddeley@auckland.ac.nz # # 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, either version 3 of the License, or # (at your o...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/networkcloud/v20221212preview/get_hybrid_aks_cluster.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . import outputs __all__ = [ 'GetHybridAksClusterResult', 'AwaitableGetHybridAksClusterResult', 'get_hybrid_aks_cluster', 'get_hybrid_aks...
PypiClean
/django-sentry-1.13.5.tar.gz/django-sentry-1.13.5/sentry/models.py
from __future__ import absolute_import import base64 import logging import math import time from datetime import datetime from django.db import models from django.db.models import Sum from django.utils.encoding import smart_unicode from django.utils.translation import ugettext_lazy as _ from sentry.conf import sett...
PypiClean
/terrascript_aws-1.0.5.tar.gz/terrascript_aws-1.0.5/src/terrascript_aws/managed_streaming_for_kafka/msk_cluster.py
import terrascript.core as core @core.schema class Sasl(core.Schema): iam: bool | core.BoolOut | None = core.attr(bool, default=None) scram: bool | core.BoolOut | None = core.attr(bool, default=None) def __init__( self, *, iam: bool | core.BoolOut | None = None, scram: b...
PypiClean
/runwhen_keywords-0.0.1.tar.gz/runwhen_keywords-0.0.1/RW/K8s/event_tasks_mixin.py
from benedict import benedict import dateutil SYMBOL_CHECKMARK = "\u2713" SYMBOL_X = "\u2717" class EventTasksMixin: def get_involved_object_name_list(self, events, distinct_values:bool=True) -> list: object_names : list = [] if "items" in events: events = events["items"] for ev...
PypiClean
/Margos-0.0.2.tar.gz/Margos-0.0.2/margos/system.py
from os import remove from pkg_resources import resource_filename from subprocess import check_output, check_call from typing import NamedTuple APPLETS_FOLDER = "/usr/share/mate-panel/applets" SERVICES_FOLDER = "/usr/share/dbus-1/services" SCHEMAS_FOLDER = "/usr/share/glib-2.0/schemas" COMPILED_SCHEMA = "/usr/share/gl...
PypiClean
/django-mp-poll-2.9.tar.gz/django-mp-poll-2.9/poll/models.py
from django.db import models from django.db.models import Q from django.utils.functional import cached_property from django.contrib.auth import get_user_model from django.utils.translation import ugettext_lazy as _ from ordered_model.models import OrderedModelBase class Poll(models.Model): question = models.Cha...
PypiClean
/Log_Api-0.1-py3-none-any.whl/Log_Api/Models/LogAPI.py
from sqlalchemy import Column, Integer, String, Text, TIMESTAMP, sql from sqlalchemy.ext.declarative import declarative_base Base = declarative_base() class LogAPI(Base): __tablename__ = 'LOG_APIS' ID = Column(Integer, primary_key=True, autoincrement=True, comment='Id del registro') USERN...
PypiClean
/pyvoltha-2.7.0.tar.gz/pyvoltha-2.7.0/README.rst
PyVOLTHA ======== PyVOLTHA is a collection of shared Python libraries that are use to create Python-based `VOLTHA <https://wiki.opencord.org/display/CORD/VOLTHA>`__ Device Adapters and other Python utilities (CLI, …) that need to work with the VOLTHA v2.0 and later Golang core. Initially PyVOLTHA will target only Pyt...
PypiClean
/watchmen_data_kernel-16.5.26.tar.gz/watchmen_data_kernel-16.5.26/src/watchmen_data_kernel/storage_bridge/ask_from_storage.py
from __future__ import annotations from abc import abstractmethod from datetime import date from decimal import Decimal from enum import Enum from inspect import isfunction from typing import Any, Callable, Dict, List, Optional, Tuple, Union from watchmen_auth import PrincipalService from watchmen_data_kernel.common ...
PypiClean
/hanlp_common-0.0.19.tar.gz/hanlp_common-0.0.19/hanlp_common/structure.py
import json from collections import OrderedDict from hanlp_common.io import filename_is_json, save_pickle, load_pickle, save_json, load_json class Serializable(object): """A super class for save/load operations.""" def save(self, path, fmt=None): if not fmt: if filename_is_json(path): ...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/Neo-Euler/NonUnicode/Regular/Main.js
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.NeoEulerMathJax_NonUnicode={directory:"NonUnicode/Regular",family:"NeoEulerMathJax_NonUnicode",testString:"\u00A0\uE000\uE001\uE002\uE003\uE004\uE005\uE006\uE007\uE008\uE009\uE00A\uE00B\uE00C\uE00D",32:[0,0,333,0,0],160:[0,0,333,0,0],57344:[631,28,587,64,512],57345:[691,242,...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@types/node/tty.d.ts
declare module 'tty' { import * as net from 'node:net'; /** * The `tty.isatty()` method returns `true` if the given `fd` is associated with * a TTY and `false` if it is not, including whenever `fd` is not a non-negative * integer. * @since v0.5.8 * @param fd A numeric file descriptor ...
PypiClean
/ensae_teaching_cs-0.10.3120-py3-none-any.whl/ensae_teaching_cs/faq/faq_python.py
import os import io import re import urllib.request def entier_grande_taille(): """ .. faqref:: :tag: python :title: Quel est l'entier le plus grand ? La version 3 du langage Python a supprimé la constante ``sys.maxint`` qui définissait l'entier le plus grand (voir `W...
PypiClean
/phmdoctest-1.3.0.tar.gz/phmdoctest-1.3.0/doc/directive1_report_txt.md
# doc/directive1_report.txt ~~~ doc/directive1.md fenced blocks --------------------------------------------------------- block line test TEXT or directive type number role quoted and one per line --------------------------------------------------------- python 16 skip-code...
PypiClean
/python-utilities-jsm-1.1.3.tar.gz/python-utilities-jsm-1.1.3/python_utilities/logging/summary_helper.py
from __future__ import unicode_literals ''' Copyright 2014 Jonathan Morgan This file is part of http://github.com/jonathanmorgan/python_utilities. python_utilities 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 Fou...
PypiClean
/rubx-10.6.9-py3-none-any.whl/rb/rubino.py
import difflib, typing, logging, sys from requests import post, get, session as sessions from .crypto import Encryption from .sessions import RubinoClient as Client from .clients import * class Rubino(object): def __init__(self, base_logger: str = __name__, session: str = None) -> (None): ...
PypiClean
/SQLAlchemy-2.0.20.tar.gz/SQLAlchemy-2.0.20/lib/sqlalchemy/pool/base.py
from __future__ import annotations from collections import deque import dataclasses from enum import Enum import threading import time import typing from typing import Any from typing import Callable from typing import cast from typing import Deque from typing import Dict from typing import List from typing import Opt...
PypiClean
/text_category-0.0.1.tar.gz/text_category-0.0.1/text_category/data_loader.py
import torch from text_category.utils import build_dataset, build_dataset_for_test from torch.utils.data import DataLoader, TensorDataset def data_loader(config): train_data, dev_data, test_data = build_dataset(config, use_word=config.use_word) train_ids = torch.LongTensor([temp.input_id for temp in train_d...
PypiClean
/pmxlock-1.1.0.tar.gz/pmxlock-1.1.0/README.md
# pmxlock Python classes and CLI tools for cluster-wide Proxmox pmxcfs locks. ## Installation Use `pip` for install: ```bash pip install pmxlock ``` ## CLI usage Start simple command: ```bash pmxlock mylockname echo hello ``` or ```bash python3 -m pmxlock mylockname echo hello ``` Only one command with `mylockna...
PypiClean
/yt-dlp-custom-0.0.1.tar.gz/yt-dlp-custom-0.0.1/yt_dlp/extractor/nba.py
import functools import re from .turner import TurnerBaseIE from ..compat import ( compat_str, compat_urllib_parse_unquote, ) from ..utils import ( int_or_none, merge_dicts, OnDemandPagedList, parse_duration, parse_iso8601, parse_qs, try_get, update_url_query, urljoin, ) c...
PypiClean
/tensorflow_edwin-2.10.1-cp38-cp38-win_amd64.whl/tensorflow/python/keras/constraints.py
"""Constraints: functions that impose constraints on weight values.""" from tensorflow.python.framework import tensor_shape from tensorflow.python.keras import backend from tensorflow.python.keras.utils.generic_utils import deserialize_keras_object from tensorflow.python.keras.utils.generic_utils import serialize_kera...
PypiClean
/sermon-1.0.1.tar.gz/sermon-1.0.1/LICENSE.md
Sermon - A command line serial device monitor and transmitter. Copyright (C) 2014 Daniel Bridges 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, either version 3 of the License, or (at your option) ...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/azure/azcollection/plugins/modules/azure_rm_appgateway.py
from __future__ import absolute_import, division, print_function __metaclass__ = type DOCUMENTATION = ''' --- module: azure_rm_appgateway version_added: "0.1.2" short_description: Manage Application Gateway instance description: - Create, update and delete instance of Application Gateway. options: resource_...
PypiClean
/dsdlsdk-0.1.0.post203.tar.gz/dsdlsdk-0.1.0.post203/dsdl/tools/visualize.py
from ..dataset import Dataset, ImageVisualizePipeline, Util from ..objectio import LocalFileReader import click import numpy as np from random import randint import cv2 import os import json import random try: from yaml import CSafeLoader as YAMLSafeLoader except ImportError: from yaml import SafeLoader as YAM...
PypiClean
/PyCocoa-23.2.6.zip/PyCocoa-23.2.6/pycocoa/screens.py
# License at the end of this file. '''Types L{Frame} and L{Screen}, wrapping ObjC C{NSScreen}. ''' # all imports listed explicitly to help PyChecker from pycocoa.bases import _Type0 from pycocoa.geometry import Point, Rect, Size from pycocoa.lazily import _ALL_LAZY, _COMMASPACE_ # PYCHOK used! from pycocoa.nstypes i...
PypiClean
/sarus_data_spec_public-3.5.16.tar.gz/sarus_data_spec_public-3.5.16/sarus_data_spec/manager/ops/processor/routing.py
import logging import typing as t import pyarrow as pa from sarus_data_spec.manager.ops.base import ( DatasetImplementation, DatasetStaticChecker, DataspecStaticChecker, ScalarImplementation, ) from sarus_data_spec.manager.ops.processor.external.external_op import ( # noqa: E501 ExternalDatasetOp...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/sites/item/content_types/item/columns/item/column_definition_item_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/plico_motor_server-0.1.1-py3-none-any.whl/plico_motor_server/devices/picomotor.py
import socket from plico.utils.logger import Logger from plico.utils.decorator import override from plico_motor_server.devices.abstract_motor import AbstractMotor from plico_motor.types.motor_status import MotorStatus class PicomotorException(Exception): pass class MyTcpSocket(socket.socket): ''' TCP s...
PypiClean
/pyckage_cookiecutter-0.4.0-py3-none-any.whl/{{cookiecutter.project_slug}}/README.rst
{{cookiecutter.project_name}} {% for _ in cookiecutter.project_name %}={% endfor %} Introduction ------------ {{cookiecutter.short_description}} Prerequisites ------------- To install the dependencies listed in `requirements/base.txt`, you can use:: $ pip install -r requirements/base.txt User Guide ---------- ...
PypiClean
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/@jupyterlab/statedb/lib/statedb.js
"use strict"; // Copyright (c) Jupyter Development Team. // Distributed under the terms of the Modified BSD License. Object.defineProperty(exports, "__esModule", { value: true }); exports.StateDB = void 0; const signaling_1 = require("@lumino/signaling"); /** * The default concrete implementation of a state database. ...
PypiClean
/Twisted_binary-20.3.0-cp38-cp38-win_amd64.whl/twisted/logger/_stdlib.py
import logging as stdlibLogging from zope.interface import implementer from twisted.python.compat import _PY3, currentframe, unicode from ._levels import LogLevel from ._format import formatEvent from ._observer import ILogObserver # Mappings to Python's logging module toStdlibLogLevelMapping = { LogLevel.debu...
PypiClean
/ctrlx_fbs-2.0.0-py3-none-any.whl/motion/core/fbtypes/AxsActualValues.py
# namespace: fbtypes import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() # actual values from the drives class AxsActualValues(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, ...
PypiClean
/c_formatter_42-0.2.4.tar.gz/c_formatter_42-0.2.4/README.md
<p align="center"> <a style="text-decoration:none" href="https://badge.fury.io/py/c-formatter-42"><img src="https://badge.fury.io/py/c-formatter-42.svg" alt="PyPI version" height="20"></a> <a style="text-decoration:none" href="https://github.com/dawnbeen/c_formatter_42/actions"><img src="https://github.com/cacharle...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/storagesync/get_registered_server.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs __all__ = [ 'GetRegisteredServerResult', 'AwaitableGetRegisteredServerResult', 'get_registered_server', 'get_registered_s...
PypiClean
/azure-mgmt-containerregistry-10.1.0.zip/azure-mgmt-containerregistry-10.1.0/azure/mgmt/containerregistry/v2022_02_01_preview/models/_container_registry_management_client_enums.py
from enum import Enum from azure.core import CaseInsensitiveEnumMeta class Action(str, Enum, metaclass=CaseInsensitiveEnumMeta): """The action of IP ACL rule.""" ALLOW = "Allow" class ActionsRequired(str, Enum, metaclass=CaseInsensitiveEnumMeta): """A message indicating if changes on the service provi...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/policies/permission_grant_policies/permission_grant_policies_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
/mppsolar-0.16.10-py3-none-any.whl/powermon/ports/abstractport.py
import logging from abc import ABC, abstractmethod from enum import auto from strenum import LowercaseStrEnum from powermon.libs.result import Result log = logging.getLogger("Port") class PortType(LowercaseStrEnum): UNKNOWN = auto() TEST = auto() USB = auto() ESP32 = auto() SERIAL = auto() ...
PypiClean
/view-logger-1.0.tar.gz/view-logger-1.0/README.md
# View logger View Logger is a decorators for Django views. It allows you to collect basic information about the user who made the request and about errors. ## Quick start 1. Create empty dir `logs` in the root of your project 2. Create `logging` configuration in your setting. By default, `view-logger` uses `error_...
PypiClean
/lazr.restful-2.0.1-py3-none-any.whl/lazr/restful/directives/__init__.py
__all__ = [ "request_class", "publication_class", "settings", ] import martian from zope.component import getSiteManager from zope.location.interfaces import ILocation from zope.interface.interface import InterfaceClass from zope.traversing.browser import AbsoluteURL from zope.traversing.browser.interfaces...
PypiClean
/mediapipe-rpi4-0.8.8.tar.gz/mediapipe-rpi4-0.8.8/mediapipe/calculators/video/box_tracker_calculator_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
/Elevator-0.5c.tar.gz/Elevator-0.5c/elevator/backend/supervisor.py
# Copyright (c) 2012 theo crevon # # See the file LICENSE for copying permission. import zmq import logging from collections import defaultdict from elevator.utils.snippets import sec_to_ms from elevator.backend.worker import Worker from elevator.backend.protocol import ServiceMessage from elevator.backend.protoco...
PypiClean
/v2/model/create_pool_v2_req.py
import pprint import re import six class CreatePoolV2Req: """ 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 def...
PypiClean
/realms-wiki-0.9.3.tar.gz/realms-wiki-0.9.3/realms/static/vendor/localforage/site/index.md
--- title: localForage API Reference language_tabs: - javascript - coffeescript toc_footers: - <a href="https://github.com/mozilla/localForage">Contribute to localForage</a> - <a href="https://github.com/tripit/slate">(Docs Powered by Slate)</a> --- # localForage ```javascript // In localStorage, we would ...
PypiClean
/UP-Manager-0.0.0.tar.gz/UP-Manager-0.0.0/django/utils/datastructures.py
import copy import warnings from django.utils import six class MergeDict(object): """ A simple class for creating new "virtual" dictionaries that actually look up values in more than one dictionary, passed in the constructor. If a key appears in more than one of the given dictionaries, only the f...
PypiClean
/azure-quantum-0.25.222596b1.tar.gz/azure-quantum-0.25.222596b1/azure/quantum/cirq/job.py
from typing import TYPE_CHECKING, Dict, Sequence if TYPE_CHECKING: import cirq from azure.quantum import Job as AzureJob class Job: """ Thin wrapper around an Azure Quantum Job that supports returning results in Cirq format. """ def __init__( self, azure_job: "AzureJob", ...
PypiClean
/tima-mindif-2.0.1.tar.gz/tima-mindif-2.0.1/tima/__main__.py
import time import argparse import sys import os from loguru import logger # from .tima_mindif_processor import tima_mindif_processor as tima14 from .tima_mindif_processor import tima_mindif_processor def parse_args(args): parser = argparse.ArgumentParser(description="Process TIMA data") parser.add_argument(...
PypiClean
/smpp.pdu-0.3.tar.gz/smpp.pdu-0.3/smpp/pdu/operations.py
from smpp.pdu.pdu_types import CommandId, PDU, PDURequest, PDUResponse, PDUDataRequest class BindTransmitterResp(PDUResponse): noBodyOnError = True commandId = CommandId.bind_transmitter_resp mandatoryParams = ['system_id'] optionalParams = ['sc_interface_version'] class BindTransmitter(PDURequest...
PypiClean
/P4Benchmark-0.1.3.tar.gz/P4Benchmark-0.1.3/parsing/bm_parser.py
import os from subprocess import call from pkg_resources import resource_filename from p4gen.genpcap import get_parser_header_pcap, get_parser_field_pcap from p4gen.p4template import * from p4gen import copy_scripts def generate_pisces_command(out_dir, nb_headers, nb_fields, checksum=False): rules = add_pisces_for...
PypiClean
/npp_materialslab_tools-0.0.4.tar.gz/npp_materialslab_tools-0.0.4/npp_materialslab_tools/dmm/tektronix_DMM4020/monitorMeasurementClassDummy.py
#!/usr/bin/python ''' A simple script to draw a live graph from the data output of a Tektronix DMM4020 Multimeter. Copyright (C) 2023 N. Papadakis Modified: 2013 JP Meijers script This program is free software; you can redistribute it and/or modify it under the terms of the GNU Gener...
PypiClean
/djmemcache-0.13.tar.gz/djmemcache-0.13/README.rst
djmemcache ===================== An efficient fast Django Memcached backend with a pool of connectors, based on pymemcache. See https://github.com/zhumengyuan/djmemcache Each connection added in the pool stays connected to Memcache or Membase, drastically limiting the number of reconnections and open sockets your ap...
PypiClean
/llama_hub-0.0.26-py3-none-any.whl/llama_hub/discord/README.md
# Discord Loader This loader loads conversations from Discord. The user specifies `channel_ids` and we fetch conversations from those `channel_ids`. ## Usage Here's an example usage of the DiscordReader. ```python from llama_index import download_loader import os DiscordReader = download_loader('DiscordReader') d...
PypiClean
/odoo_addon_connector_jira_servicedesk-15.0.1.0.0.2-py3-none-any.whl/odoo/addons/connector_jira_servicedesk/models/project_project/binder.py
import logging from odoo import tools from odoo.addons.component.core import Component _logger = logging.getLogger(__name__) class JiraProjectBinder(Component): _inherit = "jira.project.binder" def to_internal(self, external_id, unwrap=False, organizations=None): """Give the Odoo recordset for an...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/authorization/outputs.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs from ._enums import * __all__ = [ 'AccessReviewHistoryInstanceResponse', 'AccessReviewInstanceResponse', 'AccessReviewReviewe...
PypiClean
/typetree-0.1.6.tar.gz/typetree-0.1.6/README.rst
|icon| typetree =============== .. |icon| image:: https://raw.githubusercontent.com/hugospinelli/typetree/master/typetree/icons/icon.ico .. image:: https://img.shields.io/pypi/l/typetree :target: https://github.com/hugospinelli/typetree/blob/master/LICENSE.txt :alt: License .. image:: https://img.shields.io/p...
PypiClean
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/utils/batch-jobs/generate.py
import os import subprocess from pathlib import Path import esmvaltool # Name of the conda environment in which esmvaltool is installed env = 'coretool26rc4' # Mail notifications when a submitted job fails or finishes mail = False # Name of the conda environment in which esmvaltool is installed submit = False # Name ...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/sites/item/term_store/groups/item/sets/item/children/item/relations/item/relation_item_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/csv.toolkit-0.1.0.tar.gz/csv.toolkit-0.1.0/LICENSE.rst
The MIT License (MIT) Copyright (c) 2016 Michael Conroy 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 without limitation the rights to use, copy, modify, merge, p...
PypiClean
/django_permafrost-0.2.23-py3-none-any.whl/permafrost/forms.py
from django.conf import settings from django.contrib.auth.models import Permission from django.contrib.sites.models import Site from django.core.exceptions import ValidationError from django.forms import ModelForm from django.forms.fields import CharField, ChoiceField, BooleanField from django.forms.models import Model...
PypiClean
/django_francedata-0.16.2.tar.gz/django_francedata-0.16.2/francedata/migrations/0001_initial.py
import django.core.validators from django.db import migrations, models import django.db.models.deletion import francedata.services.validators class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Commune', ...
PypiClean
/pyFipper-0.1.3.tar.gz/pyFipper-0.1.3/pyrogram/handlers/raw_update_handler.py
from typing import Callable from .handler import Handler class RawUpdateHandler(Handler): """The Raw Update handler class. Used to handle raw updates. It is intended to be used with :meth:`~pyrogram.Client.add_handler` For a nicer way to register this handler, have a look at the :meth:`~pyrogram.Cl...
PypiClean
/acapy_peopledata_did-0.1.0-py3-none-any.whl/peopledata_did/v1_0/utils/wallet/util.py
import base64 import base58 import nacl.bindings import nacl.utils def random_seed() -> bytes: """ Generate a random seed value. Returns: A new random seed """ return nacl.utils.random(nacl.bindings.crypto_box_SEEDBYTES) def pad(val: str) -> str: """Pad base64 values if need be: ...
PypiClean
/binary_manager-0.0.2-py3-none-any.whl/binman/btool/mkimage.py
"""Bintool implementation for mkimage""" import re from binman import bintool class Bintoolmkimage(bintool.Bintool): """Image generation for U-Boot This bintool supports running `mkimage` with some basic parameters as neeed by binman. Normally binman uses the mkimage built by U-Boot. But when run o...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/uhd_restpy/testplatform/sessions/ixnetwork/quicktest/results_0c2f56d02d358b533080507f5da003fe.py
import sys from uhd_restpy.base import Base from uhd_restpy.files import Files if sys.version_info >= (3, 5): from typing import List, Any, Union class Results(Base): """This is the collected result based on the configuration of the tracking area for each of the traffic items. The Results class encapsulat...
PypiClean
/transcend-py-0.1.13.tar.gz/transcend-py-0.1.13/transcend/cli.py
import re import os import copy import humanfriendly from collections import OrderedDict import subprocess __all__ = ( 'Runnable', 'OptSet', 'Opt', 'Flag', 'FlagsOpt', 'BitOpt', 'ByteOpt', 'TimeOpt', 'IntOpt', 'FloatOpt', 'BoundedOpt', 'EnableOpt', 'KeyValOpt', ...
PypiClean
/bpy_optix-2.82-cp37-cp37m-win_amd64.whl/bpy_optix-2.82.data/scripts/2.82/scripts/addons/io_export_dxf/primitive_exporters/camera_exporter.py
from .base_exporter import BasePrimitiveDXFExporter class CameraDXFExporter(BasePrimitiveDXFExporter): pass #----------------------------------------------------- def exportCamera(ob, mx, mw, **common): """converts Camera-Object to desired projection and representation(DXF-Entity type) """ location ...
PypiClean
/py_newcalls-0.0.1-cp38-cp38-macosx_11_0_x86_64.whl/newcalls/node_modules/@types/node/ts4.8/timers.d.ts
declare module 'timers' { import { Abortable } from 'node:events'; import { setTimeout as setTimeoutPromise, setImmediate as setImmediatePromise, setInterval as setIntervalPromise } from 'node:timers/promises'; interface TimerOptions extends Abortable { /** * Set to `false` to indicate that...
PypiClean
/jupyterlab_autorun_cells-1.0.0-py3-none-any.whl/jupyterlab_autorun_cells/labextension/static/style_index_js.21b1487c08fbd17c05cc.js
(self["webpackChunk_epi2melabs_jupyterlab_autorun_cells"] = self["webpackChunk_epi2melabs_jupyterlab_autorun_cells"] || []).push([["style_index_js"],{ /***/ "./node_modules/css-loader/dist/cjs.js!./style/index.css": /*!***************************************************************!*\ !*** ./node_modules/css-loader/...
PypiClean
/openapi_jira_client-3.0.1-py3-none-any.whl/openapi_jira_client/models/page_of_changelogs.py
from typing import Any, Dict, List, Type, TypeVar, Union, cast import attr from ..models.changelog import Changelog from ..types import UNSET, Unset T = TypeVar("T", bound="PageOfChangelogs") @attr.s(auto_attribs=True) class PageOfChangelogs: """ A page of changelogs. """ start_at: Union[Unset, int] = UNS...
PypiClean
/pulumi_fortios-0.0.9.tar.gz/pulumi_fortios-0.0.9/pulumi_fortios/log_syslogd4_filter.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from . import _utilities from . import outputs from ._inputs import * __all__ = ['LogSyslogd4FilterArgs', 'LogSyslogd4Filter'] @pulumi.input_type class LogSyslogd4FilterArgs: def _...
PypiClean
/bitdust_p2p-0.0.3-py3-none-any.whl/bitdust/transport/udp/udp_interface.py
#------------------------------------------------------------------------------ from __future__ import absolute_import import six #------------------------------------------------------------------------------ import os import sys #------------------------------------------------------------------------------ try...
PypiClean