id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/verizon-api-sdk-1.0.0.tar.gz/verizon-api-sdk-1.0.0/verizon/models/resources_edge_hosted_service.py | from verizon.api_helper import APIHelper
from verizon.models.resources_service_endpoint import ResourcesServiceEndpoint
class ResourcesEdgeHostedService(object):
"""Implementation of the 'ResourcesEdgeHostedService' model.
Edge hosted service represented by Service Endpoint definition.
Attributes:
... | PypiClean |
/uniohomeassistant-0.1.3.tar.gz/uniohomeassistant-0.1.3/homeassistant/components/homekit_controller/config_flow.py | import logging
import re
import aiohomekit
import voluptuous as vol
from homeassistant import config_entries
from homeassistant.components import zeroconf
from homeassistant.core import callback
from homeassistant.helpers.device_registry import (
CONNECTION_NETWORK_MAC,
async_get_registry as async_get_device_... | PypiClean |
/city_graph-0.2b0-py3-none-any.whl/city_graph/planning.py | import time
from .types import TransportType, AVERAGE_SPEEDS
class PlanStep:
"""
A plan step represents a segment in a bigger plan for going from a
starting location to a target location (a plan is a list of
successive plan steps, in which the target location of a step is
the starting location of ... | PypiClean |
/hassmart_homeassistant-0.65.4.tar.gz/hassmart_homeassistant-0.65.4/homeassistant/components/shell_command.py | import asyncio
import logging
import shlex
import voluptuous as vol
from homeassistant.exceptions import TemplateError
from homeassistant.core import ServiceCall
from homeassistant.helpers import config_validation as cv, template
from homeassistant.helpers.typing import ConfigType, HomeAssistantType
DOMAIN = 'shell... | PypiClean |
/memsource-cli-0.3.8.tar.gz/memsource-cli-0.3.8/docs/FileImportSettingsDto.md | # FileImportSettingsDto
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**input_charset** | **str** | | [optional]
**output_charset** | **str** | | [optional]
**zip_charset** | **str** | | [optional]
**file_format** | **str** | | [optional]
**target_... | PypiClean |
/magic_class-0.7.5.tar.gz/magic_class-0.7.5/magicclass/ext/napari/utils.py | from __future__ import annotations
import sys
from typing import Union, Callable, TYPE_CHECKING
if sys.version_info < (3, 10):
from typing_extensions import ParamSpec
else:
from typing import ParamSpec
from functools import wraps
from ..._gui._base import BaseGui
from ..._gui import MenuGui, ToolBarGui, ClassG... | PypiClean |
/youtrack_python_openapi-2023.1-py3-none-any.whl/you_track_rest_api_client/api/default/get_issues_id_attachments_issue_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,
issue_attachment_id: str,
*,
client: Client,
fields: Union[
Unset, None, str
... | PypiClean |
/azureml_mlflow-1.53.0-py3-none-any.whl/azureml/mlflow/_restclient/mfe_v2022_02_01_preview/aio/operations/_private_endpoint_connections_operations.py | import functools
from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar
import warnings
from azure.core.async_paging import AsyncItemPaged, AsyncList
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
from azu... | PypiClean |
/tesla-ce-1.0.10.tar.gz/tesla-ce-1.0.10/src/tesla_ce/management/commands/resend_samples.py | """ DJango command to generate deployment scripts for a VLE """
from ..base import TeslaDeployCommand
from tesla_ce import models
from tesla_ce import tasks
class Command(TeslaDeployCommand):
""" Command to resend all pending enrolment samples """
help = 'Resend all pending enrolment samples'
requires_sys... | PypiClean |
/motioneye.eo-22.4.1.tar.gz/motioneye.eo-22.4.1/motioneye/config.py |
import collections
import datetime
import errno
import glob
import hashlib
import logging
import os.path
import re
import shlex
import subprocess
import urllib.parse
from tornado.ioloop import IOLoop
from motioneye import meyectl, motionctl, settings, tasks, uploadservices, utils
from motioneye.controls import diskc... | PypiClean |
/cc-pypackage-0.4.2.tar.gz/cc-pypackage-0.4.2/CONTRIBUTING.rst | ============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.
You can contribute in many ways:
Types of Contributions
----------------------
Report Bugs
~~~~~~~~~~~
Report bugs at https://github.com/robertopreste/cc-pypa... | PypiClean |
/NEMO_billing-2.6.7-py3-none-any.whl/NEMO_billing/prepayments/admin.py | from NEMO.utilities import format_datetime
from django import forms
from django.contrib import admin
from django.contrib.admin import widgets
from NEMO_billing.invoices.models import BillableItemType
from NEMO_billing.prepayments.models import Fund, FundType, ProjectPrepaymentDetail
from NEMO_billing.utilities import ... | PypiClean |
/cx_PyOracleLib-3.0.tar.gz/cx_PyOracleLib-3.0/cx_PatchCommands.py |
import cx_Exceptions
import cx_Logging
import cx_Oracle
import cx_OracleEx
import cx_OracleParser
import datetime
import os
import sys
class Processor(object):
def __init__(self, connection, onErrorContinue = False):
self.connection = connection
self.onErrorContinue = onErrorContinue
def _Lo... | PypiClean |
/lark-oapi-1.0.19.tar.gz/lark-oapi-1.0.19/lark_oapi/api/vc/v1/model/search_room_request_body.py |
from typing import *
from lark_oapi.core.construct import init
class SearchRoomRequestBody(object):
_types = {
"custom_room_ids": List[str],
"keyword": str,
"room_level_id": str,
"search_level_name": bool,
"page_size": int,
"page_token": str,
}
def __init... | PypiClean |
/Indomielibs-2.0.106.tar.gz/Indomielibs-2.0.106/README.md | <p align="center">
<a href="https://github.com/pyrogram/pyrogram">
<img src="https://docs.pyrogram.org/_static/pyrogram.png" alt="Pyrogram" width="128">
</a>
<br>
<b>Telegram MTProto API Framework for Python</b>
<br>
<a href="https://pyrogram.org">
Homepage
</a>
•
<a ... | PypiClean |
/fiftyone_eval_only-0.14.3-py3-none-any.whl/fiftyone/server/main.py | import asyncio
import argparse
from collections import defaultdict
from datetime import date, datetime, timedelta
import math
import os
import traceback
import tornado.escape
import tornado.ioloop
import tornado.iostream
import tornado.options
import tornado.web
from tornado.web import HTTPError
import tornado.websock... | PypiClean |
/pyinterboleto-0.3.0.tar.gz/pyinterboleto-0.3.0/README.md | # PyInterBoleto
Biblioteca para facilitar o manuseio de boletos de contas PJ no Banco Inter.
***
- [PyInterBoleto](#pyinterboleto)
- [Instalação](#instalação)
- [Documentação](#documentação)
- [Usagem básica](#usagem-básica)
- [Configuração de autenticação](#configuração-de-autenticação)
- [Emissão de boleto](#emi... | PypiClean |
/pylibad9361-0.2-py3-none-any.whl/ad9361.py |
from typing import List
import math
import iio
from iio import _ContextPtr, _DevicePtr
# Imports from package ctypes are not grouped
# pylint: disable=ungrouped-imports
#
# The way the methods and classes are used, violate this, but there
# isn't a good way to do things otherwise
# pylint: disable=protected-access... | PypiClean |
/contrast-agent-5.24.0.tar.gz/contrast-agent-5.24.0/src/contrast_vendor/structlog/_config.py | from __future__ import annotations
import os
import sys
import warnings
from typing import Any, Callable, Iterable, Sequence, Type, cast
from ._log_levels import make_filtering_bound_logger
from ._output import PrintLoggerFactory
from .contextvars import merge_contextvars
from .dev import ConsoleRenderer, _has_color... | PypiClean |
/hikari_tanjun-2.17.0.tar.gz/hikari_tanjun-2.17.0/tanjun/_internal/cache.py | """Utility classes for making cache calls."""
from __future__ import annotations
__all__: list[str] = ["get_perm_channel"]
import typing
import hikari
from ..dependencies import async_cache
if typing.TYPE_CHECKING:
from .. import abc as tanjun
_ChannelCacheT = async_cache.SfCache[hikari.PermissibleGuildChanne... | PypiClean |
/django_kelove_admin-0.4.1-py3-none-any.whl/django_kelove_admin/static/kelove_admin/editor_md/lib/codemirror/addon/mode/overlay.js |
// Utility function that allows modes to be combined. The mode given
// as the base argument takes care of most of the normal mode
// functionality, but a second (typically simple) mode is used, which
// can override the style of text. Both modes get to parse all of the
// text, but when both assign a non-null style t... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/setuptools/wheel.py |
from distutils.util import get_platform
import email
import itertools
import os
import posixpath
import re
import zipfile
import pkg_resources
import setuptools
from pkg_resources import parse_version
from setuptools.extern.packaging.utils import canonicalize_name
from setuptools.extern.six import PY3
from setuptools... | PypiClean |
/synthetic-data-generation-0.1.8.tar.gz/synthetic-data-generation-0.1.8/synthesis/synthesizers/privbayes.py | import numpy as np
import pandas as pd
import random
import dill
from sklearn.metrics import mutual_info_score
from collections import namedtuple
from joblib import Parallel, delayed
import synthesis.synthesizers.utils as utils
from synthesis.synthesizers._base import BaseDPSynthesizer
from thomas.core import Bayesia... | PypiClean |
/remote-docker-0.23.tar.gz/remote-docker-0.23/src/remotedocker.py | __version__ = '0.23'
def act_list(args):
from src.actions.list import print_list
from src import utils
db = utils.DB.load()
print_list(db)
def act_run_old(args):
from src import utils
db = utils.DB.load()
if not args.tag:
# provide some default tag
args.tag = db.get_late... | PypiClean |
/vitrox-mmcv-1.3.3.tar.gz/vitrox-mmcv-1.3.3/mmcv/ops/point_sample.py |
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.nn.modules.utils import _pair
def normalize(grid):
"""Normalize input grid from [-1, 1] to [0, 1]
Args:
grid (Tensor): The grid to be normalize, range [-1, 1].
Returns:
Tensor: Normalized grid, range [0, 1].
... | PypiClean |
/mixpanel-api3-0.2.1.tar.gz/mixpanel-api3-0.2.1/mixpanel_api/datasets_examples.py | from mixpanel_api import Mixpanel
if __name__ == '__main__':
credentials = {
# You can also use a datasets secret here for any version or import function instead
# For listing or deleting datasets, however, you must use the project API secret
'api_secret': '',
'token': '',
'dataset_id': '',
}
# In orde... | PypiClean |
/geojson_modelica_translator-0.6.0rc1.tar.gz/geojson_modelica_translator-0.6.0rc1/geojson_modelica_translator/model_connectors/energy_transfer_systems/heating_indirect.py |
import os
from geojson_modelica_translator.model_connectors.energy_transfer_systems.energy_transfer_base import (
EnergyTransferBase
)
from geojson_modelica_translator.modelica.package_parser import PackageParser
from geojson_modelica_translator.utils import simple_uuid
class HeatingIndirect(EnergyTransferBase)... | PypiClean |
/cmip6-downscaling-0.1.11.tar.gz/cmip6-downscaling-0.1.11/datasets.md | # Currently available datasets
See below for a table of all available datasets in this collection with storage locations and other metadata.
| GCM | Scenario | Method | Variable | License | Store ... | PypiClean |
/manimlib-0.2.0.tar.gz/manimlib-0.2.0/from_3b1b/old/nn/network.py | import os
import pickle
import random
# Third-party libraries
import numpy as np
from PIL import Image
from nn.mnist_loader import load_data_wrapper
# from utils.space_ops import get_norm
NN_DIRECTORY = os.path.dirname(os.path.realpath(__file__))
# PRETRAINED_DATA_FILE = os.path.join(NN_DIRECTORY, "pretrained_weights... | PypiClean |
/django-simplecontent-0.1a.1.tar.gz/django-simplecontent-0.1a.1/django_simplecontent/processors.py | import os
from xml.etree import ElementTree
from datetime import datetime
class PageProcessor:
def processFile(self, fileInfo):
pass
def processVariables(self, fileInfo, variables):
return variables
def processTemplate(self, fileInfo, variables, template):
pass
def processEnd(self):
pass
class LastModi... | PypiClean |
/CosmoTech-SupplyChain-5.1.0.tar.gz/CosmoTech-SupplyChain-5.1.0/Supplychain/Transform/from_table_to_dict_old.py | import argparse
from collections import defaultdict
import io
import json
import os
import pandas as pd
import re
from azure.storage.blob import BlobServiceClient
from azure.storage.queue import QueueClient, TextBase64EncodePolicy
from Supplychain.Generic.adt_writer import ADTWriter
from Supplychain.Generic.timer imp... | PypiClean |
/verizon-ap-is-sdk-1.0.0.tar.gz/verizon-ap-is-sdk-1.0.0/verizon/models/firmware_upgrade.py | from verizon.api_helper import APIHelper
from verizon.models.firmware_upgrade_device_list_item import FirmwareUpgradeDeviceListItem
class FirmwareUpgrade(object):
"""Implementation of the 'FirmwareUpgrade' model.
Array of upgrade objects with the specified status.
Attributes:
id (string): The u... | PypiClean |
/actinia-core-4.10.0.tar.gz/actinia-core-4.10.0/src/actinia_core/models/process_chain.py | from flask_restful_swagger_2 import Schema
from copy import deepcopy
from actinia_api import URL_PREFIX
__license__ = "GPLv3"
__author__ = "Sören Gebbert, Carmen Tawalika"
__copyright__ = (
"Copyright 2016-2021, Sören Gebbert and mundialis GmbH & Co. KG"
)
__maintainer__ = "mundialis"
SUPPORTED_EXPORT_FORMATS = ... | PypiClean |
/ask-sdk-model-1.82.0.tar.gz/ask-sdk-model-1.82.0/ask_sdk_model/interfaces/alexa/presentation/apl/send_event_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 |
/django-db-log-2.2.1.tar.gz/django-db-log-2.2.1/djangodblog/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 'ErrorBatch'
db.create_table('djangodblog_errorbatch', (
('status', self.gf('django.db.models... | PypiClean |
/vivisect-1.1.1-py3-none-any.whl/visgraph/pathcore.py | def newPathNode(parent=None, **kwargs):
'''
Create a new path node with the given properties
'''
ret = (parent, [], kwargs)
if parent is not None:
parent[1].append(ret)
return ret
def getNodeParent(pnode):
return pnode[0]
def delPathNode(pnode):
'''
Prune (remove) this node... | PypiClean |
/ascmhl-0.9.3.tar.gz/ascmhl-0.9.3/docs/source/index.rst | .. ascmhl documentation master file, created by
sphinx-quickstart on Mon Aug 3 15:08:58 2020.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to ascmhl's documentation!
==================================
This documentation is for the AS... | PypiClean |
/rkpython-0.0.21.tar.gz/rkpython-0.0.21/README.md | # rkpython
## Description
This is a general use Python module.
For now, it only contains some functions to make reading and **writing to text files** easier, as well as a function that returns information for reading csv files**.
## Installation
Use
```
pip install rkpython
```
Then import it in Python with
`... | PypiClean |
/useless_lavalink-1.4.6-py3-none-any.whl/lavalink/player.py | from __future__ import annotations
import asyncio
import datetime
import random
from collections import deque
from random import shuffle
from typing import TYPE_CHECKING, Optional, Any, Union
import discord
from discord.backoff import ExponentialBackoff
from discord.ext.commands import Bot
from discord.voice_client i... | PypiClean |
/vumi-go-0.5.0.tar.gz/vumi-go-0.5.0/go/vumitools/app_worker.py | from zope.interface import implements
from twisted.internet.defer import (
inlineCallbacks, returnValue, maybeDeferred, gatherResults)
from vumi import log
from vumi.worker import BaseWorker
from vumi.application import ApplicationWorker
from vumi.blinkenlights.metrics import MetricPublisher, Metric
from vumi.conf... | PypiClean |
/tensorflow_rocm_enhanced-2.4.3-cp36-cp36m-manylinux1_x86_64.whl/tensorflow/python/distribute/ps_values.py | """Various classes representing distributed values for PS."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import copy
import weakref
from tensorflow.python.distribute import distribute_lib
from tensorflow.python.distribute import distribution_strategy_... | PypiClean |
/funkiio-1.0.1-py3-none-any.whl/homeassistant/helpers/script.py |
import logging
from contextlib import suppress
from itertools import islice
from typing import Optional, Sequence
import voluptuous as vol
from homeassistant.core import HomeAssistant, Context, callback
from homeassistant.const import CONF_CONDITION, CONF_TIMEOUT
from homeassistant import exceptions
from homeassista... | PypiClean |
/tensorflow_cloud-0.1.16-py3-none-any.whl/tensorflow_cloud/tuner/utils.py | """Utilities for Vizier and KerasTuner integration."""
from typing import Any, Dict, List, Optional, Text, Union
from kerastuner.engine import hyperparameters as hp_module
from kerastuner.engine import metrics_tracking
from kerastuner.engine import oracle as oracle_module
from kerastuner.engine import trial as trial_... | PypiClean |
/sardana-3.3.6.tar.gz/sardana-3.3.6/doc/source/devel/overview/overview_2D.rst | .. currentmodule:: sardana.pool
.. _sardana-2d-overview:
=======================
2D channel overview
=======================
The 2D represents an experimental channel which acquisition result is an
image value. It is foreseen to interface with :term:`CCD` or photon-counting
array detectors.
The acquisition operatio... | PypiClean |
/mpyq-0.2.5.tar.gz/mpyq-0.2.5/README.md | # mpyq
mpyq is a Python library for reading MPQ (MoPaQ) archives used in many of
Blizzard's games. It was originally developed for data mining Starcraft II
replay files.
In addition to being a library, mpyq also has a command line interface that
exposes some of the library's core functionality such as extracting arch... | PypiClean |
/envoy.base.utils-0.4.11-py3-none-any.whl/envoy/base/utils/abstract/project/changelog.py | import logging
import pathlib
import re
import types
from datetime import datetime
from functools import cached_property
from typing import (
cast, Dict, ItemsView, Iterator, KeysView,
List, Pattern, Set, Tuple, Type, ValuesView)
from frozendict import frozendict
import jinja2
from packaging import version as ... | PypiClean |
/ufo-tofu-0.12.0.tar.gz/ufo-tofu-0.12.0/tofu/ez/GUI/Advanced/nlmdn.py | import logging
import os
from shutil import rmtree
from PyQt5.QtWidgets import (
QGridLayout,
QLabel,
QGroupBox,
QLineEdit,
QCheckBox,
QPushButton,
QFileDialog,
QMessageBox,
)
from PyQt5.QtCore import Qt
import tofu.ez.params as parameters
from tofu.ez.main_nlm import main_tk
LOG = l... | PypiClean |
/django-admin-star-1.0.4.tar.gz/django-admin-star-1.0.4/admin_star/static/js/toastDemo.js | (function($) {
showSuccessToast = function() {
'use strict';
resetToastPosition();
$.toast({
heading: 'Success',
text: 'And these were just the basic demos! Scroll down to check further details on how to customize the output.',
showHideTransition: 'slide',
icon: 'success',
lo... | PypiClean |
/zepben.cimbend-0.16.0b1.tar.gz/zepben.cimbend-0.16.0b1/src/zepben/cimbend/cim/iec61970/infiec61970/feeder/circuit.py | from __future__ import annotations
from typing import Optional, Generator, List
from zepben.cimbend.cim.iec61970.base.wires.line import Line
from zepben.cimbend.util import ngen, get_by_mrid, safe_remove, nlen
__all__ = ["Circuit"]
class Circuit(Line):
"""Missing description"""
loop: Optional[Loop] = None
... | PypiClean |
/deap-1.2.2.tar.gz/deap-1.2.2/doc/code/tutorials/part_1/1_where_to_start.py | from deap import base, creator
creator.create("FitnessMin", base.Fitness, weights=(-1.0,))
creator.create("Individual", list, fitness=creator.FitnessMin)
## 1.2 Initialization
import random
from deap import tools
IND_SIZE = 10
toolbox = base.Toolbox()
toolbox.register("attribute", random.random)
toolbox.register("in... | PypiClean |
/id_translation-0.5.1.tar.gz/id_translation-0.5.1/src/id_translation/fetching/exceptions.py | from typing import Any, Iterable
class FetcherWarning(RuntimeWarning):
"""Base class for ``Fetcher`` warnings."""
class FetcherError(RuntimeError):
"""Base class for ``Fetcher`` exceptions."""
class ForbiddenOperationError(FetcherError):
"""Exception indicating that the ``Fetcher`` does not support an... | PypiClean |
/lrgasp-tools-1.12.0.tar.gz/lrgasp-tools-1.12.0/README.md | # LRGASP Guidelines and Tools
Documentation and software for submitting to the
Long Read Genome Annotation Assessment Project (LRGASP).
Current documentation is published at [LRGASP Guidelines and Tools](https://lrgasp.github.io/lrgasp-submissions/docs).
Synapse challenge is at [Synapse LRGASP](https://www.synapse.o... | PypiClean |
/reqmgr2ms-rulecleaner-2.2.4rc3.tar.gz/reqmgr2ms-rulecleaner-2.2.4rc3/src/python/WMCore/Algorithms/MathAlgos.py | from __future__ import print_function, division
from builtins import str, range
import math
import decimal
import logging
from WMCore.WMException import WMException
class MathAlgoException(WMException):
"""
Some simple math algo exceptions
"""
pass
def getAverageStdDev(numList):
"""
_getA... | PypiClean |
/TracHierWiki-1.0.tar.gz/TracHierWiki-1.0/hierwiki/macros/subwiki.py |
from trac.core import *
from trac.wiki.api import IWikiMacroProvider, WikiSystem
from StringIO import StringIO
import re, string, inspect
class SubWikiMacro(Component):
"""
Inserts an alphabetic list of sub-wiki pages into the output.
A sub-wiki page is a page that is is deeper in the hierachy than the c... | PypiClean |
/libresoc-nmutil-0.0.1.tar.gz/libresoc-nmutil-0.0.1/src/nmutil/pipeline.py |
from collections.abc import Sequence
from nmigen import Signal
from nmigen.hdl.rec import Record
from nmigen import tracer
from nmigen.compat.fhdl.bitcontainer import value_bits_sign
from contextlib import contextmanager
from nmutil.nmoperator import eq
from nmutil.singlepipe import StageCls, ControlBase, BufferedHa... | PypiClean |
/drf-safe-jack-4.2.7.tar.gz/drf-safe-jack-4.2.7/rest_framework/static/rest_framework/js/prettify-min.js | var q=null;window.PR_SHOULD_USE_CONTINUATION=!0;
(function(){function L(a){function m(a){var f=a.charCodeAt(0);if(f!==92)return f;var b=a.charAt(1);return(f=r[b])?f:"0"<=b&&b<="7"?parseInt(a.substring(1),8):b==="u"||b==="x"?parseInt(a.substring(2),16):a.charCodeAt(1)}function e(a){if(a<32)return(a<16?"\\x0":"\\x")+a.to... | PypiClean |
/bento_meta-0.2.4.tar.gz/bento_meta-0.2.4/src/bento_meta/mdb/loaders.py | from tqdm import tqdm
from bento_meta.mdb import WriteableMDB
from bento_meta.util.cypher.entities import (
N, R, P, T, G, _plain_var
)
from bento_meta.util.cypher.clauses import (
Match, Create, Merge, Set, OnMatchSet, OnCreateSet,
Remove, Statement,
)
def load_mdf(mdf, mdb, _commit=None):
""... | PypiClean |
/etl-parser-1.0.1.tar.gz/etl-parser-1.0.1/etl/parsers/etw/Microsoft_Windows_msmpeg2venc.py | from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp import Sid
from etl.parsers.etw.core import Etw, declare, guid
@declare(guid=guid("d17b213a-c505-49c9-98cc-734253ef65d4"), ... | PypiClean |
/google-cloud-os-config-1.15.2.tar.gz/google-cloud-os-config-1.15.2/google/cloud/osconfig_v1/services/os_config_service/async_client.py | from collections import OrderedDict
import functools
import re
from typing import (
Dict,
Mapping,
MutableMapping,
MutableSequence,
Optional,
Sequence,
Tuple,
Type,
Union,
)
from google.api_core import exceptions as core_exceptions
from google.api_core import gapic_v1
from google.ap... | PypiClean |
/python_incidentio_client-0.30.0.tar.gz/python_incidentio_client-0.30.0/incident_io_client/models/custom_fields_v1_create_request_body.py | from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..models.custom_fields_v1_create_request_body_field_type import (
CustomFieldsV1CreateRequestBodyFieldType,
)
from ..models.custom_fields_v1_create_request_body_required import (
CustomFieldsV1CreateRequestBodyRequired,
)
from ..types i... | PypiClean |
/wtf-server-0.8.25.tar.gz/wtf-server-0.8.25/_setup/py2/data.py | __author__ = u"Andr\xe9 Malo"
__docformat__ = "restructuredtext en"
from distutils import filelist as _filelist
import os as _os
import posixpath as _posixpath
import sys as _sys
from _setup import commands as _commands
def splitpath(path):
""" Split a path """
drive, path = '', _os.path.normpath(path)
... | PypiClean |
/aolab-bmi3d-0.9.6.tar.gz/aolab-bmi3d-0.9.6/riglib/bmi/accumulator.py | import numpy as np
class FeatureAccumulator(object):
'''Used only for type-checking'''
pass
class RectWindowSpikeRateEstimator(FeatureAccumulator):
'''
Estimate spike firing rates using a rectangular window
'''
def __init__(self, count_max, feature_shape, feature_dtype):
'''
Co... | PypiClean |
/ac-ptk-0.1.5.tar.gz/ac-ptk-0.1.5/performance/android.py | import os
import re
import sqlite3
import subprocess
import time
import traceback
from time import sleep
from performance.config import WORK_DIR
from performance import DUMP_INTERVAL, mail, DB_NAME, db_helper, matlab_plt
from performance.db_helper import create_table_if_need
from performance.excelx import excelx
from... | PypiClean |
/bob.db.msu_mfsd_mod-2.2.9.zip/bob.db.msu_mfsd_mod-2.2.9/bob/db/msu_mfsd_mod/driver.py | #import os
#import sys
#from bob.db.base.driver import Interface as BaseInterface
#from . import Database
import os
import sys
from bob.db.base.driver import Interface as BaseInterface
# Driver API
# ==========
def dumplist(args):
"""Dumps lists of files based on your criteria"""
#from .__init__ import Databas... | PypiClean |
/PyKMIP-0.10.0.tar.gz/PyKMIP-0.10.0/kmip/services/server/session.py |
import binascii
import logging
import socket
import struct
import threading
import time
from cryptography import x509
from kmip.core import enums
from kmip.core import exceptions
from kmip.core.messages import contents
from kmip.core.messages import messages
from kmip.core import utils
from kmip.services.server imp... | PypiClean |
/pilas-1.4.9.tar.gz/pilas-1.4.9/pilasengine/actores/pizarra.py |
from pilasengine.actores.actor import Actor
from pilasengine import colores
class Pizarra(Actor):
"""Representa una superficie de dibujo inicialmente transparente.
Puedes pintar sobre esta pizarra usando métodos que simulan
un lapiz, que se puede mover sobre una superficie.
"""
def __init__(sel... | PypiClean |
/paddlepaddle_gpu-2.5.1-cp38-cp38-win_amd64.whl/paddle/utils/image_util.py |
from io import StringIO
import numpy as np
from PIL import Image
__all__ = []
def resize_image(img, target_size):
"""
Resize an image so that the shorter edge has length target_size.
img: the input image to be resized.
target_size: the target resized image size.
"""
percent = target_size / ... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/response/AlipayEbppInvoiceTitleDetailQueryResponse.py | import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
class AlipayEbppInvoiceTitleDetailQueryResponse(AlipayResponse):
def __init__(self):
super(AlipayEbppInvoiceTitleDetailQueryResponse, self).__init__()
self._address = None
self._name = None
self._open_b... | PypiClean |
/CustomPipeline-0.0.3-py3-none-any.whl/rplibs/yaml/yaml_py2/events.py |
class Event(object):
def __init__(self, start_mark=None, end_mark=None):
self.start_mark = start_mark
self.end_mark = end_mark
def __repr__(self):
attributes = [key for key in ['anchor', 'tag', 'implicit', 'value']
if hasattr(self, key)]
arguments = ', '.join(['%... | PypiClean |
/Pyomo-6.6.2-cp39-cp39-win_amd64.whl/pyomo/mpec/complementarity.py |
from collections import namedtuple
from pyomo.common.deprecation import RenamedClass
from pyomo.common.log import is_debug_set
from pyomo.common.timing import ConstructionTimer
import pyomo.core.expr as EXPR
from pyomo.core.expr.numvalue import ZeroConstant, native_numeric_types, as_numeric
from pyomo.core import Con... | PypiClean |
/RecLab-0.1.2.tar.gz/RecLab-0.1.2/reclab/environments/contextual.py | import collections
import numpy as np
from .. import data_utils
from . import environment
class Contextual(environment.DictEnvironment):
"""
An environment that implements the contextual bandit assumption.
Parameters
----------
name: string
The dataset to instantiate the environment wit... | PypiClean |
/sym_flow_cli-8.0.4-py3-none-any.whl/sym/flow/cli/helpers/login/login_flow.py | import uuid
import webbrowser
from abc import ABC, abstractmethod
from http.server import HTTPServer
from typing import Optional, Tuple
import click
import pkce
import requests
import sym.flow.cli.helpers.output as cli_output
from sym.flow.cli.errors import LoginError
from sym.flow.cli.helpers.global_options import G... | PypiClean |
/scalde_easy_testing-0.0.1-py3-none-any.whl/easy_testing/dataframes.py | from typing import Any, Iterable
from unittest.mock import MagicMock
import pandas as pd
class AssertFrame:
def __init__(self, data: pd.DataFrame, **kwargs) -> None:
self.data = data
self.kwargs = kwargs
def assert_called_once_with_frame(mock: MagicMock, *args, **kwargs) -> None:
if not moc... | PypiClean |
/latypov_amelin_zueva_babayan-1.2-py3-none-any.whl/latypov_amelin_zueva_babayan/pract1.py | import math
import numexpr as ne
from datetime import datetime
import plotly
import plotly.graph_objs as go
import plotly.express as px
from plotly.subplots import make_subplots
import numpy as np
import pandas as pd
from scipy import integrate
from scipy.misc import derivative
def main():
"""
Основная функц... | PypiClean |
/dsin100daysv36-6.0.1.tar.gz/dsin100daysv36-6.0.1/notebook/static/components/MathJax/localization/es/MathMenu.js | MathJax.Localization.addTranslation("es","MathMenu",{version:"2.7.8",isLoaded:true,strings:{Show:"Mostrar las f\u00F3rmulas como",MathMLcode:"C\u00F3digo de MathML",OriginalMathML:"MathML original",TeXCommands:"\u00D3rdenes de TeX",AsciiMathInput:"Entrada AsciiMathML",Original:"Forma original",ErrorMessage:"Mensaje de ... | PypiClean |
/collective.portlets.lineage-1.3.0.zip/collective.portlets.lineage-1.3.0/README.txt | Introduction
============
Portlets which can optionally include or exclude content from subsites, as provided by collective.lineages Child Folder.
The portlets filter out subsite paths via the use of Products.AdvancedQuery, which ships with Plone 3.x
These portlets require that collective.lineages be installed in yo... | PypiClean |
/django_unicorn_gbusby-0.50.3-py3-none-any.whl/django_unicorn/static/unicorn/js/attribute.js | import { contains } from "./utils.js";
/**
* Encapsulate DOM element attribute for Unicorn-related information.
*/
export class Attribute {
constructor(attribute) {
this.attribute = attribute;
this.name = this.attribute.name;
this.value = this.attribute.value;
this.isUnicorn = false;
this.isMod... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_8/models/policy_rule_snapshot.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_8 import models
class PolicyRuleSnapshot(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value... | PypiClean |
/nn-meter-2.0.tar.gz/nn-meter-2.0/nn_meter/builder/backend_meta/utils.py | import math
import copy
from typing import List
class ProfiledResults:
def __init__(self, results=None):
"""
Initialize the profiled results of test models running on backends.
@params:
results: Dict
The profiled results, with Dict key to be the metric... | PypiClean |
/esi_client-0.1.0a1.tar.gz/esi_client-0.1.0a1/esi_client/model/get_contracts_public_region_id200_ok.py | import re # noqa: F401
import sys # noqa: F401
from esi_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,
val... | PypiClean |
/nnisgf-0.4-py3-none-manylinux1_x86_64.whl/nnisgf-0.4.data/data/nni/node_modules/topo/test/index.js |
var Code = require('code');
var Lab = require('lab');
var Hoek = require('hoek');
var Topo = require('..');
// Declare internals
var internals = {};
// Test shortcuts
var lab = exports.lab = Lab.script();
var describe = lab.describe;
var it = lab.it;
var expect = Code.expect;
describe('Topo', function () {
... | PypiClean |
/Ageas-0.0.1a6.tar.gz/Ageas-0.0.1a6/ageas/classifier/cnn_hybrid.py | import os
import math
import torch
import itertools
import torch.nn as nn
from warnings import warn
import torch.optim as optim
import torch.nn.functional as func
from torch.utils.data import DataLoader
import ageas.classifier as classifier
class Limited(nn.Module):
"""
Defining a CNN model treating input as... | PypiClean |
/abl.jquery.ui-1.8.7-3.tar.gz/abl.jquery.ui-1.8.7-3/abl/jquery/ui/widgets.py | from simplejson import dumps
from tw.api import (
JSLink,
js_callback,
js_function,
Widget)
from tw.forms import TextField
from abl.jquery.core import (
jQuery,
jquery_js)
from abl.utils.odict import OrderedDict
from abl.jquery.core.widgets import update_content_js
from abl.jquery.ui import (... | PypiClean |
/Payton-1.1.8-py3-none-any.whl/payton/scene/geometry/plane.py | from itertools import product
from typing import Any, List
from payton.scene.geometry.mesh import Mesh
from payton.scene.material import SOLID, WHITE
_BULLET = False
try:
import pybullet
_BULLET = True
except ModuleNotFoundError:
_BULLET = False
class Plane(Mesh):
"""Plane object."""
def __ini... | PypiClean |
/bbrc-bx-0.5.2.tar.gz/bbrc-bx-0.5.2/bx/parse.py | import os.path as op
import os
import tempfile
import argparse
import pkgutil
import inspect
import logging as log
from rich.console import Console
from rich.theme import Theme
t = Theme()
t.styles.pop('repr.number')
t.styles.pop('repr.str')
console = Console(theme=t)
print = console.print
def __get_modules__(m):
... | PypiClean |
/Boltzmannizer-0.1.tar.gz/Boltzmannizer-0.1/boltzmannizer/gui/app.py |
from functools import partial
import wx
from boltzmannizer.gui.plot import PlotFrame2DByTemperature, PlotFrame3DPopulation
from boltzmannizer.gui.utils import DataPanel
from boltzmannizer.science.boltzmann_distribution import BoltzmannDistribution
from boltzmannizer.tools.misc import Reserver
class BoltzmannDistri... | PypiClean |
/auto_ohin-0.1.0-py3-none-any.whl/auto_ohin-0.1.0.dist-info/LICENSE.md | MIT License
Copyright (c) 2020 Sota Misawa
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distr... | PypiClean |
/cf_remote-0.4.11-py3-none-any.whl/cf_remote/utils.py | import os
import sys
import re
import json
import getpass
from collections import OrderedDict
from cf_remote import log
from datetime import datetime
def is_in_past(date):
now = datetime.now()
date = datetime.strptime(date, "%Y-%m-%d")
return now > date
def cache(func):
"""Memoization decorator simi... | PypiClean |
/django-registration-html-email-0.8.1b0.tar.gz/django-registration-html-email-0.8.1b0/docs/quickstart.rst | .. _quickstart:
Quick start guide
=================
Before installing django-registration, you'll need to have a copy of
`Django <http://www.djangoproject.com>`_ already installed. For the
|version| release, Django 1.1 or newer is required.
For further information, consult the `Django download page
<http://www.djang... | PypiClean |
/py-stylus-ui-0.1.1.tar.gz/py-stylus-ui-0.1.1/src/py_stylus_ui/py_stylus_ui.py | import configparser
import os
import subprocess
import tkinter as tk
from pathlib import Path
def config_path() -> Path:
"""Provide the configuration path."""
env_directory = os.environ.get("XDG_CONFIG_HOME") or os.environ.get("APPDATA")
if env_directory:
directory = Path(env_directory)
else:... | PypiClean |
/neo4j-driver-5.12.0.tar.gz/neo4j-driver-5.12.0/src/neo4j/_codec/hydration/v2/temporal.py |
from ..v1.temporal import *
def hydrate_datetime(seconds, nanoseconds, tz=None): # type: ignore[no-redef]
""" Hydrator for `DateTime` and `LocalDateTime` values.
:param seconds:
:param nanoseconds:
:param tz:
:returns: datetime
"""
import pytz
minutes, seconds = map(int, divmod(se... | PypiClean |
/strategy_analytics-0.0.0.2.tar.gz/strategy_analytics-0.0.0.2/README.md | ## Strategy Analytics Library
The **Strategy Analytics Library** is a python package that contains a function to compute two tables. The function is called 'strategy_stats' and it produces the following output:
1. A drawdown table in which you will get the 10 most important drawdowns of the strategy returns you give... | PypiClean |
/plone.formwidget.datetime-1.3.5.tar.gz/plone.formwidget.datetime-1.3.5/plone/formwidget/datetime/z3cform/converter.py | import pytz
from datetime import date, datetime
from plone.formwidget.datetime.z3cform.interfaces import DateValidationError
from plone.formwidget.datetime.z3cform.interfaces import\
DatetimeValidationError
from z3c.form.converter import BaseDataConverter
class DateDataConverter(BaseDataConverter):
def toWid... | PypiClean |
/certora_cli_alpha_rahav_CERT_1849-20230501.11.34.215275-py3-none-any.whl/certora_cli/Shared/certoraUtils.py | import csv
import json
import os
import subprocess
from abc import ABCMeta
from enum import Enum, unique
import sys
import platform
import shlex
import shutil
import re
import queue
import math
from typing import Any, Callable, Dict, List, Optional, Set, Union, Generator, Tuple
from pathlib import Path
from contextlib ... | PypiClean |
/scaleway_async-1.1.0-py3-none-any.whl/scaleway_async/account/v2/types.py | from __future__ import annotations
from dataclasses import dataclass
from datetime import datetime
from enum import Enum
from typing import List, Optional
from scaleway_core.utils import (
StrEnumMeta,
)
class ListProjectsRequestOrderBy(str, Enum, metaclass=StrEnumMeta):
CREATED_AT_ASC = "created_at_asc"
... | PypiClean |
/jderbobot-pibot-sim-0.0.1.tar.gz/jderbobot-pibot-sim-0.0.1/pibot/progeo.py | import numpy
DEBUG = 1
ANCHO_IMAGEN = 320
LARGO_IMAGEN = 240
DEGTORAD = 3.1415926535897932 / 180
GREEN_MIN = numpy.array([20, 50, 100],numpy.uint8)#numpy.array([48, 138, 138],numpy.uint8)
GREEN_MAX = numpy.array([90, 235, 210],numpy.uint8)#numpy.array([67, 177, 192],numpy.uint8)
def pixel2optical (p2d):
aux = p2d.x
... | PypiClean |
/pinkbelt-0.16.1.tar.gz/pinkbelt-0.16.1/pavement.py | from paver.easy import *
from paver.setuputils import setup
options = environment.options
NAME = 'pinkbelt'
VERSION = '0.16.1'
requires = ['six', 'click', 'requests', 'PyGithub', 'slacker>=0.6.2', 'pyopenssl', 'ndg-httpsclient', 'pyasn1', 'twine']
setup(
name=NAME,
version=VERSION,
description='Opiniona... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/models/thumbnail_set.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, thumbnail
class ThumbnailSet(entity.Entity):
"""
Provides operations to manage the collection of agreemen... | PypiClean |
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/esphome/config_flow.py | from __future__ import annotations
from collections import OrderedDict
from collections.abc import Mapping
import json
import logging
from typing import Any
from aioesphomeapi import (
APIClient,
APIConnectionError,
DeviceInfo,
InvalidAuthAPIError,
InvalidEncryptionKeyAPIError,
RequiresEncrypt... | PypiClean |
/google-cloud-essential-contacts-1.5.3.tar.gz/google-cloud-essential-contacts-1.5.3/google/cloud/essential_contacts_v1/services/essential_contacts_service/transports/grpc_asyncio.py | from typing import Awaitable, Callable, Dict, Optional, Sequence, Tuple, Union
import warnings
from google.api_core import gapic_v1, grpc_helpers_async
from google.auth import credentials as ga_credentials # type: ignore
from google.auth.transport.grpc import SslCredentials # type: ignore
from google.protobuf import... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.