id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/shinkenplugins.plugins.environment_canada-1.3.tar.gz/shinkenplugins.plugins.environment_canada-1.3/shinkenplugins/plugins/environment_canada/environment_canada.py |
# 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 option) any later version.
# This program is distributed in the hope that it will be useful,
# bu... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/device_management/device_configurations_all_managed_device_certificate_states/device_configurations_all_managed_device_certificate_states_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 |
/datalake-scripts-2.6.8.tar.gz/datalake-scripts-2.6.8/datalake_scripts/common/base_engine.py | import json
import os
from json.decoder import JSONDecodeError
from typing import Union
from urllib.parse import urljoin
from requests import Response
from datalake.common.logger import logger
from datalake.common.token_manager import TokenManager
from datalake.endpoints import Endpoint
from datalake_scripts.common i... | PypiClean |
/cohesity_management_sdk-1.10.1.tar.gz/cohesity_management_sdk-1.10.1/cohesity_management_sdk/controllers/stats_controller.py |
import logging
from cohesity_management_sdk.api_helper import APIHelper
from cohesity_management_sdk.configuration import Configuration
from cohesity_management_sdk.controllers.base_controller import BaseController
from cohesity_management_sdk.http.auth.auth_manager import AuthManager
from cohesity_management_sdk.mode... | PypiClean |
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/request/AlipayMarketingVoucherStockUseRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayMarketingVoucherStockUseModel import AlipayMarketingVoucherStockUseModel
class AlipayMarketingVoucherStockUseRequest(object):
def __init__(self, biz_model=None):
... | PypiClean |
/ignition_framework-3.5.2-py3-none-any.whl/ignition/cli/cmd_create.py | import click
import logging
import os
import ignition.templates.factory as factory
logger = logging.getLogger(__name__)
@click.command(help='Create a new Resource driver')
@click.argument('app_name')
@click.option('--driver-type', '-t', 'driver_types', default='Resource', help='type of driver to generate. \'Resource\... | PypiClean |
/sonatype_nexus_sdk-0.1.3-py3-none-any.whl/nexus_sdk/paths/v1_repositories_nuget_group_repository_name/put.py | import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
import uuid # noqa: F401
from dataclasses import dataclass
from datetime import date, datetime # noqa: F401
import frozendict # noqa: F401
import typing_extensions # noqa: F401
im... | PypiClean |
/j01.tree-0.5.0.zip/j01.tree-0.5.0/src/j01/tree/base.py | __docformat__ = 'restructuredtext'
import string
import zope.interface
import zope.component
from zope.pagetemplate.interfaces import IPageTemplate
from zope.traversing import api
from zope.security.interfaces import Unauthorized
from zope.security.interfaces import Forbidden
from zope.traversing.browser import absolu... | PypiClean |
/django-cms-4.1.0rc4.tar.gz/django-cms-4.1.0rc4/docs/upgrade/3.1.1.rst | .. _upgrade-to-3.1.1:
###################
3.1.1 release notes
###################
*******************
What's new in 3.1.1
*******************
* Add Django 1.8 support
* Tutorial updates and improvements
* Add copy_site command
* Add setting to disable toolbar for anonymous users
* Add setting to hide toolbar when a ... | PypiClean |
/pysui-0.34.0-py3-none-any.whl/samples/async_sub.py |
# -*- coding: utf-8 -*-
"""Testing subscriptions."""
import os
import sys
import pathlib
import asyncio
from typing import Any
PROJECT_DIR = pathlib.Path(os.path.dirname(__file__))
PARENT = PROJECT_DIR.parent
sys.path.insert(0, str(PROJECT_DIR))
sys.path.insert(0, str(PARENT))
sys.path.insert(0, str(os.path.join(... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayCommerceIotDeviceBaseinfoQueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayCommerceIotDeviceBaseinfoQueryModel import AlipayCommerceIotDeviceBaseinfoQueryModel
class AlipayCommerceIotDeviceBaseinfoQueryRequest(object):
def __init__(self, biz_... | PypiClean |
/sphinx-subprojecttoctree-0.5.4.tar.gz/sphinx-subprojecttoctree-0.5.4/docs/source/userguide.rst | User Guide
**********
Quickstart
==========
After installing Subprojecttoctree, the next step is to identify the project you wish
to be the 'main' project, and one or more 'subprojects'. Then, follow the steps below
to configure your documentation builds
#. Enable the extension for all projects by adding subprojectt... | PypiClean |
/Spire.Presentation-8.8.3-py3-none-win_amd64.whl/spire/presentation/LineStyleCollection.py | from enum import Enum
from plum import dispatch
from typing import TypeVar,Union,Generic,List,Tuple
from spire.presentation.common import *
from spire.presentation import *
from ctypes import *
import abc
class LineStyleCollection ( LineStyleList, ICollection) :
"""
<summary>
Represents the collection... | PypiClean |
/sage-superset-1.0.0.tar.gz/sage-superset-1.0.0/superset/static/assets/node_modules_svgr_webpack_lib_index_js_-svgo_titleProp_ref_src_assets_images_icons_refresh_svg.8c98657a.chunk.js | "use strict";
/*
* ATTENTION: An "eval-source-map" devtool has been used.
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file with attached SourceMaps in the browser devtools.
* If you are trying to read the output file, select a dif... | PypiClean |
/human_cver-1.0.1.tar.gz/human_cver-1.0.1/src/human_cver/trainer/train.py | import argparse
import cProfile
import os
import os.path as osp
import shutil
import sys
import pytorch_lightning as pl
from pytorch_lightning import seed_everything
from pytorch_lightning.callbacks import LearningRateMonitor, ModelCheckpoint
from pytorch_lightning.plugins import DDPPlugin
from pytorch_lightning.train... | PypiClean |
/Ibidas-0.1.26.tar.gz/Ibidas-0.1.26/docs/tutorial_example2.rst | Chromosome distribution
=======================
In this example, we will analyze the genomic locations of transcription factor targets, to determine if transription
factors favor specific chromosomes. Also, we will compare transcription factors on the chromosomes they target, to see if there are transcription
factors... | PypiClean |
/dsin100days603v38-6.0.3.tar.gz/dsin100days603v38-6.0.3/notebook/static/components/codemirror/mode/tiki/tiki.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use s... | PypiClean |
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/shelljs/src/sed.js | var common = require('./common');
var fs = require('fs');
common.register('sed', _sed, {
globStart: 3, // don't glob-expand regexes
canReceivePipe: true,
cmdOptions: {
'i': 'inplace',
},
});
//@
//@ ### sed([options,] search_regex, replacement, file [, file ...])
//@ ### sed([options,] search_regex, repla... | PypiClean |
/mapfish.plugin.client-0.2.tar.gz/mapfish.plugin.client-0.2/mapfishpluginclient/template/+package+/public/lib/openlayers/lib/Rico/Corner.js | OpenLayers.Rico = new Object();
OpenLayers.Rico.Corner = {
round: function(e, options) {
e = OpenLayers.Util.getElement(e);
this._setOptions(options);
var color = this.options.color;
if ( this.options.color == "fromElement" ) {
color = this._background(e);
}
... | PypiClean |
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/core/management/commands/createcachetable.py | from optparse import make_option
from django.core.cache.backends.db import BaseDatabaseCache
from django.core.management.base import LabelCommand, CommandError
from django.db import connections, router, transaction, models, DEFAULT_DB_ALIAS
from django.db.utils import DatabaseError
from django.utils.encoding import fo... | PypiClean |
/dsin100daysv33-6.0.1.tar.gz/dsin100daysv33-6.0.1/notebook/static/components/codemirror/addon/comment/continuecomment.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
func... | PypiClean |
/anonymizer-0.0.6.tar.gz/anonymizer-0.0.6/README.md | # anonymisation
Le répertoire anonymisation fournit une méthode, des outils et des références sur l'anonymisation des données à caractère personnel.
## Objectifs et usages
Ce projet a pour objectif :
+ D'introduire l'utilisateur et le producteur de données aux enjeux de l'anonymisation, d'un point de vue juridiq... | PypiClean |
/textual-stub-0.1.17.tar.gz/textual-stub-0.1.17/src/textual/widgets/_directory_tree.py | from __future__ import annotations
from dataclasses import dataclass
from functools import lru_cache
from os import scandir
import os.path
from rich.console import RenderableType
import rich.repr
from rich.text import Text
from .. import events
from ..message import Message
from ..reactive import Reactive
from .._ty... | PypiClean |
/auto-sklearn-0.15.0.tar.gz/auto-sklearn-0.15.0/autosklearn/pipeline/components/feature_preprocessing/nystroem_sampler.py | from typing import Optional
from ConfigSpace.conditions import EqualsCondition, InCondition
from ConfigSpace.configuration_space import ConfigurationSpace
from ConfigSpace.hyperparameters import (
CategoricalHyperparameter,
UniformFloatHyperparameter,
UniformIntegerHyperparameter,
)
from autosklearn.askl_... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/@typescript-eslint/utils/dist/eslint-utils/RuleCreator.d.ts | import { RuleMetaData, RuleMetaDataDocs, RuleListener, RuleContext, RuleModule } from '../ts-eslint/Rule';
export declare type NamedCreateRuleMetaDocs = Omit<RuleMetaDataDocs, 'url'>;
export declare type NamedCreateRuleMeta<TMessageIds extends string> = {
docs: NamedCreateRuleMetaDocs;
} & Omit<RuleMetaData<TMessag... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/device_management/managed_devices/item/windows_protection_state/windows_protection_state_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 |
/papermill-nb-runner-1.1.16.tar.gz/papermill-nb-runner-1.1.16/docs/troubleshooting.rst | Troubleshooting
===============
NoSuchKernel Errors (using Conda)
---------------------------------
``NoSuchKernel`` Errors can appear when running papermill on jupyter notebooks whose
kernel has been specified via conda (nb_conda). nb_conda is used to easily set
conda environment per notebook from within jupyterlab.... | PypiClean |
/nn/modules/rnn/layers.py |
# (C) Copyright 2020, 2021, 2022 IBM. All Rights Reserved.
#
# This code is licensed under the Apache License, Version 2.0. You may
# obtain a copy of this license in the LICENSE.txt file in the root directory
# of this source tree or at http://www.apache.org/licenses/LICENSE-2.0.
#
# Any modifications or derivative w... | PypiClean |
/odoo12_addon_hr_utilization_report-12.0.1.0.3-py3-none-any.whl/odoo/addons/hr_utilization_report/report/hr_utilization_report.py |
from odoo import fields, models, api, _
from odoo.exceptions import UserError, ValidationError
from odoo.tools import ustr
from odoo.tools.safe_eval import safe_eval
import html
from functools import reduce
from xlsxwriter.utility import xl_rowcol_to_cell
import pytz
from datetime import datetime, time
class HrUtil... | PypiClean |
/drf-yasg-edge-2.1.tar.gz/drf-yasg-edge-2.1/docs/openapi.rst | .. |br| raw:: html
<br />
**********************
Functional overview
**********************
------------------------------
OpenAPI specification overview
------------------------------
This library generates OpenAPI 2.0 documents. The authoritative specification for this document's structure will always
be the o... | PypiClean |
/nnunet_customized-1.2-py3-none-any.whl/nnunet/dataset_conversion/Task082_BraTS_2020.py | from copy import deepcopy
from multiprocessing.pool import Pool
import numpy as np
from collections import OrderedDict
from batchgenerators.utilities.file_and_folder_operations import *
from meddec.paper_plot.nature_methods.challenge_visualization_stuff.own_implementation.ranking import \
rank_then_aggregate
impo... | PypiClean |
/kaze_python-0.8.9-py3-none-any.whl/kaze/Core/State/AccountState.py | import sys
from .StateBase import StateBase
from kazecore.Fixed8 import Fixed8
from kazecore.IO.BinaryReader import BinaryReader
from kaze.IO.MemoryStream import StreamManager
from kazecore.Cryptography.Crypto import Crypto
from kazecore.IO.BinaryWriter import BinaryWriter
from kaze.Core.Size import Size as s
from kaz... | PypiClean |
/dependable-0.1.0.tar.gz/dependable-0.1.0/README.md | <h1 align="center">
<strong>dependable</strong>
</h1>
<p align="center">
<a href="https://github.com/dmtrs/dependable" target="_blank">
<img src="https://img.shields.io/github/last-commit/dmtrs/dependable" alt="Latest Commit">
</a>
<img src="https://img.shields.io/github/workflow/status/dmtr... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/domain/ShopCategoryConfigInfo.py | import json
from alipay.aop.api.constant.ParamConstants import *
class ShopCategoryConfigInfo(object):
def __init__(self):
self._id = None
self._is_leaf = None
self._level = None
self._link = None
self._nm = None
@property
def id(self):
return self._id
... | PypiClean |
/numbasom-0.0.2.tar.gz/numbasom-0.0.2/CONTRIBUTING.md | # How to contribute
## How to get started
Before anything else, please install the git hooks that run automatic scripts during each commit and merge to strip the notebooks of superfluous metadata (and avoid merge conflicts). After cloning the repository, run the following command inside it:
```
nbdev_install_git_hook... | PypiClean |
/Vespa_Suite-1.1.0-py37-none-any.whl/vespa/datasim/auto_gui/datasim.py |
import wx
# begin wxGlade: dependencies
from vespa.common.wx_gravy.widgets.floatspin_multiplier.floatspin_multiplier_base import FloatSpinMultiplier
from wx.lib.agw.floatspin import FloatSpin, EVT_FLOATSPIN, FS_LEFT, FS_RIGHT, FS_CENTRE, FS_READONLY
import wx.grid
# end wxGlade
# begin wxGlade: extracode
# end wxGla... | PypiClean |
/permutations-stats-0.2.tar.gz/permutations-stats-0.2/README.md | 
[](https://gist.github.com/cheerfulstoic/d107229326a01ff0f333a1d3476e068d)

# permutations-stats
Python-only permutation... | PypiClean |
/Finance-Seleya-1.2.3.tar.gz/Finance-Seleya-1.2.3/seleya/data/DataAPI/sqlatom/db_factory.py | import pdb
import pandas as pd
from sqlalchemy import and_
from sqlalchemy import outerjoin, join
from sqlalchemy.sql.selectable import Join
from seleya.utilities.kd_logger import kd_logger
mapping_name = {
'GDOveriewFactory': 'gd_overview',
'GDReviewsFactory': 'gd_reviews',
'GDELTFeedFactory': 'gdelt_feed... | PypiClean |
/openmetadata_ingestion-1.1.4.0-py3-none-any.whl/metadata/generated/schema/entity/services/connections/database/pinotDBConnection.py |
from __future__ import annotations
from enum import Enum
from typing import Optional
from pydantic import BaseModel, Extra, Field
from metadata.ingestion.models.custom_pydantic import CustomSecretStr
from .. import connectionBasicType
class PinotDBType(Enum):
PinotDB = 'PinotDB'
class PinotDBScheme(Enum):
... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/treponemasuccinifaciens.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def TreponemaSuccinifaciens(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/string",
**additional_graph_kwargs... | PypiClean |
/jsuniv_sllib-0.2-py3-none-any.whl/jsuniv_sllib/classification/models/VggNet.py | import torch
import torch.nn as nn
import torchvision
def Conv3x3BNReLU(in_channels,out_channels):
return nn.Sequential(
nn.Conv2d(in_channels=in_channels,out_channels=out_channels,kernel_size=3,stride=1,padding=1),
nn.BatchNorm2d(out_channels),
nn.ReLU6(inplace=True)
)
class VGGNet(n... | PypiClean |
/nonebot_plugin_docs-2.0.1-py3-none-any.whl/nonebot_plugin_docs/dist/assets/js/34f1ac5a.1bf41ff0.js | "use strict";(self.webpackChunknonebot=self.webpackChunknonebot||[]).push([[9147],{35318:function(e,n,a){a.r(n),a.d(n,{MDXContext:function(){return p},MDXProvider:function(){return x},mdx:function(){return c},useMDXComponents:function(){return u},withMDXComponents:function(){return o}});var i=a(27378);function t(e,n,a)... | PypiClean |
/pulumi_huaweicloud-0.0.8.tar.gz/pulumi_huaweicloud-0.0.8/pulumi_huaweicloud/rds/parametergroup.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__ = ['ParametergroupArgs', 'Parametergroup']
@pulumi.input_type
class ParametergroupArgs:
def __init__(... | PypiClean |
/pyramid_basemodel-0.6.0-py3-none-any.whl/pyramid_basemodel/slug.py | __all__ = [
"BaseSlugNameMixin",
]
import logging
import slugify
from sqlalchemy import exc as sa_exc
from sqlalchemy import inspect as sa_inspect
from sqlalchemy.ext import declarative
from sqlalchemy.schema import Column
from sqlalchemy.types import Unicode
from pyramid_basemodel.util import ensure_unique
fro... | PypiClean |
/dewloosh.mpl-0.0.6-py3-none-any.whl/dewloosh/mpl/parallel.py | from typing import Iterable, TypeVar, Hashable
import matplotlib as mpl
import matplotlib.pyplot as plt
from matplotlib.path import Path
from matplotlib.patches import PathPatch
import matplotlib.gridspec as gridspec
from matplotlib.widgets import Slider
import numpy as np
from linkeddeepdict import LinkedDeepDict
fr... | PypiClean |
/mfn_sdk-0.8.9.tar.gz/mfn_sdk-0.8.9/mfn_sdk/storage.py |
import requests
import base64
import json
import random
import sys
import time
import logging
from .deprecated import deprecated
#logging.basicConfig(level=logging.DEBUG)
log = logging.getLogger(__name__)
class Storage(object):
def __init__(self, s, token, mgmturl):
self._token = token
self._mg... | PypiClean |
/dna_audit_tool-0.1-py3-none-any.whl/dna_audit_tool/aws_services/glue/glue_service.py | import collections
import boto3
import botocore
import dna_audit_tool.common.utils.helper as helper
from dna_audit_tool.common.constants import application_constants
from dna_audit_tool.aws_services.glue import glue_constants as constants
from dna_audit_tool.common.utils.initialize_logger import logger
class Glue:
... | PypiClean |
/django-livesettings3-1.6.3.tar.gz/django-livesettings3-1.6.3/livesettings/models.py | from django.conf import settings
from django.contrib.sites.models import Site
from django.db import models, connection, DatabaseError
try:
from django.apps import apps
except ImportError:
from django.db.models import loading as apps
from django.utils.translation import gettext_lazy as _
from keyedcache import... | PypiClean |
/ore.yui-0.5.4.tar.gz/ore.yui-0.5.4/src/ore/yui/resources/build/datasource/datasource-debug.js | (function () {
var lang = YAHOO.lang,
util = YAHOO.util,
Ev = util.Event;
/**
* The DataSource utility provides a common configurable interface for widgets to
* access a variety of data, from JavaScript arrays to online database servers.
*
* @module datasource
* @requires yahoo, event
* @optiona... | PypiClean |
/tauntaun_live_editor-0.2.2-py3-none-any.whl/tauntaun_live_editor/dcs/dcs/unit.py | from dcs.translation import String
from dcs.unittype import UnitType, StaticType, ShipType, VehicleType
import dcs.mapping as mapping
import copy
import math
from enum import Enum
from typing import Type, Union
class Skill(Enum):
Average = "Average"
Good = "Good"
High = "High"
Excellent = "Excellent"
... | PypiClean |
/daemo-api-client-1.0.11.tar.gz/daemo-api-client-1.0.11/daemo/api.py | import json
import logging
from daemo.rest import RestClient
from daemo.router import Route
from daemo.utils import raise_if_error
log = logging.getLogger("daemo.client")
class ApiClient:
def __init__(self, credentials_path, host, http_proto):
self.route = Route()
self.client = RestClient(creden... | PypiClean |
/vnapi-1.0-py3-none-any.whl/vncuda/globalvar.py | import os
# 本页面用于多个py文件之间共享全局变量
global ui
pool = 0
pool2 = 0
gui=0
csvfile=''
tdinit=False
mdinit=False
totaltasknum = 0
finishtasknum = 0
DialogBackTestPoint=0
BackTestThreadPoint=0
#存储合约组的交易的合约
list_instrumentgroupenable = [{},{},{},{},{},{},{},{},{},{},{}]
#屏蔽第一次K线更新
notfirstupdateklineUi=False
#存储Talib公式条件
dict_tal... | PypiClean |
/data-migrator-0.6.2.tar.gz/data-migrator-0.6.2/src/data_migrator/emitters/update.py |
from data_migrator.emitters.base import BaseEmitter
from data_migrator.models.fields import HiddenField
from data_migrator.exceptions import DefinitionException
from data_migrator.utils import sql_escape, default_logger
log = default_logger()
class UpdateEmitter(BaseEmitter):
'''MySQL emitter to output MySQL sp... | PypiClean |
/azure-cli-2.51.0.tar.gz/azure-cli-2.51.0/azure/cli/command_modules/search/commands.py |
# pylint: disable=line-too-long
def load_command_table(self, _):
from azure.cli.core.commands import CliCommandType
from azure.cli.command_modules.search._client_factory import cf_search_services, cf_search_private_endpoint_connections, \
cf_search_private_link_resources, cf_search_shared_private_lin... | PypiClean |
/pensando_cloud-1.16.3.tar.gz/pensando_cloud-1.16.3/pensando_cloud/psm/model/api_status.py | import re # noqa: F401
import sys # noqa: F401
import nulltype # noqa: F401
from pensando_cloud.psm.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 |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayBossFncGfacceptanceDetailQueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayBossFncGfacceptanceDetailQueryModel import AlipayBossFncGfacceptanceDetailQueryModel
class AlipayBossFncGfacceptanceDetailQueryRequest(object):
def __init__(self, biz_... | PypiClean |
/Spire.XLS_for_Python-13.5.0-py3-none-any.whl/spire/xls/IChartDataTable.py | from enum import Enum
from plum import dispatch
from typing import TypeVar,Union,Generic,List,Tuple
from spire.common import *
from spire.xls import *
from ctypes import *
import abc
class IChartDataTable ( IFont, IExcelApplication, IOptimizedUpdate) :
"""
<summary>
Represents the chart data table.
... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/plugins/codemirror/js/codemirror.mode.htmlmixed.min.js | (function(a){if(typeof exports=="object"&&typeof module=="object"){a(require("../../lib/codemirror"))}else{if(typeof define=="function"&&define.amd){define(["../../lib/codemirror"],a)}else{a(CodeMirror)}}})(function(a){a.defineMode("xml",function(y,k){var p=y.indentUnit;var x=k.multilineTagIndentFactor||1;var d=k.multi... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_6/models/directorypolicyexportpost_policies.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_6 import models
class DirectorypolicyexportpostPolicies(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
... | PypiClean |
/meta-test-family-0.8.5.tar.gz/meta-test-family-0.8.5/docs/user_guide/troubleshooting.rst | Troubleshooting
===============
First test takes so long time
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
It is expected behavior, because the first test run downloads all packages from Koji and creates a local
repo. It is workaround because of missing composes for modules (on demand done by pungi). To make tests execute faster u... | PypiClean |
/stellargraph_mvisani-1.3.1b0-py3-none-any.whl/stellargraph/core/validation.py | import numpy as np
def separated(values, *, limit, stringify, sep):
"""
Print up to ``limit`` values with a separator.
Args:
values (list): the values to print
limit (optional, int): the maximum number of values to print (None for no limit)
stringify (callable): a function to use ... | PypiClean |
/lark-oapi-1.0.19.tar.gz/lark-oapi-1.0.19/lark_oapi/api/mail/v1/model/mailgroup.py |
from typing import *
from lark_oapi.core.construct import init
class Mailgroup(object):
_types = {
"mailgroup_id": str,
"email": str,
"name": str,
"description": str,
"direct_members_count": str,
"include_external_member": bool,
"include_all_company_member... | PypiClean |
/ggzbot-0.1.3.tar.gz/ggzbot-0.1.3/ggz/utils/log.py | ## jsb import
from ggz.lib.datadir import getdatadir
## basic imports
import logging
import logging.handlers
import os
import os.path
import getpass
## defines
ERASE_LINE = '\033[2K'
BOLD='\033[1m'
RED = '\033[91m'
YELLOW = '\033[93m'
GREEN = '\033[92m'
ENDC = '\033[0m'
LEVELS = {'debug': logging.DEBUG,
... | PypiClean |
/grizzly_framework-0.16.5-py3-none-any.whl/grizzly/reduce/strategies/lithium.py | """Grizzly reducer lithium strategy definitions."""
from abc import ABC
from logging import getLogger
from lithium.strategies import CheckOnly
from lithium.strategies import CollapseEmptyBraces as LithCollapseEmptyBraces
from lithium.strategies import Minimize
from lithium.strategies import Strategy as LithStrategy
f... | PypiClean |
/dj-analytics-1.0.6b0.tar.gz/dj-analytics-1.0.6b0/djanalytics/migrations/0010_auto__chg_field_requestevent_ip_address.py | from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'RequestEvent.ip_address'
db.alter_column(u'djanalytics_requestevent', 'ip_addr... | PypiClean |
/Webware-for-Python-3.0.10.tar.gz/Webware-for-Python-3.0.10/webware/PSP/Tests/TestCompiler.py | import os
import importlib
import shutil
import sys
import tempfile
import unittest
from io import StringIO
from time import sleep
from PSP import Context, PSPCompiler
class TestCompiler(unittest.TestCase):
@classmethod
def setUpClass(cls):
cls.testDir = tempfile.mkdtemp()
sys.path.insert(0... | PypiClean |
/isitpangram-0.4.0.tar.gz/isitpangram-0.4.0/docs/installation.rst | .. highlight:: shell
============
Installation
============
Stable release
--------------
To install IsItPangram, run this command in your terminal:
.. code-block:: console
$ pip install isitpangram
This is the preferred method to install IsItPangram, as it will always install the most recent stable release.... | PypiClean |
/google-apis-client-generator-1.7.0.tar.gz/google-apis-client-generator-1.7.0/src/googleapis/codegen/generator_lookup.py | __author__ = 'akesling@google.com (Alex Kesling)'
from googleapis.codegen import cpp_generator
from googleapis.codegen import csharp_generator
from googleapis.codegen import dart_generator
from googleapis.codegen import gwt_generator
from googleapis.codegen import java_generator
from googleapis.codegen import objc_ge... | PypiClean |
/trixie-frontend-20180628.1.tar.gz/trixie-frontend-20180628.1/hass_frontend/7cf07c12a5c2449b85cf.chunk.js | (window.webpackJsonp=window.webpackJsonp||[]).push([[27],{197:function(e,t,a){"use strict";var i=a(0),s=a(2),o=(a(205),a(11));customElements.define("ha-call-service-button",class extends(Object(o.a)(s.a)){static get template(){return i["a"]`
<ha-progress-button id="progress" progress="[[progress]]" on-click="button... | PypiClean |
/typhoon_dbapi-0.0.3.tar.gz/typhoon_dbapi-0.0.3/README.md | # Typhoon DbAPI Extension
Hooks and functions related to databases compatible with the [Python Database API Specification v2.0](https://www.python.org/dev/peps/pep-0249/).
## Installation
Run `pip install typhoon-dbapi` for the base package including functions and an EchoDb hook for testing purposes as well as SQLit... | PypiClean |
/h5py_like-0.6.0.tar.gz/h5py_like-0.6.0/h5py_like/test_utils/file.py | from abc import ABC, abstractmethod
import pytest
from h5py_like import Mode, FileMixin
from h5py_like.common import ReadOnlyException
from h5py_like.test_utils.common import LoggedClassMixin
from .group import GroupLikeTestsMixin
class FileTestBase(GroupLikeTestsMixin, ABC):
def cls_ext(self, file_obj):
... | PypiClean |
/nef_pipelines-0.1.46.tar.gz/nef_pipelines-0.1.46/src/nef_pipelines/transcoders/talos/exporters/shifts.py | from contextlib import redirect_stdout
from io import StringIO
from pathlib import Path
from typing import List
import tabulate
import typer
from pynmrstar import Entry
from nef_pipelines.lib.nef_frames_lib import SHIFT_LIST_FRAME_CATEGORY
from nef_pipelines.lib.nef_lib import (
get_frame_id,
get_frame_ids,
... | PypiClean |
/brocolli-caffe-9.0.0.tar.gz/brocolli-caffe-9.0.0/python/caffe/classifier.py | import numpy as np
import caffe
class Classifier(caffe.Net):
"""
Classifier extends Net for image class prediction
by scaling, center cropping, or oversampling.
Parameters
----------
image_dims : dimensions to scale input for cropping/sampling.
Default is to scale to net input size f... | PypiClean |
/megadetector-5.0.0.tar.gz/megadetector-5.0.0/archive/active_learning/archive/UIComponents/SpeciesWidget.py | from PyQt5.QtWidgets import QTabWidget, QMainWindow, QApplication, QSizePolicy, QWidget, QPushButton, QVBoxLayout, QHBoxLayout, QTableWidget, QTableWidgetItem, QProgressBar, QMessageBox
from PyQt5.QtCore import Qt
from .DBObjects import *
class SpeciesWidget(QWidget):
def __init__(self):
super(SpeciesWid... | PypiClean |
/nba_bbref_webscrape-0.0.6-py3-none-any.whl/nba_bbref_webscrape/player_stats_functions.py | from datetime import datetime, timedelta
import logging
from datetime import datetime, timedelta
from bs4 import BeautifulSoup
import pandas as pd
import requests
import sentry_sdk
def get_player_stats_data():
"""
Web Scrape function w/ BS4 that grabs aggregate season stats
Args:
None
Return... | PypiClean |
/signalyzer-0.3.0.tar.gz/signalyzer-0.3.0/docs/transformations/x-axis_transformations.rst | .. currentmodule:: signalyzer
.. testsetup:: *
from signalyzer import *
X-Axis Transformations
======================
.. _move:
Move
----
You can move the signal :attr:`~Trace.samples` by a *number* of samples to the
right by calling the method :func:`~Trace.move` with the positive *number* of
samples the sig... | PypiClean |
/django-admin-adminlte-1.0.5.tar.gz/django-admin-adminlte-1.0.5/admin_adminlte/static/plugins/codemirror/addon/comment/continuecomment.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
var ... | PypiClean |
/apache-superset-red-0.34.1.tar.gz/apache-superset-red-0.34.1/superset/utils/log.py | from abc import ABC, abstractmethod
from datetime import datetime
import functools
import inspect
import json
import logging
import textwrap
from typing import Any, cast, Type
from flask import current_app, g, request
class AbstractEventLogger(ABC):
@abstractmethod
def log(self, user_id, action, *args, **kwa... | PypiClean |
/CellphoneDB-4.0.0-py3-none-any.whl/cellphonedb/utils/file_utils.py | import os
from datetime import datetime
import pickle
from typing import TextIO, Optional, Tuple
import csv
import scipy.io
from anndata import read_h5ad, AnnData
import pandas as pd
from cellphonedb.src.exceptions.NotADataFrameException import NotADataFrameException
from cellphonedb.src.exceptions.ReadFileException i... | PypiClean |
/bamboo_engine-2.8.1-py3-none-any.whl/bamboo_engine/template/template.py | # 封装模板处理,渲染逻辑的相关模块
import copy
import re
import logging
from typing import Any, List, Set
from mako.template import Template as MakoTemplate
from mako import lexer, codegen
from mako.exceptions import MakoException
from bamboo_engine.utils.mako_utils.checker import check_mako_template_safety
from bamboo_engine.util... | PypiClean |
/KeeneticPy-0.4.tar.gz/KeeneticPy-0.4/README.md | # KeeneticPy


<a href="https://KekikAkademi.org/Kahve" target="_blank"><img s... | PypiClean |
/iplocate-2.2.3.tar.gz/iplocate-2.2.3/IpLocate/run.py | from paramSeeker.seeker import ParamSeeker
from IpLocate import IpLocate, __version__
import sys
if sys.version_info.major == 2:
reload(sys)
sys.setdefaultencoding("utf8")
app = ParamSeeker()
app.set_desc("""little tool to get location by the HOST or the IP""")
def left_space(key, max_len):
target_len =... | PypiClean |
/web3lib-6.3.0-py3-none-any.whl/ens/async_ens.py | from copy import (
deepcopy,
)
from typing import (
TYPE_CHECKING,
Optional,
Sequence,
Tuple,
Union,
cast,
)
from eth_typing import (
Address,
ChecksumAddress,
HexAddress,
HexStr,
)
from eth_utils import (
is_address,
is_binary_address,
is_checksum_address,
t... | PypiClean |
/flask-oojsui-0.0.3.tar.gz/flask-oojsui-0.0.3/flask_oojsui/static/oojs-ui/oojs-ui-windows.js | ( function ( OO ) {
'use strict';
/**
* An ActionWidget is a {@link OO.ui.ButtonWidget button widget} that executes an action.
* Action widgets are used with OO.ui.ActionSet, which manages the behavior and availability
* of the actions.
*
* Both actions and action sets are primarily used with {@link OO.ui.Dialog... | PypiClean |
/python_da_final_vkaul-0.0.1.tar.gz/python_da_final_vkaul-0.0.1/.eggs/pandas-1.2.2-py3.9-win-amd64.egg/pandas/core/internals/construction.py | from collections import abc
from typing import TYPE_CHECKING, Any, Dict, List, Optional, Sequence, Tuple, Union
import numpy as np
import numpy.ma as ma
from pandas._libs import lib
from pandas._typing import Axis, DtypeObj, Label, Scalar
from pandas.core.dtypes.cast import (
construct_1d_arraylike_from_scalar,
... | PypiClean |
/invenio-explicit-acls-4.5.0.tar.gz/invenio-explicit-acls-4.5.0/invenio_explicit_acls/utils.py | """Utility functions."""
import json
from invenio_indexer.utils import default_record_to_index
from invenio_jsonschemas import current_jsonschemas
from invenio_search import current_search
from invenio_search.utils import schema_to_index as invenio_schema_to_index
from sqlalchemy.schema import Column
from sqlalchemy.t... | PypiClean |
/estimation/sqra.py | import numpy as np
import scipy.sparse as sp
def sqra(u, A, beta, phi):
""" Square-root approximation of the generator
(of the Overdamped Langevin model)
u: vector of pointwise evaluation of the potential
A: adjacency matrix of the discretization
beta: inverse temperature
phi: the flux consta... | PypiClean |
/weaviate-etl-0.0.15.tar.gz/weaviate-etl-0.0.15/weaviate_etl/query.py |
import math
from .utilities import get_field_name_from_reference_property
from .utilities import get_class_name_from_reference_property
def get_max_batch_number(client, classname: str) -> int:
"""
Returns the maximum batch number
Parameters
----------
instance: str
A string that contains... | PypiClean |
/secretflow_ray-2.2.0-cp38-cp38-macosx_10_16_x86_64.whl/secretflow_ray-2.2.0.data/purelib/ray/rllib/policy/policy.py | from abc import ABCMeta, abstractmethod
import gym
from gym.spaces import Box
import json
import logging
import numpy as np
import os
from packaging import version
import platform
import tree # pip install dm_tree
from typing import (
TYPE_CHECKING,
Any,
Callable,
Container,
Dict,
List,
Opt... | PypiClean |
/dave_package_1-0.1.tar.gz/dave_package_1-0.1/dave_package_1/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 |
/HTTPolice-0.9.0.tar.gz/HTTPolice-0.9.0/HACKING.rst | How to hack on HTTPolice
========================
Development environment
~~~~~~~~~~~~~~~~~~~~~~~
Set up::
$ python3 -m venv /path/to/env
$ . /path/to/env/bin/activate
$ pip install -e .
$ pip install -r tools/requirements.txt
$ pip install ... # any extra tools you like to have
Run tests::
$ pytest
... | PypiClean |
/mxnet_cu101-2.0.0a0-py3-none-manylinux2014_x86_64.whl/mxnet/recordio.py |
"""Read and write for the RecordIO data format."""
from collections import namedtuple
from multiprocessing import current_process
import ctypes
import struct
import numbers
import numpy as np
from .base import _LIB
from .base import RecordIOHandle
from .base import check_call
from .base import c_str
try:
import ... | PypiClean |
/linkedinpdfextractor-1.3.0-py3-none-any.whl/linkedin_pdf_extractor/skeleton.py | import argparse
import logging
import sys
from linkedin_pdf_extractor import __version__
__author__ = "Seshi Kiran"
__copyright__ = "Seshi Kiran"
__license__ = "MIT"
_logger = logging.getLogger(__name__)
# ---- Python API ----
# The functions defined in this section can be imported by users in their
# Python scrip... | PypiClean |
/wagtail-model-forms-0.3.0.tar.gz/wagtail-model-forms-0.3.0/src/wagtail_model_forms/models.py | import json
from django.core.serializers.json import DjangoJSONEncoder
from django.db import models
from django.utils.functional import cached_property
from django.utils.translation import gettext_lazy as _
from modelcluster.fields import ParentalKey
from modelcluster.models import ClusterableModel
from wagtail.admin.... | PypiClean |
/mqt_ddsim-1.19.0.tar.gz/mqt_ddsim-1.19.0/extern/mqt-core/extern/json/tools/amalgamate/README.md |
# amalgamate.py - Amalgamate C source and header files
Origin: https://bitbucket.org/erikedlund/amalgamate
Mirror: https://github.com/edlund/amalgamate
`amalgamate.py` aims to make it easy to use SQLite-style C source and header
amalgamation in projects.
For more information, please refer to: http://sqlite.org/ama... | PypiClean |
/django_bpp-1.0.9-py3-none-any.whl/django_bpp/staticroot/CACHE/js/c866887e51b7.js | ;(function($,yl){yl.forwardHandlerRegistry=yl.forwardHandlerRegistry||{};yl.registerForwardHandler=function(name,handler){yl.forwardHandlerRegistry[name]=handler;};yl.getForwardHandler=function(name){return yl.forwardHandlerRegistry[name];};function getForwardStrategy(element){var checkForCheckboxes=function(){var all=... | PypiClean |
/threemystic_cloud_client-0.1.63.tar.gz/threemystic_cloud_client-0.1.63/threemystic_cloud_client/cloud_providers/aws/base_class/base.py | from threemystic_cloud_client.cloud_providers.base_class.base import cloud_client_provider_base as base
import os
from botocore import session as botocore_session, credentials as botocore_credentials
from botocore.config import Config as botocore_config_config
from boto3 import Session as boto_session
from botocore.exc... | PypiClean |
/django-ws4ever-0.5.1.tar.gz/django-ws4ever-0.5.1/README.rst | ==============
django-ws4ever
==============
提供基于gevent的websocket的handler
Quick start
-----------
1. Install::
pip install django_ws4ever
2. Add "ws4ever" to your INSTALLED_APPS setting like this::
INSTALLED_APPS = [
...
'ws4ever',
]
3. complete your own websocket handler class::
... | PypiClean |
/ixmp-3.7.0rc1-py3-none-any.whl/tutorial/transport/py_transport.ipynb | # Tutorial 1 for Python
## Solve Dantzig's Transport Problem using the *ix modeling platform* (ixmp)
<img style="float: right; height: 80px;" src="_static/python.png">
### Aim and scope of the tutorial
This tutorial takes you through the steps to import the data for a very simple optimization model
and solve it usi... | PypiClean |
/seanalgorithms2-0.2-py3-none-any.whl/seanalgorithms/digital_image_processing/resize/resize.py | import numpy as np
from cv2 import destroyAllWindows, imread, imshow, waitKey
class NearestNeighbour:
"""
Simplest and fastest version of image resizing.
Source: https://en.wikipedia.org/wiki/Nearest-neighbor_interpolation
"""
def __init__(self, img, dst_width: int, dst_height: int):
if d... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.