id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/visip-0.1.0-py3-none-any.whl/visip_gui/data/g_action_data_model.py
from PyQt5 import QtCore from .tree_model import TreeModel class GActionData: NAME = 0 X = 1 Y = 2 WIDTH = 3 HEIGHT = 4 class GActionDataModel(TreeModel): def __init__(self, data="", parent=None): super(GActionDataModel, self).__init__(['object_name', 'x', 'y', 'width', 'height'], da...
PypiClean
/chatbot_nlu-1.0.3-py3-none-any.whl/chatbot_nlu/training_data/formats/rasa.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging from collections import defaultdict from chatbot_nlu.training_data import Message, TrainingData from chatbot_nlu.training_data.formats.readerwriter import...
PypiClean
/px_proxy-0.8.4-py3-none-win_amd64.whl/px/libcurl/_curlver.py
#*************************************************************************** # _ _ ____ _ # Project ___| | | | _ \| | # / __| | | | |_) | | # | (__| |_| | _ <| |___ # \___|\___/...
PypiClean
/service-bootstrap-0.0.5.tar.gz/service-bootstrap-0.0.5/src/bootstrap/storage.py
import json import mimetypes import os import shutil class SingleObjectStorage: def __init__(self, file_name): self.file_name = file_name def load(self, default_value=None): if os.path.exists(self.file_name): with open(self.file_name, 'r', encoding='utf-8') as f: r...
PypiClean
/gaeframework-2.0.10.tar.gz/gaeframework-2.0.10/google_appengine/lib/django_1_2/django/contrib/gis/admin/widgets.py
from django.conf import settings from django.contrib.gis.gdal import OGRException from django.contrib.gis.geos import GEOSGeometry, GEOSException from django.forms.widgets import Textarea from django.template import loader, Context from django.utils import translation # Creating a template context that contains Django...
PypiClean
/funkiio-1.0.1-py3-none-any.whl/homeassistant/components/owntracks/__init__.py
from collections import defaultdict import json import logging import re from aiohttp.web import json_response import voluptuous as vol from homeassistant import config_entries from homeassistant.components import mqtt from homeassistant.const import CONF_WEBHOOK_ID from homeassistant.core import callback import home...
PypiClean
/Sensifai-0.6.1.tar.gz/Sensifai-0.6.1/sensifai/client.py
import os import json import logging import requests from sensifai.payloads import ( upload_by_url_payload, upload_by_file_payload, default_response_query, get_result_payload, ) from sensifai.exceptions import ApiError, ClientError from sensifai.responses import upload_response_maker, get_result_respon...
PypiClean
/shopcloud_django_authenticator-1.12.0-py3-none-any.whl/authenticator/views.py
from typing import Optional import jwt from django.conf import settings from django.contrib.auth import login from django.contrib.auth.models import User from django.contrib.sessions.models import Session from django.http import HttpResponse, JsonResponse from django.shortcuts import redirect class TokenMissingError...
PypiClean
/zgram-1.0.0.tar.gz/zgram-1.0.0/Zgram/schedule.py
import threading from uuid import uuid4 class _Schedule(object): """ 周期性任务类 """ def __init__(self, queue_size): self.__queue_size = queue_size self.__queue_mutex = threading.Lock() self.__queue = {} def __create(self, gap, func, args): class RepeatingTimer(threading...
PypiClean
/tati-0.9.5-py3-none-any.whl/TATi/models/trajectories/trajectory_sampling.py
import logging import tensorflow as tf from TATi.models.trajectories.trajectory_base import TrajectoryBase class TrajectorySampling(TrajectoryBase): """Refines the Trajectory class to perform a sampling trajectory.""" def __init__(self, trajectory_state): super(TrajectorySampling, self).__init__(traj...
PypiClean
/pretixGWW-10.4.1.tar.gz/pretixGWW-10.4.1/pretix/base/services/tickets.py
import os from datetime import timedelta from django.core.files.base import ContentFile from django.utils.timezone import now from django.utils.translation import ugettext as _ from pretix.base.i18n import language from pretix.base.models import ( CachedCombinedTicket, CachedTicket, Event, InvoiceAddress, Order, ...
PypiClean
/odoo14_addon_stock_storage_type-14.0.1.12.1-py3-none-any.whl/odoo/addons/stock_storage_type/models/stock_storage_location_sequence_cond.py
import logging import textwrap from odoo import _, api, exceptions, fields, models from odoo.tools import safe_eval _logger = logging.getLogger(__name__) class StockStorageLocationSequenceCond(models.Model): _name = "stock.storage.location.sequence.cond" _description = "Stock Storage Location Sequence Cond...
PypiClean
/pybullet-3.2.5-cp27-cp27mu-manylinux_2_5_x86_64.manylinux1_x86_64.whl/pybullet_envs/minitaur/robots/autonomous_object.py
"""A module that defines autonomous object class and related functions.""" from typing import Any, Callable, Dict, Optional, Sequence, Text, Union from absl import logging import gin import numpy as np from pybullet_utils import bullet_client from pybullet_envs.minitaur.envs_v2 import base_client from pybullet_envs.m...
PypiClean
/perun.connector-3.7.3-py3-none-any.whl/perun/connector/perun_openapi/model/input_get_paginated_subgroups.py
import re # noqa: F401 import sys # noqa: F401 from perun.connector.perun_openapi.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, file_type, ...
PypiClean
/metricz-0.1.5.2.tar.gz/metricz-0.1.5.2/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install Metricz, run this command in your terminal: .. code-block:: console $ pip install metricz This is the preferred method to install Metricz, as it will always install the most recent stable release. If you do...
PypiClean
/notifyme-0.2.0.tar.gz/notifyme-0.2.0/README.rst
notifyme ======== This module is just a neat little context manager that can notify you via email to your email account when its body is completed. Example usage: .. code:: python from notifyme import notify with notify('Long, laborious task'): # Perform long, laborious task Once the long, laboriou...
PypiClean
/zhousf-lib-0.9.9.tar.gz/zhousf-lib-0.9.9/zhousflib/web/logger.py
import time from pathlib import Path from prettytable import PrettyTable class Logger(object): def __init__(self, log_dir: Path = None, g=None): """ 数据链 :param log_dir: 日志目录,默认空 :param g: flask.g 默认空 :param print: 打印日志 """ self.log_dir = log_dir day_...
PypiClean
/win32ext-221.2-cp36-cp36m-win32.whl/pythonwin/pywin/Demos/fontdemo.py
# usage examples: # >>> from fontdemo import * # >>> d = FontDemo('Hello, Python') # >>> f1 = { 'name':'Arial', 'height':36, 'weight':win32con.FW_BOLD} # >>> d.SetFont(f1) # >>> f2 = {'name':'Courier New', 'height':24, 'italic':1} # >>> d.SetFont (f2) import win32ui import win32con import win32api from pywin.mfc im...
PypiClean
/piglab-0.2.5-py3-none-any.whl/machinelearning/models/pigchess/net/policy_value_net.py
from __future__ import print_function import os import sys import theano import theano.tensor as T import lasagne import pickle # PATH CUR_PATH = os.path.dirname(os.path.abspath(__file__)) BASE_PATH = os.path.realpath(CUR_PATH + '/../../../../') sys.path.append(BASE_PATH) from machinelearning.lib import utils class ...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_7/models/direction.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flashblade.FB_2_7 import models class Direction(object): """ Attributes: swagger_types (dict): The key is attribute name and the value is attri...
PypiClean
/qmpy-tri-2022.7.21.tar.gz/qmpy-tri-2022.7.21/docs/getting_started.rst
============ Installation ============ --------- From repo --------- Install qmpy with pip or easy install:: >>> pip install qmpy or:: >>> easy_install -U qmpy .. note:: Using pip or easy_install to install scipy or numpy can be unreliable. It is better to install from a proper repository for you...
PypiClean
/megatron_core-0.2.0.tar.gz/megatron_core-0.2.0/megatron/core/tensor_parallel/mappings.py
import torch from megatron.core.parallel_state import ( get_tensor_model_parallel_rank, get_tensor_model_parallel_world_size, get_tensor_model_parallel_group, ) from .utils import split_tensor_along_last_dim def _reduce(input_): """All-reduce the input tensor across model parallel group.""" # B...
PypiClean
/group-based-policy-2015.2.8.tar.gz/group-based-policy-2015.2.8/gbpservice/neutron/services/grouppolicy/drivers/cisco/apic/apic_mapping.py
import copy import hashlib import netaddr import re from apic_ml2.neutron.db import l3out_vlan_allocation as l3out_vlan_alloc from apic_ml2.neutron.db import port_ha_ipaddress_binding as ha_ip_db from apic_ml2.neutron.plugins.ml2.drivers.cisco.apic import apic_model from apic_ml2.neutron.plugins.ml2.drivers.cisco.api...
PypiClean
/elastic-apm-6.18.0.tar.gz/elastic-apm-6.18.0/elasticapm/conf/__init__.py
import logging import logging.handlers import math import os import re import socket import threading from datetime import timedelta from elasticapm.conf.constants import BASE_SANITIZE_FIELD_NAMES, TRACE_CONTINUATION_STRATEGY from elasticapm.utils import compat, starmatch_to_regex from elasticapm.utils.logging impor...
PypiClean
/mplh5canvas-0.7.tar.gz/mplh5canvas-0.7/examples/slider_plot.py
import numpy as np try: # SciPy is an optional dependency to get the jinc function import scipy.special as sp except ImportError: sp = None import matplotlib matplotlib.use('module://mplh5canvas.backend_h5canvas') from pylab import * # Angular diameter of the source, in arcminutes (default = Sun's diamete...
PypiClean
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v2_5_0/spm_devices_vendor_model_grid_broker.py
from ..broker import Broker class SpmDevicesVendorModelGridBroker(Broker): controller = "spm_devices_vendor_model_grids" def index(self, **kwargs): """Lists the available spm devices vendor model grids. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the v...
PypiClean
/collective.sphinx.includedoc-0.2.zip/collective.sphinx.includedoc-0.2/collective/sphinx/includedoc/__init__.py
import os import sys import textwrap from docutils.nodes import section from docutils.parsers.rst import Directive from docutils.statemachine import ViewList, StringList, string2lines from sphinx.ext.autodoc import prepare_docstring TABLE_COLS = ['Name', 'Required', 'Searchable', 'Type', 'Storage'] class NotFound(E...
PypiClean
/scikit_activeml-0.4.1-py3-none-any.whl/skactiveml/pool/_query_by_committee.py
import copy import numpy as np from sklearn import clone from sklearn.utils.validation import check_array, check_is_fitted from ..base import ( SingleAnnotatorPoolQueryStrategy, SkactivemlClassifier, SkactivemlRegressor, ) from ..utils import ( simple_batch, check_type, compute_vote_vectors, ...
PypiClean
/django-adminlte-3-0.1.6.tar.gz/django-adminlte-3-0.1.6/adminlte3/static/admin-lte/plugins/sweetalert2/sweetalert2.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = global || self, global.Sweetalert2 = factory()); }(this, function () { 'use strict'; function _typeof(obj) { "@b...
PypiClean
/Xnt-0.6.3.tar.gz/Xnt-0.6.3/xnt/build/tex.py
"""LaTeX Build Module""" # Xnt -- A Wrapper Build Tool # Copyright (C) 2013 Kenny Ballou # 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 ...
PypiClean
/classy_imaginary-0.6.5.tar.gz/classy_imaginary-0.6.5/classy_imaginary/model_manager.py
import gc import logging import os import re import sys import urllib.parse from functools import wraps import requests import torch from huggingface_hub import HfFolder from huggingface_hub import hf_hub_download as _hf_hub_download from huggingface_hub import try_to_load_from_cache from omegaconf import OmegaConf fr...
PypiClean
/python-libraclient-2.0.0.tar.gz/python-libraclient-2.0.0/libraclient/openstack/common/cliutils.py
# Copyright 2012 Red Hat, Inc. # # 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 agr...
PypiClean
/fhirclientr4e-4.0.8.tar.gz/fhirclientr4e-4.0.8/fhirclient/models/communication.py
from . import domainresource class Communication(domainresource.DomainResource): """ A record of information transmitted from a sender to a receiver. An occurrence of information being transmitted; e.g. an alert that was sent to a responsible provider, a public health agency that was notified about ...
PypiClean
/pyfastkvjson-3.1.16.tar.gz/pyfastkvjson-3.1.16/.eggs/setuptools_scm-7.1.0-py3.9.egg/setuptools_scm/integration.py
from __future__ import annotations import itertools import os import warnings from typing import Any from typing import Callable from typing import TYPE_CHECKING import setuptools from . import _get_version from . import _version_missing from ._entrypoints import iter_entry_points from ._integration.setuptools impor...
PypiClean
/pyqode.core-4.0.10.tar.gz/pyqode.core-4.0.10/pyqode/core/api/syntax_highlighter.py
import logging import sys import time import weakref from pygments.styles import get_style_by_name, get_all_styles from pygments.token import Token, Punctuation from pygments.util import ClassNotFound from pyqode.core.api.mode import Mode from pyqode.core.api.utils import drift_color from qtpy import QtGui, QtCore, QtW...
PypiClean
/monasca-notification-8.0.0.0rc1.tar.gz/monasca-notification-8.0.0.0rc1/monasca_notification/processors/notification_processor.py
from oslo_log import log as logging from monasca_notification.common.repositories import exceptions as exc from monasca_notification.common.utils import get_db_repo from monasca_notification.common.utils import get_statsd_client from monasca_notification.types import notifiers log = logging.getLogger(__name__) cla...
PypiClean
/openbb-3.2.2-py3-none-any.whl/openbb_terminal/stocks/discovery/finviz_view.py
__docformat__ = "numpy" import os from typing import Optional, Union import pandas as pd import plotly.express as px from openbb_terminal import OpenBBFigure from openbb_terminal.helper_funcs import export_data from openbb_terminal.stocks.discovery import finviz_model def display_heatmap( timeframe: str, e...
PypiClean
/references_parser-1.2.1-py3-none-any.whl/references_parser/parsers/ieee_parser.py
from typing import List, Optional from .ssau_parser import SsauParser SEP = ", " class IEEEParser(SsauParser): def __init__(self): super().__init__() """ Parses Bibtext into IEEE citation format. Official citation guideline: https://ieee-dataport.org/sites/default/files/analysis/27/IEEE%...
PypiClean
/baiduads-sdk-auto-snapshot-2022.2.1.5.tar.gz/baiduads-sdk-auto-snapshot-2022.2.1.5/baiduads/dpaadgroupfeed/model/update_adgroup_feed_request.py
import re # noqa: F401 import sys # noqa: F401 from baiduads.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, valid...
PypiClean
/columbia-discord-bot-0.2.1.tar.gz/columbia-discord-bot-0.2.1/docs/_build/html/_static/_pytest/nodes.py
import os import warnings from inspect import signature from pathlib import Path from typing import Any from typing import Callable from typing import cast from typing import Iterable from typing import Iterator from typing import List from typing import MutableMapping from typing import Optional from typing import ove...
PypiClean
/pycrystalpay-3.0.6.tar.gz/pycrystalpay-3.0.6/README.md
# pyCrystalPay Get paid easily Привет! Эта библиотека создана для упращения работы с Crystal Pay. Установка : pip install pycrystalpay Импорт и вход в кассу: from pycrystalpay import CrystalPay crystal = CrystalPay('логин_кассы','секретный_ключ_1') Функиции : ----------------------...
PypiClean
/redsession-1.1.1.tar.gz/redsession-1.1.1/README.rst
.. image:: https://raw.githubusercontent.com/TheJecksMan/red-session/main/docs/_static/logo_lib.png :align: center :alt: red-session logo :width: 200 .. image:: https://img.shields.io/pypi/pyversions/redsession :target: https://pypi.org/project/redsession/ :alt: PyPI - Python Version .. image:: https:/...
PypiClean
/paddlepaddle-2.5.1-cp310-cp310-win_amd64.whl/paddle/distributed/passes/auto_parallel_recompute.py
import logging import paddle from paddle.distributed.fleet.meta_optimizers.common import OP_ROLE_KEY, OpRole from paddle.fluid.backward import ( ProgramStats, _append_grad_suffix_, _find_op_path_, _get_no_grad_set_name, _rename_arg_, ) from paddle.framework import core from paddle.utils import uni...
PypiClean
/gu-django-tinymce-2.7.2.tar.gz/gu-django-tinymce-2.7.2/tinymce/static/tiny_mce/plugins/media/langs/ko_dlg.js
tinyMCE.addI18n('ko.media_dlg',{list:"\ubaa9\ub85d",file:"\ud30c\uc77c/URL",advanced:"\uace0\uae09",general:"\uc77c\ubc18",title:"\ubbf8\ub514\uc5b4 \uc0bd\uc785/\ud3b8\uc9d1","align_top_left":"Top left","align_center":"Center","align_left":"Left","align_bottom":"Bottom","align_right":"Right","align_top":"Top","qt_stre...
PypiClean
/wasp-launcher-0.0.2.tar.gz/wasp-launcher-0.0.2/wasp_launcher/static/angular/1.6.1/i18n/angular-locale_en-dm.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/image-segmentation-marking-aicore-1.1.3.tar.gz/image-segmentation-marking-aicore-1.1.3/api.py
from image_segmentation_aicore.utils import (ImageSegmentation, # perform_segmentation, # decode_image, # save_image_to_s3) # ...
PypiClean
/aifs_nni-1.9.5-py3-none-manylinux1_x86_64.whl/aifs_nni-1.9.5.data/data/nni/node_modules/check-error/README.md
<h1 align=center> <a href="http://chaijs.com" title="Chai Documentation"> <img alt="ChaiJS" src="http://chaijs.com/img/chai-logo.png"/> check-error </a> </h1> <p align=center> Error comparison and information related utility for <a href="http://nodejs.org">node</a> and the browser. </p> <p align=center> <...
PypiClean
/pyramid_decoy-0.2.0.tar.gz/pyramid_decoy-0.2.0/docs/source/index.rst
.. include:: ../../README.rst Usage ----- pyramid_decoy's usage is pretty strightforward. It can work as a standalone app, or other pyramid's app extension. Extension ========= To run it as an extension, include pyramid_decoy either by configuration: .. code-block:: ini [app:main] # ... pyramid.includ...
PypiClean
/fiscalmodel-0.1.1.tar.gz/fiscalmodel-0.1.1/README.md
# fiscalmodel This package holds reference data (taxonomies) for the classification of fiscal data (government budgets, expenditure reports, and similar). The goal is to provide a simple yet comprehensive way to describe the purpose and contents of a particular dataset with regards to a country's budget process. This...
PypiClean
/AutoTrader_Web_API_Stocks_Developer-1.3.5-py3-none-any.whl/com/dakshata/trading/model/platform/PlatformOrder.py
from com.dakshata.trading.model.portfolio.CoreOrder import CoreOrder class PlatformOrder(CoreOrder): def __init__(self, id, tradeType, orderType, productType, \ variety, validity, quantity, disclosedQuantity, \ price, triggerPrice, amo, statusMessage, publisherId, \ pseudoAccount, tradingA...
PypiClean
/Caesium-0.3.1.tar.gz/Caesium-0.3.1/caesium/handler.py
__author__ = 'hunt3r' """ A base handlers module """ import json import tornado.web from bson.objectid import ObjectId import logging from pymongo.errors import InvalidDocument, InvalidOperation, InvalidId from bson import json_util from jsonschema import ValidationError from document import AsyncSchedulableDocumentR...
PypiClean
/test-faust-streaming-1.11.0a2.tar.gz/test-faust-streaming-1.11.0a2/docs/history/changelog-1.10.rst
.. _changelog-1.10: =============================== Change history for Faust 1.10 =============================== This document contain change notes for bugfix releases in the Faust 1.10.x series. If you're looking for changes in the latest series, please visit the latest :ref:`changelog`. For even older releases y...
PypiClean
/tf_agents-0.17.0rc1-py3-none-any.whl/tf_agents/bandits/policies/ranking_policy.py
"""Ranking policy.""" from typing import Optional, Sequence, Text import numpy as np import tensorflow as tf # pylint: disable=g-explicit-tensorflow-version-import import tensorflow_probability as tfp from tf_agents.policies import tf_policy from tf_agents.policies import utils as policy_utils from tf_agents.specs i...
PypiClean
/pyjamas-0.8.1~+alpha1.tar.bz2/pyjamas-0.8.1~+alpha1/pyjs/src/pyjs/lib/logging/handlers.py
from __pyjamas__ import debugger from pyjamas.HTTPRequest import HTTPRequest import logging import urllib try: import codecs except ImportError: codecs = None # # Some constants... # DEFAULT_TCP_LOGGING_PORT = 9020 DEFAULT_UDP_LOGGING_PORT = 9021 DEFAULT_HTTP_LOGGING_PORT = 9022 DEFAULT_SOAP_LOGGING_...
PypiClean
/mxnet_cu75-0.9.5-cp35-cp35m-manylinux1_x86_64.whl/mxnet_cu75-0.9.5.data/purelib/mxnet/_ctypes/ndarray.py
"""Symbolic configuration API.""" from __future__ import absolute_import as _abs import ctypes import sys as _sys import numpy as np from ..base import _LIB from ..base import c_array, py_str, c_str, mx_uint, _Null from ..base import NDArrayHandle, OpHandle from ..base import check_call from ..ndarray_doc import _bui...
PypiClean
/django_tinymce4_lite-1.8.0-py3-none-any.whl/tinymce/static/tinymce/js/tinymce/langs/lv.js
tinymce.addI18n('lv',{ "Redo": "Solis uz priek\u0161u", "Undo": "Solis atpaka\u013c", "Cut": "Izgriezt", "Copy": "Kop\u0113t", "Paste": "Iel\u012bm\u0113t", "Select all": "Iez\u012bm\u0113t visu", "New document": "Jauns dokuments", "Ok": "Ok", "Cancel": "Atcelt", "Visual aids": "Vizu\u0101l\u0101 pal\u012bdz\u012bba", ...
PypiClean
/encuentro-4.0.tar.gz/encuentro-4.0/external/youtube-dl/youtube_dl/extractor/nbc.py
from __future__ import unicode_literals import re from .common import InfoExtractor from ..compat import compat_HTTPError from ..utils import ( ExtractorError, find_xpath_attr, lowercase_escape, smuggle_url, unescapeHTML, ) class NBCIE(InfoExtractor): _VALID_URL = r'https?://www\.nbc\.com/(?...
PypiClean
/cgroup-utils-0.8.tar.gz/cgroup-utils-0.8/cgutils/process.py
import os import os.path from . import fileops class Process(object): def __init__(self, pid): self.pid = pid items = fileops.read('/proc/%d/stat' % pid).split(' ') self.name = items[1].lstrip('(').rstrip(')') self.state = items[2] self.ppid = int(items[3]) self...
PypiClean
/fury-0.9.0.tar.gz/fury-0.9.0/docs/experimental/viz_multisdf.py
import numpy as np import vtk from vtk.util import numpy_support import fury.primitive as fp import fury.shaders as fs from fury import actor, window from fury.utils import get_actor_from_primitive verts, faces = fp.prim_box() centers = np.array([[0, 0, 0], [8, 0, 0]]) repeated = fp.repeat_primitive(verts, faces, ce...
PypiClean
/pynusmv-1.0rc8-cp35-cp35m-manylinux1_x86_64.whl/pynusmv_lower_interface/nusmv/wff/w2w/w2w.py
from sys import version_info as _swig_python_version_info if _swig_python_version_info >= (2, 7, 0): def swig_import_helper(): import importlib pkg = __name__.rpartition('.')[0] mname = '.'.join((pkg, '_w2w')).lstrip('.') try: return importlib.import_module(mname) ...
PypiClean
/transifex-python-3.4.0.tar.gz/transifex-python-3.4.0/transifex/api/jsonapi/auth.py
from __future__ import absolute_import, unicode_literals import datetime class SimpleAuthentication: def __init__(self, token): self.token = token def __call__(self): return {"Authorization": f"{self.KEY} {self.token}"} class BearerAuthentication(SimpleAuthentication): """ You can ...
PypiClean
/cdktf_cdktf_provider_boundary-7.0.0-py3-none-any.whl/cdktf_cdktf_provider_boundary/host_set_plugin/__init__.py
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from typeguard import check_type from .._jsii import * import cdktf as _cdktf_9a9027ec import constructs as _constructs_77d1e7e8 class HostSetPlugin( _cdktf_9a9027ec.TerraformResource, ...
PypiClean
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/doc/latex/doc2latex.py
import os import os.path as osp import pickle import subprocess import sys from argparse import ArgumentParser from typing import Dict, Optional from mpmath import __version__ as mpmathVersion from numpy import __version__ as NumPyVersion from sympy import __version__ as SymPyVersion import mathics from mathics impor...
PypiClean
/aiearth-deeplearning-0.0.2.tar.gz/aiearth-deeplearning-0.0.2/aiearth/deeplearning/engine/mmseg/datasets/dataset_wrappers.py
import bisect import collections import copy from itertools import chain import mmcv import numpy as np from mmcv.utils import build_from_cfg, print_log from torch.utils.data.dataset import ConcatDataset as _ConcatDataset from .builder import DATASETS, PIPELINES from .cityscapes import CityscapesDataset @DATASETS.r...
PypiClean
/fprime_tools-3.3.3-py3-none-any.whl/fprime/util/code_formatter.py
import re import shutil import subprocess from pathlib import Path from typing import Dict, List, Tuple from fprime.fbuild.target import ExecutableAction, TargetScope # MARKER is needed to differentiate at postprocess between access specifiers # that were previously an uppercase MACRO, and those that were originally ...
PypiClean
/couler_scanflow-0.1.2-py3-none-any.whl/couler/argo.py
import atexit import logging import pyaml import yaml from kubernetes import client as k8s_client from kubernetes import config from couler.argo_submitter import ArgoSubmitter from couler.core import states # noqa: F401 from couler.core.config import config_workflow # noqa: F401 from couler.core.constants import *...
PypiClean
/haruhi_dl-2021.8.1.tar.gz/haruhi_dl-2021.8.1/haruhi_dl/extractor/youporn.py
from __future__ import unicode_literals import re from .common import InfoExtractor from ..utils import ( extract_attributes, int_or_none, str_to_int, unified_strdate, url_or_none, ) class YouPornIE(InfoExtractor): _VALID_URL = r'https?://(?:www\.)?youporn\.com/(?:watch|embed)/(?P<id>\d+)(?:...
PypiClean
/moto-ext-4.2.0.post1.tar.gz/moto-ext-4.2.0.post1/moto/rds/responses.py
from collections import defaultdict from typing import Any, Dict, List, Iterable from moto.core.common_types import TYPE_RESPONSE from moto.core.responses import BaseResponse from moto.ec2.models import ec2_backends from moto.neptune.responses import NeptuneResponse from moto.neptune.responses import ( CREATE_GLOB...
PypiClean
/cairo-lang-0.12.2a0.zip/cairo-lang-0.12.2a0/starkware/starknet/compiler/contract_interface.py
import dataclasses from typing import List from typing_extensions import Protocol from starkware.cairo.lang.compiler.ast.cairo_types import TypeTuple from starkware.cairo.lang.compiler.ast.code_elements import ( CodeBlock, CodeElementEmptyLine, CodeElementFunction, CommentedCodeElement, ) from starkwa...
PypiClean
/golem-api-python-0.1.1.tar.gz/golem-api-python-0.1.1/golem_core/core/golem_node/golem_node.py
import asyncio import os from collections import defaultdict from datetime import datetime, timedelta, timezone from decimal import Decimal from typing import Any, DefaultDict, Dict, Iterable, List, Optional, Set, Type, Union from uuid import uuid4 from golem_core.core.activity_api import Activity, PoolingBatch from g...
PypiClean
/airwaveapiclient-0.1.11.tar.gz/airwaveapiclient-0.1.11/docs/source/history.rst
History ============ 0.1.11 (2019-06-12) ------------------- * Add client_search, ap_search and client_location methods. 0.1.10 (2018-08-25) ------------------- * Minor change for reliability. 0.1.9 (2017-10-13) ------------------ * Change method to generate URL path. 0.1.8 (2017-06-30) ------------------ * Added A...
PypiClean
/shallowpavlov-1.0.0rc1.tar.gz/shallowpavlov-1.0.0rc1/deeppavlov/utils/agent/server.py
import asyncio import logging from pathlib import Path from typing import Optional, Union from deeppavlov.core.common.file import read_json from deeppavlov.core.common.paths import get_settings_path from deeppavlov.utils.agent.rabbitmq import RabbitMQServiceGateway CONNECTOR_CONFIG_FILENAME = 'server_config.json' ...
PypiClean
/django-mailbox-dynamic-5.0.0.tar.gz/django-mailbox-dynamic-5.0.0/django_mailbox/management/commands/rebuildmessageattachments.py
import email import hashlib import logging # Third Party Stuff from django.core.management.base import BaseCommand from django_mailbox.models import Message, MessageAttachment logger = logging.getLogger(__name__) logging.basicConfig(level=logging.INFO) class Command(BaseCommand): """ Briefly, a bug existed in a...
PypiClean
/ioh-0.3.10-cp39-cp39-win_amd64.whl/ioh-0.3.10.dist-info/LICENSE.md
## License This application is governed by the __BSD 3-Clause license__. BSD 3-Clause License Copyright (c) 2018, All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must...
PypiClean
/tensorflow-gpu-macosx-1.8.1.tar.gz/tensorflow/contrib/labeled_tensor/__init__.py
"""Labels for TensorFlow.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensorflow.contrib.labeled_tensor.python.ops import core as _core from tensorflow.contrib.labeled_tensor.python.ops import io_ops as _io_ops from tensorflow.contrib.labeled_te...
PypiClean
/bob.bio.htface-1.0.6.zip/bob.bio.htface-1.0.6/bob/bio/htface/algorithm/HT_LLE.py
import bob.learn.linear import bob.io.base import numpy import scipy.spatial import sklearn.manifold import logging logger = logging.getLogger("bob.bio.htface") from .HTAlgorithm import HTAlgorithm class HT_LLE (HTAlgorithm): """Tool for computing LLE shift""" def __init__( self, subspace_dimens...
PypiClean
/Products.IssueDealer-0.9.140.tar.gz/Products.IssueDealer-0.9.140/Products/IssueDealerWeblog/atom.py
from Globals import Persistent import OFS import Acquisition import AccessControl from cgi import escape import utilities from xml.dom.minidom import parseString from DateTime import DateTime import re import base64, sha wsse_key_value = re.compile('\w[A-Za-z]+=".*?"') def generate_atom_entry(issue, weblog): """G...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_24/models/directory_service_role_response.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_24 import models class DirectoryServiceRoleResponse(object): """ Attributes: swagger_types (dict): The key is attribute name an...
PypiClean
/aie-ipyleaflet-0.15.1.tar.gz/aie-ipyleaflet-0.15.1/js/src/layers/Layer.js
const widgets = require('@jupyter-widgets/base'); const PMessaging = require('@lumino/messaging'); const PWidgets = require('@lumino/widgets'); const L = require('../libs/leaflet.js'); const utils = require('../utils.js'); export class LeafletLayerModel extends widgets.WidgetModel { defaults() { return { ...
PypiClean
/certora-cli-alpha-equiv-check-20230516.17.29.646534.tar.gz/certora-cli-alpha-equiv-check-20230516.17.29.646534/certora_cli/EVMVerifier/certoraNodeFilters.py
from typing import Any, Dict import os import sys sys.path.insert(0, os.path.dirname(os.path.abspath(__file__))) from Shared.certoraUtils import NoValEnum class NodeFilters: class NodeType(NoValEnum): def is_this_node_type(self, type_name_node: Dict[str, Any]) -> bool: return type_name_node...
PypiClean
/p01.remote-0.5.5.tar.gz/p01.remote-0.5.5/src/p01/remote/interfaces.py
__docformat__ = "reStructuredText" import zope.interface import zope.schema import zope.i18nmessageid import zope.publisher.interfaces from zope.component.interfaces import IPossibleSite _ = zope.i18nmessageid.MessageFactory('p01') QUEUED = 'queued' CANCELLED = 'cancelled' COMPLETED = 'completed' ERROR = 'error' JO...
PypiClean
/wikiseriesmarklib-0.1.2.tar.gz/wikiseriesmarklib-0.1.2/CONTRIBUTING.rst
============ Contributing ============ Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given. Submit Feedback ~~~~~~~~~~~~~~~ If you are proposing a feature: * Explain in detail how it would work. * Keep the scope as narrow as possible, to make it easie...
PypiClean
/reductus-0.1b2-py3-none-any.whl/sansred/sansdata.py
import sys import datetime from copy import copy, deepcopy import json from io import BytesIO import numpy as np from dataflow.lib.uncertainty import Uncertainty IS_PY3 = sys.version_info[0] >= 3 IGNORE_CORNER_PIXELS = True def _b(s): if IS_PY3: return s.encode('utf-8') else: return s clas...
PypiClean
/cubicweb-bootstrap-2.0.0.tar.gz/cubicweb-bootstrap-2.0.0/cubicweb_bootstrap/data/js/bootstrap.min.js
if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher")}(jQuery),+function(a){"use strict";fu...
PypiClean
/mera_tvm_runtime-1.4.0-cp36-cp36m-manylinux_2_27_x86_64.whl/tvm/relay/expr.py
"""The expression nodes of Relay.""" from __future__ import absolute_import from numbers import Number as _Number import numpy as _np import tvm._ffi from tvm._ffi import base as _base from tvm.runtime import NDArray, ndarray as _nd from tvm.ir import RelayExpr, GlobalVar, Node from .base import RelayNode from . impo...
PypiClean
/pyqode3_core-4.0.1-py3-none-any.whl/pyqode/core/modes/indenter.py
from pyqode.core.api.mode import Mode class IndenterMode(Mode): """ Implements classic indentation/tabulation (Tab/Shift+Tab) It inserts/removes tabulations (a series of spaces defined by the tabLength settings) at the cursor position if there is no selection, otherwise it fully indents/un-indents se...
PypiClean
/ressources/lib/node_modules/highcharts/README.md
Highcharts is a JavaScript charting library based on SVG, with fallbacks to VML and canvas for old browsers. This package also contains Highstock, the financial charting package, and Highmaps for geo maps. _For NPM users, please note that this module replaces the previous [Highcharts Server](https://www.npmjs.com/pack...
PypiClean
/quinteng-chaoyue-1.0.0.tar.gz/quinteng-chaoyue-1.0.0/quinteng/user_config.py
import configparser import os from warnings import warn from quinteng import exceptions DEFAULT_FILENAME = os.path.join(os.path.expanduser("~"), ".quinteng", "settings.conf") class UserConfig: """Class representing a user config file The config file format should look like: [default] circuit_drawe...
PypiClean
/pyxnat_ldax-1.0.0.0.7.tar.gz/pyxnat_ldax-1.0.0.0.7/doc/advanced_tutorial.rst
============================== Advanced Tutorial ============================== .. currentmodule:: pyxnat This advanced tutorial is not much more complicated than the starters one. It just goes over parts of the API that may be less used (not that they are less useful!) and that are more likely to change in future re...
PypiClean
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/postcss-discard-unused/node_modules/strip-ansi/readme.md
# strip-ansi [![Build Status](https://travis-ci.org/chalk/strip-ansi.svg?branch=master)](https://travis-ci.org/chalk/strip-ansi) > Strip [ANSI escape codes](http://en.wikipedia.org/wiki/ANSI_escape_code) ## Install ``` $ npm install --save strip-ansi ``` ## Usage ```js var stripAnsi = require('strip-ansi'); str...
PypiClean
/django-cpss-twitter-0.2.0.tar.gz/django-cpss-twitter-0.2.0/README.md
> ## 🛠 Status: In Development > django-cpss-twitter currently in development. # Python Twitter API - Django [<img src="https://github.com/xgdfalcon/django-cpss-twitter/blob/master/twitter-django/static/cpss/logo.png?raw=true" alt="CPSS by XGDFalcon®" height="20px" />](https://controlpointsw.com) [![Build Status](h...
PypiClean
/mozart_framework-1.0.9.tar.gz/mozart_framework-1.0.9/mozart_framework/EmailDriver.py
import imaplib import os import smtplib import email from email import encoders from email.mime.base import MIMEBase from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.header import Header #============================================================= #================= ...
PypiClean
/PyKat-1.2.94.tar.gz/PyKat-1.2.94/examples/fft/scale_propagation.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals """ Demonstration of oscar.py's scaled propagation method. Sean Leavey sean.leavey@ligo.org May 2015 """ import pykat.oscar as oscar import pylab as pl import numpy as ...
PypiClean
/vidstreaming-0.0.1-py3-none-any.whl/vidstream/streaming.py
__author__ = "Florian Dedov, NeuralNine" __email__ = "mail@neuralnine.com" __status__ = "planning" import cv2 import pyautogui import numpy as np import socket import pickle import struct import threading class StreamingServer: """ Class for the streaming server. Attributes ---------- Private:...
PypiClean
/brainframe_apps-0.3.20-py3-none-any.whl/brainframe_apps/get_zone_statuses.py
import json import sys import threading from argparse import ArgumentParser from collections import Counter from datetime import datetime from threading import Thread from brainframe.api import BrainFrameAPI, bf_errors from brainframe_apps.logger_factory import log from brainframe_apps.fps_report import ( collec...
PypiClean
/cn_hyperarr-0.0.1.tar.gz/cn_hyperarr-0.0.1/cn_hyperarr/vector_classes.py
r""" Module for vector configurations and covectors. A vector configuration is a labeled set of vectors :math:`\{v_i~:~i\in I\}` in a common vector space `V`. In the :class:`~vector_classes.VectorConfiguration` class, there are methods to test if a vector configuration is acyclic or totally acyclic, and also to retu...
PypiClean
/jellyfin_mpv_shim-2.6.0-py3-none-any.whl/jellyfin_mpv_shim/mpv_shim.py
import logging import sys import multiprocessing from threading import Event from . import conffile from . import i18n from .conf import settings from .clients import clientManager from .constants import APP_NAME from .log_utils import configure_log, enable_sanitization, configure_log_file configure_log(sys.stdout) ...
PypiClean
/py-antilibrary-0.0.3.tar.gz/py-antilibrary-0.0.3/urllib3/packages/ssl_match_hostname/_implementation.py
# Note: This file is under the PSF license as the code comes from the python # stdlib. http://docs.python.org/3/license.html import re import sys # ipaddress has been backported to 2.6+ in pypi. If it is installed on the # system, use it to handle IPAddress ServerAltnames (this was added in # python-3.5) otherwis...
PypiClean
/WebScripts-3.0.15.tar.gz/WebScripts-3.0.15/docs/Logs.md
# Logs ## Logs directory Create a directory named `logs` to launch the *WebScripts Server*. If `logs` directory does not exists or is not a directory, the WebScripts Server will try to create it. ```bash mkdir logs ``` ## Default logging ### Level The logs level is "0" (all logs are written). You can change the l...
PypiClean
/collective.teamwork-0.9.tar.gz/collective.teamwork-0.9/collective/teamwork/user/workgroups.py
__author__ = 'Sean Upton' __email__ = 'sean.upton@hsc.utah.edu' __copyright__ = """ Copyright, 2011-2013, The University of Utah """.strip() __license__ = 'GPL' import itertools from plone.indexer.decorator import indexer from Products.CMFCore.interfaces import ISiteRoot from zope.int...
PypiClean