id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/djangocms-accordion-1.0.4.tar.gz/djangocms-accordion-1.0.4/README.rst | djangocms-accordion
==============
An accordion plugin for django CMS. Uses
Installation
------------
This plugin requires `django CMS` 2.4 or higher to be properly installed.
Also, it assumes you have `Cl.Accordion`_ installed in your project.
* In your projects `virtualenv`_, run ``pip install djangocms-accordio... | PypiClean |
/vioneta-2023.7.3.tar.gz/vioneta-2023.7.3/homeassistant/components/screenlogic/services.py |
import logging
from screenlogicpy import ScreenLogicError
import voluptuous as vol
from homeassistant.core import HomeAssistant, ServiceCall, callback
from homeassistant.exceptions import HomeAssistantError
import homeassistant.helpers.config_validation as cv
from homeassistant.helpers.service import async_extract_c... | PypiClean |
/tensorflow_edwin-2.10.1-cp38-cp38-win_amd64.whl/tensorflow/python/ops/gen_sdca_ops.py | import collections
from tensorflow.python import pywrap_tfe as pywrap_tfe
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 import dtypes as _dtypes
from tensorflow.python.f... | PypiClean |
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/home_connect/__init__.py |
from datetime import timedelta
import logging
from requests import HTTPError
import voluptuous as vol
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_CLIENT_ID, CONF_CLIENT_SECRET
from homeassistant.core import HomeAssistant
from homeassistant.helpers import config_entry_oau... | PypiClean |
/envrun_python-0.0.3-py3-none-any.whl/envrun/dotenv/parser.py | import codecs
import re
from typing import (
IO,
Iterator,
Match,
NamedTuple,
Optional,
Pattern, # noqa
Sequence,
Text,
)
from .compat import to_text
def make_regex(string, extra_flags=0):
# type: (str, int) -> Pattern[Text]
return re.compile(to_text(string), re.UNICODE | ext... | PypiClean |
/django-adminfilters-2.2.0.tar.gz/django-adminfilters-2.2.0/src/adminfilters/static/adminfilters/jsonfilter.min.js | var JsonFilterHandler=function(e,options){var self=this;var config=Object.assign({negated:false,can_negate:true,options:"i"},options);var $container=django.jQuery("#"+e);var $button=$container.find("a.button");var $negate=$container.find("input[type=checkbox]").first();var $key=$container.find("input[name=key]").first(... | PypiClean |
/mtworker-0.1.13.tar.gz/mtworker-0.1.13/mtlibs/mtlibs2/mtutils.py | import os
import random
import signal
import socket
import threading
import time
from datetime import datetime
from functools import wraps
from pathlib import Path
# import argparse
from urllib.parse import urlparse
# import netifaces
# import psutil
import requests
def wait_for_tcp(host, port, retries=100, retry_de... | PypiClean |
/nm_transformers_nightly-1.6.0.20230829-py3-none-any.whl/transformers/tokenization_utils_base.py | import copy
import json
import os
import re
import warnings
from collections import OrderedDict, UserDict
from collections.abc import Mapping, Sized
from contextlib import contextmanager
from dataclasses import dataclass, field
from typing import TYPE_CHECKING, Any, Dict, List, NamedTuple, Optional, Sequence, Tuple, Un... | PypiClean |
/nonebot_plugin_stable_diffusion_diao-0.4.4.tar.gz/nonebot_plugin_stable_diffusion_diao-0.4.4/nonebot_plugin_stable_diffusion_diao/utils/data.py | from ..config import config
# 基础优化tag
basetag = "masterpiece,best quality,"
# 基础排除tag
lowQuality = "easynegative,badhandv4,"
# 屏蔽词
# htags = "nsfw|nude|naked|nipple|blood|censored|vagina|gag|gokkun|hairjob|tentacle|oral|fellatio|areolae|lactation|paizuri|piercing|sex|footjob|masturbation|hips|penis|testicles|ejaculat... | PypiClean |
/isotoma.recipe.pound-0.1.13.zip/isotoma.recipe.pound-0.1.13/isotoma/recipe/pound/__init__.py |
import logging
import os
import zc.buildout
from Cheetah.Template import Template
from isotoma.recipe import gocaptain
from util import PackageInstaller
import missingbits
try:
from hashlib import sha1
except ImportError:
import sha
def sha1(str):
return sha.new(str)
def sibpath(filename):
r... | PypiClean |
/jyk_logging-1.0.3-py3-none-any.whl/jyk/logging/core.py | import os
import time
import json
import copy
import threading
import logging
import logging.handlers
from pathlib import Path
from .colors import red, yellow, cyan
from .formatter import JsonFormatter
log = logging.getLogger(__name__)
_tasks = {}
_loggers = {}
LOG_ROOT = os.getcwd()
class FormatterMode(object):
... | PypiClean |
/sagemath-polyhedra-9.5b6.tar.gz/sagemath-polyhedra-9.5b6/sage/categories/filtered_algebras_with_basis.py | r"""
Filtered Algebras With Basis
A filtered algebra with basis over a commutative ring `R`
is a filtered algebra over `R` endowed with the structure
of a filtered module with basis (with the same underlying
filtered-module structure). See
:class:`~sage.categories.filtered_algebras.FilteredAlgebras` and
:class:`~sage.... | PypiClean |
/pysensu-ng-0.13.0.tar.gz/pysensu-ng-0.13.0/pysensu/api.py | import json
import logging
import http
import requests
from requests.auth import HTTPBasicAuth
from . import USER_AGENT
logger = logging.getLogger(__name__)
FORMAT = "%(levelname)s [%(filename)s:%(lineno)s - %(funcName)s() ] %(message)s"
formatter = logging.Formatter(FORMAT)
default_handler = logging.StreamHandler()... | PypiClean |
/binsreg-2.0.2.tar.gz/binsreg-2.0.2/README.md | # BINSREG
Binscatter provides a flexible, yet parsimonious way of visualizing and summarizing large data sets and has been a popular methodology in applied microeconomics and other social sciences. The `binsreg` package provides tools for statistical analysis using the binscatter methods developed in Cattaneo, Crump, ... | PypiClean |
/babish-db-0.0.1.tar.gz/babish-db-0.0.1/ibdb/export.py | import json
import logging
import os
import subprocess
from pathlib import Path
import flask
import ibdb.api
from ibdb import settings
from vendor.pg_dump_splitsort import split_sql_file
IBDB_URL = settings.IBDB_URL
IBDB_SQLFILE = settings.IBDB_SQLFILE
OUTPUT_DIR = settings.OUTPUT_DIR
DB_USERNAME = settings.DB_USER... | PypiClean |
/arctic_aarch64-1.80.1-py3-none-any.whl/arctic/serialization/numpy_arrays.py | import logging
import numpy as np
import numpy.ma as ma
import pandas as pd
from bson import Binary, SON
from .._compression import compress, decompress, compress_array
from ._serializer import Serializer
from collections import defaultdict
try:
from pandas.api.types import infer_dtype
except ImportError:
fro... | PypiClean |
/ipsluna-0.7.tar.gz/ipsluna-0.7/README.md |
>
# IPSLuna
`ipsluna` is not your *just* your *typical* `ips` in, `modified` out Python module. It offers total control over the skeleton of the `ips` file in ways unseen by any other `ips` tool to date.
```python
from ipsluna import *
#it may be recommended for bigger projects to use...
import ipsluna as ips
#or si... | PypiClean |
/pythunder-0.4.0.tar.gz/pythunder-0.4.0/README.rst | Thunder
-------
|PyPI version|
|PyPI - Wheel|
Thunder is a high-performance CGRA placement engine. It is uses
multi-processing to speed up the placement. Users can also use AWS
lambda to enable high parallelism if desired (C++ lambda invocation
coming soon).
Requirement
-----------
- CMake 3.9+
- g++-7/clang-6 or... | PypiClean |
/nltk2-fixed-2.0.6.tar.gz/nltk2-fixed-2.0.6/nltk/tag/senna.py | from os import path, sep
from subprocess import Popen, PIPE
from platform import architecture, system
from nltk.tag.api import TaggerI
_senna_url = 'http://ml.nec-labs.com/senna/'
class Error(Exception):
"""Basic error handling class to be extended by the module specific
exceptions"""
class ExecutableNotF... | PypiClean |
/opencv-python-headless-4.8.0.76.tar.gz/opencv-python-headless-4.8.0.76/opencv/samples/dnn/dnn_model_runner/dnn_conversion/paddlepaddle/README.md | # Run PaddlePaddle model using OpenCV
These two demonstrations show how to inference PaddlePaddle model using OpenCV.
## Environment Setup
```shell
pip install paddlepaddle-gpu
pip install paddlehub
pip install paddle2onnx
```
## 1. Run PaddlePaddle ResNet50 using OpenCV
### Run PaddlePaddle model demo
Run the co... | PypiClean |
/WSGIServlets-1.0.1.tar.gz/WSGIServlets-1.0.1/lib/wsgiservlets/htmlpage.py |
## Copyright 2011 Daniel J. Popowich
##
## Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agree... | PypiClean |
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/syncthru/sensor.py | from __future__ import annotations
from pysyncthru import SyncThru, SyncthruState
from homeassistant.components.sensor import SensorEntity
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import CONF_NAME, PERCENTAGE
from homeassistant.core import HomeAssistant
from homeassistant.helpers.... | PypiClean |
/aifactory_alpha-1.2.8-py3-none-any.whl/aifactory/FileUtilities.py | import os
import shutil
ROOT_DIR = '/mnt/SUBMISSIONS/'
ARCHIVE_DIR = '/mnt/ARCHIVES/'
MAX_SUB_SAVE = 1
EXPECTED_MAXIMUM_SUBMISSION_DIGITS = 4
TASK_DIR_PREFIX = 'TASK_ID'
LAP_DIR_PREFIX = 'LAP'
USER_DIR_PREFIX = 'USER_ID'
SUBMISSION_DIR_PREFIX = 'SUB'
SCRIPT_DIR_PREFIX = 'SCRIPT'
GTANSWER_DIR_PREFIX = 'GTANSWER'
BEST... | PypiClean |
/yandexcloud-0.229.0-py3-none-any.whl/yandex/cloud/mdb/mongodb/v1/resource_preset_service_pb2_grpc.py | """Client and server classes corresponding to protobuf-defined services."""
import grpc
from yandex.cloud.mdb.mongodb.v1 import resource_preset_pb2 as yandex_dot_cloud_dot_mdb_dot_mongodb_dot_v1_dot_resource__preset__pb2
from yandex.cloud.mdb.mongodb.v1 import resource_preset_service_pb2 as yandex_dot_cloud_dot_mdb_do... | PypiClean |
/SimpleTrans-0.2.5.tar.gz/SimpleTrans-0.2.5/src/simpletrans/radiative_transfer.py | import os.path
import sqlite3
from typing import Tuple
import simpletrans.plank
from simpletrans import isa
import numpy as np
import pandas as pd
from numpy.typing import ArrayLike
from simpletrans.plank import plank_nu
from tqdm import tqdm
from simpletrans.database_interaction import default_db
# %
def fetch_od... | PypiClean |
/pykg-manager-0.1.2.tar.gz/pykg-manager-0.1.2/pykg/classified_url.py | from __future__ import annotations
from dataclasses import dataclass
from pathlib import Path
from urllib.parse import urlparse
from pykg.component import Commented
from .data_reflection import reflect, reflect_union
from .utils import to_posix, to_valid_identifier
import typing
import os
if typing.TYPE_CHECKING:
... | PypiClean |
/insights-core-3.2.14.tar.gz/insights-core-3.2.14/insights/contrib/ElementPath.py |
# Licensed to PSF under a Contributor Agreement.
# See http://www.python.org/psf/license for licensing details.
##
# Implementation module for XPath support. There's usually no reason
# to import this module directly; the <b>ElementTree</b> does this for
# you, if needed.
##
import re
xpath_tokenizer_re = re.compi... | PypiClean |
/ntropy_sdk-4.21.0.tar.gz/ntropy_sdk-4.21.0/README.md | # Ntropy SDK
This repository hosts the SDK for the Ntropy API. To use the Ntropy API you require an API key which can be requested at [ntropy.com](https://ntropy.com).
The Ntropy API provides transaction enrichment and categorization, account ledger, metrics and custom model training. The full documentation is avail... | PypiClean |
/fairness-cscheid-0.1.7.tar.gz/fairness-cscheid-0.1.7/fairness/algorithms/kamishima/kamfadm-2012ecmlpkdd/data/adult_arff.py | #==============================================================================
# Module metadata variables
#==============================================================================
__author__ = "Toshihiro Kamishima ( http://www.kamishima.net/ )"
__date__ = "2011/02/04"
__version__ = "1.0.0"
__copyright__ = "Cop... | PypiClean |
/fds.sdk.RecommendationListAPIforDigitalPortals-0.10.2-py3-none-any.whl/fds/sdk/RecommendationListAPIforDigitalPortals/model/inline_response2005_data.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.RecommendationListAPIforDigitalPortals.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
... | PypiClean |
/mympingpong-0.8.1.tar.gz/mympingpong-0.8.1/external_dist_only/shared_setup_dist_only.py | from __future__ import print_function
import sys
if sys.version_info < (3, 0):
import __builtin__
else:
import builtins as __builtin__ # make builtins accessible via same way as in Python 3
import glob
import hashlib
import inspect
import json
import os
import shutil
import re
import setuptools
import setup... | PypiClean |
/mali-0.11000.9133.tar.gz/mali-0.11000.9133/mali_commands/utilities/default_params.py | import click
import os
import json
import logging
from .os_utils import mkdir_recursive
def _config_folder_path():
return os.path.join(os.path.expanduser('~'), '.MissingLinkAI')
def _defaults_path():
return os.path.join(_config_folder_path(), 'defaults.json')
def get_defaults():
if os.path.isfile(_def... | PypiClean |
/simpleflow-0.32.2.tar.gz/simpleflow-0.32.2/docs/src/features/settings.md | Settings
========
Simpleflow comes with a `simpleflow.settings` module which aims at configuring
generic parameters not tied to a specific simpleflow command.
Parameters can be specified:
- via an environment variable (higher precedence)
- via a python config module, specified by `SIMPLEFLOW_SETTINGS_MODULE`
- via d... | PypiClean |
/python-appengine-1.9.15.tar.gz/python-appengine-1.9.15/google/appengine/tools/devappserver2/endpoints/util.py | import json
def send_wsgi_not_found_response(start_response, cors_handler=None):
return send_wsgi_response('404', [('Content-Type', 'text/plain')],
'Not Found', start_response,
cors_handler=cors_handler)
def send_wsgi_error_response(message, start_response, ... | PypiClean |
/apache-airflow-backport-providers-amazon-2021.3.3.tar.gz/apache-airflow-backport-providers-amazon-2021.3.3/airflow/providers/amazon/aws/hooks/cloud_formation.py |
"""This module contains AWS CloudFormation Hook"""
from typing import Optional, Union
from boto3 import client, resource
from botocore.exceptions import ClientError
from airflow.providers.amazon.aws.hooks.base_aws import AwsBaseHook
class AWSCloudFormationHook(AwsBaseHook):
"""
Interact with AWS CloudForma... | PypiClean |
/hexutil-0.2.2.tar.gz/hexutil-0.2.2/README.md | # hexutil
Classes and functions to deal with hexagonal grids.

## Introduction
This module provides the following functionality.
1. Manipulation of grid coordinates in a hexagonal grid.
2. Converting between hexagonal grid coordinates and screen coordinates.
3. Field-o... | PypiClean |
/wasp-launcher-0.0.2.tar.gz/wasp-launcher-0.0.2/wasp_launcher/static/angular/1.6.1/i18n/angular-locale_en-ch.js | 'use strict';
angular.module("ngLocale", [], ["$provide", function($provide) {
var PLURAL_CATEGORY = {ZERO: "zero", ONE: "one", TWO: "two", FEW: "few", MANY: "many", OTHER: "other"};
function getDecimals(n) {
n = n + '';
var i = n.indexOf('.');
return (i == -1) ? 0 : n.length - i - 1;
}
function getVF(n, opt_pre... | PypiClean |
/askbot-tuanpa-0.7.48.zip/askbot-tuanpa-0.7.48/askbot/media/js/tinymce/plugins/table/editor_plugin_src.js | (function(tinymce) {
var each = tinymce.each;
// Checks if the selection/caret is at the start of the specified block element
function isAtStart(rng, par) {
var doc = par.ownerDocument, rng2 = doc.createRange(), elm;
rng2.setStartBefore(par);
rng2.setEnd(rng.endContainer, rng.endOffset);
elm = doc.createE... | PypiClean |
/dxl-learn-0.2.1.tar.gz/dxl-learn-0.2.1/src/python/dxl/learn/core/info.py | import tensorflow as tf
from contextlib import contextmanager
from pathlib import Path
import pathlib
import json
class GraphInfo:
def __init__(self, name=None, variable_scope=None, reuse=None):
if name is not None:
self.name = Path(name)
else:
self.name = name
if i... | PypiClean |
/monk_gluon_cuda102_test-0.0.1.tar.gz/monk_gluon_cuda102_test-0.0.1/monk/pytorch/models/return_model.py | from monk.pytorch.models.imports import *
from monk.system.imports import *
from monk.pytorch.models.models import *
from monk.pytorch.models.common import create_final_layer
from monk.pytorch.models.common import get_layer_uid
from monk.pytorch.models.layers import custom_model_get_layer
from monk.pytorch.models.layer... | PypiClean |
/taxii_services-0.4.tar.gz/taxii_services-0.4/taxii_services/management.py |
from .models import MessageHandler, QueryHandler
from django.core.exceptions import AppRegistryNotReady
from django.db.models.signals import post_syncdb
from django.db.utils import DatabaseError
query_handlers_to_retry = []
message_handlers_to_retry = []
def register_message_handler(message_handler, name=None, ret... | PypiClean |
/recommender-engine-0.3.0.tar.gz/recommender-engine-0.3.0/recommender_engine/recommender.py | from __future__ import print_function, division
import sys
from .similar_item import find_similar_item
__author__ = "Tran Ly Vu (vutransingapore@gmail.com)"
__copyright__ = "Copyright (c) 2016 - 2019 Tran Ly Vu. All Rights Reserved."
__license__ = "Apache License 2.0"
__credits__ = ["Tran Ly Vu"]
__maintainer__ = "Tra... | PypiClean |
/sevenbridges-cwl-draft2-upgrader-0.4.0.tar.gz/sevenbridges-cwl-draft2-upgrader-0.4.0/sbg_cwl_upgrader/converter/tool.py | import re
from copy import deepcopy
from sbg_cwl_upgrader.cwl_utils import CWL, DEFAULT_CWL_VERSION
import os
import sbg_cwl_upgrader
from termcolor import colored
EXPRESSION_LIB = os.path.join(
os.path.abspath(os.path.dirname(sbg_cwl_upgrader.__file__)),
'resources/expression_lib.js')
class InputRecordField... | PypiClean |
/bigcode-fetcher-0.1.2.tar.gz/bigcode-fetcher-0.1.2/README.md | # bigcode-fetcher
A utility to search and fetch code from GitHub.
This tool was build to easily create datasets for repository analysis.
The tool works in two phases, `search` finds repositories using the GitHub API,
and saves the result in a JSON file. `download` fetch all the repositories
inside the JSON file.
## ... | PypiClean |
/cattrs_extras-0.2.0-py3-none-any.whl/cattrs_extras/converter.py | import collections
import sys
from contextlib import suppress
from datetime import date
from datetime import datetime
from datetime import timedelta
from datetime import timezone
from decimal import Decimal
from enum import Enum
from typing import Any
from typing import Callable
from typing import Mapping
from typing i... | PypiClean |
/python-automationclient-1.2.1.tar.gz/python-automationclient-1.2.1/docs/source/Global_Properties.rst | Global Properties
=================
What are Global Properties?
---------------------------
A global property is a global variable that is stored in **Automation** and can be referenced by zone or architecture properties. The contents of a global property can vary, but they often include sensitive information (such a... | PypiClean |
/rpyc-op-3.2.1-openproximity.tar.gz/rpyc-op-3.2.1-openproximity/site/tutorial/tut2.rst | .. _tut2:
Part 2: Code Samples
====================
In this part, we'll dive deeper into the classic mode by analyzing some more code samples.
Setup
-----
Creating a connection and accessing modules ::
>>> import rpyc
>>> conn = rpyc.classic.connect("localhost")
>>> conn
<rpyc.core.protocol.Protocol... | PypiClean |
/timeflux-0.15.0.tar.gz/timeflux-0.15.0/doc/usage/use_case.rst | A neurofeedback app
===================
Let's apply what we learned and build a simple alpha neurofeedback app.
.. tip::
This use case assumes a little bit of background in EEG processing. If this is not the case for you, focus on the data flow rather than the processing itself, and make sure that you understand... | PypiClean |
/ya_domintell-0.0.12-py3-none-any.whl/domintell/modules/dtemp.py | import domintell
import domintell.messages
DOM_ABSENSE = 1
DOM_AUTO = 2
DOM_COMFORT = 5
DOM_FROST = 6
class DTEM01Module(domintell.Module):
"""
DTEM01 - temperature controll module (1 channels)
"""
COMMAND_CODE = 'TE1'
def __init__(self, serial_number, controller):
domintell.Module._... | PypiClean |
/coursera_autograder-0.1.4-py3-none-any.whl/coursera_autograder/commands/oauth2.py |
# Copyright 2015 Coursera
#
# Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, so... | PypiClean |
/bayeslite-0.1.8.tar.gz/bayeslite-0.1.8/src/compiler.py |
# Copyright (c) 2010-2016, MIT Probabilistic Computing Project
#
# Licensed under the Apache License, Version 2.0 (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.apache.org/licenses/LICENSE-2.0
#
# Unless requi... | PypiClean |
/xpydf-0.1.6.tar.gz/xpydf-0.1.6/src/freetype/README | FreeType 2.13.0
===============
Homepage: https://www.freetype.org
FreeType is a freely available software library to render fonts.
It is written in C, designed to be small, efficient, highly
customizable, and portable while capable of producing high-quality
output (glyph images) of most vector and bi... | PypiClean |
/pyhalo-1.0.0-py3-none-any.whl/pyHalo/Halos/halo_base.py | from abc import ABC, abstractmethod
import numpy as np
from pyHalo.utilities import ITSampling
_log10_rperi_bins = np.array([-2. , -1.885, -1.77 , -1.655, -1.54 , -1.425, -1.31 , -1.195,
-1.08 , -0.965, -0.85 , -0.735, -0.62 , -0.505, -0.39 , -0.275,
-0.16 , -0.045, 0.07 , 0.185])
_log10_prob = np.ar... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/cisco/nxos/plugins/module_utils/network/nxos/config/ntp_global/ntp_global.py |
from __future__ import absolute_import, division, print_function
__metaclass__ = type
"""
The nxos_ntp_global config file.
It is in this file where the current configuration (as dict)
is compared to the provided configuration (as dict) and the command set
necessary to bring the current configuration to its desired ... | PypiClean |
/abch_woke-1.0.0-py3-none-any.whl/woke/ast/ir/meta/import_directive.py | from __future__ import annotations
import logging
import re
from collections import deque
from dataclasses import dataclass
from functools import lru_cache
from pathlib import Path, PurePath
from typing import TYPE_CHECKING, Deque, Iterator, List, Optional, Set, Tuple
from ..expression.identifier import Identifier
fr... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/domain/ZolozAuthenticationCustomerAnonymousfacesearchMatchModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class ZolozAuthenticationCustomerAnonymousfacesearchMatchModel(object):
def __init__(self):
self._antiattack = None
self._areacode = None
self._authimg = None
self._biz_type = None
self._bizscale = None
... | PypiClean |
/hnxwidget-0.1.1b3.tar.gz/hnxwidget-0.1.1b3/README.md | hnx-widget
===============================
A widget for interractive visualization of the hypernetx package.
Installation
------------
To install use pip:
$ pip install hnxwidget
$ jupyter nbextension enable --py --sys-prefix hnxwidget
To install for jupyterlab
$ jupyter labextension install hnxwidget... | PypiClean |
/auto_gptq-0.4.2-cp310-cp310-win_amd64.whl/auto_gptq/modeling/auto.py | from inspect import signature
from typing import Dict, Optional, Union
from ._base import BaseQuantizeConfig, BaseGPTQForCausalLM
from ._utils import check_and_get_model_type
from .bloom import BloomGPTQForCausalLM
from .codegen import CodeGenGPTQForCausalLM
from .gpt_neox import GPTNeoXGPTQForCausalLM
from .gptj impo... | PypiClean |
/trex_stl_lib-0.3-py3-none-any.whl/trex_stl_lib/utils/filters.py |
def shallow_copy(x):
return type(x)(x)
class ToggleFilter(object):
"""
This class provides a "sticky" filter, that works by "toggling" items
of the original database on and off.
"""
def __init__(self, db_ref, show_by_default=True):
"""
Instantiate a ToggleFilter object
... | PypiClean |
/rrtools-1.0.0a2.tar.gz/rrtools-1.0.0a2/RRtoolbox/lib/inspector.py | from __future__ import print_function
from __future__ import absolute_import
from builtins import object
import sys,os
import tempfile
import traceback
import functools
import time
import re
import inspect
from pycallgraph.output import GraphvizOutput
import pycallgraph #PyCallGraph
from pycallgraph.tracer import Async... | PypiClean |
/keycloak-client-0.15.4.tar.gz/keycloak-client-0.15.4/keycloak/keycloak_openid.py |
import json
from jose import jwt
from .authorization import Authorization
from .connection import ConnectionManager
from .exceptions import raise_error_from_response, KeycloakGetError, \
KeycloakRPTNotFound, KeycloakAuthorizationConfigError, KeycloakInvalidTokenError
from .urls_patterns import (
URL_AUTH,
... | PypiClean |
/Pyrography-1.0.2-py3-none-any.whl/pyrography/methods/messages/edit_message_text.py | from typing import Union, List, Optional
import pyrography
from pyrography import raw, enums
from pyrography import types
from pyrography import utils
class EditMessageText:
async def edit_message_text(
self: "pyrography.Client",
chat_id: Union[int, str],
message_id: int,
text: st... | PypiClean |
/tw.dojo-0.9.181.tar.gz/tw.dojo-0.9.181/tw/dojo/static/1.8.1/min/dojox/editor/plugins/nls/zh-tw/latinEntities.js.uncompressed.js | define(
"dojox/editor/plugins/nls/zh-tw/latinEntities", ({
/* These are already handled in the default RTE
amp:"ampersand",lt:"less-than sign",
gt:"greater-than sign",
nbsp:"no-break space\nnon-breaking space",
quot:"quote",
*/
iexcl:"倒感歎號",
cent:"英分",
pound:"英鎊",
curren:"貨幣符號",
yen:"日圓符號\n人民幣符號",
brvba... | PypiClean |
/myclustering-0.1.0.tar.gz/myclustering-0.1.0/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 |
/ifnude-0.0.3.tar.gz/ifnude-0.0.3/LICENSE.md | MIT License
Copyright (c) 2022 notAI.tech
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, distri... | PypiClean |
/apache-airflow-zack-1.10.15.9.tar.gz/apache-airflow-zack-1.10.15.9/airflow/contrib/hooks/gcp_spanner_hook.py | from google.api_core.exceptions import GoogleAPICallError, AlreadyExists
from google.cloud.spanner_v1.client import Client
from google.longrunning.operations_grpc_pb2 import Operation # noqa: F401
from airflow import AirflowException
from airflow.contrib.hooks.gcp_api_base_hook import GoogleCloudBaseHook
class Clou... | PypiClean |
/neighbours-python-1.0.1.tar.gz/neighbours-python-1.0.1/src/nearpy/filters/vectorfilter.py |
# Copyright (c) 2013 Ole Krause-Sparmann
# 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,... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/AlipayUserAgreementUnsignModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayUserAgreementUnsignModel(object):
def __init__(self):
self._agreement_no = None
self._alipay_logon_id = None
self._alipay_open_id = None
self._alipay_user_id = None
self._extend_params = None
... | PypiClean |
/lightdash_client_python-0.753.0-py3-none-any.whl/lightdash_client/models/dbt_none_project_config.py | from typing import TYPE_CHECKING, Any, Dict, List, Type, TypeVar, Union
import attr
from ..models.dbt_none_project_config_type import DbtNoneProjectConfigType
from ..types import UNSET, Unset
if TYPE_CHECKING:
from ..models.dbt_none_project_config_environment_item import (
DbtNoneProjectConfigEnvironment... | PypiClean |
/pygraphviz-1.11rc1.zip/pygraphviz-1.11rc1/doc/source/reference/credits.rst | Credits
=======
Thanks to Stephen North and the AT&T Graphviz team for creating
and maintaining the Graphviz graph layout and drawing packages
Thanks to Manos Renieris for the original idea.
Thanks to the following people who have made contributions:
- Cyril Brulebois helped clean up the packaging for Debian and f... | PypiClean |
/django_adminx-2.0.3-py3-none-any.whl/xadmin/plugins/auth.py | from django import forms
from django.contrib.auth.forms import (UserCreationForm, UserChangeForm,
AdminPasswordChangeForm, PasswordChangeForm)
from django.contrib.auth.models import Group, Permission
from django.core.exceptions import PermissionDenied
from django.conf import setti... | PypiClean |
/lsst_pipe_base-26.0.0a20230200-py3-none-any.whl/lsst/pipe/base/executionButlerBuilder.py | from __future__ import annotations
__all__ = ("buildExecutionButler",)
import io
import itertools
from collections import defaultdict
from typing import Callable, DefaultDict, Iterable, List, Mapping, Optional, Set, Tuple, Union
from lsst.daf.butler import Butler, Config, DataCoordinate, DatasetRef, DatasetType
from... | PypiClean |
/concrete-4.18.2.tar.gz/concrete-4.18.2/scripts/wait-concrete-service.py |
from __future__ import print_function
from __future__ import unicode_literals
from time import sleep, time
import argparse
import logging
import sys
import concrete.version
import concrete.util
from concrete.util import set_stdout_encoding
def main():
set_stdout_encoding()
parser = argparse.ArgumentParser... | PypiClean |
/spotify-ws-0.0.7.tar.gz/spotify-ws-0.0.7/README.md | # Spotify Web Sockets
## Description
The main purpose of this project is to let the users interact with
spotify web socket events. Right now the project is still in an alpha version therefore is not complete and may have some bugs.
Feel free to contribute is any way.
_DISCLAIMER:_
This library only works with a vali... | PypiClean |
/highcharts_core-1.3.7.tar.gz/highcharts_core-1.3.7/docs/api/options/plot_options/pictorial.rst | ##########################################################################################
:mod:`.pictorial <highcharts_core.options.plot_options.pictorial>`
##########################################################################################
.. contents:: Module Contents
:local:
:depth: 3
:backlinks: entr... | PypiClean |
/sporco-cuda-0.0.5.tar.gz/sporco-cuda-0.0.5/examples/cmp_cbpdngrdmsk.py | from __future__ import print_function
from builtins import input
from builtins import range
import numpy as np
from sporco import util
from sporco import plot
from sporco.admm import cbpdn
import sporco.metric as sm
import sporco_cuda.cbpdn as cucbpdn
# Load demo image
img = util.ExampleImages().image('barbara.png... | PypiClean |
/django_bootstrap3-23.4-py3-none-any.whl/bootstrap3/forms.py | from django.contrib.admin.widgets import AdminFileWidget
from django.forms import (
CheckboxSelectMultiple,
EmailInput,
FileInput,
HiddenInput,
NumberInput,
PasswordInput,
Textarea,
TextInput,
URLInput,
)
from django.forms.widgets import CheckboxInput
from django.utils.safestring imp... | PypiClean |
/validations-libs-1.9.0.tar.gz/validations-libs-1.9.0/validations_libs/callback_plugins/vf_validation_json.py | __metaclass__ = type
import datetime
import json
import time
import os
from functools import partial
from functools import reduce
from ansible.parsing.ajson import AnsibleJSONEncoder
from ansible.plugins.callback import CallbackBase
DOCUMENTATION = '''
callback: json
short_description: Log Ansible results o... | PypiClean |
/gears-babel-0.1.tar.gz/gears-babel-0.1/gears_babel/node_modules/babel/node_modules/regenerator-babel/node_modules/commoner/node_modules/mkdirp/index.js | var path = require('path');
var fs = require('fs');
module.exports = mkdirP.mkdirp = mkdirP.mkdirP = mkdirP;
function mkdirP (p, opts, f, made) {
if (typeof opts === 'function') {
f = opts;
opts = {};
}
else if (!opts || typeof opts !== 'object') {
opts = { mode: opts };
}
... | PypiClean |
/fnapy-1.4.1.tar.gz/fnapy-1.4.1/docs/quickstart.rst | .. _quickstart:
Quickstart
==========
This page gives a good introduction in how to get started with fnapy.
Before starting, make sure you have your credentials to connect to the FNAC
API.
* Create a connection to the FNAC Marketplace API with your credentials::
>>> from fnapy.fnapy_manager import FnapyManage... | PypiClean |
/google-auth-2.22.0.tar.gz/google-auth-2.22.0/google/oauth2/_credentials_async.py | from google.auth import _credentials_async as credentials
from google.auth import _helpers
from google.auth import exceptions
from google.oauth2 import _reauth_async as reauth
from google.oauth2 import credentials as oauth2_credentials
class Credentials(oauth2_credentials.Credentials):
"""Credentials using OAuth ... | PypiClean |
/diskimage_builder-3.31.0-py3-none-any.whl/diskimage_builder/element_dependencies.py |
from __future__ import print_function
import argparse
import collections
import errno
import logging
import os
import sys
import yaml
import diskimage_builder.logging_config
logger = logging.getLogger(__name__)
class MissingElementException(Exception):
pass
class AlreadyProvidedException(Exception):
pass... | PypiClean |
/polybar_online-1.0.0-py3-none-any.whl/polybar_online/status_printer/status_printer.py |
from .flush_print import flush_print
from .notify import notify
class StatusPrinter:
def __init__(
self,
online_str: str,
offline_str: str,
online_notification: str,
offline_notification: str,
) -> None:
"""
The __init__ function is called when an insta... | PypiClean |
/robot-tesults-1.2.0.tar.gz/robot-tesults-1.2.0/TesultsListener.py | import os.path
import sys
import tempfile
import configparser
import tesults
import robot.libraries.DateTime
import xml.etree.ElementTree as ET
class TesultsListener:
ROBOT_LISTENER_API_VERSION = 2
data = {
'target': 'token',
'results': { 'cases': [] }
}
target = None
config = None
fi... | PypiClean |
/texttoneenc-1.3.tar.gz/texttoneenc-1.3/restwin/voiceroid.py | import argparse
import requests
import json
import time
'''
def main():
parser = argparse.ArgumentParser()
#parser.add_argument('--name', choices=['intext'], default='名前は?')
parser.add_argument('arg1', help='InputText')
args = parser.parse_args()
intext = args.arg1
intext = str(intext)
... | PypiClean |
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/pb_py/hero_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()
DESCRIPTOR = _descrip... | PypiClean |
/newrelic_plugins_agent-1.3.4.tar.gz/newrelic_plugins_agent-1.3.4/newrelic_plugins_agent/agent.py | import helper
import importlib
import json
import logging
import os
import requests
import socket
import sys
import Queue as queue
import threading
import time
from newrelic_plugins_agent import __version__
from newrelic_plugins_agent import plugins
LOGGER = logging.getLogger(__name__)
class NewRelicPluginAgent(hel... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_21/models/offload_get_response.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_21 import models
class OffloadGetResponse(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the valu... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/request/AlipayBossBaseProcessInstanceCreateRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayBossBaseProcessInstanceCreateModel import AlipayBossBaseProcessInstanceCreateModel
class AlipayBossBaseProcessInstanceCreateRequest(object):
def __init__(self, biz_mod... | PypiClean |
/bpforms-0.0.16.tar.gz/bpforms-0.0.16/README.md | [](https://pypi.python.org/pypi/bpforms)
[](https://docs.karrlab.org/bpforms)
[](https://circleci.com/gh/Karr... | PypiClean |
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/eslint/lib/rules/no-unexpected-multiline.js | "use strict";
//------------------------------------------------------------------------------
// Requirements
//------------------------------------------------------------------------------
const astUtils = require("../ast-utils");
//------------------------------------------------------------------------------
//... | PypiClean |
/rllte_core-0.0.1b1.tar.gz/rllte_core-0.0.1b1/rllte/env/dmc/natural_imgsource.py | import random
import cv2
import numpy as np
import skvideo.io
import tqdm
class BackgroundMatting:
"""
Produce a mask by masking the given color. This is a simple strategy
but effective for many games.
"""
def __init__(self, color):
"""
Args:
color: a (r, g, b) tuple ... | PypiClean |
/electionguard-1.4.0-py3-none-any.whl/electionguard_cli/e2e/e2e_command.py | from io import TextIOWrapper
import click
from ..cli_steps import (
DecryptStep,
PrintResultsStep,
TallyStep,
KeyCeremonyStep,
EncryptVotesStep,
)
from .e2e_input_retrieval_step import E2eInputRetrievalStep
from .submit_votes_step import SubmitVotesStep
from .e2e_publish_step import E2ePublishStep... | PypiClean |
/django_translations_version_4-1.0-py3-none-any.whl/translations/languages.py |
from django.utils.translation import get_language
from django.conf import settings
__docformat__ = 'restructuredtext'
_supported_code = {}
_all_codes = None
_all_choices = None
_translation_codes = {}
_translation_choices = {}
def _get_supported_language(lang):
"""Return the `supported language` code of a ... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/hdinsight/v20150301preview/cluster.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
from ._enums import *
from ._inputs import *
__all__ = ['Cluster']
class Cluster(pulumi.CustomResource):
def __init__(__self__,
... | PypiClean |
/ssv1-0.0.1.tar.gz/ssv1-0.0.1/src/ssv/obscore/gama.py | from astropy.time import Time, TimeDelta
from specutils import SpectrumList, Spectrum1D
from specutils.io.registers import data_loader
from ..loaders import FITS_FILE_EXTS, no_auto_identify
from .common import get_times
def gama_sdss_time_to_mjd(sdss_time):
"""
SDSS stores time in seconds since 0 MJD using ... | PypiClean |
/djbs-0.1.4.tar.gz/djbs-0.1.4/django/contrib/contenttypes/management/__init__.py | from django.apps import apps as global_apps
from django.db import DEFAULT_DB_ALIAS, IntegrityError, migrations, router, transaction
class RenameContentType(migrations.RunPython):
def __init__(self, app_label, old_model, new_model):
self.app_label = app_label
self.old_model = old_model
self... | PypiClean |
/disentanglement_lib-1.5.tar.gz/disentanglement_lib-1.5/disentanglement_lib/evaluation/abstract_reasoning/pgm_data.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from disentanglement_lib.data.ground_truth import dsprites
from disentanglement_lib.data.ground_truth import dummy_data
from disentanglement_lib.data.ground_truth import ground_truth_data as gtd
from disentangle... | PypiClean |
/waveformtools-2023.8.22.tar.gz/waveformtools-2023.8.22/public/searchindex.js | Search.setIndex({"docnames": ["README", "_autosummary/waveformtools", "_autosummary/waveformtools.BMS", "_autosummary/waveformtools.CoM", "_autosummary/waveformtools.compare", "_autosummary/waveformtools.dataIO", "_autosummary/waveformtools.diagnostics", "_autosummary/waveformtools.differentiate", "_autosummary/wavefor... | PypiClean |
/mystic-0.4.1.tar.gz/mystic-0.4.1/examples/example10.py | # Differential Evolution solver
from mystic.solvers import DifferentialEvolutionSolver2
# Chebyshev polynomial and cost function
from mystic.models.poly import chebyshev8, chebyshev8cost
from mystic.models.poly import chebyshev8coeffs
# tools
from mystic.termination import VTR
from mystic.strategy import Best1Exp
fro... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.