id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/Cities-1.1.tar.gz/Cities-1.1/README.md | Cities is a simple tool for searching cities located at a given longitude and latitude range or a given region(country, state, province).
All the cities returned are sorted by the importance of a city and the population density.
# Install
```commandline
pip install Cities
```
# Features
1. fast(less than 0.01s for e... | PypiClean |
/another_sudoku_library-0.1.0.tar.gz/another_sudoku_library-0.1.0/another_sudoku_library/utils.py |
import random
def getEmptyBoard():
"""Returns empty board, a 9x9 2D list structure. Empty cells are represented as zeros."""
out = [
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0, 0, 0],
[0, 0, 0, 0, 0, 0, 0... | PypiClean |
/txt_to_html-0.0.1.tar.gz/txt_to_html-0.0.1/resources/MathJax-2.7.2/localization/br/HelpDialog.js | MathJax.Localization.addTranslation("br","HelpDialog",{version:"2.7.2",isLoaded:true,strings:{Help:"Sikour MathJax",MathJax:"*MathJax* zo ul levraoueg JavaSkript. Ganta\u00F1 e c'hall aozerien ar pajenno\u00F9 enderc'hel jedado\u00F9 en o fajenno\u00F9 Web. Evel lenner n'ho po ket ezhomm d'ober netra evit ma'z aio en-d... | PypiClean |
/male_pedigree_toolbox-1.0.2-py3-none-any.whl/MalePedigreeToolbox/main.py | # library imports
import argparse
import logging
from typing import Union
import time
import datetime
import sys
import os
from sys import argv
from pathlib import Path
import re
# own imports
from MalePedigreeToolbox import utility
from MalePedigreeToolbox import thread_termination
if sys.version_info <= (3, 6):
... | PypiClean |
/klaviyo-sdk-beta-1.0.3.20220907.tar.gz/klaviyo-sdk-beta-1.0.3.20220907/src/openapi_client/model/template_update_query_as_sub_resource.py | import re # noqa: F401
import sys # noqa: F401
from openapi_client.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,
... | PypiClean |
/qiime-1.9.1.tar.gz/qiime-1.9.1/doc/scripts/trim_sff_primers.rst | .. _trim_sff_primers:
.. index:: trim_sff_primers.py
*trim_sff_primers.py* -- Trim sff primers
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^... | PypiClean |
/ICPOptimize-2.4.tar.gz/ICPOptimize-2.4/ICP/Util.py | from itertools import groupby
import numpy as np
from scipy.sparse import issparse, linalg as slinalg
#--------------------------------------------------------------------------------
# Desc: Adds x and y handling sparse matrices
#----------------------------------------------------------------------... | PypiClean |
/ztech_pythena-0.0.3-py3-none-any.whl/pythena/Athena.py | import io
import re
from datetime import datetime
from urllib.parse import urlparse
import boto3
import pandas as pd
from retrying import retry
import pythena.Utils as Utils
import pythena.Exceptions as Exceptions
from botocore.errorfactory import ClientError
class Athena:
__database = ''
__region = ''
_... | PypiClean |
/rpicammqtt_client-0.3.0-py3-none-any.whl/rpicammqtt_client/__init__.py | import json
import logging
import time
import yaml
from pkg_resources import resource_string
_LOGGER = logging.getLogger(__name__)
logging.basicConfig(
level=logging.ERROR,
)
class RpiCamMqttClient:
"""MQTT client for rpicam."""
STATUSES = ('halted', 'image', 'md_ready', 'md_video',
'rea... | PypiClean |
/angelspie-0.1.7.tar.gz/angelspie-0.1.7/HISTORY.rst | =======
History
=======
0.1.7 (2021-06-10)
------------------
- fixed eval
0.1.6 (2021-06-10)
------------------
- fixed bugs
- better config example
- can send multiple keystrokes with one 'press:' directive
- after rule is enabled/disabled - rebind keys.
0.1.5 (2021-06-10)
------------------
- fixed bugs
0.1.4... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/groups/item/drives/item/list/items/item/versions/item/fields/fields_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 |
/pygamma_agreement-0.5.6-py3-none-any.whl/pygamma_agreement/sampler.py |
# Copyright (c) 2020-2021 CoML
# 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, distribut... | PypiClean |
/PyRQA-8.0.0.tar.gz/PyRQA-8.0.0/pyrqa/operators/create_matrix/unthresholded/column_overlap_materialisation_float.py | import numpy as np
import pyopencl as cl
from pyrqa.exceptions import SubMatrixNotProcessedException
from pyrqa.opencl import OpenCL
from pyrqa.runtimes import OperatorRuntimes
__author__ = "Tobias Rawald"
__copyright__ = "Copyright 2015-2021 The PyRQA project"
__credits__ = ["Tobias Rawald",
"Mike Sip... | PypiClean |
/py42-1.27.0.tar.gz/py42-1.27.0/README.md |
# py42, the official Code42 Python SDK

[](https://codecov.io/github/code42/py42?branch=main)
[](https://pyp... | PypiClean |
/compliance-trestle-fedramp-0.2.1.tar.gz/compliance-trestle-fedramp-0.2.1/.github/PULL_REQUEST_TEMPLATE.md | ## Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality ... | PypiClean |
/ParTools-2.0.3-py3-none-any.whl/partools/sql/connect.py | import cx_Oracle as cx
from os.path import exists
from threading import RLock
from partools import cfg
import partools.utils as u
from . import gl
from .iutd import is_up_to_date
verrou = RLock()
def connect():
init_instant_client()
cnx_info = get_cnx_info()
cnx = connect_with(cnx_info)
u.log("Con... | PypiClean |
/meng-jinhua-yujiazhi-wancheng-vol2-2022.10.9.1.tar.gz/meng-jinhua-yujiazhi-wancheng-vol2-2022.10.9.1/MengJinhuaYujiazhiWanchengVol2/js/libs/screenfull.js | (function () {
'use strict';
var isCommonjs = typeof module !== 'undefined' && module.exports;
var keyboardAllowed = typeof Element !== 'undefined' && 'ALLOW_KEYBOARD_INPUT' in Element;
var fn = (function () {
var val;
var valLength;
var fnMap = [
[
'requestFullscreen',
'exitFullscreen',
'fu... | PypiClean |
/backlogprocessing-0.1.9.zip/backlogprocessing-0.1.9/src/backlogapiprocessmodule/utils/Issue.py |
from datetime import datetime, timedelta
from backlogapiprocessmodule.utils.time_utils import TimeUtils
class Issue(object):
def __init__(self, issueKey, client, logger, beginDate, endDate):
self.issueKey = issueKey
self.client = client
self.logger = logger
self.beginDate = datetim... | PypiClean |
/azureml_contrib_automl_dnn_vision-1.32.0-py3-none-any.whl/azureml/contrib/automl/dnn/vision/object_detection/data/loaders.py | from torch.utils.data import BatchSampler
from torch.utils.data.distributed import DistributedSampler
from ..common import constants
from ..common.constants import DataLoaderParameterLiterals
from ...common.dataloaders import RobustDataLoader
class DataLoaderParameters:
"""Class that encodes all the parameters u... | PypiClean |
/gopipexample-0.1.0.tar.gz/gopipexample-0.1.0/README.rst | ==============
go pip example
==============
.. image:: https://img.shields.io/pypi/v/gopipexample.svg
:target: https://pypi.python.org/pypi/gopipexample
.. image:: https://img.shields.io/travis/robc-io/gopipexample.svg
:target: https://travis-ci.org/robc-io/gopipexample
.. image:: https://readthedo... | PypiClean |
/CudaPyInt-0.0.1.tar.gz/CudaPyInt-0.0.1/doc/build/html/_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 |
/edge-genome-3.28.2.tar.gz/edge-genome-3.28.2/src/edge/static/edge/lib/jquery/src/attributes/prop.js | define( [
"../core",
"../core/access",
"./support",
"../selector"
], function( jQuery, access, support ) {
"use strict";
var rfocusable = /^(?:input|select|textarea|button)$/i,
rclickable = /^(?:a|area)$/i;
jQuery.fn.extend( {
prop: function( name, value ) {
return access( this, jQuery.prop, name, value, arg... | PypiClean |
/vyper-0.3.9.tar.gz/vyper-0.3.9/docs/vyper-by-example.rst | Vyper by Example
################
.. index:: auction;open, open auction
Simple Open Auction
*******************
.. _simple_auction:
As an introductory example of a smart contract written in Vyper, we will begin
with a simple open auction contract. As we dive into the code,
it is important to remember that all Vyper... | PypiClean |
/pytorch-caldera-0.1.0a0.tar.gz/pytorch-caldera-0.1.0a0/caldera/utils/nx/_tools.py | import itertools
import random
from copy import deepcopy as do_deepcopy
from typing import Callable
from typing import Dict
from typing import Generator
from typing import Hashable
from typing import Optional
from typing import overload
from typing import Tuple
from typing import Type
from typing import TypeVar
from ty... | PypiClean |
/django-highlight-here-0.0.2.tar.gz/django-highlight-here-0.0.2/highlight_here/templatetags/highlight_here.py | from bs4 import BeautifulSoup
import warnings
from django import template
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
register = template.Library()
def addclass(elem, cls):
elem['class'] = elem.get('class', '')
elem['class'] += ' ' + cls if elem['class'] else cls... | PypiClean |
/mera_tvm_runtime-1.4.0-cp36-cp36m-manylinux_2_27_x86_64.whl/tvm/topi/cuda/conv2d_hwnc_tensorcore.py | """Tensorcore template for cuda backend"""
import tvm
from tvm import te
from tvm import autotvm
from tvm.target import Target
from tvm.topi.cuda.injective import schedule_injective_from_existing
from ..utils import get_const_tuple, traverse_inline, simplify, tag
from ..nn.pad import pad
from ..nn.utils import get_pad_... | PypiClean |
/pubtools-pulp-1.26.1.tar.gz/pubtools-pulp-1.26.1/pubtools/_pulp/services/cdn.py | import threading
from pubtools._pulp.cdn import CdnClient
from .base import Service
# Because class is designed as a mix-in...
# pylint: disable=no-member
class CdnClientService(Service):
"""A service providing a CDN client.
A client will only be available if the user provided CDN-related
arguments to... | PypiClean |
/uniqgift_custom-1.0.7-py3-none-any.whl/django/db/models/sql/query.py | import copy
import difflib
import functools
import sys
from collections import Counter, namedtuple
from collections.abc import Iterator, Mapping
from itertools import chain, count, product
from string import ascii_uppercase
from django.core.exceptions import FieldDoesNotExist, FieldError
from django.db import DEFAULT_... | PypiClean |
/pydecorate-0.3.4.tar.gz/pydecorate-0.3.4/README.rst | pydecorate
==========
.. image:: https://github.com/pytroll/pydecorate/workflows/CI/badge.svg?branch=main
:target: https://github.com/pytroll/pydecorate/actions?query=workflow%3A%22CI%22
.. image:: https://coveralls.io/repos/github/pytroll/pydecorate/badge.svg?branch=main
:target: https://coveralls.io/github/... | PypiClean |
/python_code_analyzer-1.0.14.tar.gz/python_code_analyzer-1.0.14/code_analyzer/scope.py | from __future__ import annotations
from typing import Union, List, Iterable, Set
from code_analyzer import interpretable
from code_analyzer import trace_call_result
class Scope:
def __init__(self,
scope_parent: Union[Scope, None] = None,
indent_depth_offset: int = 0
... | PypiClean |
/django-push2-0.3.12.tar.gz/django-push2-0.3.12/push2/connections.py | import time
import fcntl
from datetime import datetime, timedelta
from django.http import HttpResponse
from django.utils import simplejson as json
from push2.models import Channel, Message, Ack
class PushConnections:
def __init__(self, user, channels, acks=[]):
self.DATA_FORMAT = "%Y-%m-%d %H:%M:%S.%f"
... | PypiClean |
/indy_vdr-0.3.4-py3-none-manylinux2014_x86_64.whl/indy_vdr/bindings.py |
import asyncio
import json
import logging
import os
import sys
from ctypes import CDLL, CFUNCTYPE, byref, c_char_p, c_size_t, c_void_p, c_int32
from ctypes.util import find_library
from typing import Optional, Sequence, Union
from .error import VdrError, VdrErrorCode
CALLBACKS = {}
LIB: CDLL = None
LOGGER = logging... | PypiClean |
/Resemblyzer-Ideas-0.1.4.tar.gz/Resemblyzer-Ideas-0.1.4/README.md | This package is forked from https://github.com/resemble-ai/Resemblyzer, original package: https://pypi.org/project/Resemblyzer
We repackaged the repository to provide maintenance and resolve dependency issues, especially for https://github.com/as-ideas/ForwardTacotron
Resemblyzer allows you to derive a **high-leve... | PypiClean |
/openstack_venus-2.0.0-py3-none-any.whl/venus/utils.py | import abc
import contextlib
import functools
import hashlib
import inspect
import logging as py_logging
import os
import pyclbr
import random
import re
import shutil
import socket
import stat
import sys
import tempfile
import time
import types
from xml.dom import minidom
from xml.parsers import expat
from xml import s... | PypiClean |
/creme-crm-2.4.4.tar.gz/creme-crm-2.4.4/creme/creme_core/static/creme_core/js/widgets/list/pager.js | (function($) {
"use strict";
creme.list = creme.list || {};
creme.list.Pager = creme.component.Component.sub({
_init_: function(options) {
this._options = $.extend({
debounceDelay: 50
}, options || {});
this._events = new creme.component.EventHandler();
this._element = ... | PypiClean |
/kivymd_extensions.akivymd-1.2.7.tar.gz/kivymd_extensions.akivymd-1.2.7/kivymd_extensions/akivymd/uix/selectionlist.py | from kivy.animation import Animation
from kivy.lang import Builder
from kivy.properties import BooleanProperty, NumericProperty, StringProperty
from kivy.uix.behaviors import ButtonBehavior
from kivy.uix.boxlayout import BoxLayout
from kivy.uix.stacklayout import StackLayout
from kivymd.theming import ThemableBehavior
... | PypiClean |
/initor_bot_inference-2.0.5.tar.gz/initor_bot_inference-2.0.5/src/initor_bot_inference/fast_reid/tools/deploy/trt_export.py | import argparse
import os
import sys
import tensorrt as trt
from trt_calibrator import FeatEntropyCalibrator
sys.path.append('.')
from fast_reid.fastreid.utils.logger import setup_logger, PathManager
logger = setup_logger(name="trt_export")
def get_parser():
parser = argparse.ArgumentParser(description="Conv... | PypiClean |
/eth_multicall-0.2.2.tar.gz/eth_multicall-0.2.2/eth_multicall/MultiChain.py | from enum import Enum
from web3 import Web3
from eth_multicall.Constants import DEFAULT_CHAIN_INFO, CHAIN_MULTI_CALL_V3
MULTI_CALL_V3_ABI = [{"inputs":[{"components":[{"internalType":"address","name":"target","type":"address"},{"internalType":"bytes","name":"callData","type":"bytes"}],"internalType":"struct Multicall3... | PypiClean |
/core-service-0.2.0.tar.gz/core-service-0.2.0/README.md | [](https://travis-ci.org/sarafanio/core-service)
[](https://codecov.io/gh/sarafanio/core-service)
[
from django.db.models import get_model
from djaloha.forms import DjalohaForm
@register.filter
def convert_crlf(value):
"""
Replace carriage return and line feed character by their javascript value
Make possible to include title with those characters i... | PypiClean |
/bcbio-nextgen-1.1.5.tar.gz/bcbio-nextgen-1.1.5/bcbio/provenance/system.py | import copy
import multiprocessing
import os
import resource
import shlex
import socket
import subprocess
import yaml
from xml.etree import ElementTree as ET
from bcbio import utils
from bcbio.log import logger
def _get_cache_file(dirs, parallel):
base_dir = utils.safe_makedir(os.path.join(dirs["work"], "provena... | PypiClean |
/protexam-0.9.1.tar.gz/protexam-0.9.1/README.md | # protexam
## Inspect your quantitative proteomics results using this streamlit-powered dashboard. The app is specifically tailored for comprehensive examination of result files from isobaric labeling-based quantitative experiments.
*protexam* has been tested on Python 3.8 on Windows 10 and Ubuntu 20.04. The package i... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_firewall_profileprotocoloptions_ssh.py | from __future__ import absolute_import, division, print_function
# Copyright 2019-2023 Fortinet, Inc.
#
# 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 ... | PypiClean |
/aospy-0.2.tar.gz/aospy-0.2/README.rst | aospy: automated climate data analysis and management
=====================================================
.. image:: https://readthedocs.org/projects/pip/badge/?version=stable
:target: http://pip.pypa.io/en/stable/?badge=stable
:alt: ReadTheDocs Status
.. image:: https://travis-ci.org/spencerahill/aospy.svg?br... | PypiClean |
/testcube-client-0.8.1.tar.gz/testcube-client-0.8.1/testcube_client/settings.py | import getpass
import json
import logging
import platform
import socket
import sys
from codecs import open
from os.path import exists, join, expanduser
config = {'cache': []}
home_dir = expanduser('~')
config_file = join(home_dir, '.testcube_client.json')
logging.basicConfig(stream=sys.stdout,
for... | PypiClean |
/Hikka_Pyro_New-2.0.103-py3-none-any.whl/hikkapyro/crypto/mtproto.py |
from hashlib import sha256
from io import BytesIO
from os import urandom
from hikkapyro.errors import SecurityCheckMismatch
from hikkapyro.raw.core import Message, Long
from . import aes
def kdf(auth_key: bytes, msg_key: bytes, outgoing: bool) -> tuple:
# https://core.telegram.org/mtproto/description#defining-a... | PypiClean |
/bots-open-source-edi-translator-3.1.9.tar.gz/bots-3.1.9/bots/views.py | import sys
import os
import time
import shutil
import subprocess
import traceback
import socket
import django
from django.utils.translation import ugettext as _
from django.contrib import messages
import forms
import models
import viewlib
import botslib
import pluglib
import botsglobal
import py2html
from botsconfig im... | PypiClean |
/pyoptica-0.6.1.tar.gz/pyoptica-0.6.1/README.md | <p align="center">
<img src="https://gitlab.com/pyoptica/pyoptica/-/raw/master/static/logos/pyoptica_round.png" width="150" title="PyOptica Logo Round">
</p>
# PyOptica
PyOptica is a package for simulation of wave optics in Python. It is developed to deal with optics simulations in a *pythonic* way; it is one of th... | PypiClean |
/schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/MedicalRiskScore.py | from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class MedicalRiskScore(BaseModel):
"""A simple system that adds up the number of risk factors to yield a score that is associated with prognosis, e.g. CHAD score, TIMI risk score.
Refere... | PypiClean |
/getpaid.pxpay-0.5.tar.gz/getpaid.pxpay-0.5/src/getpaid/pxpay/gateway.py | import logging
from os.path import join, dirname
from zc import ssl
from zope.component import adapts
from zope.interface import implements
from getpaid.pxpay import parser
from getpaid.pxpay.config import *
from getpaid.pxpay.interfaces import IPXPayWebInterfaceGateway, \
IPXPayStandardOptions
from getpaid.pxpa... | PypiClean |
/ImSwitch-2.0.0.tar.gz/ImSwitch-2.0.0/imswitch/imreconstruct/view/MultiDataFrame.py | from qtpy import QtCore, QtGui, QtWidgets
from .guitools import BetterPushButton
class MultiDataFrame(QtWidgets.QFrame):
# Signals
sigAddDataClicked = QtCore.Signal()
sigLoadCurrentDataClicked = QtCore.Signal()
sigLoadAllDataClicked = QtCore.Signal()
sigUnloadCurrentDataClicked = QtCore.Signal()
... | PypiClean |
/openwisp-controller-1.0.3.tar.gz/openwisp-controller-1.0.3/openwisp_controller/pki/api/serializers.py | from django.utils.translation import gettext_lazy as _
from django_x509.base.models import (
default_ca_validity_end,
default_cert_validity_end,
default_validity_start,
)
from rest_framework import serializers
from swapper import load_model
from openwisp_users.api.mixins import FilterSerializerByOrgManaged... | PypiClean |
/owasp-skf-1.3.21.tar.gz/owasp-skf-1.3.21/skf/static/js/jquery-ui.min.js | (function(e){"function"==typeof define&&define.amd?define(["jquery"],e):e(jQuery)})(function(e){function t(t,s){var n,a,o,r=t.nodeName.toLowerCase();return"area"===r?(n=t.parentNode,a=n.name,t.href&&a&&"map"===n.nodeName.toLowerCase()?(o=e("img[usemap='#"+a+"']")[0],!!o&&i(o)):!1):(/^(input|select|textarea|button|objec... | PypiClean |
/pyusbg2-2.0.0-a1.tar.gz/pyusbg2-2.0.0-a1/usb/legacy.py |
import usb.core as core
import usb.util as util
import usb._interop as _interop
import usb.control as control
__author__ = 'Wander Lairson Costa'
USBError = core.USBError
CLASS_AUDIO = 1
CLASS_COMM = 2
CLASS_DATA = 10
CLASS_HID = 3
CLASS_HUB = 9
CLASS_MASS_STORAGE = 8
CLASS_PER_INTERFACE = 0
CLASS_PRINTER = 7
CLASS... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/deviceupdate/_inputs.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from ._enums import *
__all__ = [
'DiagnosticStoragePropertiesArgs',
'EncryptionArgs',
'GroupConnectivityInformationArgs',
'IotHubSettingsArgs'... | PypiClean |
/media_management_scripts-0.4.4.tar.gz/media_management_scripts-0.4.4/media_management_scripts/support/interlace.py | from media_management_scripts.support.executables import ffmpeg
from media_management_scripts.support.executables import execute_with_output
from typing import NamedTuple
from collections import namedtuple
import re
REPORT_PATTERN = re.compile(
'(Single|Multi)[\w\s]+: TFF:\s+(\d+) BFF:\s+(\d+) Progressive:\s+(\d+)... | PypiClean |
/finam-trade-api-2.0.1.tar.gz/finam-trade-api-2.0.1/finam_trade_api/candles/candles.py | from typing import List
from finam_trade_api.base_client import BaseClient
from finam_trade_api.candles.model import (
DayCandle,
DayCandlesRequestModel,
DayCandlesResponse,
IntraDayCandle,
IntraDayCandlesRequestModel,
IntraDayCandlesResponse
)
from finam_trade_api.exceptions import FinamTradeA... | PypiClean |
/hass-home-assistant-frontend-20200427.3.tar.gz/hass-home-assistant-frontend-20200427.3/hass_frontend/frontend_latest/chunk.1f255a82f15db476b0fc.js | (self.webpackJsonp=self.webpackJsonp||[]).push([[144],{136:function(t,e,i){"use strict";i(4);const n={properties:{animationConfig:{type:Object},entryAnimation:{observer:"_entryAnimationChanged",type:String},exitAnimation:{observer:"_exitAnimationChanged",type:String}},_entryAnimationChanged:function(){this.animationCon... | PypiClean |
/psorus-0.2.tar.gz/psorus-0.2/backup_grapa/layers/glbuilder.py | import numpy as np
import math
from tensorflow.keras import backend as K
from tensorflow.keras.layers import Layer,Dense, Activation
import tensorflow.keras as keras# as k
import tensorflow as t
from tensorflow.keras.models import Sequential
from tensorflow.keras.optimizers import Adam,SGD
from tensorflow.linalg impor... | PypiClean |
/dataclass-wizard-0.22.2.tar.gz/dataclass-wizard-0.22.2/dataclass_wizard/wizard_mixins.py | __all__ = ['JSONListWizard',
'JSONFileWizard',
'YAMLWizard']
import json
from typing import Type, Union, AnyStr, List, Optional, TextIO, BinaryIO
from .abstractions import W
from .bases_meta import DumpMeta
from .class_helper import _META
from .dumpers import asdict
from .enums import LetterCase... | PypiClean |
/lambdagram-0.9.4-py3-none-any.whl/lambdagram-0.9.4.dist-info/DESCRIPTION.rst | # lambdagram
lambdagram is the library to help who want to create telegram bot with [official telegram bot api](https://core.telegram.org/bots/api) using webhook on AWS lambda.
## Introduction
Main target of this library is who want to create telegram bot using webhook simply and easily. Especially for AWS lambda pl... | PypiClean |
/ultralytics_custom-8.0.112.tar.gz/ultralytics_custom-8.0.112/ultralytics/yolo/utils/callbacks/base.py | from collections import defaultdict
from copy import deepcopy
# Trainer callbacks ----------------------------------------------------------------------------------------------------
def on_pretrain_routine_start(trainer):
"""Called before the pretraining routine starts."""
pass
def on_pretrain_routine_end... | PypiClean |
/python_pangea-0.3.2.tar.gz/python_pangea-0.3.2/pangea/services/audit/audit.py | import json
import os
from typing import Dict, List, Optional
from pangea.response import PangeaResponse
from pangea.services.audit.exceptions import AuditException, EventCorruption
from pangea.services.audit.models import *
from pangea.services.audit.signing import Signer, Verifier
from pangea.services.audit.util imp... | PypiClean |
/comictagger-1.4.4a8.tar.gz/comictagger-1.4.4a8/comictaggerlib/filerenamer.py | #
# Copyright 2012-2014 Anthony Beville
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to i... | PypiClean |
/yaml_heritage-0.0.1-py3-none-any.whl/yaml_heritage/heritage.py | import logging
from copy import deepcopy
from typing import Any, Dict, Generic, Type, TypeVar, Union, Optional
from . import dict_utils, populate, utils, yaml_utils
import os
logging.basicConfig(format="%(levelname)s:%(message)s", level=logging.INFO)
logger = logging.getLogger(__name__)
handler = logging.StreamHandle... | PypiClean |
/samsa-0.3.11.tar.gz/samsa-0.3.11/README.rst | #####
samsa
#####
|travis-ci|_
.. |travis-ci| image:: https://travis-ci.org/getsamsa/samsa.png?branch=master
.. _travis-ci: https://travis-ci.org/getsamsa/samsa
One morning, as Gregor Samsa was waking up from anxious dreams, he
discovered that in bed he had been changed into a monstrous verminous bug.
Samsa... | PypiClean |
/rbpy-rb-0.12.4.tar.gz/rbpy-rb-0.12.4/rb/core/word.py | import weakref
from typing import List
from spacy.tokens import Token
from rb.core.lang import Lang
from rb.core.pos import POS
from rb.core.text_element import TextElement
from rb.core.text_element_type import TextElementType
from rb.parser.spacy_parser import SpacyParser
class Word(TextElement):
MODAL_VERBS ... | PypiClean |
/classroom-voter-2.0.8b177.tar.gz/classroom-voter-2.0.8b177/classroom_voter/gui.py | from tkinter import *
import json
import asyncio
from login import *
from client import VoterClient # pylint: disable=import-error
from shared.pollTypes import PollResponse # pylint: disable=import-error
def displayErrorWindow(master, message):
"""Displays an error window with the message and an OK button"""
w... | PypiClean |
/fastybird-redisdb-exchange-plugin-0.59.0.tar.gz/fastybird-redisdb-exchange-plugin-0.59.0/fastybird_redisdb_exchange_plugin/bootstrap.py |
# Copyright 2021. FastyBird s.r.o.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicabl... | PypiClean |
/alibabacloud_dms_enterprise20181101-1.53.2-py3-none-any.whl/alibabacloud_dms_enterprise20181101/models.py | from Tea.model import TeaModel
from typing import List, Dict, Any
class AsyncTaskVO(TeaModel):
def __init__(
self,
dataset_id: str = None,
id: int = None,
remark: str = None,
task_name: str = None,
task_status: int = None,
task_type: int = None,
user... | PypiClean |
/bpy_lambda-1.3.1-py3-none-any.whl/bpy_lambda/2.79/scripts/addons/magic_uv/updater.py |
# ##### BEGIN GPL LICENSE BLOCK #####
#
# 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 2
# of the License, or (at your option) any later version.
#
# This program is distri... | PypiClean |
/flyonthewall-0.1a1.tar.gz/flyonthewall-0.1a1/README.md | # flyonthewall
<b>Parse 4chan boards and filter posts with relevant keywords</b>
Must include keyword file in root directory: keywords.txt
<b>keyword.txt format:</b>
- One keyword per line
- If keyword has similar words to exclude, use comma-separated list separated from keyword by '|' character
<b>Example keywo... | PypiClean |
/tgapp-smallpress-0.6.2.tar.gz/tgapp-smallpress-0.6.2/smallpress/public/ckeditor/lang/eo.js | /*
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang.eo={dir:'ltr',editorTitle:'Rich text editor, %1, press ALT 0 for help.',toolbars:'Editor toolbars',editor:'Rich Text Editor',source:'Fonto',newPage:'Nova Paĝo'... | PypiClean |
/GeneWordSearch-2.5.1.tar.gz/GeneWordSearch-2.5.1/genewordsearch/Classes.py |
# Written by Joe Jeffers
from scipy.stats import hypergeom
class WordFreq:
# Class for keeping the words and their frequencies together and
# and some useful functions to abstract some work
def __init__(self, word, freq):
# Constructor
# word - the str of the word
# freq - int of how many times it occurs in the ... | PypiClean |
/tensorflow_ascend-1.15.0-cp37-cp37m-manylinux2014_aarch64.whl/tensorflow_core/_api/v1/compat/v1/data/experimental/__init__.py | from __future__ import print_function as _print_function
import sys as _sys
from tensorflow.python.data.experimental.ops.batching import dense_to_sparse_batch
from tensorflow.python.data.experimental.ops.batching import map_and_batch
from tensorflow.python.data.experimental.ops.batching import map_and_batch_with_lega... | PypiClean |
/poetry-core-donotuse-1.0.0.tar.gz/poetry-core-donotuse-1.0.0/poetry/core/_vendor/pyrsistent/_precord.py | import six
from pyrsistent._checked_types import CheckedType, _restore_pickle, InvariantException, store_invariants
from pyrsistent._field_common import (
set_fields, check_type, is_field_ignore_extra_complaint, PFIELD_NO_INITIAL, serialize, check_global_invariants
)
from pyrsistent._pmap import PMap, pmap
class ... | PypiClean |
/markdown_iconfonts-3.0.0-py3-none-any.whl/iconfonts.py | import markdown
import re
from markdown.util import etree
from markdown.inlinepatterns import InlineProcessor
class IconFontsExtension(markdown.extensions.Extension):
""" IconFonts Extension for Python-Markdown. """
def __init__(self, **kwargs):
self.config = {
"prefix": ["icon-", "Cust... | PypiClean |
/biskit-2.4.3.tar.gz/biskit-2.4.3/scripts/analysis/a_baharEntropy.py |
from tools import *
from mathUtils import *
from PDBModel import *
import molUtils as MU
## Deprecated: would need to be converted to numpy -- not making any further changes
## without testing
from Numeric import *
from numpy.linalg import svd, det
from LinearAlgebra import *
from gnuplot import *
class AnalyzeErr... | PypiClean |
/raytools-0.1.1.tar.gz/raytools-0.1.1/docs/evaluate.rst | raytools.evaluate
==========================================================
BaseMetricSet
---------------------------------
.. autoclass:: raytools.evaluate.BaseMetricSet
:members:
:undoc-members:
:show-inheritance:
MetricSet
---------------------------------
.. autoclass:: raytools.evaluate.MetricSet
... | PypiClean |
/sbrunner_pre_commit_hooks-0.2.3-py3-none-any.whl/sbrunner_pre_commit_hooks/copyright.py | """Update the copyright header of the files."""
import argparse
import datetime
import os.path
import re
import subprocess # nosec
import sys
from typing import Tuple
import yaml
CURRENT_YEAR = str(datetime.datetime.now().year)
def main() -> None:
"""Update the copyright header of the files."""
args_parse... | PypiClean |
/bitdust_p2p-0.0.3-py3-none-any.whl/bitdust/coins/coins_miner.py | #------------------------------------------------------------------------------
from __future__ import absolute_import
from six.moves import range
#------------------------------------------------------------------------------
_Debug = False
_DebugLevel = 6
#---------------------------------------------------------... | PypiClean |
/bob.pad.base-6.0.1b0.tar.gz/bob.pad.base-6.0.1b0/README.md | [](https://www.idiap.ch/software/bob/docs/bob/bob.pad.base/master/sphinx/index.html)
[](https://gitlab.idiap.ch/bob/bob.pad.base/commits/master)
[ for speech-to-text and [pydub](http://pydub.com/) to stitch things together.
Here's some [sample output](http://lav.io/2015/02/audiogrep-autom... | PypiClean |
/style/basicReport/basicReport.py | from datetime import date
from pylatex import Command, Document, Figure, MiniPage, NoEscape
from pylatex.base_classes import Arguments, Options
from pytexreport import pytexreport
class basicReport(pytexreport.PyTexReport):
def __init__(
self,
title: str,
subtitle: str,
departmen... | PypiClean |
/ecoshard-0.5.0.tar.gz/ecoshard-0.5.0/library-platform/docker_contexts/stac-api-docker/stac_api/auth/services.py | import uuid
from datetime import datetime, timedelta
from flanker.addresslib import address
from . import mail, utils
from .models import User, db
from .queries import find_user_by_email
MIN_PASSWORD_LENGTH = 10
RESET_TOKEN_EXPIRATION_HOURS = 24
def create_user(email, password, first_name, last_name, organization)... | PypiClean |
/hy_sicp-0.0.1.tar.gz/hy_sicp-0.0.1/README.rst | =======
hy-sicp
=======
.. image:: https://img.shields.io/pypi/v/hy_sicp.svg
:target: https://pypi.python.org/pypi/hy_sicp
.. image:: https://img.shields.io/travis/mkirchner/hy_sicp.svg
:target: https://travis-ci.com/mkirchner/hy_sicp
.. image:: https://readthedocs.org/projects/hy-sicp/badge/?versio... | PypiClean |
/zmon-worker-0.1.tar.gz/zmon-worker-0.1/zmon_worker_monitor/builtins/plugins/cloudwatch.py |
import boto3
import collections
import datetime
import fnmatch
import json
import sys
import logging
import requests
import sys
logging.getLogger('botocore').setLevel(logging.WARN)
from zmon_worker_monitor.adapters.ifunctionfactory_plugin import IFunctionFactoryPlugin, propartial
class CloudwatchWrapperFactory(IFun... | PypiClean |
/causal_testing_framework-5.3.0.tar.gz/causal_testing_framework-5.3.0/causal_testing/specification/causal_dag.py |
from __future__ import annotations
import logging
from itertools import combinations
from random import sample
from typing import Union
import networkx as nx
import pydot
from causal_testing.testing.base_test_case import BaseTestCase
from .scenario import Scenario
from .variable import Output
Node = Union[str, in... | PypiClean |
/radixulous-0.0.3-py3-none-any.whl/src/control.py | from __future__ import annotations
import os
import re
import json
import threading
from inspect import signature
from typing import Optional, Dict, List, Tuple
from enum import Enum, auto
from .interactor import Interactor
class InputContext(Enum):
DEFAULT = auto()
TEXT = auto()
CONFIRMONLY = auto()
cl... | PypiClean |
/waseda_tfx-7.1.0-py3-none-any.whl/tfx/tools/resolve_deps.py | import enum
import sys
import setuptools
class TFVersionDirective(enum.Enum):
"""Enum for TensorFlow version directive."""
# Install TF 1.x
RELEASED_TF = 'RELEASED_TF'
# Install TF 2.x
RELEASED_TF_2 = 'RELEASED_TF_2'
# Install pre-released version of TF 2.x
PRERELEASED_TF_2 = 'PRERELEASED_TF_2'
@pro... | PypiClean |
/easyglue-0.0.9-py3-none-any.whl/test/writer/__init__.py | from awsglue.context import GlueContext
from awsglue.dynamicframe import DynamicFrame
import easyglue
from test import EasyGlueTest
from test.test_utils import delete_all_s3_objects, list_all_objects
class WriterTest(EasyGlueTest):
glue: GlueContext
@classmethod
def setUpClass(cls) -> None:
supe... | PypiClean |
/django-admin-plus-0.0.1a1.tar.gz/django-admin-plus-0.0.1a1/admin_plus/mixins.py | __all__ = [
"AdminFieldsTwoStringMixin",
"AllowPrefilterQueryMixin",
"ChangeListDictFiltersMixin",
"NumericFilterModelAdminMixin",
"ModelAdminPlus",
]
from django import forms
from django.contrib import admin
from django.http import HttpResponseRedirect
from .views import ChangeListDictFilters
c... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/directory_objects/item/check_member_objects/check_member_objects_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 |
/tplink-cloud-api-4.1.5.tar.gz/tplink-cloud-api-4.1.5/tplinkcloud/device_client.py | import asyncio
import aiohttp
import json
import uuid
from .api_response import TPLinkApiResponse
class TPLinkDeviceClient:
def __init__(self, host, token, verbose=False, term_id=None):
self.host = host
self._verbose = verbose
self._termId = term_id if term_id else str(uuid.uuid4())
... | PypiClean |
/espnet-202308-py3-none-any.whl/espnet2/asr/state_spaces/base.py |
import functools
from torch import nn
class SequenceModule(nn.Module):
"""Abstract sequence model class.
All models must adhere to this interface
A SequenceModule is generally a model that transforms an input of shape
(n_batch, l_sequence, d_model) to (n_batch, l_sequence, d_output)
REQUIRED ... | PypiClean |
/pyFAST-4.7.1-cp36-abi3-win_amd64.whl/fast/licenses/openvino/readme.txt | ------------------------------------------------------------------------
Intel(R) Distribution of OpenVINO(TM) tookit for Windows*
Components and their licenses:
* OpenVINO(TM) (Inference Engine) Runtime (Intel(R) OpenVINO(TM) Distribution License): <install_root>/runtime/bin/*
* Headers (Apache 2.0): <install_root>/r... | PypiClean |
/sr.tools-1.2.0.tar.gz/sr.tools-1.2.0/sr/tools/bom/bom.py | from __future__ import print_function
from decimal import Decimal
import os
from sr.tools.bom import schem
from sr.tools.bom.threadpool import ThreadPool
STOCK_OUT = 0
STOCK_OK = 1
STOCK_UNKNOWN = 2
NUM_THREADS = 4
class PartGroup(list):
"""
A set of parts. One might call this a "BOM line".
:param p... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.