id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/pygray-0.9.8.tar.gz/pygray-0.9.8/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install PyGray, run this command in your terminal: .. code-block:: console $ pip install pygray This is the preferred method to install PyGray, as it will always install the most recent stable release. If you don't...
PypiClean
/py-ews-3.2.0.tar.gz/py-ews-3.2.0/pyews/service/base.py
import abc import requests from lxml.builder import ElementMaker from lxml import etree from bs4 import BeautifulSoup from ..core import Core, Authentication from ..utils.attributes import RESPONSE_CODES class Base(Core): """The Base class is used by all endpoints and network communications. It defines the b...
PypiClean
/onlinepayments-sdk-python2-4.14.0.zip/onlinepayments-sdk-python2-4.14.0/onlinepayments/sdk/merchant/mandates/mandates_client.py
from onlinepayments.sdk.api_resource import ApiResource from onlinepayments.sdk.response_exception import ResponseException from onlinepayments.sdk.domain.create_mandate_response import CreateMandateResponse from onlinepayments.sdk.domain.error_response import ErrorResponse from onlinepayments.sdk.domain.get_mandate_re...
PypiClean
/stac_fastapi.api-2.4.8-py3-none-any.whl/stac_fastapi/api/errors.py
import logging from typing import Callable, Dict, Type, TypedDict from fastapi import FastAPI from fastapi.exceptions import RequestValidationError from starlette import status from starlette.requests import Request from starlette.responses import JSONResponse from stac_fastapi.types.errors import ( ConflictErro...
PypiClean
/ampel_core-0.9.0.tar.gz/ampel_core-0.9.0/ampel/ops/AmpelExceptionPublisher.py
import datetime, json, socket from bson import ObjectId from slack_sdk.web import WebClient from slack_sdk.web.slack_response import SlackResponse from typing import Any from ampel.abstract.AbsOpsUnit import AbsOpsUnit from ampel.secret.NamedSecret import NamedSecret class AmpelExceptionPublisher(AbsOpsUnit): ...
PypiClean
/fastapi-0.103.0.tar.gz/fastapi-0.103.0/docs/zh/docs/tutorial/request-files.md
# 请求文件 `File` 用于定义客户端的上传文件。 !!! info "说明" 因为上传文件以「表单数据」形式发送。 所以接收上传文件,要预先安装 <a href="https://andrew-d.github.io/python-multipart/" class="external-link" target="_blank">`python-multipart`</a>。 例如: `pip install python-multipart`。 ## 导入 `File` 从 `fastapi` 导入 `File` 和 `UploadFile`: ```Python hl_lines="...
PypiClean
/direct-sdk-python3-1.10.0.zip/direct-sdk-python3-1.10.0/ingenico/direct/sdk/domain/payment_product.py
from typing import List from ingenico.direct.sdk.data_object import DataObject from ingenico.direct.sdk.domain.account_on_file import AccountOnFile from ingenico.direct.sdk.domain.payment_product302_specific_data import PaymentProduct302SpecificData from ingenico.direct.sdk.domain.payment_product320_specific_data impor...
PypiClean
/sphinx_seepln_theme-1.0.18.tar.gz/sphinx_seepln_theme-1.0.18/README.md
# sphinx_seepln_theme ## Change Log ### 0.2.14 * add auth * fix header issue ### 0.2.8 * Add product name * Move version to header * hide Dev version ### 0.2.5 * change note css ### 0.2.4 * adjust table css ### 0.2.3 * remove PDF download button ### 0.2.2 * add config display_header default true * add conf...
PypiClean
/nonebot_plugin_l4d2_server-0.6.3-py3-none-any.whl/nonebot_plugin_l4d2_server/l4d2_data/__init__.py
import sqlite3 from nonebot.log import logger from ..l4d2_utils.config import ( DATASQLITE, L4d2_BOOLEAN, L4d2_INTEGER, L4d2_players_tag, L4d2_server_tag, L4d2_TEXT, table_data, tables_columns, ) class L4D2DataSqlite: """连接数据库和断开数据库,以及一些检查函数""" def __init__(self): ""...
PypiClean
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/depd/lib/compat/callsite-tostring.js
'use strict' /** * Module exports. */ module.exports = callSiteToString /** * Format a CallSite file location to a string. */ function callSiteFileLocation (callSite) { var fileName var fileLocation = '' if (callSite.isNative()) { fileLocation = 'native' } else if (callSite.isEval()) { fileName...
PypiClean
/displaylang_sympy-0.10.4-py3-none-any.whl/sympy/polys/matrices/eigen.py
from sympy.core.symbol import Dummy from ..agca.extensions import FiniteExtension from ..factortools import dup_factor_list from ..polyroots import roots from ..polytools import Poly from ..rootoftools import CRootOf from .domainmatrix import DomainMatrix def dom_eigenvects(A, l=Dummy('lambda')): charpoly = A.c...
PypiClean
/ax-platform-0.3.4.tar.gz/ax-platform-0.3.4/ax/utils/testing/mock.py
from contextlib import contextmanager, ExitStack from functools import wraps from typing import Any, Callable, Dict, Generator, Optional from unittest import mock from ax.models.torch.fully_bayesian import run_inference from botorch.fit import fit_fully_bayesian_model_nuts from botorch.generation.gen import minimize_...
PypiClean
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/messages/item/create_forward/create_forward_post_request_body.py
from __future__ import annotations from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter from typing import Any, Callable, Dict, List, Optional, Union from .....models import message, recipient class CreateForwardPostRequestBody(AdditionalDataHolder, Parsable): ...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_2/models/protection_group_performance.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_2 import models class ProtectionGroupPerformance(object): """ Attributes: swagger_types (dict): The key is attribute name and t...
PypiClean
/printnanny-api-client-0.135.1.tar.gz/printnanny-api-client-0.135.1/docs/OctoPrintBackup.md
# OctoPrintBackup ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **id** | **int** | | [readonly] **created_dt** | **datetime** | | [readonly] **hostname** | **str** | | **name** | **str** | | **octoprint_version** | **str** | | **file** | **str**...
PypiClean
/PRAF-1.3.tar.gz/PRAF-1.3/docs/source/index.rst
.. Python Rest Api Framework documentation master file, created by sphinx-quickstart on Tue Oct 8 11:45:32 2013. You can adapt this file completely to your liking, but it should at least contain the root `toctree` directive. Python Rest Api Framework's documentation ========================================= ...
PypiClean
/ADCPy-0.1.1.tar.gz/ADCPy-0.1.1/adcpy/EPICstuff/reshapeEPIC.py
import sys import os import datetime as dt import netCDF4 as nc from netCDF4 import num2date import numpy as np import math # noinspection PyUnboundLocalVariable,SpellCheckingInspection def reshapeEPIC(cont_file, burst_file, burst_length, dim='time', edges=None, drop=None, variable_attributes_to_omit=...
PypiClean
/ansys_api_systemcoupling-0.1.0-py3-none-any.whl/ansys/api/systemcoupling/v0/process_pb2_grpc.py
"""Client and server classes corresponding to protobuf-defined services.""" import grpc from ansys.api.systemcoupling.v0 import process_pb2 as ansys_dot_api_dot_systemcoupling_dot_v0_dot_process__pb2 class ProcessStub(object): """Missing associated documentation comment in .proto file.""" def __init__(self,...
PypiClean
/nni_daily-1.5.2005180104-py3-none-manylinux1_x86_64.whl/nni_daily-1.5.2005180104.data/data/nni/node_modules/kubernetes-client/node_modules/qs/lib/stringify.js
'use strict'; var utils = require('./utils'); var formats = require('./formats'); var has = Object.prototype.hasOwnProperty; var arrayPrefixGenerators = { brackets: function brackets(prefix) { return prefix + '[]'; }, comma: 'comma', indices: function indices(prefix, key) { return pref...
PypiClean
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_23/models/software_installations_response.py
import pprint import re import six import typing from ....properties import Property if typing.TYPE_CHECKING: from pypureclient.flasharray.FA_2_23 import models class SoftwareInstallationsResponse(object): """ Attributes: swagger_types (dict): The key is attribute name a...
PypiClean
/kiwitcms-12.4.tar.gz/kiwitcms-12.4/tcms/node_modules/moment/locale/ss.js
;(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' && typeof require === 'function' ? factory(require('../moment')) : typeof define === 'function' && define.amd ? define(['../moment'], factory) : factory(global.moment) }(this, (function (moment) { 'use strict'; ...
PypiClean
/kkutils-1.6.6.tar.gz/kkutils-1.6.6/utils/log_utils.py
import logging from functools import lru_cache from pathlib import Path from coloredlogs import BasicFormatter, ColoredFormatter class WatchedFileHandler(logging.handlers.WatchedFileHandler): '''重写handler,使指定级别的日志只写入指定的文件中''' def emit(self, record): if record.levelno == self.level: super...
PypiClean
/signalyzer-0.3.0.tar.gz/signalyzer-0.3.0/docs/index.rst
.. currentmodule:: signalyzer .. _JupyterLab: https://jupyter.org/ .. _numpy: https://numpy.org/ .. _scipy: https://www.scipy.org/ .. _pandas: https://pandas.pydata.org/docs/ .. _plotly: https://plotly.com/python/ .. _dash: https://dash.plotly.com/ .. _streamlit: https://streamlit.io/ .. _voila: https://voila.readthed...
PypiClean
/dropbox_compatiable-3.38.tar.gz/dropbox_compatiable-3.38/dropbox/base.py
from abc import ABCMeta, abstractmethod from . import babel_validators as bv from . import ( files, sharing, users, ) class DropboxBase(object): __metaclass__ = ABCMeta @abstractmethod def request(self): pass # ------------------------------------------ # Routes in files na...
PypiClean
/aspose-email-cloud-21.9.0.tar.gz/aspose-email-cloud-21.9.0/AsposeEmailCloudSdk/models/mapi_recipient_dto.py
import pprint import re import six from typing import List, Set, Dict, Tuple, Optional from datetime import datetime class MapiRecipientDto(object): """Represents the recipient information in the Microsoft Outlook Message. """ """ Attributes: swagger_types (dict): The key is attri...
PypiClean
/cdktf_cdktf_provider_boundary-7.0.0-py3-none-any.whl/cdktf_cdktf_provider_boundary/host_catalog_plugin/__init__.py
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from typeguard import check_type from .._jsii import * import cdktf as _cdktf_9a9027ec import constructs as _constructs_77d1e7e8 class HostCatalogPlugin( _cdktf_9a9027ec.TerraformResour...
PypiClean
/fonty-0.2.6.tar.gz/fonty-0.2.6/README.rst
.. image:: https://github.com/jamesssooi/fonty/raw/master/artwork/logo.png :alt: Logo of fonty :width: 300px :align: center .. image:: https://raw.githubusercontent.com/jamesssooi/fonty/master/artwork/hero.png :alt: Screenshot of fonty commands :width: 760px :align: center A comma...
PypiClean
/polyaxon-schemas-0.6.0.tar.gz/polyaxon-schemas-0.6.0/polyaxon_schemas/ml/layers/normalization.py
from __future__ import absolute_import, division, print_function from marshmallow import fields from polyaxon_schemas.ml.constraints import ConstraintSchema from polyaxon_schemas.ml.initializations import ( InitializerSchema, OnesInitializerConfig, ZerosInitializerConfig ) from polyaxon_schemas.ml.layers....
PypiClean
/exabel-data-sdk-4.5.0.tar.gz/exabel-data-sdk-4.5.0/exabel_data_sdk/client/api/api_client/grpc/time_series_grpc_client.py
from exabel_data_sdk.client.api.api_client.exabel_api_group import ExabelApiGroup from exabel_data_sdk.client.api.api_client.grpc.base_grpc_client import BaseGrpcClient from exabel_data_sdk.client.api.api_client.time_series_api_client import TimeSeriesApiClient from exabel_data_sdk.client.api.error_handler import handl...
PypiClean
/azure-mgmt-web-7.1.0.zip/azure-mgmt-web-7.1.0/azure/mgmt/web/v2015_04_01/operations/_domains_operations.py
import sys from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload import urllib.parse from azure.core.exceptions import ( ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, ResourceNotModifiedError, map_error, ) from...
PypiClean
/raven_framework-2.3-cp39-cp39-win_amd64.whl/ravenframework/PluginBaseClasses/PostProcessorPluginBase.py
#Internal Modules--------------------------------------------------------------- from .. import Files from ..utils import InputData, InputTypes from ..DataObjects import DataObject from .PluginBase import PluginBase from ..Models.PostProcessors import PostProcessorReadyInterface from ..Models.PostProcessors import fact...
PypiClean
/dschmidt-cdktf-provider-google_beta-0.1.0.tar.gz/dschmidt-cdktf-provider-google_beta-0.1.0/src/dschmidt_cdktf_provider_google_beta/google_healthcare_dataset_iam_member/__init__.py
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from typeguard import check_type from .._jsii import * import cdktf import constructs class GoogleHealthcareDatasetIamMember( cdktf.TerraformResource, metaclass=jsii.JSIIMeta, j...
PypiClean
/netscaler-api-0.2.3.tar.gz/netscaler-api-0.2.3/docs/changelog.rst
========= Changelog ========= 0.2.3 ===== - :bug:`2` Fixed a typo in the call to ``InteractionError``. - Documentation improvments 0.2.2 ===== - :bug:`1` Fixed a bug where setup.py was crashing with an ``ImportError`` when importing the version string from ``netscaler.py`` in the case where suds was not install...
PypiClean
/hopcolony-0.1.6.tar.gz/hopcolony-0.1.6/README.md
<p align="center"> <a href="https://hopcolony.io"><img src="https://github.com/hopcolony/hopcolony/raw/master/docs/assets/images/logo.png" alt="hopcolony"></a> </p> <p align="center"> <em>Focus on you app. Let us manage your backend.</em> </p> <p align="center"> <a href="https://github.com/hopcolony/python-hopcol...
PypiClean
/picblocks-2.0.0.tar.gz/picblocks-2.0.0/utils/make_stats.py
import os import time import logging from picblocks.blockhasher import BlockHasher from picblocks.blockhashmatcher import BlockHashMatcher #TODO: Refactoring needed ! Importing from external and unique source import json try: from pymongo import MongoClient c = MongoClient("mongodb://localhost:27017") ...
PypiClean
/tfdsio-0.0.12.tar.gz/tfdsio-0.0.12/README.md
# TensorFlow Datasets IO (tfdsio) Dynamic TensorFlow Datasets with Pytorch Support + More ## Features `tfdsio` allows for creation of tensorflow_datasets dynamically defined by a config (json/dict) without requiring writing custom python classes, which can lead to library bloat. Additionally, you can also define a ...
PypiClean
/ccsi-foqus-3.18.0.tar.gz/ccsi-foqus-3.18.0/docs/source/contact.rst
Contact and Support ------------------- There are multiple ways to contact the development team, get support, file a bug, make a feature request and even contribute code changes to FOQUS: - Send a private email to ccsi-support@acceleratecarboncapture.org for contacting an internal set of developers. - Subscribe to...
PypiClean
/python-euskalmet-0.2.1.tar.gz/python-euskalmet-0.2.1/euskalmet/euskalmet.py
import configparser import json from pathlib import Path import jwt import pytz import requests from .exceptions import EuskalmetException # TODO: Introducir loggers class Euskalmet: """ Objeto para el acceso a la API de Euskalmet. Antes de comenzar, es necesario tener una cuenta en la API de Euskalme...
PypiClean
/dsin100daysv34-6.0.1.tar.gz/dsin100daysv34-6.0.1/COPYING.md
# Licensing terms This project is licensed under the terms of the Modified BSD License (also known as New or Revised or 3-Clause BSD), as follows: - Copyright (c) 2001-2015, IPython Development Team - Copyright (c) 2015-, Jupyter Development Team All rights reserved. Redistribution and use in source and binary form...
PypiClean
/diamond-next-5.0.0.tar.gz/diamond-next-5.0.0/src/collectors/mysqlstat/mysql55.py
from __future__ import division import re import time import diamond.collector try: import mysqlclient from mysqlclient import MySQLError except ImportError: mysqlclient = None class MySQLPerfCollector(diamond.collector.Collector): def process_config(self): super(MySQLPerfCollector, self)....
PypiClean
/snowmobile-0.2.0b0.tar.gz/snowmobile-0.2.0b0/docs/usage/snowmobile.md
(usage/snowmobile)= # Snowmobile <hr class="sn-grey"> An instance of {class}`~snowmobile.Snowmobile` ({class}`sn`) represents a distinct [session](https://docs.snowflake.com/en/sql-reference/functions/current_session.html) along with the contents of [snowmobile.toml](./snowmobile_toml.md#snowmobiletoml) that it was ...
PypiClean
/custom_obj_detector-1.tar.gz/custom_obj_detector-1/lfads/run_lfads.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from lfads import LFADS import numpy as np import os import tensorflow as tf import re import utils import sys MAX_INT = sys.maxsize # Lots of hyperparameters, but most are pretty insensitive. The # explanati...
PypiClean
/ams_dott_runtime-1.1.0-py3-none-win_amd64.whl/ams_dott_runtime-1.1.0.data/data/dott_data/apps/python27/python-2.7.13/Lib/urllib2.py
# Possible extensions: # complex proxies XXX not sure what exactly was meant by this # abstract factory for opener import base64 import hashlib import httplib import mimetools import os import posixpath import random import re import socket import sys import time import urlparse import bisect import warnings try: ...
PypiClean
/linchpin-2.0.4.1.tar.gz/linchpin-2.0.4.1/docs/source/beaker.rst
Beaker ====== The Beaker (bkr) provider manages a single resource, ``bkr_server``. bkr_server ---------- Beaker instances are provisioned using this resource. * :docs1.5:`Topology Example <workspace/topologies/bkr-new.yml>` The ansible modules for beaker are written and bundled as part of LinchPin. * :code1.5:`bk...
PypiClean
/chalkpy-2.16.10.tar.gz/chalkpy-2.16.10/chalk/feature_n/feature_80/feature.py
from typing import TypeVar, Generic, Optional, Dict from chalk.features.dataframe import DataFrameMeta T1 = TypeVar("T1") T2 = TypeVar("T2") T3 = TypeVar("T3") T4 = TypeVar("T4") T5 = TypeVar("T5") T6 = TypeVar("T6") T7 = TypeVar("T7") T8 = TypeVar("T8") T9 = TypeVar("T9") T10 = TypeVar("T10") T11 = TypeVar("T11") T1...
PypiClean
/ansys_meshing_prime-0.4.0.tar.gz/ansys_meshing_prime-0.4.0/src/ansys/meshing/prime/lucid/mesh_util.py
import enum import os from typing import Iterable, List import ansys.meshing.prime as prime from .scope import SurfaceScope, VolumeScope from .utils import check_name_pattern class LabelToZoneMethod(enum.IntEnum): """Provides for creating zones from labels.""" SIMPLE = 0 """ Simple method for creat...
PypiClean
/Paywx-1.0.2.tar.gz/Paywx-1.0.2/wechat/client/api/cloud.py
import json from enum import IntEnum import requests from wechatpy.client.api.base import BaseWeChatAPI class FileType(IntEnum): JSON = 1 CSV = 2 class ConflictMode(IntEnum): INSERT = 1 UPSERT = 2 class WeChatCloud(BaseWeChatAPI): API_BASE_URL = "https://api.weixin.qq.com/" def invoke_...
PypiClean
/cdktf_cdktf_provider_mongodbatlas-5.0.0-py3-none-any.whl/cdktf_cdktf_provider_mongodbatlas/advanced_cluster/__init__.py
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from typeguard import check_type from .._jsii import * import cdktf as _cdktf_9a9027ec import constructs as _constructs_77d1e7e8 class AdvancedCluster( _cdktf_9a9027ec.TerraformResource...
PypiClean
/ipython-cluster-helper-0.6.4.tar.gz/ipython-cluster-helper-0.6.4/cluster_helper/lsf.py
import os import subprocess import fnmatch import six from . import utils LSB_PARAMS_FILENAME = "lsb.params" LSF_CONF_FILENAME = "lsf.conf" LSF_CONF_ENV = ["LSF_CONFDIR", "LSF_ENVDIR"] DEFAULT_LSF_UNITS = "KB" DEFAULT_RESOURCE_UNITS = "MB" def find(basedir, string): """ walk basedir and return all files mat...
PypiClean
/bigframes-0.2.0.tar.gz/bigframes-0.2.0/third_party/bigframes_vendored/pandas/core/config_init.py
from __future__ import annotations display_options_doc = """ Encapsulates configuration for displaying objects. Attributes: max_columns (int, default 20): If `max_columns` is exceeded, switch to truncate view. max_rows (int, default 25): If `max_rows` is exceeded, switch to truncate view. ...
PypiClean
/pulumi_vault-5.15.0a1693031013.tar.gz/pulumi_vault-5.15.0a1693031013/pulumi_vault/identity/oidc_provider.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['OidcProviderArgs', 'OidcProvider'] @pulumi.input_type class OidcProviderArgs: def __init__(__self__, *, allowed_client_ids: O...
PypiClean
/sbus-0.2.5.tar.gz/sbus-0.2.5/README.md
[![PyPI version](https://badge.fury.io/py/sbus.svg)](https://badge.fury.io/py/sbus) [![Build Status](https://travis-ci.org/dyus/sbus.svg?branch=master)](https://travis-ci.org/dyus/sbus) [![Coverage Status](https://coveralls.io/repos/github/dyus/sbus/badge.svg?branch=master)](https://coveralls.io/github/dyus/sbus?branch...
PypiClean
/hks_pylib-0.0.8-py3-none-any.whl/hks_pylib/http.py
from hks_pylib.hksenum import HKSEnum from hkserror import HTypeError from hks_pylib.errors.http import HTTPTypeError class HTTPType(HKSEnum): RESPONSE = "Response" REQUEST = "Request" class HTTPREQUEST(HKSEnum): HTTP_METHOD = "http_method" REQUEST_TARGET = "request_target" PROTOCOL_VERSION = "...
PypiClean
/bambu-tools-3.3.4.tar.gz/bambu-tools-3.3.4/bambu/codemirror/static/codemirror/mode/haskell/haskell.js
CodeMirror.defineMode("haskell", function(cmCfg, modeCfg) { function switchState(source, setState, f) { setState(f); return f(source, setState); } // These should all be Unicode extended, as per the Haskell 2010 report var smallRE = /[a-z_]/; var largeRE = /[A-Z]/; var digitRE = /[0-9]/; var h...
PypiClean
/PyGreSQL-5.2.5-cp38-cp38-win32.whl/pgdb.py
from __future__ import print_function, division try: from _pg import * except ImportError as e: import os libpq = 'libpq.' if os.name == 'nt': libpq += 'dll' import sys paths = [path for path in os.environ["PATH"].split(os.pathsep) if os.path.exists(os.path.join...
PypiClean
/dune-fem-2.9.0.2.tar.gz/dune-fem-2.9.0.2/python/dune/source/builtin.py
from __future__ import division, print_function, unicode_literals from ..common.utility import isString from .expression import Variable class BuiltInFunction: def __init__(self, header, cppType, name, namespace='std', targs=None, args=None, extra=None): self.header = header self.cppType = cppTyp...
PypiClean
/pyatomac-2.0.7-cp36-cp36m-macosx_10_6_intel.whl/atomac/AXKeyCodeConstants.py
# This file is part of ATOMac. # ATOMac is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by the Free # Software Foundation version 2 and no later version. # ATOMac is distributed in the hope that it will be useful, but # WITHOUT ANY WARRANTY;...
PypiClean
/twisted-23.8.0-py3-none-any.whl/twisted/python/syslog.py
syslog = __import__("syslog") from twisted.python import log # These defaults come from the Python syslog docs. DEFAULT_OPTIONS = 0 DEFAULT_FACILITY = syslog.LOG_USER class SyslogObserver: """ A log observer for logging to syslog. See L{twisted.python.log} for context. This logObserver will automa...
PypiClean
/django-pbsmmapi-0.2.5.tar.gz/django-pbsmmapi-0.2.5/pbsmmapi/episode/migrations/0001_initial.py
from __future__ import unicode_literals from django.db import migrations, models import django.db.models.deletion import jsonfield.fields class Migration(migrations.Migration): initial = True dependencies = [ ('season', '__first__'), ] operations = [ migrations.CreateModel( ...
PypiClean
/open_darts-1.0.2-cp310-cp310-win_amd64.whl/darts/physics/super/physics.py
import numpy as np from darts.engines import * from darts.physics.physics_base import PhysicsBase from .operator_evaluator import * class Compositional(PhysicsBase): property_containers = {} reservoir_operators = {} wellbore_operators = {} rate_operators = {} property_operators = {} def __i...
PypiClean
/pybanyan-openapi-client-1.0.0.tar.gz/pybanyan-openapi-client-1.0.0/openapi_client/paths/v2_access_tier_id_registered_services/get.py
from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from openapi_client import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # ...
PypiClean
/gooddata-api-client-1.5.0.tar.gz/gooddata-api-client-1.5.0/gooddata_api_client/api/organization_controller_api.py
import re # noqa: F401 import sys # noqa: F401 from gooddata_api_client.api_client import ApiClient, Endpoint as _Endpoint from gooddata_api_client.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_types ...
PypiClean
/DCASE-models-0.2.0rc2.tar.gz/DCASE-models-0.2.0rc2/dcase_models/util/data.py
"""Data functions""" def get_fold_val(fold_test, fold_list): """ Get the validation fold given the test fold. Useful for cross-validation evaluation mode. Return the next fold in a circular way. e.g. if the fold_list is ['fold1', 'fold2',...,'fold10'] and the fold_test is 'fold1', then return 'fo...
PypiClean
/labgraph_db-0.2.1-py3-none-any.whl/labgraph/data/sample.py
from typing import Any, List, Union import networkx as nx from bson import ObjectId import matplotlib.pyplot as plt import itertools as itt from labgraph.utils.graph import hierarchical_layout from labgraph.utils.plot import plot_graph from .nodes import ( BaseNode, Material, Action, Measurement, A...
PypiClean
/django-m2m-fix-1.0.0.tar.gz/django-m2m-fix-1.0.0/django/contrib/admin/sites.py
from functools import update_wrapper from weakref import WeakSet from django.apps import apps from django.contrib.admin import ModelAdmin, actions from django.contrib.auth import REDIRECT_FIELD_NAME from django.core.exceptions import ImproperlyConfigured from django.db.models.base import ModelBase from django.http imp...
PypiClean
/cradmin_legacy-5.0.0.tar.gz/cradmin_legacy-5.0.0/cradmin_legacy/automodelform.py
from __future__ import unicode_literals from builtins import str from django import forms from django.utils.translation import pgettext from cradmin_legacy.viewhelpers.multiselect2 import manytomanywidget from cradmin_legacy.widgets import datetimepicker from cradmin_legacy.widgets import filewidgets from cradmin_le...
PypiClean
/ci_exec-0.1.2.tar.gz/ci_exec-0.1.2/ci_exec/provider.py
"""Mechanisms to detect a given CI provider.""" import os from typing import Callable, List, TYPE_CHECKING # mypy has trouble inferring @provider as @staticmethod right now. The solution will # not likely exist for a while, there are some deeper problems with typing and # staticmethod / classmethod that need to be f...
PypiClean
/granny-1.4.0-py3-none-any.whl/GRANNY/Mask_RCNN/model.py
import os import sys import glob import random import math import datetime import itertools import json import re import logging from collections import OrderedDict import numpy as np import scipy.misc import tensorflow as tf import tensorflow.keras as keras import keras.backend as K import keras.layers as KL import ke...
PypiClean
/nm_transformers_nightly-1.6.0.20230829-py3-none-any.whl/transformers/generation/configuration_utils.py
""" Generation configuration class and utilities.""" import copy import json import os import warnings from typing import Any, Dict, Optional, Union from .. import __version__ from ..configuration_utils import PretrainedConfig from ..utils import ( GENERATION_CONFIG_NAME, PushToHubMixin, cached_file, ...
PypiClean
/elepay-python-sdk-1.2.0.tar.gz/elepay-python-sdk-1.2.0/elepay/paths/charges_id_refunds/get.py
from dataclasses import dataclass import typing_extensions import urllib3 from urllib3._collections import HTTPHeaderDict from elepay import api_client, exceptions from datetime import date, datetime # noqa: F401 import decimal # noqa: F401 import functools # noqa: F401 import io # noqa: F401 import re # noqa: F4...
PypiClean
/cyanobyte-0.0.2.tar.gz/cyanobyte-0.0.2/docs/content/docs/Reference/emboss.md
--- title: "Custom serialization" linkTitle: "Custom Serialization" weight: 5 description: > This describes how to use Emboss for defining richer serialization techniques and integrate with communication protocols like SPI. --- # Support Importing Emboss Files for Serialization/Deserialization Functions This proj...
PypiClean
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/opensearch/domain_policy.py
import copy import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = ['DomainPolicyArgs', 'DomainPolicy'] @pulumi.input_type class DomainPolicyArgs: def __init__(__self__, *, access_policies: pulu...
PypiClean
/dstack_tasks-2.3.5-py3-none-any.whl/dstack_tasks/tasks.py
import os import time from datetime import datetime import posixpath from dotenv import set_key from invoke import task from setuptools_scm import get_version from .base import LOCAL_PREFIX, REMOTE_PREFIX, do, env from .notify import send_alert from .wrap import compose, docker, git, python, s3cmd @task def test(ct...
PypiClean
/bread_messenger_client-0.1-py3-none-any.whl/client/client/client_transport.py
import binascii import sys import json import time import threading import hmac import hashlib import logging from socket import socket, AF_INET, SOCK_STREAM from PyQt5.QtCore import pyqtSignal, QObject from client_dist.client.common.variables import * from client_dist.client.common.errors import ServerError from clie...
PypiClean
/nebula-python-1.1.1.post1.tar.gz/nebula-python-1.1.1.post1/nebula/ngStorage/StorageClient.py
import socket import struct import random import logging from nebula.fbthrift.transport import TTransport from nebula.fbthrift.transport import TSocket from nebula.fbthrift.protocol import TBinaryProtocol from nebula.storage.StorageService import Client from nebula.storage.ttypes import EntryId from nebula.storage.t...
PypiClean
/xia2-0.6.0.tar.gz/xia2-0.6.0/Modules/AnalyseMyIntensities.py
from __future__ import absolute_import, division, print_function import copy import math import os from xia2.Wrappers.CCP4.CCP4Factory import CCP4Factory class AnalyseMyIntensities(object): # FIXME retire this entire class... def __init__(self): self._working_directory = os.getcwd() self....
PypiClean
/papermill_service-0.1.0.tar.gz/papermill_service-0.1.0/docs/developer/tutorials/dev-install.rst
Developer install ================= These instructions will take you through the minimal steps required to get a dev environment setup, so you can run the tests locally. Clone the repository -------------------- First clone the repository locally using `Git <https://git-scm.com/downloads>`_:: $ git clone git://...
PypiClean
/itk_rtk_cuda116-2.4.1-cp37-cp37m-win_amd64.whl/itk/itkVectorImageRTKPython.py
import collections from sys import version_info as _version_info if _version_info < (3, 7, 0): raise RuntimeError("Python 3.7 or later required") from . import _ITKCommonPython from . import _RTKPython from sys import version_info as _swig_python_version_info if _swig_python_version_info < (2, 7, 0): r...
PypiClean
/ecreall_pontus-1.1.0.tar.gz/ecreall_pontus-1.1.0/pontus/static/select2/dist/js/select2.amd.js
window.$ = window.$ || {};(function() { if ($ && $.fn && $.fn.select2 && $.fn.select2.amd) { define = $.fn.select2.amd.define; require = $.fn.select2.amd.require; }define('select2/utils',[], function () { var Utils = {}; Utils.Extend = function (ChildClass, SuperClass) { var __hasProp = {}.hasOwnProperty; ...
PypiClean
/django_translations-1.3.0-py3-none-any.whl/translations/management/commands/synctranslations.py
import sys from django.core.management.base import ( BaseCommand, CommandError, ) from django.apps import apps from django.db.models import Q from django.contrib.contenttypes.models import ContentType from translations.models import Translation, Translatable __docformat__ = 'restructuredtext' class Command(Ba...
PypiClean
/groupdocs-annotation-cloud-23.4.tar.gz/groupdocs-annotation-cloud-23.4/README.md
# GroupDocs.Annotation Cloud Python SDK Python package for communicating with the GroupDocs.Annotation Cloud API ## Requirements Python 2.7 or 3.4+ ## Installation Install `groupdocs-annotation-cloud` with [PIP](https://pypi.org/project/pip/) from [PyPI](https://pypi.org/) by: ```sh pip install groupdocs-annotati...
PypiClean
/pandoc-fignos-2.4.0.tar.gz/pandoc-fignos-2.4.0/README.md
**New in 2.4.0:** Updated for pandoc 2.11. [more...](#whats-new) pandoc-fignos 2.4.0 =================== *pandoc-fignos* is a [pandoc] filter for numbering figures and their references when converting from markdown to other formats. It is part of the [pandoc-xnos] filter suite. LaTeX/pdf, html, and epub output h...
PypiClean
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/request/AlipayDaoweiOrderRefuseRequest.py
import json from alipay.aop.api.FileItem import FileItem from alipay.aop.api.constant.ParamConstants import * from alipay.aop.api.domain.AlipayDaoweiOrderRefuseModel import AlipayDaoweiOrderRefuseModel class AlipayDaoweiOrderRefuseRequest(object): def __init__(self, biz_model=None): self._biz_model = ...
PypiClean
/manifestare-0.0.1.tar.gz/manifestare-0.0.1/README.md
# manifestare A _manifesto_ is a textual genre that consists of a kind of formal, persuasive and public statement for the transmission of opinions, decisions, intentions and ideas. **We want it for data**! This library intend to provide a simple, fluent, and descriptive API to explicit DataFrames expectations. It sup...
PypiClean
/flexflow-23.8.2.tar.gz/flexflow-23.8.2/examples/python/native/multi_head_attention.py
from flexflow.core import * from argparse import ArgumentParser import numpy as np def parse_args(): parser = ArgumentParser() parser.add_argument('--seq-length', default=256, type=int) parser.add_argument('--num-heads', default=16, type=int) parser.add_argument('--hidden-size', default=512, type=int) args, ...
PypiClean
/ecr_scan_reporter-0.4.8.tar.gz/ecr_scan_reporter-0.4.8/ecr_scan_reporter/cli.py
import argparse import sys from boto3 import session from ecr_scan_reporter.images_scanner import scan_repo_images from ecr_scan_reporter.repos_scanner import filter_repos_from_regexp, list_ecr_repos def main(): """Console script for ecr_scan_reporter.""" parser = argparse.ArgumentParser() parser.add_a...
PypiClean
/EasySNN-0.1.2.tar.gz/EasySNN-0.1.2/SNN/datasets/fCifar10_dvs.py
from random import sample from typing import Callable, Dict, List, Optional, Tuple from .. import event as ev from .fEventBase import cifar10_dvsBase import torch import numpy as np import time class CIFAR10DVS(cifar10_dvsBase): """ Initialize the dataset and overload the function. @root: root path of th...
PypiClean
/wwpdb.apps.chem_ref_data-0.21.tar.gz/wwpdb.apps.chem_ref_data-0.21/wwpdb/apps/chem_ref_data/report/ReportUtils.py
__docformat__ = "restructuredtext en" __author__ = "John Westbrook" __email__ = "jwest@rcsb.rutgers.edu" __license__ = "Creative Commons Attribution 3.0 Unported" __version__ = "V0.01" import sys import logging from wwpdb.utils.oe_util.oedepict.OeDepict import OeDepict from wwpdb.utils.oe_util.build.OeChemCompIoUtil...
PypiClean
/police-api-client-1.2.2.tar.gz/police-api-client-1.2.2/README.rst
Police API Client (Python) |travis_badge| ========================================= A Python client for the `Police API`_. Supports Python 2.6, 2.7, 3.2, 3.3 and 3.4. Installation ------------ Install the Police API client with ``pip``:: pip install police-api-client Usage ----- The Police API doesn't require...
PypiClean
/hhb_tvm-2.4.5-cp36-cp36m-manylinux1_x86_64.whl/tvm/tir/schedule/_type_checker.py
"""Type checking functionality""" import functools import inspect from typing import Any, Callable, Dict, List, Optional, Tuple, Union import typing def _is_none_type(type_: Any) -> bool: return type_ is None or type_ is type(None) if hasattr(typing, "_GenericAlias"): class _Subtype: @staticmethod ...
PypiClean
/cdktf-cdktf-provider-google-9.0.1.tar.gz/cdktf-cdktf-provider-google-9.0.1/src/cdktf_cdktf_provider_google/data_google_compute_network_endpoint_group/__init__.py
import abc import builtins import datetime import enum import typing import jsii import publication import typing_extensions from typeguard import check_type from .._jsii import * import cdktf as _cdktf_9a9027ec import constructs as _constructs_77d1e7e8 class DataGoogleComputeNetworkEndpointGroup( _cdktf_9a90...
PypiClean
/atreal.cmfeditions.unlocker-1.0.0.zip/atreal.cmfeditions.unlocker-1.0.0/README.txt
.. contents:: Overview ======== A simple CMFEditions Modifier that unlocks clone before saving. Description =========== When using CMFEditions with ExternalEditor, the clones are saved with a webdav lock. If you try to retrieve an older version, it appears locked, avoiding futher editions. This package adds a CMF...
PypiClean
/inspectnn-0.4.2-py3-none-any.whl/tflite/SubOptions.py
# namespace: tflite import flatbuffers from flatbuffers.compat import import_numpy np = import_numpy() class SubOptions(object): __slots__ = ['_tab'] @classmethod def GetRootAs(cls, buf, offset=0): n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset) x = SubOptions() ...
PypiClean
/ksana-0.0.2.2.tar.gz/ksana-0.0.2.2/Ksana/baseserver.py
import asyncio from pprint import pprint from signal import SIGINT, SIGTERM from httptools import HttpRequestParser from Ksana.request import Request class BaseServer(asyncio.Protocol): def __init__(self, loop, requesthandle, toggle, connections=set(), request_timeout=10): self.loop = loop self....
PypiClean
/amen-0.0.4.tar.gz/amen-0.0.4/README.md
[![Build Status](https://travis-ci.org/algorithmic-music-exploration/amen.svg?branch=master)](https://travis-ci.org/algorithmic-music-exploration/amen) [![Coverage Status](https://coveralls.io/repos/github/algorithmic-music-exploration/amen/badge.svg?branch=master)](https://coveralls.io/github/algorithmic-music-explora...
PypiClean
/rsync_watch-0.7.1-py3-none-any.whl/rsync_watch/__init__.py
import os import re import shlex import socket import typing from argparse import Namespace from command_watcher import CONFIG_READER_SPEC, CommandWatcherError, Watch from conf2levels import ConfigReader from .check import ChecksCollection from .cli import ArgumentsDefault, __version__, get_argparser # noqa: F401 ...
PypiClean
/llm_toys-0.1.1-py3-none-any.whl/llm_toys/hf/transformers/models/fnet/__init__.py
from typing import TYPE_CHECKING from ...utils import ( OptionalDependencyNotAvailable, _LazyModule, is_sentencepiece_available, is_tokenizers_available, is_torch_available, ) _import_structure = {"configuration_fnet": ["FNET_PRETRAINED_CONFIG_ARCHIVE_MAP", "FNetConfig"]} try: if not is_sent...
PypiClean
/kaggle_runner-0.2.1-py3-none-any.whl/kaggle_runner/datasets/coders.py
import numpy as np def run_length_decode(rle, height=1024, width=1024, fill_value=1): component = np.zeros((height, width), np.float32) component = component.reshape(-1) rle = np.array([int(s) for s in rle.strip().split(" ")]) rle = rle.reshape(-1, 2) start = 0 for index, length in rle: ...
PypiClean
/django-skylark-0.4.6.tar.gz/django-skylark-0.4.6/src/skylark/templates/chirp/media/dojox/grid/_View.js
if(!dojo._hasResource["dojox.grid._View"]){ //_hasResource checks added by build. Do not use _hasResource directly in your code. dojo._hasResource["dojox.grid._View"] = true; dojo.provide("dojox.grid._View"); dojo.require("dijit._Widget"); dojo.require("dijit._Templated"); dojo.require("dojox.grid._Builder"); dojo.req...
PypiClean
/tensorflow_macos-2.14.0rc0-cp311-cp311-macosx_12_0_arm64.whl/tensorflow/python/data/experimental/ops/lookup_ops.py
"""Lookup operations.""" from tensorflow.python.data.experimental.ops.cardinality import assert_cardinality from tensorflow.python.framework import dtypes from tensorflow.python.framework import ops from tensorflow.python.framework import tensor from tensorflow.python.ops import gen_experimental_dataset_ops as ged_ops...
PypiClean