id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/runit_server-0.2.4-py3-none-any.whl/runit_server/static/js/ace/mode-csound_orchestra.js | ace.define("ace/mode/csound_preprocessor_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,s=function(e){this.embeddedRulePrefix=e===undefined?"":e,this.semicolonComments={toke... | PypiClean |
/pyside2_mess_client-0.1.tar.gz/pyside2_mess_client-0.1/client/common/descriptors.py |
from jim.errors import MaxLongUsernameError
from common.host_ping import host_ping
from log.client_log_config import logger
from dynaconf import settings
class AddressField:
"""
Дескриптор для сокета
"""
def __init__(self):
super().__init__()
self._addr = None
self._port = No... | PypiClean |
/lollygag-cli-0.0.1.tar.gz/lollygag-cli-0.0.1/lollygag/vendor/npyscreen/compatibility_code/npysNPSTree.py | import weakref
import collections
import operator
class NPSTreeData(object):
CHILDCLASS = None
def __init__(self, content=None, parent=None, selected=False, selectable=True,
highlight=False, expanded=True, ignoreRoot=True, sort_function=None):
self.setParent(parent)
self.set... | PypiClean |
/pixiedust_flightpredict-0.12.tar.gz/pixiedust_flightpredict-0.12/pixiedust_flightpredict/running/flightAccess.py |
import requests
import os
import pixiedust
import pytz
from dateutil.parser import parse
import datetime
from pixiedust_flightpredict import Configuration
myLogger=pixiedust.getLogger(__name__)
flexBaseUrl = "https://api.flightstats.com/flex/"
def buildUrl(path, **kwargs):
appId=os.environ.get("appId") or Confi... | PypiClean |
/hydratk-client-0.1.0.tar.gz/hydratk-client-0.1.0/doc/rst/module/ext/client/core/explorer.rst | .. _module_ext_client_core_explorer:
explorer
========
This sections contains module documentation of explorer module.
Explorer
^^^^^^^^
Class for Explorer frame.
**Attributes** :
* _instance - instance reference
* _instance_created - bool, True if created
* _root - Gui instance reference
* _trn - Translator inst... | PypiClean |
/taulant4_publish_pypi_medium-0.6.tar.gz/taulant4_publish_pypi_medium-0.6/README.rst |
Example Project
===============
This is an example project that is used to demonstrate how to publish
Python packages on PyPI. To take a look at the step by step guide on how to
do so, make sure you read `my article on Towards Data Science <https://towardsdatascience.com/how-to-upload-your-python-package-to-pypi-de1... | PypiClean |
/rp-0.1.923.tar.gz/rp-0.1.923/rp-0.1.673/Olde/rp 11.48.10 PM/rp_ptpython/python_input.py | from __future__ import unicode_literals
from prompt_toolkit import AbortAction
from prompt_toolkit.auto_suggest import AutoSuggestFromHistory,ConditionalAutoSuggest
from prompt_toolkit.buffer import Buffer
from prompt_toolkit.document import Document
from prompt_toolkit.enums import DEFAULT_BUFFER,EditingMode
from pro... | PypiClean |
/dj-smail-0.7.0.tar.gz/dj-smail-0.7.0/CONTRIBUTING.md | # How to contribute #
We'd love to accept your patches and contributions to this project. There are
a just a few small guidelines you need to follow.
## Submitting a patch ##
1. It's generally best to start by opening a new issue describing the bug or
feature you're intending to fix. Even if you think it's... | PypiClean |
/xyz_wechat-0.1.8-py3-none-any.whl/xyz_wechat/migrations/0001_initial.py | from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
import xyz_util.modelutils
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MOD... | PypiClean |
/resto_client-0.5.0.tar.gz/resto_client-0.5.0/resto_client/entities/resto_collections.py | from typing import Dict, List, Optional # @NoMove
from prettytable import PrettyTable
from resto_client.base_exceptions import RestoClientUserError
from .resto_collection import RestoCollection
class RestoCollections():
"""
Class containing the description of a set of collections as well as their synthes... | PypiClean |
/jmbo-search-0.1.0.tar.gz/jmbo-search-0.1.0/search/signals.py | from __future__ import print_function
import logging
from django.db import models
from django.core.exceptions import ObjectDoesNotExist
from django.contrib.contenttypes.models import ContentType
from haystack import signals
from haystack.exceptions import NotHandled
from haystack import connection_router, connections... | PypiClean |
/zopyx.existdb-0.2.11.1.zip/zopyx.existdb-0.2.11.1/zopyx/existdb/browser/resources/ace-builds/src/theme-tomorrow_night.js | define('ace/theme/tomorrow_night', ['require', 'exports', 'module' , 'ace/lib/dom'], function(require, exports, module) {
exports.isDark = true;
exports.cssClass = "ace-tomorrow-night";
exports.cssText = ".ace-tomorrow-night .ace_gutter {\
background: #25282c;\
color: #C5C8C6\
}\
.ace-tomorrow-night .ace_print-margin ... | PypiClean |
/jac_nlp-1.4.1.9.tar.gz/jac_nlp-1.4.1.9/README.md | # Jaseci NLP Package `jac_nlp`
The `jac_nlp` package contains a collection of state-of-the-art NLP models that can be used to perform various nlp tasks such as named entity recongnition, text summerization, embedding generation, topic extraction etc. following is a list of all the models available in the `jac_nlp` pac... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/connectedvmwarevsphere/v20230301preview/get_virtual_machine_template.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
__all__ = [
'GetVirtualMachineTemplateResult',
'AwaitableGetVirtualMachineTemplateResult',
'get_virtual_machine_template',
... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/groups/item/team/channels/item/tabs/item/teams_app/teams_app_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 |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/moment/src/locale/fa.js |
import moment from '../moment';
var symbolMap = {
1: '۱',
2: '۲',
3: '۳',
4: '۴',
5: '۵',
6: '۶',
7: '۷',
8: '۸',
9: '۹',
0: '۰',
},
numberMap = {
'۱': '1',
'۲': '2',
'۳': '3',
'۴': '4',
'۵'... | PypiClean |
/whitehead_ai_mhgrn-0.1.0-py3-none-any.whl/whitehead_ai_mhgrn/utils/visualize.py | import numpy as np
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
from sklearn.manifold import TSNE
import argparse
try:
from .utils import check_path
except ModuleNotFoundError:
from utils import check_path
colors = ['b', 'r', 'g', 'k', 'y', 'c']
categories = {
'animals': ['dog... | PypiClean |
/sci-newsletter-0.50.tar.gz/sci-newsletter-0.50/newsletter/migrations/0003_changing_mail_templates.py | from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import DataMigration
from django.db import models
class Migration(DataMigration):
def forwards(self, orm):
"Write your forwards methods here."
# Note: Don't use "from appname.models import ModelName".
... | PypiClean |
/azure-digitaltwins-core-patched-1.0.0b1.tar.gz/azure-digitaltwins-core-patched-1.0.0b1/azure/digitaltwins/core/_generated/aio/operations_async/_event_routes_operations_async.py | from typing import Any, AsyncIterable, Callable, Dict, Generic, Optional, TypeVar
import warnings
from azure.core.async_paging import AsyncItemPaged, AsyncList
from azure.core.exceptions import HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
from azure.core.pipeline import PipelineResponse
fro... | PypiClean |
/mavometer-0.1.0.tar.gz/mavometer-0.1.0/README.md | # Mavometer
**Mavometer** is a PyQt GUI to display MAVLink Connection Information and
Statistics.
It can operate on a live connection (e.g. the stream mirrored by
[Mission Planner](http://ardupilot.org/planner/)) or it can read a file.
It provides connection-level information, such as protocol version, and
message i... | PypiClean |
/signal_na-0.0.28-py3-none-any.whl/signal_pkg/signaux/signal_triangle.py | import time
import os, sys
import numpy as np
import matplotlib.pyplot as plt
sys.path.append(os.path.join(os.path.dirname(os.path.realpath(__file__)), os.pardir))
import base.constantes_base as cst
import base.utiles_base as utb
from base.axe_x_base import AxeXBase
from signaux.signal_complet import SignalComplet
... | PypiClean |
/az_image-converter-0.0.3.tar.gz/az_image-converter-0.0.3/README.md | # Az Image Converter Library

[](https://choosealicense.com/licenses/mit/)
Az Image Converter is a Python library that provides a simple and convenient way to convert images between different... | PypiClean |
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/common_source_registration_request_params9296962d9acf46a58824_f1b5710ec813_mongo_db_source_registration_params_wrapper_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 |
/keras-retinanet-1.0.0.tar.gz/keras-retinanet-1.0.0/keras_retinanet/preprocessing/pascal_voc.py | from ..preprocessing.generator import Generator
from ..utils.image import read_image_bgr
import os
import numpy as np
from six import raise_from
from PIL import Image
try:
import xml.etree.cElementTree as ET
except ImportError:
import xml.etree.ElementTree as ET
voc_classes = {
'aeroplane' : 0,
'bi... | PypiClean |
/Gnosis-0.1.1.tar.gz/Gnosis-0.1.1/gnosis/xml/pickle/ext/_mutate.py | from types import *
from gnosis.util.introspect import isInstanceLike, hasCoreData
import gnosis.pyconfig
XMLPicklingError = "gnosis.xml.pickle.XMLPicklingError"
XMLUnpicklingError = "gnosis.xml.pickle.XMLUnpicklingError"
# hooks for adding mutators
# each dict entry is a list of chained mutators
_mutators_by_classty... | PypiClean |
/django-oscar-pg-search-0.9.6.tar.gz/django-oscar-pg-search-0.9.6/README.md | [](https://github.com/snake-soft/django-oscar-pg-search/actions/workflows/django.yml)
[](https://codeclimate.com/gi... | PypiClean |
/anybox.funkload.openerp-0.2.tar.gz/anybox.funkload.openerp-0.2/README.txt | Funkload base test cases for Openerp
====================================
Introduction
~~~~~~~~~~~~
This package provides the ``OpenERPTestCase`` class, subclassing
``FunkloadTestCase`` with methods tailored for OpenERP functionnal and
load testing through the XML-RPC or JSON-RPC APIs.
It features login and user mana... | PypiClean |
/autotrain_advanced-0.6.31-py3-none-any.whl/autotrain/cli/run_tabular.py | import os
import sys
from argparse import ArgumentParser
import torch
from autotrain import logger
from autotrain.backend import EndpointsRunner, SpaceRunner
from autotrain.trainers.tabular.__main__ import train as train_tabular
from autotrain.trainers.tabular.params import TabularParams
from . import BaseAutoTrainC... | PypiClean |
/tfspark-1.3.5.tar.gz/tfspark-1.3.5/tensorflowonspark/gpu_info.py |
from __future__ import absolute_import
from __future__ import division
from __future__ import nested_scopes
from __future__ import print_function
import ctypes as ct
import logging
import platform
import random
import subprocess
import time
import tensorflow as tf
MAX_RETRIES = 3 #: Maximum retries to all... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/apimanagement/v20230301preview/workspace_api_operation.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__ = ['WorkspaceApiOperationArgs', 'WorkspaceApiOperation']
@pulumi.input_type
class WorkspaceApiOperationA... | PypiClean |
/nova-27.1.0.tar.gz/nova-27.1.0/doc/source/contributor/microversions.rst | API Microversions
=================
Background
----------
Nova uses a framework we call 'API Microversions' for allowing changes
to the API while preserving backward compatibility. The basic idea is
that a user has to explicitly ask for their request to be treated with
a particular version of the API. So breaking cha... | PypiClean |
/openstack_heat-20.0.0.0rc2-py3-none-any.whl/heat/engine/resources/openstack/heat/software_deployment.py |
import copy
import itertools
import uuid
from oslo_config import cfg
from oslo_log import log as logging
from oslo_utils import timeutils
from heat.common import exception
from heat.common.i18n import _
from heat.engine import attributes
from heat.engine import constraints
from heat.engine import output
from heat.en... | PypiClean |
/solidlibs-2.6.7-py3-none-any.whl/django_addons/static/admin/js/actions.min.5fa8cb0403f1.js | (function(a){var f;a.fn.actions=function(e){var b=a.extend({},a.fn.actions.defaults,e),g=a(this),k=!1,l=function(){a(b.acrossClears).hide();a(b.acrossQuestions).show();a(b.allContainer).hide()},m=function(){a(b.acrossClears).show();a(b.acrossQuestions).hide();a(b.actionContainer).toggleClass(b.selectedClass);a(b.allCon... | PypiClean |
/bob.med.tb-1.0.2.zip/bob.med.tb-1.0.2/bob/med/tb/engine/predictor.py |
import os
import time
import datetime
import csv
import shutil
import PIL
import numpy
from tqdm import tqdm
import matplotlib.pyplot as plt
from matplotlib.patches import Rectangle
from matplotlib.gridspec import GridSpec
import torch
import torchvision.transforms.functional as VF
from torchvision import transforms... | PypiClean |
/cs_sender-1.5.1.tar.gz/cs_sender-1.5.1/cs_sender/api.py | import logging
import requests
logger = logging.getLogger(__name__)
def cs_api(func):
def wrapper(*args, **kwargs):
try:
func(*args, **kwargs)
except Exception as e:
logger.warning(f'API error, {e}, funciton: {func.__name__}, args: {args}, kwargs: {kwargs}')
return w... | PypiClean |
/osmosis_protobuf-0.3.1.tar.gz/osmosis_protobuf-0.3.1/src/osmosis_protobuf/osmosis/epochs/query_pb2_grpc.py | import grpc
from ...osmosis.epochs import query_pb2 as osmosis_dot_epochs_dot_query__pb2
class QueryStub(object):
"""Query defines the gRPC querier service.
"""
def __init__(self, channel):
"""Constructor.
Args:
channel: A grpc.Channel.
"""
self.EpochInfos = ch... | PypiClean |
/distru-0.1.1.tar.gz/distru-0.1.1/README.md | Distru package
===============
This is a simple project that is used to grasp how to publish
Python packages on PyPI. This package is used to generate or read data
from a specific distribution and make some functionality or visualize it.
Installing
============
pip install distru
Project description
=============... | PypiClean |
/siya-1.0.tar.gz/siya-1.0/alms/static/mode/factor/factor.js |
// Factor syntax highlight - simple mode
//
// by Dimage Sapelkin (https://github.com/kerabromsmu)
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../../addon/mode/simple"));
else if (typeof define == "function" && define.... | PypiClean |
/jupyterlab_niryo_one-0.1.0a0-py3-none-any.whl/jupyterlab_niryo_one/labextension/static/978.ed98d238bba9e3aeeebd.js | (self.webpackChunkjupyterlab_niryo_one=self.webpackChunkjupyterlab_niryo_one||[]).push([[978],{9978:function(T,s,_){var e,i,a;i=[_(8256)],void 0===(a="function"==typeof(e=function(T){return(T={Msg:{}}).Msg.ADD_COMMENT="Lisa kommentaar",T.Msg.CANNOT_DELETE_VARIABLE_PROCEDURE="Muutujat '%1' ei saa kustutada, sest see on ... | PypiClean |
/azure_mgmt_containerservice-26.0.0-py3-none-any.whl/azure/mgmt/containerservice/v2021_02_01/_container_service_client.py |
from copy import deepcopy
from typing import Any, TYPE_CHECKING
from azure.core.rest import HttpRequest, HttpResponse
from azure.mgmt.core import ARMPipelineClient
from . import models as _models
from .._serialization import Deserializer, Serializer
from ._configuration import ContainerServiceClientConfiguration
fro... | PypiClean |
/django-admin-adminlte-1.0.5.tar.gz/django-admin-adminlte-1.0.5/admin_adminlte/static/plugins/summernote/lang/summernote-ja-JP.min.js | !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(self,(function(){return(e=jQuery).extend(e.summernote.lang,{"ja-JP":{font:{bold:"太字",italic:"斜体",... | PypiClean |
/bumble-0.0.165.tar.gz/bumble-0.0.165/docs/mkdocs/src/index.md | Bumble, a Python Bluetooth Stack
================================
{ width=100 height=100 }
A Bluetooth stack, written in Python, useful for emulation, test, experimentation, and implementation of any sort of virtual device, with virtual or physical Bluetooth controllers.
The project ini... | PypiClean |
/youtube_dl-tmsl-2021.12.17.tar.gz/youtube_dl-tmsl-2021.12.17/youtube_dl/extractor/groupon.py | from __future__ import unicode_literals
from .common import InfoExtractor
class GrouponIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?groupon\.com/deals/(?P<id>[^/?#&]+)'
_TEST = {
'url': 'https://www.groupon.com/deals/bikram-yoga-huntington-beach-2#ooid=tubGNycTo_9Uxg82uESj4i61EYX8nyuf',
... | PypiClean |
/privacyIDEA-3.8.1.tar.gz/privacyIDEA-3.8.1/privacyidea/lib/policydecorators.py | import logging
import re
from privacyidea.lib.policy import Match
from privacyidea.lib.error import PolicyError, privacyIDEAError
import functools
from privacyidea.lib.policy import ACTION, SCOPE, ACTIONVALUE, LOGINMODE
from privacyidea.lib.user import User
from privacyidea.lib.utils import parse_timelimit, parse_timed... | PypiClean |
/vipster-1.19.1.zip/vipster-1.19.1/external/pybind11/docs/changelog.rst | .. _changelog:
Changelog
#########
Starting with version 1.8.0, pybind11 releases use a `semantic versioning
<http://semver.org>`_ policy.
v2.6.0 (Oct 21, 2020)
---------------------
See :ref:`upgrade-guide-2.6` for help upgrading to the new version.
New features:
* Keyword-only arguments supported in Python 2 or... | PypiClean |
/django-twemoir-0.2.1.tar.gz/django-twemoir-0.2.1/twemoir/static/admin/js/bootstrap-collapse.js | !function ($) {
"use strict"; // jshint ;_;
/* COLLAPSE PUBLIC CLASS DEFINITION
* ================================ */
var Collapse = function (element, options) {
this.$element = $(element)
this.options = $.extend({}, $.fn.collapse.defaults, options)
if (this.options.parent) {
this.$parent... | PypiClean |
/csnl-vae-olaralex-2.0.tar.gz/csnl-vae-olaralex-2.0/README.md | # Wigner-CSNL textures
## Variational Autoencoders on texture images for neuroscience
* using different datasets such as mnist, fashion-mnist, cifar-10, textures, natural textures
* binarization of images and zca-whitening is an option in loading time
* training is available with random contrast generator
* differenc... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/containerservice/v20200601/list_managed_cluster_monitoring_user_credentials.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'ListManagedClusterMonitoringUserCredentialsResult',
'AwaitableListManagedClusterMonitoringUserCredentialsResult',
'list_mana... | PypiClean |
/nemo_toolkit-1.20.0-py3-none-any.whl/nemo/collections/nlp/modules/common/megatron/megatron_encoders.py |
"""Transformer based language model."""
from nemo.collections.nlp.modules.common.megatron.megatron_perceiver_encoders import MegatronPerceiverEncoderModule
from nemo.collections.nlp.modules.common.megatron.megatron_transformer_encoder import MegatronTransformerEncoderModule
from nemo.collections.nlp.modules.common.meg... | PypiClean |
/coordsystems-0.0.1.tar.gz/coordsystems-0.0.1/src/__init__.py | from abc import ABC
from numbers import Number
from typing import Union
import numpy as np
from plum import dispatch
class Coordinate(ABC):
pass
class Cartesian(Coordinate):
point: np.ndarray
@dispatch
def __init__(self, point: Union[list, np.ndarray]):
self.point = np.array(point)
@d... | PypiClean |
/django_adminlte3-0.1.6-py3-none-any.whl/adminlte3/static/admin-lte/plugins/jqvmap/jquery.vmap.js | var VectorCanvas = function (width, height, params) {
this.mode = window.SVGAngle ? 'svg' : 'vml';
this.params = params;
if (this.mode === 'svg') {
this.createSvgNode = function (nodeName) {
return document.createElementNS(this.svgns, nodeName);
};
} else {
try {
if (!document.namespace... | PypiClean |
/acconeer_exptool-7.4.0-py3-none-any.whl/acconeer/exptool/a121/algo/surface_velocity/_example_app.py |
from __future__ import annotations
import warnings
from typing import Any, Optional, Tuple
import attrs
import h5py
import numpy as np
from acconeer.exptool import a121
from acconeer.exptool.a121._core.entities.configs.config_enums import IdleState, Profile
from acconeer.exptool.a121._core.utils import is_divisor_o... | PypiClean |
/test_9112736-1.15.48.tar.gz/test_9112736-1.15.48/client/utils/firebase/sseclient.py | import re
import time
import warnings
import requests
# Technically, we should support streams that mix line endings. This regex,
# however, assumes that a system will provide consistent line endings.
end_of_field = re.compile(r'\r\n\r\n|\r\r|\n\n')
class SSEClient(object):
def __init__(self, url, last_id=None,... | PypiClean |
/spikesorting_tsne-1.0.20.tar.gz/spikesorting_tsne-1.0.20/spikesorting_tsne/gpu.py | import numpy as np
from numba import cuda
import pyculib.blas as cublas
import pyculib.sorting as sorting
import numba
from numba import float32, guvectorize
import math
from . import stopwatch as sw
THREADS_PER_BLOCK = 32
@guvectorize([(float32[:, :], float32[:])], '(m,k)->(m)', nopython=True)
def _create_dot_produ... | PypiClean |
/auto_feature_prod-0.0.1-py3-none-any.whl/auto_feature_prod/ftools.py | import re
from featuretools.primitives import make_agg_primitive,make_trans_primitive
from featuretools.variable_types import DateOfBirth,Text,Numeric,Categorical,Boolean,Index,DatetimeTimeIndex,Datetime,TimeIndex,Discrete,Ordinal
from scipy.stats import mode
from featuretools.primitives import TimeSinceLast,TimeSinceF... | PypiClean |
/crams_collection-1.0.0.5.tar.gz/crams_collection-1.0.0.5/crams_collection/settings.py | import logging
from pathlib import Path
# Build paths inside the project like this: BASE_DIR / 'subdir'.
BASE_DIR = Path(__file__).resolve(strict=True).parent.parent
# Quick-start development settings - unsuitable for production
# See https://docs.djangoproject.com/en/3.1/howto/deployment/checklist/
# SECURITY WARN... | PypiClean |
/django-mdeditor-0.1.20.tar.gz/django-mdeditor-0.1.20/mdeditor/static/mdeditor/js/lib/codemirror/mode/eiffel/eiffel.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 |
/SQLAlchemy-smartnow-1.4.31.tar.gz/SQLAlchemy-smartnow-1.4.31/lib/sqlalchemy/dialects/postgresql/pg8000.py | r"""
.. dialect:: postgresql+pg8000
:name: pg8000
:dbapi: pg8000
:connectstring: postgresql+pg8000://user:password@host:port/dbname[?key=value&key=value...]
:url: https://pypi.org/project/pg8000/
.. versionchanged:: 1.4 The pg8000 dialect has been updated for version
1.16.6 and higher, and is again... | PypiClean |
/troposphere_mate-0.0.14.tar.gz/troposphere_mate-0.0.14/troposphere_mate/servicediscovery.py | import sys
if sys.version_info.major >= 3 and sys.version_info.minor >= 5: # pragma: no cover
from typing import Union, List, Any
import troposphere.servicediscovery
from troposphere.servicediscovery import (
DnsConfig as _DnsConfig,
DnsRecord as _DnsRecord,
HealthCheckConfig as _HealthCheckConfig,
... | PypiClean |
/wafer-debconf-0.11.10.tar.gz/wafer-debconf-0.11.10/register/migrations/0001_initial.py | from __future__ import unicode_literals
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
]
operations ... | PypiClean |
/jupyter_jsmol-2022.1.0.tar.gz/jupyter_jsmol-2022.1.0/jsmol/j2s/J/shape/MeshCollection.js | Clazz.declarePackage ("J.shape");
Clazz.load (["J.shape.Shape"], "J.shape.MeshCollection", ["java.util.Hashtable", "JU.AU", "$.Lst", "$.P3", "$.PT", "$.SB", "JS.T", "J.shape.Mesh", "JU.C", "$.Escape", "$.Logger", "JV.StateManager"], function () {
c$ = Clazz.decorateAsClass (function () {
this.jvxlData = null;
this.mesh... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/networkrepository/socfbsyracuse56.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def SocfbSyracuse56(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/networkrepository",
**additional_graph_kwa... | PypiClean |
/cartridge-tax-0.0.3.tar.gz/cartridge-tax-0.0.3/README.md | #cartridge_tax
An implementation of sales tax for [Cartridge](http://cartridge.jupo.org/).
A flat sales or value-added tax can be applied to in-state or all sales. Tax can optionally be applied to shipping costs.
For US-based sites, [TaxCloud.net](http://taxcloud.net/)'s tax lookup web service is optional.
## DIS... | PypiClean |
/safegate-pro-frontend-20210805.0.tar.gz/safegate-pro-frontend-20210805.0/hass_frontend/frontend_latest/chunk.c2e62f8c7f7de75fe53b.js | (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[786],{54444:(e,t,i)=>{"use strict";i(65233);var r=i(9672),n=i(87156),o=i(50856);(0,r.k)({_template:o.d`
<style>
:host {
display: block;
position: absolute;
outline: none;
z-index: 100... | PypiClean |
/WavveParser-0.1-py3-none-any.whl/WavveParser.py | import pandas as pd
import numpy as np
import requests
import json
class WavveParser:
def __init__(self, datetime, apikey):
self.apikey = apikey
contents_id = self.getPopularId()
self.contents_id_dfs = pd.concat(contents_id, ignore_index=True)
self.contents_info = self.getDe... | PypiClean |
/axonius_api_client-4.10.9.tar.gz/axonius_api_client-4.10.9/axonius_api_client/examples/script_base.py | """Base example for setting up the API client."""
import copy # noqa
import axonius_api_client as axonapi
client_args = {}
# --- get the URL, API key, API secret, & certwarn from the default ".env" file
client_args.update(axonapi.get_env_connect())
# --- OR override OS env vars with the values from a custom .env f... | PypiClean |
/pythreejs-2.4.2.tar.gz/pythreejs-2.4.2/js/src/helpers/ArrowHelper.autogen.js |
var _ = require('underscore');
var Promise = require('bluebird');
var THREE = require('three');
var widgets = require('@jupyter-widgets/base');
var dataserializers = require('jupyter-dataserializers');
var serializers = require('../_base/serializers');
var BlackboxModel = require('../objects/Blackbox.js').BlackboxMod... | PypiClean |
/ranking_metrics-0.1.1-py3-none-any.whl/rankingmetrics/errs.py | from collections import Iterable
import numpy as np
def err_with_sorted(y_true_sorted, max_score):
err_ = 0.
prob_pre_step = 1.
ERRS = []
for idx, rel in enumerate(y_true_sorted):
idx += 1
utility = (np.power(2, rel) - 1) / np.power(2, max_score)
err_ += prob_pre_step * utilit... | PypiClean |
/slash-1.14.0.tar.gz/slash-1.14.0/doc/features.rst | Misc. Features
==============
Notifications
-------------
Slash provides an optional plugin for sending notifications at end of runs, via ``--with-notifications``. It supports `NMA <http://www.notifymyandroid.com/>`_, `Prowl <http://www.prowlapp.com/>`_ and `Pushbullet <https://www.pushbullet.com>`_.
To use it, spec... | PypiClean |
/langchain_experimental-0.0.13-py3-none-any.whl/langchain_experimental/autonomous_agents/baby_agi/baby_agi.py | from collections import deque
from typing import Any, Dict, List, Optional
from langchain.callbacks.manager import CallbackManagerForChainRun
from langchain.chains.base import Chain
from langchain.schema.language_model import BaseLanguageModel
from langchain.vectorstores.base import VectorStore
from langchain_experim... | PypiClean |
/celery-3-3.1.26-3.tar.gz/celery-3-3.1.26-3/celery/backends/database/models.py | from __future__ import absolute_import
from datetime import datetime
import sqlalchemy as sa
from sqlalchemy.types import PickleType
from celery import states
from .session import ResultModelBase
__all__ = ['Task', 'TaskSet']
class Task(ResultModelBase):
"""Task result/status."""
__tablename__ = 'celery_... | PypiClean |
/shepherd_core-2023.8.8-py3-none-any.whl/shepherd_core/data_models/testbed/gpio.py | from enum import Enum
from typing import Optional
from pydantic import Field
from pydantic import StringConstraints
from pydantic import model_validator
from typing_extensions import Annotated
from ...testbed_client import tb_client
from ..base.content import IdInt
from ..base.content import NameStr
from ..base.conte... | PypiClean |
/hackedit_cobol-1.0a2-py3-none-any.whl/hackedit_cobol/lib/build_thread.py | import logging
import os
import shlex
import traceback
from PyQt5 import QtCore
from hackedit_cobol.lib import utils
from hackedit_cobol.lib.compiler import MODULE
class BuildThreadBase(QtCore.QThread):
#: signal emitted with the name of the configuration to will be used
#: to compile the project/file.
... | PypiClean |
/trixie-0.1.2.tar.gz/trixie-0.1.2/homeassistant/components/sensor/fints.py | from collections import namedtuple
from datetime import timedelta
import logging
import voluptuous as vol
from homeassistant.components.sensor import PLATFORM_SCHEMA
from homeassistant.const import CONF_USERNAME, CONF_PIN, CONF_URL, CONF_NAME
import homeassistant.helpers.config_validation as cv
from homeassistant.help... | PypiClean |
/django_adminlte3-0.1.6-py3-none-any.whl/adminlte3/static/admin-lte/plugins/moment/locale/be.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 |
/mainframe-bot-api-1.3.5.tar.gz/mainframe-bot-api-1.3.5/mainframe/button_component.py | from mainframe.array_type import ArrayType
class UIButton(ArrayType):
def __init__(self, title):
super().__init__()
self.json['title'] = title
def _set_url(self, url):
return self._set_prop('url', url)
def _set_payload(self, payload):
return self._set_prop('payload', pay... | PypiClean |
/pkm_buildsys-0.2.2-py3-none-any.whl/pkm_buildsys/packages/url_dependency.py | from typing import FrozenSet
from typing import List
from typing import TYPE_CHECKING
from typing import Union
from urllib.parse import urlparse
from .dependency import Dependency
if TYPE_CHECKING:
from .constraints import BaseConstraint
class URLDependency(Dependency):
def __init__(
self,
n... | PypiClean |
/ultracart_rest_sdk-4.0.173-py3-none-any.whl/ultracart/model/cart_settings_payment_amazon.py | import re # noqa: F401
import sys # noqa: F401
from ultracart.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
vali... | PypiClean |
/oak_common-0.0.5.tar.gz/oak_common-0.0.5/oak_common/oak_common.py | import pymysql
import pandas as pd
import datetime
from sqlalchemy import create_engine
from pandas.core.api import DataFrame
from concurrent.futures import ProcessPoolExecutor, as_completed
class OakCommon():
def __init__(self):
self.host = "192.168.2.231"
self.user = "oak_general"
self.... | PypiClean |
/utilitybox-0.0.0.2a0.tar.gz/utilitybox-0.0.0.2a0/README.md | # UtilityBox
UtilityBox is a collection of useful tools and utilities for Python.


## Features
- Generation of random number lists.
- Sorting algorithms like Bubble Sort and Selec... | PypiClean |
/fortunae-0.0.10.tar.gz/fortunae-0.0.10/README.md | # fortunae
Fortunae quer ser tornar uma biblioteca de análise financeira. Voltada pra importacao de indicadores fundamentalistas de acoes ou fundos imobiliarios usando multithreading. Usando a biblioteca `threads` para acelerar a coleta de dados automatizada e massiva. Funciona pra ativos brasileiros e BDR's.
## Down... | PypiClean |
/my-data-toolkit-0.0.20.tar.gz/my-data-toolkit-0.0.20/dtoolkit/geoaccessor/dataframe/from_xy.py | from __future__ import annotations
from typing import Hashable
from typing import TYPE_CHECKING
import geopandas as gpd
import pandas as pd
from dtoolkit.accessor.register import register_dataframe_method
from dtoolkit.geoaccessor.dataframe.to_geoframe import to_geoframe
from dtoolkit.util._decorator import warning
... | PypiClean |
/gsmtasks_client-0.4.0-py3-none-any.whl/gsmtasks/components/schemas/patched_email.py |
from __future__ import annotations
import typing
import lapidary.runtime
import pydantic
import datetime
import gsmtasks.components.schemas.email_state_enum
import lapidary.runtime.absent
import uuid
class PatchedEmail(pydantic.BaseModel):
id: typing.Annotated[
typing.Union[
uuid.UUID,
... | PypiClean |
/ltlcross_wrapper-0.7.3.tar.gz/ltlcross_wrapper-0.7.3/ltlcross_wrapper/modular.py |
import csv
import math
import os
import os.path
import shutil
import stat
import sys
import multiprocessing
import subprocess as sp
from ltlcross_wrapper.runner import LtlcrossRunner
def _renumber_formula(line, increase):
"""Increase formula id on the given ltlcross-log line
Parameters
==========
... | PypiClean |
/django-okta-auth-0.8.0.tar.gz/django-okta-auth-0.8.0/README.md | # Django Okta Auth
## Overview
Django Okta Auth is a library that acts as a client for the Okta OpenID Connect provider.
The library provides a set of views for login, logout and callback, an auth backend for authentication, a middleware for token verification in requests, and a decorator that can be selectively app... | PypiClean |
/llama_index-0.8.17.tar.gz/llama_index-0.8.17/llama_index/indices/vector_store/retrievers/retriever.py | from typing import Any, Dict, List, Optional
from llama_index.constants import DEFAULT_SIMILARITY_TOP_K
from llama_index.data_structs.data_structs import IndexDict
from llama_index.indices.base_retriever import BaseRetriever
from llama_index.indices.query.schema import QueryBundle
from llama_index.indices.utils import... | PypiClean |
/happy_learning-0.5.0-py3-none-any.whl/happy_learning/data_miner.py | import dask.dataframe as dd
import numpy as np
import os
import pandas as pd
from .evaluate_machine_learning import EvalClf
from .feature_learning import FeatureEngineer, FeatureLearning
from .feature_selector import FeatureSelector
from .genetic_algorithm import GeneticAlgorithm
from .sampler import MLSampler
from .s... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/KoubeiCateringDishCommgroupQueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.KoubeiCateringDishCommgroupQueryModel import KoubeiCateringDishCommgroupQueryModel
class KoubeiCateringDishCommgroupQueryRequest(object):
def __init__(self, biz_model=None):... | PypiClean |
/TradeMaster408-0.1.0.tar.gz/TradeMaster408-0.1.0/trademaster/imputation/missing_value_imputation/imputation.py | from pathlib import Path
import sys
ROOT = str(Path(__file__).resolve().parents[3])
sys.path.append(ROOT)
import os
import os.path as osp
from ..custom import CustomImputation
from ..builder import IMPUTATION
from trademaster.utils import get_attr
import argparse
import torch
import json
import yaml
import matplotli... | PypiClean |
/steelscript.appfwk-1.8.tar.gz/steelscript.appfwk-1.8/steelscript/appfwk/libs/fields.py |
import logging
import importlib
from copy import deepcopy
from base64 import b64encode, b64decode
from zlib import compress, decompress
try:
from cPickle import loads, dumps
except ImportError:
from pickle import loads, dumps
from django.db import models
from django.utils.encoding import force_unicode
logg... | PypiClean |
/balala-mongoengine-0.0.3.tar.gz/balala-mongoengine-0.0.3/docs/django.rst | ==============
Django Support
==============
.. note:: Django support has been split from the main MongoEngine
repository. The *legacy* Django extension may be found bundled with the
0.9 release of MongoEngine.
Help Wanted!
------------
The MongoEngine team is looking for help contributing and maintaining ... | PypiClean |
/zhihu_crawler-0.0.2.tar.gz/zhihu_crawler-0.0.2/zhihu_crawler/common/node_modules/ws/lib/extension.js | 'use strict';
//
// Allowed token characters:
//
// '!', '#', '$', '%', '&', ''', '*', '+', '-',
// '.', 0-9, A-Z, '^', '_', '`', a-z, '|', '~'
//
// tokenChars[32] === 0 // ' '
// tokenChars[33] === 1 // '!'
// tokenChars[34] === 0 // '"'
// ...
//
// prettier-ignore
const tokenChars = [
0, 0, 0, 0, 0, 0, 0, 0, 0, ... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/MybankCreditSceneprodLoanApplyRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.MybankCreditSceneprodLoanApplyModel import MybankCreditSceneprodLoanApplyModel
class MybankCreditSceneprodLoanApplyRequest(object):
def __init__(self, biz_model=None):
... | PypiClean |
/now_lms-0.0.1a220230314-py3-none-any.whl/now_lms/static/node_modules/bootstrap/js/dist/dom/event-handler.js | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('../util/index')) :
typeof define === 'function' && define.amd ? define(['../util/index'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.Even... | PypiClean |
/django-suit-dashboard-2.0.6.tar.gz/django-suit-dashboard-2.0.6/CHANGELOG.rst | =========
Changelog
=========
2.0.6 (2017-05-29)
==================
- Update to support django-app-settings 0.3.0.
2.0.5 (2017-05-29)
==================
- Update tests.
2.0.4 (2017-05-29)
==================
* Fix `dashboard_js` block not being added while rendering when not using Django Suit.
* Add demo project.
... | PypiClean |
/string_color-1.2.3-py3-none-any.whl/stringcolor/ops.py | import json
import os
from functools import partial
import colorama
colorama.init()
class String:
"""A regular string"""
def __init__(self, string):
self.string = string
def render(self):
return self.string
def bold(self):
"""Make string bold."""
return Bold(str(self))
... | PypiClean |
/collective.easyform-4.1.4.tar.gz/collective.easyform-4.1.4/src/collective/easyform/vocabularies.py | from collective.easyform import easyformMessageFactory as _ # NOQA
from collective.easyform.api import get_context
from collective.easyform.api import get_schema
from collective.easyform.config import HAS_XLSX_SUPPORT
from plone.schemaeditor.interfaces import IFieldFactory
from zope.component import getUtilitiesFor
fr... | PypiClean |
/microt_compliance-0.1.0.tar.gz/microt_compliance-0.1.0/microt_prompt_matrix/feature_engineering_ema/location_label.py | import pandas as pd
import json
from microt_prompt_matrix.utils.uncompress_file import *
def check_inside_bbox(location, bbox):
isInside = False
lat = location[0]
lon = location[1]
bbox[0] = bbox[0]
bbox[1] = bbox[1]
bbox[2] = bbox[2]
bbox[3] = bbox[3]
if (lat >= bbox[0]) & (lat <= ... | PypiClean |
/collective.geo.opensearch-0.4.tar.gz/collective.geo.opensearch-0.4/collective/geo/opensearch/browser/maplayers.py | import urllib
from collective.geo.mapwidget.browser.widget import MapLayers
from collective.geo.mapwidget.maplayers import MapLayer
class FeedMapLayer(MapLayer):
"""
a layer for a Feed
"""
def __init__(self, context, request):
self.context = context
self.request = request
@proper... | PypiClean |
/control-0.9.4.tar.gz/control-0.9.4/examples/pvtol-lqr.py |
import os
import numpy as np
import matplotlib.pyplot as plt # MATLAB-like plotting functions
import control as ct
#
# System dynamics
#
# These are the dynamics for the PVTOL system, written in state space
# form.
#
# System parameters
m = 4 # mass of aircraft
J = 0.0475 # inertia around pitch axis
r = 0.25... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.