id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/shopify-api-0.7.1.tar.gz/shopify-api-0.7.1/src/shopify/smart_collection.py |
# Hive Shopify API
# Copyright (c) 2008-2020 Hive Solutions Lda.
#
# This file is part of Hive Shopify API.
#
# Hive Shopify API is free software: you can redistribute it and/or modify
# it under the terms of the Apache License as published by the Apache
# Foundation, either version 2.0 of the License, or (at your opt... | PypiClean |
/tc-messageBroker-1.5.1.tar.gz/tc-messageBroker-1.5.1/README.md | # tc-messageBrokerPython
[](https://codeclimate.com/github/RnDAO/tc-messageBrokerPython/maintainability)
[](https://codeclimate.com/git... | PypiClean |
/data_engineering_pulumi_components-0.4.1-py3-none-any.whl/data_engineering_pulumi_components/aws/buckets/pulumi_backend_bucket.py | from typing import Optional
from data_engineering_pulumi_components.aws.buckets.bucket import Bucket
from data_engineering_pulumi_components.utils import Tagger
from pulumi import ResourceOptions
from pulumi_aws.s3 import (
BucketLifecycleRuleArgs,
BucketLifecycleRuleExpirationArgs,
BucketLifecycleRuleNonc... | PypiClean |
/edfi_canvas_extractor-2.0.0.tar.gz/edfi_canvas_extractor-2.0.0/edfi_canvas_extractor/mapping/section_associations.py |
from pandas import DataFrame
from edfi_canvas_extractor.mapping.constants import SOURCE_SYSTEM
from edfi_canvas_extractor.mapping.helpers import convert_to_standard_date_time_string
def _get_enrollment_status(status: str) -> str:
if status == "active":
return "Active"
if status == "invited":
... | PypiClean |
/phreeqpy-0.4.0.tar.gz/phreeqpy-0.4.0/README.rst | PhreeqPy: Python Tools for PHREEQC
==================================
PhreeqPy provides Python tools to work with PHREEQC_.
Currently it provides access to the new IPhreeqc_ interface without the need to
run a COM server and therefore also works on non-Windows systems.
IPhreeqc is described in more detail in this pub... | PypiClean |
/aimedic_utils_package-0.1.0.tar.gz/aimedic_utils_package-0.1.0/src/evaluation_metrics/classification/confusion_matrix.py | from cProfile import run
import itertools
import matplotlib.pyplot as plt
import matplotlib
import mlflow
import numpy as np
import tempfile
import uuid
from loguru import logger
from sklearn.metrics import confusion_matrix
from sys import prefix
from ...utils.make_binary_pred import BinaryPrediction
from ...utils.cre... | PypiClean |
/aifs_nni-1.9.5-py3-none-manylinux1_x86_64.whl/aifs_nni-1.9.5.data/data/nni/node_modules/http-errors/index.js | 'use strict'
/**
* Module dependencies.
* @private
*/
var deprecate = require('depd')('http-errors')
var setPrototypeOf = require('setprototypeof')
var statuses = require('statuses')
var inherits = require('inherits')
var toIdentifier = require('toidentifier')
/**
* Module exports.
* @public
*/
module.exports... | PypiClean |
/dorthrithil-networkx-1.11.tar.gz/dorthrithil-networkx-1.11/networkx/algorithms/components/strongly_connected.py | """Strongly connected components.
"""
# Copyright (C) 2004-2015 by
# Aric Hagberg <hagberg@lanl.gov>
# Dan Schult <dschult@colgate.edu>
# Pieter Swart <swart@lanl.gov>
# All rights reserved.
# BSD license.
import networkx as nx
from networkx.utils.decorators import not_implemented_for
__authors__ = "... | PypiClean |
/fsm_strip_length_damage_analysis-1.0.1.tar.gz/fsm_strip_length_damage_analysis-1.0.1/README.rst | About
=====
Console app and Python API for strip length-dependent damage analysis and
visualization of the parametric model of buckling and free vibration in
prismatic shell structures, as computed by the `fsm_eigenvalue project`_.
This work is a part of the investigation within the research project
[ON174027]_, supp... | PypiClean |
/bpy_optix-2.82-cp37-cp37m-win_amd64.whl/bpy_optix-2.82.data/scripts/2.82/scripts/addons/object_carver/carver_draw.py | import bpy
import bgl
import blf
import bpy_extras
import numpy as np
import gpu
from gpu_extras.batch import batch_for_shader
from math import(
cos,
sin,
ceil,
floor,
)
from bpy_extras.view3d_utils import (
region_2d_to_location_3d,
location_3d_to_region_2d,
)
from .carver_utils import (
draw_circle,
draw_s... | PypiClean |
/htmd-pdb2pqr-0.0.2.tar.gz/htmd-pdb2pqr-0.0.2/pdb2pqr/AppService_services.py |
from AppService_services_types import *
from AppService_services_types import \
nbcr_sdsc_edu_opal_types as ns1
import urlparse, types
from ZSI.TCcompound import Struct
from ZSI import client
import ZSI
class AppServiceInterface:
def getAppServicePortType(self, portAddress=None, **kw):
raise NonImple... | PypiClean |
/Caroline-presentation-0.2.4.tar.gz/Caroline-presentation-0.2.4/caroline/html_dist/js/nbv.js |
//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, distribute, sublicense, and/or sell copies of t... | PypiClean |
/ui/plugins/moment/locale/nl.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/RPI_FeatureSelection_tools-1.0.0.tar.gz/RPI_FeatureSelection_tools-1.0.0/RPI_FeatureSelection_tools/base.py |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from six import with_metaclass as _py_backwards_six_withmetaclass
import abc
from typing import *
import random
__all__ = (u'Input', u'Output', u'Params', u'PrimitiveBase... | PypiClean |
/ansible-kkvesper-2.3.2.0.tar.gz/ansible-kkvesper-2.3.2.0/lib/ansible/plugins/terminal/eos.py | from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
import re
import json
from ansible.plugins.terminal import TerminalBase
from ansible.errors import AnsibleConnectionFailure
class TerminalModule(TerminalBase):
terminal_stdout_re = [
re.compile(r"[\r\n]?[\w+\-\.:\/\... | PypiClean |
/sine.alarmclock-1.0.6.tar.gz/sine.alarmclock-1.0.6/README.md | # 闹钟
* Python制作的windows命令行闹钟,指令简单,带倒计时模式,可精确到秒。
* 可设置一次性闹钟、按星期重复的闹钟、按掉后一段时间(周期)再响的闹钟。
* 可自定义beep音频或使用本地铃声。
* 任务栏闪烁提醒、系统消息提醒(以下均得到pypiwin32模块支持)。
* 托盘图标:提供闪烁提醒、左键隐藏窗口、右键菜单、悬浮显示状态文字。
*v0.7.1开始放弃兼容 python2 ,改为 python3.6+*
*建议从PyPI安装*
## 从PyPI安装
`pip install sine.alarmclock`
## 运行
选择一个工作目录,命令行执行:
`python -m sine.ala... | PypiClean |
/unwrap_labels-1.1.3.tar.gz/unwrap_labels-1.1.3/README.md | # Unwrap Labels
##
The algorithm to unwrap labels using edge markers
## How it works
A wine label, being stick to a cylinder surface, is distorted, which reduces quality of at least two
operations with it:
* Image matching (product search by a picture)
* Recognition of the text on the label
The accuracy of those ... | PypiClean |
/twoserializer-2.0.4.tar.gz/twoserializer-2.0.4/lab3/SerializerYaml.py | import types
import inspect
import lab3.DeserializerJson
from lab3.constants import NULL, TRUE, FALSE, QUOTATION_MARK, EXTRA_ATTRIBUTE_CLASS_CODE
def serialize(obj):
'''if obj is None:
return NULL
elif obj is True:
return TRUE
elif obj is False:
return FALSE
elif isinstance(... | PypiClean |
/dopysl-0.0.3.tar.gz/dopysl-0.0.3/README.md | # Digital Ocean PYthon wrapper that Sucks Less
Inspired by https://github.com/ahmontero/dop and https://github.com/devo-ps/dopy
## Installation
```
pip install dopysl
```
## Getting Started
Credentials for DigitalOcean API should be passed in environment variables.
There is API v1 and v2.
If you want to use APIv2... | PypiClean |
/Paste-3.5.3.tar.gz/Paste-3.5.3/paste/httpserver.py | # @@: add in protection against HTTP/1.0 clients who claim to
# be 1.1 but do not send a Content-Length
# @@: add support for chunked encoding, this is not a 1.1 server
# till this is completed.
from __future__ import print_function
import atexit
import traceback
import io
import socket, sys, threading
import... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/models/verified_domain.py | from __future__ import annotations
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, Union
class VerifiedDomain(AdditionalDataHolder, Parsable):
@property
def additional_data(self,) -> Dict[str, An... | PypiClean |
/koala-serializer-0.8.0.tar.gz/koala-serializer-0.8.0/koala_serializer/code_generators/cs_core.py |
# python imports
import warnings
# project imports
from ..parser_core import Tokens
class RootGenerator:
def __init__(self, code_editor):
self._code_editor = code_editor
def gen_root(self):
code_editor = self._code_editor
self._gen_imports()
code_editor.add_line()
... | PypiClean |
/lantz-drivers-0.5.2.tar.gz/lantz-drivers-0.5.2/lantz/drivers/legacy/textual.py | import time
from lantz.errors import LantzTimeoutError
from lantz.processors import ParseProcessor
class TextualMixin(object):
"""Mixin class for classes that communicate with instruments
exchanging text messages.
Ideally, transport classes should provide receive methods
that support:
1. query th... | PypiClean |
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/servicefabric/aaz/latest/network/vnet/subnet/_create.py |
# pylint: skip-file
# flake8: noqa
from azure.cli.core.aaz import *
class Create(AAZCommand):
"""Create a subnet and associate an existing NSG and route table.
:example: Create new subnet attached to an NSG with a custom route table.
az network vnet subnet create -g MyResourceGroup --vnet-name MyVn... | PypiClean |
/fake_bpy_module_2.79-20230117-py3-none-any.whl/bl_ui/properties_game.py | import sys
import typing
import bpy_types
GenericType = typing.TypeVar("GenericType")
class DataButtonsPanel:
bl_context = None
''' '''
bl_region_type = None
''' '''
bl_space_type = None
''' '''
class OBJECT_MT_lod_tools(bpy_types.Menu, bpy_types._GenericUI):
bl_label = None
''' '... | PypiClean |
/pulumi_artifactory-4.6.0a1693459609.tar.gz/pulumi_artifactory-4.6.0a1693459609/pulumi_artifactory/get_federated_go_repository.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 ._inputs import *
__all__ = [
'GetFederatedGoRepositoryResult',
'AwaitableGetFederatedGoRepositoryResult',
'get_federated... | PypiClean |
/bl_hector-0.4.0-py3-none-any.whl/bl_hector/interfaces/from_dict.py |
from typing import Any, Optional
from werkzeug.datastructures import MultiDict
from bl_hector.application.use_cases import add_book, search_books, update_book
from bl_hector.interfaces import Pager
from bl_hector.interfaces.exceptions import BadRequest
class SearchBooks:
def __init__(self, data: MultiDict[str,... | PypiClean |
/wagtail-admin-list-controls-0.1.7.tar.gz/wagtail-admin-list-controls-0.1.7/admin_list_controls/src/admin_list_controls/components/root.js | import React from "react";
import {store} from '../state';
import {ListControls} from "./list_controls";
import {Button} from "./button";
import {Panel} from "./panel";
import {Icon} from "./icon";
import {Text} from "./text";
import {Divider} from "./divider";
import {Block} from "./block";
import {Selector} from "./s... | PypiClean |
/gw_lts-0.4.0-py3-none-any.whl/gw/lts/snr_consistency.py |
from optparse import OptionParser
import os
import sys
import json
import numpy
import copy
import logging
from time import sleep
from collections import defaultdict, deque
from confluent_kafka import Producer
from cronut import App
from cronut.utils import uriparse
from ligo.lw import lsctables
from lal import GPS... | PypiClean |
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/react-error-overlay/node_modules/babel-code-frame/lib/index.js | "use strict";
exports.__esModule = true;
exports.default = function (rawLines, lineNumber, colNumber) {
var opts = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
colNumber = Math.max(colNumber, 0);
var highlighted = opts.highlightCode && _chalk2.default.supportsColor || opts.forceColo... | PypiClean |
/ibmcloud-python-sdk-1.1.3.tar.gz/ibmcloud-python-sdk-1.1.3/ibmcloud_python_sdk/cis/baremetal/hardware.py | from ibmcloud_python_sdk.utils import softlayer as sl
from ibmcloud_python_sdk.utils.common import resource_not_found
from ibmcloud_python_sdk.utils.common import resource_error
from ibmcloud_python_sdk.utils.common import check_args
class Hardware():
def __init__(self):
self.client = sl.client()
... | PypiClean |
/enteletaor-1.1.1.tar.gz/enteletaor-1.1.1/enteletaor_lib/modules/brute/cmd_brute_main.py |
import os
import six
import logging
from .utils import get_server_type
if six.PY2:
from .cracker import cracking
else:
# from .cracker3 import cracking
from .cracker import cracking
# Reconfigure AMQP LOGGER
logging.getLogger('amqp').setLevel(100)
log = logging.getLogger()
# ----------------------------------... | PypiClean |
/events_ingestion_client-1.2.1-py3-none-any.whl/events_ingestion_client/rest.py | from __future__ import absolute_import
import io
import json
import logging
import re
import ssl
import certifi
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import urlencode
try:
import urllib3
except ImportError:
raise ImportError('Swagger python client requires urlli... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/@nodelib/fs.walk/out/readers/async.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const events_1 = require("events");
const fsScandir = require("@nodelib/fs.scandir");
const fastq = require("fastq");
const common = require("./common");
const reader_1 = require("./reader");
class AsyncReader extends reader_1.default {
co... | PypiClean |
/dpixels-0.3.1.tar.gz/dpixels-0.3.1/README.md | # dpixels
A(nother) wrapper for the Python Discord Pixel API.
## Features
- Proper ratelimite handeling.
- Saves ratelimits in a json file, so restarting scripts won't trigger cooldowns.
- Supports all Pixel API endpoints.
- Supports autodrawing of images.
## Examples
Get the canvas:
```py
client = dpixels.Clien... | PypiClean |
/cupy_cuda110-12.2.0-cp310-cp310-manylinux2014_x86_64.whl/cupy/_core/_fusion_interface.py | import numpy
from cupy._core._dtype import get_dtype
import cupy
from cupy._core import _fusion_thread_local
from cupy._core import core
from cupy._core._scalar import get_typename
_thread_local = _fusion_thread_local.thread_local
_dtype_to_astype_dict = None
def _set_dtype_to_astype_dict():
"""Set a dict wi... | PypiClean |
/numpy_mkp2020-1.14.5-cp37-cp37m-manylinux2014_aarch64.whl/numpy/lib/user_array.py | from __future__ import division, absolute_import, print_function
from numpy.core import (
array, asarray, absolute, add, subtract, multiply, divide,
remainder, power, left_shift, right_shift, bitwise_and, bitwise_or,
bitwise_xor, invert, less, less_equal, not_equal, equal, greater,
greater_equal, shape... | PypiClean |
/intel_scipy-1.0.0.0-cp36-cp36m-win_amd64.whl/scipy/integrate/quadrature.py | from __future__ import division, print_function, absolute_import
import numpy as np
import math
import warnings
# trapz is a public function for scipy.integrate,
# even though it's actually a numpy function.
from numpy import trapz
from scipy.special import roots_legendre
from scipy.special import gammaln
from scipy.... | PypiClean |
/easy_sklearn-0.1.5.tar.gz/easy_sklearn-0.1.5/README.md | ## Easy skLearn
This library is base on sklearn, which can be easier to build classification and regressor models
## Install
```
#pip install easy_sklearn
```
## Usage
```
esc = EasySklearnClassifier()
X_train, X_test, y_train, y_test = esc.split_data(X, y)
esc.set()
esc.fit(X_train, y_train)
esc.score(X_test, ... | PypiClean |
/sympy_plot_backends-2.4.3-py3-none-any.whl/spb/backends/k3d/k3d.py | import os
from spb.defaults import cfg
from spb.backends.base_backend import Plot
from spb.backends.k3d.renderers import *
from spb.series import *
from sympy.external import import_module
import warnings
class K3DBackend(Plot):
"""A backend for plotting SymPy's symbolic expressions using K3D-Jupyter.
Parame... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_25/models/resource_performance_no_id_get_response.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_25 import models
class ResourcePerformanceNoIdGetResponse(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
... | PypiClean |
/pulumiverse_statuscake-1.0.1.tar.gz/pulumiverse_statuscake-1.0.1/pulumiverse_statuscake/_utilities.py |
import importlib.util
import inspect
import json
import os
import pkg_resources
import sys
import typing
import pulumi
import pulumi.runtime
from semver import VersionInfo as SemverVersion
from parver import Version as PEP440Version
def get_env(*args):
for v in args:
value = os.getenv(v)
if va... | PypiClean |
/isedit-0.3.0.tar.gz/isedit-0.3.0/js/node_modules/moment/locale/br.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/cupy_cuda101-9.6.0-cp38-cp38-manylinux1_x86_64.whl/cupy/random/_distributions.py | from cupy.random import _generator
from cupy import _util
# TODO(beam2d): Implement many distributions
def beta(a, b, size=None, dtype=float):
"""Beta distribution.
Returns an array of samples drawn from the beta distribution. Its
probability density function is defined as
.. math::
f(x) = ... | PypiClean |
/emote-rl-23.0.0.tar.gz/emote-rl-23.0.0/emote/memory/adaptors.py | from typing import Callable, List, Optional
import torch
from emote.memory.core_types import SampleResult
Adaptor = Callable[[SampleResult, int, int], SampleResult]
class DictObsAdaptor:
"""
Converts multiple observation columns to a single dict observation.
:param keys: The dictionary keys to extrac... | PypiClean |
/excel-sql-engine-1.10.tar.gz/excel-sql-engine-1.10/PyxlSql/pyxlSheets.py |
import re
import inspect
import openpyxl
import openpyxl.styles
from PyxlSql.pyxlErrors import PyxlSqlColumnError
from copy import copy
class PyxlStyle:
"""Style for columns, limited features"""
def __init__(self,cell):
self.number_format = cell.number_format
self.style = cell.style
s... | PypiClean |
/CASCADe_jitter-0.9.5-py3-none-any.whl/cascade_jitter/least_squares.py | import numpy as np
#from types import SimpleNamespace
#import itertools
from collections.abc import Iterable
#import ast
#import warnings
#import time as time_module
#import copy
import ray
#from numba import jit
from scipy.linalg import svd
from scipy.linalg import solve_triangular
from scipy.linalg import cholesky
#i... | PypiClean |
/whoi_uwapm-0.0.4.tar.gz/whoi_uwapm-0.0.4/README.md | # <b>whoi_uwapm</b>
## <b> Introduction </b>
whoi_uwapm is a fork of arlpy's uwapm module. It removes all of the graphing features of the original uwapm, and also is updated to support the latest versions of numpy, scipy, and pandas.
## PyPI
The PyPI package contains an x86_64 binary of bellhopcuda. If you are using ... | PypiClean |
/siasearch-0.0.8.tar.gz/siasearch-0.0.8/README.md | # Siasearch SDK
Siasearch SDK is a way to programmatically interface with the Siasearch software. It provides an alternative
interface to the GUI and allows users to easily query for, view and manipulate the data fetched.
```python
>>> from siasearch import SiaSearch
>>> sia = SiaSearch.login("http://custom-domain.sia... | PypiClean |
/qPython3-1.0.1.tar.gz/qPython3-1.0.1/qpython/qcollection.py |
from qpython.qtype import * # @UnusedWildImport
from qpython import MetaData
from qpython.qtemporal import qtemporal, QTemporal, from_raw_qtemporal, to_raw_qtemporal
class QList(numpy.ndarray):
'''An array object represents a q vector.'''
def _meta_init(self, **meta):
'''Initialises the meta-inform... | PypiClean |
/Blogmaker-0.6.tar.gz/Blogmaker-0.6/README.txt | ============================================
Blogmaker |(tm)| blog application for Django
============================================
Blogmaker 0.6, January 2008
Blogmaker |(tm)| is a full-featured, production-quality blogging application for Django.
It supports trackbacks, ping and comments with moderation and hone... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_20/models/cloud_provider_tag.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_20 import models
class CloudProviderTag(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value ... | PypiClean |
/cognite_geospatial_sdk-0.10.4-py3-none-any.whl/cognite/geospatial/_client/api_client.py | from __future__ import absolute_import
import atexit
import datetime
from dateutil.parser import parse
import json
import mimetypes
from multiprocessing.pool import ThreadPool
import os
import re
import tempfile
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import quote
from co... | PypiClean |
/fds.sdk.FactSetFunds-1.0.6-py3-none-any.whl/fds/sdk/FactSetFunds/model/error_response.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.FactSetFunds.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_typ... | PypiClean |
/cloud-scheduler-1.13.2.tar.gz/cloud-scheduler-1.13.2/cloudscheduler/ec2cluster.py | import os
import sys
import time
import string
import json
import shutil
import logging
import subprocess
import cluster_tools
import cloud_init_util
import cloudscheduler.config as config
import cloudscheduler.utilities as utilities
import datetime as dt
from cloudscheduler.job_management import _attr_list_to_dict
log... | PypiClean |
/boto_brimley-2.61.0.tar.gz/boto_brimley-2.61.0/docs/source/ref/cloudsearch.rst | .. ref-cloudsearch
===========
Cloudsearch
===========
boto.cloudsearch
----------------
.. automodule:: boto.cloudsearch
:members:
:undoc-members:
boto.cloudsearch.domain
-----------------------
.. automodule:: boto.cloudsearch.domain
:members:
:undoc-members:
boto.cloudsearch.exceptions
------------... | PypiClean |
/flight_optimizer-0.2.0-py3-none-any.whl/flight_optimizer/utils.py | from datetime import date, timedelta
from typing import Iterable
import requests
from .dataclasses import Airport, City, Flight, Location
DATE_FORMAT = "%d/%m/%Y"
AGGREGATION_FLIGHTS_URL = "https://api.skypicker.com/aggregation_flights"
LOCATIONS_URL = "https://api.skypicker.com/locations"
class FlightOptimizer:
... | PypiClean |
/python-appengine-1.9.15.tar.gz/python-appengine-1.9.15/google/appengine/tools/yaml_translator.py | import os
import re
from google.appengine.tools import app_engine_web_xml_parser as aewxp
from google.appengine.tools import handler_generator
from google.appengine.tools import web_xml_parser
from google.appengine.tools.app_engine_web_xml_parser import AppEngineConfigException
NO_API_VERSION = 'none'
def Translat... | PypiClean |
/burst-ex-0.0.3.tar.gz/burst-ex-0.0.3/burst/share/constants.py |
NAME = 'burst'
CMD = "cmd"
# 系统返回码
# 命令字不合法
RET_INVALID_CMD = -10000
# 系统内部异常
RET_INTERNAL = -10001
# admin用户验证失败
RET_ADIMN_AUTH_FAIL = -20000
# master连接未连接
RET_MASTER_NOT_CONNECTED = -21000
# 内部使用的命令字
# 分配任务.
CMD_WORKER_TASK_ASSIGN = 100
# 任务完成. 如果body里面带数据,说明是要写回;如果没有数据,说明只是要求分配task
CMD_WORKER_TASK_DONE = 200
# ... | PypiClean |
/fusionsc-2.0.0a2.tar.gz/fusionsc-2.0.0a2/vendor/zlib/contrib/dotzlib/readme.txt | This directory contains a .Net wrapper class library for the ZLib1.dll
The wrapper includes support for inflating/deflating memory buffers,
.Net streaming wrappers for the gz streams part of zlib, and wrappers
for the checksum parts of zlib. See DotZLib/UnitTests.cs for examples.
Directory structure:
----------------... | PypiClean |
/noah-vega-1.8.5.tar.gz/noah-vega-1.8.5/vega/algorithms/hpo/asha_hpo.py |
# Copyright (C) 2020. Huawei Technologies Co., Ltd. All rights reserved.
#
# 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 require... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/postcss/lib/postcss.d.ts | import { SourceMapGenerator, RawSourceMap } from 'source-map-js'
import Node, {
Position,
Source,
ChildNode,
NodeErrorOptions,
NodeProps,
ChildProps,
AnyNode
} from './node.js'
import Declaration, { DeclarationProps } from './declaration.js'
import Container, { ContainerProps } from './container.js'
impo... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/PucInstCode.py | import json
from alipay.aop.api.constant.ParamConstants import *
class PucInstCode(object):
def __init__(self):
self._biz_type = None
self._inst_code = None
self._inst_name = None
self._sub_biz_type = None
@property
def biz_type(self):
return self._biz_type
... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/device_management/template_settings/item/device_management_configuration_setting_template_item_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 |
/openwisp-monitoring-1.0.4.tar.gz/openwisp-monitoring-1.0.4/openwisp_monitoring/monitoring/migrations/0013_create_chart_alertsettings.py |
import uuid
import django.core.validators
import django.db.models.deletion
import django.utils.timezone
import model_utils.fields
import swapper
from django.db import migrations, models
from ..configuration import get_chart_configuration_choices
class Migration(migrations.Migration):
dependencies = [('monitor... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayOpenIotvspUserwithvidCreateRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayOpenIotvspUserwithvidCreateModel import AlipayOpenIotvspUserwithvidCreateModel
class AlipayOpenIotvspUserwithvidCreateRequest(object):
def __init__(self, biz_model=Non... | PypiClean |
/snappi_ixnetwork-0.9.1.tar.gz/snappi_ixnetwork-0.9.1/snappi_ixnetwork/device/compactor.py | from snappi_ixnetwork.device.base import *
from snappi_ixnetwork.logger import get_ixnet_logger
class Compactor(object):
def __init__(self, ixnetworkapi):
self._api = ixnetworkapi
self._unsupported_nodes = []
self._ignore_keys = [
"xpath", "name"
]
self.logger =... | PypiClean |
/omniscript_liveaction-3.0.50-py3-none-any.whl/omniscript/graphtemplate.py | """GraphTemplate class.
"""
# Copyright (c) LiveAction, Inc. 2022. All rights reserved.
# Copyright (c) Savvius, Inc. 2013-2019. All rights reserved.
# Copyright (c) WildPackets, Inc. 2013-2014. All rights reserved.
from .omniid import OmniId
from .peektime import PeekTime
find_attribs = ['name', 'id']
class Graph... | PypiClean |
/pychemia-0.21.9.15.tar.gz/pychemia-0.21.9.15/docs/_build/html/_static/searchtools.js | if (!Scorer) {
/**
* Simple result scoring code.
*/
var Scorer = {
// Implement the following function to further tweak the score for each result
// The function takes a result array [filename, title, anchor, descr, score]
// and returns the new score.
/*
score: function(result) {
re... | PypiClean |
/management_api_tools-1.0.0-py3-none-any.whl/management_api_tools/api/policies.py | from dataclasses import dataclass
from typing import Any
import requests
from management_api_tools import MachinaLogin
@dataclass
class DataPolicies(MachinaLogin):
"""
Data policies allow developers to create rules for how data can be accessed.
The /policies resource is used to administer policies for a... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/moment/locale/cy.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/Scrapyer-1.5.13.tar.gz/Scrapyer-1.5.13/docs/topics/loaders.rst | .. _topics-loaders:
============
Item Loaders
============
.. module:: scrapy.loader
:synopsis: Item Loader class
Item Loaders provide a convenient mechanism for populating scraped :ref:`items
<topics-items>`. Even though items can be populated directly, Item Loaders provide a
much more convenient API for populat... | PypiClean |
/opvia_scripts-1.5.3.tar.gz/opvia_scripts-1.5.3/src/opvia_scripts/firebase.py | import os
from contextlib import contextmanager
from tempfile import TemporaryDirectory
from typing import Generator, Optional
import pyrebase
import requests
from pydantic import BaseModel
from pyrebase.pyrebase import Firebase
from opvia_scripts.constants import (
FIREBASE_API_KEY,
FIREBASE_AUTH_DOMAIN,
... | PypiClean |
/nm_transformers_nightly-1.6.0.20230829-py3-none-any.whl/transformers/models/timm_backbone/modeling_timm_backbone.py |
from typing import Tuple, Union
from ...modeling_outputs import BackboneOutput
from ...modeling_utils import PreTrainedModel
from ...utils import is_timm_available, is_torch_available, requires_backends
from ...utils.backbone_utils import BackboneMixin
from .configuration_timm_backbone import TimmBackboneConfig
if ... | PypiClean |
/wavy-1.0.1.tar.gz/wavy-1.0.1/versioneer.py | from __future__ import print_function
try:
import configparser
except ImportError:
import ConfigParser as configparser
import errno
import json
import os
import re
import subprocess
import sys
class VersioneerConfig:
"""Container for Versioneer configuration parameters."""
def get_root():
"""Get the... | PypiClean |
/chaostoolkit-lib-1.38.0.tar.gz/chaostoolkit-lib-1.38.0/.github/ISSUE_TEMPLATE/bug_report.md | ---
name: Bug report
about: Create a report to help us improve
title: ''
labels: pending-review
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**Runtime versions**
Please run:
```
$ python --version
$ chaos info core
$ chaos info extensions
```
**To Reproduce**
Steps to ... | PypiClean |
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/tdm_clone_task_request_params_all_of.py | import re # noqa: F401
import sys # noqa: F401
from cohesity_sdk.cluster.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_typ... | PypiClean |
/langchain_xfyun-0.0.275b2-py3-none-any.whl/langchain_xfyun/vectorstores/myscale.py | from __future__ import annotations
import json
import logging
from hashlib import sha1
from threading import Thread
from typing import Any, Dict, Iterable, List, Optional, Tuple
from langchain_xfyun.docstore.document import Document
from langchain_xfyun.embeddings.base import Embeddings
from langchain_xfyun.pydantic_... | PypiClean |
/pulumi_yandex_unofficial-0.1.8.tar.gz/pulumi_yandex_unofficial-0.1.8/pulumi_yandex_unofficial/mdb_mongodb_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 ._inputs import *
__all__ = ['MdbMongodbClusterArgs', 'MdbMongodbCluster']
@pulumi.input_type
class MdbMongodbClusterArgs:
def _... | PypiClean |
/vallex_tools-0.12-py3-none-any.whl/vallex/cli/lib.py | import hashlib
import inspect
import logging
import os
import sys
import textwrap
from importlib import import_module
from pathlib import Path
from vallex.cli.completion import BASH_COMPLETION_SCRIPT
from vallex.config import Config
from vallex.term import get_terminal_size, FG, RED, STATUS, YELLOW
WHITE_FG = FG((25... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flashblade/FB_2_4/models/certificate_patch.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flashblade.FB_2_4 import models
class CertificatePatch(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value i... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/postcss-dir-pseudo-class/node_modules/postcss-selector-parser/dist/selectors/className.js | 'use strict';
exports.__esModule = true;
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writabl... | PypiClean |
/HPI-0.3.20230327.tar.gz/HPI-0.3.20230327/my/location/fallback/via_ip.py | REQUIRES = ["git+https://github.com/seanbreckenridge/ipgeocache"]
from datetime import timedelta
from my.core import dataclass, Stats, make_config
from my.config import location
from my.core.warnings import medium
@dataclass
class ip_config(location.via_ip):
# no real science to this, just a guess of ~15km accu... | PypiClean |
/iredis_bin-1.9.4-cp310-cp310-manylinux2010_x86_64.whl/iredis_bin-1.9.4.data/scripts/lib/pip/_internal/resolution/resolvelib/provider.py | from typing import TYPE_CHECKING, Dict, Iterable, Iterator, Mapping, Sequence, Union
from pip._vendor.resolvelib.providers import AbstractProvider
from .base import Candidate, Constraint, Requirement
from .factory import Factory
if TYPE_CHECKING:
from pip._vendor.resolvelib.providers import Preference
from p... | PypiClean |
/django-two-factor-auth-1.15.4.tar.gz/django-two-factor-auth-1.15.4/README.rst | ================================
Django Two-Factor Authentication
================================
.. image:: https://jazzband.co/static/img/badge.svg
:target: https://jazzband.co/
:alt: Jazzband
.. image:: https://github.com/jazzband/django-two-factor-auth/workflows/build/badge.svg?branch=master
... | PypiClean |
/casai-home-frontend-20220503.0.tar.gz/casai-home-frontend-20220503.0/hass_frontend/frontend_es5/a8e21ca8.js | (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[51522],{94653:function(e,t,n){"use strict";n(30879),n(63670);var r,i,o=n(50424),a=n(55358),l=n(47181);n(52039);function s(e){return(s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:fu... | PypiClean |
/ansible-kkvesper-2.3.2.0.tar.gz/ansible-kkvesper-2.3.2.0/docs/docsite/_static/doctools.js | * select a different prefix for underscore
*/
$u = _.noConflict();
/**
* make the code below compatible with browsers without
* an installed firebug like debugger
if (!window.console || !console.firebug) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
"dirxml", "group", "groupEnd", "... | PypiClean |
/ModEA-0.5.0.tar.gz/ModEA-0.5.0/README.md | [](https://badge.fury.io/py/ModEA)
[](https://zenodo.org/badge/latestdoi/157624013)
[](https://www.travis-ci.com/sjvrijn/ModEA)
[,并安装。
**2. 安装rqalpha_develop**
在命令行中输入如下命令,这里需要安装的是rqalpha的master分支。
```
pip install https://github.com/ricequant/rqalpha/zipball/master
```
**3. 安装futu_api**
在命令行中输入如下命令... | PypiClean |
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/liang-nan/旭旭《全新情感会员课程》:01会员五节基础课程:4如何通过聊天拉近关系.md | # 旭旭《全新情感会员课程》:01会员五节基础课程:4如何通过聊天拉近关系
你好 我是虚虚,你有没有过这种情况,跟一个喜欢的女生聊了韩酒韩酒一年两年三年,但最终却发现好像只是普通朋友,聊了这么久感情一点进展都没有,结果对方跟一个刚认识不久的男生。
可能几个月甚至几个礼拜就在一起了,你就会觉得 哎 怎么我铺垫了三年的感情,还不过别人三个礼拜呢,如果你有这种情况的话,那么今天的内容就适合你,今天我会从三个方面来告诉你,如何快速的拉进。
你和喜欢的人的距离,第一个 我会告诉你,男女拉进关系的一个基本的流程,第二个 我会教你一个在拉伸关系过程中,如何跟他聊天的一个小方法,第三个 我会教你如何在拉进关系的过程中,平衡自己的需求感。
不... | PypiClean |
/cookiecutter-cc-1.6.0.tar.gz/cookiecutter-cc-1.6.0/cookiecutter/config.py | from __future__ import unicode_literals
import copy
import logging
import os
import io
import collections
import poyo
from .exceptions import ConfigDoesNotExistException
from .exceptions import InvalidConfiguration
logger = logging.getLogger(__name__)
USER_CONFIG_PATH = os.path.expanduser('~/.cookiecutterrc')
BUI... | PypiClean |
/antlr4-python2-runtime-4.13.0.tar.gz/antlr4-python2-runtime-4.13.0/src/antlr4/atn/LexerAction.py |
class LexerActionType(object):
CHANNEL = 0 #The type of a {@link LexerChannelAction} action.
CUSTOM = 1 #The type of a {@link LexerCustomAction} action.
MODE = 2 #The type of a {@link LexerModeAction} action.
MORE = 3 #The type of a {@link LexerMoreAction} action.
POP_MODE =... | PypiClean |
/csv_overview-0.32.tar.gz/csv_overview-0.32/README.md | csv-overview
============
Get the vital statistics of a CSV file.
You can install with:
$ pip install csv_overview
For example (from the NYPL menu's database):
$ csv-overview some/path/Dish.csv
Dish.csv
351769 entries
(0) id: 351769 unique (100.00%)
0 empty (0.00%),
351769 numeric (100.00%)
e.g. ['25... | PypiClean |
/reportree-0.0.4.tar.gz/reportree-0.0.4/changelog.rst | Changelog
=========
Version 0.0.4 (2023-01-21)
--------------------------
* Basic implementation of `Path` allowing to load existing report and wrap it into `Branch`.
* `InjectWriter` to provide at least some support for custom CSS, javascript etc.
Version 0.0.3 (2022-12-13)
--------------------------
* `Content` ... | PypiClean |
/django-hotsauce-1.2.2.tar.gz/django-hotsauce-1.2.2/lib/djangohotsauce/http/oauthclient/controller.py |
import random
import cgi
import logging
import hmac
import hashlib
import base64
try:
# python3
from urllib.parse import urlparse, urljoin, parse_qs
except ImportError:
from urlparse import urlparse, urljoin, parse_qs
try:
# python3
from http.cookies import SimpleCookie
except ImportError:
... | PypiClean |
/mauth_client-1.6.0-py3-none-any.whl/mauth_client/signer.py | import time
import re
from .rsa_signer import RSASigner
from .consts import AUTH_HEADER_DELIMITER, MWS_TOKEN, X_MWS_AUTH, X_MWS_TIME, MWSV2_TOKEN, MCC_AUTH, MCC_TIME
from .utils import base64_encode
class Signer:
"""
methods to sign requests.
"""
def __init__(self, app_uuid, private_key_data, sign_ve... | PypiClean |
/ohlc2-0.1.0-py3-none-any.whl/ohlc2-0.1.0.dist-info/DESCRIPTION.rst | ohlc2
=====
.. image:: https://img.shields.io/pypi/v/ohlc2.svg
:target: https://pypi.python.org/pypi/ohlc2
:alt: Latest PyPI version
.. image:: none.png
:target: none
:alt: Latest Travis CI build status
ohlc resampler
made a python package from the link below. i do not own the code.
https://qiita.com... | PypiClean |
/python_microscopy-20.12.8-cp36-cp36m-win_amd64.whl/PYME/localization/FitFactories/InterpFitR.py |
##################
# PsfFitIR.py
#
# Copyright David Baddeley, 2009
# d.baddeley@auckland.ac.nz
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your ... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/acorn/src/expression.js |
import {types as tt} from "./tokentype"
import {Parser} from "./state"
import {DestructuringErrors} from "./parseutil"
const pp = Parser.prototype
// Check if property name clashes with already added.
// Object/class getters and setters are not allowed to clash —
// either with each other or with an init property — ... | PypiClean |
/mia_processes-2.3.0.tar.gz/mia_processes-2.3.0/mia_processes/pipelines/preprocess/bold_spatial_preprocessing2.py | ##########################################################################
# mia_processes - Copyright (C) IRMaGe/CEA, 2018
# Distributed under the terms of the CeCILL license, as published by
# the CEA-CNRS-INRIA. Refer to the LICENSE file or to
# http://www.cecill.info/licences/Licence_CeCILL_V2.1-en.html
# for detai... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.