id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/genie.libs.conf-23.8-py3-none-any.whl/genie/libs/conf/ospf/iosxe/arearange.py
import re import warnings from abc import ABC from netaddr import IPNetwork # Genie from genie.conf.base.cli import CliConfigBuilder from genie.conf.base.attributes import AttributesHelper class AreaRange(ABC): def build_config(self, apply=True, attributes=None, unconfig=False, **kwargs...
PypiClean
/diffino-0.2.1.tar.gz/diffino-0.2.1/README.md
diffino ==== [![Build Status](https://travis-ci.com/IntuitiveWebSolutions/diffino.svg?branch=master)](https://travis-ci.com/IntuitiveWebSolutions/diffino) [![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black) Diffing tools for comparing datasets in CSV, XLSX ...
PypiClean
/Ion-0.6.4.tar.gz/Ion-0.6.4/ion/cache.py
import time, string, re class CacheEntry(object): __slots__ = ("value", "ftime", "mtime") def __init__(self, value): self.set(value) self.ftime = 0.0 def get(self): self.ftime = time.time() return self.value def set(self, value): self.value = value self...
PypiClean
/indy_plenum-1.13.1rc1-py3-none-any.whl/common/serializers/json_serializer.py
import base64 from typing import Dict from common.serializers.mapping_serializer import MappingSerializer try: import ujson as json from ujson import encode as uencode # Older versions of ujson's encode do not support `sort_keys`, if that # is the case default to using json uencode({'xx': '123'...
PypiClean
/mpds_client-0.24.tar.gz/mpds_client-0.24/mpds_client/retrieve_MPDS.py
import os import sys import time import math import warnings from urllib.parse import urlencode import httplib2 import ujson as json import pandas as pd from numpy import array_split import jmespath from .errors import APIError use_pmg, use_ase = False, False try: from pymatgen.core.structure import Structure ...
PypiClean
/workspace-puller-0.0.22.tar.gz/workspace-puller-0.0.22/workspace_puller/workspace_puller.py
import datetime import json import tempfile import certifi import yaml import io import os from git import Repo import shutil import urllib3 import requests from oauth2client.client import OOB_CALLBACK_URN from pydrive.auth import GoogleAuth from pydrive.drive import GoogleDrive from downloader import Download from ...
PypiClean
/DNN_printer-0.0.2.tar.gz/DNN_printer-0.0.2/src/DNN_printer/DNN_printer.py
import torch import torch.nn as nn from torch.autograd import Variable from collections import OrderedDict import numpy as np def output_shape(array): out = 1 for i in array: out = out * i return out def iterlen(x): return sum(1 for _ in x) def DNN_printer(model, input_size, batch_size=-1, d...
PypiClean
/facebook_page_scraper-5.0.2.tar.gz/facebook_page_scraper-5.0.2/README.md
<h1> Facebook Page Scraper </h1> [![Maintenance](https://img.shields.io/badge/Maintained-Yes-green.svg)](https://github.com/shaikhsajid1111/facebook_page_scraper/graphs/commit-activity) [![PyPI license](https://img.shields.io/pypi/l/ansicolortags.svg)](https://opensource.org/licenses/MIT) [![Python >=3.6.9](https://im...
PypiClean
/cdktf_cdktf_provider_hashicups-6.0.0-py3-none-any.whl/cdktf_cdktf_provider_hashicups/provider/__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 HashicupsProvider( _cdktf_9a9027ec.TerraformProvid...
PypiClean
/transia_xrpl_py-1.7.0a1.tar.gz/transia_xrpl_py-1.7.0a1/xrpl/core/binarycodec/binary_wrappers/binary_parser.py
from __future__ import annotations # Requires Python 3.7+ from typing import TYPE_CHECKING, Optional, Tuple, Type, cast from typing_extensions import Final from xrpl.core.binarycodec.definitions import definitions from xrpl.core.binarycodec.definitions.field_header import FieldHeader from xrpl.core.binarycodec.defi...
PypiClean
/python-tripleoclient-20.0.0.tar.gz/python-tripleoclient-20.0.0/tripleoclient/v1/overcloud_profiles.py
import logging from osc_lib.i18n import _ from tripleoclient import command from tripleoclient import exceptions from tripleoclient import utils DEPRECATION_MSG = ''' This command has been DEPRECATED and will be removed. The compute service is no longer used on the undercloud by default, hence profile matching with...
PypiClean
/jexp-0.1.2.tar.gz/jexp-0.1.2/README.rst
jexp ==== :synopsis: A silly little JS expression builder to let you use native Python to build Javascript expression strings. This package only allows the creation of simple (that is, non-assignment) Javascript expressions using an intuitive Python DSL. Logical Expressions =================== >>> from jexp impor...
PypiClean
/torch-tensornet-1.3.3.tar.gz/torch-tensornet-1.3.3/tensornet/models/optimizer/__init__.py
import torch import torch.optim as optim from typing import Tuple def sgd( model: torch.nn.Module, learning_rate: float = 0.01, momentum: int = 0, dampening: int = 0, l2_factor: float = 0.0, nesterov: bool = False, ): """SGD optimizer. Args: model (torch.nn.Module): Model Inst...
PypiClean
/esub-epipe-1.11.0.tar.gz/esub-epipe-1.11.0/src/esub/utils.py
import os import math import sys import shutil import datetime import subprocess import shlex import portalocker import multiprocessing from functools import partial import numpy as np import time from ekit import logger as logger_utils LOGGER = logger_utils.init_logger(__name__) TIMEOUT_MESSAGE = ( "Maximum numb...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/sql/v20221101preview/elastic_pool.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from ... import _utilities from . import outputs from ._enums import * from ._inputs import * __all__ = ['ElasticPoolArgs', 'ElasticPool'] @pulumi.input_type class ElasticPoolArgs: ...
PypiClean
/target-parquet-0.0.1.tar.gz/target-parquet-0.0.1/target_parquet.py
import argparse import collections import csv from datetime import datetime import io import http.client import json from jsonschema.validators import Draft4Validator import os import pandas as pd import pkg_resources import pyarrow import singer import sys import urllib import threading LOGGER = singer.get_logger() ...
PypiClean
/skytime-0.16.1-py3-none-any.whl/build/lib/build/lib/sktime/regression/compose/_ensemble.py
"""Implements a composite Time series Forest Regressor that accepts a pipeline.""" __author__ = ["mloning", "AyushmaanSeth"] __all__ = ["ComposableTimeSeriesForestRegressor"] import numbers from warnings import warn import numpy as np from joblib import Parallel, delayed from sklearn.ensemble._base import _partition...
PypiClean
/git-goggles-0.2.12.tar.gz/git-goggles-0.2.12/README.rst
####################### git-goggles Readme ####################### git-goggles is a git management utilities that allows you to manage your source code as it evolves through its development lifecycle. Overview ======== This project accomplishes two things: * Manage the code review state of your branches * Gives a ...
PypiClean
/waveshare_epaper-1.2.0.tar.gz/waveshare_epaper-1.2.0/epaper/e-Paper/RaspberryPi_JetsonNano/python/lib/waveshare_epd/epd2in9b_V3.py
import logging from . import epdconfig # Display resolution EPD_WIDTH = 128 EPD_HEIGHT = 296 logger = logging.getLogger(__name__) class EPD: def __init__(self): self.reset_pin = epdconfig.RST_PIN self.dc_pin = epdconfig.DC_PIN self.busy_pin = epdconfig.BUSY_PIN self.c...
PypiClean
/wts_nerdler-1.1.0-py3-none-any.whl/wts_nerdler/windows_task_scheduler.py
import os import subprocess import csv from datetime import datetime import calendar TASK_CODECS_HEX = { "0x00000000": "The operation completed successfully.", "0x00000001": "Incorrect function called or unknown function called.", "0x00000002": "File not found.", "0x00000010": "The environment is incor...
PypiClean
/opps-piston-0.2.4.tar.gz/opps-piston-0.2.4/piston/store.py
import oauth from models import Nonce, Token, Consumer from models import generate_random, VERIFIER_SIZE class DataStore(oauth.OAuthDataStore): """Layer between Python OAuth and Django database.""" def __init__(self, oauth_request): self.signature = oauth_request.parameters.get('oauth_signature', None...
PypiClean
/MapProxy-1.16.0.tar.gz/MapProxy-1.16.0/mapproxy/script/defrag.py
from __future__ import print_function import glob import optparse import os.path import re import sys from collections import OrderedDict from mapproxy.cache.compact import CompactCacheV1, CompactCacheV2 from mapproxy.cache.tile import Tile from mapproxy.config import local_base_config from mapproxy.config.loader im...
PypiClean
/lytekit-0.15.3.tar.gz/lytekit-0.15.3/flytekit/models/literals.py
from datetime import datetime as _datetime from typing import List, Optional import pytz as _pytz from flyteidl.core import literals_pb2 as _literals_pb2 from google.protobuf.struct_pb2 import Struct from flytekit.exceptions import user as _user_exceptions from flytekit.models import common as _common from flytekit.m...
PypiClean
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/s3control/object_lambda_access_point.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities from . import outputs from ._inputs import * __all__ = ['ObjectLambdaAccessPointArgs', 'ObjectLambdaAccessPoint'] @pulumi.input_type class ObjectLambdaAccessP...
PypiClean
/dbqq-1.5.0.tar.gz/dbqq-1.5.0/license.md
MIT License Copyright (c) 2023 Chris Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute,...
PypiClean
/uniohomeassistant-0.1.3.tar.gz/uniohomeassistant-0.1.3/homeassistant/components/bond/utils.py
import logging from typing import List, Optional from bond_api import Action, Bond _LOGGER = logging.getLogger(__name__) class BondDevice: """Helper device class to hold ID and attributes together.""" def __init__(self, device_id: str, attrs: dict, props: dict): """Create a helper device from ID an...
PypiClean
/bazaar_cli-0.1.0-py3-none-any.whl/bazaar_cli/bazaarwrapper.py
from enum import Enum from typing import Union import requests MB_API = "https://mb-api.abuse.ch/api/v1" # class syntax class QueryType(Enum): TAG = "get_taginfo" SIG = "get_siginfo" FILE_TYPE = "get_file_type" RECENT = "get_recent" class Bazaar: """MalwareBazaar wrapper class.""" def __in...
PypiClean
/Twista-0.3.4b1.tar.gz/Twista-0.3.4b1/twista/navigator.py
from flask import Flask, escape, request, Response, render_template, redirect, url_for, jsonify from py2neo import Graph from collections import Counter from datetime import datetime as dt from datetime import timedelta import json import os from dateutil import parser, relativedelta import random as rand import string...
PypiClean
/kuda_cli-0.1.0-py3-none-any.whl/kuda_cli/savings.py
from typing import Optional from pykuda2.utils import TransactionType from typer import Typer from kuda_cli.utils import get_kuda_wrapper, strip_raw, override_output, colorized_print savings_app = Typer() @savings_app.command() @colorized_print @override_output @strip_raw def create_plain_savings_account( name:...
PypiClean
/faux_data-0.0.18-py3-none-any.whl/faux_data/target.py
import abc import logging import os import time from abc import abstractmethod from dataclasses import dataclass, field from typing import Optional, Tuple import pandas as pd from .config import settings @dataclass(kw_only=True) class Target(abc.ABC): """Base class for all targets.""" target: str @ab...
PypiClean
/django-cms_wg-3.0.0.beta2.tar.gz/django-cms_wg-3.0.0.beta2/cms/plugins/picture/models.py
from cms.utils.compat.dj import python_2_unicode_compatible from django.db import models from django.utils.translation import ugettext_lazy as _ from django.core.exceptions import ValidationError from cms.models import CMSPlugin, Page from os.path import basename @python_2_unicode_compatible class Picture(CMSPlugin):...
PypiClean
/msl-io-0.1.0.tar.gz/msl-io-0.1.0/msl/io/readers/spreadsheet.py
import re import string _cell_regex = re.compile(r'^([A-Z]+)(\d*)$') class Spreadsheet(object): def __init__(self, file): """Generic class for spreadsheets. Parameters ---------- file : :class:`str` The location of the spreadsheet on a local hard drive or on a networ...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/url-parse/dist/url-parse.min.js
!function(e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).URLParse=e()}(function(){return function n(r,s,a){function i(o,e){if(!s[o]){if(...
PypiClean
/cloudforet-console-api-v2-1.11.0.2.tar.gz/cloudforet-console-api-v2-1.11.0.2/cloudforet/console_api_v2/model/cost_analysis/cost.py
from pydantic import Field from typing import Union, List from datetime import datetime from cloudforet.console_api_v2.model import BaseAPIModel class CreateCostRequest(BaseAPIModel): pass class CostRequest(BaseAPIModel): pass class GetCostRequest(BaseAPIModel): pass class CostQuery(BaseAPIModel): ...
PypiClean
/sas-esppy-7.1.16.tar.gz/sas-esppy-7.1.16/esppy/templates/template.py
from __future__ import print_function, division, absolute_import, unicode_literals import collections import os import re import requests import six import warnings from six.moves import urllib from ..base import ESPObject, attribute from ..config import get_option from ..mas import MASModule from ..windows import Tar...
PypiClean
/KaKa-0.1.1.tar.gz/KaKa-0.1.1/kaka/middlewares.py
import time from abc import ABCMeta, abstractmethod from .errors import EntryPatternError from .response import BaseResponse class MWManager(object): def __init__(self): self._priority_set = set() self._middleware_cls_set = set() self._mw_list = list() def register(self, entry_list):...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/gauges/GlossyCircularGaugeBase.js.uncompressed.js
define("dojox/gauges/GlossyCircularGaugeBase", ["dojo/_base/declare","dojo/_base/lang","dojo/_base/connect","dojox/gfx","./AnalogGauge","./AnalogCircleIndicator","./TextIndicator","./GlossyCircularGaugeNeedle"], function(declare, lang, connect, gfx, AnalogGauge, AnalogCircleIndicator, TextIndicator, GlossyCircularGauge...
PypiClean
/gas_dynamics-0.4.2-py3-none-any.whl/gas_dynamics/fanno/fanno.py
from gas_dynamics.fluids import fluid, air from numpy import log from scipy.optimize import fsolve #================================================== #stagnation enthalpy #================================================== def stagnation_enthalpy(enthalpy: float, gas=air) -> float: """Return the stagnation ent...
PypiClean
/django_dans_notifications-1.1.15-py3-none-any.whl/django_dans_notifications/migrations/0001_initial.py
import uuid import django.db.models.deletion from django.db import migrations, models import django_dans_notifications.models.email class Migration(migrations.Migration): initial = True dependencies = [] operations = [ migrations.CreateModel( name="NotificationBasic", ...
PypiClean
/omnidata_tools-0.0.23-py3-none-any.whl/omnidata_tools/torch/modules/channel_attention.py
import torch from torch import nn class ECALayer(nn.Module): """Constructs a ECA module. Args: channel: Number of channels of the input feature map k_size: Adaptive selection of kernel size """ def __init__(self, channel, k_size=3): super(ECALayer, self).__init__() self...
PypiClean
/discord-py-interactions-5.9.2.tar.gz/discord-py-interactions-5.9.2/interactions/models/internal/__init__.py
from .annotations import ( slash_attachment_option, slash_bool_option, slash_channel_option, slash_float_option, slash_int_option, slash_mentionable_option, slash_role_option, slash_str_option, slash_user_option, ) from .callback import CallbackObject from .active_voice_state import ...
PypiClean
/zope.catalog-5.0.tar.gz/zope.catalog-5.0/src/zope/catalog/catalog.py
"""Catalog """ import BTrees import zope.index.interfaces from zope.annotation.interfaces import IAttributeAnnotatable from zope.container.btree import BTreeContainer from zope.interface import implementer from zope.intid.interfaces import IIntIdAddedEvent from zope.intid.interfaces import IIntIdRemovedEvent from zope....
PypiClean
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/satel_integra/__init__.py
import collections import logging from satel_integra.satel_integra import AsyncSatel import voluptuous as vol from homeassistant.const import CONF_HOST, CONF_PORT, EVENT_HOMEASSISTANT_STOP from homeassistant.core import callback from homeassistant.helpers import config_validation as cv from homeassistant.helpers.disc...
PypiClean
/goatherd-0.1.0.tar.gz/goatherd-0.1.0/README.md
# Goat Herd [![PyPI](https://img.shields.io/pypi/v/goatherd.svg)](https://pypi.python.org/pypi/goatherd/#history) Partially-observed visual reinforcement learning domain. ## Play Yourself You can play the game yourself with an interactive window and keyboard input. The mapping from keys to actions, health level, an...
PypiClean
/discord.py_fork-2.0.0a0-py3-none-any.whl/discord/http.py
from __future__ import annotations import asyncio import json import logging import sys from typing import ( Any, ClassVar, Coroutine, Dict, Iterable, List, Optional, Sequence, TYPE_CHECKING, Tuple, Type, TypeVar, Union, ) from urllib.parse import quote as _uriquote ...
PypiClean
/django3-viewflow-2.0.2.tar.gz/django3-viewflow-2.0.2/viewflow/nodes/signal.py
from .. import Event, ThisObject, mixins from ..activation import StartActivation, FuncActivation from ..exceptions import FlowRuntimeError class StartSignal(mixins.TaskDescriptionMixin, mixins.NextNodeMixin, mixins.DetailViewMixin, mixins.UndoViewMixin, ...
PypiClean
/pigweed-0.0.14.tar.gz/pigweed-0.0.14/pw_presubmit/source_in_build.py
"""Checks that source files are listed in build files, such as BUILD.bazel.""" import logging from typing import Callable, Sequence from pw_presubmit import build, format_code, git_repo from pw_presubmit.presubmit import ( Check, FileFilter, PresubmitContext, PresubmitFailure, ) _LOG: logging.Logger ...
PypiClean
/slack_types-0.0.2-py3-none-any.whl/slack_types/web_api/admin_conversations_search_response.py
from dataclasses import dataclass from typing import Optional, List, Any, TypeVar, Callable, Type, cast T = TypeVar("T") def from_str(x: Any) -> str: assert isinstance(x, str) return x def from_none(x: Any) -> Any: assert x is None return x def from_union(fs, x): for f in fs: try: ...
PypiClean
/django-chartbuilder-0.3.tar.gz/django-chartbuilder-0.3/django_chartbuilder/static/django_chartbuilder/Chartbuilder/bower_components/html5-boilerplate/LICENSE.md
Copyright (c) HTML5 Boilerplate Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, subli...
PypiClean
/certora_cli_alpha_roy_CERT_1891_allocId_e-20230516.10.30.641439-py3-none-any.whl/certora_cli/EVMVerifier/certoraContextAttribute.py
import argparse import ast import logging import re import sys from functools import lru_cache from dataclasses import dataclass, field from enum import unique, auto from pathlib import Path from typing import Optional, Dict, Any, Callable, List from EVMVerifier import certoraValidateFuncs as Vf from Shared import cer...
PypiClean
/airtable-async-ti-0.0.1b11.tar.gz/airtable-async-ti-0.0.1b11/README.md
# Asynchronous Airtable Python Wrapper [![Python 3.7](https://img.shields.io/badge/python-3.7-blue.svg)](https://www.python.org/downloads/release/python-370) [![Python 3.8](https://img.shields.io/badge/python-3.8-blue.svg)](https://www.python.org/downloads/release/python-380) [![PyPI version](https://badge.fury.io/py/...
PypiClean
/deepl-scraper-pp-0.1.2.tar.gz/deepl-scraper-pp-0.1.2/deepl_scraper_pp/deepl_tr.py
from typing import Union import asyncio from urllib.parse import quote from pyquery import PyQuery as pq import pyppeteer import logzero from logzero import logger from linetimer import CodeTimer # from get_ppbrowser.get_ppbrowser import get_ppbrowser URL = r"https://www.deepl.com/translator" _ = """ with CodeTim...
PypiClean
/apache_superset_db-1.5.1.2-py3-none-any.whl/superset/importexport/api.py
import json from datetime import datetime from io import BytesIO from zipfile import is_zipfile, ZipFile from flask import request, Response, send_file from flask_appbuilder.api import BaseApi, expose, protect from superset.commands.export.assets import ExportAssetsCommand from superset.commands.importers.exceptions ...
PypiClean
/ahrli_huobi_client-1.0.8-py3-none-any.whl/huobi/impl/websocketconnection.py
import threading import websocket import gzip import ssl import logging from urllib import parse import urllib.parse from huobi.base.printtime import PrintDate from huobi.constant.system import ApiVersion from huobi.impl.utils.apisignaturev2 import create_signature_v2 from huobi.impl.utils.timeservice import get_curre...
PypiClean
/nextbox_ui_plugin-0.13.0.tar.gz/nextbox_ui_plugin-0.13.0/nextbox_ui_plugin/forms.py
from django import forms from ipam.models import VLAN from .models import SavedTopology from dcim.models import Device, Site, Region from django.conf import settings from packaging import version NETBOX_CURRENT_VERSION = version.parse(settings.VERSION) if NETBOX_CURRENT_VERSION >= version.parse("2.11.0"): from dc...
PypiClean
/superset_extender-1.0.0-py3-none-any.whl/supextend/static/vendor/bootstrap/js/bootstrap.bundle.min.js
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap={},t.jQuery)}(this,(function(t,e){"use strict";function n(t){return t&&"object"==typeof ...
PypiClean
/PlexTraktSync-0.27.2-py3-none-any.whl/plextraktsync/plex/PlexRatings.py
from __future__ import annotations from typing import TYPE_CHECKING from plextraktsync.decorators.flatten import flatten_dict from plextraktsync.decorators.memoize import memoize if TYPE_CHECKING: from plextraktsync.plex.PlexApi import PlexApi from plextraktsync.plex.PlexLibraryItem import PlexLibraryItem ...
PypiClean
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/corruption/archetypes/PhysicsDebrisPropertiesOrientationEnum.py
import dataclasses import struct import typing from retro_data_structures.game_check import Game from retro_data_structures.properties.base_property import BaseProperty import retro_data_structures.enums.corruption as enums @dataclasses.dataclass() class PhysicsDebrisPropertiesOrientationEnum(BaseProperty): orie...
PypiClean
/discordpack-2.0.0.tar.gz/discordpack-2.0.0/discord/http.py
import asyncio import json import logging import sys from urllib.parse import quote as _uriquote import weakref import aiohttp from .errors import HTTPException, Forbidden, NotFound, LoginFailure, DiscordServerError, GatewayNotFound from .gateway import DiscordClientWebSocketResponse from . import __version__, utils ...
PypiClean
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/bower/lib/node_modules/mout/doc/time.md
# time # Utilities for time manipulation. ## convert(value, sourceUnit, [destinationUnit]):Number Converts time between units. Available units: `millisecond`, `second`, `minute`, `hour`, `day`, `week`. Abbreviations: `ms`, `s`, `m`, `h`, `d`, `w`. We do **not** support year and month as a time unit since their va...
PypiClean
/csle_system_identification-0.3.8.tar.gz/csle_system_identification-0.3.8/src/csle_system_identification/emulator.py
from typing import List, Tuple import time import os import sys import numpy as np import csle_common.constants.constants as constants from csle_common.dao.emulation_config.emulation_env_state import EmulationEnvState from csle_common.dao.emulation_config.emulation_env_config import EmulationEnvConfig from csle_common....
PypiClean
/HarmoniaCosmo-0.1.2-py3-none-any.whl/harmonia/reader/likelihoods.py
import logging import warnings # pylint: disable=no-name-in-module import numpy as np from scipy.special import loggamma from harmonia.utils import ( PositiveDefinitenessWarning, is_positive_definite, mat_logdet, ) # Probability distributions # -----------------------------------------------------------...
PypiClean
/django-dojo-0.0.1.tar.gz/django-dojo-0.0.1/dojo/static/dojo/dojox/geo/openlayers/WidgetFeature.js
define([ "dojo/_base/declare", "dojo/dom-style", "dojo/_base/lang", "dijit/registry", "./Feature" ], function(declare, style, lang, registry, Feature){ /*===== dojox.geo.openlayers.__WidgetFeatureArgs = { // summary: // The keyword arguments that can be passed in a WidgetFeature constructor. // You must ...
PypiClean
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/moment/dist/locale/be.js
import moment from '../moment'; function plural(word, num) { var forms = word.split('_'); return num % 10 === 1 && num % 100 !== 11 ? forms[0] : num % 10 >= 2 && num % 10 <= 4 && (num % 100 < 10 || num % 100 >= 20) ? forms[1] : forms[2]; } function relativeTimeWithPlural(number...
PypiClean
/LaMark-0.2.1.tar.gz/LaMark-0.2.1/lamark/latexgen.py
import subprocess import tempfile import os import shutil import re import logging import sys import lamarkargumenterror import lmast import textwrap MATH_NAME = "math" DISPLAYMATH_NAME = "displaymath" PREAMBLE_NAME = "pre" DOC_NAME = "latex" class LatexGen(object): """Given a peice of Latex, generate an image, a...
PypiClean
/dschmidt-cdktf-provider-google-0.0.1.tar.gz/dschmidt-cdktf-provider-google-0.0.1/src/dschmidt_cdktf_provider_google/sql_database/__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 import constructs class SqlDatabase( cdktf.TerraformResource, metaclass=jsii.JSIIMeta, jsii_type="@dschmidt/p...
PypiClean
/linkuxit-portafolio-0.14.tar.gz/linkuxit-portafolio-0.14/linkuxit/portafolio/models.py
from django.conf import settings from django.db import models from django.utils.html import strip_tags from django.utils.translation import ugettext_lazy as _ from cms.models.pluginmodel import CMSPlugin from djangocms_text_ckeditor.fields import HTMLField from filer.fields.image import FilerImageField SOCIAL_NETWO...
PypiClean
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/ajv/lib/dotjs/custom.js
'use strict'; module.exports = function generate_custom(it, $keyword) { var out = ' '; var $lvl = it.level; var $dataLvl = it.dataLevel; var $schema = it.schema[$keyword]; var $schemaPath = it.schemaPath + it.util.getProperty($keyword); var $errSchemaPath = it.errSchemaPath + '/' + $keyword; var $breakOnE...
PypiClean
/google-cloud-scheduler-2.11.1.tar.gz/google-cloud-scheduler-2.11.1/google/cloud/scheduler_v1beta1/services/cloud_scheduler/transports/rest.py
import dataclasses import json # type: ignore import re from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple, Union import warnings from google.api_core import gapic_v1, path_template, rest_helpers, rest_streaming from google.api_core import exceptions as core_exceptions from google.api_core impor...
PypiClean
/Rare-1.10.3.tar.gz/Rare-1.10.3/rare/shared/rare_core.py
import configparser import os import time from argparse import Namespace from itertools import chain from logging import getLogger from typing import Dict, Iterator, Callable, Optional, List, Union, Iterable, Tuple from PyQt5.QtCore import QObject, pyqtSignal, QSettings, pyqtSlot, QThreadPool, QRunnable, QTimer from l...
PypiClean
/ckan-2.10.1.tar.gz/ckan-2.10.1/ckanext/reclineview/theme/public/vendor/mustache/0.5.0-dev/mustache.min.js
var Mustache=(typeof module!=="undefined"&&module.exports)||{};(function(exports){exports.name="mustache.js";exports.version="0.5.0-dev";exports.tags=["{{","}}"];exports.parse=parse;exports.compile=compile;exports.render=render;exports.clearCache=clearCache;exports.to_html=function(template,view,partials,send){var resu...
PypiClean
/rsl-0.2.1.tar.gz/rsl-0.2.1/README.txt
RSL - Remote Service Library ============================ This module provides a collection of interfaces and a "plugin" mechanism to access remote services with different protocols and technology in a unified way. The library has been developed as part of a "command line shell service integration". It has been se...
PypiClean
/alastria-identity-0.4.0.tar.gz/alastria-identity-0.4.0/alastria_identity/types/__init__.py
import time from typing import List from dataclasses import dataclass, field from web3 import Web3 from .alastria_session import AlastriaSession from .alastria_token import AlastriaToken from .alastria_identity_creation import AlastriaIdentityCreation from .transaction import Transaction from .entity import Entity fr...
PypiClean
/columbia-discord-bot-0.2.1.tar.gz/columbia-discord-bot-0.2.1/docs/_build/html/_static/pygments/lexers/_scilab_builtins.py
commands_kw = ( 'abort', 'apropos', 'break', 'case', 'catch', 'continue', 'do', 'else', 'elseif', 'end', 'endfunction', 'for', 'function', 'help', 'if', 'pause', 'quit', 'select', 'then', 'try', 'while', ) functions_kw = ( '!!_inv...
PypiClean
/GPViz-0.0.4.tar.gz/GPViz-0.0.4/gpviz/gp.py
from typing import List import gpjax.core as gpx import jax.numpy as jnp import matplotlib.pyplot as plt from gpjax.gps import ( Posterior, ConjugatePosterior, SpectralPosterior, NonConjugatePosterior, ) from multipledispatch import dispatch from .styles import get_colours from .utils import tidy_legen...
PypiClean
/baserow_open_api_client-0.0.6.tar.gz/baserow_open_api_client-0.0.6/baserow_open_api_client/models/job.py
from typing import Any, Dict, List, Type, TypeVar, Union import attr from ..types import UNSET, Unset T = TypeVar("T", bound="Job") @attr.s(auto_attribs=True) class Job: """ Attributes: id (int): type (str): The type of the job. progress_percentage (int): A percentage indicating how...
PypiClean
/safegate_pro-2021.7.6-py3-none-any.whl/homeassistant/components/dynalite/convert_config.py
from __future__ import annotations from typing import Any from dynalite_devices_lib import const as dyn_const from homeassistant.const import ( CONF_DEFAULT, CONF_HOST, CONF_NAME, CONF_PORT, CONF_ROOM, CONF_TYPE, ) from .const import ( ACTIVE_INIT, ACTIVE_OFF, ACTIVE_ON, CONF...
PypiClean
/matplotlib_arm64-3.3.4-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/matplotlib/backends/backend_ps.py
import datetime from enum import Enum import glob from io import StringIO, TextIOWrapper import logging import math import os import pathlib import re import shutil from tempfile import TemporaryDirectory import time import numpy as np import matplotlib as mpl from matplotlib import cbook, _path from matplotlib impor...
PypiClean
/dsin100daysv32-6.0.1.tar.gz/dsin100daysv32-6.0.1/notebook/static/components/MathJax/jax/output/HTML-CSS/fonts/STIX-Web/Marks/Regular/Main.js
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.STIXMathJax_Marks={directory:"Marks/Regular",family:"STIXMathJax_Marks",testString:"\u00A0\u02B0\u02B1\u02B2\u02B3\u02B4\u02B5\u02B6\u02B7\u02B8\u02B9\u02BA\u02BB\u02BC\u02BD",32:[0,0,250,0,0],160:[0,0,250,0,0],688:[848,-336,378,7,365],689:[848,-336,378,7,365],690:[852,-169,...
PypiClean
/salt-3006.2.tar.gz/salt-3006.2/CODE_OF_CONDUCT.md
# Contributor Covenant Code of Conduct ## Our Pledge We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of...
PypiClean
/fhirclientr4-4.0.0.tar.gz/fhirclientr4-4.0.0/fhirclient/models/library.py
from . import domainresource class Library(domainresource.DomainResource): """ Represents a library of quality improvement components. The Library resource is a general-purpose container for knowledge asset definitions. It can be used to describe and expose existing knowledge assets such as logi...
PypiClean
/azure-mgmt-resource-23.1.0b1.zip/azure-mgmt-resource-23.1.0b1/azure/mgmt/resource/subscriptions/v2019_06_01/aio/_configuration.py
from typing import Any, TYPE_CHECKING from azure.core.configuration import Configuration from azure.core.pipeline import policies from azure.mgmt.core.policies import ARMHttpLoggingPolicy, AsyncARMChallengeAuthenticationPolicy from .._version import VERSION if TYPE_CHECKING: # pylint: disable=unused-import,ungr...
PypiClean
/python_search-0.26.0.tar.gz/python_search-0.26.0/python_search/container.py
import os from typing import Optional from python_search.config import MLFlowConfig def build(): result = os.system("docker build . -t ps:latest ") if result == 0: print("Build successful") else: raise Exception("Build failed") def build_and_run(): build() run() def run( c...
PypiClean
/fusionsc-2.0.0a2.tar.gz/fusionsc-2.0.0a2/vendor/capnproto/security-advisories/2015-03-02-0-c++-integer-overflow.md
Problem ======= Integer overflow in pointer validation. Discovered by ============= Ben Laurie &lt;ben@links.org> using [American Fuzzy Lop](http://lcamtuf.coredump.cx/afl/) Announced ========= 2015-03-02 CVE === CVE-2015-2310 Impact ====== - Remotely segfault a peer by sending it a malicious message. - Possib...
PypiClean
/dmp_dash_components-1.3.2-py3-none-any.whl/dmp_dash_components/AntdEmpty.py
from dash.development.base_component import Component, _explicitize_args class AntdEmpty(Component): """An AntdEmpty component. Keyword arguments: - children (a list of or a singular dash component, string or number; optional) - id (string; optional) - className (string; optional) - description (a list of ...
PypiClean
/kubeflow_kale-0.7.0-py3-none-any.whl/kale/pipeline.py
import os import copy import logging import networkx as nx from typing import Iterable, Dict from kubernetes.config import ConfigException from kubernetes.client.rest import ApiException from kale import Step, PipelineParam from kale.config import Config, Field, validators from kale.common import graphutils, utils, ...
PypiClean
/applause-tool-0.5.0.tar.gz/applause-tool-0.5.0/applause/auth.py
from applause import __program_name__, __version__ import logging try: from urlparse import urljoin except ImportError: from urllib.parse import urljoin import requests from applause.errors import InvalidLogin from . import settings class ApplauseAuth(object): """ Handles Applause's 3 legged OAuth...
PypiClean
/NlpToolkit-MorphologicalDisambiguation-1.0.16.tar.gz/NlpToolkit-MorphologicalDisambiguation-1.0.16/MorphologicalDisambiguation/HmmDisambiguation.py
import math from Dictionary.Word import Word from MorphologicalAnalysis.FsmParse import FsmParse from NGram.LaplaceSmoothing import LaplaceSmoothing from NGram.NGram import NGram from DisambiguationCorpus.DisambiguationCorpus import DisambiguationCorpus from MorphologicalDisambiguation.NaiveDisambiguation import Naiv...
PypiClean
/cirq_google-1.2.0-py3-none-any.whl/cirq_google/workflow/qubit_placement.py
import abc import dataclasses from functools import lru_cache from typing import Dict, Any, Tuple, List, Callable, TYPE_CHECKING, Hashable import numpy as np import cirq from cirq import _compat from cirq.devices.named_topologies import get_placements, NamedTopology from cirq.protocols import obj_to_dict_helper from ...
PypiClean
/sysnet-persons-1.0.2.tar.gz/sysnet-persons-1.0.2/persons/configuration.py
from __future__ import absolute_import import copy import logging import multiprocessing import sys import urllib3 import six from six.moves import http_client as httplib class TypeWithDefault(type): def __init__(cls, name, bases, dct): super(TypeWithDefault, cls).__init__(name, bases, dct) cls....
PypiClean
/dashboard_clients-3.0.3-py3-none-any.whl/dashboard_clients/dashboard_service_client.py
from typing import Any, Union from clients_core.service_clients import E360ServiceClient from .models import TabbedDashboardModel class DashboardsClient(E360ServiceClient): """ Subclasses dataclass `clients_core.service_clients.E360ServiceClient`. Args: client (clients_core.rest_client.RestClient...
PypiClean
/torch_tb_profiler-0.4.1-py3-none-any.whl/torch_tb_profiler/io/base.py
import os from abc import ABC, abstractmethod from collections import namedtuple # Data returned from the Stat call. StatData = namedtuple('StatData', ['length']) class BaseFileSystem(ABC): def support_append(self): return False def append(self, filename, file_content, binary_mode=False): pa...
PypiClean
/smartninja-redis-0.3.tar.gz/smartninja-redis-0.3/README.md
# SmartNinja Redis A wrapper that simulates Redis on localhost (using TinyDB) and uses a real Redis db in production. **Important:** This package is meant to be used at SmartNinja courses for learning purposes. It is not advised to use this package for serious projects. Use the default `redis` package instead. You on...
PypiClean
/python-bitcoinaddress-0.2.2.tar.gz/python-bitcoinaddress-0.2.2/distribute_setup.py
import os import sys import time import fnmatch import tempfile import tarfile import optparse from distutils import log try: from site import USER_SITE except ImportError: USER_SITE = None try: import subprocess def _python_cmd(*args): args = (sys.executable,) + args return subproce...
PypiClean
/streamlit-charticulator-0.0.7.tar.gz/streamlit-charticulator-0.0.7/src/charticulator/frontend/charticulator/dist/scripts/app/stores/defaults.js
"use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. Object.defineProperty(exports, "__esModule", { value: true }); exports.defaultVersionOfTemplate = exports.defaultFontSizeLegend = exports.defaultFontSize = exports.defaultFont = exports.createDefaultChart = exp...
PypiClean
/flytekitplugins_awssagemaker-1.9.1-py3-none-any.whl/flytekitplugins/awssagemaker/models/hpo_job.py
from flyteidl.plugins.sagemaker import hyperparameter_tuning_job_pb2 as _pb2_hpo_job from flytekit.models import common as _common from . import training_job as _training_job class HyperparameterTuningObjectiveType(object): MINIMIZE = _pb2_hpo_job.HyperparameterTuningObjectiveType.MINIMIZE MAXIMIZE = _pb2_h...
PypiClean
/yellowbrickhotfix-1.2.17-py3-none-any.whl/yellowbrick/classifier/classification_report.py
########################################################################## ## Imports ########################################################################## import numpy as np import matplotlib.pyplot as plt from sklearn.metrics import precision_recall_fscore_support from yellowbrick.style import find_text_color...
PypiClean
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/globalthis/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). ## [v1.0.3](https://github.com/es-shims/globalThis/compare/v1.0.2......
PypiClean
/waifu_py-1.0.3-py3-none-any.whl/waifu/client.py
import logging from typing import Optional, Union, Dict, List import requests from waifu.exceptions import APIException, InvalidCategory from waifu.utils import BASE_URL, ImageCategories, ImageTypes log = logging.getLogger(__name__) class WaifuClient: """Wrapper client for the waifu.pics API. This class i...
PypiClean
/odoo14_addon_brand-14.0.1.0.2-py3-none-any.whl/odoo/addons/brand/models/res_brand_mixin.py
from lxml import etree from odoo import _, api, fields, models from odoo.exceptions import ValidationError from odoo.addons.base.models import ir_ui_view from .res_company import BRAND_USE_LEVEL_NO_USE_LEVEL, BRAND_USE_LEVEL_REQUIRED_LEVEL class ResBrandMixin(models.AbstractModel): _name = "res.brand.mixin" ...
PypiClean