id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/bootstrap-vz-0.9.11.tar.gz/bootstrap-vz-0.9.11/bootstrapvz/common/tasks/grub.py | from bootstrapvz.base import Task
from ..exceptions import TaskError
from .. import phases
from ..tools import log_check_call
import filesystem
import kernel
from bootstrapvz.base.fs import partitionmaps
import os.path
class AddGrubPackage(Task):
description = 'Adding grub package'
phase = phases.preparation
... | PypiClean |
/xrpl-plugin-0.0.4.tar.gz/xrpl-plugin-0.0.4/xrpl_plugin/rippled/src/ripple/app/reporting/README.md | Reporting mode is a special operating mode of rippled, designed to handle RPCs
for validated data. A server running in reporting mode does not connect to the
p2p network, but rather extracts validated data from a node that is connected
to the p2p network. To run rippled in reporting mode, you must also run a
separate r... | PypiClean |
/newchain-web3-0.2.2.tar.gz/newchain-web3-0.2.2/newchain_web3/gas_strategies/time_based.py | import collections
import math
import operator
from typing import (
Iterable,
Sequence,
Tuple,
)
from eth_typing import (
ChecksumAddress,
)
from eth_utils import (
to_tuple,
)
from eth_utils.toolz import (
curry,
groupby,
sliding_window,
)
# from newchain_web3._utils.toolz import (
# ... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayDataDataserviceDspcreativeUploadRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayDataDataserviceDspcreativeUploadModel import AlipayDataDataserviceDspcreativeUploadModel
class AlipayDataDataserviceDspcreativeUploadRequest(object):
def __init__(self... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/device_app_management/device_app_management_tasks/item/device_app_management_task_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 |
/secrets_env-0.28.0-py3-none-any.whl/secrets_env/collect.py | import logging
import typing
from typing import Dict
if typing.TYPE_CHECKING:
from secrets_env.config.parser import Config
from secrets_env.provider import ProviderBase, RequestSpec
logger = logging.getLogger(__name__)
def read_values(config: "Config") -> Dict[str, str]:
"""Request values from providers... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/request/AlipayFundCouponWufuCardQueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayFundCouponWufuCardQueryModel import AlipayFundCouponWufuCardQueryModel
class AlipayFundCouponWufuCardQueryRequest(object):
def __init__(self, biz_model=None):
... | PypiClean |
/nameko-atomicity-1.0.0.tar.gz/nameko-atomicity-1.0.0/nameko_atomicity/dispatch_commands.py | import inspect
import wrapt
from nameko.extensions import DependencyProvider
from .commands import CommandsWrapper, CommandsProxy
class _DispatchCommands(CommandsWrapper):
pass
class DispatchCommandsDependencyProvider(DependencyProvider):
"""Dependency provider to access to the `::DispatchCommands::`.
... | PypiClean |
/pymdown_extensions-10.3-py3-none-any.whl/pymdownx/blocks/tab.py | import xml.etree.ElementTree as etree
from markdown.extensions import toc
from markdown.treeprocessors import Treeprocessor
from .block import Block, type_boolean
from ..blocks import BlocksExtension
HEADERS = {'h1', 'h2', 'h3', 'h4', 'h5', 'h6'}
class TabbedTreeprocessor(Treeprocessor):
"""Tab tree processor.""... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_5/api/subnets_api.py | from __future__ import absolute_import
import re
# python 2 and python 3 compatibility library
import six
from typing import List, Optional
from .. import models
class SubnetsApi(object):
def __init__(self, api_client):
self.api_client = api_client
def api25_subnets_delete_with_http_info(
... | PypiClean |
/element_array_ephys-0.2.11-py3-none-any.whl/element_array_ephys/plotting/unit_level.py | from __future__ import annotations
from modulefinder import Module
from typing import Any
import numpy as np
import pandas as pd
import plotly.graph_objs as go
from .. import probe
def plot_waveform(waveform: np.ndarray, sampling_rate: float) -> go.Figure:
"""Plot unit waveform.
Args:
waveform (np... | PypiClean |
/mosaik-api-v3-3.0.4.tar.gz/mosaik-api-v3-3.0.4/mosaik_api_v3/__init__.py | from __future__ import annotations
import abc
import asyncio
import inspect
from loguru import logger
import re
import socket
import sys
import traceback
from typing import Any, Dict, List, Optional, Union
from .types import (
Attr,
CreateResult,
EntityGraph,
EntitySpec,
FullId,
InputData,
... | PypiClean |
/z3c.sharedmimeinfo-0.1.0.tar.gz/z3c.sharedmimeinfo-0.1.0/src/z3c/sharedmimeinfo/utility.py | import re
import os
import fnmatch
from zope.interface import implements
from z3c.sharedmimeinfo.basedir import iterDataPaths
from z3c.sharedmimeinfo.interfaces import IMIMETypesUtility
from z3c.sharedmimeinfo.magic import MagicDB
from z3c.sharedmimeinfo.mimetype import MIMEType
findBinary = re.compile('[\0-\7]').se... | PypiClean |
/sphinx_autodoc_defaultargs-0.1.2-py3-none-any.whl/sphinx_autodoc_defaultargs.py | import inspect
import itertools
import re
import sys
from typing import Any, AnyStr, Optional, Union
if sys.version_info.major == 3 and sys.version_info.minor >= 9:
from collections.abc import Callable, Collection, Iterable, Sequence
Dict = dict
List = list
OrderedDictType = dict
Tuple = tuple
els... | PypiClean |
/pypi-simple-1.1.0.tar.gz/pypi-simple-1.1.0/src/pypi_simple/errors.py | class UnsupportedRepoVersionError(Exception):
"""
Raised upon encountering a simple repository whose repository version
(:pep:`629`) has a greater major component than the maximum supported
repository version (`SUPPORTED_REPOSITORY_VERSION`)
"""
def __init__(self, declared_version: str, support... | PypiClean |
/ibutsu_client-2.3.0-py3-none-any.whl/ibutsu_client/api/run_api.py | import re # noqa: F401
import sys # noqa: F401
from ibutsu_client.api_client import ApiClient, Endpoint as _Endpoint
from ibutsu_client.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types
)
from ibuts... | PypiClean |
/extools-0.13.42.tar.gz/extools-0.13.42/docs/src/view/utils.rst | extools.view.utils
-------------------
Utilities for working with views and data.
.. automodule:: extools.view.utils.customer
:members:
:show-inheritance:
.. automodule:: extools.view.utils.glaccount
:members:
:show-inheritance:
.. automodule:: extools.view.utils.iet
:members: PATYPES, TTYPES,... | PypiClean |
/estnltk_neural-1.7.2-py3-none-any.whl/estnltk_neural/taggers/coreference/v1/coreference_api.py | import os, os.path
import re
import logging
import collections
import stanza
import pandas as pd
from sklearn.pipeline import Pipeline
from sklearn.compose import ColumnTransformer
from sklearn.preprocessing import OneHotEncoder
from xgboost import XGBClassifier
from estnltk_neural.taggers.coreference.v1 import utili... | PypiClean |
/mona-openai-0.1.3.tar.gz/mona-openai-0.1.3/mona_openai/analysis/textual.py | from collections.abc import Iterable
PREPOSITIONS = set(
(
"aboard",
"about",
"above",
"across",
"after",
"against",
"along",
"amid",
"among",
"around",
"as",
"at",
"before",
"behind",
"below",
... | PypiClean |
/MutatorMath-3.0.1.zip/MutatorMath-3.0.1/Lib/mutatorMath/test/ufo/geometryTest.py | from __future__ import print_function
from defcon.objects.font import Font
from fontMath import MathKerning
from fontMath.mathKerning import MathKerning
from mutatorMath.ufo.document import DesignSpaceDocumentWriter, DesignSpaceDocumentReader
from mutatorMath.objects.location import Location
import os, sys, shutil
... | PypiClean |
/whylabs_client-0.5.6-py3-none-any.whl/whylabs_client/model/dto_jobs_cron_schedule_dto.py | import re # noqa: F401
import sys # noqa: F401
from whylabs_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 |
/dispy-4.15.2.tar.gz/dispy-4.15.2/py3.7/httpd.py | import sys
import os
import threading
import json
import cgi
import time
import ssl
import re
import functools
import copy
import traceback
import dispy
from dispy import DispyJob, DispyNodeAvailInfo, logger
if sys.version_info.major > 2:
from http.server import BaseHTTPRequestHandler, HTTPServer
from urllib.... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayMerchantWeikeSettleQueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayMerchantWeikeSettleQueryModel import AlipayMerchantWeikeSettleQueryModel
class AlipayMerchantWeikeSettleQueryRequest(object):
def __init__(self, biz_model=None):
... | PypiClean |
/tencentcloud-sdk-python-intl-en-3.0.786.tar.gz/tencentcloud-sdk-python-intl-en-3.0.786/tencentcloud/cbs/v20170312/models.py |
import warnings
from tencentcloud.common.abstract_model import AbstractModel
class AdvancedRetentionPolicy(AbstractModel):
"""Retention policy for scheduled snapshots. All four parameters are required.
"""
def __init__(self):
r"""
:param _Days: Retains one latest snapshot each day with... | PypiClean |
/abdoconvo-2.0.1-py3-none-any.whl/convo/core/train.py | import argparse
import asyncio
import logging
import os
import tempfile
import typing
from typing import Dict, Optional, Text, Union, List
import convo.shared.utils.io
import convo.utils.io
from convo.constants import NUMBER_OF_TRAINING_STORIES_FILE, PERCENTAGE_KEY
from convo.shared.core.domain import Domain
from conv... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/models/group_lifecycle_policy.py | from __future__ import annotations
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, Union
from . import entity
class GroupLifecyclePolicy(entity.Entity):
"""
Provides operations to manage the collection of agreement e... | PypiClean |
/django-demo-site-0.1.0.tar.gz/django-demo-site-0.1.0/README.rst | =============================
django-demo-site
=============================
.. image:: https://badge.fury.io/py/django-demo-site.svg
:target: https://badge.fury.io/py/django-demo-site
.. image:: https://travis-ci.org/weholt/django-demo-site.svg?branch=master
:target: https://travis-ci.org/weholt/django-demo-... | PypiClean |
/searchai-0.0.1.tar.gz/searchai-0.0.1/jina/jaml/parsers/flow/legacy.py | from typing import Dict, Any, Type
from ..base import VersionedYAMLParser
from ....enums import PodRoleType
from ....flow.base import Flow
from ....helper import expand_env_var, ArgNamespace
from ....parsers import set_gateway_parser, set_pod_parser
class LegacyParser(VersionedYAMLParser):
"""The legacy parser."... | PypiClean |
/great_expectations-0.17.14.tar.gz/great_expectations-0.17.14/great_expectations/render/v3/notebook_assets/suite_edit/AUTHORING_INTRO.md | ## Create & Edit Expectations
{% if batch_request %}
Add expectations by calling specific expectation methods on the `validator` object. They all begin with `.expect_` which makes autocompleting easy using tab.
Because you selected interactive mode, you are now creating or editing an Expectation Suite with validator ... | PypiClean |
/layernext_beta-1.3.0b4-py3-none-any.whl/layernext/datalake/label.py | from typing import TYPE_CHECKING
from .constants import LABEL_CLASS_WITH_ATTRIBUTES
from .keys import SUPERCATEGORY, NAME, LABEL_TEXT, VALUE, VALUES, VALUE_TEXT, DESCRIPTION, IMG_FILES, ATTRIBUTES, TYPE, \
LABEL_REF, LABEL, LABEL_COLOR, COLOR, IMAGES, ANNOTATIONS, METADATA
if TYPE_CHECKING:
from . import Data... | PypiClean |
/open-helpdesk-0.4.4.tar.gz/open-helpdesk-0.4.4/openhelpdesk/static/openhelpdesk/js/lib/tiny_mce/plugins/table/js/row.js | tinyMCEPopup.requireLangPack();
function init() {
tinyMCEPopup.resizeToInnerSize();
document.getElementById('backgroundimagebrowsercontainer').innerHTML = getBrowserHTML('backgroundimagebrowser','backgroundimage','image','table');
document.getElementById('bgcolor_pickcontainer').innerHTML = getColorPickerHTML('bgc... | PypiClean |
/JitViewer-0.2.1.tar.gz/JitViewer-0.2.1/_jitviewer/static/canjs/1.1.4/can.dojo.min.js | (function(q,k){function Ya(a,b){var d=a[K],d=d&&L[d];return b===k?d||qa(a):d&&d[b]}function qa(a,b,d){a=a[K]||(a[K]=++ra);a=L[a]||(L[a]={});b!==k&&(a[b]=d);return a}var c=q.can||{};if("undefined"===typeof GLOBALCAN||!1!==GLOBALCAN)q.can=c;c.isDeferred=function(a){var b=this.isFunction;return a&&b(a.then)&&b(a.pipe)};va... | PypiClean |
/murasaki-1.0.1.tar.gz/murasaki-1.0.1/README.md | A simple API wrapper for Newsworthy's template writer, https://jplusplus-murasaki.herokuapp.com/
## Installation
```sh
pip install murasaki
```
## Usage
```python3
from murasaki import Murasaki
murasaki = Murasaki("https://jplusplus-murasaki.herokuapp.com/", language="sv-SE", timezone="Europe/Stockholm")
context... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/datamigration/get_database_migrations_sql_db.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__ = [
'GetDatabaseMigrationsSqlDbResult',
'AwaitableGetDatabaseMigrationsSqlDbResult',
'get_database_migrations_sql_db'... | PypiClean |
/dave_vkostov-2.1-py3-none-any.whl/fileio/AbstractMast_TESS.py | import urllib
import math
import os
import pyfits
class MastArchive():
"""Base class for queries of the MAST Kepler and K2 archives.
Handles submitting the URL, receiving and caching the results
The child class determines the url to submit
"""
def __init__(self, localDir, remoteServer):
... | PypiClean |
/jdcloud_sdk-1.6.243.tar.gz/jdcloud_sdk-1.6.243/jdcloud_sdk/services/cdn/apis/QueryBandWithAreaRequest.py |
# Copyright 2018 JDCLOUD.COM
#
# 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 agreed to in writing,... | PypiClean |
/systematic_trading-0.0.13-py3-none-any.whl/trading/v2/position/position_manager.py | from datetime import datetime
import logging
from .contract_event import ContractEvent
from ..data.data_board import DataBoard
from ..order.fill_event import FillEvent
from .position_event import PositionEvent
_logger = logging.getLogger(__name__)
class PositionManager:
"""
Position manager.
"""
de... | PypiClean |
/youtrack_python_openapi-2023.1-py3-none-any.whl/you_track_rest_api_client/api/default/get_articles_id_attachments_article_attachment_id.py | from http import HTTPStatus
from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import Client
from ...types import UNSET, Response, Unset
def _get_kwargs(
id: str,
article_attachment_id: str,
*,
client: Client,
fields: Union[
Unset, None, str
... | PypiClean |
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/syntax/_nasm.py | __author__ = "Cody Precord <cprecord@editra.org>"
__svnid__ = "$Id: _nasm.py 68798 2011-08-20 17:17:05Z CJP $"
__revision__ = "$Revision: 68798 $"
#-----------------------------------------------------------------------------#
# Imports
import wx.stc as stc
# Local Imports
import syndata
#---------------------------... | PypiClean |
/chatgt-0.27.8.tar.gz/chatgt-0.27.8/README.md | # OpenAI Python Library
The OpenAI Python library provides convenient access to the OpenAI API
from applications written in the Python language. It includes a
pre-defined set of classes for API resources that initialize
themselves dynamically from API responses which makes it compatible
with a wide range of versions o... | PypiClean |
/explainaboard-api-client-0.4.3.tar.gz/explainaboard-api-client-0.4.3/explainaboard_api_client/api/default_api.py | import re # noqa: F401
import sys # noqa: F401
from explainaboard_api_client.api_client import ApiClient, Endpoint as _Endpoint
from explainaboard_api_client.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_conv... | PypiClean |
/odinweb.django-0.4.3.tar.gz/odinweb.django-0.4.3/odinweb/django/api/__init__.py | from __future__ import absolute_import
from django.conf import settings
from django.conf.urls import url
from django.http import HttpRequest, HttpResponse, HttpResponseNotAllowed
from django.views.decorators.csrf import csrf_exempt
from odin.utils import lazy_property
from odinweb.containers import ApiInterfaceBase
f... | PypiClean |
/badi_users-2.0.5.tar.gz/badi_users-2.0.5/badi_blog/api/api.py | from django.http import JsonResponse
from rest_framework import permissions
from rest_framework.decorators import action
from rest_framework.pagination import PageNumberPagination
from badi_utils.dynamic_api import DynamicModelApi, DynamicModelReadOnlyApi
from badi_blog.api.serializers import *
from badi_blog.filter i... | PypiClean |
/Semi-ATE-0.1.29.tar.gz/Semi-ATE-0.1.29/ATE/Tester/TES/apps/masterApp/utils/part_information.py | from ATE.spyder.widgets.actions_on.program.Utils import ALARM_BIN_MAX, ALARM_BIN_MIN, GOOD_BIN_MAX, GOOD_BIN_MIN
class PartInformation:
def __init__(self, head_num, site_num):
self.part_count = 0
self.retest_count = 0
self.abort_count = 0
self.good_count = 0
self.functional... | PypiClean |
/daisyRec-2.3.0.tar.gz/daisyRec-2.3.0/daisy/model/Item2VecRecommender.py | import torch
import torch.nn as nn
from daisy.model.AbstractRecommender import GeneralRecommender
class Item2Vec(GeneralRecommender):
def __init__(self, config):
'''
Item2Vec Recommender class
Parameters
----------
factors : int
item embedding dimension
... | PypiClean |
/pythondemo_giuseppefrattura-0.0.1.tar.gz/pythondemo_giuseppefrattura-0.0.1/.conda/lib/python3.1/email/_policybase.py | import abc
from email import header
from email import charset as _charset
from email.utils import _has_surrogates
__all__ = [
'Policy',
'Compat32',
'compat32',
]
class _PolicyBase:
"""Policy Object basic framework.
This class is useless unless subclassed. A subclass should define
class... | PypiClean |
/google-ads-21.3.0.tar.gz/google-ads-21.3.0/google/ads/googleads/v13/resources/types/campaign_budget.py | from __future__ import annotations
import proto # type: ignore
from google.ads.googleads.v13.enums.types import budget_delivery_method
from google.ads.googleads.v13.enums.types import budget_period
from google.ads.googleads.v13.enums.types import budget_status
from google.ads.googleads.v13.enums.types import budget... | PypiClean |
/lxd_client-1.0.0-py3-none-any.whl/lxd_client/api/profiles/patch_profiles_by_name.py | from typing import Any, Dict, Optional, Union
import httpx
from ...client import Client
from ...models.background_operation_response import BackgroundOperationResponse
from ...models.error_response import ErrorResponse
from ...models.update_profiles_by_name_request import UpdateProfilesByNameRequest
from ...types imp... | PypiClean |
/retry_pytest-1.0.4.tar.gz/retry_pytest-1.0.4/retry_pytest/docs/build/html/_static/underscore.js | !function(n,r){"object"==typeof exports&&"undefined"!=typeof module?module.exports=r():"function"==typeof define&&define.amd?define("underscore",r):(n="undefined"!=typeof globalThis?globalThis:n||self,function(){var t=n._,e=n._=r();e.noConflict=function(){return n._=t,e}}())}(this,(function(){
// Underscore.js 1.13... | PypiClean |
/dpdata_qdpi-0.0.1.tar.gz/dpdata_qdpi-0.0.1/README.md | # dpdata_qdpi
[dpdata](https://github.com/deepmodeling/dpdata) plugin for [QDπ](https://github.com/njzjz/qdpi).
## Features
* `qdpi` driver
## Installation
If you have installed [DeePMD-kit](https://github.com/deepmodeling/deepmd-kit),
```sh
pip install dpdata_qdpi
```
Otherwise, add `gpu` or `cpu` to install De... | PypiClean |
/fds.sdk.SecuritizedDerivativesAPIforDigitalPortals-0.10.2-py3-none-any.whl/fds/sdk/SecuritizedDerivativesAPIforDigitalPortals/model/inline_response2005_data_bonus_level.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.SecuritizedDerivativesAPIforDigitalPortals.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetim... | PypiClean |
/stginga-1.3.0.tar.gz/stginga-1.3.0/.github/PULL_REQUEST_TEMPLATE.md | <!-- This comments are hidden when you submit the pull request,
so you do not need to remove them! -->
<!-- Please be sure to check out our code of conduct,
https://github.com/spacetelescope/stginga/blob/master/CODE_OF_CONDUCT.md . -->
<!-- Please just have a quick search on GitHub to see if a similar
pull request ha... | PypiClean |
/django-lfs-0.11.tar.gz/django-lfs-0.11/lfs/marketing/migrations/0001_initial.py | from __future__ import unicode_literals
from django.db import models, migrations
class Migration(migrations.Migration):
dependencies = [
('order', '__first__'),
('catalog', '0001_initial'),
]
operations = [
migrations.CreateModel(
name='FeaturedProduct',
... | PypiClean |
/plateau-4.1.5.tar.gz/plateau-4.1.5/asv_bench/benchmarks/index.py |
import pickle
import shutil
import sys
import tempfile
import uuid
from functools import lru_cache
import numpy as np
import pandas as pd
import pyarrow as pa
from minimalkv import get_store_from_url
from plateau.core.index import ExplicitSecondaryIndex
from plateau.io_components.metapartition import MetaPartition
... | PypiClean |
/mojo_xmodules-0.0.91.tar.gz/mojo_xmodules-0.0.91/source/packages/mojo/xmods/landscaping/coordinators/coordinatorbase.py | __author__ = "Myron Walker"
__copyright__ = "Copyright 2023, Myron W Walker"
__credits__ = []
__version__ = "1.0.0"
__maintainer__ = "Myron Walker"
__email__ = "myron.walker@gmail.com"
__status__ = "Development" # Prototype, Development or Production
__license__ = "MIT"
from typing import List, Optional, TYPE_CHECKING... | PypiClean |
/stoq-4.7.0.tar.gz/stoq-4.7.0/docs/howto/devenv.rst | Development setup
=================
FIXME: Write a small introduction git and git-review and how the interact with
gerrit.
Download git-stoq
-----------------
As the first pass, we need to download a script that checks out the stoq sources
from the main repository::
mkdir ~/bin/
wget https://raw.github.com/stoq... | PypiClean |
/pulumi_nutanix-0.0.42.tar.gz/pulumi_nutanix-0.0.42/pulumi_nutanix/get_foundation_node_network_details.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from . import _utilities
from . import outputs
__all__ = [
'GetFoundationNodeNetworkDetailsResult',
'AwaitableGetFoundationNodeNetworkDetailsResult',
'get_foundation_node_network_detail... | PypiClean |
/warden_sdk-2.4.6.tar.gz/warden_sdk-2.4.6/warden_sdk/consts.py | from dotenv import load_dotenv
load_dotenv()
import os
from inspect import ArgSpec, FullArgSpec
from typing import (
Callable,
Union,
Optional,
List,
Any,
Literal,
Dict,
)
DEFAULT_QUEUE_SIZE: Literal[100] = 100
DEFAULT_MAX_BREADCRUMBS: Literal[100] = 100
class ClientConstructor(object):... | PypiClean |
/astrotoyz-0.1.4.tar.gz/astrotoyz-0.1.4/astropy_helpers/astropy_helpers/sphinx/ext/docscrape.py | from __future__ import division, absolute_import, print_function
import inspect
import textwrap
import re
import pydoc
from warnings import warn
import collections
import sys
class Reader(object):
"""A line-based string reader.
"""
def __init__(self, data):
"""
Parameters
-------... | PypiClean |
/webhdfspy-0.3.5.tar.gz/webhdfspy-0.3.5/README.rst | =========
webhdfspy
=========
.. image:: https://badge.fury.io/py/webhdfspy.svg
:target: http://badge.fury.io/py/webhdfspy
A Python 2/3 wrapper library to access `Hadoop WebHDFS REST API <https://hadoop.apache.org/docs/r1.0.4/webhdfs.html>`_
Installation
============
To install webhdfspy from PyPI::
$ pip... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/elementui/umd/locale/zh-TW.js | (function (global, factory) {
if (typeof define === "function" && define.amd) {
define('element/locale/zh-TW', ['module', 'exports'], factory);
} else if (typeof exports !== "undefined") {
factory(module, exports);
} else {
var mod = {
exports: {}
};
facto... | PypiClean |
/gaeframework-2.0.10.tar.gz/gaeframework-2.0.10/google_appengine/lib/django_0_96/django/db/models/manager.py | from django.db.models.query import QuerySet, EmptyQuerySet
from django.dispatch import dispatcher
from django.db.models import signals
from django.db.models.fields import FieldDoesNotExist
# Size of each "chunk" for get_iterator calls.
# Larger values are slightly faster at the expense of more storage space.
GET_ITERA... | PypiClean |
/geoshape-geonode-1.4.tar.gz/geoshape-geonode-1.4/geonode/contrib/geosites/api.py | from django.contrib.sites.models import Site
from django.conf import settings
from django.db.models import Count
from django.contrib.auth import get_user_model
from tastypie.constants import ALL
from tastypie.resources import ModelResource
from tastypie.authorization import DjangoAuthorization
from guardian.shortcuts ... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/containerservice/v20200701/get_managed_cluster.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'GetManagedClusterResult',
'AwaitableGetManagedClusterResult',
'get_managed_cluster',
]
@pulumi.output_type
class GetManaged... | PypiClean |
/zope.copy-4.3.tar.gz/zope.copy-4.3/CHANGES.rst | =========
Changes
=========
4.3 (2022-11-29)
================
- Add support for Python 3.8, 3.9, 3.10, 3.11.
- Drop support for Python 3.4.
4.2 (2018-10-04)
================
- Use the latest and fastest protocol when pickling and unpickling and object
during the clone operation
- Add support for Python 3.7.
... | PypiClean |
/hashes/chaos_machine.py |
# Chaos Machine (K, t, m)
K = [0.33, 0.44, 0.55, 0.44, 0.33]; t = 3; m = 5
# Buffer Space (with Parameters Space)
buffer_space, params_space = [], []
# Machine Time
machine_time = 0
def push(seed):
global buffer_space, params_space, machine_time, \
K, m, t
# Choosing Dynamical Systems (All)
for key, valu... | PypiClean |
/eoldas-1.1.0.tar.gz/eoldas-1.1.0/scripts/eoldas_run.py | import sys
import os
import logging
import numpy as np
import pdb
from eoldas import *
from eoldas.eoldas_ParamStorage import ParamStorage
from eoldas.eoldas_Parser import Parser
from eoldas.eoldas_Solver import eoldas_Solver as Solver
class eoldas(Parser):
'''
The Earth Observation Land Data Assimilation Syst... | PypiClean |
/tensorflow_rocm-2.12.0.560-cp310-cp310-manylinux2014_x86_64.whl/tensorflow/python/tpu/device_assignment.py | """Library of TPU helper functions."""
import enum
import math
from typing import List, Optional, Text, Tuple
import numpy as np
from tensorflow.python.platform import tf_logging as logging
from tensorflow.python.tpu.topology import Topology
from tensorflow.python.util.tf_export import tf_export
SINGLE_CORE_ASSIGN... | PypiClean |
/checkbox-ng-1.18.1.tar.gz/checkbox-ng-1.18.1/plainbox/impl/unit/file.py | import logging
import os
from plainbox.i18n import gettext as _
from plainbox.i18n import gettext_noop as N_
from plainbox.impl.symbol import SymbolDef
from plainbox.impl.unit.job import propertywithsymbols
from plainbox.impl.unit.unit import Unit, UnitValidator
from plainbox.impl.unit.validators import CorrectFieldVa... | PypiClean |
/image_sky-0.6.0-py3-none-any.whl/image_sky/serialize/cloudpickle/cloudpickle.py | from __future__ import print_function
import dis
from functools import partial
import imp
import io
import itertools
import logging
import opcode
import operator
import pickle
import struct
import sys
import traceback
import types
import weakref
if sys.version < '3':
from pickle import Pickler
try:
f... | PypiClean |
/OBITools-1.2.13.tar.gz/OBITools-1.2.13/src/obitools/carto/__init__.py |
from obitools import SVGdraw
import math
class Map(object):
"""
Map represente une instance d'une carte genetique physique.
Une telle carte est definie par la longueur de la sequence
qui lui est associe.
A une carte est associe un certain nombre de niveaux (Level)
... | PypiClean |
/xnni-0.7.4-py3-none-manylinux1_x86_64.whl/xnni-0.7.4.data/data/nni/node_modules/readable-stream/lib/_stream_duplex.js |
// a duplex stream is just a stream that is both readable and writable.
// Since JS doesn't have multiple prototypal inheritance, this class
// prototypally inherits from Readable, and then parasitically from
// Writable.
'use strict';
/*<replacement>*/
var pna = require('process-nextick-args');
/*</replacement>*/
... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/models/mac_o_s_custom_configuration_collection_response.py | from __future__ import annotations
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, Union
from . import base_collection_pagination_count_response, mac_o_s_custom_configuration
class MacOSCustomConfigurationCollectionResponse(... | PypiClean |
/pandem-source-1.1.7.tar.gz/pandem-source-1.1.7/pandemsource/data/scripts/py/sources/pandem_2_2023_fx.py | import numpy as np
import pandas as pd
from datetime import date, timedelta
import random
INIT_DATE = date(2023, 10, 1)
max_indicators = ["people in hospital", "people in icu", "population"]
sum_indicators = ["cases", "hospitalisations", "deaths", "vaccination", "icu admissions"]
beds_capacity = ["number_of_icu_beds",... | PypiClean |
/collective.ckeditor-5.0.0a1.tar.gz/collective.ckeditor-5.0.0a1/src/collective/ckeditor/_src/ckeditor/skins/moonocolor/readme.md | "Moono" Skin
====================
This skin has been chosen for the **default skin** of CKEditor 4.x, elected from the CKEditor
[skin contest](http://ckeditor.com/blog/new_ckeditor_4_skin) and further shaped by
the CKEditor team. "Moono" is maintained by the core developers.
For more information about skins, please c... | PypiClean |
/chik-blockchain-1.8.5.tar.gz/chik-blockchain-1.8.5/chik/wallet/wallet_interested_store.py | from __future__ import annotations
from typing import List, Optional, Tuple
from chik.protocols.wallet_protocol import CoinState
from chik.types.blockchain_format.sized_bytes import bytes32
from chik.util.db_wrapper import DBWrapper2
from chik.util.ints import uint32
class WalletInterestedStore:
"""
Stores ... | PypiClean |
/line-bot-sdk-3.3.0.tar.gz/line-bot-sdk-3.3.0/linebot/v3/messaging/models/rich_menu_bounds.py | from __future__ import annotations
import pprint
import re # noqa: F401
import json
from typing import Optional
from pydantic.v1 import BaseModel, Field, conint
class RichMenuBounds(BaseModel):
"""
Rich menu bounds
https://developers.line.biz/en/reference/messaging-api/#bounds-object
"""
x: Opti... | PypiClean |
/gsclight-0.0.1.tar.gz/gsclight-0.0.1/README.md | A simplified, object-oriented helper library for the [Google Search Console API](https://developers.google.com/webmaster-tools/search-console-api-original). This package only covers basic API calls and was mainly created for practice purposes. To get the full Google Search Console API experience see Josh Carty's [pytho... | PypiClean |
/raspberry-py-0.3.0.tar.gz/raspberry-py-0.3.0/src/raspberry_py/gpio/sensors.py | import base64
import math
import os
import time
from enum import Enum, auto
from threading import Thread, Lock
from typing import Optional, List, Callable, Tuple
import RPi.GPIO as gpio
import cv2
import numpy as np
from raspberry_py.gpio import Component
from raspberry_py.gpio.adc import AdcDevice
class Photoresis... | PypiClean |
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/prime_remastered/objects/Cinematic.py | import dataclasses
import struct
import typing
from retro_data_structures.game_check import Game
from retro_data_structures.properties.base_property import BaseProperty
import base64
@dataclasses.dataclass()
class Cinematic(BaseProperty):
unknown_properties: dict[int, bytes] = dataclasses.field(default_factory=d... | PypiClean |
/fedot_example_test-0.0.4.tar.gz/fedot_example_test-0.0.4/fedot/core/models/evaluation/keras_eval.py | from copy import copy
from datetime import timedelta
from typing import Optional
import numpy as np
import tensorflow as tf
from fedot.core.models.data import InputData, OutputData
from fedot.core.models.evaluation.evaluation import EvaluationStrategy
from fedot.core.repository.tasks import extract_task_param
foreca... | PypiClean |
/scrapy_processors-2.0.1.tar.gz/scrapy_processors-2.0.1/scrapy_processors/multi_values.py | from decimal import Decimal
from fractions import Fraction
from typing import Any, Iterable, List, Optional, Tuple
# Local Imports
from scrapy.utils.python import flatten
from scrapy_processors.base import Processor
falsey_values = (
None,
False,
0,
0.0,
0j,
Decimal(0),
Fraction(0, 1),
)
... | PypiClean |
/ussd-elastic-apm-5.7.tar.gz/ussd-elastic-apm-5.7/elasticapm/utils/wsgi.py | from elasticapm.utils import compat
try:
from urllib import quote
except ImportError:
from urllib.parse import quote
# `get_headers` comes from `werkzeug.datastructures.EnvironHeaders`
def get_headers(environ):
"""
Returns only proper HTTP headers.
"""
for key, value in compat.iteritems(envir... | PypiClean |
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/webpack/lib/dependencies/URLPlugin.js | "use strict";
const { pathToFileURL } = require("url");
const BasicEvaluatedExpression = require("../javascript/BasicEvaluatedExpression");
const { approve } = require("../javascript/JavascriptParserHelpers");
const InnerGraph = require("../optimize/InnerGraph");
const URLDependency = require("./URLDependency");
/** ... | PypiClean |
/xnni-0.7.4-py3-none-manylinux1_x86_64.whl/xnni-0.7.4.data/data/nni/training_service/kubernetes/kubernetesTrainingService.js | 'use strict';
Object.defineProperty(exports, "__esModule", { value: true });
const cpp = require("child-process-promise");
const path = require("path");
const events_1 = require("events");
const experimentStartupInfo_1 = require("../../common/experimentStartupInfo");
const log_1 = require("../../common/log");
const uti... | PypiClean |
/mitorch-models-0.0.6.tar.gz/mitorch-models-0.0.6/mitorch/models/resnext.py | import collections
import torch
from .model import Model
from .modules import Add, Conv2dAct, Conv2dBN
class ResNext(Model):
class BasicBlock(torch.nn.Module):
"""Depth=3 building block"""
def __init__(self, in_channels, out_channels, cardinality, stride=1):
super().__init__()
... | PypiClean |
/PyShEx-0.8.1.tar.gz/PyShEx-0.8.1/pyshex/utils/schema_utils.py | from typing import Optional, Union, List, Dict, Set
from ShExJSG import ShExJ
from ShExJSG.ShExJ import IRIREF
from pyshex.shape_expressions_language.p5_context import Context
from pyshex.shapemap_structure_and_language.p3_shapemap_structure import START, shapeLabel
def reference_of(selector: shapeLabel, cntxt: Uni... | PypiClean |
/gears-jsx-0.1.tar.gz/gears-jsx-0.1/gears_jsx/node_modules/react-tools/node_modules/commoner/node_modules/whiskey/lib/util.js | * lpad and rpad are taken from expresso
* <https://github.com/visionmedia/expresso> which is MIT licensed.
* Copyright(c) TJ Holowaychuk <tj@vision-media.ca>
*/
var util = require('util');
var fs = require('fs');
var path = require('path');
var EventEmitter = require('events').EventEmitter;
var sprintf = requir... | PypiClean |
/verba_rag-0.2.2-py3-none-any.whl/verba_rag/server/frontend/out/_next/static/chunks/pages/document_explorer-f2b168e3e47ba8a4.js | (self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[306],{98404:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/document_explorer",function(){return n(78006)}])},78006:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return d}});var a=n(85893),s=n(67294),o=n(79123),c=n(85280),l=n(19954);... | PypiClean |
/mildtrix-dlms-0.17.tar.gz/mildtrix-dlms-0.17/mildtrix_dlms/_MTFCS16.py | class _MTFCS16:
__fcs16Table = (0x0000, 0x1189, 0x2312, 0x329B, 0x4624,
0x57AD, 0x6536, 0x74BF, 0x8C48, 0x9DC1, 0xAF5A, 0xBED3, 0xCA6C,
0xDBE5, 0xE97E, 0xF8F7, 0x1081, 0x0108, 0x3393, 0x221A, 0x56A5,
0x472C, 0x75B7, 0x643E, 0x9CC9, 0x8D40, 0xBFDB, 0xAE52,... | PypiClean |
/kiwitcms-12.4.tar.gz/kiwitcms-12.4/tcms/node_modules/html5sortable/ISSUE_TEMPLATE.md | ### I'm opening this issue because:
### supporting information:
- I use sortable version:
- I tested in the following browser (incl. versions):
- Windows, OS X/macOS, or Linux?:
### How can the issue be reproduce the problem?
Please add a complete description of how to reproduce the problem.
### Thank you for contri... | PypiClean |
/jtd_to_proto-0.13.0-py39-none-any.whl/py_to_proto/descriptor_to_message_class.py | from functools import wraps
from types import MethodType
from typing import Any, Callable, Type, Union
import os
# Third Party
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection, service
from google.protobuf.internal.enum_type_wr... | PypiClean |
/bxl-0.3.4.tar.gz/bxl-0.3.4/bin/pipeline_launcher.py |
import sys
import argparse
import os.path as op
import logging as log
log.basicConfig(level=log.INFO)
from bxl import utils
from bxl import xnat
def get_pipeline_alias(connexion, project_id, pipeline_id):
''' Get project's archive_spec metainfo from XNAT and parse the project's
available pipeline names VERSUS... | PypiClean |
/icevision_dashboards-0.0.8-py3-none-any.whl/icevision_dashboards/core/data.py |
__all__ = ['Observable', 'ObservableList', 'DatasetDescriptor', 'StringDescriptor', 'GenericDataset']
# Cell
from typing import Union, Optional, Any, Iterable, Callable
import os
import shutil
from abc import ABC, abstractmethod
# Cell
class Observable(ABC):
"""Simple implementation of the observer pattern."""
... | PypiClean |
/bcbio-nextgen-1.1.5.tar.gz/bcbio-nextgen-1.1.5/bcbio/pipeline/fastq.py | import os
import shutil
from bcbio import bam, broad, utils
from bcbio.bam import fastq
from bcbio.distributed import objectstore
from bcbio.pipeline import alignment
from bcbio.pipeline import datadict as dd
from bcbio.utils import file_exists, safe_makedir, splitext_plus
from bcbio.provenance import do
from bcbio.di... | PypiClean |
/openshift-cluster-management-python-client-1.0.23.tar.gz/openshift-cluster-management-python-client-1.0.23/ocm_python_client/model/add_on_version.py | import re # noqa: F401
import sys # noqa: F401
from ocm_python_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 |
/e2eAIOK_denas-1.1.1b2023042803-py3-none-any.whl/e2eAIOK/DeNas/asr/data/dataio/batch.py | import collections
import torch
from torch.utils.data._utils.collate import default_convert
from torch.utils.data._utils.pin_memory import (
pin_memory as recursive_pin_memory,
)
from e2eAIOK.DeNas.asr.utils.data_utils import mod_default_collate
from e2eAIOK.DeNas.asr.utils.data_utils import recursive_to
from e2eA... | PypiClean |
/Neodroid-0.4.9-py36-none-any.whl/samples/gui_client/gui_components/environment_state_box.py | __author__ = "Christian Heider Nielsen"
from kivy.core.image import Image as CoreImage
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.image import Image
from kivy.uix.label import Label
class EnvironmentStateBox(BoxLayout):
def __init__(self, **kwargs):
super().__init__(**kwargs)
self.de... | PypiClean |
/souJpg_comm-1.2.0-py3-none-any.whl/souJpg/comm/dbsCL.py | import sys
import traceback
from bson.binary import Binary as BsonBinary
from pymongo import InsertOne, MongoClient, UpdateMany, UpdateOne
class MongoCL:
def __init__(self, uri=None):
self.cl = MongoClient(uri)
def batchPut(self, puts=[], dbName="vcg", tableName=None):
actions = []
... | PypiClean |
/ahlive-1.0.4.post1.tar.gz/ahlive-1.0.4.post1/docs/source/essentials/exporting.ipynb | # Exporting
It's easy.
### save
Setting `save` will save the animation to disk and show it inline.
```
import ahlive as ah
ah.Array([0, 1, 2], [4, 5, 6], save='exporting_tutorial.gif').render()
```
### fmt
`fmt` does not have to be explicitly set; if `save` is suffixed with a file format, it will use that, else if ... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.