id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/PyNimbus-0.1.0.tar.gz/PyNimbus-0.1.0/README.md | # PyNimbus
[](https://pynimbus.readthedocs.io/en/latest/?badge=latest) [](https://opensource.org/licenses/BSD-3-Clause) [ {
function addIcon(el, entity) {
var html = el.innerHTML;
el.innerHTML = '<span style="font-family: \'Simple-Line-Icons\'">' + entity + '</span>' + html;
}
var icons = {
'icon-user-unfollow' : '',
'icon-user-friends' : '',
'icon-user-following' : '',
... | PypiClean |
/beanie-1.21.0.tar.gz/beanie-1.21.0/docs/tutorial/insert.md | # Insert the documents
Beanie documents behave just like pydantic models (because they subclass `pydantic.BaseModel`).
Hence, a document can be created in a similar fashion to pydantic:
```python
from typing import Optional
from pydantic import BaseModel
from beanie import Document, Indexed
class Category(BaseMod... | PypiClean |
/baiduads_sdk_auto-2023.1.0-py3-none-any.whl/baiduads/adgroup/api/adgroup_service.py | import re # noqa: F401
import sys # noqa: F401
from baiduads.api_client import ApiClient, Endpoint as _Endpoint
from baiduads.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_types
)
from baiduads.adgrou... | PypiClean |
/utilmac-0.1.11.tar.gz/utilmac-0.1.11/package/modules/brute.py |
import random
import subprocess
import time
import re
import sys
from .utility import interface_down, interface_up, check_user, get_vendors
def get_local_address(interface):
# Check relevant interface for DHCP assigned address
process = subprocess.Popen('ifconfig {interface}'.format(interface=interface), shell=Tr... | PypiClean |
/batchquotes/__init__.py | from bs4 import BeautifulSoup as bs
import requests
import os
from .multithread import get_quotes_threading
from .async_io import get_quotes_asyncio
import re
USER_AGENT = 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36'
def extract_quote(r_... | PypiClean |
/farbox_bucket-0.2068.tar.gz/farbox_bucket-0.2068/farbox_bucket/server/static/lib/jquery.tabslet.min.js |
<div class='tabs'>
<ul class='horizontal'>
<li><a href="#tab-1">Tab 1</a></li>
<li><a href="#tab-2">Tab 2</a></li>
<li><a href="#tab-3">Tab 3</a></li>
</ul>
<div id='tab-1'></div>
<div id='tab-2'></div>
<div id='tab-3'></div>
</div>
OR
<div class='tabs'>
<ul class='h... | PypiClean |
/lung_analysis_pipeline-0.0.14.tar.gz/lung_analysis_pipeline-0.0.14/lung_analysis_pipeline/Normalization_Pipeline/codes/compute_metrics.py | import os
import nrrd
import h5py
import numpy as np
import torch
import logging
from collections import OrderedDict
from utils.util import calculate_psnr, calculate_ssim, calculate_pdist
from utils.util import setup_logger, print_metrics
from utils.util import create_pdist_model
def clip_to_range(sample, raw_data_r... | PypiClean |
/aiogram_forms-1.1.1-py3-none-any.whl/aiogram_forms/forms/fields.py | from typing import Optional, Any, Dict, TYPE_CHECKING, Tuple, Union, Iterable
from aiogram import types
from aiogram.utils.i18n.lazy_proxy import LazyProxy # type: ignore[attr-defined]
from .base import Field
from . import validators
if TYPE_CHECKING:
from ..types import TranslatableString
class TextField(Fie... | PypiClean |
/django-markdowner-0.0.3.tar.gz/django-markdowner-0.0.3/README.rst | =================
Django Markdowner
=================
.. image:: https://img.shields.io/badge/python-3.6+-green.svg?
:target: https://www.python.org/
.. image:: https://img.shields.io/pypi/l/django-markdowner.svg
:target: https://github.com/LeCuay/django-markdowner/blob/master/LICENSE
.. image:: https://img.... | PypiClean |
/aiearth-deeplearning-0.0.2.tar.gz/aiearth-deeplearning-0.0.2/aiearth/deeplearning/datasets/mmseg/changedet/pipelines/double_img_loading.py | import os.path as osp
import mmcv
import numpy as np
from skimage import io
import rasterio
from rasterio.plot import reshape_as_image
from aiearth.deeplearning.engine.mmseg.datasets.builder import PIPELINES
@PIPELINES.register_module()
class LoadDoubleImageFromFile(object):
"""Load an image from file.
Requir... | PypiClean |
/shadowsocksr-cli-2.1.10.tar.gz/shadowsocksr-cli-2.1.10/shadowsocksr_cli/shadowsocks/daemon.py |
from __future__ import absolute_import, division, print_function, \
with_statement
import os
import sys
import signal
import time
from shadowsocksr_cli.shadowsocks import common, shell
logging = common.logging
# this module is ported from ShadowVPN daemon.c
def daemon_exec(config):
if 'daemon' in config:
... | PypiClean |
/s-rna_tools-0.0.3.tar.gz/s-rna_tools-0.0.3/s_rna_tools/join_duplicates.py | import os
import sys
import logging
import rich.console
import s_rna_tools.utils
from collections import OrderedDict
log = logging.getLogger(__name__)
stderr = rich.console.Console(
stderr=True,
style="dim",
highlight=False,
force_terminal=s_rna_tools.utils.rich_force_colors(),
)
class JoinDuplicates... | PypiClean |
/zeno_build-0.0.6-py3-none-any.whl/zeno_build/evaluation/code_metrics/execution_accuracy_utils.py | """Utilities for evaluating the execution accuracy of a program."""
from __future__ import annotations
import contextlib
import faulthandler
import io
import itertools
import multiprocessing
import os
import platform
import signal
import tempfile
from collections import Counter
from concurrent.futures import ThreadPo... | PypiClean |
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/tensorflow/python/tpu/tensor_tracer_report.py | """Tensor Tracer report generation utilities."""
import collections
import hashlib
import os
from tensorflow.python.platform import gfile
from tensorflow.python.platform import tf_logging as logging
from tensorflow.python.tpu import tensor_tracer_pb2
_TRACER_LOG_PREFIX = ' [>>>TT>>>]'
_MARKER_SECTION_BEGIN = '!!!!!!... | PypiClean |
/clear_skies_auth_server-0.9.5-py3-none-any.whl/clearskies_auth_server/authentication/jwks_direct.py | import clearskies
import datetime
import json
class JwksDirect(clearskies.authentication.JWKS):
_path_to_public_keys = None
def __init__(self, environment, secrets, jose_jwt):
# our base requires the requests library but we're going to replace all usages of it,
# so we're going to inject in s... | PypiClean |
/roadelou_compass-0.0.8-py3-none-any.whl/compass/codegen/c/module.py |
################################### METADATA ###################################
# Contributors: roadelou
# Contacts:
# Creation Date: 2021-03-13
# Language: Python3
################################### IMPORTS ####################################
# Standard library
from typing import List, Tuple # Used for type hi... | PypiClean |
/dsr_shelx-241-py3-none-any.whl/dsr_shelx/networkx/algorithms/connectivity/connectivity.py | import itertools
from operator import itemgetter
import networkx as nx
# Define the default maximum flow function to use in all flow based
# connectivity algorithms.
from networkx.algorithms.flow import (
boykov_kolmogorov,
build_residual_network,
dinitz,
edmonds_karp,
shortest_augmenting_path,
)
... | PypiClean |
/bitmovin_api_sdk-1.171.0-py3-none-any.whl/bitmovin_api_sdk/models/mp4_muxing.py |
from enum import Enum
from six import string_types, iteritems
from bitmovin_api_sdk.common.poscheck import poscheck_model
from bitmovin_api_sdk.models.dolby_vision_muxing_configuration import DolbyVisionMuxingConfiguration
from bitmovin_api_sdk.models.fragmented_mp4_muxing_manifest_type import FragmentedMp4MuxingManif... | PypiClean |
/ynab_api-2.0.2-py3-none-any.whl/ynab_api/model/payee_location_response.py | import re # noqa: F401
import sys # noqa: F401
from ynab_api.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, validate_get_composed_info,
)
from ..mode... | PypiClean |
/Orange3_Educational-0.6.0-py3-none-any.whl/orangecontrib/educational/widgets/utils/polynomialtransform.py | import numpy as np
from Orange.data.domain import DiscreteVariable, ContinuousVariable
from Orange.data import Table, Domain, Instance
from Orange.preprocess.preprocess import Preprocess
class PolynomialTransform(Preprocess):
def __init__(self, degree):
self.degree = degree
def __call__(self, data):... | PypiClean |
/semver-3.0.0.tar.gz/semver-3.0.0/docs/usage/convert-version-into-different-types.rst | .. _sec.convert.versions:
Converting a Version instance into Different Types
==================================================
Sometimes it is needed to convert a :class:`~semver.version.Version` instance into
a different type. For example, for displaying or to access all parts.
It is possible to convert a :class:`... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_15/api/directory_exports_api.py | from __future__ import absolute_import
import re
# python 2 and python 3 compatibility library
import six
from typing import List, Optional
from .. import models
class DirectoryExportsApi(object):
def __init__(self, api_client):
self.api_client = api_client
def api215_directory_exports_delete_with... | PypiClean |
/python-argumentation-2.0.0.tar.gz/python-argumentation-2.0.0/src/py_arg_learning/identify_grounded_extension.py | from typing import List
from py_arg.algorithms.semantics.get_grounded_extension import get_grounded_extension
from py_arg.generators.abstract_argumentation_framework_generators.abstract_argumentation_framework_generator import \
AbstractArgumentationFrameworkGenerator
from py_arg_learning.abstract_exercise_set imp... | PypiClean |
/Specter-0.6.1.tar.gz/Specter-0.6.1/specter/expect.py | import functools
import inspect
# Making sure we support 2.7 and 3+
try:
from types import ClassType as ClassObjType
except ImportError:
from types import ModuleType as ClassObjType
from specter import _
from specter.spec import (CaseWrapper, FailedRequireException,
TestSkippedExcepti... | PypiClean |
/opvia_scripts-1.5.3.tar.gz/opvia_scripts-1.5.3/src/opvia_scripts/script_utils.py | import logging
import os
import shutil
from contextlib import ExitStack, contextmanager
from enum import Enum
from tempfile import TemporaryDirectory
from typing import Dict, Generator, List, Optional
import numpy as np
import pandas as pd
from opvia_scripts.firebase import (
UploadedFile,
cache_item_storage_... | PypiClean |
/SensiML-2023.2.0-py3-none-any.whl/sensiml/datamanager/foundation_model.py | import json
import os
from sensiml.base import utility
from sensiml.datamanager.base import Base, BaseSet
class FoundationModel(Base):
"""Base class for a transform object"""
_uuid = ""
_name = None
_fields = [
"uuid",
"name",
"features_count",
"model_size",
... | PypiClean |
/python-leetcode-1.2.1.tar.gz/python-leetcode-1.2.1/leetcode/configuration.py | from __future__ import absolute_import
import copy
import logging
import multiprocessing
import sys
import six
import urllib3
from six.moves import http_client as httplib
class TypeWithDefault(type):
def __init__(cls, name, bases, dct):
super(TypeWithDefault, cls).__init__(name, bases, dct)
cls.... | PypiClean |
/PocketCRM-0.0.4.tar.gz/PocketCRM-0.0.4/README.md | PocketCRM is a simple tool to allow you to build out and test your CRM progress. in future versions, we will have stages for Account management. for now we just have notes per account and to allow you track an output of customer accounts with relationship notes:)
Please consider using the BDevManager2 libary with Pock... | PypiClean |
/tensorflow-gpu-macosx-1.8.1.tar.gz/tensorflow/python/ops/gradient_checker.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import numpy as np
from tensorflow.python.framework import constant_op
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.ops import array_ops
fro... | PypiClean |
/twitch_chat_wrapper-0.4.2.tar.gz/twitch_chat_wrapper-0.4.2/README.rst | TwitchChatWrapper
-----------------
This is a simple twitch chat wrapper written on python that I use to
build simple bots fast.
installation
============
::
pip intall twitch_chat_wrapper
fetchin Twitch oauth password token
===================================
Follow this link https://twitchapps.com/tmi/ and ... | PypiClean |
/realms-wiki-0.9.3.tar.gz/realms-wiki-0.9.3/realms/static/vendor/ace/lib/ace/mode/sjs_highlight_rules.js | define(function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var JavaScriptHighlightRules = require("./javascript_highlight_rules").JavaScriptHighlightRules;
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var SJSHighlightRules = function() {
var parent... | PypiClean |
/azure-mgmt-resource-23.1.0b1.zip/azure-mgmt-resource-23.1.0b1/azure/mgmt/resource/templatespecs/v2021_05_01/_configuration.py |
from typing import Any, TYPE_CHECKING
from azure.core.configuration import Configuration
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
from ._version import VERSION
if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-... | PypiClean |
/django-chile-payments-0.2.0.tar.gz/django-chile-payments-0.2.0/getpaid/models.py | from django.db import models
from django.utils.timezone import utc
from django.utils.translation import ugettext_lazy as _
from datetime import datetime
import sys
from abstract_mixin import AbstractMixin
import signals
from utils import import_backend_modules
from django.conf import settings
PAYMENT_STATUS_CHOICES = ... | PypiClean |
/python-gmail-0.0.8.tar.gz/python-gmail-0.0.8/README.md | [](https://travis-ci.org/sujitmandal/python-gmail) [](https://github.com/sujitmandal/python-gmail/blob/master/LICENSE) 
__copyright__ = "Copyright 2014, The InaSAFE Project"
__license__ = "GPL version 3"
... | PypiClean |
/kwapi-g5k-0.3-3.tar.gz/kwapi-g5k-0.3-3/kwapi/plugins/hdf5/hdf5_collector.py | import os
import errno
import socket
import numpy as np
from kwapi.utils import cfg, log
from threading import Lock, Timer
from datetime import datetime
from dateutil.relativedelta import relativedelta
from Queue import Queue
from tables import *
from pandas import HDFStore
LOG = log.getLogger(__name__)
hdf5_opts = ... | PypiClean |
/idxtools-0.12.1.tar.gz/idxtools-0.12.1/README.rst | Idxtools
========
.. image:: https://badge.fury.io/py/idxtools.png
:target: http://badge.fury.io/py/idxtools
.. image:: https://api.travis-ci.org/emi80/idxtools.svg?branch=develop
:target: https://travis-ci.org/emi80/idxtools
.. image:: https://coveralls.io/repos/emi80/idxtools/badge.png?branch=develo... | PypiClean |
/ci-cmg-cruise-schema-orm-1.1.2.tar.gz/ci-cmg-cruise-schema-orm-1.1.2/src/ncei_cruise_schema/orm/query.py | from .query_pair import QueryPair
class _ConditionCriterion(object):
def __init__(self, criteria, op):
self.criteria = criteria
self.op = op
def get(self, get_alias, persistence_context):
c = []
params = []
for criterion in self.criteria:
qp = criterion.get(get_alias, persistence_contex... | PypiClean |
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/an-xiao-yao/1-260节聊天课:248.说给单身的你.md | # 1-260节聊天课:248.说给单身的你
大家好 我是你们团窍妖系36地的女朋友小宇,喜欢小宇的朋友别忘了点击进度调下方的电影月案友,这样就能经常听到我的声音了,昨天小宇收到了一位听众的留言很有意思,在这里给大家分享一下。
她说刚才清理前女友留下的东西,在箱子里找到一条丝挖,后期讯来习想知道穿上丝挖是什么感觉,于是就穿上了,正在照镜子的时候门突然开了,我忘不了隔壁机有邪恶的眼神,更希望每天多点这样的留言,回到正题。
今天我们从六个角度来聊聊单身的人,应该具备什么样的爱情观,我觉得一个人的爱情观非常重要,尤其是在他单身的时候,尤其是在他孤单寂寞冷的时候,这个时候如果你能有一个非常正确的爱情观,我觉得距离你托单。
距离你找到... | PypiClean |
/orange_widget_base-4.21.0-py3-none-any.whl/orangewidget/utils/itemdelegates.py | import enum
from datetime import date, datetime
from functools import partial
from itertools import filterfalse
from types import MappingProxyType as MappingProxy
from typing import (
Sequence, Any, Mapping, Dict, TypeVar, Type, Optional, Container, Tuple,
)
from typing_extensions import Final
import numpy as np
... | PypiClean |
/matrix-synapse-ray-1.12.0.4.tar.gz/matrix-synapse-ray-1.12.0.4/synapse/http/federation/srv_resolver.py |
import logging
import random
import time
import attr
from twisted.internet import defer
from twisted.internet.error import ConnectError
from twisted.names import client, dns
from twisted.names.error import DNSNameError, DomainError
from synapse.logging.context import make_deferred_yieldable
logger = logging.getLog... | PypiClean |
/ploneintranet-1.2.72.tar.gz/ploneintranet-1.2.72/docs/api/ploneintranet.attachments.rst | ploneintranet.attachments package
=================================
Subpackages
-----------
.. toctree::
ploneintranet.attachments.browser
ploneintranet.attachments.tests
Submodules
----------
ploneintranet.attachments.attachments module
--------------------------------------------
.. automodule:: plonein... | PypiClean |
/unfolded_data_sdk-0.11.1.tar.gz/unfolded_data_sdk-0.11.1/unfolded/data_sdk/utils.py | import gzip
import os
import shutil
from typing import IO, Any, Callable, Iterable, Optional
import requests
from requests.exceptions import HTTPError
from unfolded.data_sdk.errors import AuthenticationError, DataSDKError
def get_fileobj_length(fileobj: IO) -> int:
"""Get length of file object"""
pos = file... | PypiClean |
/acryl-datahub-0.10.0.2rc2.tar.gz/acryl-datahub-0.10.0.2rc2/src/datahub/ingestion/source/mongodb.py | import logging
from dataclasses import dataclass, field
from typing import Dict, Iterable, List, Optional, Tuple, Type, Union, ValuesView
import bson
import pymongo
from packaging import version
from pydantic import PositiveInt, validator
from pydantic.fields import Field
from pymongo.mongo_client import MongoClient
... | PypiClean |
/python_statemachine-2.1.1-py3-none-any.whl/statemachine/event.py | from typing import TYPE_CHECKING
from .event_data import EventData
from .event_data import TriggerData
from .exceptions import TransitionNotAllowed
if TYPE_CHECKING:
from .statemachine import StateMachine
class Event:
def __init__(self, name: str):
self.name: str = name
def __repr__(self):
... | PypiClean |
/yaml-expressions-0.2.1.tar.gz/yaml-expressions-0.2.1/README.md | # YAML Jinja2 expressions
Renders Jinja2 expressions inside YAML file.
## Install
```
pip install yaml-expressions
```
## Examples
### Load template from file
cfg/cfg.yml:
```yaml
cfg:
test: "{{test}}"
```
```python
from yex import Yex
yex = Yex('./cfg/')
print(yex.render('cfg.yml', test='passed'))
```
Out... | PypiClean |
/neural_search-0.6.3.tar.gz/neural_search-0.6.3/jina/executors/metas.py | __copyright__ = "Copyright (c) 2020 Jina AI Limited. All rights reserved."
__license__ = "Apache-2.0"
"""The default meta config that all executors follow, they can be overrided by the YAML config
.. warning::
When you define your own Executor class, make sure your attributes/methods name do not
conflict wit... | PypiClean |
/exos-okta-1.2.1.tar.gz/exos-okta-1.2.1/LONG_DESCRIPTION.md | Okta SDK Python
===============
A Python library for the Okta Management APIs.
Getting Started
---------------
``` $ pip install okta ```
What you need
--------------------
- An Okta account, called an _organization_ (sign up for a free developer organization if you need one)
- [An API token](https://developer.okta... | PypiClean |
/biokevlar-0.7.tar.gz/biokevlar-0.7/kevlar/cli/__init__.py |
import argparse
import sys
import kevlar
from . import count
from . import novel
from . import filter
from . import augment
from . import assemble
from . import mutate
from . import gentrio
from . import partition
from . import localize
from . import call
from . import alac
from . import varfilter
from . import simlik... | PypiClean |
/sandstone-slurm-assist-0.12.0.tar.gz/sandstone-slurm-assist-0.12.0/sandstone_slurm/node_modules/bower/lib/node_modules/cliui/index.js | var wrap = require('wordwrap'),
align = {
right: require('right-align'),
center: require('center-align')
},
top = 0,
right = 1,
bottom = 2,
left = 3
function UI (opts) {
this.width = opts.width
this.wrap = opts.wrap
this.rows = []
}
UI.prototype.span = function () {
var cols = this.div.app... | PypiClean |
/whooshy-2.8.13.tar.gz/whooshy-2.8.13/src/whoosh/lang/snowball/romanian.py | from .bases import _StandardStemmer
from whoosh.compat import u
class RomanianStemmer(_StandardStemmer):
"""
The Romanian Snowball stemmer.
:cvar __vowels: The Romanian vowels.
:type __vowels: unicode
:cvar __step0_suffixes: Suffixes to be deleted in step 0 of the algorithm.
:type __step0_s... | PypiClean |
/structlog_sentry_lambda-1.4.2-py3-none-any.whl/structlog_sentry_lambda/_config.py | import datetime
import inspect
import json
import logging
import logging.config
import os
import pathlib
from types import ModuleType
from typing import Any, Callable, ContextManager, List, Optional, Union
import dotenv
import orjson # type: ignore
import sentry_sdk
import structlog
from pathlib import Path
import pl... | PypiClean |
/pyjdict-1.0.6-py3-none-any.whl/pyjdict-1.0.6.dist-info/LICENSE.md | MIT License
Copyright (c) 2022 BSTLabs
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, distribut... | PypiClean |
/into-0.2.2.tar.gz/into-0.2.2/docs/source/functions.rst | Five Operations
===============
The Blaze project originally included ``into`` a magic function that
transformed data between containers. This function was both sufficiently
useful and sufficiently magical that it was moved to a separate project, its
functionality separated into three operations
1. ``convert``: Tra... | PypiClean |
/python-ceilometerclient-2.9.0.tar.gz/python-ceilometerclient-2.9.0/ceilometerclient/common/utils.py |
from __future__ import print_function
import os
import textwrap
from oslo_serialization import jsonutils
from oslo_utils import encodeutils
import prettytable
import six
from ceilometerclient import exc
# Decorator for cli-args
def arg(*args, **kwargs):
def _decorator(func):
if 'help' in kwargs:
... | PypiClean |
/django_vitae-0.1.0-py3-none-any.whl/cv/views.py | from django.conf import settings
from django.http import HttpResponse
from django.shortcuts import get_object_or_404, render, redirect
from django.template import loader, Context, RequestContext
from django.views import generic
from .models import Collaborator, Journal, Discipline, Award, \
Positio... | PypiClean |
/fofpy-1.0.12-py3-none-any.whl/pyFoF/survey.py |
import pandas as pd
import numpy as np
from astropy.cosmology import FlatLambdaCDM
from astropy import constants as c
from astropy import units as u
from astropy.coordinates import SkyCoord
from scipy.integrate import quad
class Survey:
"""Class representing an individual survey."""
def __init__(self, data: ... | PypiClean |
/openmetadata-data-profiler-0.2.0.tar.gz/openmetadata-data-profiler-0.2.0/src/data_profiler/expectations/metrics/column_aggregate_metrics/column_quantile_values.py | import logging
import traceback
from collections.abc import Iterable
from typing import Any, Dict, List, Tuple
import numpy as np
from data_profiler.execution_engine import (
PandasExecutionEngine,
SparkDFExecutionEngine,
)
from data_profiler.execution_engine.execution_engine import MetricDomainTypes
from dat... | PypiClean |
/smscx_client-0.1.13.tar.gz/smscx_client-0.1.13/smscx_client/model/info_delete_scheduled_msg.py | import re # noqa: F401
import sys # noqa: F401
from smscx_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,
v... | PypiClean |
/pypi-up-0.3.2.tar.gz/pypi-up-0.3.2/README.md | #PYPI-UP
A tool to release package on Pypi, by incrementing the version number.
It also git tag the version and push it to the repository.
##### Requirements:
- git
## Installation and setup
pip install pypi-up
pypi-up --setup
## CLI
### Release the current version
pypi-up
follow t... | PypiClean |
/dials-dependencies-0.9.0.tar.gz/dials-dependencies-0.9.0/README.rst | ==================
DIALS Dependencies
==================
.. image:: https://img.shields.io/pypi/v/dials-dependencies.svg
:target: https://pypi.python.org/pypi/dials-dependencies
:alt: PyPI release
.. image:: https://img.shields.io/conda/vn/conda-forge/dials-dependencies.svg
:target: https://an... | PypiClean |
/ka-lite-0.17.6b4.tar.gz/ka-lite-0.17.6b4/kalite/distributed/static/js/distributed/perseus/ke/local-only/localeplanet/icu.zu-ZA.js | (function() {
var dfs = {"am_pm":["AM","PM"],"day_name":["Sonto","Msombuluko","Lwesibili","Lwesithathu","uLwesine","Lwesihlanu","Mgqibelo"],"day_short":["Son","Mso","Bil","Tha","Sin","Hla","Mgq"],"era":["BC","AD"],"era_name":["BC","AD"],"month_name":["Januwari","Februwari","Mashi","Apreli","Meyi","Juni","Julayi","Aga... | PypiClean |
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v3_4_0/if_trunk_broker.py | from ..broker import Broker
class IfTrunkBroker(Broker):
controller = "if_trunks"
def show(self, **kwargs):
"""Shows the details for the specified if trunk.
**Inputs**
| ``api version min:`` None
| ``api version max:`` None
| ``required:`` True
... | PypiClean |
/jmbo-foundry-2.1.3.tar.gz/jmbo-foundry-2.1.3/foundry/migrations/0060_auto__add_viewproxy.py | from south.utils import datetime_utils as 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 'ViewProxy'
db.create_table(u'foundry_viewproxy', (
(u'modelbase_ptr',... | PypiClean |
/dstat-plugins-0.3.0.tar.gz/dstat-plugins-0.3.0/dstat_plugins/plugins/dstat_disk_util.py |
class dstat_plugin(dstat):
"""
Percentage of bandwidth utilization for block devices.
Displays percentage of CPU time during which I/O requests were issued
to the device (bandwidth utilization for the device). Device saturation
occurs when this value is close to 100%.
"""
def __init__(sel... | PypiClean |
/monk_kaggle_test-0.0.3-py3-none-any.whl/monk/tf_keras_1/transforms/transforms.py | from monk.tf_keras_1.transforms.imports import *
from monk.system.imports import *
@accepts(dict, [list, float, int], [list, float, int], [list, float, int], [list, float, int], bool, bool, bool, retrieve=bool, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def transform_color_jitter(system_dic... | PypiClean |
/movieFinderIMDB-0.0.5.tar.gz/movieFinderIMDB-0.0.5/.eggs/pandas-1.3.1-py3.9-win-amd64.egg/pandas/core/computation/eval.py | from __future__ import annotations
import tokenize
import warnings
from pandas._libs.lib import no_default
from pandas.util._validators import validate_bool_kwarg
from pandas.core.computation.engines import ENGINES
from pandas.core.computation.expr import (
PARSERS,
Expr,
)
from pandas.core.computation.ops i... | PypiClean |
/django-node-websockets-0.1.18.tar.gz/django-node-websockets-0.1.18/websockets/views.py | from __future__ import print_function
import json
import urllib
import requests
from django.conf import settings
from django.contrib.auth.models import User
from django.contrib.sessions.models import Session
from django.core.cache import cache
from django.http.response import HttpResponse
from django.utils.decorators... | PypiClean |
/netbox_data_flows-0.7.2-py3-none-any.whl/netbox_data_flows/views/objectaliases.py | from django.db.models import Count
from netbox.views import generic
from utilities.views import register_model_view
from netbox_data_flows import filtersets, forms, models, tables
from netbox_data_flows.utils.aliases import AddAliasesView, RemoveAliasView
__all__ = (
"ObjectAliasView",
"ObjectAliasListView"... | PypiClean |
/aea-cli-ipfs-1.0.4.tar.gz/aea-cli-ipfs-1.0.4/aea_cli_ipfs/ipfs_utils.py | """Ipfs utils for `ipfs cli command`."""
import os
import shutil
import signal
import subprocess # nosec
from pathlib import Path
from typing import Dict, List, Optional, Tuple
import ipfshttpclient # type: ignore
class IPFSDaemon:
"""
Set up the IPFS daemon.
:raises Exception: if IPFS is not installe... | PypiClean |
/jyu.rsslisting-1.0.1.tar.gz/jyu.rsslisting-1.0.1/jyu/rsslisting/browser/rsslisting.py | from Products.Five.browser import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from plone.app.portlets.portlets.rss import FEED_DATA, Renderer
from plone.app.portlets.portlets.rss import RSSFeed as PloneRSSFeed
#from plone.app.portlets.portlets import feedparser
from DateTime im... | PypiClean |
/gooddata_metadata_client-1.3.0-py3-none-any.whl/gooddata_metadata_client/model/json_api_user_group_patch.py | import re # noqa: F401
import sys # noqa: F401
from gooddata_metadata_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... | PypiClean |
/snmpresponder-0.0.2.tar.gz/snmpresponder-0.0.2/docs/source/configuration/snmpresponderd.rst |
SNMP Responder configuration
============================
SNMP Responder daemon is essentially a versatile SNMP agent listening
on one or many network endpoints and maintaining one or more instances
of MIB trees.
Basic configuration strategy could be:
* Configure SNMP credentials and SNMP agent(s) listening for SNM... | PypiClean |
/bpy_cuda-2.82-cp37-cp37m-win_amd64.whl/bpy_cuda-2.82.data/scripts/2.82/scripts/addons/rigify/legacy/__init__.py |
# <pep8 compliant>
bl_info = {
"name": "Rigify",
"version": (0, 4),
"author": "Nathan Vegdahl",
"blender": (2, 66, 0),
"description": "Automatic rigging from building-block components",
"location": "Armature properties, Bone properties, View3d tools panel, Armature Add menu",
"wiki_url": "... | PypiClean |
/Flask-SSLify-bp-0.1.6.tar.gz/Flask-SSLify-bp-0.1.6/README.rst | Flask-SSLify
============
This is a simple Flask extension that configures your Flask application to redirect
all incoming requests to HTTPS.
Redirects only occur when ``app.debug`` is ``False``.
Usage
-----
Usage is pretty simple::
from flask import Flask
from flask_sslify import SSLify
app = Flask(_... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_19/models/remote_volume_snapshot.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_19 import models
class RemoteVolumeSnapshot(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the va... | PypiClean |
/apache-superset-11680-1.3.1.tar.gz/apache-superset-11680-1.3.1/superset/migrations/versions/45731db65d9c_security_converge_datasets.py | # revision identifiers, used by Alembic.
revision = "45731db65d9c"
down_revision = "c25cb2c78727"
from alembic import op
from sqlalchemy.exc import SQLAlchemyError
from sqlalchemy.orm import Session
from superset.migrations.shared.security_converge import (
add_pvms,
get_reversed_new_pvms,
get_reversed_pv... | PypiClean |
/ixnetwork_restpy-1.1.10.tar.gz/ixnetwork_restpy-1.1.10/uhd_restpy/testplatform/sessions/ixnetwork/topology/learnedinfo/row_dbafc34e8c4bf46a4ac7b647400c39d3.py | import sys
from uhd_restpy.base import Base
from uhd_restpy.files import Files
if sys.version_info >= (3, 5):
from typing import List, Any, Union
class Row(Base):
"""A row view of learned information.
The Row class encapsulates a list of row resources that are managed by the system.
A list of resource... | PypiClean |
/OpenELM-0.9.2-py3-none-any.whl/openelm/environments/sodaracer/box2d_examples/pgu/gui/document.py | import pygame
from . import container
from . import layout
class _document_widget:
def __init__(self,w,align=None):
#w.rect.w,w.rect.h = w.resize()
#self.rect = w.rect
self.widget = w
if align != None: self.align = align
class Document(container.Container):
"""A document is a ... | PypiClean |
/ka-lite-static-0.17.6b2.tar.gz/ka-lite-static-0.17.6b2/kalite/packages/dist/django/contrib/localflavor/il/forms.py | from __future__ import unicode_literals
import re
from django.core.exceptions import ValidationError
from django.core.validators import EMPTY_VALUES
from django.forms.fields import RegexField, Field, EMPTY_VALUES
from django.utils.checksums import luhn
from django.utils.translation import ugettext_lazy as _
# Israeli... | PypiClean |
/opensesame_core-4.0.5-py3-none-any.whl/libqtopensesame/widgets/tab_widget.py | from libopensesame.py3compat import *
from openexp import resources
from libopensesame import metadata, misc
from libqtopensesame.misc.base_subcomponent import BaseSubcomponent
from libqtopensesame.misc.config import cfg
from libqtopensesame.widgets.tab_bar import TabBar
from qtpy import QtGui, QtWidgets, QtCore
from l... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/datashare/v20181101preview/synchronization_setting.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from ._enums import *
__all__ = ['SynchronizationSetting']
class SynchronizationSetting(pulumi.CustomResource):
def __init__(__self__,
resource_name... | PypiClean |
/kong_pdk-0.36.tar.gz/kong_pdk-0.36/kong_pdk/pdk/kong/service/request.py |
from typing import TypeVar, Any, Union, List, Mapping, Tuple, Optional
number = TypeVar('number', int, float)
table = TypeVar('table', List[Any], Mapping[str, Any])
# XXX
cdata = Any
err = str
class request():
@staticmethod
def add_header(header: str, value: Any) -> None:
"""
Adds a r... | PypiClean |
/jupyter-remote-desktop-proxy-1.1.0.tar.gz/jupyter-remote-desktop-proxy-1.1.0/jupyter_remote_desktop_proxy/share/web/noVNC-1.2.0/docs/API-internal.md | # 1. Internal Modules
The noVNC client is composed of several internal modules that handle
rendering, input, networking, etc. Each of the modules is designed to
be cross-browser and independent from each other.
Note however that the API of these modules is not guaranteed to be
stable, and this documentation is not ma... | PypiClean |
/promissory_note-0.0.6-py3-none-any.whl/promissory_note/gateways/web.py | from datetime import datetime
from flask import Flask, render_template, request, redirect
from wtforms import Form, DateField, IntegerField, FloatField, StringField
from wtforms.fields.html5 import EmailField
from wtforms.validators import DataRequired
from promissory_note.commands import IssuePromissoryNoteCommand
f... | PypiClean |
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/prime_remastered/objects/BlackboardPhaseRelayWriter.py | import dataclasses
import struct
import typing
from retro_data_structures.game_check import Game
from retro_data_structures.properties.base_property import BaseProperty
import base64
@dataclasses.dataclass()
class BlackboardPhaseRelayWriter(BaseProperty):
unknown_properties: dict[int, bytes] = dataclasses.field(... | PypiClean |
/oc-js-0.8.tar.gz/oc-js-0.8/opencore/js/thirdparty/xinha96r1270/plugins/SmartReplace/SmartReplace.js | function SmartReplace(editor) {
this.editor = editor;
var cfg = editor.config;
var self = this;
cfg.registerButton
({
id : "smartreplace",
tooltip : this._lc("SmartReplace"),
image : [_editor_url +'iconsets/Tango/ed_buttons_main.png',3,8],
textMode : false,
action : function(e, objname, o... | PypiClean |
/pytorch-stream-0.0.1.tar.gz/pytorch-stream-0.0.1/continual/utils.py | from collections import OrderedDict, abc
from contextlib import contextmanager
from functools import partial, reduce
from inspect import getsource
from numbers import Number
from typing import Any, List, Sequence, Tuple, Union
import torch
from torch import Tensor, nn
from .logging import getLogger
__all__ = [
"... | PypiClean |
/dpm-0.10.tar.gz/dpm-0.10/doc/extending.rst | =================
Extending Datapkg
=================
Datapkg has been designed to be easily extensible. At the present time you can
write your own implementations of:
* Commands - extend dpm command line interface with new commands
* Indexes - add new Indexes with which dpm can communicate
* Distribution - add... | PypiClean |
/otxdet-0.3.2-py3-none-any.whl/mmdet/apis/train.py | import shutil
from os import path as osp
import warnings
import numpy as np
import random
import torch
from copy import copy
from mmcv.parallel import MMDataParallel, MMDistributedDataParallel
from mmcv.runner import (HOOKS, DistSamplerSeedHook, EpochBasedRunner, LoggerHook,
Fp16OptimizerHook, ... | PypiClean |
/argo-workflows-6.5.0rc1.tar.gz/argo-workflows-6.5.0rc1/argo_workflows/model/io_argoproj_events_v1alpha1_conditions_reset_criteria.py | import re # noqa: F401
import sys # noqa: F401
from argo_workflows.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
... | PypiClean |
/packagetest117-0.117.tar.gz/packagetest117-0.117/devdoo/yaml/emitter.py |
__all__ = ['Emitter', 'EmitterError']
from error import YAMLError
from events import *
class EmitterError(YAMLError):
pass
class ScalarAnalysis(object):
def __init__(self, scalar, empty, multiline,
allow_flow_plain, allow_block_plain,
allow_single_quoted, allow_double_quoted,
... | PypiClean |
/scikit-learn-3way-split-0.0.1.tar.gz/scikit-learn-3way-split-0.0.1/doc/governance.rst | .. _governance:
===========================================
Scikit-learn governance and decision-making
===========================================
The purpose of this document is to formalize the governance process used by the
scikit-learn project, to clarify how decisions are made and how the various
elements of ou... | PypiClean |
/pulumi_alicloud-3.44.0a1693632188.tar.gz/pulumi_alicloud-3.44.0a1693632188/pulumi_alicloud/cen/get_transit_router_service.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'GetTransitRouterServiceResult',
'AwaitableGetTransitRouterServiceResult',
'get_transit_router_service',
'get_transit_router_servic... | PypiClean |
/afp-cli-370.326.tar.gz/afp-cli-370.326/afp_cli/cli_functions.py | from __future__ import (
absolute_import, division, print_function, unicode_literals)
import socket
import sys
from datetime import datetime
from .client import APICallError
from .log import CMDLineExit
def get_valid_seconds(aws_expiration_date, utcnow):
try:
credentials_valid_until = datetime.strpt... | PypiClean |
/time-cord-0.1.0.tar.gz/time-cord-0.1.0/README.md | # Quantify & take control of time spent on Discord
## About timecord
time-cord is a library that:
- Tracks time spent on Discord
- Tracks time spent on specific servers & channels
Currently only Mac OS is supported.
#### Areas for improvement:
- Support for non-Mac OS devices
#### Dependencies:
- Pillow
- Easyocr
-... | PypiClean |
/edk2_pytool_library-0.17.0-py3-none-any.whl/edk2toollib/windows/locate_tools.py | import glob
import logging
import os
import re
import subprocess
import pkg_resources
from edk2toollib.utility_functions import GetHostInfo, RunCmd
try:
from StringIO import StringIO
except ImportError:
from io import StringIO
import urllib.error
import urllib.request
# Update this when you want a new versi... | PypiClean |
/TeaRoute-0.0.7.tar.gz/TeaRoute-0.0.7/README.md | # Tear - Trainable, autonomous, efficient routing.
Tear is a simple tool that allows you to easily (<10 lines of code) and cheaply (500,000/1$) control the flow of information through LLM chains via automated classification. It provides routing via two methods, LLMs and Embeddings. Furthermore, you can train an LLM on ... | PypiClean |
/in-transformers-1.0.0.tar.gz/in-transformers-1.0.0/src/transformers/models/convnext/convert_convnext_to_pytorch.py | import argparse
import json
from pathlib import Path
import torch
from PIL import Image
import requests
from huggingface_hub import hf_hub_download
from transformers import ConvNextConfig, ConvNextFeatureExtractor, ConvNextForImageClassification
from transformers.utils import logging
logging.set_verbosity_info()
lo... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.