id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/madlibspy-2.3.tar.gz/madlibspy-2.3/README.md | # **MadlibsPy**
Create your own madlibs game!
## **Installation**
Use `python -m pip install madlibspy`
## **Example**
```py
import madlibspy as madlibs
data = madlibs.Madlibs(API_TOKEN) # You need an API token from api.bytestobits.dev
answers = [input(f"Enter a/an {i}: ") for i in data.variables]
text = data.conv... | PypiClean |
/maintain_PlatoUtils-0.1.3.100-py3-none-any.whl/maintain_PlatoUtils/GraphWrapClient/GraphWrapClient.py | from nebula.graph import ttypes,GraphService
from nebula.ConnectionPool import ConnectionPool
from nebula.Client import GraphClient
from maintain_PlatoUtils.maintain_PlatoUtils import wrapNebula2Df
# from maintain_PlatoUtils import wrapNebula2Df
import tqdm
from typing import Callable, Any, Iterable
import traceback
fr... | PypiClean |
/django-sb-admin-5.5.1.1.tar.gz/django-sb-admin-5.5.1.1/django_sb_admin/static/js/plugins/flot/excanvas.min.js | if(!document.createElement("canvas").getContext){(function(){var z=Math;var K=z.round;var J=z.sin;var U=z.cos;var b=z.abs;var k=z.sqrt;var D=10;var F=D/2;function T(){return this.context_||(this.context_=new W(this))}var O=Array.prototype.slice;function G(i,j,m){var Z=O.call(arguments,2);return function(){return i.appl... | PypiClean |
/finn-base-0.0.3.tar.gz/finn-base-0.0.3/docs/tutorials.rst | .. _tutorials:
*********
Tutorials
*********
The FINN compiler repository FINN provides several Jupyter notebooks that can help to get familiar with the basics, the internals and the end-to-end flow in FINN.
All Jupyter notebooks can be found in the FINN compiler repository under the `notebook folder <https://github.... | PypiClean |
/mpplugs-0.4.0-py3-none-any.whl/Pluginable/Exceptions.py | from Pluginable.Namespace import Namespace
from traceback import format_tb
class PluginableException(Exception):
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self.name = self.__class__.__name__
self.info = self.args[0]
# Compiler
class CompilerError(PluginableException):
pas... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/joined_teams/item/members/add/add_response.py | from __future__ import annotations
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, Union
from .......models import action_result_part, base_collection_pagination_count_response
class AddResponse(base_collection_pagination_co... | PypiClean |
/gdata-2.0.18.tar.gz/gdata-2.0.18/src/atom/mock_http_core.py |
# This module is used for version 2 of the Google Data APIs.
__author__ = 'j.s@google.com (Jeff Scudder)'
import StringIO
import pickle
import os.path
import tempfile
import atom.http_core
class Error(Exception):
pass
class NoRecordingFound(Error):
pass
class MockHttpClient(object):
debug = None
rea... | PypiClean |
/pyarma-0.400.0.tar.gz/pyarma-0.400.0/ext/pybind11/docs/basics.rst | .. _basics:
First steps
###########
This sections demonstrates the basic features of pybind11. Before getting
started, make sure that development environment is set up to compile the
included set of test cases.
Compiling the test cases
========================
Linux/macOS
-----------
On Linux you'll need to inst... | PypiClean |
/pg_diff-0.2.1.tar.gz/pg_diff-0.2.1/README.rst | |Build Status| |Coverage Status|
pg diff
=======
A simple tool to diff serveral properties of schemas in two postgresql
databases.
Now supported diff options are:
- table\_name
- table\_count
- table\_schema
- row\_count
- table\_size
- index\_size
- ``table_total_size``
- sequence
Why
===
Recently I work... | PypiClean |
/model_factory-0.0.8.tar.gz/model_factory-0.0.8/model_factory/models/seq2seq_model.py | import tqdm
from typing import Any, Tuple, List, Dict
import tensorflow as tf
import numpy as np
from model_factory.utils import BeamHypotheses
from model_factory.models.model import Model
from model_factory.losses.loss import seq2seq_cross_entropy_loss
from datasets.utils.common_struct import data_schemas2types, data_... | PypiClean |
/metadrive_simulator-0.4.1.2-py3-none-any.whl/metadrive/render_pipeline/rpcore/util/smooth_connected_curve.py | from metadrive.render_pipeline.rplibs.six.moves import range # pylint: disable=import-error
from panda3d.core import Vec3, CurveFitter
class SmoothConnectedCurve(object):
""" Interface to a curve which also manages connecting the end of the
curve with the beginning. """
def __init__(self):
self.... | PypiClean |
/unblock-1.5.0.1.tar.gz/unblock-1.5.0.1/superset/models/core.py | """A collection of ORM sqlalchemy models for Superset"""
import enum
import json
import logging
import textwrap
from ast import literal_eval
from contextlib import closing
from copy import deepcopy
from datetime import datetime
from typing import Any, Callable, Dict, List, Optional, Set, Tuple, Type
import numpy
impor... | PypiClean |
/django_tinymce4_lite-1.8.0-py3-none-any.whl/tinymce/static/tinymce/js/tinymce/plugins/imagetools/plugin.min.js | !function(){"use strict";var r=function(t){var e=t,n=function(){return e};return{get:n,set:function(t){e=t},clone:function(){return r(n())}}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),$=tinymce.util.Tools.resolve("tinymce.util.Tools");function n(t,e){return i(document.createElement("canvas"),t,e)}function o... | PypiClean |
/assistant_skill_analysis-2.0.1-py3-none-any.whl/assistant_dialog_skill_analysis/data_analysis/summary_generator.py | from collections import Counter
import numpy as np
import pandas as pd
import seaborn as sns
from IPython.display import Markdown, display
from matplotlib import pyplot as plt
from ..utils.skills_util import LABEL_FONT
def generate_summary_statistics(data, entities_list=None):
"""
Take the workspace dictionar... | PypiClean |
/mergepythonclient-0.2.5-py3-none-any.whl/merge/resources/crm/types/address.py |
import datetime as dt
import typing
import pydantic
from ....core.datetime_utils import serialize_datetime
from .address_address_type import AddressAddressType
from .address_country import AddressCountry
class Address(pydantic.BaseModel):
"""
# The Address Object
### Description
The `Address` objec... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/azurestackhci/v20221215preview/cluster.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
from ._enums import *
from ._inputs import *
__all__ = ['ClusterArgs', 'Cluster']
@pulumi.input_type
class ClusterArgs:
def __init_... | PypiClean |
/django_first-1.0-py3-none-any.whl/login/views.py | from django.shortcuts import render
from django.shortcuts import redirect
from . import models
from . import forms
import hashlib
import datetime
from django.conf import settings
# Create your views here.
def hash_code(s, salt='mysite'):
h = hashlib.sha256()
s += salt
h.update(s.encode())
return h.hexd... | PypiClean |
/mojo_testplus-0.0.32.tar.gz/mojo_testplus-0.0.32/source/packages/mojo/testplus/queries.py | __author__ = "Myron Walker"
__copyright__ = "Copyright 2023, Myron W Walker"
__credits__ = []
__version__ = "1.0.0"
__maintainer__ = "Myron Walker"
__email__ = "myron.walker@gmail.com"
__status__ = "Development" # Prototype, Development or Production
__license__ = "MIT"
from typing import Union
import inspect
import ... | PypiClean |
/yt-dlp-custom-0.0.1.tar.gz/yt-dlp-custom-0.0.1/yt_dlp/utils.py | import asyncio
import atexit
import base64
import binascii
import calendar
import codecs
import collections
import collections.abc
import contextlib
import datetime
import email.header
import email.utils
import errno
import gzip
import hashlib
import hmac
import html.entities
import html.parser
import http.client
impor... | PypiClean |
/distributions_udacity_dsnd_chp03lesson04_5_exercise_upload_to_pypi-0.1.tar.gz/distributions_udacity_dsnd_chp03lesson04_5_exercise_upload_to_pypi-0.1/distributions_udacity_dsnd_chp03lesson04_5_exercise_upload_to_pypi/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 |
/jac_misc-1.4.1.9.tar.gz/jac_misc-1.4.1.9/jac_misc/openai/main.py | from jaseci.jsorc.live_actions import jaseci_action
from jaseci.utils.utils import logger
import openai
from typing import Union
@jaseci_action(act_group=["openai"], allow_remote=True)
def setup(
api_key=openai.api_key,
api_type=openai.api_type,
api_base=openai.api_base,
api_version=openai.api_version... | PypiClean |
/block-timer-0.2.0.tar.gz/block-timer-0.2.0/block_timer/timer.py |
import sys
import time
from contextlib import ContextDecorator
from typing import Optional
__all__ = ["Timer"]
class Timer(ContextDecorator):
"""
Timer class that can be used both as a context manager and function/method decorator.
Usage:
>>> import math
>>> import time
>>>
>>> with Ti... | PypiClean |
/django-sysace-1.2.8.tar.gz/django-sysace-1.2.8/ace/static/js/tinymce/plugins/charmap/plugin.min.js | tinymce.PluginManager.add("charmap",function(e){function t(){return[["160","no-break space"],["173","soft hyphen"],["34","quotation mark"],["162","cent sign"],["8364","euro sign"],["163","pound sign"],["165","yen sign"],["169","copyright sign"],["174","registered sign"],["8482","trade mark sign"],["8240","per mille sig... | PypiClean |
/sagemath-standard-10.0b0.tar.gz/sagemath-standard-10.0b0/sage/structure/proof/all.py | def arithmetic(t=None):
"""
Controls the default proof strategy for integer arithmetic algorithms
(such as primality testing).
INPUT:
t -- boolean or ``None``
OUTPUT:
If t is ``True``, requires integer arithmetic operations to (by
default) return results that are true unconditionally... | PypiClean |
/smax-gcp-1.0.0.tar.gz/smax-gcp-1.0.0/sharelib/base_infra_act.py | import pathlib
import shutil
from abc import ABC, abstractmethod
from argparse import ArgumentParser
from argparse import Namespace
from pieterraform import TfVars
from .base_act import BaseAct
class BaseInfraAct(BaseAct, ABC):
def __init__(self):
super().__init__()
@property
def keys_folder(se... | PypiClean |
/feedzilla-0.24.tar.gz/feedzilla-0.24/demo/fabfile.py | from __future__ import with_statement
from fabric import api
from fabric.contrib import django
import os
# Configuration
ENV_DIR = '.env'
REMOTE_ROOT = ''
api.env.user = 'web'
api.env.hosts = []
# Activate the virtualenv
try:
activate_this = ENV_DIR + '/bin/activate_this.py'
execfile(activate_this, dict(__fil... | PypiClean |
/gardener-cicd-dso-1.2143.0.tar.gz/gardener-cicd-dso-1.2143.0/clamav/scan.py | import concurrent.futures
import functools
import logging
import tarfile
import tempfile
import typing
import gci.componentmodel as cm
import ci.log
import clamav.client
import clamav.model
import clamav.util
import oci.client
import oci.model
logger = logging.getLogger(__name__)
ci.log.configure_default_logging()
... | PypiClean |
/ZoomFoundry-6.21.0-py3-none-any.whl/zoom/store.py | import base64
import datetime
import decimal
import zoom.utils
import zoom.exceptions
import zoom.jsonz
from zoom.database import setup_test
Record = Entity = zoom.utils.Record
EntityList = zoom.utils.RecordList
def entify(rs, storage):
"""
converts query result into an EntityList
"""
klass = stora... | PypiClean |
/Dwarf-0.1.3.tar.gz/Dwarf-0.1.3/readme.md | # DWARF, a tiny content publishing engine.
Dwarf is an out-in-the-open exercise in building a content publishing tool with [python](http://python.org) and [Flask]().
Dwarf currently wants to be a static site generator very much like its heroes [Jekyll](http://jekyllrb.com/) and [Pelican](http://blog.getpelican.com/).... | PypiClean |
/excentis_xra31-5.3.0-py3-none-any.whl/excentis/xra31/configuration.py | import copy
import re
import time
import typing
from . import core, decorate, exceptions
from .trace import trace
from .version import Version
DEFAULT_JSON_CLIENT_VERSION = "v4.0.0"
MIN_JSON_CLIENT_VERSION = "v4.0.0"
JSON_CLIENT_VERSION = "v5.0.0"
class Detection(core.ChannelList):
"""Access the upstream channe... | PypiClean |
/graphscope_client-0.24.0a20230825-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/graphscope/framework/graph_schema.py |
import hashlib
import itertools
import json
from collections import namedtuple
from typing import List
from graphscope.framework.utils import unify_type
from graphscope.proto import ddl_service_pb2
from graphscope.proto import graph_def_pb2
class Property:
def __init__(
self, name, data_type, is_primary... | PypiClean |
/bittray-0.1.4.tar.gz/bittray-0.1.4/README.rst | ========================================
Bittray - a systray app for bitcoin info
========================================
.. figure:: bittray.png
:alt: Bittray running inside tint2
Bittray running inside tint2.
Bittray is an application to display the current bitcoin price in your
systray. If you enable elect... | PypiClean |
/mediascope_api_lib-1.1.11-py3-none-any.whl/mediascope_api/responsum/catalogs.py | import os
import pandas as pd
from ..core import net
class ResponsumCats:
facility_id = None
def __new__(cls, facility_id, settings_filename: str = None, cache_path: str = None, cache_enabled: bool = True,
username: str = None, passw: str = None, root_url: str = None, client_id: str = None,
... | PypiClean |
/modules/search/githubapi.py | import time
import base64
from emailall.common.search import Search
from emailall.config import settings
from emailall.config.log import logger
from emailall.common import utils
class Github(Search):
def __init__(self, domain):
Search.__init__(self)
self.domain = domain
self.module = 'Sea... | PypiClean |
/autoarchive-2.0.5.tar.gz/autoarchive-2.0.5/doc/src/usermanual/general/arch_spec.rst | .. arch_spec.rst
..
.. Project: AutoArchive
.. License: GNU GPLv3
..
.. Copyright (C) 2003 - 2017 Róbert Čerňanský
.. User documentation - archive specification file description
.. _arch_spec:
Archive Specification File
==========================
.. begin_description
`Archive specification file` contains all... | PypiClean |
/tomsbestfriend-0.1.0.zip/tomsbestfriend-0.1.0/README.rst | =================
Tom's Best Friend
=================
Tom's Best Friend is a `TOML <https://github.com/mojombo/toml>`_ parser for
people with deadlines. No, sorry. For humans. No, dammit, all the good taglines
are taken.
.. code-block:: python
>>> from pprint import pprint
>>> from tomsbestfriend import load... | PypiClean |
/numpy-1.22.2.zip/numpy-1.22.2/tools/allocation_tracking/track_allocations.py | import numpy as np
import gc
import inspect
from alloc_hook import NumpyAllocHook
class AllocationTracker:
def __init__(self, threshold=0):
'''track numpy allocations of size threshold bytes or more.'''
self.threshold = threshold
# The total number of bytes currently allocated with size a... | PypiClean |
/django_cfdi-2.134-py3-none-any.whl/cfdi/static/cfdi/codemirror/src/line/highlight.js | import { countColumn } from "../util/misc.js"
import { copyState, innerMode, startState } from "../modes.js"
import StringStream from "../util/StringStream.js"
import { getLine, lineNo } from "./utils_line.js"
import { clipPos } from "./pos.js"
class SavedContext {
constructor(state, lookAhead) {
this.state = s... | PypiClean |
/dnamlops-0.0.3-py3-none-any.whl/mlopsdna/evidently/utils/dashboard.py | import base64
import dataclasses
import json
import os
import shutil
from dataclasses import asdict
from enum import Enum
from typing import Dict
from typing import List
from typing import Optional
import mlopsdna.evidently as evidently
from mlopsdna.evidently.model.dashboard import DashboardInfo
from mlopsdna.evident... | PypiClean |
/ax-platform-0.3.4.tar.gz/ax-platform-0.3.4/ax/benchmark/methods/modular_botorch.py |
from typing import Any, Dict, Optional, Type
from ax.benchmark.benchmark_method import (
BenchmarkMethod,
get_sequential_optimization_scheduler_options,
)
from ax.modelbridge.generation_strategy import GenerationStep, GenerationStrategy
from ax.modelbridge.registry import Models
from ax.models.torch.botorch_m... | PypiClean |
/anaplan-api-0.1.28.tar.gz/anaplan-api-0.1.28/src/anaplan_api/File.py | from .AnaplanConnection import AnaplanConnection
from .Resources import Resources
from .ResourceParserFile import ResourceParserFile
from .AnaplanResourceFile import AnaplanResourceFile
from .util.AnaplanVersion import AnaplanVersion
from .util.Util import ResourceNotFoundError
class File:
"""A class representing... | PypiClean |
/request_session-0.15.0.tar.gz/request_session-0.15.0/request_session/request_session.py | import re
import time
from collections import namedtuple
from typing import List # pylint: disable=unused-import
from typing import Any, Callable, Dict, Optional, Tuple, Union
import requests
import requests.adapters
import simplejson as json
from ._compat import urljoin
from .exceptions import InvalidUserAgentStrin... | PypiClean |
/ytdl_sub-2023.9.2.post4-py3-none-any.whl/ytdl_sub/plugins/output_directory_nfo_tags.py | from typing import Optional
from ytdl_sub.config.preset_options import Overrides
from ytdl_sub.entries.entry import Entry
from ytdl_sub.plugins.nfo_tags import NfoTagsValidator
from ytdl_sub.plugins.nfo_tags import SharedNfoTagsOptions
from ytdl_sub.plugins.nfo_tags import SharedNfoTagsPlugin
from ytdl_sub.validators.... | PypiClean |
/python_liquid-1.9.4-py3-none-any.whl/liquid/golden/if_tag.py |
from liquid.golden.case import Case
cases = [
Case(
description="condition with literal consequence",
template=r"{% if product.title == 'foo' %}bar{% endif %}",
expect="bar",
globals={"product": {"title": "foo"}},
),
Case(
description="condition with literal consequ... | PypiClean |
/accoladepraccli-2.5-py3-none-any.whl/parser/argparser.py | import argparse
import os
import boto3
#Create an argument cliparser
parser = argparse.ArgumentParser()
def usoptionals():
# Add all the optional and required arguments on the command line
parser.add_argument('--file', help="File being moved")
parser.add_argument('--folder', help="Place being added")
... | PypiClean |
/pyqchem-0.9.3.tar.gz/pyqchem-0.9.3/README.md | [](https://app.travis-ci.com/github/abelcarreras/PyQchem)
[](https://coveralls.io/github/abelcarreras/PyQchem?branch=master)
[
=======================================
Experimenters often begin an experiment with imperfect knowledge of the underlying relationship they seek to model, and may have a variety of goals that they would like to accomplish with the experiment. In this chapter, we describe how se... | PypiClean |
/live_trading_indicators-0.7.5.tar.gz/live_trading_indicators-0.7.5/src/live_trading_indicators/indicators_set/__init__.py | import logging
import logging.config
import importlib
from enum import Enum
from abc import ABC, abstractmethod
from ..config import config_load, get_logging_config
from ..cast_input_params import *
from ..exceptions import *
from ..timeframe import *
from .. import datasources
from ..indicator_data import OHLCV_data
f... | PypiClean |
/vlab_cli-2021.1.28-py3-none-any.whl/vlab_cli/subcommands/delete/onefs.py | """Defines the CLI for deleting a OneFS node or cluster"""
import click
from vlab_cli.lib.widgets import Spinner
from vlab_cli.lib.api import consume_task, block_on_tasks
from vlab_cli.lib.click_extras import MutuallyExclusiveOption
@click.command()
@click.option('-n', '--name', cls=MutuallyExclusiveOption,
... | PypiClean |
/pytest_randomly-3.15.0.tar.gz/pytest_randomly-3.15.0/README.rst | ===============
pytest-randomly
===============
.. image:: https://img.shields.io/github/actions/workflow/status/pytest-dev/pytest-randomly/main.yml?branch=main&style=for-the-badge
:target: https://github.com/pytest-dev/pytest-randomly/actions?workflow=CI
.. image:: https://img.shields.io/badge/Coverage-100%25-suc... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_21/api/container_default_protections_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 ContainerDefaultProtectionsApi(object):
def __init__(self, api_client):
self.api_client = api_client
def api221_container_default_... | PypiClean |
/django-measurement-3.2.4.tar.gz/django-measurement-3.2.4/README.rst | |version| |ci| |coverage| |license|
Django Measurement
==================
Easily use, manipulate, and store unit-aware measurement objects using Python
and Django.
`django.contrib.gis.measure <https://github.com/django/django/blob/master/django/contrib/gis/measure.py>`_
has these wonderful 'Distance' objects that ca... | PypiClean |
/high_vision-0.1-py3-none-any.whl/high_vision/Detection/yolov4/tf/dataset.py | from os import path
import random
import cv2
import numpy as np
from high_vision.Detection.yolov4.tf import train
from high_vision.Detection.yolov4.common import media
class Dataset:
def __init__(
self,
anchors: np.ndarray = None,
batch_size: int = 2,
dataset_path: str = None,
... | PypiClean |
/pulumi_kubernetes-4.2.0a1693403901-py3-none-any.whl/pulumi_kubernetes/admissionregistration/v1/MutatingWebhookConfiguration.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
from ... import meta as _meta
from ._inputs import *
__all__ = ['MutatingWebhookConfigurationInitArgs', 'MutatingWebhookConfiguration']
... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/response/AntMerchantExpandMerchantStorelistQueryResponse.py | import json
from alipay.aop.api.response.AlipayResponse import AlipayResponse
from alipay.aop.api.domain.ShopQueryInfo import ShopQueryInfo
class AntMerchantExpandMerchantStorelistQueryResponse(AlipayResponse):
def __init__(self):
super(AntMerchantExpandMerchantStorelistQueryResponse, self).__init__()
... | PypiClean |
/embeddix-1.16.0.tar.gz/embeddix-1.16.0/README.md | # embeddix
[![GitHub release][release-image]][release-url]
[![PyPI release][pypi-image]][pypi-url]
[![Build][build-image]][build-url]
[![MIT License][license-image]][license-url]
[release-image]:https://img.shields.io/github/release/akb89/embeddix.svg?style=flat-square
[release-url]:https://github.com/akb89/embeddix/... | PypiClean |
/bkp-sync-1.0.1.tar.gz/bkp-sync-1.0.1/bkp_core/ssh_mod.py | """ module to implement shared functions for ssh file systems for the bkp/rstr tool """
import os
import sys
import socket
import traceback
import stat
import time
import math
from bkp_core.file_mod import safe_path
import threading
from io import StringIO
import paramiko
import socket
sftp_safe_path_lock = threading.... | PypiClean |
/CoopIHC-ModelChecks-0.1.1.tar.gz/CoopIHC-ModelChecks-0.1.1/README.md | # CoopIHC Model Checks
> Sanity checks for user modeling with CoopIHC
This work builds on the functionality provided by the [CoopIHC](https://github.com/jgori-ouistiti/CoopIHC) package to add sanity checks for user modeling workflows, specifically for...
- parameter inference,
- parameter recovery,
- model inference... | PypiClean |
/sphinxcontrib_drf-0.1.1.tar.gz/sphinxcontrib_drf-0.1.1/sphinxcontrib_drf/docstrings/classes.py | from rest_framework import serializers
from sphinx.application import Sphinx
def improve_class_docstring(app: Sphinx, cls: type, lines: list[str]):
"""
Improve the documentation of a class if it's a Django model or form
:param app: The Sphinx application object
:type app: ~sphinx.application.Sphinx
... | PypiClean |
/omfit_classes-3.2023.30.2.tar.gz/omfit_classes-3.2023.30.2/omfit_classes/omfit_eped.py | try:
# framework is running
from .startup_choice import *
except ImportError as _excp:
# class is imported by itself
if (
'attempted relative import with no known parent package' in str(_excp)
or 'No module named \'omfit_classes\'' in str(_excp)
or "No module named '__main__.star... | PypiClean |
/hspylib_firebase-0.9.117-py3-none-any.whl/firebase/core/firebase_auth.py | from abc import ABC
from firebase.exception.exceptions import FirebaseAuthenticationError, InvalidFirebaseCredentials
from firebase_admin import auth, credentials
from firebase_admin.auth import UserNotFoundError, UserRecord
from firebase_admin.exceptions import FirebaseError
from hspylib.core.preconditions import chec... | PypiClean |
/smartinspectPython-3.0.17-py3-none-any.whl/smartinspectpython/schedulerqueue.py | from .schedulerqueueitem import SchedulerQueueItem
from .schedulercommand import SchedulerCommand
from .scheduleraction import SchedulerAction
from .packet import Packet
# auto-generate the "__all__" variable with classes decorated with "@export".
from .utils import export
@export
class SchedulerQueue:
"""
M... | PypiClean |
/logconfig-0.4.0.tar.gz/logconfig-0.4.0/README.rst | *********
logconfig
*********
|version| |travis| |coveralls| |license|
Simple helper moudle for configuring Python logging.
Requirements
============
Compatibility
-------------
- Python 2.6
- Python 2.7
- Python 3.2
- Python 3.3
- Python 3.4
Dependencies
------------
- PyYAML
- logutils (if using Python 2)
... | PypiClean |
/tensorflow_macos-2.14.0rc0-cp311-cp311-macosx_12_0_arm64.whl/tensorflow/python/debug/wrappers/local_cli_wrapper.py | """Debugger Wrapper Session Consisting of a Local Curses-based CLI."""
import argparse
import os
import sys
import tempfile
from tensorflow.python.debug.cli import analyzer_cli
from tensorflow.python.debug.cli import cli_config
from tensorflow.python.debug.cli import cli_shared
from tensorflow.python.debug.cli import ... | PypiClean |
/safegate_pro-2021.7.6-py3-none-any.whl/homeassistant/components/unifi/unifi_entity_base.py | import logging
from typing import Any
from homeassistant.core import callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.entity import Entity
from homeassistant.helpers.entity_registry import async_entries_for_device
_LOGGER = logging.getLogger(__name__)
class U... | PypiClean |
/kubeflow_kale-0.7.0-py3-none-any.whl/kale/common/workflowutils.py | from kale.common import k8sutils
ARGO_WORKFLOW_LABEL_KEY = "workflows.argoproj.io/workflow"
ARGO_COMPLETED_LABEL_KEY = "workflows.argoproj.io/completed"
ARGO_PHASE_LABEL_KEY = "workflows.argoproj.io/phase"
ARGO_API_GROUP = "argoproj.io"
ARGO_API_VERSION = "v1alpha1"
ARGO_WORKFLOWS_PLURAL = "workflows"
def find_pod... | PypiClean |
/monk_gluon_cuda101_test-0.0.1-py3-none-any.whl/monk/gluon/models/params.py | from monk.gluon.models.imports import *
from monk.system.imports import *
from monk.gluon.models.models import combined_list_lower
@accepts(str, dict, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def set_model_name(name, system_dict):
'''
Set base model name for transfer learning.
A... | PypiClean |
/python-pptx-fix-0.6.21.2.tar.gz/python-pptx-fix-0.6.21.2/pptx/text/fonts.py | import os
import sys
from struct import calcsize, unpack_from
from ..util import lazyproperty
class FontFiles(object):
"""
A class-based singleton serving as a lazy cache for system font details.
"""
_font_files = None
@classmethod
def find(cls, family_name, is_bold, is_italic):
""... | PypiClean |
/tensorflow_fedora28-1.9.0rc01-cp27-cp27mu-manylinux1_x86_64.whl/tensorflow_fedora28-1.9.0rc0.data/purelib/tensorflow/contrib/fused_conv/ops/gen_fused_conv2d_bias_activation_op.py | import collections as _collections
import six as _six
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
from tensorflow.python.eager import context as _context
from tensorflow.python.eager import core as _core
from tensorflow.python.eager import execute as _execute
from tensorflow.python.framework ... | PypiClean |
/fds.sdk.FundsAPIforDigitalPortals-0.10.0-py3-none-any.whl/fds/sdk/FundsAPIforDigitalPortals/model/inline_response2006_data_properties_fund_macaulay_duration.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.FundsAPIforDigitalPortals.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,... | PypiClean |
/git-deps-1.1.0.zip/git-deps-1.1.0/git_deps/html/node_modules/es-to-primitive/test/es5.js | 'use strict';
var test = require('tape');
var toPrimitive = require('../es5');
var is = require('object-is');
var forEach = require('foreach');
var functionName = require('function.prototype.name');
var debug = require('object-inspect');
var hasSymbols = require('has-symbols')();
test('function properties', function ... | PypiClean |
/hurry.yui-2.7.0.1.tar.gz/hurry.yui-2.7.0.1/src/hurry/yui/yui-build/dom/dom-min.js | (function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var E=YAHOO.util,L=YAHOO.lang,m=YAHOO.env.ua,A=YAHOO.lang.trim,d={},h={},N=/^t(?:able|d|h)$/i,X=/color$/i,K=window.document,W=K.documentElement,e="ownerDocument",n="defaultView",v="documentElement",t="compatMode",b="offsetLeft",P="offsetTop",u="offsetParent",Z=... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/terser-webpack-plugin/node_modules/source-map/lib/util.js | * Copyright 2011 Mozilla Foundation and contributors
* Licensed under the New BSD license. See LICENSE or:
* http://opensource.org/licenses/BSD-3-Clause
*/
/**
* This is a helper function for getting values from parameter/options
* objects.
*
* @param args The object we are extracting values from
* @param nam... | PypiClean |
/num2tex-0.8.tar.gz/num2tex-0.8/README.md | # num2tex
`num2tex` converts a `float` or `int` into a TeX-formatted string. `num2tex` inherits from `str`.
1. [Installation](#installation)
2. [Usage](#usage)
3. [num2tex in Jupyter](#num2tex-in-jupyter)
4. [Future Work](#future-work)
5. [Thanks](#thanks)
## Installation
Install with
```bash
pip install num2tex
`... | PypiClean |
/tripleo-quickstart-extras-2.1.1.tar.gz/tripleo-quickstart-extras-2.1.1/roles/create-reproducer-script/templates/README-reproducer-quickstart.html.j2 | <!DOCTYPE HTML>
<html lang="en-US">
<head>
<title>README for Quickstart Job Reproducer Script</title>
</head>
<body>
<h1>How to reproduce a job result using the reproducer-quickstart.sh script</h1>
<p>Check the top-level logs directory for a file <b>reproducer-quickstart.sh</b>.
Running this file will set up a stack on... | PypiClean |
/maried-0.1.0a1-2-g4bef.tar.gz/maried-0.1.0a1-2-g4bef/src/classic.py | from __future__ import with_statement
from mirte.core import Module
from maried.core import *
from sarah.event import Event
from sarah.socketServer import TCPSocketServer
from sarah.io import *
import os
import time
import socket
import random
import os.path
import MySQLdb
import hashlib
import logging
import weakref... | PypiClean |
/omark-0.2.2.tar.gz/omark-0.2.2/README.md | # OMArk
OMArk is a software of proteome (protein-coding gene repertoire) quality assessment. It provides measure of proteome completeness, characterize all protein coding genes in the light of existing homologs, and identify the presence of contamination from other species.
OMArk rely on the OMA orthology database, fr... | PypiClean |
/jackster-0.5.0.tar.gz/jackster-0.5.0/README.md | <h1 align="center">
<img src="https://raw.githubusercontent.com/Daanvdk/jackster/master/logo_full.png" alt="Jackster"/>
</h1>
[](https://travis-ci.org/Daanvdk/jackster)
[: The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key... | PypiClean |
/neat_python_gicminos-0.96-py3-none-any.whl/neat/reporting.py | from __future__ import division, print_function
import time
from neat.math_util import mean, stdev
class ReporterSet(object):
"""
Keeps track of the set of reporters
and gives methods to dispatch them at appropriate points.
"""
def __init__(self):
self.reporters = []
def add(self, r... | PypiClean |
/pygui_cli-0.0.16.tar.gz/pygui_cli-0.0.16/source/template_cli/source/doc/README-pygui_cli.Tools.md | <!DOCTYPE html>
<html><head>
<title>pygui_cli.Tools</title>
<meta charset="UTF-8">
</head>
<body style="background-color:#FFFFFF;color:#000000">
<h1 style="background-color:#FFFFFF;color:#0000FF">
pygui_cli.Tools</h1>
<p>
一些有用的功能
</p><p>
Some useful functions
</p>
<h3 ... | PypiClean |
/django-public-project-0.7.5.tar.gz/django-public-project-0.7.5/public_project/static/js/tag_cloud-0.5.2.js | var tc_div_id = null;
var tc_document_id = null;
var tc_base_url = null;
var tc_height = null;
function load_tag_cloud(div_id, document_id, content_type, base_url, height) {
tc_div_id = div_id;
tc_document_id = document_id;
tc_content_type = content_type;
tc_base_url = base_url;
tc_height = height;
... | PypiClean |
/django_linux-2.2.8-py3-none-any.whl/django/utils/decorators.py | "Functions that help with dynamically creating decorators for views."
# For backwards compatibility in Django 2.0.
from contextlib import ContextDecorator # noqa
from functools import WRAPPER_ASSIGNMENTS, partial, update_wrapper, wraps
class classonlymethod(classmethod):
def __get__(self, instance, cls=None):
... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/drives/item/list/content_types/item/base/base_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 |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_7/api/authorization_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 AuthorizationApi(object):
def __init__(self, api_client):
self.api_client = api_client
def api_api_version_get_with_http_info(
... | PypiClean |
/neuromeka-clients-0.1.10.tar.gz/neuromeka-clients-0.1.10/neuromeka/indy.py | import sys
import json
import grpc
import math
import time
from .proto.IndygRPCTask_pb2_grpc import GRPCIndyTaskStub
from .proto.IndygRPCTask_pb2 import *
class IndyClient:
def __init__(self, step_ip='127.0.0.1'):
# initialize RPC
self.channel = grpc.insecure_channel('%s:50052'%step_ip)
... | PypiClean |
/python-taiga-1.2.0.tar.gz/python-taiga-1.2.0/HISTORY.rst | .. :changelog:
*********
History
*********
.. towncrier release notes start
1.2.0 (2023-08-23)
==================
Features
--------
- Add list_attachments on WikiPage (#100)
- Add refresh_token API call (#131)
Bugfixes
--------
- Add count to SearchResult object, fix wikipages attribute name in SearchResult obj... | PypiClean |
/uwosh.oie.studyabroadtheme-1.0.6.tar.gz/uwosh.oie.studyabroadtheme-1.0.6/CHANGES.rst | Changelog
=========
1.0.6 (2020-10-20)
------------------
- setuptools and Travis fixes
- py3 fixes
1.0.5 (2019-08-28)
------------------
- format oie.css, add some program search styling.
1.0.4 (2019-07-08)
------------------
- Fix angular undefined, jq undefined, 404 (file path)
[lucid-0]
1.0.3 (2019-02-... | PypiClean |
/abilian_core-0.11.24-py3-none-any.whl/abilian/web/resources/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js | /*
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("a11yhelp","nl",{title:"Toegankelijkheidsinstructies",contents:"Help-inhoud. Druk op ESC om dit dialoog te sluiten.",legend:[{name:"Algemeen",items:[... | PypiClean |
/caph1993-posets-2.1.6.tar.gz/caph1993-posets-2.1.6/cp93posets/posets/endomorphisms.py | from __future__ import annotations
from functools import reduce
from typing import TYPE_CHECKING, Any, Iterable, Optional, Tuple, cast
if TYPE_CHECKING:
from .posets import Poset
from typing import List, Sequence
from ..iterators import product_list
from . import external_methods
from typing import TypeVar
Endom... | PypiClean |
/django-full-directmessages-0.9.17.tar.gz/django-full-directmessages-0.9.17/directmessages/services.py | from __future__ import unicode_literals
from .models import Message
from .signals import message_read, message_sent
from django.core.exceptions import ValidationError
from django.utils import timezone
from django.db.models import Q
class MessagingService(object):
"""
A object to manage all messages and conve... | PypiClean |
/flaightkit-0.4.0.tar.gz/flaightkit-0.4.0/flytekit/common/tasks/task.py | import hashlib as _hashlib
import json as _json
import logging as _logging
import uuid as _uuid
import six as _six
from google.protobuf import json_format as _json_format
from google.protobuf import struct_pb2 as _struct
from flytekit.common import interface as _interfaces
from flytekit.common import nodes as _nodes
... | PypiClean |
/windc_data-0.1.13-py3-none-any.whl/windc_data/loader.py | import os
import pandas as pd
import numpy as np
import pprint
import copy
from windc_data import *
from terminaltables import SingleTable
from textwrap import wrap
class WindcEnvironment:
_versions = {"windc_2_0_1": windc_2_0_1, "windc_2_1": windc_2_1}
_load_options = {
"windc_2_0_1": {
... | PypiClean |
/PyNTA-0.1.4.tar.gz/PyNTA-0.1.4/pynta/model/experiment/nanoparticle_tracking/decorators.py | import warnings
from functools import wraps
from multiprocessing import Process
from threading import Thread
from pynta.model.experiment.nanoparticle_tracking.exceptions import CameraNotInitialized
from pynta.util.log import get_logger
def check_camera(func):
"""Decorator to check whether the camera has been alr... | PypiClean |
/mmpdb-2.1.tar.gz/mmpdb-2.1/mmpdblib/playhouse/apsw_ext.py | from __future__ import absolute_import
"""
Peewee integration with APSW, "another python sqlite wrapper".
Project page: https://code.google.com/p/apsw/
APSW is a really neat library that provides a thin wrapper on top of SQLite's
C interface.
Here are just a few reasons to use APSW, taken from the documentation:
* ... | PypiClean |
/core_people-0.8-py3-none-any.whl/people/migrations/0001_initial.py |
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
('common', '0001_initial'),
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations = [
... | PypiClean |
/wurfl-cloud-1.1.1.tar.gz/wurfl-cloud-1.1.1/wurfl_cloud/cache/interface.py | import json
import time
from wurfl_cloud import update_device
__license__ = """
Copyright (c) 2015 ScientiaMobile Inc.
The WURFL Cloud Client is intended to be used in both open-source and
commercial environments. To allow its use in as many situations as possible,
the WURFL Cloud Client is dual-licensed. You m... | PypiClean |
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/an-xiao-yao/7、【安小妖】恋爱聊天大师:50节精品课:21她说让你等你就真的要等吗?.md | # 7、【安小妖】恋爱聊天大师:50节精品课:21她说让你等你就真的要等吗?
你好,我是你们的老朋友夏洛。,今天来自选的这位同学,他的问题是这样的。,我来给大家读一下他的问题。,他说,夏洛你好,我是一名大学生,现在在只有的高中同学。,我俩现在是一地的,只能喊说嫁来见面。。
高中时候,我追求过他,向他表过白,不过被他拒绝了。,之后,我们就以朋友的方式来相处着。,危险聊天的时候,分位还不错。,经常会翻表情斗图,开开各自的玩笑,聊聊日常生活。,今年1月份的韩家里。
也经常跟女孩一起去玩。,看电影,玩一些VR游戏,在这个过程中,跟他进行制底接触,女生也蛮配合的。,在游乐园的软车上,还楼了女孩的肩膀,他没有立刻躲开,,只是过了一会儿的慢... | PypiClean |
/ipr-3.10.0.tar.gz/ipr-3.10.0/README.md |
# IPR
 [](https://pypi.org/project/ipr) [](https://codecov.io/gh/bcgsc/pori_ipr_python) [:
def __init__(self):
self._access_level = None
self._business_desc = None
self._business_id = None
self._business_name = None
self._business_remark = None
self._business_st... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.