id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/tiledtmxloader-3.1.0.131.tar.gz/tiledtmxloader-3.1.0.131/examples/01_resources_and_rendering/01_load_and_render_pyglet.py
from __future__ import print_function __version__ = '1.0.0.0' # for easy comparison as in sys.version_info but digits only __version_info__ = tuple([int(d) for d in __version__.split('.')]) __author__ = "DR0ID" __email__ = "dr0iddr0id {at} gmail [dot] com" __copyright__ = "DR0ID @ 2014" __credits__ = ["DR0ID"] # l...
PypiClean
/solara_assets-1.19.0.tar.gz/solara_assets-1.19.0/cdn/echarts@5.4.0/types/src/coord/scaleRawExtentInfo.d.ts
import Scale from '../scale/Scale.js'; import { AxisBaseModel } from './AxisBaseModel.js'; import { ScaleDataValue } from '../util/types.js'; export interface ScaleRawExtentResult { readonly min: number; readonly max: number; readonly minFixed: boolean; readonly maxFixed: boolean; readonly isBlank: ...
PypiClean
/picbed-smtp-0.1.3.tar.gz/picbed-smtp-0.1.3/picbed_smtp.py
__version__ = '0.1.3' __author__ = 'staugur <staugur@saintic.com>' __hookname__ = 'picbed-smtp' __description__ = '通过SMTP发送邮件' from utils.tool import Mailbox, mail_pat from flask import g intpl_emailsetting = ''' <div class="layui-col-xs12 layui-col-sm12 layui-col-md12"> <fieldset class="layui-elem-field layui-fi...
PypiClean
/python-gedcom-1.0.0.tar.gz/python-gedcom-1.0.0/gedcom/element/element.py
# Python GEDCOM Parser # # Copyright (C) 2018 Damon Brodie (damon.brodie at gmail.com) # Copyright (C) 2018-2019 Nicklas Reincke (contact at reynke.com) # Copyright (C) 2016 Andreas Oberritter # Copyright (C) 2012 Madeleine Price Ball # Copyright (C) 2005 Daniel Zappala (zappala at cs.byu.edu) # Copyright (C) 2005 Bri...
PypiClean
/backend.ai_manager-23.3.11-py3-none-any.whl/ai/backend/manager/api/image.py
import base64 import secrets from typing import TYPE_CHECKING, Any, Iterable, Tuple import aiohttp_cors import jinja2 import sqlalchemy as sa import trafaret as t from aiohttp import web from ai.backend.common import validators as tx from ai.backend.common.docker import ImageRef from ai.backend.common.etcd import quo...
PypiClean
/skeletor-ml-0.1.4.tar.gz/skeletor-ml-0.1.4/skeletor/models/cv/senet.py
import torch import torch.nn as nn import torch.nn.functional as F class BasicBlock(nn.Module): def __init__(self, in_planes, planes, stride=1): super(BasicBlock, self).__init__() self.conv1 = nn.Conv2d(in_planes, planes, kernel_size=3, stride=stride, padding=1, bias=False) self.bn1 = nn.B...
PypiClean
/gretel-core-0.1.0.tar.gz/gretel-core-0.1.0/src/gretel_core/transformers/restore.py
from abc import abstractmethod from dataclasses import dataclass from numbers import Number from typing import Mapping, Optional, Tuple, Union import logging from gretel_core.transformers.base import TransformerConfig, Transformer logging.basicConfig() logger = logging.getLogger(__name__) logger.setLevel(logging.INFO...
PypiClean
/js.ace-1.4.11.tar.gz/js.ace-1.4.11/js/ace/resources/mode-rhtml.js
ace.define("ace/mode/doc_comment_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(){this.$rules={start:[{token:"comment.doc.tag",regex:"@[\\w\\d_]+"},s.getTagRule()...
PypiClean
/scikit-diveMove-0.3.0.tar.gz/scikit-diveMove-0.3.0/skdiveMove/imutools/vector.py
import numpy as np from scipy.spatial.transform import Rotation as R def normalize(v): """Normalize vector Parameters ---------- v : array_like (N,) or (M,N) input vector Returns ------- numpy.ndarray Normalized vector having magnitude 1. """ return v / np.linalg...
PypiClean
/biobb_cmip-4.0.0-py3-none-any.whl/biobb_cmip/cmip/cmip_prepare_pdb.py
"""Module containing the PreparePDB class and the command line interface.""" import argparse from biobb_common.generic.biobb_object import BiobbObject from biobb_common.configuration import settings from biobb_common.tools.file_utils import launchlogger class CmipPreparePDB(BiobbObject): """ | biobb_cmip Cmi...
PypiClean
/orbiting-0.4-py3-none-any.whl/classes.py
import pandas as pd import country_converter as coco from math import radians, cos, sin, asin, sqrt, atan2 from orbit import satellite def calc_year(year): twentieth = ('6', '7', '8', '9') twenty_first = ('0', '1', '2', '3', '4', '5') if year.startswith(twentieth): return "19%s" % year elif ye...
PypiClean
/python_jamf-0.8.3-py3-none-any.whl/jamf/api.py
__author__ = "Sam Forester" __email__ = "sam.forester@utah.edu" __copyright__ = "Copyright (c) 2020 University of Utah, Marriott Library" __license__ = "MIT" __version__ = "0.5.2" import json import logging import requests from . import config, convert, exceptions LOGLEVEL = logging.INFO class Singleton(type): ...
PypiClean
/bob.db.arface-2.1.10.zip/bob.db.arface-2.1.10/README.rst
.. vim: set fileencoding=utf-8 : .. Wed 17 Aug 16:52:25 CEST 2016 .. image:: https://img.shields.io/badge/docs-available-orange.svg :target: https://www.idiap.ch/software/bob/docs/bob/bob.db.arface/master/index.html .. image:: https://gitlab.idiap.ch/bob/bob.db.arface/badges/v2.1.10/pipeline.svg :target: https:/...
PypiClean
/cubicweb-seda-0.24.0.tar.gz/cubicweb-seda-0.24.0/cubicweb_seda/views/__init__.py
from yams import BASE_TYPES from logilab.common.decorators import monkeypatch from logilab.mtconverter import xml_escape from cubicweb import tags, neg_role from cubicweb.utils import UStringIO from cubicweb_web import formfields as ff # XXX alias to avoid weird side effect: uicfg will become our uicfg submodule fr...
PypiClean
/onegramcoin-1.0.5-py3-none-any.whl/onegram/price.py
from fractions import Fraction from .exceptions import InvalidAssetException from .instance import BlockchainInstance from .account import Account from .amount import Amount from .asset import Asset from .utils import formatTimeString from .utils import parse_time, assets_from_string class Price(dict, BlockchainInsta...
PypiClean
/ivy-testing-release-0.0.0.1.tar.gz/ivy-testing-release-0.0.0.1/ivy/functional/backends/torch/elementwise.py
from typing import Union, Optional from math import pi import torch # local import ivy from ivy.func_wrapper import ( with_unsupported_dtypes, handle_numpy_arrays_in_specific_backend, ) from ivy import promote_types_of_inputs from . import backend_version def _cast_for_unary_op(x): if not isinstance(x, t...
PypiClean
/dj-gravatar-0.0.2.tar.gz/dj-gravatar-0.0.2/README.md
# [Dj-Gravatar][Dj-Gravatar repo] [![Current Version](https://img.shields.io/pypi/v/dj-gravatar.svg)](https://pypi.org/project/dj-gravatar) **Dj-Gravatar** is a Python package to display avatars using [Gravatar](https://en.gravatar.com/ "Visit Gravatar Website") on a website developed using Django Framework. ## Inst...
PypiClean
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v2_4_0/config_list_broker.py
from ..broker import Broker class ConfigListBroker(Broker): controller = "config_lists" def index(self, **kwargs): """Lists the available config lists. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the various ways to query lists, using this method is mo...
PypiClean
/watchmen_rest_doll-16.5.26.tar.gz/watchmen_rest_doll-16.5.26/src/watchmen_rest_doll/console/report_router.py
from typing import Callable, List, Optional from fastapi import APIRouter, Body, Depends from starlette.responses import Response from watchmen_auth import PrincipalService from watchmen_meta.common import ask_meta_storage, ask_snowflake_generator from watchmen_meta.console import ReportService, SubjectService from...
PypiClean
/cyberchief-bolt-0.0.18.tar.gz/cyberchief-bolt-0.0.18/bolt/django.py
import json from concurrent.futures import ThreadPoolExecutor from urllib.request import Request, urlopen from urllib.parse import urlparse import logging from django.conf import settings endpoint = "api/v1/log-request/single" class BoltDjango(object): def perform_request(self, data): try: u...
PypiClean
/django_surface_theme-0.0.10-py3-none-any.whl/theme/static/components/bootstrap/js/dist/collapse.js
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('jquery'), require('./util.js')) : typeof define === 'function' && define.amd ? define(['jquery', './util.js'], factory) : (global.Collapse = factory(global.jQuery,global.Util)); }(this, (...
PypiClean
/appengine_python_standard-1.1.3-py3-none-any.whl/google/appengine/api/backendinfo.py
from google.appengine.api import validation from google.appengine.api import yaml_builder from google.appengine.api import yaml_listener from google.appengine.api import yaml_object NAME_REGEX = r'(?!-)[a-z\d\-]{1,100}' FILE_REGEX = r'(?!\^).*(?!\$).{1,256}' CLASS_REGEX = r'^[bB](1|2|4|8|4_1G)$' OPTIONS_REGEX ...
PypiClean
/planetary_coverage-1.1.0-py3-none-any.whl/planetary_coverage/rois/rois_stephan_2021_pss.py
import re from pathlib import Path import numpy as np from matplotlib.patches import Rectangle from .rois import ROIsCollectionWithCategories DATA = Path(__file__).parent / 'data' KEY = re.compile(r'\d+_\d+_\d+') class Stephan2021ROIsCollection(ROIsCollectionWithCategories): """Abstract ROIs collection fro...
PypiClean
/jupyterlab_myst-2.0.2.tar.gz/jupyterlab_myst-2.0.2/jupyterlab_myst/labextension/static/react-syntax-highlighter_languages_highlight_coffeescript.8a9e21fc07c4225ff7cf.js
(self.webpackChunkjupyterlab_myst=self.webpackChunkjupyterlab_myst||[]).push([[2172],{6691:e=>{const n=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","c...
PypiClean
/Hipshot-1.0.zip/Hipshot-1.0/README.rst
Hipshot converts a video file or series of photographs into a single image simulating a long-exposure photograph. |image0| |image1| |image2| Installation ============ Hipshot requires: - Python 2; - docopt; - the `Avena <https://pypi.python.org/pypi/Avena>`__ library; - the FFMPEG libraries; and - OpenCV and i...
PypiClean
/pixd-0.0.3.tar.gz/pixd-0.0.3/pixd.py
from __future__ import print_function import argparse import io import os import re import sys __all__ = [ 'colormap', 'expand', 'format_offset', 'hexdump', 'parse_range', 'main', ] colormap = [ 0x000000, 0x560000, 0x640000, 0x750000, 0x870000, 0x9b0000, 0xb00000, 0xc60000, 0xdd0000, 0xf...
PypiClean
/DJModels-0.0.6-py3-none-any.whl/djmodels/db/__init__.py
from djmodels.core import signals from djmodels.db.utils import ( DEFAULT_DB_ALIAS, DJANGO_VERSION_PICKLE_KEY, ConnectionHandler, ConnectionRouter, DatabaseError, DataError, Error, IntegrityError, InterfaceError, InternalError, NotSupportedError, OperationalError, ProgrammingError, ) __all__ = [ 'c...
PypiClean
/dreem_herschlag-1.1.9-py3-none-any.whl/dreem_herschlag/templates.py
from dreem_herschlag.get_info import get_attributes from dreem_herschlag.util import Path import os import itertools class TemplateGenerator(object): def __init__(self, path): if path == '.': path = os.path.abspath('') + '/' if path[0] != '/': self.path = os.path.abspath('')...
PypiClean
/django-cropduster-4.13.7.tar.gz/django-cropduster-4.13.7/cropduster/static/cropduster/js/jquery.jcrop.js
(function ($) { $.Jcrop = function (obj, opt) { var options = $.extend({}, $.Jcrop.defaults), docOffset, _ua = navigator.userAgent.toLowerCase(), is_msie = /msie/.test(_ua), ie6mode = /msie [1-6]\./.test(_ua); // Internal Methods {{{ function px(n) { return Math.rou...
PypiClean
/Pylot-0.0.4.tar.gz/Pylot-0.0.4/pylot/component/static/pylot/vendor/mdeditor/bower_components/codemirror/mode/pascal/pascal.js
CodeMirror.defineMode("pascal", function() { function words(str) { var obj = {}, words = str.split(" "); for (var i = 0; i < words.length; ++i) obj[words[i]] = true; return obj; } var keywords = words("and array begin case const div do downto else end file for forward integer " + ...
PypiClean
/jhoney_pkg-0.0.0.0.0.1-py3-none-any.whl/src/aws/common/service_handler_interface.py
from abc import abstractmethod, ABCMeta from .paginator import Paginator class ServiceHandlerInterface(metaclass=ABCMeta): shared_dict = None session = None client = None vpc = None isGlobalService = None cloudwatch_namespaces = None aws_account_id = None aws_connect_key_dict = None ...
PypiClean
/latechclfl2020besnier-1.0.6-py3-none-any.whl/latechclfl2020/dlh/data.py
import os import codecs from functools import lru_cache from typing import List, Set from cltk.tokenize.latin.sentence import SentenceTokenizer from cltk.tokenize.latin.word import WordTokenizer import numpy as np from latechclfl2020.models.texts import Work from latechclfl2020 import utils, PACKDIR from latechclfl2...
PypiClean
/pulumi_alicloud-3.44.0a1693632188.tar.gz/pulumi_alicloud-3.44.0a1693632188/pulumi_alicloud/das/switch_das_pro.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['SwitchDasProArgs', 'SwitchDasPro'] @pulumi.input_type class SwitchDasProArgs: def __init__(__self__, *, instance_id: pulumi.I...
PypiClean
/novicedude_cli-1.2.0-py3-none-any.whl/snet_cli/commands/mpe_service.py
import json from collections import defaultdict import snet.snet_cli.utils.ipfs_utils as ipfs_utils from grpc_health.v1 import health_pb2 as heartb_pb2 from grpc_health.v1 import health_pb2_grpc as heartb_pb2_grpc from snet.snet_cli.metadata.service import MPEServiceMetadata, load_mpe_service_metadata, \ mpe_servi...
PypiClean
/cerberus-list-schema-1.0.3.tar.gz/cerberus-list-schema-1.0.3/README.md
[![PyPI version](https://badge.fury.io/py/cerberus-list-schema.svg)](https://badge.fury.io/py/cerberus-list-schema) [![Build Status](https://travis-ci.org/Fireclunge/cerberus-list-schema.svg?branch=master)](https://travis-ci.org/Fireclunge/cerberus-list-schema) [![Code style: black](https://img.shields.io/badge/code%20...
PypiClean
/docassemble.webapp-1.4.72.tar.gz/docassemble.webapp-1.4.72/docassemble/webapp/alembic/versions/a8746ddab8cb_add_unique_constraints.py
from alembic import op from docassemble.webapp.database import dbtableprefix # revision identifiers, used by Alembic. revision = 'a8746ddab8cb' down_revision = '693d02299f38' branch_labels = None depends_on = None def upgrade(): op.create_unique_constraint(dbtableprefix + 'chatlog_id_key', dbtableprefix + 'chat...
PypiClean
/django_webstack-1.5.4-py3-none-any.whl/webstack/static/webstack/assets/js/xenon-custom.js
var public_vars = public_vars || {}; ;(function($, window, undefined){ "use strict"; $(document).ready(function() { // Main Vars public_vars.$body = $("body"); public_vars.$pageContainer = public_vars.$body.find(".page-container"); public_vars.$chat = public_vars.$pa...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/cisco/aci/CHANGELOG.rst
========================================== Cisco ACI Ansible Collection Release Notes ========================================== .. contents:: Topics v2.7.0 ====== Release Summary --------------- Release v2.7.0 of the ``ansible-aci`` collection on 2023-08-04. This changelog describes all changes made to the module...
PypiClean
/PyAlgoTrade-0.20.tar.gz/PyAlgoTrade-0.20/pyalgotrade/barfeed/googlefeed.py
from pyalgotrade.barfeed import csvfeed from pyalgotrade.barfeed import common from pyalgotrade.utils import dt from pyalgotrade import bar import datetime ###################################################################### # Google Finance CSV parser # Each bar must be on its own line and fields must be separate...
PypiClean
/django-fabdeploy-plus-0.4.tar.gz/django-fabdeploy-plus-0.4/README.rst
Repos ===== - https://bitbucket.org/vmihailenco/fabdeploy - https://github.com/vmihailenco/fabdeploy Quickstart ========== There is full working example: https://github.com/vmihailenco/fabdeploy-example. Create fabconf.py:: from fabdeploy.api import DefaultConf class BaseConf(DefaultConf): django_...
PypiClean
/waldur-ansible-0.6.2.tar.gz/waldur-ansible-0.6.2/src/waldur_ansible/python_management/tasks.py
import logging # patched with xmlrpc.monkey_patch() below import xmlrpclib # nosec from celery import shared_task from defusedxml import xmlrpc from django.conf import settings from django.core.validators import MaxValueValidator from . import models xmlrpc.monkey_patch() logger = logging.getLogger(__name__) @sha...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/AlipayFundCouponOrderPagePayRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayFundCouponOrderPagePayModel import AlipayFundCouponOrderPagePayModel class AlipayFundCouponOrderPagePayRequest(object): def __init__(self, biz_model=None): sel...
PypiClean
/smart-module-test-0.0.3.tar.gz/smart-module-test-0.0.3/smart_module/smart_modules/develop/SuperFunction.py
from smart_module.module_system.header_dialogs import * from smart_module.module_system.module_scripts import * ''' 超级功能 1.招募任何队伍 2.和同伴对话移动到任何据点附近 ''' superFunction = { "name":"SuperFunction", "enable":True, "version": "v2.0.0", "desc":''' 超级功能 1.招募任何队伍 2.和同伴对话移动到任何...
PypiClean
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.595/Olde/rp 5.38.10 PM/rp_ptpython/history_browser.py
from __future__ import unicode_literals from prompt_toolkit.application import Application from prompt_toolkit.buffer import Buffer, AcceptAction from prompt_toolkit.buffer_mapping import BufferMapping from prompt_toolkit.document import Document from prompt_toolkit.enums import DEFAULT_BUFFER from prompt_toolkit.filt...
PypiClean
/tensorflow-gpu-macosx-1.8.1.tar.gz/tensorflow/contrib/linear_optimizer/python/ops/sdca_ops.py
"""Proximal stochastic dual coordinate ascent optimizer for linear models.""" from __future__ import absolute_import from __future__ import division from __future__ import print_function import collections from six.moves import range from tensorflow.contrib.linear_optimizer.python.ops.sharded_mutable_dense_hashtable...
PypiClean
/bridge-utils-0.4.1.tar.gz/bridge-utils-0.4.1/bridge_utils/xin2pbn/xin2pbn.py
import os import io import re import sys import json import pkgutil import shutil import pathlib from urllib.parse import urlparse from string import Template import urllib.parse from collections import deque url="http://www.xinruibridge.com/deallog/DealLog.html?bidlog=P%3B1N,P,4D,P%3B4H,P,4N,P%3B5H,P,5N,P%3B6C,P,6D,...
PypiClean
/cryptocode.py-3.1.tar.gz/cryptocode.py-3.1/Cryptodome/PublicKey/DSA.py
__all__ = ['generate', 'construct', 'DsaKey', 'import_key' ] import binascii import struct import itertools from Cryptodome.Util.py3compat import bchr, bord, tobytes, tostr, iter_range from Cryptodome import Random from Cryptodome.IO import PKCS8, PEM from Cryptodome.Hash import SHA256 from Cryptodome.Util.asn1 imp...
PypiClean
/django-markupmirror-0.2a1.tar.gz/django-markupmirror-0.2a1/markupmirror/static/markupmirror/mode/rst/rst.js
CodeMirror.defineMode('rst', function(config, options) { function setState(state, fn, ctx) { state.fn = fn; setCtx(state, ctx); } function setCtx(state, ctx) { state.ctx = ctx || {}; } function setNormal(state, ch) { if (ch && (typeof ch !== 'string')) { ...
PypiClean
/PyMVPD_LITE-0.0.4.tar.gz/PyMVPD_LITE-0.0.4/mvpdlite/model_exec.py
import os, sys import pickle from datetime import datetime from mvpdlite.params_check import params_check from mvpdlite.MVPD_lin_reg import run_lin_reg from mvpdlite.avgrun_regression import avg_runs def MVPD_exec(inputinfo, params): """ Execute the selected MVPD model and average analysis across runs. IN...
PypiClean
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/streamlabswater/binary_sensor.py
from __future__ import annotations from datetime import timedelta from homeassistant.components.binary_sensor import BinarySensorEntity from homeassistant.core import HomeAssistant from homeassistant.helpers.entity_platform import AddEntitiesCallback from homeassistant.helpers.typing import ConfigType, DiscoveryInfoT...
PypiClean
/rtctree-aist-4.2.3.tar.gz/rtctree-aist-4.2.3/rtctree/exec_context.py
import threading from rtctree import utils from rtctree.rtc import RTC ############################################################################## ## Execution context object class ExecutionContext(object): '''An execution context, within which components may be executing.''' def __init__(self, ec_obj=No...
PypiClean
/odML-1.5.3.tar.gz/odML-1.5.3/odml/dtypes.py
import datetime as dt import re import sys from enum import Enum self = sys.modules[__name__].__dict__ FORMAT_DATE = "%Y-%m-%d" FORMAT_DATETIME = "%Y-%m-%d %H:%M:%S" FORMAT_TIME = "%H:%M:%S" class DType(str, Enum): """ The DType class enumerates all data types supported by odML. """ string = 'strin...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/gamelift/describe-fleet-port-settings.rst
**To view inbound connection permissions for a fleet** The following ``describe-fleet-port-settings`` example retrieves connection settings for a specified fleet. :: aws gamelift describe-fleet-port-settings \ --fleet-id arn:aws:gamelift:us-west-2::fleet/fleet-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 Output:...
PypiClean
/openquake.engine-3.17.1-py3-none-any.whl/openquake/hmtk/seismicity/selector.py
# # LICENSE # # Copyright (C) 2010-2023 GEM Foundation, G. Weatherill, M. Pagani, # D. Monelli. # # The Hazard Modeller's Toolkit is free software: you can redistribute # it and/or modify it under the terms of the GNU Affero General Public # License as published by the Free Software Foundation, either version # 3 of t...
PypiClean
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/eventgrid/v20201015preview/get_system_topic_event_subscription.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union from ... import _utilities, _tables from . import outputs __all__ = [ 'GetSystemTopicEventSubscriptionResult', 'AwaitableGetSystemTopicEventSubscriptionResult', 'get_system_topic_event_subscripti...
PypiClean
/sdksio_juniper_mist_sdk-1.0.0-py3-none-any.whl/mistapi/models/orgs_search.py
from mistapi.api_helper import APIHelper from mistapi.models.result_5 import Result5 class OrgsSearch(object): """Implementation of the 'OrgsSearch' model. TODO: type model description here. Attributes: end (float): TODO: type description here. limit (int): TODO: type description here. ...
PypiClean
/fs-django-mdeditor-0.1.24.tar.gz/fs-django-mdeditor-0.1.24/mdeditor/static/mdeditor/js/lib/codemirror/addon/merge/merge.js
// declare global: diff_match_patch, DIFF_INSERT, DIFF_DELETE, DIFF_EQUAL (function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror"), require("diff_match_patch")); else if (typeof define == "function" && define.amd) // AMD define(["../../l...
PypiClean
/cdk_certbot_dns_route53-2.1.292-py3-none-any.whl/cdk_certbot_dns_route53/__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 aws_cdk as _aws_cdk_ceddda9d import aws_cdk.aws_events as _aws_cdk_aws_events_ceddda9d import aws_cdk.aws_iam as _aws_cdk_aws_iam_...
PypiClean
/superset_tddv-0.15.1.tar.gz/superset_tddv-0.15.1/superset/jinja_context.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import inspect from jinja2.sandbox import SandboxedEnvironment from datetime import datetime, timedelta from dateutil.relativedelta import relativedelta import time impo...
PypiClean
/intercom_test-2.3.1.tar.gz/intercom_test-2.3.1/lib/intercom_test/yaml_tools.py
from io import StringIO import packaging.version import yaml YAML_EXT = '.yml' PYYAML_REQUIRES_LOADER = packaging.version.parse('5.1') <= packaging.version.parse(yaml.__version__) def content_events(value): """Return an iterable of events presenting *value* within a YAML document""" return ( e for e ...
PypiClean
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/PublicBindAccount.py
import json from alipay.aop.api.constant.ParamConstants import * class PublicBindAccount(object): def __init__(self): self._agreement_id = None self._app_id = None self._bind_account_no = None self._display_name = None self._from_alipay_user_id = None self._from_u...
PypiClean
/sslcommerz-sdk-1.0.4.tar.gz/sslcommerz-sdk-1.0.4/sslcommerz_sdk/orm_adapters/pynamodb.py
import json import uuid from datetime import datetime from decimal import Decimal from pynamodb.attributes import ( NumberAttribute, UnicodeAttribute, UTCDateTimeAttribute, ) from pynamodb.indexes import GlobalSecondaryIndex, KeysOnlyProjection from pynamodb.models import Model from ..enums import Transac...
PypiClean
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/pip/_internal/network/utils.py
from typing import Dict, Generator from pip._vendor.requests.models import CONTENT_CHUNK_SIZE, Response from pip._internal.exceptions import NetworkConnectionError # The following comments and HTTP headers were originally added by # Donald Stufft in git commit 22c562429a61bb77172039e480873fb239dd8c03. # # We use Acc...
PypiClean
/optimoida-1.0.0.tar.gz/optimoida-1.0.0/README.rst
optimoida ========= |forthebadge| 📄 Overview --------------------------- The **optimoida** is a command line application to **optimize image file** (``jpg``, ``png`` only) by `TinyPNG <https://tinypng.com/>`__ DEMO ~~~~~~~~~~~~~~~~~~~~~~ |DEMO| ⌛️ Prepare to use optimoida ------------------------------------ 1....
PypiClean
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/pandas/io/stata.py
from __future__ import annotations from collections import abc import datetime from io import BytesIO import os import struct import sys from typing import ( IO, TYPE_CHECKING, Any, AnyStr, Final, Hashable, Sequence, cast, ) import warnings from dateutil.relativedelta import relativede...
PypiClean
/asyncio-proxy-1.2.0.tar.gz/asyncio-proxy-1.2.0/README.md
## aiohttp-proxy [![Build Status](https://travis-ci.org/Skactor/aiohttp-proxy.svg?branch=master)](https://github.com/Skactor/aiohttp-proxy) [![PyPI version](https://badge.fury.io/py/aiohttp-proxy.svg)](https://badge.fury.io/py/aiohttp-proxy) SOCKS proxy connector for [aiohttp](https://github.com/aio-libs/aiohttp). HT...
PypiClean
/f5-sdk-3.0.21.tar.gz/f5-sdk-3.0.21/f5/bigip/tm/sys/ucs.py
from f5.bigip.mixins import CommandExecutionMixin from f5.bigip.resource import UnnamedResource from requests.exceptions import HTTPError class Ucs(UnnamedResource, CommandExecutionMixin): """BIG-IP® system UCS resource .. note:: Given the fact that 11.6.0 UCS via rest is broken, this fea...
PypiClean
/lino_book-20.1.1.tar.gz/lino_book-20.1.1/lino_book/projects/avanti1/settings/fixtures/demo.py
from __future__ import unicode_literals # from django.conf import settings # from lino.utils import mti from lino.utils import Cycler # join_words from lino.utils.mldbc import babel_named as named from lino.api import rt, dd, _ from lino.modlib.users.choicelists import UserTypes from lino_xl.lib.cal.choicelists impo...
PypiClean
/skytime-0.16.1-py3-none-any.whl/build/lib/sktime/transformations/panel/random_intervals.py
__author__ = ["MatthewMiddlehurst"] __all__ = ["RandomIntervals"] import numpy as np import pandas as pd from sklearn.utils import check_random_state from sktime.base._base import _clone_estimator from sktime.transformations.base import BaseTransformer from sktime.transformations.series.summarize import SummaryTransf...
PypiClean
/django_admin_model_filters-0.1.1-py3-none-any.whl/model_filters/models/model_filter.py
from django.conf import settings from django.db import models from django.utils.timezone import localtime from django.utils.translation import gettext_lazy as _ from model_filters.constants import DATETIME_FORMAT from model_filters.managers import ModelFilterQuerySet class ModelFilter(models.Model): """A model f...
PypiClean
/lti-consumer-xblock-9.6.2.tar.gz/lti-consumer-xblock-9.6.2/README.rst
################### LTI Consumer XBlock ################### | |status-badge| |license-badge| |ci-badge| |codecov-badge| |pypi-badge| Purpose ******* This XBlock implements the consumer side of the LTI specification enabling integration of third-party LTI provider tools. Getting Started *************** Installation...
PypiClean
/insights-core-3.2.14.tar.gz/insights-core-3.2.14/insights/parsers/ipsec_conf.py
from collections import defaultdict from insights.core import CommandParser from insights.core.exceptions import SkipComponent from insights.core.plugins import parser from insights.parsers import get_active_lines from insights.specs import Specs @parser(Specs.ipsec_conf) class IpsecConf(CommandParser, dict): ""...
PypiClean
/XGEE-0.3.0.tar.gz/XGEE-0.3.0/xgee/core/dep/mxgraph/js/io/mxCodecRegistry.js
var mxCodecRegistry = { /** * Class: mxCodecRegistry * * Singleton class that acts as a global registry for codecs. * * Adding an <mxCodec>: * * 1. Define a default codec with a new instance of the * object to be handled. * * (code) * var codec = new mxObjectCodec(new mxGraphModel()); * (end) ...
PypiClean
/git-pijul-0.9.2.tar.gz/git-pijul-0.9.2/README.md
git-pijul ========= update pijul from git. install ------- ```bash pip install git-pijul ``` usage ----- ```text Usage: git-pijul [OPTIONS] COMMAND [ARGS]... Options: --help Show this message and exit. Commands: create Create a new pijul repository and import a linear... plot Displ...
PypiClean
/tf-transformers-2.0.0.tar.gz/tf-transformers-2.0.0/src/tf_transformers/optimization/adafactor_optimization.py
"""Optimization.""" from __future__ import absolute_import, division, print_function import tensorflow as tf def _randomized_roundoff_to_bfloat16(x, noise, cand1, cand2): """Round-off x to cand1 or to cand2 in an unbiased way. Cand1 and cand2 are the same shape as x. For every element of x, the correspo...
PypiClean
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/sat_state.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function import csv import numpy as np import os import sys from observations.util import maybe_download_and_extract def sat_state(path): """State by State SAT data SAT data assembled for a statistics education ...
PypiClean
/mystreamlit-1.7.0.tar.gz/mystreamlit-1.7.0/streamlit/app_session.py
import sys import uuid from enum import Enum from typing import TYPE_CHECKING, Callable, Optional, List, Any, cast from streamlit.uploaded_file_manager import UploadedFileManager import tornado.ioloop import streamlit.elements.exception as exception_utils from streamlit import __version__, caching, config, legacy_c...
PypiClean
/spaceone-api-1.12.30.tar.gz/spaceone-api-1.12.30/spaceone/api/monitoring/v1/note_pb2_grpc.py
"""Client and server classes corresponding to protobuf-defined services.""" import grpc from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2 from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2 from spaceone.api.monitoring.v1 import note_pb2 as spaceone_dot_api_dot_monit...
PypiClean
/pyamps-1.5.tar.gz/pyamps-1.5/docs/build/html/readme.html
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Overview &#8212; pyAMPS 1.0.0 documentation</title> <...
PypiClean
/pylingdocs_gui-0.0.2-py3-none-any.whl/pylingdocs_gui/editor.py
import logging import webbrowser from pathlib import Path from flask import Blueprint from flask import Flask from flask import jsonify from flask import render_template from flask import request from flask import send_file from flask_cors import CORS from pylingdocs.config import CONTENT_FOLDER from pylingdocs.config ...
PypiClean
/tcp-forward-1.0.5.tar.gz/tcp-forward-1.0.5/tcp_forward/forward_client/inner_worker.py
import select from enum import Enum import data_handler from common import connector from common import forward_event from common import forward_data import logging import traceback import data_handler logger = logging.getLogger('my_logger') class InnerWorker(object): class State(Enum): NONE = 0 ...
PypiClean
/groot-0.0.0.61.tar.gz/groot-0.0.0.61/groot_gui/forms/frm_main.py
import warnings from typing import Dict, Type, cast import groot.data.config import intermake_qt.utilities.interfaces import mhelper as mh import mhelper_qt as qt from PyQt5.QtCore import QCoreApplication, Qt from PyQt5.QtGui import QColor from PyQt5.QtWidgets import QMainWindow, QMdiArea, QMenu, QToolButton from groo...
PypiClean
/cupy-13.0.0a1.tar.gz/cupy-13.0.0a1/cupyx/scipy/interpolate/_interpolate.py
import math import cupy from cupy._core import internal # NOQA from cupy._core._scalar import get_typename # NOQA from cupy_backends.cuda.api import runtime from cupyx.scipy import special as spec from cupyx.scipy.interpolate._bspline import BSpline, _get_dtype import numpy as np try: from math import comb ...
PypiClean
/cupy_cuda116-10.6.0-cp38-cp38-win_amd64.whl/cupy/array_api/linalg.py
from __future__ import annotations import functools from ._dtypes import _floating_dtypes, _numeric_dtypes from ._array_object import Array from typing import TYPE_CHECKING if TYPE_CHECKING: from typing import Literal, Optional, Sequence, Tuple, Union from typing import NamedTuple import cupy as np class Eigh...
PypiClean
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/request/AlipayEcoCplifeCommunityCreateRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayEcoCplifeCommunityCreateModel import AlipayEcoCplifeCommunityCreateModel class AlipayEcoCplifeCommunityCreateRequest(object): def __init__(self, biz_model=None): ...
PypiClean
/FastNLP-1.0.1.tar.gz/FastNLP-1.0.1/fastNLP/core/drivers/torch_driver/single_device.py
import os from typing import Dict, Union, Callable, Tuple, Optional from fastNLP.envs.imports import _NEED_IMPORT_TORCH if _NEED_IMPORT_TORCH: import torch from torch.nn import DataParallel from torch.nn.parallel import DistributedDataParallel from torch.utils.data import RandomSampler as TorchRandomSa...
PypiClean
/cykooz.buildout.basicauth-0.1.1.tar.gz/cykooz.buildout.basicauth-0.1.1/README.rst
This is a fork of ``isotoma.buildout.basicauth``. Main differences are: - Added Python 3 support. ========================= cykooz.buildout.basicauth ========================= This buildout extension allows your buildouts to use ``${buildout:extends}`` or eggs that are protected by basic auth. The minimum configurat...
PypiClean
/dbpedia_ent-0.1.9-py3-none-any.whl/dbpedia_ent/dto/syn/n3/d/rev_da.py
d_rev_da = {'da-cheng_elementary_school': 'bade_city', 'da-lun_elementary_school': 'zhongli', 'da-yun_elementary_school': 'bade_city', 'da40_diamond_aircraft': 'diamond_da40', 'da40_diamond_star': 'diamond_da40', 'da_back_wudz': 'da_backwudz', 'da_baddest_chick': 'da_baddest_bitch', 'da_bai_fen': 'bashi_fen', ...
PypiClean
/threads-net-0.0.49.tar.gz/threads-net-0.0.49/threads/apis/public.py
from __future__ import annotations import json import re import requests from threads.apis.abstract import AbstractThreadsApi class PublicThreadsApi(AbstractThreadsApi): """ Public Threads API implementation. Each unique API endpoint requires unique document ID which is just a constant predefined by A...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/iot/describe-account-audit-configuration.rst
**To view current audit configuration settings** The following ``describe-account-audit-configuration`` example lists the current settings for your AWS IoT Device Defender audit configuration. :: aws iot describe-account-audit-configuration Output:: { "roleArn": "arn:aws:iam::123456789012:role/servi...
PypiClean
/tidytext-0.0.1.tar.gz/tidytext-0.0.1/README.md
tidytext-py =========== Handy text processing in python, using pandas DataFrames. This library is a python port of the [R package tidytext](https://github.com/juliasilge/tidytext). Install ------- ``` pip install tidytext ``` This will also install the nltk package. However, you will need to download additional r...
PypiClean
/django_model_utils-4.2.0-py3-none-any.whl/model_utils/choices.py
import copy class Choices: """ A class to encapsulate handy functionality for lists of choices for a Django model field. Each argument to ``Choices`` is a choice, represented as either a string, a two-tuple, or a three-tuple. If a single string is provided, that string is used as the dat...
PypiClean
/jockmkt-sdk-0.2.15.tar.gz/jockmkt-sdk-0.2.15/src/jockmkt_sdk/exception.py
from datetime import datetime, timedelta class JockAPIException(Exception): """ code -- type -- explanation 400 -- bad_request -- required parameter not included or typo in required parameter 401 -- not_authorized -- token is not valid; expired or keys not functioning 402 -- request_failed -- even...
PypiClean
/django-flexible-subscriptions-0.15.1.tar.gz/django-flexible-subscriptions-0.15.1/subscriptions/abstract.py
from django.views import generic from subscriptions.conf import SETTINGS BASE_TEMPLATE = SETTINGS['base_template'] class TemplateView(generic.TemplateView): """Extends TemplateView to specify of extensible HTML template. Attributes: template_extends (str): Path to HTML template that this ...
PypiClean
/lmcmlflow-1.17.1.2-py3-none-any.whl/mlflow/projects/docker.py
import logging import os import posixpath import shutil import tempfile import urllib.parse import urllib.request import docker from mlflow import tracking from mlflow.projects.utils import get_databricks_env_vars from mlflow.exceptions import ExecutionException from mlflow.projects.utils import MLFLOW_DOCKER_WORKDIR...
PypiClean
/PySPED-1.0.2.tar.gz/PySPED-1.0.2/pysped/cte/leiaute/soap_300.py
from pysped.xml_sped import * from pysped.cte.leiaute import ESQUEMA_ATUAL_VERSAO_300 as ESQUEMA_ATUAL import os DIRNAME = os.path.dirname(__file__) class CTeCabecMsg(XMLNFe): def __init__(self): super(CTeCabecMsg, self).__init__() self.webservice = '' self.cUF = TagInteiro(nome=u'cUF', r...
PypiClean
/fluidsht-0.0.4a0.tar.gz/fluidsht-0.0.4a0/doc/install.rst
Installation and advice ======================= Dependencies ------------ - Python >= 3.6 - a C++11 compiler (for example GCC>=4.9 or Clang) - Numpy Make sure to correctly install numpy before anything. - `Transonic <https://transonic.readthedocs.io>`_ - `Pythran <https://github.com/serge-sans-paille/pythran>`...
PypiClean
/XOPPY-1.0.0.tar.gz/XOPPY-1.0.0/orangecontrib/xoppy/widgets/xoppy/xsh_und_gauss.py
import sys from PyQt4.QtGui import QIntValidator, QDoubleValidator, QApplication, QSizePolicy from Orange.widgets import widget, gui from Orange.widgets.settings import Setting from Orange.data import Table, Domain, ContinuousVariable import numpy as np try: from orangecontrib.xoppy.util.xsh_calc import * except I...
PypiClean
/firex_flame-2.5.59.tar.gz/firex_flame-2.5.59/firex_flame/event_broker_processor.py
import logging from pathlib import Path import threading import traceback import json import time from typing import Optional from dataclasses import dataclass from enum import Enum from typing import Any from io import TextIOWrapper from celery.events import EventReceiver from gevent import spawn, sleep, spawn_later ...
PypiClean
/xmu-0.1b1.tar.gz/xmu-0.1b1/README.md
xmu === xmu is a Python utility used to read and write XML for Axiell EMu, a collections management systems used in museums, galleries, and similar institutions. This package was developed in the Department of Mineral Sciences at the Smithsonian National Museum of Natural History to streamline the process of getting d...
PypiClean