id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/ansible-8.3.0-py3-none-any.whl/ansible_collections/community/vmware/plugins/modules/vmware_cfg_backup.py |
# Copyright: (c) 2017, IBM Corp
# Author(s): Andreas Nafpliotis <nafpliot@de.ibm.com>
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
from __future__ import absolute_import, division, print_function
__metacl... | PypiClean |
/nomad_camels-0.2.0-py3-none-any.whl/nomad_camels/utility/qthreads.py | import signal
import os
import time
import numpy as np
from PySide6.QtCore import QThread, Signal
import subprocess
from nomad_camels.utility import variables_handling
class Run_Protocol(QThread):
"""
DEPRECATED
Runs the given protocol with a file at the given path."""
sig_step = Signal(int)
... | PypiClean |
/eyes-selenium-images-3.6.tar.gz/eyes-selenium-images-3.6/applitools/_triggers.py | from .errors import EyesError
from collections import OrderedDict
MOUSE_ACTION = {'click': 'Click', 'right_click': 'RightClick', 'double_click': 'DoubleClick',
'move': 'Move', 'down': 'Down', 'up': 'Up'}
_TRIGGER_TYPE_FIELD_NAME = "triggerType"
_TRIGGER_TYPE = {'unknown': 'Unknown', 'mouse': 'Mouse',... | PypiClean |
/django-silver-0.11.1.tar.gz/django-silver-0.11.1/silver/models/documents/pdf.py |
from __future__ import absolute_import
import logging
import uuid
from io import BytesIO, SEEK_SET
from xhtml2pdf import pisa
from django.conf import settings
from django.db import transaction
from django.db.models import (
Model, FileField, TextField, UUIDField, PositiveIntegerField, F
)
from django.db.models.... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/eslint/lib/rules/computed-property-spacing.js | "use strict";
const astUtils = require("./utils/ast-utils");
//------------------------------------------------------------------------------
// Rule Definition
//------------------------------------------------------------------------------
/** @type {import('../shared/types').Rule} */
module.exports = {
meta: ... | PypiClean |
/mkdocs-tex2svg-0.1.1.tar.gz/mkdocs-tex2svg-0.1.1/mkdocs_tex2svg/tablor.py | import giacpy as g
from giacpy import giac, assume, pi, derive, factor, simplify, solve
import subprocess
import shlex
print("HELLO FROM INSIDE")
# a, x,y,z = g.giac('a, x,y,z')
# g.assume('x>-pi && x<pi')
# l = g.solve('x^2-1=0',x)
def get_derivee(f:str,x:str):
return simplify(derive(f,x))
def get_name_vari... | PypiClean |
/formula_generator-0.1.0-py3-none-any.whl/project/FormulaGenerator.py | import z3
from z3 import *
import string
s = Solver()
import sys
current_module = sys.modules[__name__]
class FormulaGenerator:
"""
Generate a list of formulas from the given formula.
Operators in the formula will be substitited by operators in same lists from the given list of lists of operators.
... | PypiClean |
/pulumi_oci-1.9.0a1693465256.tar.gz/pulumi_oci-1.9.0a1693465256/pulumi_oci/identity/get_domains_user_db_credentials.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
__all__ = [
'GetDomainsUserDbCredentialsResult',
'AwaitableGetDomainsUserDbCredentialsResult',
'get_domains_user_db_credentia... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayMarketingCampaignPromotionactivityCustomerReceiveRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayMarketingCampaignPromotionactivityCustomerReceiveModel import AlipayMarketingCampaignPromotionactivityCustomerReceiveModel
class AlipayMarketingCampaignPromotionactivityCus... | PypiClean |
/catkin_tools-0.9.4.tar.gz/catkin_tools-0.9.4/docs/advanced/job_executor.rst | The Catkin Execution Engine
===========================
One of the core modules in ``catkin_tools`` is the **job executor**.
The executor performs jobs required to complete a task in a way that maximizes (or achieves a specific) resource utilization subject to job dependency constraints.
The executor is closely integr... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/machinelearningservices/list_compute_keys.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'ListComputeKeysResult',
'AwaitableListComputeKeysResult',
'list_compute_keys',
'list_compute_keys_output',
]
@pulumi.output_type
... | PypiClean |
/PassivePy-0.2.23.tar.gz/PassivePy-0.2.23/PassivePyCode/PassivePySrc/PassivePy.py |
import pandas as pd
import numpy as np
import spacy
from termcolor import colored
import regex as re
from itertools import chain
import os, sys
try:
from PassivePyCode.PassivePySrc.rules_for_all_passives import create_matcher
from PassivePyCode.PassivePySrc.rules_for_full_passives import create_matcher_ful... | PypiClean |
/pdfstitcher-0.9.1.tar.gz/pdfstitcher-0.9.1/README.md | # PDFStitcher
PDFSticher is a utility for stitching together many PDF pages from one document into a single page. This is also called "N-Up" or page imposition. This program was created in order to convert sewing patterns into a convenient format for projecting, though it could be used to stitch together any PDF.
Sinc... | PypiClean |
/lilacai-0.0.9.tar.gz/lilacai-0.0.9/lilac/web/_app/immutable/nodes/5.8196cc99.js | import{S as Z,i as w,s as X,E as G,k as P,a as R,l as N,m as y,c as H,h as k,n as j,H as S,I as O,b as D,J as V,K as L,g as T,v as x,d as E,f as $,O as se,P as re,D as U,aj as Le,ab as je,R as me,F as oe,G as ue,L as fe,M as de,N as ce,Q as q,w as z,q as le,r as ne,u as _e,a1 as J,C as Ge,T as Me,o as Re,a4 as ge,an as... | PypiClean |
/fmqlreports-1.0.tar.gz/fmqlreports-1.0/basics/webReportSubReportDataTypes.py |
import sys
import os
import re
import json
from collections import defaultdict
from datetime import datetime
import numpy
from fmqlutils.cacher.cacherUtils import SCHEMA_LOCN_TEMPL
from fmqlutils.reporter.reportUtils import MarkdownTable, reportPercent, reportAbsAndPercent
from ..webReportUtils import SITE_DIR_TEMP... | PypiClean |
/eppconvert-0.9.3.tar.gz/eppconvert-0.9.3/README.rst | .. image:: https://github.com/ra1fh/eppconvert/actions/workflows/ci.yml/badge.svg
:target: https://github.com/ra1fh/eppconvert/actions/workflows/ci.yml
eppconvert
==========
Tools to parse and convert Daum Ergo Bike EPP files. This contains a
mostly complete specification of the EPP/EUP file format, using
python-... | PypiClean |
/hgcal_swamp-2.0.tar.gz/hgcal_swamp-2.0/hgcal_swamp/econ_control.py | import logging
import argparse
from . import sc_lpgbt
from . import econ, lpgbt_i2c
from . import util
import yaml
import re
from time import sleep
if __name__ == '__main__':
parser = argparse.ArgumentParser()
parser.add_argument('-s', dest='site', action='store',choices=['w0','w1','w2','e0','e1','e2'],
... | PypiClean |
/HiCExplorer-2.2.1.1-py3-none-any.whl/hicexplorer/list_tools.py | from __future__ import division
import warnings
warnings.simplefilter(action="ignore", category=RuntimeWarning)
warnings.simplefilter(action="ignore", category=PendingDeprecationWarning)
import argparse
import sys
from hicexplorer._version import __version__
import logging
log = logging.getLogger(__name__)
def parse... | PypiClean |
/aries_cloudagent-1.0.0rc3.tar.gz/aries_cloudagent-1.0.0rc3/aries_cloudagent/protocols/trustping/v1_0/routes.py |
from aiohttp import web
from aiohttp_apispec import docs, match_info_schema, request_schema, response_schema
from marshmallow import fields
from ....admin.request_context import AdminRequestContext
from ....connections.models.conn_record import ConnRecord
from ....messaging.models.openapi import OpenAPISchema
from .... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_0/models/volume_performance.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_0 import models
class VolumePerformance(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value ... | PypiClean |
/python3_mal-0.2.21-py3-none-any.whl/myanimelist/session.py |
import requests
from . import anime
from . import manga
from . import character
from . import person
from . import user
from . import club
from . import genre
from . import tag
from . import publication
from . import producer
from . import anime_list
from . import manga_list
from .base import Error
from lxml im... | PypiClean |
/ftw.crawler-1.4.0.tar.gz/ftw.crawler-1.4.0/ftw/crawler/configuration.py | from ftw.crawler.exceptions import NoSuchField
from ftw.crawler.exceptions import SiteNotFound
import imp
import os
def get_config(options):
config_path = os.path.abspath(options.config)
module_name = os.path.splitext(os.path.basename(options.config))[0]
module = imp.load_source(module_name, config_path)
... | PypiClean |
/pyocd_hx-0.0.2.tar.gz/pyocd_hx-0.0.2/pyocd/trace/events.py |
class TraceEvent(object):
"""@brief Base trace event class."""
def __init__(self, desc="", ts=0):
self._desc = desc
self._timestamp = ts
@property
def timestamp(self):
return self._timestamp
@timestamp.setter
def timestamp(self, ts):
self._timestamp = ts
d... | PypiClean |
/pythonimmediate-tex-0.5.0.zip/pythonimmediate-tex-0.5.0/pythonimmediate/engine.py | from typing import Optional, Literal, Iterable, List, Dict, Tuple
from abc import ABC, abstractmethod
import sys
import subprocess
import threading
from dataclasses import dataclass
import atexit
import enum
from . import communicate
from .communicate import GlobalConfiguration
EngineName=Literal["pdftex", "xetex", ... | PypiClean |
/mutalyzer-algebra-1.3.1.tar.gz/mutalyzer-algebra-1.3.1/algebra/relations/supremal_based.py | from operator import attrgetter
from .relation import Relation
from .sequence_based import (are_disjoint as sequence_based_are_disjoint,
compare as sequence_based_compare,
contains as sequence_based_contains,
have_overlap as sequence... | PypiClean |
/olymp-0.0.1b0-py3-none-any.whl/olympus/campaigns/observations.py |
import numpy as np
from olympus import Object
from olympus.objects import ParameterVector
# ==========
# Main Class
# ==========
class Observations:
def __init__(self):
self.params = None # expected to be a list of numpy arrays
self.values = None # expected to be a list of numpy arrays
... | PypiClean |
/dokos_cli-2.6.0.tar.gz/dokos_cli-2.6.0/bench/utils/render.py | import sys
from io import StringIO
# imports - third party imports
import click
# imports - module imports
import bench
class Capturing(list):
"""
Util to consume the stdout encompassed in it and push it to a list
with Capturing() as output:
subprocess.check_output("ls", shell=True)
print(output)
# ... | PypiClean |
/teachpyx-0.1.175.tar.gz/teachpyx-0.1.175/_doc/sphinxdoc/source/c_classes/classes.rst |
.. _chap_classe:
=======
Classes
=======
.. index:: classe
.. contents:
:local:
:depth: 2
Imaginons qu'une banque détienne un fichier contenant des informations
sur ses clients et qu'il soit impossible pour un client d'avoir
accès directement à ces informations. Toutefois, il lui est
en théorie possible de... | PypiClean |
/softwaretestingmaterial-zh-2022.9.14.0.tar.gz/softwaretestingmaterial-zh-2022.9.14.0/SoftwaretestingmaterialZh/docs/171.md | # 突变测试指南:你应该知道什么
> 原文:[https://www.softwaretestingmaterial.com/mutation-testing/](https://www.softwaretestingmaterial.com/mutation-testing/)

如果你刚刚开始学习突变测试的概念,这里是了解什么是突变,什么是突变测试,以及以下内容的地方。
* [什么是突变](#h-what-is-mutation)
* [变种人状态](#h-mutants-state)
*... | PypiClean |
/nextstrain_cli-7.2.0-py3-none-any.whl/nextstrain/cli/config.py | import stat
from configparser import ConfigParser
from contextlib import contextmanager
from fasteners import InterProcessReaderWriterLock
from pathlib import Path
from typing import Optional
from .paths import CONFIG, SECRETS, LOCK
# Permissions to use for the secrets file if we have to create it.
SECRETS_PERMS = \
... | PypiClean |
/kafka-python-2.0.2.tar.gz/kafka-python-2.0.2/kafka/metrics/stats/percentiles.py | from __future__ import absolute_import
from kafka.metrics import AnonMeasurable, NamedMeasurable
from kafka.metrics.compound_stat import AbstractCompoundStat
from kafka.metrics.stats import Histogram
from kafka.metrics.stats.sampled_stat import AbstractSampledStat
class BucketSizing(object):
CONSTANT = 0
LIN... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/gfx3d/lighting.js | define("dojox/gfx3d/lighting",["dojo/_base/lang","dojo/_base/Color","dojo/_base/declare","dojox/gfx/_base","./_base"],function(_1,_2,_3,_4,_5){
var _6=_5.lighting={black:function(){
return {r:0,g:0,b:0,a:1};
},white:function(){
return {r:1,g:1,b:1,a:1};
},toStdColor:function(c){
c=_4.normalizeColor(c);
return {r:c.r/25... | PypiClean |
/meetup2xibo-3.3.1.tar.gz/meetup2xibo-3.3.1/docs/meetup2xibo.updater.rst | meetup2xibo.updater package
===========================
Submodules
----------
meetup2xibo.updater.anti\_flapper module
----------------------------------------
.. automodule:: meetup2xibo.updater.anti_flapper
:members:
:undoc-members:
:show-inheritance:
meetup2xibo.updater.application\_scope module
----... | PypiClean |
/aditam.server-0.1.tar.gz/aditam.server-0.1/aditam/server/network/agentpool.py |
___author__ = '$LastChangedBy: jschneider $'
__date__ = '$LastChangedDate: 2008-06-01 21:06:48 +0200 (Sun, 01 Jun 2008) $'
__version__ = '$Rev: 222 $'
import Pyro.core
import datetime
import time
from threading import Thread, RLock
from Queue import Queue
from Queue import Empty
from datetime import datetime
from co... | PypiClean |
/ipkiss24/samples/tutorial_rlmzi/module_01_layout/_06_hierarchy/readme.txt | Example: Hierarchy
In this example we group two ring components together in a third component. The rings components can be defined seperately and placed as a reference in the third component. This way, we can partition our design into manageable and reusable blocks.
To run the example, run 'execute.py' from the com... | PypiClean |
/huntflow_api_client-0.0.17-py3-none-any.whl/huntflow_api_client/entities/vacancies.py | from typing import Any, Dict, List, Optional, Union
from huntflow_api_client.entities.base import BaseEntity, CRUDEntityMixin
from huntflow_api_client.models.common import StatusResponse
from huntflow_api_client.models.request.vacancies import (
VacancyCreateRequest,
VacancyMemberCreateRequest,
VacancyUpda... | PypiClean |
/isc-py-common-0.1.27.tar.gz/isc-py-common-0.1.27/reports/views/jasper_reports.py | from isc_common.http.DSResponse import DSResponseUpdate, DSResponseAdd, DSResponse, JsonResponseWithException
from isc_common.http.RPCResponse import RPCResponseConstant
from isc_common.http.response import JsonResponse
from reports.models.jasper_reports import Jasper_reports, Jasper_reportsManager
@JsonResponseWithE... | PypiClean |
/sleipnir.transport-0.1.0.tar.gz/sleipnir.transport-0.1.0/src/sleipnir/transport/amqp/pools.py | from __future__ import absolute_import
__author__ = "Carlos Martin <cmartin@liberalia.net>"
__license__ = "See LICENSE file for details"
# Import here any required modules.
from Queue import Queue, Empty
from thread import get_ident
from threading import Lock
from functools import partial
__all__ = ['BuilderPool', ... | PypiClean |
/hl.pas.samlplugin-1.3.tar.gz/hl.pas.samlplugin-1.3/hl/pas/samlplugin/saml2/mcache.py | import logging
import memcache
from saml2 import time_util
from saml2.cache import ToOld, CacheError
# The assumption is that any subject may consist of data
# gathered from several different sources, all with their own
# timeout time.
logger = logging.getLogger(__name__)
def _key(prefix, name):
return "%s_%s"... | PypiClean |
/chrono_kit-0.1.0-py3-none-any.whl/chronokit/utils/vis_utils/model_plots.py | import matplotlib
import matplotlib.style
import matplotlib.pyplot as plt
from chronokit.preprocessing.dataloader import DataLoader
from chronokit.utils.evaluation_utils.metrics import *
def plot_predictions(y_true, y_pred, bounds=None, pre_vals=None, figsize=(12,8), colors=None, bounds_fill_alpha=0.7, title=None, st... | PypiClean |
/moto-ext-4.2.0.post1.tar.gz/moto-ext-4.2.0.post1/moto/core/exceptions.py | from werkzeug.exceptions import HTTPException
from jinja2 import DictLoader, Environment
from typing import Any, List, Tuple, Optional
import json
SINGLE_ERROR_RESPONSE = """<?xml version="1.0" encoding="UTF-8"?>
<Error>
<Code>{{error_type}}</Code>
<Message><![CDATA[{{message}}]]></Message>
{% block extra... | PypiClean |
/sc.object.dissect-1.0.tar.gz/sc.object.dissect-1.0/README.txt | Introduction
============
This products adds a browser view that list all methods and attributes of any object in Zope.
It removes the methods "__roles__" and "manage_" from this list because it sucks.
To install adds the product to sections eggs and zcml of your buildout.
eggs = ...
sc.object.dissect
... | PypiClean |
/collective.emaillogin-1.3.zip/collective.emaillogin-1.3/bootstrap.py | import os, shutil, sys, tempfile, urllib2
from optparse import OptionParser
tmpeggs = tempfile.mkdtemp()
is_jython = sys.platform.startswith('java')
# parsing arguments
parser = OptionParser()
parser.add_option("-v", "--version", dest="version",
help="use a specific zc.buildout version")
pa... | PypiClean |
/roi-ctl-1.2.0.tar.gz/roi-ctl-1.2.0/roi_ctl/static/python-pip/README.md | # {NAME}
模块描述,自行补充
## 工程说明
```
{NAME}
├── LICENSE # 版权
├── package.json # 项目配置
├── {PACKAGE_NAME} # 包名
│ ├── app_logger.py # LOG 工具
│ ├── app.py # 程序入口
│ ├── __init__.py
│ └── static # 静态资源文件夹
│ └── READM... | PypiClean |
/themeparks-1.0.0.tar.gz/themeparks-1.0.0/openapi_client/exceptions.py | class OpenApiException(Exception):
"""The base exception class for all OpenAPIExceptions"""
class ApiTypeError(OpenApiException, TypeError):
def __init__(self, msg, path_to_item=None, valid_classes=None,
key_type=None):
""" Raises an exception for TypeErrors
Args:
... | PypiClean |
/steamship-2.17.27.tar.gz/steamship-2.17.27/docs/nextra/configuration/clients.rst | .. _Clients:
Steamship Client Libraries
--------------------------
.. _Python Client:
Python Client
~~~~~~~~~~~~~
To install the Steamship Python Client, run:
.. code-block:: bash
pip install steamship
Then, import and use Steamship with:
.. code-block:: python
from steamship import Steamship
ai_pack... | PypiClean |
/dna.node-2.1.1-py3-none-any.whl/pubsub/pubsub.py | import warnings
from threading import Lock
from queue import Queue, PriorityQueue, Empty
class PubSubBase():
"""
Internal base class should not be instanced,
Please use classes PubSub and PubSubPriority
The algorithms for thread safe functionnalities were designed
by Zhen Wang : congratulation to... | PypiClean |
/django-softdelete-redux-0.4.1.tar.gz/django-softdelete-redux-0.4.1/softdelete/south_migrations/0001_initial.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):
# Adding model 'ChangeSet'
db.create_table('softdelete_changeset', (
('id', self.gf('django.db.models.fields.Aut... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/ZhimaCreditEpYuqingBrmQueryModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class ZhimaCreditEpYuqingBrmQueryModel(object):
def __init__(self):
self._begin = None
self._crn = None
self._doc_self_content_sign = None
self._end = None
self._entities_and = None
self._entities_or... | PypiClean |
/monk_cls_test2-0.0.7.tar.gz/monk_cls_test2-0.0.7/monk/pytorch/models/layers.py | from monk.pytorch.models.imports import *
from monk.system.imports import *
@accepts(dict, int, post_trace=False)
#@TraceFunction(trace_args=True, trace_rv=True)
def get_layer(network_layer, num_ftrs):
'''
Get layer for appending it to transfer learning base model
Args:
network_layer (dict): Dict... | PypiClean |
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/ec2/get_vpcs.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__ = [
'GetVpcsResult',
'AwaitableGetVpcsResult',
'get_vpcs',
'get_vpcs_output',
]
@pulumi.o... | PypiClean |
/lightgbm_tools-0.0.2.tar.gz/lightgbm_tools-0.0.2/lightgbm_tools/metrics.py | from dataclasses import dataclass
from typing import Callable, List, Optional, Tuple
import lightgbm as lgbm
import numpy as np
from sklearn.metrics import (
accuracy_score,
average_precision_score,
f1_score,
precision_score,
recall_score,
roc_auc_score,
)
@dataclass
class LightGbmEvalFunctio... | PypiClean |
/pyjavaproperties3-0.6.tar.gz/pyjavaproperties3-0.6/pyjavaproperties3.py | import sys,os
import re
import time
class IllegalArgumentException(Exception):
def __init__(self, lineno, msg):
self.lineno = lineno
self.msg = msg
def __str__(self):
s='Exception at line number %d => %s' % (self.lineno, self.msg)
return s
class Properties(object):
""" A ... | PypiClean |
/fish-bundles-web-0.1.8.tar.gz/fish-bundles-web-0.1.8/fish_bundles_web/static/javascripts/bootstrap/tooltip.js | +function ($) {
'use strict';
// TOOLTIP PUBLIC CLASS DEFINITION
// ===============================
var Tooltip = function (element, options) {
this.type =
this.options =
this.enabled =
this.timeout =
this.hoverState =
this.$element = null
this.init('tooltip', ele... | PypiClean |
/mindspore_ascend-1.10.0-cp39-none-any.whl/mindspore/_akg/akg/ops/nn/ascend/maxpool.py |
"""operator dsl function:maxpool"""
from __future__ import absolute_import
import math
import akg
import akg.tvm
import akg.utils as utils
from akg.tvm.hybrid import script
from akg.utils import custom_tiling as ct_util, kernel_exec as k_utils
from akg.utils.dsl_create import cal_pad_shapes_by_strategy
from akg.utils.... | PypiClean |
/oking_oz-3.2.37-py3-none-any.whl/src/api/entities/cliente.py | from datetime import datetime
class Endereco:
ativo: bool
tipo_logradouro: str
endereco: str
cep: str
numero: str
complemento: str
bairro: str
cidade: str
estado: str
telefone_contato: str
descricao_endereco: str
referencia_entrega: str
pais: str
codigo_ibge: st... | PypiClean |
/tap-closeio-1.6.4.tar.gz/tap-closeio-1.6.4/README.md | # tap-closeio
This is a [Singer](https://singer.io) tap that produces JSON-formatted data following the [Singer spec](https://github.com/singer-io/getting-started/blob/master/SPEC.md).
This tap:
- Pulls raw data from Close.io's [REST API](https://developer.close.io/)
- Extracts the following resources from Close.io:
... | PypiClean |
/adafruit-circuitpython-spd1656-0.8.4.tar.gz/adafruit-circuitpython-spd1656-0.8.4/README.rst | Introduction
============
.. image:: https://readthedocs.org/projects/adafruit-circuitpython-spd1656/badge/?version=latest
:target: https://docs.circuitpython.org/projects/spd1656/en/latest/
:alt: Documentation Status
.. image:: https://raw.githubusercontent.com/adafruit/Adafruit_CircuitPython_Bundle/main/b... | PypiClean |
/Fabric-with-working-dependencies-1.0.1.tar.gz/Fabric-with-working-dependencies-1.0.1/fabfile.py | from __future__ import with_statement
import nose
from fabric.api import *
from fabric.contrib.project import rsync_project
# Need to import this as fabric.version for reload() purposes
import fabric.version
# But nothing is stopping us from making a convenient binding!
_version = fabric.version.get_version
docs_ho... | PypiClean |
/netmiko_bsh-3.4.0-py3-none-any.whl/netmiko/utilities.py | from glob import glob
import sys
import io
import os
from pathlib import Path
import functools
from datetime import datetime
from netmiko._textfsm import _clitable as clitable
from netmiko._textfsm._clitable import CliTableError
from netmiko import log
try:
from ttp import ttp
TTP_INSTALLED = True
except Imp... | PypiClean |
/azure-cli-profile-2.1.5.tar.gz/azure-cli-profile-2.1.5/azure/cli/command_modules/profile/_help.py |
from knack.help_files import helps # pylint: disable=unused-import
helps['login'] = """
type: command
short-summary: Log in to Azure.
examples:
- name: Log in interactively.
text: >
az login
- name: Log in with user name and password. This doesn't work with Microsof... | PypiClean |
/passlib-1.7.4.tar.gz/passlib-1.7.4/docs/lib/index.rst | =============
API Reference
=============
The reference section contains documentation of Passlib's public API.
These chapters are focused on providing detailed reference of the individual
functions and classes; they will generally be cross-linked to any related walkthrough
documentation (which tries to provide a high... | PypiClean |
/kolibri_ml-1.1.88-py3-none-any.whl/kolibri/data/text/text.py | from picklable_itertools import iter_, chain
import csv
from kolibri.data.text.dataset import Dataset
from kdmt.file import open_gziped
class TextFile(Dataset):
r"""Reads text files and numberizes them given a dictionary.
Parameters
----------
files : list of str
The names of the files in ord... | PypiClean |
/tingbot-gui-0.9.3.tar.gz/tingbot-gui-0.9.3/tingbot_gui/popupmenu.py | from functools import partial
import pygame
from .dialog import Dialog
from .scrollarea import ScrollArea
from .button import Button
from .style import get_default_style
class PopupMenu(Dialog):
"""A popupmenu that is displayed on top of the screen"""
def __init__(self, xy, style=None, cancellable=True,
... | PypiClean |
/village-fastapi-0.82.0.tar.gz/village-fastapi-0.82.0/docs/ja/docs/tutorial/body.md | # リクエストボディ
クライアント (ブラウザなど) からAPIにデータを送信する必要があるとき、データを **リクエストボディ (request body)** として送ります。
**リクエスト** ボディはクライアントによってAPIへ送られます。**レスポンス** ボディはAPIがクライアントに送るデータです。
APIはほとんどの場合 **レスポンス** ボディを送らなければなりません。しかし、クライアントは必ずしも **リクエスト** ボディを送らなければいけないわけではありません。
**リクエスト** ボディを宣言するために <a href="https://pydantic-docs.helpmanual.io/"... | PypiClean |
/datasets_bleu-0.2-py3-none-any.whl/datasetsbleu/engine/en_zh_2file.py | import glob
import os
import json
from datasetsbleu.utils.scripts import (write_file, get_filename, get_num_from_str, get_readlines, get_feature_from_str)
src_path = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sents_level_path = os.path.join(src_path, 'datasets', 'sents_level')
field_path = os.path.jo... | PypiClean |
/python-efl-1.26.0.tar.gz/python-efl-1.26.0/efl/elementary/general.py | from . import init, shutdown, run, exit, \
on_ethumb_connect, on_config_all_changed, on_policy_changed, \
on_process_background, on_process_background, \
on_sys_notify_notification_closed, on_sys_notify_action_invoked, \
policy_set, policy_get, process_state_get, coords_finger_size_adjust, \
languag... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/caniuse-lite/data/regions/AO.js | module.exports={C:{"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":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0.00437,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"4... | PypiClean |
/pybibframe-1.1.4.tar.gz/pybibframe-1.1.4/lib/reader/marcpatterns.py | # Full MARC field list: http://www.loc.gov/marc/bibliographic/ecbdlist.html
# These two lines are required at the top
#from bibframe import BL, BA, REL, MARC, RBMS, AV, POSTPROCESS_AS_INSTANCE
from bibframe import *
from bibframe.reader.util import *
# This line only needed if you are using advanced patterns e.g. wit... | PypiClean |
/dsin100daysv32-6.0.1.tar.gz/dsin100daysv32-6.0.1/notebook/static/components/codemirror/addon/hint/html-hint.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("./xml-hint"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror", "./xml-hint"], mod);
else // Plain browser env
mod(CodeMirr... | PypiClean |
/lsst-ctrl-bps-parsl-26.0.0a20225300.tar.gz/lsst-ctrl-bps-parsl-26.0.0a20225300/python/lsst/ctrl/bps/parsl/site.py | from abc import ABC, abstractmethod
from types import ModuleType
from typing import TYPE_CHECKING, List, Optional
from lsst.ctrl.bps import BpsConfig
from lsst.utils import doImport
from parsl.addresses import address_by_hostname
from parsl.executors.base import ParslExecutor
from parsl.monitoring import MonitoringHub... | PypiClean |
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/route53resolver/associate-resolver-rule.rst | **To associate a Resolver rule with a VPC**
The following ``associate-resolver-rule`` example associates a Resolver rule with an Amazon VPC. After you run the command, Resolver starts to forward DNS queries to your network based on the settings in the rule, such as the domain name of the queries that are forwarded. ::... | PypiClean |
/matplotlib_arm64-3.3.4-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/matplotlib/ticker.py | import itertools
import logging
import locale
import math
from numbers import Integral
import numpy as np
import matplotlib as mpl
from matplotlib import cbook
from matplotlib import transforms as mtransforms
_log = logging.getLogger(__name__)
__all__ = ('TickHelper', 'Formatter', 'FixedFormatter',
'Null... | PypiClean |
/PyTyrion-1.0.1.tar.gz/PyTyrion-1.0.1/Tyrion/Framework.py |
class FrameworkFactory(object):
__framework = None
@staticmethod
def set_framework(framework):
FrameworkFactory.__framework = framework
@staticmethod
def get_framework():
return FrameworkFactory.__framework
class BaseFramework(object):
def get_argument(self, request, name,... | PypiClean |
/azure-mgmt-rdbms-10.2.0b6.zip/azure-mgmt-rdbms-10.2.0b6/azure/mgmt/rdbms/mysql/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 |
/ros-groovy-job-generation-0.2.9.tar.gz/ros-groovy-job-generation-0.2.9/scripts/generate_groovy_prerelease.py |
import traceback
# template to create pre-release hudson configuration file
HUDSON_PRERELEASE_CONFIG = """<?xml version='1.0' encoding='UTF-8'?>
<project>
<description>Pre-release build of STACKNAME for ROSDISTRO on UBUNTUDISTRO, ARCH</description>
<logRotator>
<daysToKeep>180</daysToKeep>
<numToKeep>-... | PypiClean |
/trustedtwin_utils-0.1.20230830144542.tar.gz/trustedtwin_utils-0.1.20230830144542/trustedtwin_utils/json/tt_signed_json.py | import string
import json
from typing import Any, Dict, List, Tuple, Union, Optional, Final
from base64 import b64encode
from hashlib import blake2b
from json import JSONDecoder
from pydantic.json import pydantic_encoder
# Default signature generator
_SIGNATURE_DIGEST_LEN: Final[int] = 32
_SKIP_CHARS = string.white... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/device_management_configuration_redirect_setting_definition.py | from __future__ import annotations
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
if TYPE_CHECKING:
from . import device_management_configuration_setting_definition
from . import device_management_c... | PypiClean |
/ka-lite-0.17.6b4.tar.gz/ka-lite-0.17.6b4/kalite/distributed/static/js/distributed/perseus/ke/local-only/localeplanet/icu.af-NA.js | (function() {
var dfs = {"am_pm":["vm.","nm."],"day_name":["Sondag","Maandag","Dinsdag","Woensdag","Donderdag","Vrydag","Saterdag"],"day_short":["So","Ma","Di","Wo","Do","Vr","Sa"],"era":["v.C.","n.C."],"era_name":["voor Christus","na Christus"],"month_name":["Januarie","Februarie","Maart","April","Mei","Junie","Juli... | PypiClean |
/VEP_Core-1.01.zip/VEP_Core-1.01/vep_core/Ity/Utilities/FilePaths.py | __author__ = 'kohlmannj'
import os
import re
from collections import OrderedDict
def get_file_paths(
paths=(),
patterns=None,
recursion_levels=8,
valid_paths=set(),
excluded_paths=set(),
debug=False
):
"""
Given a list of paths, returns two sets of file paths: one set containing
"... | PypiClean |
/discord_advert_framework-2.10.4-py3-none-any.whl/_discord/commands/options.py | from __future__ import annotations
import inspect
from enum import Enum
from typing import TYPE_CHECKING, Literal, Optional, Type, Union
from ..abc import GuildChannel, Mentionable
from ..channel import (
CategoryChannel,
DMChannel,
ForumChannel,
StageChannel,
TextChannel,
Thread,
VoiceCha... | PypiClean |
/ReviewBoard-5.0.5-py3-none-any.whl/reviewboard/htdocs/static/rb/js/views/reviewRequestEditorView.es6.36355812494a.js | (function() {
/**
* Base class for review request banners.
*
* This will render a banner based on the data provided by subclasses,
* and handle actions and editing of text fields.
*/
const BannerView = Backbone.View.extend({
className: 'banner',
title: '',
subtitle: '',
actions: [],
showChang... | PypiClean |
/cdktf_cdktf_provider_aws-17.0.2-py3-none-any.whl/cdktf_cdktf_provider_aws/data_aws_ssm_parameters_by_path/__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 DataAwsSsmParametersByPath(
_cdktf_9a9027ec.Terraf... | PypiClean |
/quantum-solver-library-1.0.1.tar.gz/quantum-solver-library-1.0.1/src/e91/eavesdropper.py |
# Author: J. Daniel Escánez
# Ingeniería Informática - Universidad de La Laguna
# Trabajo Fin de Grado: QuantumSolver
from e91.receiver import Receiver
from qiskit import QuantumCircuit, QuantumRegister, ClassicalRegister
from numpy.random import uniform
## The Eveasdropper entity in the E91 implementation
## @see h... | PypiClean |
/mera_tvm_runtime-1.4.0-cp36-cp36m-manylinux_2_27_x86_64.whl/tvm/exec/rpc_server.py | """Start an RPC server"""
import argparse
import logging
from .. import rpc
def main(args):
"""Main function
Parameters
----------
args : argparse.Namespace
parsed args from command-line invocation
"""
if args.tracker:
url, port = args.tracker.rsplit(":", 1)
port = int... | PypiClean |
/fair_lnc_evaluation-0.0.1.tar.gz/fair_lnc_evaluation-0.0.1/examples/fairnessbenchmarks.ipynb | # Example Notebook: Using `fair-lnc-evaluation` on fairness benchmark datasets
This notebook demonstrates the usage of `fair-lnc-evaluation` to empirically evaluate several noise correction methods on the *Adult* dataset (https://www.openml.org/search?type=data&status=active&id=43898).
## Setup
First, import the ne... | PypiClean |
/scikit_multilearn-0.2.0-py3-none-any.whl/skmultilearn/embedding/openne.py | from copy import copy
from openne.gf import GraphFactorization
from openne.graph import Graph
from openne.grarep import GraRep
from openne.hope import HOPE
from openne.lap import LaplacianEigenmaps
from openne.line import LINE
from openne.lle import LLE
import networkx as nx
import numpy as np
import tensorflow as tf
i... | PypiClean |
/cinder-tempest-plugin-1.9.0.tar.gz/cinder-tempest-plugin-1.9.0/cinder_tempest_plugin/plugin.py |
import os
import sys
from tempest import config
from tempest.test_discover import plugins
from cinder_tempest_plugin import config as project_config
class CinderTempestPlugin(plugins.TempestPlugin):
def load_tests(self):
"""Provides information to load the plugin tests.
:return: A tuple with t... | PypiClean |
/symsynd-3.0.0.zip/symsynd-3.0.0/llvm/docs/CommandGuide/llvm-dis.rst | llvm-dis - LLVM disassembler
============================
SYNOPSIS
--------
**llvm-dis** [*options*] [*filename*]
DESCRIPTION
-----------
The **llvm-dis** command is the LLVM disassembler. It takes an LLVM
bitcode file and converts it into human-readable LLVM assembly language.
If filename is omitted or speci... | PypiClean |
/apache_sedona-1.4.1-cp311-cp311-macosx_10_9_x86_64.whl/sedona/utils/meta.py |
import inspect
import types
from sedona.exceptions import InvalidParametersException
from typing import Any
try:
from typing import GenericMeta
except ImportError:
class GenericMeta(type):
pass
def is_subclass_with_typing(type_a: Any, type_b: Any):
if isinstance(type_a, GenericMeta) and isinst... | PypiClean |
/pynrc-1.0.4.tar.gz/pynrc-1.0.4/docs/api/_autosummary/pynrc.simul.ngNRC.rst | pynrc.simul.ngNRC
=================
.. automodule:: pynrc.simul.ngNRC
.. rubric:: Functions
.. autosummary::
:toctree:
add_col_noise
add_cosmic_rays
add_ipc
add_ppc
add_xtalk
apply_flat
create_level1b_FITS
fft_noise
gen_col_n... | PypiClean |
/ulif.openoffice-1.1.1.tar.gz/ulif.openoffice-1.1.1/src/ulif/openoffice/options.py | import re
from argparse import ArgumentParser
from ulif.openoffice.helpers import get_entry_points
#: Regular expression to check short argument names like ``-opt``.
RE_SHORT_NAME = re.compile('^-[a-zA-Z0-9][a-zA-Z0-9\-_]*$')
#: Regular expression to check long argument names like ``--option``.
RE_LONG_NAME = re.comp... | PypiClean |
/elastos_adenine-2.0.3.tar.gz/elastos_adenine-2.0.3/README.md | # Python-gRPC-client
This repository contains the python client library to interact with [Elastos Smart Web Service](https://github.com/cyber-republic/elastos-smartweb-service).
## Prerequisites
First, install Python3:
```
brew install python3 // On Mac
sudo apt-get install python3 // On Ubuntu
```
Normally, pip com... | PypiClean |
/came-pytorch-0.1.2.tar.gz/came-pytorch-0.1.2/came_pytorch/CAME.py | import math
import torch
import torch.optim
class CAME(torch.optim.Optimizer):
"""Implements CAME algorithm.
This implementation is based on:
`CAME: Confidence-guided Adaptive Memory Efficient Optimization`
Args:
params (iterable): iterable of parameters to optimize or dicts defining
... | PypiClean |
/soinn-0.2.1.tar.gz/soinn-0.2.1/README.md | ```
____ ___ ___ _ _ _ _
/ ___| / _ \_ _| \ | | \ | |
\___ \| | | | || \| | \| |
___) | |_| | || |\ | |\ |
|____/ \___/___|_| \_|_| \_|
```
SOINN is a blazing fast unsupervised clustering algorithm.
This is the repo for python package soinn.
## Install
`
pip install soinn
`
## Build by hand
`
python -m... | PypiClean |
/soak-21.tar.gz/soak-21/README.md | # soak
Process aridity templates en masse, like Helm but much more DRY
## Advantages
* Single sourcing of config i.e. DRY
* No need for all of your team to know Helm's many conventions
* Terraform native customisation is limited and verbose, and the override mechanism is another convention
* Multiple instances of your... | PypiClean |
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/ec2/vpn_gateway_attachment.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['VpnGatewayAttachmentArgs', 'VpnGatewayAttachment']
@pulumi.input_type
class VpnGatewayAttachmentArgs:
def __init__(__self__, *,
... | PypiClean |
/lmcmlflow-1.17.1.2-py3-none-any.whl/mlflow/tracking/artifact_utils.py | import pathlib
import posixpath
import shutil
import tempfile
import urllib.parse
from mlflow.exceptions import MlflowException
from mlflow.protos.databricks_pb2 import INVALID_PARAMETER_VALUE
from mlflow.store.artifact.artifact_repository_registry import get_artifact_repository
from mlflow.store.artifact.dbfs_artifac... | PypiClean |
/odoo_addon_crm_salesperson_planner-15.0.1.0.0.11-py3-none-any.whl/odoo/addons/crm_salesperson_planner/models/calendar_event.py |
from odoo import _, fields, models
from odoo.exceptions import ValidationError
class CalendarEvent(models.Model):
_inherit = "calendar.event"
salesperson_planner_visit_ids = fields.One2many(
string="Salesperson Visits",
comodel_name="crm.salesperson.planner.visit",
inverse_name="cale... | PypiClean |
/realcugan-ncnn-vulkan-python-1.0.2.tar.gz/realcugan-ncnn-vulkan-python-1.0.2/realcugan_ncnn_vulkan_python/realcugan-ncnn-vulkan/src/ncnn/python/pybind11/docs/advanced/pycpp/numpy.rst | .. _numpy:
NumPy
#####
Buffer protocol
===============
Python supports an extremely general and convenient approach for exchanging
data between plugin libraries. Types can expose a buffer view [#f2]_, which
provides fast direct access to the raw internal data representation. Suppose we
want to bind the following sim... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.