id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/Django-PeerReview-0.1.0.zip/Django-PeerReview-0.1.0/peerreview/views.py
from django.contrib.admin.sites import site from django.contrib.admin.views.main import ChangeList from django.core.urlresolvers import reverse from django.template import Context, loader, RequestContext from django.http import HttpResponseRedirect, HttpResponse #from django.core.urlresolvers import reverse from django...
PypiClean
/panvimwiki-0.4.0.tar.gz/panvimwiki-0.4.0/README.md
--- project: panvimwiki vimversion: Vim v8.2 toc: true description: Filter and convert Vimwiki notes using pandoc. --- <!-- These are examples of badges you might want to add to your README: please update the URLs accordingly [![Built Status](https://api.cirrus-ci.com/github/<USER>/panvimwiki.svg?branch=main)](ht...
PypiClean
/fhir.resources-7.0.2.tar.gz/fhir.resources-7.0.2/fhir/resources/STU3/basic.py
import typing from pydantic import Field from . import domainresource, fhirtypes class Basic(domainresource.DomainResource): """Disclaimer: Any field name ends with ``__ext`` doesn't part of Resource StructureDefinition, instead used to enable Extensibility feature for FHIR Primitive Data Types. Re...
PypiClean
/fern_vitruvi-0.0.6.tar.gz/fern_vitruvi-0.0.6/src/vitruvi/resources/global_configuration/client.py
import typing import urllib.parse from json.decoder import JSONDecodeError import httpx import pydantic from ...core.api_error import ApiError from ...core.jsonable_encoder import jsonable_encoder from ...core.remove_none_from_headers import remove_none_from_headers from ...types.company import Company from ...types...
PypiClean
/Portfolio-py-0.0.1.tar.gz/Portfolio-py-0.0.1/portfolio/component/views/contact_page.py
from portfolio import (Portfolio, utils, route, abort, redirect, request, url_for) from portfolio.component import (mailer, recaptcha) def contact_page(**kwargs): template_dir = kwargs["template_dir"] if "template_dir" \ in kwargs else "Portfolio/ContactPage" templ...
PypiClean
/pulumi_aws_native-0.75.1a1693503310.tar.gz/pulumi_aws_native-0.75.1a1693503310/pulumi_aws_native/organizations/_inputs.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from ._enums import * __all__ = [ 'AccountTagArgs', 'OrganizationalUnitTagArgs', 'PolicyTagArgs', 'ResourcePolicyTagArgs', ] @pulumi.input_typ...
PypiClean
/dbpedia_ent-0.1.9-py3-none-any.whl/dbpedia_ent/dto/ent/n3/m/trie_me.py
d_trie_me = {'_': ['me_aboubacar_diomande', 'me_262_messerschmidt', 'me-life_fukuoka_suns', 'me_estoy_enamorando', 'me_declaro_culpable', 'me_and_marlborough', 'me_musical_nephews', 'me_little_armalite', "me'asha_ben_joseph", 'me_voy_enamorando', '...
PypiClean
/sdss-opscore-3.0.4.tar.gz/sdss-opscore-3.0.4/python/opscore/RO/DS9.py
r""" Interface for viewing images with the ds9 image viewer. Loosely based on XPA, by Andrew Williams. Before trying to use this, please read Requirements below. Here is a basic summary for use: import opscore.RO.DS9 import numpy ds9Win = opscore.RO.DS9.DS9Win() # show a FITS file in frame 1 ds9W...
PypiClean
/neolib_python-2.0.5-py3-none-any.whl/neolib/file_util.py
import os def StrFromFile(filepath,enc='utf-8'): fb = open(filepath,'rb') rt = fb.read() str = rt.decode(enc) fb.close() return str def StrToFile(str,filepath,enc='utf-8'): fullpath = os.path.abspath(filepath) dir_name = os.path.dirname(fullpath) MakeDir(dir_name) fb = open(filepath,'wb') fb.write(str.en...
PypiClean
/pygame-pgu-0.21.tar.gz/pygame-pgu-0.21/pgu/gui/document.py
import pygame from . import container from . import layout class _document_widget: def __init__(self,w,align=None): #w.rect.w,w.rect.h = w.resize() #self.rect = w.rect self.widget = w if align != None: self.align = align class Document(container.Container): """A document is a ...
PypiClean
/relatable-0.3.0.tar.gz/relatable-0.3.0/README.md
# relatable relatable is a Python package for converting a collection of documents, such as a MongoDB collection, into an interrelated set of tables, such as a schema in a relational database. ## Installation ``` pip3 install relatable ``` ## Example of use In this example we will walk through a use case of `rel...
PypiClean
/google-ads-21.3.0.tar.gz/google-ads-21.3.0/google/ads/googleads/v12/services/services/account_budget_proposal_service/transports/grpc.py
import warnings from typing import Callable, Dict, Optional, Sequence, Tuple from google.api_core import grpc_helpers from google.api_core import gapic_v1 import google.auth # type: ignore from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.grpc import SslCredentials # ty...
PypiClean
/bika.health-3.1.8.tar.gz/bika.health-3.1.8/bika/health/controlpanel/bika_insurancecompanies.py
from Products.ATContentTypes.content import schemata from Products.Archetypes import atapi from bika.lims.browser.bika_listing import BikaListingView from bika.health.config import PROJECTNAME from bika.health import bikaMessageFactory as _ from bika.health.interfaces import IInsuranceCompanies from plone.app.layout.gl...
PypiClean
/inferno-pytorch-0.1.7.tar.gz/inferno-pytorch-0.1.7/inferno/trainers/callbacks/scheduling.py
from ...utils.train_utils import Duration, MovingAverage from ...utils import python_utils as pyu from ...utils.exceptions import assert_, NotSetError from .base import Callback class AutoLRDecay(Callback): """ Callback to decay the learning rate automatically when a specified monitor stops improving. ...
PypiClean
/scs_core-2.8.9-py3-none-any.whl/scs_core/data/datetime.py
import pytz import re import tzlocal from datetime import date, datetime, timedelta, timezone from scs_core.data.json import JSONable from scs_core.data.timedelta import Timedelta # TODO: object should carry a flag indicating presence of millis - for "preserve millis" mode? # ---------------------------------------...
PypiClean
/ressources/lib/node_modules/highcharts/modules/map.src.js
'use strict'; (function (factory) { if (typeof module === 'object' && module.exports) { module.exports = factory; } else if (typeof define === 'function' && define.amd) { define(function () { return factory; }); } else { factory(Highcharts); } }(function (Highcharts) { (function (H) { /** * (c) 201...
PypiClean
/plaid-python-15.5.0.tar.gz/plaid-python-15.5.0/plaid/model/historical_update_webhook.py
import re # noqa: F401 import sys # noqa: F401 from plaid.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, validate...
PypiClean
/etsy_api_zs-0.4-py3-none-any.whl/ebay/account/serializers/validators.py
from django.contrib.auth import get_user_model from django.utils import timezone from ebay.account.models import EbayUserAccountProfile from ebay.api.ebay_access import EbayAPIAccess from ebay_api.commerce.identity import GetUser from ebay_api.sell.account import GetPrivileges from ebay_oauth.oauth_client import EbayO...
PypiClean
/indic-doctr-0.7.1a0.tar.gz/indic-doctr-0.7.1a0/doctr/models/kie_predictor/pytorch.py
# This program is licensed under the Apache License 2.0. # See LICENSE or go to <https://opensource.org/licenses/Apache-2.0> for full license details. from typing import Any, Dict, List, Union import numpy as np import torch from torch import nn from doctr.io.elements import Document from doctr.models._utils import...
PypiClean
/hymn-0.9.tar.gz/hymn-0.9/docs/examples.rst
Examples ======== Calculating Pi with Monte Carlo Method -------------------------------------- Pseudo-random number generator with :py:class:`~hymn.types.state.State` monad: .. literalinclude:: ../examples/monte_carlo.hy :language: clojure :lines: 7- Example output: .. code-block:: sh $ ./monte_carlo.hy 5...
PypiClean
/python-pylls-0.9.4.tar.gz/python-pylls-0.9.4/README.rst
|PythonPIP|_ |PythonSupport|_ |License|_ |Codacy|_ |Coverage|_ pylls - Python library to interface Cachet API (cachethq.io) ============================================================ * *Author:* Denis 'jawa' Pompilio <denis.pompilio@gmail.com> * *Contact:* Denis 'jawa' Pompilio <denis.pompilio@gmail.com> * *Sources...
PypiClean
/cdktf_cdktf_provider_aws-17.0.2-py3-none-any.whl/cdktf_cdktf_provider_aws/vpclattice_resource_policy/__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 VpclatticeResourcePolicy( _cdktf_9a9027ec.Terrafor...
PypiClean
/shadowsocks-py-2.9.1.tar.gz/shadowsocks-py-2.9.1/shadowsocks/udprelay.py
# SOCKS5 UDP Request # +----+------+------+----------+----------+----------+ # |RSV | FRAG | ATYP | DST.ADDR | DST.PORT | DATA | # +----+------+------+----------+----------+----------+ # | 2 | 1 | 1 | Variable | 2 | Variable | # +----+------+------+----------+----------+----------+ # SOCKS5 UDP Resp...
PypiClean
/mg_conveyor-1.0.0-py3-none-any.whl/mg_conveyor/conveyor.py
import yapsy.PluginManager as yPM from mg_conveyor.plugin_interfaces import ISequencialPlugin from mg_conveyor.plugin_interfaces import IUtilityPlugin from mg_conveyor.exceptions import ConveyorError import logging ''' Created on 18/01/2015 @author: RonElla ''' STATUS_SUCCESS=0 STATUS_FAILED=-1 STATUS_ABORT=10 STAT...
PypiClean
/crunch-cli-1.8.2.tar.gz/crunch-cli-1.8.2/crunch/command/convert.py
import ast import json import os import re import typing import astor import click from .. import constants, utils def convert_cells(cells: typing.List[typing.Any]): module = ast.Module() module.body = [] for index, cell in enumerate(cells): cell_id = cell["metadata"].get("id") or f"cell_{index...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_7/models/policy_smb_patch.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_7 import models class PolicySmbPatch(object): """ Attributes: swagger_types (dict): The key is attribute name and the value is ...
PypiClean
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/ixnetwork_restpy/testplatform/sessions/ixnetwork/topology/pcepsrv6eroobjectslist_205ff487307c7e9626812588ef2b6684.py
import sys from ixnetwork_restpy.base import Base from ixnetwork_restpy.files import Files if sys.version_info >= (3, 5): from typing import List, Any, Union class PcepSRv6EROObjectsList(Base): """ The PcepSRv6EROObjectsList class encapsulates a list of pcepSRv6EROObjectsList resources that are managed b...
PypiClean
/pds.api_client-1.3.0-py3-none-any.whl/pds/api_client/models/metadata.py
from __future__ import annotations from inspect import getfullargspec import pprint import re # noqa: F401 import json from typing import Optional from pydantic import BaseModel, StrictStr class Metadata(BaseModel): """ Metadata """ archive_status: Optional[StrictStr] = None creation_date_time: ...
PypiClean
/HolisticTraceAnalysis-0.2.0-py3-none-any.whl/hta/analyzers/straggler.py
import re from typing import Tuple import pandas as pd import plotly.express as px from hta.analyzers.timeline import _get_unique_values, plot_timeline_gpu_kernels from hta.common.trace import Trace, TraceSymbolTable def extract_iteration_info(trace: Trace) -> pd.DataFrame: """Extract the iteration information...
PypiClean
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/device_management_setting_dependency.py
from __future__ import annotations from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union if TYPE_CHECKING: from . import device_management_constraint class DeviceManagementSettingDepe...
PypiClean
/dstore-sdk-python-1.0.2.5.tar.gz/dstore-sdk-python-1.0.2.5/dstore/engine/procedures/mi_RestoreDefaultValues_Ad_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 from google.p...
PypiClean
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/clone/clone.js
var clone = (function() { 'use strict'; function _instanceof(obj, type) { return type != null && obj instanceof type; } var nativeMap; try { nativeMap = Map; } catch(_) { // maybe a reference error because no `Map`. Give it a dummy value that no // value will ever be an instanceof. nativeMap = function() {}...
PypiClean
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/helpers/trace.py
from __future__ import annotations from collections import deque from collections.abc import Callable, Generator from contextlib import contextmanager from contextvars import ContextVar from functools import wraps from typing import Any, cast from homeassistant.core import ServiceResponse import homeassistant.util.dt...
PypiClean
/pyglet-2.0.9.zip/pyglet-2.0.9/doc/programming_guide/image.rst
Images and Sprites ================== pyglet provides functions for loading and saving images in various formats using native operating system services. If the `Pillow`_ library is installed, many additional formats can be supported. pyglet also includes built-in codecs for loading PNG and BMP without external depe...
PypiClean
/graphite-datasets-1.0.5.tar.gz/graphite-datasets-1.0.5/tensorflow_datasets/summarization/reddit.py
import json import os import tensorflow as tf import tensorflow_datasets.public_api as tfds _CITATION = """ @inproceedings{volske-etal-2017-tl, title = "{TL};{DR}: Mining {R}eddit to Learn Automatic Summarization", author = {V{\"o}lske, Michael and Potthast, Martin and Syed, Shahbaz and S...
PypiClean
/tensor2tensorManuel-0.2.tar.gz/tensor2tensorManuel-0.2/tensor2tensor/models/video/basic_deterministic.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from tensor2tensor.layers import common_attention from tensor2tensor.layers import common_layers from tensor2tensor.layers import common_video from tensor2tensor.models.video import base from tensor2tensor.mode...
PypiClean
/sphinxcontrib_django-2.4-py3-none-any.whl/sphinxcontrib_django/docstrings/patches.py
from django import apps, forms, test from django.db import models try: from django.contrib.postgres import fields as postgres_fields from django.contrib.postgres import forms as postgres_forms POSTGRES = True except ModuleNotFoundError: # In case postgres is not used, pass POSTGRES = False try: ...
PypiClean
/graph-notebook-3.8.2.tar.gz/graph-notebook-3.8.2/src/graph_notebook/start_notebook.py
import os import argparse import json HOME_PATH = os.path.expanduser("~") NBCONFIG_DIR_TREE = HOME_PATH + '/.jupyter/nbconfig' NOTEBOOK_CFG_PATH = NBCONFIG_DIR_TREE + '/notebook.json' CUSTOM_DIR_TREE = HOME_PATH + '/.jupyter/custom' NOTEBOOK_CUSTOMJS_PATH = CUSTOM_DIR_TREE + '/custom.js' def patch_cm_cypher_config(...
PypiClean
/venv-pack-0.2.0.tar.gz/venv-pack-0.2.0/versioneer.py
from __future__ import print_function try: import configparser except ImportError: import ConfigParser as configparser import errno import json import os import re import subprocess import sys class VersioneerConfig: """Container for Versioneer configuration parameters.""" def get_root(): """Get the...
PypiClean
/simple_worker-0.2.21.tar.gz/simple_worker-0.2.21/simple_worker/__init__.py
from simple_worker.task_handler_registry import TaskHandlerRegistry from simple_worker.task_handler_registry import TaskHandlerNotFound from simple_worker.task_router import TaskRouter from simple_worker.queue import Queue from simple_worker.worker import Worker from simple_worker.queue_providers import MemoryProvider,...
PypiClean
/Wand-0.6.11.tar.gz/Wand-0.6.11/docs/whatsnew/0.4.rst
:orphan: What's new in Wand 0.4? ======================= This guide doesn't cover all changes in 0.4. See also the full list of changes in :ref:`changelog-0.4.0`. Complete Drawing API -------------------- Although Wand 0.3 introduced some basic facilities to draw :ref:`draw-lines` or :ref:`draw-texts`, these were...
PypiClean
/numerical_z-0.1.1.tar.gz/numerical_z-0.1.1/numerical_z/numerical_z.py
import numpy as np import numba from scipy.integrate import quad, simps class NumericZ: """A class that can store the information from the numerical calculation of Z Then useing the __call__ methode to compute the Z function. """ def __init__(self, F_function, N=64): self.F = F_function ...
PypiClean
/ansible-kkvesper-2.3.2.0.tar.gz/ansible-kkvesper-2.3.2.0/lib/ansible/modules/files/tempfile.py
# (c) 2016 Krzysztof Magosa <krzysztof@magosa.pl> # # This file is part of Ansible # # Ansible 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) any later ...
PypiClean
/passman-1.2.3.tar.gz/passman-1.2.3/README.rst
Passman ======= Passman is a password management application that allows for password generation, storage, retrieval, updates, and removal from the comfort of the command line. Passman was written by: `Sam Messina <https://github.com/regexpressyourself>`__ `Dan Jensen <https://github.com/nosnixster>`__ Installing ...
PypiClean
/cosmo_utils-0.1.64.tar.gz/cosmo_utils-0.1.64/astropy_helpers/ez_setup.py
import os import shutil import sys import tempfile import zipfile import optparse import subprocess import platform import textwrap import contextlib from distutils import log try: from urllib.request import urlopen except ImportError: from urllib2 import urlopen try: from site import USER_SITE except Im...
PypiClean
/lcmap-merlin-2.3.4rc1.tar.gz/lcmap-merlin-2.3.4rc1/merlin/geometry.py
from cytoolz import get_in import functools import logging import numpy as np logger = logging.getLogger(__name__) def minbox(points): """Returns the minimal bounding box necessary to contain points Args: points (tuple, list, set): ((0,0), (40, 55), (66, 22)) Returns: dict: {ulx, uly, ...
PypiClean
/django-mptt-0.14.0.tar.gz/django-mptt-0.14.0/docs/templates.rst
=============================== Working with trees in templates =============================== .. highlightlang:: html+django .. contents:: :depth: 3 Getting started ========================= Before you can use these tags/filters, you must: * add "mptt" to your ``INSTALLED_APPS`` in ``settings.py`` * add ``{%...
PypiClean
/django-mothertongue-0.0.6.tar.gz/django-mothertongue-0.0.6/mothertongue/context_processors.py
import re, copy # import stuff we need from django from django.conf import settings from django.utils import translation from django.utils.translation import ugettext as _ # returns a lang prefix for use in urls def path_lang_prefix(): lang = translation.get_language() if lang == settings.LANGUAGE_CODE: ...
PypiClean
/scrapy-contrib-bigexporters-0.4.0.tar.gz/scrapy-contrib-bigexporters-0.4.0/CHANGELOG.md
# Changelog All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] ## [0.4.0] - 2022-06-23 * Added: Migrate to Pandas ...
PypiClean
/py-pde-0.32.2.tar.gz/py-pde-0.32.2/pde/pdes/kuramoto_sivashinsky.py
from typing import Callable, Optional import numba as nb import numpy as np from ..fields import ScalarField from ..grids.boundaries.axes import BoundariesData from ..tools.docstrings import fill_in_docstring from ..tools.numba import jit from .base import PDEBase, expr_prod class KuramotoSivashinskyPDE(PDEBase): ...
PypiClean
/pybdm_insee-0.1.7-py3-none-any.whl/pybdm_insee/__main__.py
import click import json import os, sys import pandas as pd from subprocess import call from importlib.util import find_spec from rich import pretty pretty.install() from pybdm_insee.tools.insee import ( process_xml_output, insee_bdm_get, process_xml_output, idb_exists, find_closest_idbank ) from pybdm_i...
PypiClean
/rkd-cooperative-1.0.3.tar.gz/rkd-cooperative-1.0.3/rkd_cooperative/tasks.py
import os import subprocess from glob import glob from argparse import ArgumentParser from typing import Dict from typing import Tuple from urllib.parse import urlparse from rkd.api.contract import ExecutionContext from rkd.api.inputoutput import Wizard from rkd.api.contract import TaskInterface from rkd.api.contract i...
PypiClean
/cryptodataaccess-athanikos-0.6.6.tar.gz/cryptodataaccess-athanikos-0.6.6/cryptodataaccess/Transactions/TransactionRepository.py
from cryptomodel.cryptostore import user_transaction from cryptomodel.operations import OPERATIONS from cryptodataaccess.Memory import Memory, TRANSACTIONS_MEMORY_KEY from cryptodataaccess.Repository import Repository class TransactionRepository(Repository): def __init__(self, transaction_store): self.tr...
PypiClean
/cctbx_base-2020.8-0_py38h167b89d-cp38-cp38m-manylinux2010_x86_64.whl/cctbx/web/structure_factors.py
from __future__ import absolute_import, division, print_function from libtbx import complex_math from cctbx.web import io_utils from cctbx.web import cgi_utils def interpret_form_data(form): inp = cgi_utils.inp_from_form(form, (("ucparams", "1 1 1 90 90 90"), ("sgsymbol", "P1"), ("convention", ""), ...
PypiClean
/notofonttools-0.2.17-py3-none-any.whl/nototools/update_udhr_samples.py
import argparse import codecs import collections import datetime import difflib import os import re import shutil try: from urllib.request import urlretrieve except: from urllib import urlretrieve import xml.etree.ElementTree as ET from nototools import generate_website_data from nototools import tool_utils ...
PypiClean
/django-radio-1.2.0.tar.gz/django-radio-1.2/radio/static/fullcalendar/lang/hu.js
(function(e){"function"==typeof define&&define.amd?define(["jquery","moment"],e):e(jQuery,moment)})(function(e,t){function n(e,t,n,i){var r=e;switch(n){case"s":return i||t?"néhány másodperc":"néhány másodperce";case"m":return"egy"+(i||t?" perc":" perce");case"mm":return r+(i||t?" perc":" perce");case"h":return"egy"+(i|...
PypiClean
/parallel_delaunay-1.0.0-py3-none-any.whl/paralleldelaunay/triangulation_core/points_tools/generate_values.py
from math import ceil, sqrt from typing import Union import numpy as np from numpy.random import default_rng # ----------------------------- Points generators ----------------------------- """ The following functions are used to generate the initial values for the position of each point. """ def random(num_points:...
PypiClean
/calorie_counter-0.1.3-py3-none-any.whl/counter/static/js/food.js
const foodDb = { "Egg McMuffin [4.8 oz / 136 g]": "300", "Egg White Delight [4.8 oz / 135 g]": "250", "Sausage McMuffin [3.9 oz / 111 g]": "370", "Sausage McMuffin with Egg [5.7 oz / 161 g]": "450", "Sausage McMuffin with Egg Whites [5.7 oz / 161 g]": "400", "Steak & Egg McMuffin [6.5 oz / 185 g...
PypiClean
/streamlit-webscrap-tool-0.0.3.tar.gz/streamlit-webscrap-tool-0.0.3/streamlit_webscrap_tool/frontend/build/static/js/88.4fcaf9ca.chunk.js
(this.webpackJsonpstreamlit_wenscrap_tool=this.webpackJsonpstreamlit_wenscrap_tool||[]).push([[88],{160:function(e,t){Prism.languages.d=Prism.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/eventgrid/v20230601preview/_inputs.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from ._enums import * __all__ = [ 'AzureADPartnerClientAuthenticationArgs', 'AzureFunctionEventSubscriptionDestinationArgs', 'BoolEqualsAdvancedFi...
PypiClean
/canvassyncer-2.0.11.tar.gz/canvassyncer-2.0.11/README.md
# Canvas-Syncer [![MIT License](https://img.shields.io/pypi/l/canvassyncer)](https://github.com/BoYanZh/Canvas-Syncer/blob/master/LICENSE) [![CodeFactor](https://www.codefactor.io/repository/github/boyanzh/canvas-syncer/badge)](https://www.codefactor.io/repository/github/boyanzh/canvas-syncer) [![PyPi Version](https:/...
PypiClean
/smart_home_tng-2023.1.3.tar.gz/smart_home_tng-2023.1.3/nodejs/frontend/src/data/scene.ts
import { HassEntityAttributeBase, HassEntityBase, } from "home-assistant-js-websocket"; import { navigate } from "../common/navigate"; import { HomeAssistant, ServiceCallResponse } from "../types"; export const SCENE_IGNORED_DOMAINS = [ "binary_sensor", "button", "configuration", "device_tracker", "image...
PypiClean
/easy-docx-0.1.0.tar.gz/easy-docx-0.1.0/docx/opc/rel.py
from __future__ import ( absolute_import, division, print_function, unicode_literals ) from .oxml import CT_Relationships class Relationships(dict): """ Collection object for |_Relationship| instances, having list semantics. """ def __init__(self, baseURI): super(Relationships, self).__in...
PypiClean
/sIBL_GUI-4.0.8.tar.gz/sIBL_GUI-4.0.8/docs/sphinx/source/resources/pages/api/umbra.ui.views.rst
_`umbra.ui.views` ================= .. automodule:: umbra.ui.views Module Attributes ----------------- .. attribute:: umbra.ui.views.LOGGER Classes ------- .. autoclass:: ReadOnlyFilter :show-inheritance: :members: .. autoclass:: Mixin_AbstractBase :show-inheritance: :members: .. autoclass:: Mixin_AbstractVi...
PypiClean
/ringcentral_engage_voice-0.3.2.tar.gz/ringcentral_engage_voice-0.3.2/ringcentral_engage_voice/engage_voice_client.py
import pydash as _ try: # py3 import urllib.parse as urlparse except: # pragma: no cover import urlparse from requests import Request, Session from ringcentral import SDK import sys import platform from requests.utils import quote # import json version = 'dev' try: with open("version", "r") as fh: vers...
PypiClean
/prompt_tool_kit-1.0.14-py3-none-any.whl/prompt_tool_kit/layout/screen.py
from __future__ import unicode_literals from prompt_tool_kit.cache import FastDictCache from prompt_tool_kit.token import Token from prompt_tool_kit.utils import get_cwidth from collections import defaultdict, namedtuple __all__ = ( 'Point', 'Size', 'Screen', 'Char', ) Point = namedtuple('Point', '...
PypiClean
/aws-cdk.aws-timestream-1.204.0.tar.gz/aws-cdk.aws-timestream-1.204.0/README.md
# AWS::Timestream Construct Library <!--BEGIN STABILITY BANNER-->--- ![End-of-Support](https://img.shields.io/badge/End--of--Support-critical.svg?style=for-the-badge) > AWS CDK v1 has reached End-of-Support on 2023-06-01. > This package is no longer being updated, and users should migrate to AWS CDK v2. > > For mor...
PypiClean
/pybel_tools-0.9.1-py3-none-any.whl/pybel_tools/biogrammar/double_edges.py
from typing import Dict, Iterable, List, Mapping, Tuple from pybel import BELGraph from pybel.constants import ( ACTIVITY, CAUSAL_RELATIONS, DEGRADATION, LINE, MODIFIER, RELATION, SOURCE, TARGET, TRANSLOCATION, ) from pybel.dsl import BaseEntity, ComplexAbundance, NamedComplexAbundance from pybel.struct.filters im...
PypiClean
/virtualenv-cache-0.0.2.tar.gz/virtualenv-cache-0.0.2/README.rst
virtualenv-cache ---------------- Manage a cache of virtual environments based on changes in requirements files. An example usage of this tool might be a CI system that executes a testsuite. If there are no changes in requirements, a cached virtual environment already available in the CI might be used. This environme...
PypiClean
/django_pg_trunk-0.1.3-py3-none-any.whl/django_pg_trunk/models.py
from django.db import models class QueryStatistic(models.Model): dbid = models.BigIntegerField(help_text="OID of database in which the statement was executed") userid = models.BigIntegerField(help_text="OID of user who executed the statement") queryid = models.BigIntegerField(primary_key=True, help_text="...
PypiClean
/brosoul-2.0.0.tar.gz/brosoul-2.0.0/md/PythonMustKnow.md
# python 开发之前必须知道的一些事情 ## Where is Python's sys.path initialized from? https://stackoverflow.com/questions/897792/where-is-pythons-sys-path-initialized-from ## 了解一下 PEP 吧 Python Enhancement Proposals 使用 setup.py develop 进行开发 会将当前包路径加到 sys.path 中, 有相同左右的有 requirement.txt 中添加一行 -e . pip install .[xxx] 将使用 setup.py...
PypiClean
/echarts-china-counties-pypkg-0.0.2.tar.gz/echarts-china-counties-pypkg-0.0.2/echarts_china_counties_pypkg/resources/echarts-china-counties-js/a324d60bae7d9b6a227a67f763de6f3a.js
(function (root, factory) {if (typeof define === 'function' && define.amd) {define(['exports', 'echarts'], factory);} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {factory(exports, require('echarts'));} else {factory({}, root.echarts);}}(this, function (exports, echarts) {var log = func...
PypiClean
/certif_pyspec-1.5.3.tar.gz/certif_pyspec-1.5.3/pyspec/client/SpecEventsDispatcher.py
import weakref import time import inspect import sys try: import queue except ImportError: import Queue as queue from pyspec.client import saferef from pyspec.css_logger import log, log_exception DEBUG=4 # debug level for this module (UPDATEVALUE, FIREEVENT) = (1, 2) class SpecClientDispatcherError(Excepti...
PypiClean
/Products.FCKeditor-2.6.6.3.zip/Products.FCKeditor-2.6.6.3/Products/FCKeditor/_src/fckeditor/editor/_source/classes/fcktoolbarfontformatcombo.js
/* * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2010 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following licenses at your * choice: * * - GNU General Public License Version 2 or later (the "GPL") * http://ww...
PypiClean
/ipfshttpclient-0.8.0a2.tar.gz/ipfshttpclient-0.8.0a2/RELEASE.md
# Release The release process uses `flit` to build the package, `Sphinx` to generate documentation, publishes the documentation to an IPFS server (obtaining an IPFS hash), and then links the IPFS hash (which varies based on content) to a static IPNS name. The IPNS name requires a private key, which is controlled by...
PypiClean
/agestrucnb-0.1.33.tar.gz/agestrucnb-0.1.33/agestrucne/pgdriveneestimator.py
from __future__ import division from __future__ import print_function from builtins import range from past.utils import old_div from builtins import object __filename__ = "pgdriveneestimator.py" __date__ = "20160510" __author__ = "Ted Cosart<ted.cosart@umontana.edu>" import glob import sys import os from multiprocessi...
PypiClean
/echarts-china-cities-pypkg-0.0.9.tar.gz/echarts-china-cities-pypkg-0.0.9/echarts_china_cities_pypkg/resources/echarts-china-cities-js/shan1_dong1_lai2_wu2.js
!function(A,B){"function"==typeof define&&define.amd?define(["exports","echarts"],B):"object"==typeof exports&&"string"!=typeof exports.nodeName?B(exports,require("echarts")):B({},A.echarts)}(this,function(A,B){var C=function(A){"undefined"!=typeof console&&console&&console.error&&console.error(A)} return B?B.registerM...
PypiClean
/ipsync-0.1.0-py3-none-any.whl/ip_sync/providers.py
"""Defines cloud providers and exposes ProviderFactory.""" import abc import logging import re import requests import requests.exceptions from bs4 import BeautifulSoup class AbstractProvider(object): """Used to define the provider interface, all providers must inherit from GenericProvider.""" __metaclass__...
PypiClean
/McsPyDataTools-0.4.3.tar.gz/McsPyDataTools-0.4.3/McsPy/McsData.py
import h5py from builtins import IndexError import datetime import math import uuid import collections import numpy as np from McsPy import ureg, McsHdf5Protocols from pint import UndefinedUnitError MCS_TICK = 1 * ureg.us CLR_TICK = 100 * ureg.ns # day -> number of clr ticks (100 ns) DAY_TO_CLR_TIME_TICK = 24 * 60 *...
PypiClean
/hydrobox-0.2.0.tar.gz/hydrobox-0.2.0/README.md
# HydroBox # **The HydroBox is mainly a toolbox used in the [V-FOR-WaTer](https://vforwater.de) Project. It will be expanded to serve general hydrological data exploration with a future release.** The HydroBox package is a toolbox for hydrological data analysis developed at the [Chair of Hydrology](https://hyd.iwg.ki...
PypiClean
/skytime-0.16.1-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/sktime/transformations/series/augmenter.py
"""Series transformers for time series augmentation.""" __author__ = ["MrPr3ntice", "MFehsenfeld", "iljamaurer"] __all__ = [ "WhiteNoiseAugmenter", "ReverseAugmenter", "InvertAugmenter", "RandomSamplesAugmenter", ] import numpy as np import pandas as pd from scipy.stats import norm from sklearn.utils...
PypiClean
/avilla_twilight-0.2.0-py3-none-any.whl/avilla/twilight/typing.py
import contextlib import enum import sys import types from types import TracebackType from typing import ( TYPE_CHECKING, AbstractSet, Any, Callable, Dict, Final, Generic, Literal, Mapping, Optional, Sequence, Tuple, Type, TypeVar, Union, ) import typing_exte...
PypiClean
/bacon_net-0.2.1-py3-none-any.whl/bacon/bacon.py
from abc import abstractmethod from abc import ABC import tensorflow as tf from tensorflow import keras from keras.utils.generic_utils import get_custom_objects from keras.layers import Activation import numpy as np from sympy import * # surpress warnings on running GPU Tensorflow on CPU import os os.environ['TF_CPP_...
PypiClean
/odoo12_addon_product_brand-12.0.2.0.1-py3-none-any.whl/odoo/addons/product_brand/readme/USAGE.rst
To create a new brand: #. Go to *Sales > Configuration > Products > Product Brands*. #. You can set its logo, associate a partner and add a description. To add a product to a brand: #. Go to the product itself and edit. #. Below the product's name there is a Brand field where you can pick the one the product belo...
PypiClean
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/ms/index.js
var s = 1000; var m = s * 60; var h = m * 60; var d = h * 24; var w = d * 7; var y = d * 365.25; /** * Parse or format the given `val`. * * Options: * * - `long` verbose formatting [false] * * @param {String|Number} val * @param {Object} [options] * @throws {Error} throw an error if val is not a non-empty st...
PypiClean
/bnpy-0.1.7.tar.gz/bnpy-0.1.7/README.md
## **bnpy** : Bayesian nonparametric machine learning for python. * [About](#about) * [Project Website (Read the Docs)](https://bnpy.readthedocs.io/en/latest/) * [Example Gallery](#example-gallery) * [Quick Start](#quick-start) * [Installation](#installation) * [Team](#team) * [Academic References](#academic-reference...
PypiClean
/azure-mgmt-storagecache-1.5.0.zip/azure-mgmt-storagecache-1.5.0/azure/mgmt/storagecache/operations/_storage_targets_operations.py
from io import IOBase from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, map_er...
PypiClean
/hsnf-0.3.15.tar.gz/hsnf-0.3.15/docs/definition.rst
Definition ========== Smith normal form ----------------- Let :math:`\mathbf{M}` be :math:`m \times n` integer matrix. There exist some unimodular matrices :math:`\mathbf{L} \in \mathbb{Z}^{m \times m}` and :math:`\mathbf{R} \in \mathbb{Z}^{n \times n}` such that .. math:: \mathbf{D} := \mathbf{LMR} ...
PypiClean
/foundry_econml-0.8.1.4-py3-none-any.whl/econml/two_stage_least_squares.py
import numpy as np from copy import deepcopy from sklearn import clone from sklearn.linear_model import LinearRegression from .utilities import shape, transpose, reshape, cross_product, ndim, size, _deprecate_positional from .cate_estimator import BaseCateEstimator, LinearCateEstimator from numpy.polynomial.hermite_e i...
PypiClean
/tsuruclient-0.4.1.tar.gz/tsuruclient-0.4.1/README.md
python-tsuruclient ================== [![Build Status](https://travis-ci.org/tsuru/python-tsuruclient.svg?branch=master)](https://travis-ci.org/tsuru/python-tsuruclient) Python client library for tsuru API http://tsuru.io # Install ```bash $ pip install tsuruclient ``` # Contribute ## install the dependencies ``...
PypiClean
/Oasis_Optimization-1.0.2-py3-none-any.whl/Oasis/gradient.py
import copy import numpy class Gradient(object): """ Abstract Class for Optimizer Gradient Calculation Object """ def __init__(self, opt_problem, sens_type, sens_mode='', sens_step={}, *args, **kwargs): """ Optimizer Gradient Calculation Class Initialization Arguments: ...
PypiClean
/aiida_core-2.4.0-py3-none-any.whl/aiida/engine/processes/builder.py
"""Convenience classes to help building the input dictionaries for Processes.""" from collections.abc import Mapping, MutableMapping import json from typing import TYPE_CHECKING, Any, Type from uuid import uuid4 import yaml from aiida.engine.processes.ports import PortNamespace from aiida.orm import Dict, Node from a...
PypiClean
/google-cloud-dataproc-momovn-5.0.3.tar.gz/google-cloud-dataproc-momovn-5.0.3/google/cloud/dataproc_v1/services/batch_controller/transports/grpc_asyncio.py
import warnings from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union from google.api_core import gapic_v1 from google.api_core import grpc_helpers_async from google.api_core import operations_v1 from google.auth import credentials as ga_credentials # type: ignore from google.auth.transport.g...
PypiClean
/quart-auth-0.6.0.tar.gz/quart-auth-0.6.0/src/quart_auth/__init__.py
import warnings from contextlib import asynccontextmanager from enum import auto, Enum from functools import wraps from hashlib import sha512 from secrets import compare_digest from types import new_class from typing import Any, AsyncGenerator, Callable, Dict, Optional from itsdangerous import BadSignature, URLSafeSer...
PypiClean
/onnxruntime_training-1.15.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/onnxruntime/training/ortmodule/debug_options.py
import os from ._logger import LogLevel class _SaveOnnxOptions: """Configurable option to save ORTModule intermediate onnx models.""" # class variable _path_environment_key = "ORTMODULE_SAVE_ONNX_PATH" def __init__(self, save, name_prefix): self._save, self._name_prefix, self._path = self....
PypiClean
/aicrowd-repo2docker-0.11.3.tar.gz/aicrowd-repo2docker-0.11.3/CONTRIBUTING.md
# Contributing to repo2docker development :sparkles: Thank you for thinking about contributing to repo2docker! :sparkles: (And thank you particularly for coming to read the guidelines! :heart_eyes:) The repo2docker developer documentation is all rendered on our documentation website: [https://repo2docker.readthedocs...
PypiClean
/rtspscanner-0.1.5.tar.gz/rtspscanner-0.1.5/rtspscanner.py
from os import getenv,path,system import subprocess import requests import json from PIL import Image from portscan import PortScan class RTSPScanner: def __init__(self,verbose=False,wspace="-"): # GET ENVIRONMENT VARIABLES self.ports = getenv("RTSP_SCAN_PORTS","554,8554") self.timeou...
PypiClean
/liyc_superset-0.0.0.tar.gz/liyc_superset-0.0.0/superset/utils/core.py
"""Utility functions used across Superset""" from datetime import date, datetime, time, timedelta import decimal from email.mime.application import MIMEApplication from email.mime.image import MIMEImage from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText from email.utils import formatdat...
PypiClean
/azure_ai_language_questionanswering-1.1.0b2-py3-none-any.whl/azure/ai/language/questionanswering/aio/_question_answering_client.py
from copy import deepcopy from typing import Any, Awaitable from msrest import Deserializer, Serializer from azure.core import AsyncPipelineClient from azure.core.credentials import AzureKeyCredential from azure.core.rest import AsyncHttpResponse, HttpRequest from .. import models from ._configuration import Questi...
PypiClean
/direct-sdk-python2-1.10.0.zip/direct-sdk-python2-1.10.0/ingenico/direct/sdk/client.py
from base64 import b64encode from ingenico.direct.sdk.api_resource import ApiResource from ingenico.direct.sdk.i_client import IClient from ingenico.direct.sdk.merchant.merchant_client import MerchantClient class Client(ApiResource, IClient): """ Ingenico ePayments platform client. This client and all i...
PypiClean