id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/irida_uploader_cl-0.2.tar.gz/irida_uploader_cl-0.2/irida_uploader_cl/core/model_validator.py | from cerberus import Validator
import irida_uploader_cl.model as model
def validate_sequencing_run(sequencing_run):
"""
Validate a SequencingRun object for upload to irida
If the parser is working as intended (and has proper validation) this should never return
a ValidationResult with a list of erro... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/teams/item/primary_channel/messages/count/count_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 |
/mlx-component-catalog-connector-0.1.1.tar.gz/mlx-component-catalog-connector-0.1.1/README.md | [](https://badge.fury.io/py/mlx-component-catalog-connector)
## Machine Learning Exchange catalog connector
This catalog connector enables Elyra to load Kubeflow Pipelines components from [Machine Learning Exchange](https://github.com/machin... | PypiClean |
/colossalai-nightly-2023.9.2.tar.gz/colossalai-nightly-2023.9.2/colossalai/auto_parallel/tensor_shard/node_handler/layer_norm_handler.py | from typing import Dict, List
import torch
from ..sharding_strategy import OperationData, OperationDataType
from .node_handler import MetaInfoModuleHandler, ModuleHandler
from .registry import operator_registry
from .strategy import LayerNormGenerator, StrategyGenerator
__all__ = ['LayerNormModuleHandler']
@operat... | PypiClean |
/modu-1.0.2.tar.gz/modu-1.0.2/examples/modusite/modusite/editable/itemdefs/release_itemdef.py |
import os, os.path
from modu import util
from modu.editable import define
from modu.editable.datatypes import string, boolean, fck
from modu.editable.datatypes import select, relational, date
from modusite.model import release
def release_prewrite_callback(req, frm, storable):
filename = getattr(storable, 'filenam... | PypiClean |
/mkdocs_material-9.2.7-py3-none-any.whl/material/assets/javascripts/lunr/min/lunr.stemmer.support.min.js | !function(r,t){"function"==typeof define&&define.amd?define(t):"object"==typeof exports?module.exports=t():t()(r.lunr)}(this,function(){return function(r){r.stemmerSupport={Among:function(r,t,i,s){if(this.toCharArray=function(r){for(var t=r.length,i=new Array(t),s=0;s<t;s++)i[s]=r.charCodeAt(s);return i},!r&&""!=r||!t&... | PypiClean |
/yafowil.widget.dynatree-1.6.tar.gz/yafowil.widget.dynatree-1.6/src/yafowil/widget/dynatree/example.py | from yafowil.base import factory
from yafowil.compat import IS_PY2
import json
import os
if IS_PY2:
from urlparse import urlparse
from urlparse import parse_qs
else:
from urllib.parse import urlparse
from urllib.parse import parse_qs
def json_response(url):
purl = urlparse(url)
qs = parse_qs... | PypiClean |
/sigmatools-0.23.1.tar.gz/sigmatools-0.23.1/sigma/backends/hawk.py |
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be usefu... | PypiClean |
/ai_dataproc-0.1.0-py3-none-any.whl/dataproc/zio/broker.py | import logging
import multiprocessing as mp
# from logging import NullHandler
# import threading
from typing import Optional
import zmq
from dataproc.utils import set_logger
from dataproc.zio.utils import check_address_or_new
from hashes.generators import Hash96
FINISH = b"-99"
class Broker:
def __init__(self,... | PypiClean |
/pyfate-2.0.0a0.tar.gz/pyfate-2.0.0a0/fate/arch/computing/spark/_csession.py | import logging
from typing import Iterable
from .._computing import Address, CSessionABC
from ._table import from_hdfs, from_hive, from_localfs, from_rdd
LOGGER = logging.getLogger(__name__)
class CSession(CSessionABC):
"""
manage RDDTable
"""
def __init__(self, session_id):
self._session_i... | PypiClean |
/RsCMPX_NrFr2Meas-4.0.185-py3-none-any.whl/RsCMPX_NrFr2Meas/Implementations/NrMmwMeas/MultiEval/ListPy/SeMask/TxPower/__init__.py | from .......Internal.Core import Core
from .......Internal.CommandsGroup import CommandsGroup
# noinspection PyPep8Naming,PyAttributeOutsideInit,SpellCheckingInspection
class TxPowerCls:
"""TxPower commands group definition. 9 total commands, 5 Subgroups, 0 group commands"""
def __init__(self, core: Core, parent):... | PypiClean |
/tap-github-2.0.5.tar.gz/tap-github-2.0.5/tap_github/sync.py | import collections
import singer
from singer import bookmarks
from tap_github.streams import STREAMS
LOGGER = singer.get_logger()
STREAM_TO_SYNC_FOR_ORGS = ['teams', 'team_members', 'team_memberships']
def get_selected_streams(catalog):
'''
Gets selected streams. Checks schema's 'selected'
first -- and t... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/machinelearningservices/v20230401/get_registry.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__ = [
'GetRegistryResult',
'AwaitableGetRegistryResult',
'get_registry',
'get_registry_output',
]
@pulumi.output_... | PypiClean |
/python-parakeet-0.4.5.tar.gz/python-parakeet-0.4.5/pybind11/docs/limitations.rst | Limitations
###########
Design choices
^^^^^^^^^^^^^^
pybind11 strives to be a general solution to binding generation, but it also has
certain limitations:
- pybind11 casts away ``const``-ness in function arguments and return values.
This is in line with the Python language, which has no concept of ``const``
val... | PypiClean |
/aifs_nni-1.9.5-py3-none-manylinux1_x86_64.whl/aifs_nni-1.9.5.data/data/nni/node_modules/ms/license.md | The MIT License (MIT)
Copyright (c) 2020 Vercel, Inc.
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, pub... | PypiClean |
/TimeEval-1.2.10-py3-none-any.whl/timeeval/metrics/auc_metrics.py | from abc import ABC
from typing import Iterable, Callable
import numpy as np
from sklearn.metrics import auc, roc_curve, precision_recall_curve
from .metric import Metric
class AucMetric(Metric, ABC):
"""Base class for area-under-curve-based metrics.
All AUC-Metrics support continuous scorings, calculate t... | PypiClean |
/stackdio-server-0.8.0a4.tar.gz/stackdio-server-0.8.0a4/stackdio/ui/static/stackdio/lib/bower_components/requirejs-domReady/domReady.js | window: false, clearInterval: false, document: false,
self: false, setInterval: false */
define(function () {
'use strict';
var isTop, testDiv, scrollIntervalId,
isBrowser = typeof window !== "undefined" && window.document,
isPageLoaded = !isBrowser,
doc = isBrowser ? document : n... | PypiClean |
/jaffle2-0.2.5.tar.gz/jaffle2-0.2.5/docs/commands/console.rst | ==============
jaffle console
==============
Opens an interactive shell and attaches to the specified kernel instance.
Type ``ctrl-c`` or ``ctrl-d`` to stop it.
Usage
=====
.. code-block:: sh
jaffle console <kernel_instance_name> [options]
The default value for ``conf_file`` is ``"jaffle.hcl"``.
Options
====... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_24/models/volume_response.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_24 import models
class VolumeResponse(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is... | PypiClean |
/django-wildewidgets-0.16.12.tar.gz/django-wildewidgets-0.16.12/wildewidgets/widgets/structure.py | from copy import deepcopy
import random
from typing import Any, Dict, List, Optional, Type, Tuple, Union
from urllib.parse import urlencode
from django.core.exceptions import ImproperlyConfigured
from django.core.paginator import InvalidPage, Paginator
from django.db.models import QuerySet, Model
from django.http impo... | PypiClean |
/cloud_shepherd-2.0.5-py3-none-any.whl/shepherd/cmdline.py | import sys
import os
import re
from .utils.cmdline_controller import Handler as Handler
from . import __doc__ as program_docstring
from . import errors
basic_options='hdi:ynws:m:RSvq'
basic_long_options=['help', 'inventory-file=', 'confirm', 'dry-run', 'quiet',
'poll', 'interval=', 'max-poll=',
... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/analysisservices/v20170801beta/list_server_gateway_status.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = [
'ListServerGatewayStatusResult',
'AwaitableListServerGatewayStatusResult',
'list_server_gateway_status',
]
@pulumi.output_type
class ListServerGat... | PypiClean |
/rss_to_graphql-0.0.1.tar.gz/rss_to_graphql-0.0.1/rss_to_graphql/schema.py | import json, re, requests
import xmltodict
import random
import graphene, base64
from rx import Observable
import redis
import hashlib
# sanitise keys
def postprocessor(path, key, value):
key = key.replace(':', '_')
key = re.sub(r'\W', '', key)
return key, value
global cache
cache = []
class map_sc... | PypiClean |
/awlsim-0.76.0.tar.gz/awlsim-0.76.0/awlsimhw_pixtend/main.py |
from __future__ import division, absolute_import, print_function, unicode_literals
#from awlsim.common.cython_support cimport * #@cy
from awlsim.common.compat import *
from awlsim.common.util import *
from awlsim.common.enumeration import *
from awlsim.common.exceptions import *
from awlsim.common.datatypehelpers im... | PypiClean |
/aeropy-0.2.tar.gz/aeropy-0.2/examples/airfoil_analysis.py | import numpy as np
import matplotlib.pyplot as plt
import aeropy.airfoils.shapes
import aeropy.airfoils.analysis
# The code needs to be wrapped in order to allow for safe multiprocessing
if __name__ == '__main__':
# Set up airfoil and aoa range
alphas = np.arange(0, 13, 3) * np.pi / 180.
x, y = aeropy.ai... | PypiClean |
/pod-user-operation-1.0.2.tar.gz/pod-user-operation-1.0.2/user_operation/main.py | from os import path
from pod_base import PodBase, calc_offset
class PodUserOperation(PodBase):
def __init__(self, api_token, token_issuer="1", server_type="sandbox", config_path=None,
sc_api_key="", sc_voucher_hash=None):
here = path.abspath(path.dirname(__file__))
self._services... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/customerinsights/get_connector_mapping.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
from . import outputs
__all__ = [
'GetConnectorMappingResult',
'AwaitableGetConnectorMappingResult',
'get_connector_mapping',
]
@pulumi.output_type
class GetCo... | PypiClean |
/fonttools-4.42.1-cp39-cp39-macosx_10_9_x86_64.whl/fontTools/cu2qu/cu2qu.py |
# Copyright 2015 Google Inc. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or ... | PypiClean |
/StackAPI-0.2.0.tar.gz/StackAPI-0.2.0/README.rst | This is a Python wrappers for the `Stack Exchange
API <http://api.stackexchange.com/>`__. This library supports Stack
Exchange API v2.2.
.. image:: https://readthedocs.org/projects/stackapi/badge/?version=latest
:target: http://stackapi.readthedocs.io/en/latest/?badge=latest
:alt: Documentation Status
This librar... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/snippets/haskell.js | ace.define("ace/snippets/haskell",["require","exports","module"], function(require, exports, module) {
"use strict";
exports.snippetText = "snippet lang\n\
{-# LANGUAGE ${1:OverloadedStrings} #-}\n\
snippet info\n\
-- |\n\
-- Module : ${1:Module.Namespace}\n\
-- Copyright : ${2:Author} ${3:2011-2012}\n\
... | PypiClean |
/home_assistant_frontend-20230901.0-py3-none-any.whl/hass_frontend/frontend_es5/20549-W8cDGlBJDoQ.js | "use strict";(self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[20549],{53918:function(e,t,i){i.r(t),i.d(t,{Button:function(){return u}});var n=i(33368),a=i(71650),r=i(69205),o=i(70906),l=i(43204),s=i(79932),d=i(3071),c=i(3712),u=function(e){(0,r.Z)(i,e);var t=(0,o.Z)(i);func... | PypiClean |
/spotify_cli-0.3.11-py3-none-any.whl/cli/commands/queue.py | import click
from ..utils import Spotify
from ..utils.parsers import *
from ..utils.functions import cut_string
from ..utils.exceptions import AuthScopeError, FeatureInDevelopment
@click.command(options_metavar='[<options>]')
@click.option(
'--track', 'queue_type', flag_value='track', default=True,
help='(de... | PypiClean |
/monaco_racing_report_kir_boh-14.4.4.tar.gz/monaco_racing_report_kir_boh-14.4.4/src/build_report/processing_dicts.py | from datetime import datetime, timedelta
import logging
import warnings
from . import constants
def inserts_info_into_ordered_racers_dict(time_list, dict_with_racers_info):
'''Return dict which keys are places(1-20) and values are list [driver's name, comand, time]. Since time_list is
ordered, for each time f... | PypiClean |
/cohesity_management_sdk-1.10.1.tar.gz/cohesity_management_sdk-1.10.1/cohesity_management_sdk/models/dag_info.py |
import cohesity_management_sdk.models.dag_application_server_info
import cohesity_management_sdk.models.exchange_dag_protection_preference
class DagInfo(object):
"""Implementation of the 'DagInfo' model.
Specifies the information about the DAG(Database availability group).
Attributes:
dag_ap... | PypiClean |
/dask_sql-2023.8.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/dask_sql/integrations/ipython.py | import time
from typing import TYPE_CHECKING, Dict, List
from dask_sql.mappings import _SQL_TO_PYTHON_FRAMES
from dask_sql.physical.rex.core import RexCallPlugin
if TYPE_CHECKING:
import dask_sql
# That is definitely not pretty, but there seems to be no better way...
KEYWORDS = [
"and",
"as",
"asc",
... | PypiClean |
/luas.py-0.3.3.tar.gz/luas.py-0.3.3/luas/models/__init__.py | from enum import Enum
LUAS_STOPS = [
{
"abrev": "TPT",
"isParkRide": "0",
"isCycleRide": "0",
"lat": "53.34835",
"long": "-6.22925833333333",
"pronunciation": "The Point",
"name": "The Point"
},
{
"abrev": "SDK",
"isParkRide": "0",
"isCycleRide": "0",
"lat": "53.348822... | PypiClean |
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/postcss-ordered-values/dist/rules/transition.js | 'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = normalizeTransition;
var _postcssValueParser = require('postcss-value-parser');
var _cssnanoUtilGetArguments = require('cssnano-util-get-arguments');
var _cssnanoUtilGetArguments2 = _interopRequireDefault(_cssnanoUtil... | PypiClean |
/maxheapq-0.0.4.tar.gz/maxheapq-0.0.4/src/maxheap/maxheap.py | __about__ = """Heap queues
[explanation by François Pinard]
Max Heaps are arrays for which a[k] >= a[2*k+1] and a[k] >= a[2*k+2] for
all k, counting elements from 0. For the sake of comparison,
non-existing elements are considered to be -infinite. The interesting
property of a max heap is that a[0] is always its larg... | PypiClean |
/holoviews_samap-2.0.0.tar.gz/holoviews_samap-2.0.0/examples/reference/elements/plotly/Bounds.ipynb | #### **Title**: Bounds Element
**Dependencies**: Plotly
**Backends**: [Bokeh](../bokeh/Bounds.ipynb), [Matplotlib](../matplotlib/Bounds.ipynb), [Plotly](./Bounds.ipynb)
```
import holoviews as hv
from holoviews import opts
hv.extension('plotly')
```
A ``Bounds`` element is an box shaped annotation that is specified... | PypiClean |
/aws-cdk.app-delivery-1.204.0.tar.gz/aws-cdk.app-delivery-1.204.0/src/aws_cdk/app_delivery/__init__.py | import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import typing_extensions
from typeguard import check_type
from ._jsii import *
import aws_cdk.aws_cloudformation as _aws_cdk_aws_cloudformation_6e482e6f
import aws_cdk.aws_codepipeline as _aws_cdk_aws_codepipeline_00... | PypiClean |
/mu_python_library-0.4.7-py3-none-any.whl/MuPythonLibrary/TPM/Tpm2Stream.py |
import struct
class Tpm2StreamElement(object):
def __init__(self):
self.pack_string = ""
"""This get_size refers to the size of this structure when marshalled"""
def get_size(self):
return struct.calcsize(self.pack_string)
class Tpm2StreamPrimitive(Tpm2StreamElement):
def __init_... | PypiClean |
/batch_automation-0.0.3-py3-none-any.whl/batch_automation/deadline/api/JobReports.py | from __future__ import absolute_import
from .ConnectionProperty import ConnectionProperty
class JobReports:
"""
Class used by DeadlineCon to send Job Report requests.
Stores the address of the Web Service for use in sending requests.
"""
def __init__(self, connectionProperties):
se... | PypiClean |
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/syntax/_d.py | __author__ = "Cody Precord <cprecord@editra.org>"
__svnid__ = "$Id: _d.py 68798 2011-08-20 17:17:05Z CJP $"
__revision__ = "$Revision: 68798 $"
#-----------------------------------------------------------------------------#
# Imports
import wx
import wx.stc as stc
# Local Imports
import synglob
import syndata
from _c... | PypiClean |
/lcu_connector-1.0.2-py3-none-any.whl/lcu_connector/riot.py | from pathlib import Path
from psutil import WINDOWS, Process, process_iter
from requests import request
from .exceptions import ClientProcessError, MissingLockfileError
class Lockfile:
"""Class that manages the lockfile and its data.
Attributes:
path (str): The path of the lockfile.
name (s... | PypiClean |
/cubicweb-4.1.0.tar.gz/cubicweb-4.1.0/doc/book/devweb/facets.rst | .. include:: warning.rst
The facets system
-----------------
Facets allow to restrict searches according to some user friendly criterias.
CubicWeb has a builtin `facet`_ system to define restrictions `filters`_ really
as easily as possible.
Here is an exemple of the facets rendering picked from our
http://www.cubicw... | PypiClean |
/tasky-0.8.1.tar.gz/tasky-0.8.1/README | Tasky
=====
Python asyncio framework for task-based execution.
.. image:: https://travis-ci.org/jreese/tasky.svg?branch=master
:target: https://travis-ci.org/jreese/tasky
Overview
--------
Tasky provides a framework for using Python's asyncio module to encapsulate
execution of your program or service as a set ... | PypiClean |
/google-ads-21.3.0.tar.gz/google-ads-21.3.0/google/ads/googleads/v14/services/services/extension_feed_item_service/transports/grpc.py | import warnings
from typing import Callable, Dict, Optional, Sequence, Tuple
from google.api_core import grpc_helpers
from google.api_core import gapic_v1
import google.auth # type: ignore
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # ty... | PypiClean |
/sigma.coding-0.1.0-py3-none-any.whl/sigma/finnews/cnn_finance.py | from enum import Enum
from typing import List
from typing import Dict
from typing import Union
import finnews.news_enum as enums_news
from finnews.parser import NewsParser
class CNNFinance():
def __init__(self):
"""Initializes the `CNNFinance` client."""
# Define the URL used to query feeds.
... | PypiClean |
/robotframework-python3-2.9.tar.gz/robotframework-python3-2.9/atest/testdata/standard_libraries/remote/remoteserver.py | from six import PY3
import inspect
import sys
if PY3:
from xmlrpc.server import SimpleXMLRPCServer
else:
from SimpleXMLRPCServer import SimpleXMLRPCServer
class RemoteServer(SimpleXMLRPCServer):
def __init__(self, library, port=8270, port_file=None):
SimpleXMLRPCServer.__init__(self, ('127.0.0.1... | PypiClean |
/invoke-release-5.0.0b2.tar.gz/invoke-release-5.0.0b2/invoke_release/plugins/base.py | from enum import Enum
import os
from typing import (
Generator,
List,
Optional,
)
from invoke_release.errors import ReleaseFailure
__all__ = (
'AbstractInvokeReleasePlugin',
'ReleaseStatus',
)
class ReleaseStatus(Enum):
NOT_PUSHED = 'NOT_PUSHED'
PUSHED = 'PUSHED'
ROLLED_BACK = 'ROLL... | PypiClean |
/vsc-utils-2.1.10.tar.gz/vsc-utils-2.1.10/lib/vsc/utils/timestamp_pid_lockfile.py | import errno
import logging
import os
import signal
import time
from lockfile.linklockfile import LockBase, LockFailed, NotLocked, NotMyLock
from vsc.utils.py2vs3 import FileNotFoundErrorExc, FileExistsErrorExc
class LockFileReadError(Exception):
'''Exception raised when we cannot get the expected information fro... | PypiClean |
/robot-model-tools-0.1.0.tar.gz/robot-model-tools-0.1.0/src/robmodel/ordering.py | import logging
import networkx as nx
import robmodel.connectivity
log = logging.getLogger(__name__)
class Robot(robmodel.connectivity.Robot):
'''
The composition of a basic robot model with a numbering scheme for the links.
A numeric code for each link and joint is required.
The codes for the links m... | PypiClean |
/seleccioninstancias-0.5.tar.gz/seleccioninstancias-0.5/paqueteseleccioninstancias/pruebas_uso_no_equilibrados.py | from datos_no_equilibrados import *
from sklearn import datasets
from sklearn.neighbors import KNeighborsClassifier
from sklearn.metrics import classification_report
from sklearn.model_selection import train_test_split
from sklearn.metrics.pairwise import rbf_kernel, polynomial_kernel,euclidean_distances
from sklearn i... | PypiClean |
/argo-workflows-fvdnabee-3.6.1.tar.gz/argo-workflows-fvdnabee-3.6.1/docs/IoK8sApimachineryPkgApisMetaV1ListMeta.md | # IoK8sApimachineryPkgApisMetaV1ListMeta
ListMeta describes metadata that synthetic resources must have, including lists and various status objects. A resource may have only one of {ObjectMeta, ListMeta}.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**_co... | PypiClean |
/pipelinewise_tap_zuora-1.0.0-py3-none-any.whl/tap_zuora/apis.py | import pendulum
import singer
from singer import metadata
MAX_EXPORT_DAYS = 30
SYNTAX_ERROR = "There is a syntax error in one of the queries in the AQuA input"
NO_DELETED_SUPPORT = ("Objects included in the queries do not support the querying of deleted "
"records. Remove Deleted section in the ... | PypiClean |
/visible_model_runner-0.0.2-py3-none-any.whl/visible_model_runner/ConfigOption.py | import datetime
import re
import textwrap
from typing import Any, Callable, Optional
from visible_model_runner.logger import get_logger
LOGGER = get_logger(__name__)
class ConfigOption(object):
'''Stores a Streamlit configuration option.
A configuration option, like 'browser.serverPort', which indicates wh... | PypiClean |
/ask-sdk-model-1.82.0.tar.gz/ask-sdk-model-1.82.0/ask_sdk_model/interfaces/alexa/presentation/apl/scroll_to_index_command.py |
#
# Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file
# except in compliance with the License. A copy of the License is located at
#
# http://aws.amazon.com/apache2.0/
#
# or in the "license" file accomp... | PypiClean |
/filament_augmentation_engine-0.0.3.tar.gz/filament_augmentation_engine-0.0.3/filament_augmentation/augment/augment_error.py | import os
import PIL
from CONSTANTS import _LEFT_CHIRALITY, _RIGHT_CHIRALITY, _UNDEFINED_CHIRALITY
from filament_augmentation.generator._filament_generator import _FilamentGenerator
from filament_augmentation.metadata.filament_metadata import FilamentMetadata
from filament_augmentation.transforms import _transformatio... | PypiClean |
/py_pdf_term-1.1.0.tar.gz/py_pdf_term-1.1.0/py_pdf_term/endtoend/_endtoend/caches/styling/base.py | from abc import ABCMeta, abstractmethod
from py_pdf_term.stylings import PDFStylingScoreList
from ...configs import StylingLayerConfig
class BaseStylingLayerCache(metaclass=ABCMeta):
"""Base class for styling layer caches. A styling layer cache is expected to store
and load styling scores per a PDF file.
... | PypiClean |
/pharmpy-core-0.101.0.tar.gz/pharmpy-core-0.101.0/docs/model.rst | .. _model:
=================
The Pharmpy model
=================
At the heart of Pharmpy lies its non-linear mixed effects model abstraction. A model needs to follow the interface of
the base model class :py:class:`pharmpy.model.Model`. This means that any model format can in theory be supported by
Pharmpy via subcla... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/AlipayEcoMycarMaintainBizorderUpdateRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayEcoMycarMaintainBizorderUpdateModel import AlipayEcoMycarMaintainBizorderUpdateModel
class AlipayEcoMycarMaintainBizorderUpdateRequest(object):
def __init__(self, biz_... | PypiClean |
/globus_compute_endpoint-2.3.2-py3-none-any.whl/globus_compute_endpoint/engines/process_pool.py | from __future__ import annotations
import logging
import multiprocessing
import queue
import typing as t
import uuid
from concurrent.futures import Future
from concurrent.futures import ProcessPoolExecutor as NativeExecutor
import psutil
from globus_compute_common.messagepack.message_types import (
EPStatusReport... | PypiClean |
/py_rouge-1.1-py3-none-any.whl/rouge/synonyms.py | from nltk.corpus import wordnet
from nltk.wsd import lesk
import spacy
mapping_pos_spacy_pos_wordnet = {'VERB': wordnet.VERB,
'NOUN': wordnet.NOUN,
'ADJ': wordnet.ADJ,
'ADV': wordnet.ADV}
def parse_sentences(sentences... | PypiClean |
/gym_idsgame-1.0.13.tar.gz/gym_idsgame-1.0.13/gym_idsgame/agents/training_agents/q_learning/tabular_q_learning/tabular_q_agent.py | from typing import Union
import numpy as np
import time
import tqdm
import os
from gym_idsgame.envs.rendering.video.idsgame_monitor import IdsGameMonitor
from gym_idsgame.agents.training_agents.q_learning.q_agent_config import QAgentConfig
from gym_idsgame.envs.idsgame_env import IdsGameEnv
from gym_idsgame.agents.dao.... | PypiClean |
/operalib-0.2b10.tar.gz/operalib-0.2b10/examples/plot_ovk_regression_cf_semisup.py | import operalib as ovk
import numpy as np
import matplotlib.pyplot as plt
from sklearn.cross_validation import train_test_split
from sklearn.kernel_ridge import KernelRidge
# Generate data
np.random.seed(0)
X, y = ovk.toy_data_curl_free_field(n=2000)
Xc = X.copy()
# Add some noise
yc = y.copy() + .075 * np.random.rand... | PypiClean |
/SmartGarden-1.0.1.tar.gz/SmartGarden-1.0.1/src/repository_dynamo.py | import datetime as datetime
import boto3
from src import aws_publish_raspberry_server as core, log_util
def post_max_data(data):
try:
new_data = {
"id": "id_smartgarden",
"Items": [data]
}
core.publish_max_data(new_data)
except:
import sys
log_... | PypiClean |
/fabric_fss_utils-1.4.0-py3-none-any.whl/fss_utils/jwt_validate.py | import requests
import jwt
import json
import datetime
from .jwt_manager import ValidateCode
class JWTValidator:
"""This class caches keys retrieved from a specified endpoint
and uses them to validate provided JWTs"""
def __init__(self, *, url, refresh_period, audience=None):
""" Initialize a va... | PypiClean |
/apis_core-0.18.14.tar.gz/apis_core-0.18.14/apis_core/apis_tei/management/commands/places_to_tei.py | import lxml.etree as ET
from django.core.management.base import BaseCommand
from tqdm import tqdm
from apis_core.apis_entities.models import Place
from apis_core.apis_tei.tei_utils import get_node_from_template, tei_header
class Command(BaseCommand):
help = 'Command to serialize APIS Places to XML/TEI places.xml'... | PypiClean |
/pulumi_gcp_native-0.0.2a1617829075.tar.gz/pulumi_gcp_native-0.0.2a1617829075/pulumi_gcp_native/dialogflow/v2/agent_knowledge_base.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = ['AgentKnowledgeBase']
class AgentKnowledgeBase(pulumi.CustomResource):
def __init__(__self__,
resource_name: str,
opts: ... | PypiClean |
/rabbitmq-metrics-to-graphite-0.5.tar.gz/rabbitmq-metrics-to-graphite-0.5/README.md | # rabbitmq-metrics-to-graphite
Read datas from RABBITMQ and send metrics to Graphite
## How to install
### Using ``pip``
```:sh
pip install rabbitmq-metrics-to-graphite
```
### From git rpo
```:sh
git clone https://github.com/orachide/rabbitmq-metrics-to-graphite.git
cd rabbitmq-metrics-to-graphite
python setup.py ... | PypiClean |
/sf-elastic-apm-6.13.2.tar.gz/sf-elastic-apm-6.13.2/README.rst | elastic-apm -- Elastic APM agent for Python
===========================================
.. image:: https://apm-ci.elastic.co/buildStatus/icon?job=apm-agent-python%2Fapm-agent-python-mbp%2Fmain
:target: https://apm-ci.elastic.co/job/apm-agent-python/job/apm-agent-python-mbp/
:alt: Build Status
.. image:: https... | PypiClean |
/dna_yolov5_torch-1.0.1-py3-none-any.whl/models/common.py | import logging
import math
import warnings
from copy import copy
from pathlib import Path
import numpy as np
import pandas as pd
import requests
import torch
import torch.nn as nn
from PIL import Image
from torch.cuda import amp
from utils.datasets import exif_transpose, letterbox
from utils.general import non_max_su... | PypiClean |
/ofxstatement-be-triodos-0.0.1.tar.gz/ofxstatement-be-triodos-0.0.1/README.rst | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Triodos BE plugin for ofxstatement
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This project provides an `ofxstatement`_ plugin for converting the Belgian Triodos bank's CSV format statements to OFX.
`ofxstatement`_ is a tool to convert proprietary bank statement to OFX format,
suitable for ... | PypiClean |
/pyOpenSSL-23.2.0.tar.gz/pyOpenSSL-23.2.0/doc/api/crypto.rst | .. _openssl-crypto:
:py:mod:`crypto` --- Generic cryptographic module
=================================================
.. py:module:: OpenSSL.crypto
:synopsis: Generic cryptographic module
.. note::
`pyca/cryptography`_ is likely a better choice than using this module.
It contains a complete set of cryp... | PypiClean |
/ivre-0.9.20.tar.gz/ivre-0.9.20/doc/usage/web-ui.rst | Web User Interface
==================
This web interface presents results of the ``view`` purpose (see
:ref:`overview/principles:Purposes`) that can be filtered with
keywords (for some of them, shortcuts are available in the menus).
Keep in mind that the information available in this interface highly
depends on the o... | PypiClean |
/object_detection_tf-0.1.2-py3-none-any.whl/object_detection/dataset_tools/context_rcnn/generate_detection_data.py | r"""A Beam job to generate detection data for camera trap images.
This tools allows to run inference with an exported Object Detection model in
`saved_model` format and produce raw detection boxes on images in tf.Examples,
with the assumption that the bounding box class label will match the image-level
class label in ... | PypiClean |
/plugin2cube-2.2.12.tar.gz/plugin2cube-2.2.12/control/jobber.py | str_about = '''
This module provides the Jobber class -- an object designed to simplify/
abstract running CLI. The actual command to run is specified as a string,
and the Jobber class executes the command, returning to the caller a
dictionary structure containing misc info such as <stdout>, <stderr>, an... | PypiClean |
/open-vsdcli-0.4.0.tar.gz/open-vsdcli-0.4.0/open_vsdcli/vsd_metadata.py | from open_vsdcli.vsd_common import *
@vsdcli.command(name='metadata-list')
@click.option('--entity', metavar='<name>', help="Can be any entity in VSD")
@click.option('--id', metavar='<ID>', help="ID of the entity")
@click.option('--global', 'is_global', is_flag=True,
help="Show global metadata instead o... | PypiClean |
/dq-notebook-6.0.2.tar.gz/dq-notebook-6.0.2/notebook/static/components/MathJax/jax/output/SVG/fonts/STIX-Web/Latin/Bold/Main.js | MathJax.OutputJax.SVG.FONTDATA.FONTS["STIXMathJax_Latin-bold"]={directory:"Latin/Bold",family:"STIXMathJax_Latin",weight:"bold",id:"STIXWEBLATINB",32:[0,0,250,0,0,""],160:[0,0,250,0,0,""],161:[501,203,333,82,252,"251 417c0 -47 -38 -85 -84 -85c-47 0 -85 38 -85 86c0 47 38 83 86 83c46 0 83 -37 83 -84zM153 254h29c13 -123 2... | PypiClean |
/pelican_featured_image-1.0.0.tar.gz/pelican_featured_image-1.0.0/tasks.py | from inspect import cleandoc
import logging
import os
from pathlib import Path
from shutil import which
from invoke import task
logger = logging.getLogger(__name__)
PKG_NAME = "featured_image"
PKG_PATH = Path(f"pelican/plugins/{PKG_NAME}")
ACTIVE_VENV = os.environ.get("VIRTUAL_ENV", None)
VENV_HOME = Path(os.enviro... | PypiClean |
/open3d_cpu-0.17.0-cp38-cp38-manylinux_2_27_x86_64.whl/open3d/_ml3d/torch/dataloaders/default_batcher.py | import re
import collections
import torch
container_abcs = collections.abc
string_classes = (str, bytes)
np_str_obj_array_pattern = re.compile(r'[SaUO]')
def default_convert(data):
r"""Converts each NumPy array data field into a tensor"""
elem_type = type(data)
if isinstance(data, torch.Tensor):
... | PypiClean |
/visaplan.plone.infohubs-1.2.0.tar.gz/visaplan.plone.infohubs-1.2.0/docs/LICENSE.rst | visaplan.plone.infohubs Copyright 2018, visaplan GmbH, Germany
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License version 2
as published by the Free Software Foundation.
This program is distributed in the hope that it will be useful,
but WITHOUT A... | PypiClean |
/zopyx.existdb-0.2.11.1.zip/zopyx.existdb-0.2.11.1/zopyx/existdb/browser/resources/ace-builds/textarea/src/theme-cloud9_night.js | __ace_shadowed__.define('ace/theme/cloud9_night', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
exports.isDark = true;
exports.cssClass = "ace-cloud9-night";
exports.cssText = ".ace-cloud9-night .ace_gutter {\
background: #303130;\
color: #eee\
}\
.ace-cloud9-night .ace_print-m... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/streptomycesghanaensis.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def StreptomycesGhanaensis(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/string",
**additional_graph_kwargs:... | PypiClean |
/scipy_mpmkp-1.4.1-cp37-cp37m-manylinux2014_aarch64.whl/scipy/ndimage/interpolation.py |
from __future__ import division, print_function, absolute_import
import itertools
import numpy
import warnings
from . import _ni_support
from . import _nd_image
from ._ni_docstrings import docdict
from scipy._lib import doccer
# Change the default 'reflect' to 'constant' via modifying a copy of docdict
docdict_copy... | PypiClean |
/powerful-pipes-log-viewer-1.0.0.tar.gz/powerful-pipes-log-viewer-1.0.0/powerful_pipes_log_viewer/action_show/action.py | import os
import sys
import json
import textwrap
from datetime import datetime
import click
import tabulate
from powerful_pipes_log_viewer import get_file_content_reports, LOG_LEVELS, \
LOG_LEVELS_NAMES
from .models import RunningConfigShow
def wrap(
text: str, width: int, color: str = None, center: bo... | PypiClean |
/monk_cuda101-0.0.1.tar.gz/monk_cuda101-0.0.1/monk/gluon/finetune/level_13_updates_main.py | from monk.gluon.finetune.imports import *
from monk.system.imports import *
from monk.gluon.finetune.level_12_losses_main import prototype_losses
class prototype_updates(prototype_losses):
'''
Main class for all parametric update functions
Args:
verbose (int): Set verbosity levels
... | PypiClean |
/cody-adapter-transformers-3.0.1.tar.gz/cody-adapter-transformers-3.0.1/src/adapter_transformers/models/deit/configuration_deit.py | """ DeiT model configuration"""
from ...configuration_utils import PretrainedConfig
from ...utils import logging
logger = logging.get_logger(__name__)
DEIT_PRETRAINED_CONFIG_ARCHIVE_MAP = {
"facebook/deit-base-distilled-patch16-224": "https://huggingface.co/facebook/deit-base-patch16-224/resolve/main/config.jso... | PypiClean |
/open-ephys-python-tools-0.1.6.tar.gz/open-ephys-python-tools-0.1.6/src/open_ephys/control/network_control.py | import zmq
import time
class NetworkControl:
"""
A class that communicates with the Open Ephys GUI's "Network Events" plugin
See: https://github.com/open-ephys-plugins/NetworkEvents for more info.
It can be used to start/stop acquisition, start/stop recording, and
send TTL events to... | PypiClean |
/pulumi_oci-1.9.0a1693465256.tar.gz/pulumi_oci-1.9.0a1693465256/pulumi_oci/core/get_virtual_circuit_bandwidth_shapes.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__ = [
'GetVirtualCircuitBandwidthShapesResult',
'AwaitableGetVirtualCircuitBandwidthShapesResult',
... | PypiClean |
/django-geoprisma-0.0.1.tar.gz/django-geoprisma-0.0.1/geoprisma/static/geoprisma/widgets/queryonclick/QueryOnClick.rst | .. _widget-queryonclick-label:
========================
QueryOnClick
========================
Widget that send GetFeatureInfo requests when the map is clicked. Only visible
layers are queried.
To display the query results, the widget must use one or more of theses
widgets :
* :ref:`widget-resultextgrid-label`
... | PypiClean |
/tripleo-quickstart-2.1.1.tar.gz/tripleo-quickstart-2.1.1/ci-scripts/full-deploy.sh | set -eux
: ${OPT_ADDITIONAL_PARAMETERS:=""}
: ${WORKSPACE:=$HOME/.quickstart}
: ${VIRTHOST:=127.0.0.1}
RELEASE=${1:-master-tripleo-ci}
# unused variable in script, kept for consistency
BUILD_SYS=${2:-delorean}
CONFIG=${3:-minimal}
JOB_TYPE=${4:-standalone}
if [ "$JOB_TYPE" = "gate" ] || \
[ "$JOB_TYPE" = "periodi... | PypiClean |
/fc-functions-framework-0.0.29.tar.gz/fc-functions-framework-0.0.29/src/functions_framework/event_conversion.py | import re
from datetime import datetime
from typing import Any, Optional, Tuple
from cloudevents.exceptions import MissingRequiredFields
from cloudevents.http import CloudEvent, from_http, is_binary
from functions_framework.background_event import BackgroundEvent
from functions_framework.exceptions import EventConve... | PypiClean |
/azure_mgmt_containerservice-26.0.0-py3-none-any.whl/azure/mgmt/containerservice/v2023_06_02_preview/aio/operations/_agent_pools_operations.py | from io import IOBase
from typing import Any, AsyncIterable, Callable, Dict, IO, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
... | PypiClean |
/asyncredis-0.3.0.tar.gz/asyncredis-0.3.0/README.md | <h1 align="center">
<sub>
<img src="https://media.discordapp.net/attachments/822902690010103818/923533249425313792/unknown.png" height="36">
</sub>
asyncredis
</h1>
<p align="center">
<sup>
An asyncio compatible Redis driver. Just a pet-project.
</sup>
<br>
<sup>
<!-- <a href="">Ubuntu host guide by Digi... | PypiClean |
/extensiveautomation_server-22.3.0.tar.gz/extensiveautomation_server-22.3.0/src/ea/servercontrols/RestServerInterface.py |
# -------------------------------------------------------------------
# Copyright (c) 2010-2021 Denis Machard
#
# 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... | PypiClean |
/tensorflow-gpu-macosx-1.8.1.tar.gz/HOW-TO-BUILD/HOW TO BUILD TENSORFLOW-GPU FOR MAC OSX-1.8.0rc1.md | # HOW TO BUILD TENSORFLOW-GPU FOR MAC OSX?
*** notice ***
1.INSTALL NVIDIA DRIVER
2.INSTALL NVIDIA CUDA TOOLKIT (9.1 OR LATER)
3.INSTALL NVIDIA CUDA CUDNN (7.0 OR LATER)
4.SET UP CUDA ENVIRONMENT (MAKE SURE 'nvcc -V' WORKS AND PRINTS CUDA VERSION)
5.INSTALL XCODE/COMMAND LINE TOOL 9
6.INSTALL HOMEBREW
7.INSTALL... | PypiClean |
/crate-anon-0.20.0.tar.gz/crate-anon-0.20.0/crate_anon/crateweb/consent/migrations/0016_auto_20190212_1118.py |
from cardinal_pythonlib.django.fields.restrictedcontentfile import (
ContentTypeRestrictedFileField,
)
from django.db import migrations, models
from crate_anon.crateweb.consent.models import (
leaflet_upload_to,
study_details_upload_to,
study_form_upload_to,
)
from crate_anon.crateweb.consent.storage ... | PypiClean |
/dsin100days603v38-6.0.3.tar.gz/dsin100days603v38-6.0.3/notebook/static/components/codemirror/mode/yaml-frontmatter/yaml-frontmatter.js |
(function (mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../yaml/yaml"))
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror", "../yaml/yaml"], mod)
else // Plain browser env
mod(CodeM... | PypiClean |
/pypushwoosh-0.3.1.tar.gz/pypushwoosh-0.3.1/README.rst | pypushwoosh
===========
Pushwoosh Python Library
Supported API Version: 1.3
.. image:: https://travis-ci.org/Pushwoosh/pushwoosh-python-lib.svg?branch=master
:target: https://travis-ci.org/Pushwoosh/pushwoosh-python-lib
Getting Started
---------------
Typical usage often looks like this::
#!/usr/bin/env p... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.