id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/elasticache/delete-snapshot.rst
**To delete a snapshot** The following ``delete-snapshot`` example deleted a snapshot using the Redis engine. :: aws elasticache delete-snapshot \ --snapshot-name mysnapshot Output:: { "Snapshot": { "SnapshotName": "my-cluster-snapshot", "ReplicationGroupId": "myclust...
PypiClean
/cuckoo_hasura-0.1.3-py3-none-any.whl/cuckoo/delete.py
from __future__ import annotations from logging import Logger from typing import ( Any, Generator, Generic, Optional, Type, ) from uuid import UUID from httpx import AsyncClient, Client from cuckoo.root_node import BinaryTreeNode, RootNode from cuckoo.constants import WHERE, CuckooConfig from cuck...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_firewall_proxyaddrgrp.py
from __future__ import absolute_import, division, print_function # Copyright 2019-2023 Fortinet, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at ...
PypiClean
/thefiarlib-0.0.8b0.tar.gz/thefiarlib-0.0.8b0/tflibrary/tf_oss.py
import os import random from pprint import pprint import oss2 import qiniu import requests from urllib.parse import urlparse import json class TfOss: def __init__(self, config): self.config = config self.bucket_name = config['bucket_name'] self.bucket_ali = None self.bucket_qiniu ...
PypiClean
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/writers/html.py
import copy import os import posixpath import re import warnings from typing import Any, Iterable, Tuple from typing import cast from docutils import nodes from docutils.nodes import Element, Node, Text from docutils.writers.html4css1 import Writer, HTMLTranslator as BaseTranslator from sphinx import addnodes from sp...
PypiClean
/honeybee-energy-1.101.15.tar.gz/honeybee-energy-1.101.15/honeybee_energy/material/dictutil.py
"""Utilities to convert material dictionaries to Python objects.""" from .opaque import EnergyMaterial, EnergyMaterialNoMass, EnergyMaterialVegetation from .glazing import EnergyWindowMaterialGlazing, EnergyWindowMaterialSimpleGlazSys from .gas import EnergyWindowMaterialGas, EnergyWindowMaterialGasMixture, \ Energ...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/todo/lists/item/extensions/item/extension_item_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/bpy36-1.0.0-py3-none-any.whl/bpy2/2.79/scripts/addons/mesh_looptools.py
bl_info = { "name": "LoopTools", "author": "Bart Crouch", "version": (4, 6, 7), "blender": (2, 72, 2), "location": "View3D > Toolbar and View3D > Specials (W-key)", "warning": "", "description": "Mesh modelling toolkit. Several tools to aid modelling", "wiki_url": "https://wiki.blender....
PypiClean
/lingvo_jax-0.11.0-cp37-cp37m-manylinux_2_12_x86_64.manylinux2010_x86_64.whl/lingvo/core/self_attention_layer.py
from lingvo.core import base_layer from lingvo.core import batch_major_attention from lingvo.core import py_utils MultiHeadedSelfAttention = batch_major_attention.MultiHeadedAttention class Builder(batch_major_attention.Builder): """Builder for self-attention layers.""" def SelfAttention(self, name): p = se...
PypiClean
/bamboo-pipeline-3.27.0.tar.gz/bamboo-pipeline-3.27.0/pipeline/contrib/periodic_task/migrations/0003_auto_20191213_0819.py
from __future__ import unicode_literals import timezone_field.fields from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ ("periodic_task", "0002_auto_20190103_1918"), ] operations = [ migrations.AddField( model_name="periodictask"...
PypiClean
/simply_nwb-0.3.0.tar.gz/simply_nwb-0.3.0/simply_nwb/transforms/tif.py
import os from PIL import Image import numpy as np import glob class ImageLoadError(Exception): pass def tif_read_image(filename: str, show_error: bool = True) -> np.ndarray: """ Read TIF Image into a numpy array :param filename: TIF file to read :param show_error: Print out errors or not, defa...
PypiClean
/pymavlink-ws-2.4.5.tar.gz/pymavlink-ws-2.4.5/tools/mavfft.py
from __future__ import print_function import numpy import pylab from argparse import ArgumentParser parser = ArgumentParser(description=__doc__) parser.add_argument("--condition", default=None, help="select packets by condition") parser.add_argument("--sample-length", type=int, default=0, help="number of samples to r...
PypiClean
/kipartman-0.6.2.tar.gz/kipartman-0.6.2/kipartbase/api/migrations/0025_auto_20170712_0908.py
from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import mptt.fields class Migration(migrations.Migration): dependencies = [ ('api', '0024_partoffer_updated'), ] operations = [ migrations.CreateModel( name='Part...
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/4772ad66a255032601911f8be5b80819.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
/cdktf-cdktf-provider-google_beta-9.0.1.tar.gz/cdktf-cdktf-provider-google_beta-9.0.1/src/cdktf_cdktf_provider_google_beta/data_google_folder/__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 DataGoogleFolder( _cdktf_9a9027ec.TerraformDataSou...
PypiClean
/intel_tensorflow-2.13.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/tensorflow/python/debug/lib/debug_events_writer.py
"""Writer class for `DebugEvent` protos in tfdbg v2.""" import time from tensorflow.core.protobuf import debug_event_pb2 from tensorflow.python.client import _pywrap_debug_events_writer # Default size of each circular buffer (unit: number of DebugEvent protos). DEFAULT_CIRCULAR_BUFFER_SIZE = 1000 class DebugEvents...
PypiClean
/akhdefo_functions-2.2.53-py3-none-any.whl/akhdefo_functions/Mosaic_Crop.py
def Mosaic(Path_to_WorkingDir=r"", output_MosaicDir=r"" , img_mode=1, file_ex=".tif"): """ This program mosiacs raster images in geotif format as well as grab dates of the satellite image taken for further processing. The current version only supports PlanetLabs ortho SurfaceReflectance products. Pa...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/sites/item/term_stores/item/groups/item/sets/item/terms/item/term_item_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/joulescope_ui-1.0.29.tar.gz/joulescope_ui-1.0.29/joulescope_ui/styles/parameter_file.py
import re """Load and save parameter (font and style_defines) files.""" _re_update_pattern = re.compile(r'^(\s*)([^\s=]+)(\s*=\s*)(\S[^#]*)(#?.*$)') _re_value_strip = re.compile(r'^(.*\S)(\s*)') ParameterType = dict[str, str] def load_file(f) -> ParameterType: """Load parameter entries from a file.""" if ...
PypiClean
/bmi3d-0.9.0-py3-none-any.whl/db/compile_backup_list.py
import os from . import dbfunctions as dbfn from .tracker import models import datetime #Get backup list: backed_up_tes = list(models.TaskEntry.objects.filter(backup=True, date__gte=datetime.datetime(2015, 11, 0o1))) #Get list of Task Entries already added to list: try: te_added = open(os.path.expandvars('$HOME/...
PypiClean
/terra-notebook-utils-0.13.0.tar.gz/terra-notebook-utils-0.13.0/terra_notebook_utils/cli/commands/table.py
import json import argparse from uuid import uuid4 from terra_notebook_utils import table as tnu_table from terra_notebook_utils.cli import dispatch, CLIConfig table_cli = dispatch.group("table", help=tnu_table.__doc__, arguments={ "--workspace": dict( type=str, default=None, help="worksp...
PypiClean
/walnats-1.2.6.tar.gz/walnats-1.2.6/docs/api.md
# API Are you looking for API documentation for a specific class or module? If can find most of the answers in docstrings without leaving the IDE. But in case you need a web reference, here is an index of pages covering specific parts of the API. ## Public classes + {py:class}`walnats.Actor` + {py:class}`walnats.Act...
PypiClean
/ranger-fm-1.9.3.tar.gz/ranger-fm-1.9.3/examples/plugin_pmount_dynamic.py
from __future__ import (absolute_import, division, print_function) import subprocess import ranger.api MOUNT_KEY = '<alt>m' UMOUNT_KEY = '<alt>M' LIST_MOUNTS_KEY = '<alt>n' HOOK_INIT_OLD = ranger.api.hook_init def hook_init(fm): fm.execute_console("map {key} shell -p lsblk".format(key=LIST_MOUNTS_KEY)) di...
PypiClean
/pydda-1.4.0.tar.gz/pydda-1.4.0/ROADMAP.md
# PyDDA Roadmap n this document we show the details of the PyDDA roadmap. The roadmap shows the next steps for PyDDA and what help is needed for contributions so that we can acheive our goal of providing a quality Direct Data Assmilation framework for the meterorological community to use. Right now, PyDDA currently su...
PypiClean
/cumm_cu117-0.4.11-cp310-cp310-win_amd64.whl/cumm/gemm/arch/ldmatrix.py
from typing import List, Tuple import numpy as np import pccm from cumm import cudasim, dtypes from cumm.core_cc.csrc.arrayref import ArrayPtr from cumm.gemm import constants, core class LdMatrix(pccm.ParameterizedClass): MaxNum = 4 LineByteSize = 8 * 2 NumLinePerMatrix = 8 def __init__(self, is_r...
PypiClean
/django-ug-4.2.41.tar.gz/django-ug-4.2.41/django/core/cache/backends/db.py
"Database cache backend." import base64 import pickle from datetime import datetime, timezone from django.conf import settings from django.core.cache.backends.base import DEFAULT_TIMEOUT, BaseCache from django.db import DatabaseError, connections, models, router, transaction from django.utils.timezone import now as tz...
PypiClean
/goblet-gcp-0.12.0.tar.gz/goblet-gcp-0.12.0/goblet/backends/cloudrun.py
import os import re import base64 from urllib.parse import quote_plus import google_auth_httplib2 from goblet.backends.backend import Backend from goblet.client import VersionedClients from goblet_gcp_client.client import ( get_default_project, get_default_location, Client, get_credentials, ) from gob...
PypiClean
/xsdata-ech-0.1.0.tar.gz/xsdata-ech-0.1.0/src/xsdata_ech/e_ch_0157_5_0.py
from dataclasses import dataclass, field from typing import List, Optional from xsdata_ech.e_ch_0058_5_0 import HeaderType as HeaderType from xsdata_ech.e_ch_0155_5_0 import ( CandidateType as CandidateType, ContestType as ContestType, DomainOfInfluenceType as DomainOfInfluenceType, ElectionGroupDescrip...
PypiClean
/gears-less-0.3.3.tar.gz/gears-less-0.3.3/gears_less/node_modules/less/node_modules/request/node_modules/hawk/test/utils.js
var Lab = require('lab'); var Hawk = require('../lib'); var Package = require('../package.json'); // Declare internals var internals = {}; // Test shortcuts var expect = Lab.expect; var before = Lab.before; var after = Lab.after; var describe = Lab.experiment; var it = Lab.test; describe('Hawk', function () { ...
PypiClean
/matrix_nio-0.21.2-py3-none-any.whl/nio/events/to_device.py
# Copyright © 2018-2019 Damir Jelić <poljar@termina.org.uk> # # Permission to use, copy, modify, and/or distribute this software for # any purpose with or without fee is hereby granted, provided that the # above copyright notice and this permission notice appear in all copies. # # THE SOFTWARE IS PROVIDED "AS IS" AND ...
PypiClean
/ansible-role-collect-logs-1.5.0.tar.gz/ansible-role-collect-logs-1.5.0/plugins/modules/sova.py
from __future__ import absolute_import, division, print_function __metaclass__ = type ANSIBLE_METADATA = { "metadata_version": "0.1", "status": ["preview"], "supported_by": "community", } DOCUMENTATION = """ module: sova author: Sagi Shnaidman (@sshnaidm) version_added: '2.7.0' short_description: Parse...
PypiClean
/pyturbo_aero-1.0.5-py3-none-any.whl/pyturbo/helper/line2D.py
from .ray import * import math import numpy as np from .ray import ray2D from .bezier import bezier class line2D(): def __init__(self,pt1,pt2): x = np.array([pt1[0], pt2[0]]) y = np.array([pt1[1], pt2[1]]) self.x = x self.y = y self.p = [x[0], y[0]]; self.q=[x[1], y[1]]...
PypiClean
/compmake-z6-6.1.5.tar.gz/compmake-z6-6.1.5/src/compmake/plugins/list_jobs_imp.py
import os from time import time from typing import Dict, List, Sequence, Tuple from compmake.constants import CompmakeConstants from compmake.jobs import parse_job_list from compmake.jobs.storage import ( job_args_sizeof, job_cache_exists, job_cache_sizeof, job_userobject_exists, job_userobject_siz...
PypiClean
/django-codenerix-4.0.24.tar.gz/django-codenerix-4.0.24/codenerix/static/codenerix/lib/angular/i18n/angular-locale_ca-es.js
'use strict'; angular.module("ngLocale", [], ["$provide", function($provide) { var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"}; function getDecimals(n) { n = n + ''; var i = n.indexOf('.'); return (i == -1) ? 0 : n.length - i - 1; } function getVF(n, opt_pre...
PypiClean
/sonorus-0.1.1-py3-none-any.whl/sonorus-0.1.1.dist-info/LICENSE.md
MIT License Copyright (c) sonorus contributors. 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, ...
PypiClean
/expel.lib-0.2.zip/expel.lib-0.2/expel/lib/looper.py
import os import socket import logging import glob from random import randint from optparse import OptionParser, OptionGroup from twisted.internet.protocol import DatagramProtocol from expel.lib.reactor.console import consoleReactor from expel.message.xpl import xPLMessage from expel.lib.event import xPLEvent from e...
PypiClean
/ebs-linuxnode-gui-kivy-mediaplayer-3.0.3.tar.gz/ebs-linuxnode-gui-kivy-mediaplayer-3.0.3/ebs/linuxnode/mediaplayer/manager.py
import os import time from twisted import logger from twisted.internet.defer import Deferred from .base import MediaPlayerBase MAIN = 1 BACKGROUND = 2 class MediaPlayerBusy(Exception): def __init__(self, mpid, now_playing, collision_count): self.mpid = mpid self.now_playing = now_playing ...
PypiClean
/radical.pilot-1.36.0.tar.gz/radical.pilot-1.36.0/docs/source/release_notes.md
# Release Notes For a list of open issues and known problems, see: [https://github.com/radical-cybertools/radical.pilot/issues/](https://github.com/radical-cybertools/radical.pilot/issues/) ## Current This is the latest release - if uncertain, use this release. ----------------------------------------------------...
PypiClean
/Products.Silva-3.0.4.tar.gz/Products.Silva-3.0.4/Products/Silva/AutoTOC/views.py
from five import grok from zope.component import getUtility from zope import schema from zope.schema.interfaces import IContextSourceBinder from zope.schema.vocabulary import SimpleTerm, SimpleVocabulary from Products.SilvaMetadata.interfaces import IMetadataService from silva.core.interfaces import IAutoTOC from s...
PypiClean
/apk_parse-1.0.0.tar.gz/apk_parse-1.0.0/main/zipfile.py
import struct, os, time, sys, shutil import binascii, cStringIO, stat import io import re try: import zlib # We may need its compression method crc32 = zlib.crc32 except ImportError: zlib = None crc32 = binascii.crc32 __all__ = ["BadZipfile", "error", "ZIP_STORED", "ZIP_DEFLATED", "is_zipfile", ...
PypiClean
/test_meraki-1.0-py3-none-any.whl/test_meraki/controllers/switch_ac_ls_controller.py
from test_meraki.api_helper import APIHelper from test_meraki.configuration import Configuration from test_meraki.controllers.base_controller import BaseController from test_meraki.http.auth.custom_header_auth import CustomHeaderAuth class SwitchACLsController(BaseController): """A Controller to access Endpoints ...
PypiClean
/py-droplets-0.18.1.tar.gz/py-droplets-0.18.1/docs/source/sphinx_simplify_typehints.py
import collections import re # simple (literal) replacement rules REPLACEMENTS = collections.OrderedDict( [ # Remove some unnecessary information in favor of a more compact style ("Dict[KT, VT]", "dict"), ("Dict[str, Any]", "dict"), ("Optional[str]", "str"), ("Optional[float...
PypiClean
/moosir_feature-1.4.35.tar.gz/moosir_feature-1.4.35/src/moosir_feature/news_feature/news_manager.py
import pandas as pd import numpy as np import investpy from .data_access import * from .feature_extractor_news import * months = np.arange(1, 13) # years = [2015, 2016, 2017, 2018, 2019, 2020, 2021] IMPORTANCE = "high" # download it for a month, year, day # download if it is not there or overwrite existing # flush s...
PypiClean
/DynamiKontrol-0.5.0.tar.gz/DynamiKontrol-0.5.0/dynamikontrol/Timer.py
import time from datetime import datetime import threading class Timer(object): """General timer class. .. highlight:: python .. code-block:: python from dynamikontrol import Module, Timer import time t1 = Timer() t2 = Timer() module = Module() t1.callba...
PypiClean
/hydratk-lib-network-0.2.2.tar.gz/hydratk-lib-network-0.2.2/src/hydratk/lib/network/dbi/jdbc_client.py
""" Events: ------- dbi_before_connect dbi_after_connect dbi_before_exec_query dbi_after_exec_query """ from hydratk.core.masterhead import MasterHead from hydratk.core import event from hydratk.lib.bridge.java import JavaBridge class DBClient(object): """Class DBClient """ _mh = None _bridge = Non...
PypiClean
/alvin_api_client-1.5.0rc1.tar.gz/alvin_api_client-1.5.0rc1/src/alvin_api_client/model/data_entity_user_usage.py
import re # noqa: F401 import sys # noqa: F401 from alvin_api_client.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, ...
PypiClean
/pyretis-2.5.0-py3-none-any.whl/test/engines/mockcp2k.py
import sys import os import numpy as np from pyretis.inout.formats.xyz import write_xyz_trajectory def write_energy(outfile, steps=10): """Store CP2K style energies.""" header = ' '.join(['# Step Nr.', 'Time[fs]', 'Kin.[a.u.]', 'Temp[K]', 'Pot.[a.u.]', 'Cons Qty[a.u.]', ...
PypiClean
/bigraph-schema-0.0.18.tar.gz/bigraph-schema-0.0.18/README.md
# Bigraph-schema [![PyPI version](https://img.shields.io/pypi/v/bigraph-schema.svg)](https://pypi.org/project/bigraph-schema/) [![Tutorial](https://img.shields.io/badge/GitHub%20Pages-Tutorial-brightgreen)](https://vivarium-collective.github.io/bigraph-schema/notebooks/demo.html) Welcome to `bigraph-schema` – a libra...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/databoxedge/v20230101preview/_enums.py
from enum import Enum __all__ = [ 'AccountType', 'AddonType', 'AzureContainerDataFormat', 'ClientPermissionType', 'DataPolicy', 'DataResidencyType', 'DayOfWeek', 'EncryptionAlgorithm', 'MonitoringStatus', 'MsiIdentityType', 'PlatformType', 'RoleStatus', 'RoleTypes',...
PypiClean
/alembic-1.11.3.tar.gz/alembic-1.11.3/docs/build/tutorial.rst
======== Tutorial ======== Alembic provides for the creation, management, and invocation of *change management* scripts for a relational database, using SQLAlchemy as the underlying engine. This tutorial will provide a full introduction to the theory and usage of this tool. To begin, make sure Alembic is installed as...
PypiClean
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/source-map-loader/node_modules/schema-utils/CHANGELOG.md
# Changelog All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. ### [2.7.1](https://github.com/webpack/schema-utils/compare/v2.7.0...v2.7.1) (2020-08-31) ### Bug Fixes * remove esModuleInterop...
PypiClean
/kko-discord-1.4.69.tar.gz/kko-discord-1.4.69/discord/ext/commands/help.py
import itertools import copy import functools import inspect import re import discord.utils from .core import Group, Command from .errors import CommandError __all__ = ( "Paginator", "HelpCommand", "DefaultHelpCommand", "MinimalHelpCommand", ) # help -> shows info of bot on top/bottom and lists subco...
PypiClean
/opensesame_core-4.0.5-py3-none-any.whl/libopensesame/base_python_workspace.py
from libopensesame.py3compat import * from libopensesame.exceptions import FStringError, FStringSyntaxError from libopensesame.item_stack import item_stack_singleton import warnings class BasePythonWorkspace: """Provides a basic Python workspace for use in the GUI. This avoids unnecessarily importing the enti...
PypiClean
/japan_basic_section-0.0.3.tar.gz/japan_basic_section-0.0.3/README.md
# japan-basic-section 国土基本図図郭に沿ったgeopandas.GeoDataFrameを作成するためのシンプルなPythonパッケージです。 図郭のレベルは50000, 5000, 2500, 1000, 500から選択できます。 ## インストール ```bash pip install japan-basic-section ``` ## 使い方 ※ 詳細はnotebooks/sample.ipynbを参照してください。 ```python from japan_basic_section.grid import Grid from japan_basic_section.origin_coo...
PypiClean
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/AlipayCommerceIotDapplyOrderQueryRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayCommerceIotDapplyOrderQueryModel import AlipayCommerceIotDapplyOrderQueryModel class AlipayCommerceIotDapplyOrderQueryRequest(object): def __init__(self, biz_model=Non...
PypiClean
/min_tfs_client-1.0.2-py3-none-any.whl/tensorflow/core/profiler/profile_pb2.py
import sys _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1')) from google.protobuf import descriptor as _descriptor from google.protobuf import message as _message from google.protobuf import reflection as _reflection from google.protobuf import symbol_database as _symbol_database # @@protoc_in...
PypiClean
/athiru-cloud-governance-1.1.76.tar.gz/athiru-cloud-governance-1.1.76/cloud_governance/common/elasticsearch/elastic_upload.py
from ast import literal_eval from cloud_governance.common.elasticsearch.elasticsearch_operations import ElasticSearchOperations from cloud_governance.common.logger.init_logger import logger from cloud_governance.common.mails.mail_message import MailMessage from cloud_governance.common.mails.postfix import Postfix from...
PypiClean
/discordbot_bc_editor-0.0.1.tar.gz/discordbot_bc_editor-0.0.1/discordbot_bc_editor/__main__.py
import os import sys import traceback from . import ( adb_handler, config_manager, feature_handler, game_data_getter, helper, parse_save, patcher, serialise_save, server_handler, tracker, updater, user_input_handler, root_handler, locale_handler, ) from .edits.le...
PypiClean
/dsin100daysv33-6.0.1.tar.gz/dsin100daysv33-6.0.1/notebook/static/components/codemirror/mode/tiki/tiki.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use s...
PypiClean
/google-cloud-recommendations-ai-0.10.4.tar.gz/google-cloud-recommendations-ai-0.10.4/google/cloud/recommendationengine_v1beta1/services/prediction_api_key_registry/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
/sfdata_stream_parser-0.6.0-py3-none-any.whl/sfdata_stream_parser/function_helpers.py
import inspect from typing import Callable, Iterable from sfdata_stream_parser import events from sfdata_stream_parser.events import ParseEvent from sfdata_stream_parser.types import FilteredValue class FunctionCaller: def __init__(self, func: Callable, *args, **kwargs): self._func = func self._...
PypiClean
/pysunspec_read-0.20.7-py3-none-any.whl/pysunspec_read/read_to_output.py
import json import logging from datetime import datetime from pathlib import Path from .clean_dict import clean from .connect_options import ConnectOptions from .dates import add_timestamp_to_filename from .device_reader import read from .files import filename_ends_with_json from .output_filter_predicates import is_z...
PypiClean
/we-love-colors-2.0.0b0.tar.gz/we-love-colors-2.0.0b0/src/colors/utils.py
import re from typing import Callable, List, Union RGB_REGEX = re.compile( r""" # leading 'rgb', opening bracket (optional) (?:rgb\()? # whitespace(s) (optional) (\s*)? # red (?P<red>[0-9]|1[0-9]|2[0-4][0-9]|25[0-5])* # whitespace(s) & comma (?:\s*),(?:\s*) # green (?P<green...
PypiClean
/uncover-ml-0.4.0.tar.gz/uncover-ml-0.4.0/uncoverml/scripts/predict_cli.py
import logging import pickle from os.path import isfile, splitext, exists import os import shutil import warnings import click import numpy as np import matplotlib matplotlib.use('Agg') import uncoverml as ls import uncoverml.cluster import uncoverml.config import uncoverml.features import uncoverml.geoio import unco...
PypiClean
/comt-2.6.4.tar.gz/comt-2.6.4/src/cm/media/js/lib/yui/yui3-3.15.0/build/view-node-map/view-node-map-coverage.js
if (typeof __coverage__ === 'undefined') { __coverage__ = {}; } if (!__coverage__['build/view-node-map/view-node-map.js']) { __coverage__['build/view-node-map/view-node-map.js'] = {"path":"build/view-node-map/view-node-map.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14...
PypiClean
/virtualenvwrapper.tryton-0.3.tar.gz/virtualenvwrapper.tryton-0.3/README.rst
Tryton template for virtualenvwrapper ===================================== Tryton template for virtualenvwrapper to be used with the `mkproject` command. Installation ------------ :: pip install virtualenvwrapper.tryton Usage ----- :: mkproject -t tryton tryton_project This command would install the curr...
PypiClean
/checkthechain-0.3.9.tar.gz/checkthechain-0.3.9/src/ctc/rpc/rpc_executors_sync/rpc_transaction_executors_sync.py
from __future__ import annotations from ctc import spec from .. import rpc_constructors from .. import rpc_digestors from .. import rpc_request def sync_eth_get_transaction_count( from_address: spec.Address, *, block_number: spec.BlockNumberReference | None = None, context: spec.Context = None, ...
PypiClean
/object_detection_neko-0.1.tar.gz/object_detection_neko-0.1/object_detection/models/ssd_inception_v3_feature_extractor.py
"""SSDFeatureExtractor for InceptionV3 features.""" import tensorflow.compat.v1 as tf import tf_slim as slim from object_detection.meta_architectures import ssd_meta_arch from object_detection.models import feature_map_generators from object_detection.utils import ops from object_detection.utils import shape_utils fr...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/education/classes/item/assignments/item/set_up_resources_folder/set_up_resources_folder_request_builder.py
from __future__ import annotations from dataclasses import dataclass from kiota_abstractions.get_path_parameters import get_path_parameters from kiota_abstractions.method import Method from kiota_abstractions.request_adapter import RequestAdapter from kiota_abstractions.request_information import RequestInformation fro...
PypiClean
/data_ecosystem_python-202308.0.25.tar.gz/data_ecosystem_python-202308.0.25/data_ecosystem_python/github_service/github_secret.py
from azure.storage.queue import QueueServiceClient from azure.identity import ClientSecretCredential import requests from typing import List import json from html.parser import HTMLParser # web scraping html import subprocess import os from data_ecosystem_python.cdc_admin_service import ( environment_tracing as c...
PypiClean
/antares-apps-0.0.5.tar.gz/antares-apps-0.0.5/antares/apps/client/api/api_branch_list_address_view.py
import logging import uuid from django.utils.translation import ugettext as _ from django_datatables_view.base_datatable_view import BaseDatatableView from antares.apps.core.middleware.request import get_request from ..constants import ItemStatusType, AddressType from ..models import AddressItem, ClientBranch logg...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/directory_role_templates/get_available_extension_properties/get_available_extension_properties_post_request_body.py
from __future__ import annotations from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, Union class GetAvailableExtensionPropertiesPostRequestBody(AdditionalDataHolder, Parsable): """ Provides operati...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/rxjs/src/internal/operators/timeInterval.ts
import { Observable } from '../Observable'; import { async } from '../scheduler/async'; import { SchedulerLike, OperatorFunction } from '../types'; import { scan } from './scan'; import { defer } from '../observable/defer'; import { map } from './map'; /** * * Emits an object containing the current value, and the ti...
PypiClean
/anydo_api-0.0.2.tar.gz/anydo_api-0.0.2/docs/index.rst
.. anydo_api documentation master file, created by sphinx-quickstart on Tue Jul 9 22:26:36 2013. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Welcome to AnyDo API Python's documentation! ====================================== Contents: .. t...
PypiClean
/Orange3-3.35.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/Orange/projection/freeviz.py
import numpy as np import scipy.spatial from Orange.preprocess.preprocess import RemoveNaNRows, Continuize, Scale from Orange.projection import LinearProjector, DomainProjection __all__ = ["FreeViz"] class FreeVizModel(DomainProjection): var_prefix = "freeviz" class FreeViz(LinearProjector): name = 'FreeV...
PypiClean
/nniv04-0.4.1-py3-none-any.whl/nniv04-0.4.1.data/data/nni/node_modules/moment/locale/mi.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; ...
PypiClean
/pnu_what-1.0.0-py3-none-any.whl/what/main.py
import getopt import logging import os import re import signal import sys import strings # Version string used by the what(1) and ident(1) commands: ID = "@(#) $Id: what - identify SCCS keyword strings in files v1.0.0 (October 31, 2021) by Hubert Tournier $" # Default parameters. Can be overcome by environment varia...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/denitrovibrioacetiphilus.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def DenitrovibrioAcetiphilus( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_graph_kwarg...
PypiClean
/camerahub-0.37.0-py3-none-any.whl/schema/migrations/0018_auto_20191217_2303.py
from django.conf import settings from django.db import migrations, models class Migration(migrations.Migration): dependencies = [ migrations.swappable_dependency(settings.AUTH_USER_MODEL), ('schema', '0017_auto_20191108_1224'), ] operations = [ migrations.AddField( m...
PypiClean
/git_pile-1.1-py3-none-any.whl/git_pile/git_mbox_prepare.py
import argparse from io import StringIO import mailbox import os import os.path import re import sys import tempfile from .helpers import run_wrapper try: import argcomplete except ImportError: pass args = None subject_regex_str = r"\[PATCH *(?P<project>[a-zA-Z][\w-]*)? *(?P<version>[v|V][0-9]+)? *(?P<numbe...
PypiClean
/ipvanish_bundle-0.1.2-py3-none-any.whl/ipvanish_bundle/bundle/linux/LT.py
ipvanish_LT_Vilnius_vno_c01_ovpn = ['client', 'dev tun', 'proto udp', 'remote vno-c01.ipvanish.com 443', 'resolv-retry infinite', 'nobind', 'persist-key', 'persist-tun', 'persist-remote-ip', '<ca>', '-----BEGIN CERTIFICATE-----', 'MIIErTCCA5WgAwIBAgIJAMYKzSS8uPKDMA0GCSqGSIb3DQEBDQUAMIGVMQswCQYD', 'VQQGEwJVUzELMAkGA1UEC...
PypiClean
/v2/model/show_version_alias_response.py
import pprint import re import six from huaweicloudsdkcore.sdk_response import SdkResponse class ShowVersionAliasResponse(SdkResponse): """ Attributes: openapi_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key i...
PypiClean
/deform2000-2.0.1.tar.gz/deform2000-2.0.1/deform/static/tinymce/langs/tr_TR.js
tinymce.addI18n('tr_TR',{ "Cut": "Kes", "Header 2": "Ba\u015fl\u0131k 2", "Your browser doesn't support direct access to the clipboard. Please use the Ctrl+X\/C\/V keyboard shortcuts instead.": "Taray\u0131c\u0131n\u0131z panoya direk eri\u015fimi desteklemiyor. L\u00fctfen Ctrl+X\/C\/V klavye k\u0131sayollar\u0131n\u0...
PypiClean
/mixon-0.0.3.tar.gz/mixon-0.0.3/README.md
# mixon `mixon` is a variant of json which is convenient for long raw text fields. ## Example ``` # Normal json part { "id": "article1", "title": "Ipsum Lorem" } # Long Text Fields #---------: contents :----------# Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut l...
PypiClean
/django-spectator-14.0.0.tar.gz/django-spectator-14.0.0/spectator/events/migrations/0001_initial.py
import django.core.validators import django.db.models.deletion from django.db import migrations, models import spectator.core.fields class Migration(migrations.Migration): initial = True dependencies = [ ("spectator_core", "0001_initial"), ] operations = [ migrations.CreateModel( ...
PypiClean
/pysulog-1.0.6.tar.gz/pysulog-1.0.6/pyulog/migrate_db.py
import os import argparse from pyulog.db import DatabaseULog def main(): ''' Entry point for the console script. ''' parser = argparse.ArgumentParser(description='Setup the database for DatabaseULog') parser.add_argument('-d', '--database', dest='db_path', action='store', he...
PypiClean
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/cors/CONTRIBUTING.md
# contributing to `cors` CORS is a node.js package for providing a [connect](http://www.senchalabs.org/connect/)/[express](http://expressjs.com/) middleware that can be used to enable [CORS](http://en.wikipedia.org/wiki/Cross-origin_resource_sharing) with various options. Learn more about the project in [the README](R...
PypiClean
/itk_registration-5.4rc1-cp311-cp311-manylinux_2_28_aarch64.whl/itk/itkLBFGSOptimizerv4Python.py
import collections from sys import version_info as _version_info if _version_info < (3, 7, 0): raise RuntimeError("Python 3.7 or later required") from . import _ITKCommonPython from . import _ITKOptimizersv4Python from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2, ...
PypiClean
/steem_dshot-0.19.1.tar.gz/steem_dshot-0.19.1/steembase/memo.py
import hashlib import struct from binascii import hexlify, unhexlify from .operations import Memo from Crypto.Cipher import AES from .base58 import base58encode, base58decode from .account import PrivateKey, PublicKey default_prefix = "STM" def get_shared_secret(priv, pub): """ Derive the share secret between `...
PypiClean
/verizon-ap-is-sdk-1.0.0.tar.gz/verizon-ap-is-sdk-1.0.0/verizon/models/cluster_namespaces_location.py
from verizon.api_helper import APIHelper class ClusterNamespacesLocation(object): """Implementation of the 'ClusterNamespacesLocation' model. TODO: type model description here. Attributes: ern (string): Edge Resource Number. city (string): TODO: type description here. latitude (...
PypiClean
/stream_graph-0.2.0-cp35-cp35m-win_amd64.whl/stream_graph/base/dataframes/algorithms/weighted_instantaneous.py
from .utils.misc import iter_dmerge_ from collections import defaultdict from six import iteritems def union_by_key(dfa, dfb, union_function): data = dict() for key in dfa.itertuples(weights=True): data[key[:-1]] = key[-1] for key in dfb.itertuples(weights=True): d = data.get(key[:-1], No...
PypiClean
/askbot-tuan-1.5.tar.gz/askbot-tuan-1.5/askbot/deps/django_authopenid/migrations/0005_auto__del_externallogindata.py
import datetime from south.db import db from south.v2 import SchemaMigration from django.db import models class Migration(SchemaMigration): def forwards(self, orm): # Deleting model 'ExternalLoginData' db.delete_table('django_authopenid_externallogindata') def backwards(...
PypiClean
/llama_hub-0.0.26-py3-none-any.whl/llama_hub/singlestore/README.md
# SingleStore Loader The SingleStore Loader retrieves a set of documents from a specified table in a SingleStore database. The user initializes the loader with database information and then provides a search embedding for retrieving similar documents. ## Usage Here's an example usage of the SingleStoreReader: ```py...
PypiClean
/csv-remapper-1.1.7.tar.gz/csv-remapper-1.1.7/csv_remapper/constants.py
import os APP_DATA_ENV_VAR = 'CSV_SETTINGS_DIR' APP_NAME = 'CSV File Remapper' APP_ICON = os.path.join(os.path.dirname(__file__), 'resources', 'Accounts-Icon.png') APP_SETTINGS_DIRECTORY = os.environ.get(APP_DATA_ENV_VAR) or os.path.join(os.path.expanduser('~'), APP_NAME) SETTINGS_FILE_NAME = 'settings.json' APP_SETT...
PypiClean
/nest-on-square-wheels-3.0.2.tar.gz/nest-on-square-wheels-3.0.2/data/extras/help_generator/assets/js/jquery-migrate-3.0.0.js
(function( jQuery, window ) { "use strict"; jQuery.migrateVersion = "3.0.0"; ( function() { // Support: IE9 only // IE9 only creates console object when dev tools are first opened // Also, avoid Function#bind here to simplify PhantomJS usage var log = window.console && window.console.log && function() { win...
PypiClean
/PyFEM-TUE-3.0.2.tar.gz/PyFEM-TUE-3.0.2/pyfem/fem/ElementSet.py
import re from pyfem.util.itemList import itemList class ElementSet( itemList ): def __init__ ( self, nodes, props ): itemList.__init__( self ) self.nodes = nodes self.props = props self.groups = {} ############################### # Create the material manager # ################...
PypiClean
/rekall-core-1.7.2rc1.zip/rekall-core-1.7.2rc1/rekall/plugins/windows/registry/printkey.py
from past.builtins import basestring import binascii import re from rekall import addrspace from rekall.plugins import core from rekall.plugins.windows.registry import registry from rekall.plugins.overlays import basic from rekall_lib import utils class PrintKey(registry.RegistryPlugin): """Print a registry key,...
PypiClean
/iscc_core-1.0.4-cp37-cp37m-macosx_11_0_x86_64.whl/iscc_core/iscc_id.py
from hashlib import sha256 from typing import Optional import uvarint import iscc_core as ic __all__ = [ "gen_iscc_id", "gen_iscc_id_v0", "iscc_id_incr", "iscc_id_incr_v0", "alg_simhash_from_iscc_id", ] def gen_iscc_id(iscc_code, chain_id, wallet, uc=0): # type: (str, int, str, Optional[int]...
PypiClean
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v3_5_0/device_filter_set_broker.py
from ..broker import Broker class DeviceFilterSetBroker(Broker): controller = "device_filter_sets" def show(self, **kwargs): """Shows the details for the specified device filter set. **Inputs** | ``api version min:`` None | ``api version max:`` None ...
PypiClean
/airflow_kubernetes_job_operator_test22-0.1.tar.gz/airflow_kubernetes_job_operator_test22-0.1/airflow_kubernetes_job_operator/kubernetes_legacy_job_operator.py
import kubernetes.client as k8s from typing import List, Union from airflow_kubernetes_job_operator.exceptions import KubernetesJobOperatorException from airflow_kubernetes_job_operator.kube_api.collections import KubeResourceDescriptor from airflow_kubernetes_job_operator.job_runner import JobRunnerDeletePolicy from ...
PypiClean