id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/super_distributions-0.1.2.tar.gz/super_distributions-0.1.2/super_distributions/Binomialdistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Binomial(Distribution):
""" Binomial distribution class for calculating and
visualizing a Binomial distribution.
Attributes:
mean (float) representing the mean value of the distribution
std... | PypiClean |
/barbican-16.0.0.0rc1.tar.gz/barbican-16.0.0.0rc1/doc/source/contributor/devstack.rst | Running Barbican on DevStack
============================
Barbican is currently available via the plugin interface within DevStack.
This installation guide assumes you are running devstack within a clean virtual
machine (local or cloud instance) using one of the `supported Linux
distributions`_ with all available sys... | PypiClean |
/hestia_earth_models-0.49.0-py3-none-any.whl/hestia_earth/models/hyde32/landTransformationFromForest20YearAverageDuringCycle.py | from hestia_earth.schema import SiteSiteType
from .utils import run_land_transformation
REQUIREMENTS = {
"ImpactAssessment": {
"or": {
"country": {"@type": "Term", "termType": "region"},
"site": {
"@type": "Site",
"region": {"@type": "Term", "termTyp... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/lodash/_baseIntersection.js | var SetCache = require('./_SetCache'),
arrayIncludes = require('./_arrayIncludes'),
arrayIncludesWith = require('./_arrayIncludesWith'),
arrayMap = require('./_arrayMap'),
baseUnary = require('./_baseUnary'),
cacheHas = require('./_cacheHas');
/* Built-in method references for those with the same n... | PypiClean |
/service-container-1.0.0.tar.gz/service-container-1.0.0/README.md | # service-container
Dependency injection container with parameters and transaction control.
## Prerequisites
This library is supposed to run with Python 3. No other dependencies are needed.
## Usage
To create service container, just define your dependencies like this:
```python
from servicecontainer import Servic... | PypiClean |
/python-appengine-1.9.15.tar.gz/python-appengine-1.9.15/google/appengine/api/memcache/__init__.py | import cPickle
import cStringIO
import hashlib
import math
import types
from google.appengine.api import api_base_pb
from google.appengine.api import apiproxy_stub_map
from google.appengine.api import capabilities
from google.appengine.api import namespace_manager
from google.appengine.api.memcache import memcache_ser... | PypiClean |
/geowatch-0.9.4.tar.gz/geowatch-0.9.4/geowatch_tpl/modules/segment_anything/CONTRIBUTING.md | # Contributing to segment-anything
We want to make contributing to this project as easy and transparent as
possible.
## Pull Requests
We actively welcome your pull requests.
1. Fork the repo and create your branch from `main`.
2. If you've added code that should be tested, add tests.
3. If you've changed APIs, update... | PypiClean |
/groupdocs-conversion-cloud-23.8.tar.gz/groupdocs-conversion-cloud-23.8/groupdocs_conversion_cloud/__init__.py |
# flake8: noqa
from __future__ import absolute_import
# import apis
from groupdocs_conversion_cloud.apis.convert_api import ConvertApi
from groupdocs_conversion_cloud.apis.file_api import FileApi
from groupdocs_conversion_cloud.apis.folder_api import FolderApi
from groupdocs_conversion_cloud.apis.info_api import Inf... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/AlipayOpenSpOperationQrcodeQueryModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenSpOperationQrcodeQueryModel(object):
def __init__(self):
self._access_product_code = None
self._alipay_account = None
self._isv_scene_permissions = None
self._merchant_no = None
self._operate... | PypiClean |
/pagarme-python-5.7.6.tar.gz/pagarme-python-5.7.6/pagarmecoreapi/models/update_charge_payment_method_request.py | import pagarmecoreapi.models.create_credit_card_payment_request
import pagarmecoreapi.models.create_debit_card_payment_request
import pagarmecoreapi.models.create_boleto_payment_request
import pagarmecoreapi.models.create_voucher_payment_request
import pagarmecoreapi.models.create_cash_payment_request
import pagarmecor... | PypiClean |
/gradio-3.41.2.tar.gz/gradio-3.41.2/test/README.md | # Backend Testing Guidelines
- All the tests should test Backend functionalities. Frontend functionalities and e2e tests are done in Frontend.
- Make use of pytest fixtures whenever it is possible. With fixtures, objects with high initialize durations are reused within tests, ex. a client session.
- All test*data resi... | PypiClean |
/django-multipleformwizard-0.2.16.tar.gz/django-multipleformwizard-0.2.16/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/vikingco/django-mult... | PypiClean |
/hypebankapi-1.1.0.tar.gz/hypebankapi-1.1.0/src/hypebankapi/banking.py | from abc import ABC, abstractmethod
import requests
import json
from .utils import loginrequired
class Banking(ABC):
class AuthenticationError(Exception):
"""
Raised when an error occurs during authentication.
"""
pass
class AuthenticationFailure(Exception):
"""
... | PypiClean |
/easyVisualize-0.0.1.tar.gz/easyVisualize-0.0.1/env_easyVisualize/Scripts/plac_runner.py | from __future__ import with_statement
import os
import sys
import shlex
import plac
def run(fnames, cmd, verbose):
"Run batch scripts and tests"
for fname in fnames:
with open(fname) as f:
lines = list(f)
if not lines[0].startswith('#!'):
sys.exit('Missing or incorrect ... | PypiClean |
/wegnology_rest-1.16.2-py3-none-any.whl/wegnologyrest/instance_member.py | import json
""" Module for WEGnology API InstanceMember wrapper class """
# pylint: disable=C0301
class InstanceMember(object):
""" Class containing all the actions for the Instance Member Resource """
def __init__(self, client):
self.client = client
def delete(self, **kwargs):
"""
... | PypiClean |
/my_py_mess_client-0.0.1-py3-none-any.whl/client/client_pack/main_window.py | from PyQt5.QtWidgets import QMainWindow, qApp, QMessageBox, QApplication, QListView
from PyQt5.QtGui import QStandardItemModel, QStandardItem, QBrush, QColor
from PyQt5.QtCore import pyqtSlot, QEvent, Qt
from Crypto.Cipher import PKCS1_OAEP
from Crypto.PublicKey import RSA
import json
import logging
import base64
from... | PypiClean |
/xotl.ql-0.7.0.tar.gz/xotl.ql-0.7.0/xotl/ql/interfaces.py | import types
from xoutil.future import inspect
class MemberDescription:
def __init__(self, val):
self.val = val
@property
def name(self):
return self.val.__name__
@property
def signature(self):
if not isinstance(self.val, Attribute):
positional = object()
... | PypiClean |
/MXFusion-0.3.1.tar.gz/MXFusion-0.3.1/mxfusion/inference/forward_sampling.py |
from ..common.exceptions import InferenceError
from ..components.variables import Variable
from .variational import StochasticVariationalInference
from .inference_alg import SamplingAlgorithm
from .inference import TransferInference
from .map import MAP
class ForwardSamplingAlgorithm(SamplingAlgorithm):
"""
... | PypiClean |
/syslogng_kafka-0.1.11.tar.gz/syslogng_kafka-0.1.11/CONTRIBUTING.rst | .. highlight:: shell
============
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... | PypiClean |
/katsdpsigproc-1.7.0.tar.gz/katsdpsigproc-1.7.0/doc/user/init.rst | Initialization
==============
Before any useful work can be done, one needs a context and (usually) a
command queue. A context is associated with a single device, and "owns" all
memory allocations. Applications will typically only need a single context,
unless they make use of multiple GPUs. A command queue is associat... | PypiClean |
/bbrain.iac-0.1.0-py3-none-any.whl/ovh/cli.py | from __future__ import annotations
import asyncio
import functools
from io import TextIOWrapper
from typing import TYPE_CHECKING
from bbrain.iac.ovh.api.dedicated import (
post_dedicated_server_install,
post_dedicated_server_reboot,
put_dedicated_server,
)
from bbrain.iac.ovh.api.ip import get_ip_task, get... | PypiClean |
/ql-orange-1.4.0.tar.gz/ql-orange-1.4.0/src/blib2to3/pgen2/parse.py | import copy
from contextlib import contextmanager
# Local imports
from . import grammar, token, tokenize
from typing import (
cast,
Any,
Optional,
Text,
Union,
Tuple,
Dict,
List,
Iterator,
Callable,
Set,
TYPE_CHECKING,
)
from blib2to3.pgen2.grammar import Grammar
from bl... | PypiClean |
/zamplugin.sampledata-0.6.0.tar.gz/zamplugin.sampledata-0.6.0/src/zamplugin/sampledata/README.txt | ======
README
======
This package provides sampledata pages for the z3c.sampledata implementation.
The zam.skin is used as basic skin for this test.
First login as manager:
>>> from zope.testbrowser.testing import Browser
>>> mgr = Browser()
>>> mgr.addHeader('Authorization', 'Basic mgr:mgrpw')
And go to the... | PypiClean |
/roast-xilinx-5.0.0.tar.gz/roast-xilinx-5.0.0/roast/component/board/target_board.py |
import time
import socket
import logging
from roast.component.board.board import BoardBase
from roast.component.xsdb.xsdb import Xsdb
from roast.serial import Serial
from roast.xexpect import Xexpect
from roast.component.relay import Relay
from roast.ssh import scp_file_transfer
log = logging.getLogger(__name__)
hlog... | PypiClean |
/smallPower-6.4.1.tar.gz/smallPower-6.4.1/job/watchdog_smallpower.py | import pandas as pd,sys,os
import smallPowerDash.smallPower as smallPower
from dorianUtils.utilsD import EmailSmtp
import psycopg2
import subprocess as sp
import time
import traceback
import psutil
import logging
timenowstd = lambda :pd.Timestamp.now().strftime('%d %b %H:%M:%S =>')
dsp = smallPower.SmallPower_dumper()... | PypiClean |
/rapid_clay_formations_fab-0.7.1.tar.gz/rapid_clay_formations_fab-0.7.1/docs/authors.md | # Authors
Project is part of the [MAS programme in Architecture and Digital Fabrication](https://www.masdfab.com/) taught at ETH Zürich by [Gramazio Kohler Research](https://gramaziokohler.arch.ethz.ch/) and [Digital Building Technologies](https://dbt.arch.ethz.ch/).
## Students
* Fatemeh Amiri
* Jomana Baddad
* Fré... | PypiClean |
/chromatic-lightcurves-0.4.7.tar.gz/chromatic-lightcurves-0.4.7/chromatic/rainbows/get/timelike/time.py | from ....imports import *
def get_times_as_astropy(self, time=None, format=None, scale=None, is_barycentric=None):
"""
Convert times from a `Rainbow` into an astropy `Time` object.
Parameters
----------
time : Quantity, optional
The time-like Quantity to be converted.
If None (def... | PypiClean |
/fds.protobuf.stach.v2-1.0.2-py3-none-any.whl/fds/protobuf/stach/v2/table/DataFormat_pb2.py |
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
from fds.protobuf.stach... | PypiClean |
/exit_speed-2022.1.20.tar.gz/exit_speed-2022.1.20/exit_speed/wbo2.py | import multiprocessing
import time
from typing import Dict
from typing import Generator
from typing import Text
import serial
from absl import app
from absl import flags
from absl import logging
from exit_speed import gps_pb2
from exit_speed import sensor
FLAGS = flags.FLAGS
flags.DEFINE_float('stoichiometric', 14.7... | PypiClean |
/HalRing_Lib-1.1.0-py3-none-any.whl/halring/svn/svn_util.py | import operator
import os
import re
from collections import Counter
from halring.windows.halring_os import OsUtil
# nga_root = os.path.abspath(__file__).split("utils")[0]
class SvnUtil(object):
def __init__(self, username, password):
"""
基础信息
Author: Chenying
:param username: 账号
... | PypiClean |
/artellapipe-libs-usd-0.0.5.tar.gz/artellapipe-libs-usd-0.0.5/artellapipe/libs/usd/externals/windows/64bit/usd/pixar/lib/python/pxr/Usdviewq/pythonInterpreter.py | from __future__ import print_function
from pxr import Tf
from .qt import QtCore, QtGui, QtWidgets
from .usdviewApi import UsdviewApi
from code import InteractiveInterpreter
import os, sys, keyword
# just a handy debugging method
def _PrintToErr(line):
old = sys.stdout
sys.stdout = sys.__stderr__
print(l... | PypiClean |
/pulumi_aws-6.1.0a1693529760.tar.gz/pulumi_aws-6.1.0a1693529760/pulumi_aws/appmesh/get_virtual_router.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__ = [
'GetVirtualRouterResult',
'AwaitableGetVirtualRouterResult',
'get_virtual_router',
'get_virtual_router_output... | PypiClean |
/PyMVPD-0.0.4-py3-none-any.whl/mvpd/dim_red.py | import sys
from mvpd.dimension_reduction import dimred_base
from mvpd.custom_func import dimred_custom
def dimred_vox2dim(params, ROI_1_train, ROI_2_train, ROI_1_test, ROI_2_test):
"""
Apply selected dimensionality reduction method on voxel space.
INPUT FORMAT
params - model parameters structure
... | PypiClean |
/fds.sdk.FactSetSearchAnswers-1.0.6-py3-none-any.whl/fds/sdk/FactSetSearchAnswers/rest.py | import io
import json
import logging
import re
import ssl
from urllib.parse import urlencode
from urllib.parse import urlparse
from urllib.request import proxy_bypass_environment
import urllib3
import ipaddress
from fds.sdk.FactSetSearchAnswers.exceptions import ApiException, UnauthorizedException, ForbiddenException,... | PypiClean |
/mesmer_emulator-0.8.3-py3-none-any.whl/mesmer/utils/select.py | import copy as copy
import numpy as np
def extract_land(var, reg_dict, wgt, ls, threshold_land=0.25):
"""
Extract all land grid points and area weights in regions and in land-sea mask for
given threshold.
Parameters
----------
var : dict
nested variable dictionary with keys
... | PypiClean |
/calamari_ocr-2.2.2-py3-none-any.whl/calamari_ocr/ocr/training/cross_fold_trainer.py | import inspect
import json
import logging
import multiprocessing
import os
import sys
import tempfile
from copy import deepcopy
from dataclasses import dataclass, field
from subprocess import check_call
from typing import Optional, List
from paiargparse import pai_dataclass, pai_meta
from tfaip.util.tfaipargparse impo... | PypiClean |
/vlawyer-0.2.tar.gz/vlawyer-0.2/README.md | # vlawyer
[](https://forthebadge.com)
An unofficial [vjudge](https://vjudge.net/) statistics API
You can use this package to get:
- submissions data
- contest standings *(comming soon)*
**Disclaimer:** All rights to the site and its data are ... | PypiClean |
/rackspace_token_generator-1.5-py3-none-any.whl/rackspace_token_generator-1.5.dist-info/DESCRIPTION.rst | rackspace-token-generator
=========================
A script to generate authentication tokens for use with Rackspace Cloud
Identity. This was specifically created for the Rackspace Private Cloud
Insights API, though it is generally applicable to anything that needs
to be given a token.
Install
*******
To install th... | PypiClean |
/django_s3sign-0.3.3-py3-none-any.whl/s3sign/utils.py | import logging
from botocore.config import Config
from botocore.exceptions import ClientError
s3_config = Config(
signature_version='s3v4',
s3={'addressing_style': 'path'},
)
def create_presigned_url(s3_client, bucket_name, object_name, expiration=3600):
"""Generate a presigned URL to share an S3 object... | PypiClean |
/dg-commonroad-drivability-checker-2023.11.tar.gz/dg-commonroad-drivability-checker-2023.11/commonroad_dc/feasibility/vehicle_dynamics.py | from abc import ABC, abstractmethod
from enum import Enum, unique
from typing import List, Union, Tuple
import numpy as np
import math
from commonroad.common.solution import VehicleType, VehicleModel
from commonroad.common.util import make_valid_orientation
from commonroad.geometry.shape import Rectangle
from commonro... | PypiClean |
/sdc_cryptography-1.1.2-py3-none-any.whl/sdc_cryptography-1.1.2.data/scripts/generate_keys.py |
import hashlib
import os
import argparse
from cryptography.hazmat.backends.openssl.backend import backend
from cryptography.hazmat.primitives.serialization import (
load_pem_private_key,
load_pem_public_key,
Encoding,
PublicFormat,
)
import yaml
from yaml.representer import SafeRepresenter
from sdc.c... | PypiClean |
/nr_io_lexer-1.0.0-py3-none-any.whl/nr/io/lexer/_scanner.py | import enum
import re
import typing as t
import typing_extensions as te
class Cursor(t.NamedTuple):
offset: int
line: int
column: int
def get_line_begin(self) -> "Cursor":
"""Returns a cursor pointing to the beginning of the current line."""
return Cursor(self.offset - self.column + ... | PypiClean |
/gravity_toolkit-1.2.1-py3-none-any.whl/gravity_toolkit-1.2.1.data/scripts/plot_GrIS_grid_maps.py | u"""
plot_GrIS_grid_maps.py
Written by Tyler Sutterley (05/2023)
Creates GMT-like plots for the Greenland ice sheet
on a NSIDC polar stereographic north (3413) projection
Greenland ice sheet and glacier outlines from OSU Greenland Ice Mapping Project
ftp://ftp-bprc.mps.ohio-state.edu/downloads/gdg/gimpim2000/
Cana... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/calendar/calendar_view/item/instances/item/snooze_reminder/snooze_reminder_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 date_time_time_zone
class SnoozeReminderPostRequestBody(AdditionalDataHolder, Parsabl... | PypiClean |
/allegrordf-1.0.1.tar.gz/allegrordf-1.0.1/franz/openrdf/rio/converter.py |
##***** BEGIN LICENSE BLOCK *****
##Version: MPL 1.1
##
##The contents of this file are subject to the Mozilla Public License Version
##1.1 (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.mozilla.org/MPL/
##
##Software distributed... | PypiClean |
/django-openacct-0.0.5.tar.gz/django-openacct-0.0.5/src/openacct/migrations/0001_initial.py |
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
]
operations = [
migrations.CreateModel(
name='Account',
fields=[
('id', models.AutoField(auto_created=Tr... | PypiClean |
/nonebot-adapter-spigot-0.0.5.tar.gz/nonebot-adapter-spigot-0.0.5/README.md | [](https://17theword.github.io/mc_qq/)
# nonebot-adapter-spigot
NoneBot2与MineCraft Se... | PypiClean |
/Openkst-0.0.1.tar.gz/Openkst-0.0.1/Text_Entity/openks/distributed/openks_launcher.py |
from __future__ import print_function
from __future__ import unicode_literals
import sys
from sys import version
import subprocess
import os
import time
import six
import copy
from argparse import ArgumentParser, REMAINDER
import paddle
import paddle.fluid as fluid
from utils import *
import cloud_utils as cloud_util... | PypiClean |
/partis_utils-0.1.3rc1.tar.gz/partis_utils-0.1.3rc1/src/utils/module.py | import sys
import os.path as osp
import types
import importlib
from importlib.abc import MetaPathFinder
from importlib.util import find_spec
#+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
class LazyModule ( types.ModuleType ):
"""A module that lazily imports sub-modules/packages
... | PypiClean |
/separator-vbar-1.1.tar.gz/separator-vbar-1.1/separator/separator.py |
#Copyright (c) 2015, Petr Machovec
#All rights reserved.
#
#Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
#
#1. Redistributions of source code must retain the above copyright notice, this list of conditions and the followi... | PypiClean |
/Flasik-0.5.1.tar.gz/Flasik-0.5.1/flasik/functions.py | import re
import six
import logging
import inspect
import functools
import arrow
import copy
import blinker
from flask import (request, current_app, send_file, session)
import flask_cloudy
import flask_recaptcha
import flask_caching
from . import (Flasik,
extends,
utils,
g,
... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayCommerceTransportNotifycenterNotifyuserQueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayCommerceTransportNotifycenterNotifyuserQueryModel import AlipayCommerceTransportNotifycenterNotifyuserQueryModel
class AlipayCommerceTransportNotifycenterNotifyuserQueryReq... | PypiClean |
/dsin100daysv34-6.0.1.tar.gz/dsin100daysv34-6.0.1/notebook/static/components/MathJax/localization/pl/TeX.js | MathJax.Localization.addTranslation("pl","TeX",{version:"2.7.7",isLoaded:true,strings:{ExtraOpenMissingClose:"Nadmiarowy nawias otwieraj\u0105cy lub brakuj\u0105cy nawias zamykaj\u0105cy",ExtraCloseMissingOpen:"Nadmiarowy nawias zamykaj\u0105cy lub brakuj\u0105cy nawias otwieraj\u0105cy",MissingLeftExtraRight:"Brakuj\u... | PypiClean |
/csg_dicoms_anonymizer-1.4.2.tar.gz/csg_dicoms_anonymizer-1.4.2/csg_dicoms_anonymizer/csg_fileutil_libs/unidecode/x029.py | data = (
'', # 0x00
'', # 0x01
'', # 0x02
'', # 0x03
'', # 0x04
'', # 0x05
'', # 0x06
'', # 0x07
'', # 0x08
'', # 0x09
'', # 0x0a
'', # 0x0b
'', # 0x0c
'', # 0x0d
'', # 0x0e
'', # 0x0f
'', # 0x10
'', # 0x11
'', # 0x12
'', # 0x13
'', # 0x14
'', # 0x15
'',... | PypiClean |
/jupyter_declarativewidgets-0.7.0.tar.gz/jupyter_declarativewidgets-0.7.0/declarativewidgets/static/urth_components/handsontable/plugins/removeRow/handsontable.removeRow.js | (function (Handsontable) {
"use strict";
/**
* Handsontable RemoveRow plugin. See `demo/buttons.html` for example usage
* This plugin is not a part of the Handsontable build (to use it, you must load it after loading Handsontable)
* See `test/removeRowSpec.js` for tests
*/
function removeRow() {
... | PypiClean |
/bge_python_sdk-0.5.2-py3-none-any.whl/bgesdk/management/commands/config.py | import argparse
import os
import sys
from posixpath import exists, splitext
from rich.prompt import Prompt
from rich.table import Table
from bgesdk.management import constants
from bgesdk.management.command import BaseCommand
from bgesdk.management.utils import (
config_get,
confirm,
console,
get_acti... | PypiClean |
/OpenNMT_tf-2.32.0-py3-none-any.whl/opennmt/layers/bridge.py |
import abc
import tensorflow as tf
def assert_state_is_compatible(expected_state, state):
"""Asserts that states are compatible.
Args:
expected_state: The reference state.
state: The state that must be compatible with :obj:`expected_state`.
Raises:
ValueError: if the states are incom... | PypiClean |
/python-sources-3.10.5.tar.gz/python-sources-3.10.5/Python-3.10.5/Lib/http/cookiejar.py | r"""HTTP cookie handling for web clients.
This module has (now fairly distant) origins in Gisle Aas' Perl module
HTTP::Cookies, from the libwww-perl library.
Docstrings, comments and debug strings in this code refer to the
attributes of the HTTP cookie system as cookie-attributes, to distinguish
them clearly from Pyt... | PypiClean |
/js.ckeditor-3.6.6.tar.gz/js.ckeditor-3.6.6/js/ckeditor/resources/plugins/tableresize/plugin.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
(function(){var a=CKEDITOR.tools.cssLength,b=CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks||CKEDITOR.env.version<7);function c(k){return CKEDITOR.env.ie?k.$.... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/drive/items/item/validate_permission/validate_permission_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 |
/cryptlex_python_sdk-1.0.3.tar.gz/cryptlex_python_sdk-1.0.3/src/cryptlex_web_api_client/api/releases/getv3releasesupdate.py | from typing import Any, Dict, Optional, Union
import httpx
from ...client import Client
from ...models.http_error_response_dto import HttpErrorResponseDto
from ...models.release_dto import ReleaseDto
from ...types import UNSET, Response, Unset
def _get_kwargs(
*,
client: Client,
platform: str,
produ... | PypiClean |
/tensorflow_macos-2.14.0rc0-cp311-cp311-macosx_12_0_arm64.whl/tensorflow/python/framework/byte_swap_tensor.py | from tensorflow.core.framework import graph_pb2
from tensorflow.core.protobuf import meta_graph_pb2
from tensorflow.python.framework import dtypes
# Based on tensor_bundle/byte_swap.cc
byte_swappable = [
dtypes.float16,
dtypes.float32,
dtypes.float64,
dtypes.bfloat16,
dtypes.complex64,
dtypes.c... | PypiClean |
/circuitpython-ticstepper-2.0.3.tar.gz/circuitpython-ticstepper-2.0.3/CODE_OF_CONDUCT.md | <!--
SPDX-FileCopyrightText: 2014 Coraline Ada Ehmke
SPDX-FileCopyrightText: 2019-2021 Kattni Rembor
SPDX-License-Identifier: CC-BY-4.0
-->
# CircuitPython Community Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and leaders pledge to making participa... | PypiClean |
/django_json_logging-0.0.6.tar.gz/django_json_logging-0.0.6/README.md | # django_json_logging
Various JSON logging extensions for the Django Framework
[![PyPI Version][pypi-image]][pypi-url]
[pypi-image]: https://img.shields.io/pypi/v/django_json_logging
[pypi-url]: https://pypi.org/project/django_json_logging/
# Installation
Using pip
`pip install django_json_logging`
Using pipenv
... | PypiClean |
/scancode_toolkit_mini-32.0.6-cp311-none-any.whl/licensedcode/_vendor/attr/_version_info.py |
from __future__ import absolute_import, division, print_function
from functools import total_ordering
from ._funcs import astuple
from ._make import attrib, attrs
@total_ordering
@attrs(eq=False, order=False, slots=True, frozen=True)
class VersionInfo(object):
"""
A version object that can be compared to t... | PypiClean |
/fastapi_dependency-0.1.0.tar.gz/fastapi_dependency-0.1.0/fastapi_dependency/_main.py | import inspect
from typing import Any, Callable, Optional, Sequence
from fastapi import params
from starlette._utils import is_async_callable
def create_async_wrap(dependency: Callable[..., Any]) -> Callable[..., Any]:
async def wrap(*args: Any, **kwargs: Any) -> Any:
return dependency(*args, **kwargs)
... | PypiClean |
/smartpip2-2.1.9.5.tar.gz/smartpip2-2.1.9.5/airflow/sensors/sql.py |
from typing import Iterable
from airflow.exceptions import AirflowException
from airflow.hooks.base import BaseHook
from airflow.sensors.base import BaseSensorOperator
class SqlSensor(BaseSensorOperator):
"""
Runs a sql statement repeatedly until a criteria is met. It will keep trying until
success or f... | PypiClean |
/elixirlab_server-2.16.6.tar.gz/elixirlab_server-2.16.6/jupyterlab_server/workspaces_handler.py |
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
import hashlib
import json
import re
import unicodedata
import urllib
from pathlib import Path
from jupyter_server.extension.handler import ExtensionHandlerJinjaMixin, ExtensionHandlerMixin
from tornado import web
fro... | PypiClean |
/puresec-cli-1.2.1.tar.gz/puresec-cli-1.2.1/puresec_cli/resources/node_modules/levn/README.md | # levn [](https://travis-ci.org/gkz/levn) <a name="levn" />
__Light ECMAScript (JavaScript) Value Notation__
Levn is a library which allows you to parse a string into a JavaScript value based on an expected type. It is meant for short amounts of human entered data (eg.... | PypiClean |
/colossalai-nightly-2023.9.2.tar.gz/colossalai-nightly-2023.9.2/colossalai/kernel/op_builder/utils.py | import os
import re
import subprocess
import warnings
from typing import List
def print_rank_0(message: str) -> None:
"""
Print on only one process to avoid spamming.
"""
try:
import torch.distributed as dist
if not dist.is_initialized():
is_main_rank = True
else:
... | PypiClean |
/sense2-0.3.7-py3-none-any.whl/conans/client/rest/rest_client_v2.py | import os
import time
import traceback
from conans import DEFAULT_REVISION_V1
from conans.client.downloaders.download import run_downloader
from conans.client.remote_manager import check_compressed_files
from conans.client.rest.client_routes import ClientV2Router
from conans.client.rest.file_uploader import FileUpload... | PypiClean |
/fluentcms-publishing-1.2.7.tar.gz/fluentcms-publishing-1.2.7/fluentcms_publishing/apps.py | import warnings
import django
from django.apps import AppConfig, apps
from django.core.exceptions import MultipleObjectsReturned
from django.utils.datastructures import OrderedSet
from django.utils.translation import get_language
def monkey_patch_override_method(klass):
"""
Override a class method with a new... | PypiClean |
/cursy-1.0.1.tar.gz/cursy-1.0.1/README.md | # Cursy
Little and simple wrapper for curses application.
## Getting started
The `@curses_application` decorator is a util built upon `curses.wrapper` function.
This decorator adds `stdscr` to `self` object on execution time of `start` method
of the class under `@curses_application` decorator, so it can be used with... | PypiClean |
/rpi_torch-1.5.0-cp37-cp37m-linux_armv7l.whl/torch/nn/utils/weight_norm.py | r"""
Weight Normalization from https://arxiv.org/abs/1602.07868
"""
from torch.nn.parameter import Parameter
from torch import _weight_norm, norm_except_dim
class WeightNorm(object):
def __init__(self, name, dim):
if dim is None:
dim = -1
self.name = name
self.dim = dim
de... | PypiClean |
/flask_jeroboam-0.1.0b3.tar.gz/flask_jeroboam-0.1.0b3/flask_jeroboam/_outboundhandler.py | import dataclasses
import traceback
from functools import wraps
from typing import Any
from typing import Callable
from typing import Dict
from typing import List
from typing import Optional
from typing import Tuple
from typing import Type
from typing import TypeVar
from flask import Response
from flask.globals import... | PypiClean |
/ansys_dpf_core-0.9.0.tar.gz/ansys_dpf_core-0.9.0/src/ansys/dpf/core/operators/logic/component_transformer.py | from warnings import warn
from ansys.dpf.core.dpf_operator import Operator
from ansys.dpf.core.inputs import Input, _Inputs
from ansys.dpf.core.outputs import Output, _Outputs
from ansys.dpf.core.operators.specification import PinSpecification, Specification
class component_transformer(Operator):
"""Takes the inp... | PypiClean |
/openimis-be-policy_notification-1.5.0.tar.gz/openimis-be-policy_notification-1.5.0/policy_notification/reports/communication_by_notification/report_service.py | from graphene import Context
from core.models import Officer
from django.db.models import Q, QuerySet
from insuree.models import Family
from location.models import Location
from location.apps import LocationConfig
from policy.models import Policy
from policy_notification.filters import communication_approval_filter
c... | PypiClean |
/power-ml-1.0.0a0.tar.gz/power-ml-1.0.0a0/src/power_ml/util/dict_util.py |
import hashlib
import json
from typing import Any, Union
def get(d: dict, keys: Union[str, list[str]], safe: bool = True) -> Any:
"""Get dict value by keys.
Args:
d (dict): Target dict.
keys (List[str]): Keys.
safe (bool, optional): Safe or not.
Raises:
KeyError: Not fou... | PypiClean |
/opal-client-0.7.3.tar.gz/opal-client-0.7.3/opal_client/callbacks/api.py | from typing import List
from fastapi import APIRouter, Depends, HTTPException, Response, status
from opal_client.callbacks.register import CallbacksRegister
from opal_client.config import opal_client_config
from opal_common.authentication.authz import require_peer_type
from opal_common.authentication.deps import JWTAu... | PypiClean |
/skytime-0.16.1-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/sktime/distances/_twe.py | __author__ = ["chrisholder", "TonyBagnall"]
import warnings
from typing import Any, List, Tuple
import numpy as np
from numba import njit
from numba.core.errors import NumbaWarning
from sktime.distances._distance_alignment_paths import compute_twe_return_path
from sktime.distances.base import DistanceCallable, Numba... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/postcss-modules-extract-imports/README.md | # CSS Modules: Extract Imports
[](https://travis-ci.org/css-modules/postcss-modules-extract-imports)
Transforms:
```css
:local(.continueButton) {
composes: button from "library/button.css";
color: green;
}
```
in... | PypiClean |
/py-slippi-1.6.2.tar.gz/py-slippi-1.6.2/test/replays.py |
import datetime, glob, os, subprocess, unittest
from slippi import Game, parse
from slippi.id import CSSCharacter, InGameCharacter, Item, Stage
from slippi.log import log
from slippi.metadata import Metadata
from slippi.event import Buttons, Direction, End, Frame, Position, Start, Triggers, Velocity
from slippi.parse... | PypiClean |
/mytdx-0.0.tar.gz/mytdx-0.0/pytdx/parser/ex_get_transaction_data.py |
from pytdx.parser.base import BaseParser
from pytdx.helper import get_datetime, get_volume, get_price, get_time
from collections import OrderedDict
import struct
import six
import datetime
class GetTransactionData(BaseParser):
def setParams(self, market, code, start, count):
if type(code) is six.text_typ... | PypiClean |
/terrascript_aws-1.0.5.tar.gz/terrascript_aws-1.0.5/src/terrascript_aws/cloudtrail/event_data_store.py | import terrascript.core as core
@core.schema
class FieldSelector(core.Schema):
ends_with: list[str] | core.ArrayOut[core.StringOut] | None = core.attr(
str, default=None, computed=True, kind=core.Kind.array
)
equals: list[str] | core.ArrayOut[core.StringOut] | None = core.attr(
str, defa... | PypiClean |
/test_data_lake-0.0.0.32.tar.gz/test_data_lake-0.0.0.32/delta_lake/DataLake.py | from abc import ABC, abstractmethod
from pyspark.sql.functions import *
import json
class DataLake(ABC):
"""
base class, contains generic methods
"""
events = None
string_validate_columns = ""
input_data = ""
mount_data = ""
json_load_insert_values = {}
colums_validate_merge = []
... | PypiClean |
/keen_dashboard-1.2.9.tar.gz/keen_dashboard-1.2.9/keen_dashboard/static/dist/assets/js/pages/components/datatables/basic/paginations.js |
/***/ "../src/assets/js/pages/components/datatables/basic/paginations.js":
/*!*************************************************************************!*\
!*** ../src/assets/js/pages/components/datatables/basic/paginations.js ***!
\*************************************************************************/
/*! no s... | PypiClean |
/resource_monitoring_bon-1.0.0.6-py3-none-any.whl/monitoring/resource_monitoring.py | import psutil
from slack_sdk.errors import SlackApiError
import requests
import os
import socket
import logging
import logging.config
from datetime import datetime, timedelta
from pathlib import Path
import time
import jwt
import urllib.parse
import swagger_manager as sm
config = {
"version": 1,
"formatters... | PypiClean |
/viivakoodi-0.8.0.tar.gz/viivakoodi-0.8.0/barcode/writer.py |
from __future__ import unicode_literals
import gzip
import os
import xml.dom
from barcode import __release__
try:
import Image,ImageDraw, ImageFont
except ImportError:
try:
from PIL import Image, ImageDraw, ImageFont # lint:ok
except ImportError:
import sys
sys.stderr.write('PIL... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/community/vmware/plugins/modules/vmware_guest_find.py |
# Copyright: (c) 2017, Ansible Project
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = r'''
---
module:... | PypiClean |
/scipy-1.9.1.tar.gz/scipy-1.9.1/doc/source/_static/scipy-mathjax/jax/input/TeX/jax.js | (function (TEX,HUB,AJAX) {
var MML, NBSP = "\u00A0";
var _ = function (id) {
return MathJax.Localization._.apply(MathJax.Localization,
[["TeX", id]].concat([].slice.call(arguments,1)));
};
var isArray = MathJax.Object.isArray;
var STACK = MathJax.Object.Subclass({
Init: function (env,inn... | PypiClean |
/panel-1.2.2.tar.gz/panel-1.2.2/doc/how_to/callbacks/defer_load.md | # Defer Bound Functions to Improve the User Experience
This guide addresses how to defer long running, bound and displayed functions with `defer_load`. You can use this to improve the user experience of your app.
If you need to defer and orchestrate multiple, dependent tasks then check out the [Defer Long Running Tas... | PypiClean |
/plone.app.workflowmanager-overhaul-1.2a1.tar.gz/plone.app.workflowmanager-overhaul-1.2a1/src/plone/app/workflowmanager/browser/resources/jsPlumb/src/connectors-statemachine.js | ;(function() {
"use strict";
var Line = function(x1, y1, x2, y2) {
this.m = (y2 - y1) / (x2 - x1);
this.b = -1 * ((this.m * x1) - y1);
this.rectIntersect = function(x,y,w,h) {
var results = [], xInt, yInt;
// try top face
// the equation of the top face is y = (0 * x) + b; y = b.
xInt = ... | PypiClean |
/pyaudible-1.1.0b3.tar.gz/pyaudible-1.1.0b3/docs/Documentation.md | ###### PyAudible 1.1.0
# Documentation
PyAudible is a Python library for sending and receiving data using audible sound. PyAudible includes a transmitter and a receiver module that could be implemented on multiple separated devices, enables the transmission of small amounts of data between devices in the vicinity.
... | PypiClean |
/shimao-nosidebar-frontend-20180926.0.tar.gz/shimao-nosidebar-frontend-20180926.0/hass_frontend/11ec51b1619205a83fbe.chunk.js | (window.webpackJsonp=window.webpackJsonp||[]).push([[23],{212:function(e,t,a){"use strict";a(62),a(61),a(225),a(201);var i=a(0),o=a(4),r=(a(251),a(125),a(28)),n=a(13),s=a(14);customElements.define("ha-entity-picker",class extends(Object(s.a)(Object(n.a)(o.a))){static get template(){return i["a"]`
<style>
pape... | PypiClean |
/delphi_utils-0.3.20-py3-none-any.whl/delphi_utils/archive.py | from contextlib import contextmanager
import filecmp
from glob import glob
from os import remove, replace
from os.path import join, basename, abspath
import shutil
import time
from typing import Tuple, List, Dict, Optional
from boto3 import Session
from boto3.exceptions import S3UploadFailedError
from git import Repo
... | PypiClean |
/django-moj-template-0.23.1.tar.gz/django-moj-template-0.23.1/moj_template/static/javascripts/ie.js | (function(l,f){function m(){var a=e.elements;return"string"==typeof a?a.split(" "):a}function i(a){var b=n[a[o]];b||(b={},h++,a[o]=h,n[h]=b);return b}function p(a,b,c){b||(b=f);if(g)return b.createElement(a);c||(c=i(b));b=c.cache[a]?c.cache[a].cloneNode():r.test(a)?(c.cache[a]=c.createElem(a)).cloneNode():c.createElem(... | PypiClean |
/Anipick-1.7.0-py3-none-any.whl/anipick/pict.py | from requests import get
from random import choice
class Animages:
url1 = 'https://nekos.best/api/v1/'
url2 = 'https://api.waifu.pics/sfw/'
url3 = 'https://purrbot.site/api/img/sfw/'
@classmethod
def pict(anu, url: str) -> str:
re = get(url).json()
try:
... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/eventgrid/get_partner_namespace.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from .. import _utilities, _tables
__all__ = [
'GetPartnerNamespaceResult',
'AwaitableGetPartnerNamespaceResult',
'get_partner_namespace',
]
@pulumi.output_type
class GetPartnerNamespaceResult:
... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/streptococcusporci.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def StreptococcusPorci(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/string",
**additional_graph_kwargs: Dic... | PypiClean |
/donuts-0.3.5.tar.gz/donuts-0.3.5/README.rst | =======
Donuts
=======
.. image:: https://img.shields.io/pypi/v/donuts.svg?text=version
:target: https://pypi.python.org/pypi/donuts
:alt: Latest Pypi Release
.. image:: https://img.shields.io/pypi/pyversions/donuts.svg
:target: https://pypi.python.org/pypi/donuts
.. image:: http://img.shields.io/badge/pow... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.