id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/Akhet-2.0.tar.gz/Akhet-2.0/docs/demo/details.rst | Details
%%%%%%%
development.ini
===============
The config file contains the following settings which aren't in Pyramid's
built-in scaffolds:
* mako.directories: necessary when using Mako, to set the template search
path. (Theoretically you don't need this if you specify renderers by asset
spec rather than by re... | PypiClean |
/LiliDB-1.0.3.tar.gz/LiliDB-1.0.3/README.md | # LiliDB
*Lili* ("Small" in Toki Pona) it's a small Key-Value database library.<br>
No third-party dependencies, pure Python and safe to use!<br>
# Install
```sh
# GIT+PIP
pip install git+https://github.com/ZSendokame/LiliDB.git
# PIP
pip install LiliDB
```
# How to use
```py
import lilidb
db = lilidb.Database('dat... | PypiClean |
/Chives-0.0.1-py3-none-any.whl/chives/info.py |
# import logging
# logging.basicConfig(filename='logging.log',
# format='%(asctime)s %(message)s',
# filemode="w", level=logging.DEBUG)
# 更新:
# 1、可配置抓取的字段:f1.f2..fxxx
# 2、可配置一次抓取的数量:'pz': 2000,
# 3、可导出到Excel:spider.py
# 4、剩余页码可配置是否开启 break
# 5、可以设置分时数据是否开启,以及过滤条件 'ft': 1(全部,大于1... | PypiClean |
/AMAS_sb-1.0.1-py3-none-any.whl/AMAS/recommender.py | # import collections
import compress_pickle
import copy
import fnmatch
import itertools
import libsbml
import numpy as np
import os
import pandas as pd
import re
from AMAS import annotation_maker as am
from AMAS import constants as cn
from AMAS import iterator as it
from AMAS import tools
from AMAS import species_anno... | PypiClean |
/FastNLP-1.0.1.tar.gz/FastNLP-1.0.1/fastNLP/modules/torch/decoder/crf.py | __all__ = [
"ConditionalRandomField",
"allowed_transitions"
]
from typing import Union, List, Tuple
import torch
from torch import nn
from ....core.metrics.span_f1_pre_rec_metric import _get_encoding_type_from_tag_vocab, _check_tag_vocab_and_encoding_type
from ....core.vocabulary import Vocabulary
def allo... | PypiClean |
/Hikka_Pyro-2.0.66-py3-none-any.whl/pyrogram/methods/advanced/save_file.py |
import asyncio
import functools
import inspect
import io
import logging
import math
import os
from hashlib import md5
from pathlib import PurePath
from typing import Union, BinaryIO, Callable
import pyrogram
from pyrogram import StopTransmission
from pyrogram import raw
from pyrogram.session import Session
log = log... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/grid/enhanced/plugins/NestedSorting.js | define("dojox/grid/enhanced/plugins/NestedSorting",["dojo/_base/declare","dojo/_base/array","dojo/_base/connect","dojo/_base/lang","dojo/_base/html","dojo/_base/event","dojo/_base/window","dojo/keys","dojo/query","dojo/string","../_Plugin","../../EnhancedGrid"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,_c){
var _d=_1("... | PypiClean |
/Chameleon-4.1.0.tar.gz/Chameleon-4.1.0/src/chameleon/zpt/template.py | from functools import partial
from hashlib import sha256
from os.path import dirname
from ..astutil import Symbol
from ..compiler import ExpressionEngine
from ..i18n import simple_translate
from ..loader import TemplateLoader
from ..tal import RepeatDict
from ..tales import DEFAULT_MARKER
from ..tales import ExistsExp... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/plugins/standard/AntiBloatPlugin.py | import ast
import re
from nuitka.containers.OrderedDicts import OrderedDict
from nuitka.Errors import NuitkaForbiddenImportEncounter
from nuitka.plugins.PluginBase import NuitkaPluginBase
from nuitka.utils.ModuleNames import ModuleName
from nuitka.utils.Yaml import getYamlPackageConfiguration
class NuitkaPluginAntiB... | PypiClean |
/NREL_reVX-0.3.53-py3-none-any.whl/reVX/config/turbine_flicker.py | from reV.config.base_analysis_config import AnalysisConfig
class TurbineFlickerConfig(AnalysisConfig):
"""Config framework for turbine flicker calculation"""
NAME = 'TurbineFlicker'
REQUIREMENTS = ('excl_fpath', 'res_fpath', 'hub_height', 'rotor_diameter')
def __init__(self, config):
"""
... | PypiClean |
/ALP4lib-1.0.1.tar.gz/ALP4lib-1.0.1/README.md | # ALP4lib
ALP4lib is a Python module to control Vialux DMDs based on ALP4.X API.
This is not an independant open source module, it uses the .ddl files provided by [Vialux](http://www.vialux.de/en/).
This software is experimental, use it at your own risk.
## What is it?
This module wraps the basic function of the Vial... | PypiClean |
/OctoBot-Services-1.6.2.tar.gz/OctoBot-Services-1.6.2/octobot_services/interfaces/util/util.py | import threading
import octobot_commons.logging as logging
import octobot_commons.constants as commons_constants
import octobot_trading.api as trading_api
import octobot_services.interfaces as interfaces
def get_exchange_managers(bot_api=None, independent_backtesting=None, trading_exchanges_only=True):
if bot_... | PypiClean |
/Newcalls-0.0.1-cp37-cp37m-win_amd64.whl/newcalls/node_modules/util-deprecate/README.md | util-deprecate
==============
### The Node.js `util.deprecate()` function with browser support
In Node.js, this module simply re-exports the `util.deprecate()` function.
In the web browser (i.e. via browserify), a browser-specific implementation
of the `util.deprecate()` function is used.
## API
A `deprecate()` fu... | PypiClean |
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/views/contact_page.py | from pylot import (Pylot,
utils,
route,
abort,
redirect,
request,
url_for)
from pylot.component import (mailer,
recaptcha)
def contact_page(**kwargs):
template_dir = k... | PypiClean |
/ARGs_OAP-2.3.2.tar.gz/ARGs_OAP-2.3.2/ARGs_OAP/bin/bbmap/muxbyname.sh |
usage(){
echo "
Written by Brian Bushnell
Last modified June 22, 2016
Description: Multiplexes reads from multiple files after renaming them based on their initial file.
Opposite of demuxbyname.
Usage: muxbyname.sh in=<file,file,file...> out=<output file>
Input files may also be given without an in= prefix, so tha... | PypiClean |
/BigJob-0.64.5.tar.gz/BigJob-0.64.5/docs/source/tutorial/index.rst | ########
Tutorial
########
This tutorial will walk you through the installation as well as the most important features of BigJob. Many of these examples illustrate common workflow usages as well as distributed data movement.
**Prerequisites:**
* You are familiar with Linux or UNIX
* You can read and write Python co... | PypiClean |
/AmFast-0.5.3-r541.tar.gz/AmFast-0.5.3-r541/amfast/remoting/gae_subscription_manager.py | import pickle
from google.appengine.ext import db
import amfast
from subscription_manager import Subscription, SubscriptionManager
class GaeSubscription(db.Model, Subscription):
"""A client's subscription to a topic, persisted in a Google Datastore."""
@classmethod
def getKeyName(cls, connection_id, cli... | PypiClean |
/CsuPTMD-1.0.12.tar.gz/CsuPTMD-1.0.12/PTMD/maskrcnn_benchmark/engine/trainer.py | import datetime
import logging
import time
import torch
import torch.distributed as dist
from PTMD.maskrcnn_benchmark.utils.comm import get_world_size
from PTMD.maskrcnn_benchmark.utils.metric_logger import MetricLogger
from apex import amp
def reduce_loss_dict(loss_dict):
"""
Reduce the loss dictionary fro... | PypiClean |
/crosscat-0.1.55-cp27-none-macosx_10_6_intel.whl/crosscat/IPClusterEngine.py | import functools
#
from IPython.parallel import Client
#
import crosscat
import crosscat.LocalEngine as LE
def partialize(func, args_dict, dview):
# why is this push necessary?
dview.push(args_dict, block=True)
helper = functools.partial(func, **args_dict)
return helper
class IPClusterEngine(LE.Loca... | PypiClean |
/FaceRecogAI-0.1.tar.gz/FaceRecogAI-0.1/README.rst | A brief into to this package.
This was made to practice CV2 image processing, as well as simplify the process of including facial recognition and blurring in my further projects which will feature them commonly.
There are 3 functions in the package right now, with more to be added, with different principles, including ... | PypiClean |
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/theme-vibrant_ink.js | ace.define("ace/theme/vibrant_ink",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
exports.isDark = true;
exports.cssClass = "ace-vibrant-ink";
exports.cssText = ".ace-vibrant-ink .ace_gutter {\
background: #1a1a1a;\
color: #BEBEBE\
}\
.ace-vibrant-ink .ace_print-margin {\
width: 1px... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/configs/common/mstrain_3x_coco.py | _base_ = '../_base_/default_runtime.py'
# dataset settings
dataset_type = 'CocoDataset'
data_root = 'data/coco/'
img_norm_cfg = dict(
mean=[123.675, 116.28, 103.53], std=[58.395, 57.12, 57.375], to_rgb=True)
# In mstrain 3x config, img_scale=[(1333, 640), (1333, 800)],
# multiscale_mode='range'
train_pipeline = [
... | PypiClean |
/LibRecommender-limited-0.6.6.6.tar.gz/LibRecommender-limited-0.6.6.6/libreco/algorithms/fm.py | from itertools import islice
import os
import numpy as np
import pandas as pd
import tensorflow.compat.v1 as tf
from tensorflow.keras.initializers import (
truncated_normal as tf_truncated_normal
)
from .base import Base, TfMixin
from ..data.data_generator import DataGenFeat
from ..evaluation.evaluate import EvalMi... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-4.4.0/SCons/Node/Alias.py | import collections
import SCons.Errors
import SCons.Node
import SCons.Util
from SCons.Util import hash_signature
class AliasNameSpace(collections.UserDict):
def Alias(self, name, **kw):
if isinstance(name, SCons.Node.Alias.Alias):
return name
try:
a = self[name]
exc... | PypiClean |
/IsaBelaMora-0.0.0.tar.gz/IsaBelaMora-0.0.0/README.txt | ScriptSupreme is a cutting-edge software designed to revolutionize the way screenwriters, playwrights, and novelists bring their stories to life. With its powerful suite of features, ScriptSupreme offers a seamless and intuitive writing experience, allowing you to focus on your creativity and storytelling.
The softwar... | PypiClean |
/CADET-Process-0.7.3.tar.gz/CADET-Process-0.7.3/CADETProcess/optimization/individual.py | import hashlib
from addict import Dict
import numpy as np
from CADETProcess import CADETProcessError
from CADETProcess.dataStructure import StructMeta
from CADETProcess.dataStructure import Float, Vector
def hash_array(array):
"""Compute a hash value for an array of floats using the sha256 hash function.
P... | PypiClean |
/CleverSheep-0.7.6.tar.gz/CleverSheep-0.7.6/README.txt | ===================================
A collection of re-usable packages.
===================================
Introduction
============
This is the top-level package for various other general purpose packages.
It exists in order keep the other packages tidily hidden within a single
name space.
It is no... | PypiClean |
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/pilot/filemanagement/irods_adaptor.py | import urlparse
import datetime
import errno
import sys
import os
import stat
import logging
import traceback
import time
import re
import shutil
import pdb
import glob
import pexpect
# This is for local debugging!
sys.path.insert(0, os.path.join(os.path.dirname(__file__), "../.."))
import saga
from pilot.api import ... | PypiClean |
/CoreTracker-1.5.3.tar.gz/CoreTracker-1.5.3/coretracker/settings/settings.py | import parameters
import Bio.SubsMat.MatrixInfo as MatrixInfo
AVAILABLE_MAT = MatrixInfo.available_matrices + ['identity']
class Settings():
"""Contains global settings for the current run of CoReTracker"""
def __init__(self):
pass
def set(self, **kwargs):
"""Set settings values from a ... | PypiClean |
/AsyncDex-1.1.tar.gz/AsyncDex-1.1/asyncdex/models/chapter_list.py | import asyncio
from collections import defaultdict
from datetime import datetime
from functools import partial
from typing import Any, Callable, Dict, Iterable, List, Optional, TYPE_CHECKING, Tuple, Union
from natsort import natsort_keygen
from .abc import ModelList
from .aggregate import MangaAggregate, VolumeAggreg... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/plugins/pixel_decoder.py | import torch
import torch.nn as nn
import torch.nn.functional as F
from mmcv.cnn import PLUGIN_LAYERS, Conv2d, ConvModule, caffe2_xavier_init
from mmcv.cnn.bricks.transformer import (build_positional_encoding,
build_transformer_layer_sequence)
from mmcv.runner import BaseModule,... | PypiClean |
/BPMN_RPA-7.1.2.tar.gz/BPMN_RPA-7.1.2/BPMN_RPA/Scripts/FTP.py | import ftplib
import pickle
# The BPMN-RPA FTP module 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.
#
# The BPMN-RPA FTP module is ... | PypiClean |
/IsoCon-0.3.3.tar.gz/IsoCon-0.3.3/modules/correction_module.py | import signal
from multiprocessing import Pool
import multiprocessing as mp
import sys
import math
import copy
import random
from collections import Counter
from modules.functions import create_multialignment_matrix, create_position_frequency_matrix
def correct_strings(partition_alignments, seq_to_acc, ccs_dict, step... | PypiClean |
/MeleeUploader-1.22.2.tar.gz/MeleeUploader-1.22.2/README.md | # Melee-YouTube-Uploader
A YouTube Uploader for my Melee recordings
A modified version of FRC-YouTube-Uploader for Video Game Tournaments.
**IMPORTANT NOTE**
This application **DOES NOT/CANNOT** support enabling monetization due to YouTube's API restrictions. Thus by default videos are uploaded as unlisted so you c... | PypiClean |
/Kiwiii-server-0.7.0.tar.gz/Kiwiii-server-0.7.0/kiwiii/worker.py |
from concurrent import futures as cf
import threading
from tornado import gen, process
from tornado.queues import Queue
PROCESSES = process.cpu_count()
class Worker(object):
"""General-purpose multiprocess worker
Args:
args: iterable task array
func: task processor
"""
def __init__(... | PypiClean |
/125softNLP-0.0.1-py3-none-any.whl/pysoftNLP/kashgari/processors/base_processor.py |
# author: BrikerMan
# contact: eliyar917@gmail.com
# blog: https://eliyar.biz
# file: base_processor.py
# time: 2019-05-21 11:27
import collections
import logging
import operator
from typing import List, Optional, Union, Dict, Any
import numpy as np
from tensorflow.python.keras.preprocessing.sequence import pad_seq... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/umd/locale/sk.js | (function (global, factory) {
if (typeof define === "function" && define.amd) {
define('element/locale/sk', ['module', 'exports'], factory);
} else if (typeof exports !== "undefined") {
factory(module, exports);
} else {
var mod = {
exports: {}
};
factory(... | PypiClean |
/Lantz-0.3.zip/Lantz-0.3/lantz/drivers/andor/neo.py | import ctypes as ct
import numpy as np
from lantz import Feat, Action, Q_
from lantz.foreign import RetStr, RetTuple
from .andor import Andor
class Neo(Andor):
"""Neo Andor CMOS Camera
"""
def initialize(self):
super().initialize()
self.flush()
self.fan_speed = 1
self.wi... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/printing/str.py | from __future__ import annotations
import typing
import mpmath.libmp as mlib
from mpmath.libmp import prec_to_dps
from ..core import Integer, Mul, Pow, Rational, S, oo
from ..core.mul import _keep_coeff
from ..sets import Reals
from ..utilities import default_sort_key
from .defaults import DefaultPrinting
from .prec... | PypiClean |
/DigitalRover-0.0.1.tar.gz/DigitalRover-0.0.1/src/experimental/wayback/wayback.py |
# https://opensourceseo.org/find-list-old-urls-domain-using-wayback-cdx-api/
# https://web.archive.org/web/20090420095939/https://twitter.com/realDonaldTrump
# https://web.archive.org/cdx/search/cdx?url=twitter.com/realDonaldTrump
# https://archive.org/web/researcher/cdx_file_format.php
# https://support.archive-it.or... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/yelp17.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import json
import numpy as np
import os
def yelp17(path, categories=None):
"""Load Yelp reviews from the Yelp Dataset Challenge in 2017. It
contains ~4.1 million reviews, ~1 million users, and ~144,000
... | PypiClean |
/MagicBus-4.1.2.tar.gz/MagicBus-4.1.2/magicbus/plugins/signalhandler.py |
import os
import signal as _signal
import sys
from magicbus.compat import basestring
class SignalHandler(object):
"""Register bus channels (and listeners) for system signals.
You can modify what signals your application listens for, and what it does
when it receives signals, by modifying :attr:`SignalH... | PypiClean |
/Files.com-1.0.1051-py3-none-any.whl/files_sdk/models/api_key.py | import builtins
import datetime
from files_sdk.api import Api
from files_sdk.list_obj import ListObj
from files_sdk.exceptions import InvalidParameterError, MissingParameterError, NotImplementedError
class ApiKey:
default_attributes = {
'id': None, # int64 - API Key ID
'descriptive_label': None... | PypiClean |
/Mopidy_Advanced_Scrobbler-2.1.0-py3-none-any.whl/mopidy_advanced_scrobbler/_commands/db/sync_corrections.py | from __future__ import annotations
import enum
from typing import TYPE_CHECKING, Tuple
from urllib.parse import urlparse
import questionary
from prompt_toolkit.completion import FuzzyWordCompleter
from rich.table import Table, box
from mopidy_advanced_scrobbler._commands import AbortCommand, Counter
from mopidy_adva... | PypiClean |
/DynaMIT-1.1.5.tar.gz/DynaMIT-1.1.5/dynamit/rnaForesterSearcher.py |
from __future__ import print_function
from __future__ import division
from builtins import str
import os, math, re
import subprocess
from subprocess import CalledProcessError
import dynamit.motifSearcher
import dynamit.utils
class RNAforesterSearcher(dynamit.motifSearcher.MotifSearcher):
"""Class implementing a R... | PypiClean |
/EVE-SRP-0.12.11.tar.gz/EVE-SRP-0.12.11/src/evesrp/views/divisions.py | from __future__ import absolute_import
from flask import url_for, render_template, redirect, abort, flash, request,\
Blueprint, current_app
from flask_babel import gettext, lazy_gettext
from flask_login import login_required, fresh_login_required, current_user
from flask_wtf import Form
import six
from six.move... | PypiClean |
/LDtoolsets-0.0.14.tar.gz/LDtoolsets-0.0.14/nbs/00_Genodata.ipynb | ```
# default_exp genodata
#hide
%load_ext autoreload
%autoreload 2
```
# Genodata module
> read and extract genodata
```
#export
import numpy as np
import pandas as pd
import dask.array as da
from bgen_reader import open_bgen
from pandas_plink import read_plink
from pandas_plink.bed_reader import lib, ffi
try:
... | PypiClean |
/EZFF-1.0.0.tar.gz/EZFF-1.0.0/examples/lj-gulp-serial/run.py | import ezff
from ezff.interfaces import gulp, vasp
import numpy as np
# DEFINE GROUND TRUTHS
gt_bulk_modulus = 1.1236 #GPa
gt_structure = vasp.read_atomic_structure('ground_truths/POSCAR')
def my_error_function(variable_values, template):
myrank = ezff.get_pool_rank()
# Configure GULP job.
path = str(my... | PypiClean |
/Kallithea-0.7.0.tar.gz/Kallithea-0.7.0/kallithea/lib/vcs/ssh/base.py | import datetime
import logging
import sys
from kallithea.lib.auth import AuthUser, HasPermissionAnyMiddleware
from kallithea.lib.utils2 import set_hook_environment
from kallithea.model import db, meta
log = logging.getLogger(__name__)
class BaseSshHandler(object):
# Protocol for setting properties:
# Set b... | PypiClean |
/ANYstructure-4.10.tar.gz/ANYstructure-4.10/any_files/load_factor_window.py |
import tkinter as tk
import os
from _tkinter import TclError
class CreateLoadFactorWindow:
'''
self._load_factors_dict = {'dnva':[1.3,1.2,0.7], 'dnvb':[1,1,1.3], 'tanktest':[1,1,0]} # DNV loads factors
'''
def __init__(self,master, app=None):
super(CreateLoadFactorWindow, self).__init__()
... | PypiClean |
/Joule-0.9.41.tar.gz/Joule-0.9.41/joule/controllers/follower_controller.py | import aiodns
import aiohttp
from aiohttp import web
from sqlalchemy.orm import Session
from joule.models import Follower
from joule.api import TcpNode
async def index(request: web.Request):
db: Session = request.app["db"]
followers = db.query(Follower)
return web.json_response([f.to_json() for f in follo... | PypiClean |
/NovalIDE-1.1.8-py3-none-any.whl/noval/util/objutils.py |
import logging
import traceback
import sys
import os
import types
import noval.util.utillang as utillang
import noval.util.datetimeparser as datetimeparser
from types import *
import noval.util.utils as utils
FUNCTION_HAS_ATTR = '_hasAttr'
FUNCTION_GET_ATTR = '_getAttr'
FUNCTION_SET_ATTR = '_setAttr'
FUNCTION_D... | PypiClean |
/DeepNN-2020.5.18.11.40.23-py3-none-any.whl/inn/models/FM_2.py | import pandas as pd
from tensorflow.python.keras.models import Model
from tensorflow.python.keras.layers.normalization import BatchNormalization
from tensorflow.python.keras.layers import Input, Embedding, Dense, Flatten, Concatenate, Dot, Reshape, Add, Subtract
from tensorflow.keras.optimizers import Adam
from tensorf... | PypiClean |
/DendroPy_calver-2023.330.2-py3-none-any.whl/dendropy/legacy/ncbi.py |
##############################################################################
## DendroPy Phylogenetic Computing Library.
##
## Copyright 2010-2015 Jeet Sukumaran and Mark T. Holder.
## All rights reserved.
##
## See "LICENSE.rst" for terms and conditions of usage.
##
## If you use this work or any portion there... | PypiClean |
/DJModels-0.0.6-py3-none-any.whl/djmodels/db/backends/mysql/base.py | import re
from djmodels.core.exceptions import ImproperlyConfigured
from djmodels.db import utils
from djmodels.db.backends import utils as backend_utils
from djmodels.db.backends.base.base import BaseDatabaseWrapper
from djmodels.utils.functional import cached_property
try:
import MySQLdb as Database
except Impo... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/data/util/JsonQuery.js | if(!dojo._hasResource["dojox.data.util.JsonQuery"]){
dojo._hasResource["dojox.data.util.JsonQuery"]=true;
dojo.provide("dojox.data.util.JsonQuery");
dojo.declare("dojox.data.util.JsonQuery",null,{useFullIdInQueries:false,_toJsonQuery:function(_1,_2){
var _3=true;
var _4=this;
function _5(_6,_7){
var _8=_7.__id;
if(_8){... | PypiClean |
/My-Serializer-For-Json-And-XML-For_Lab3-5-0.1.1.tar.gz/My-Serializer-For-Json-And-XML-For_Lab3-5-0.1.1/Serializators/JSON.py | from Serializators.Core import Serialize
from Serializators.Core.functions_for_deserialize import Deserialize
class JsonSerializer:
data_serializer = Serialize()
data_deserializer = Deserialize()
def dumps(self, obj):
packed = self.data_serializer.serialize(obj)
if isinstance(packed, (li... | PypiClean |
/EDDIE-Tool-1.0.0.tar.gz/EDDIE-Tool-1.0.0/eddietool/arch/Linux/df.py | __version__ = '$Revision: 895 $'
__copyright__ = 'Copyright (c) Chris Miles 1999-2005'
__author__ = 'Chris Miles'
__license__ = '''
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; eithe... | PypiClean |
/DACBench-0.2.0.tar.gz/DACBench-0.2.0/dacbench/wrappers/policy_progress_wrapper.py | import matplotlib.pyplot as plt
import numpy as np
from gymnasium import Wrapper
class PolicyProgressWrapper(Wrapper):
"""
Wrapper to track progress towards optimal policy.
Can only be used if a way to obtain the optimal policy given an instance can be obtained.
"""
def __init__(self, env, compu... | PypiClean |
/Data-CAT-0.7.2.tar.gz/Data-CAT-0.7.2/LICENSE.md | The data-CAT is an Open Source project supported by the VU University Amsterdam, the Netherlands eScience Center (NLeSC)
and Scientific Computing & Modelling NV (SCM). The terms of the [LGPL-3.0 license]* apply. As an exception to the LGPL-3.0 license,
you agree to grant SCM a [BSD 3-Clause license]** to the contributi... | PypiClean |
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/cmorizers/data/formatters/datasets/hwsd.py | import logging
import os
import iris
from cf_units import Unit
from iris import NameConstraint
from esmvaltool.cmorizers.data import utilities as utils
logger = logging.getLogger(__name__)
def _extract_variable(short_name, var, cfg, filepath, out_dir):
"""Extract variable."""
raw_var = var.get('raw', short... | PypiClean |
/GenIce-1.0.11.tar.gz/GenIce-1.0.11/genice/lattices/Struct71.py | pairs="""
219 106
151 37
221 108
165 111
140 51
102 179
109 18
45 166
15 216
72 82
185 63
215 173
119 121
88 161
22 28
39 68
219 74
169 95
103 164
38 212
62 82
163 134
131 205
97 81
7 74
98 107
29 164
128 69
198 225
124 210
13 78
29 126
171 179
194 125
108 91
9 166
146 150
14 72
178 159
162 4
83 78
157 59
139 192
0 130... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/moment/locale/ar-tn.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 |
/Eddy's%20Memory%20Game-1.0.zip/Eddy's Memory Game-1.0/functions.py | __author__="Edward McKnight (EM-Creations.co.uk)"
__date__ ="$05-Jul-2011 09:48:41$"
def clearScreen(numlines=100):
import os
if os.name == "posix":
# Unix/Linux/MacOS/BSD/etc
os.system('clear')
elif os.name in ("nt", "dos", "ce"):
# DOS/Windows
os.system('CLS')
else:
... | PypiClean |
/CircleBlock-1.1.0.tar.gz/CircleBlock-1.1.0/README.md | <div style="display: flex; justify-content: center;">
<img src="images/logo.png" alt="CircleBlock Logo">
</div>
<div style="display: flex; justify-content: center;">
<h1>CircleBlock</h1>
</div>
CircleBlock is a class that monitors the file system in the project root directory. This class detects changes in the... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/utils/StaticLibraries.py | import os
from nuitka.containers.OrderedSets import OrderedSet
from nuitka.PythonFlavors import (
isAnacondaPython,
isDebianPackagePython,
isNuitkaPython,
)
from nuitka.PythonVersions import (
getPythonABI,
getSystemPrefixPath,
python_version,
python_version_str,
)
from nuitka.Tracing impor... | PypiClean |
/MiWork-2021.2.20.20.8.11-py3-none-any.whl/miwork/exception.py |
from __future__ import absolute_import, division, print_function, unicode_literals
from six import PY2
if PY2:
def implements_to_string(cls):
cls.__unicode__ = cls.__str__
cls.__str__ = lambda x: x.__unicode__().encode('utf-8')
return cls
else:
def implements_to_string(x):
ret... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/jsgrid/jsgrid.min.js | !function(a,b,c){function d(a,c){var d=b(a);d.data(f,this),this._container=d,this.data=[],this.fields=[],this._editingRow=null,this._sortField=null,this._sortOrder=i,this._firstDisplayingPage=1,this._init(c),this.render()}var e="JSGrid",f=e,g="JSGridItem",h="JSGridEditRow",i="asc",j="desc",k="{first}",l="{pages}",m="{p... | PypiClean |
/Eureqa-1.76.0.tar.gz/Eureqa-1.76.0/eureqa/analysis_templates/execution.py |
from progress_update import ProgressUpdate
from parameters_values import ParametersValues
from parameter_validation_result import ParameterValidationResult
from eureqa.utils import Throttle
import json
from eureqa.utils import utils
class Execution:
"""Represents an analysis template execution on the server.
... | PypiClean |
/Metamorf-0.4.4.2.tar.gz/Metamorf-0.4.4.2/metamorf/tools/log.py | from metamorf.tools.filecontroller import FileControllerFactory
from metamorf.constants import *
from datetime import datetime
import os
class Log:
def __init__(self):
os.system('')
self.file_log = FileControllerFactory().get_file_reader(FILE_TYPE_LOG)
self.file_log.set_file_location(ACTUA... | PypiClean |
/Astropysics-1.0.tar.gz/Astropysics-1.0/astropysics/coords/coordsys.py | #TODO: implement polar motion lookup techniques
from __future__ import division,with_statement
from ..constants import pi
from ..utils import add_docs
import numpy as np
_twopi = 2*pi
_pio2 = pi/2
try:
#requires Python 2.6
from abc import ABCMeta
from abc import abstractmethod
from abc import abstra... | PypiClean |
/KnowledgeCore-2.8.10.tar.gz/KnowledgeCore-2.8.10/README.md | KnowledgeCore
==============

KnowledgeCore is a RDFlib-backed minimalistic knowledge base, initially designed
for robots (in particular human-robot interaction or multi-robot interaction).
It features full [ROS](https://www.ros.org) support.
It stores triples (like RDF/OWL triples), a... | PypiClean |
/EC_MS-0.7.5.tar.gz/EC_MS-0.7.5/src/EC_MS/Time_Response.py | from __future__ import division, print_function
import os
import numpy as np
from scipy.optimize import curve_fit
from scipy.integrate import odeint
from . import Chem
from .Molecules import Molecule
from .Plotting import plot_operation
def fit_exponential(t, y, zero_time_axis=False):
"""Return (tao, y0, y1) fo... | PypiClean |
/CmlArabicReaderThird-0.1-py3-none-any.whl/ThirdcamelArabicReader/camel_tools/morphology/cachetools/func.py |
__all__ = ("fifo_cache", "lfu_cache", "lru_cache", "mru_cache", "rr_cache", "ttl_cache")
import collections
import functools
import math
import random
import time
try:
from threading import RLock
except ImportError: # pragma: no cover
from dummy_threading import RLock
from . import FIFOCache, LFUCache, LRU... | PypiClean |
/IdracRedfishSupport-0.0.8.tar.gz/IdracRedfishSupport-0.0.8/GetIdracServerSlotInformationREDFISH.py |
import argparse
import getpass
import json
import logging
import os
import re
import requests
import sys
import time
import warnings
from datetime import datetime
from pprint import pprint
warnings.filterwarnings("ignore")
parser=argparse.ArgumentParser(description="Python script using Redfish API with OEM extensio... | PypiClean |
/DeSide-1.0.2.tar.gz/DeSide-1.0.2/docs/datasets.md | Datasets
========
Datasets used in DeSide
***
## scRNA-seq datasets
| Dataset ID | Journal | DOI | Publish Date | Reported cells (total) | Organism | Tissue | Data location | Sequencing method | #patients |
|------... | PypiClean |
/Choco-1.0.5.tar.gz/Choco-1.0.5/choco/util.py |
import re
import collections
import codecs
import os
from choco import compat
import operator
def update_wrapper(decorated, fn):
decorated.__wrapped__ = fn
decorated.__name__ = fn.__name__
return decorated
class PluginLoader(object):
def __init__(self, group):
self.group = group
se... | PypiClean |
/Flask-FlatPages-0.8.1.tar.gz/Flask-FlatPages-0.8.1/README.rst | ===============
Flask-FlatPages
===============
.. image:: https://github.com/flask-FlatPages/flask-FlatPages/actions/workflows/test.yml/badge.svg?branch=master
:target: https://github.com/flask-FlatPages/flask-FlatPages/actions/workflows/test.yml/
.. image:: https://img.shields.io/pypi/v/Flask-FlatPages.svg
... | PypiClean |
/NlvWxPython-4.2.0-cp37-cp37m-win_amd64.whl/wx/lib/popupctl.py |
import wx
from wx.lib.buttons import GenButtonEvent
class PopButton(wx.Control):
def __init__(self,*_args,**_kwargs):
wx.Control.__init__(self, *_args, **_kwargs)
self.up = True
self.didDown = False
self.Bind(wx.EVT_LEFT_DOWN, self.OnLeftDown)
self.Bind(wx.EVT_LEFT_UP, ... | PypiClean |
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/bill_entry_response.py |
from msrest.serialization import Model
class BillEntryResponse(Model):
"""BillEntryResponse.
:param bill_id: The bill identifier
:type bill_id: int
:param account_id: The account identifier
:type account_id: int
:param vendor_id: The vendor identifier
:type vendor_id: int
:param need... | PypiClean |
/JaqalPaq-1.2.0a1.tar.gz/JaqalPaq-1.2.0a1/examples/HeH+ (Helium Hydride)/JaqalPaq_HeH+_Untapered_Exemplar.ipynb | # Helium Hydride (Untapered HeH+) Exemplar
## Step 0: Import various libraries
```
# Imports for QSCOUT
import jaqalpaq
from jaqalpaq.core import circuitbuilder
from jaqalpaq.run import run_jaqal_circuit
from qscout.v1.std.jaqal_gates import ALL_GATES as std
from qscout.v1.std import noisy
# Imports for basic mathem... | PypiClean |
/EntropyEncoding-0.0.4.tar.gz/EntropyEncoding-0.0.4/README.md | 
# EntropyEncoding
## Description
This package implements an encoding to bypass entropy antivirus check.
I have researched about entropy bypass techniques and found people who use adding low-entr... | PypiClean |
/BitArray2D-2.1.tar.gz/BitArray2D-2.1/BitArray2D.py |
__version__ = '2.1'
__author__ = "Avinash Kak (kak@purdue.edu)"
__date__ = '2011-March-22'
__url__ = 'http://RVL4.ecn.purdue.edu/~kak/dist2d/BitArray2D-2.1.html'
__copyright__ = "(C) 2011 Avinash Kak. Python Software Foundation."
__doc__ = '''
BitArray2D.py
Version: ''' + __version__ + '''
A... | PypiClean |
/HNSC-classifier-1.0.tar.gz/HNSC-classifier-1.0/LICENSE.md | GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Pream... | PypiClean |
/CatKit-0.5.4-py3-none-any.whl/catkit/hub/cathubsqlite.py | import sys
from ase.db.sqlite import SQLite3Database
import sqlite3
import json
from past.utils import PY2
from tabulate import tabulate
init_commands = [
""" CREATE TABLE publication (
id INTEGER PRIMARY KEY AUTOINCREMENT,
pub_id text UNIQUE,
title text,
authors text,
journal text,
volume... | PypiClean |
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/math/symbolic_io.py | from .symbolic import *
from .symbolic import _infix_operators,_prefix_operators,_builtin_functions
from ..io import loader
import json
from json import encoder
import weakref
import sys
import warnings
VAR_PREFIX = ''
USER_DATA_PREFIX = '$'
NAMED_EXPRESSION_TAG = '#'
NAMED_EXPRESSION_PREFIX = '@'
_operator_precedenc... | PypiClean |
/Fom-0.9.10.zip/Fom-0.9.10/fom/db.py | import types
import urllib
import requests
try:
import json
except ImportError:
try:
import simplejson as json
except ImportError:
# For Google AppEngine
from django.utils import simplejson as json
from errors import raise_error
from utils import fom_request_sent, fom_response_rec... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/yaml_27/yaml/emitter.py |
__all__ = ['Emitter', 'EmitterError']
from error import YAMLError
from events import *
class EmitterError(YAMLError):
pass
class ScalarAnalysis(object):
def __init__(self, scalar, empty, multiline,
allow_flow_plain, allow_block_plain,
allow_single_quoted, allow_double_quoted,
... | PypiClean |
/IBATS_Huobi_Feeder-0.1.3.tar.gz/IBATS_Huobi_Feeder-0.1.3/ibats_huobi_feeder/backend/orm.py | from sqlalchemy import Column, Integer, String, UniqueConstraint, TIMESTAMP, text
from sqlalchemy.dialects.mysql import DOUBLE
from sqlalchemy.ext.declarative import declarative_base
from ibats_common.utils.db import with_db_session
from ibats_huobi_feeder.backend import engine_md
from ibats_huobi_feeder.config import ... | PypiClean |
/graphinate-0.0.9.tar.gz/graphinate-0.0.9/src/graphinate/tools/mutators.py | import dataclasses
import inspect
from collections.abc import Iterable, Mapping
from typing import Any, Callable, Optional
def is_strict_iterable(obj: Any) -> bool:
return isinstance(obj, Iterable) and not isinstance(obj, (str, bytes, bytearray))
def _process_obj(obj: Any,
mapping_handler: Opti... | PypiClean |
/Bravo-2.0.tar.gz/Bravo-2.0/bravo/plugins/beds.py | from zope.interface import implements
from bravo.blocks import blocks, items
from bravo.ibravo import IPreBuildHook, IDigHook
# Metadata
HEAD_PART = 0x8
class Bed(object):
"""
Make placing/removing beds work correctly.
"""
implements(IPreBuildHook, IDigHook)
def __init__(self, factory):
... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/simpleui-x/elementui/link.js | module.exports =
/******/ (function (modules) { // webpackBootstrap
/******/ // The module cache
/******/
var installedModules = {};
/******/
/******/ // The require function
/******/
function __webpack_require__(moduleId) {
/******/
/******/ // Check if module is in ... | PypiClean |
/ARGs_OAP-2.3.2.tar.gz/ARGs_OAP-2.3.2/ARGs_OAP/bin/bbmap/postfilter.sh |
usage(){
echo "
Written by Brian Bushnell
Last modified July 27, 2015
Description: Maps reads, then filters an assembly by contig coverage.
Intended to reduce misassembly rate of SPAdes by removing suspicious contigs.
Usage: postfilter.sh in=<reads> ref=<contigs> out=<filtered contigs>
Standard Parameters:
in=<fi... | PypiClean |
/GNUIndentBear-0.10.0.tar.gz/GNUIndentBear-0.10.0/coalaGNUIndentBear/GNUIndentBear.py | import platform
import shlex
from coalib.bearlib import deprecate_settings
from coalib.bearlib.abstractions.Linter import linter
from coalib.bearlib.spacing.SpacingHelper import SpacingHelper
from dependency_management.requirements.DistributionRequirement import (
DistributionRequirement)
@linter(executable='ind... | PypiClean |
/Django-MobilityHelpers-0.3.0.tar.gz/Django-MobilityHelpers-0.3.0/mobilityhelpers/middleware/__init__.py | import re
from mobilityhelpers import detect_flavour, disable_helper
from django.utils.deprecation import MiddlewareMixin
class MobileDetectionMiddleware(MiddlewareMixin):
"""
"""
def process_request(self, request):
is_mobile = False
if 'HTTP_USER_AGENT' in request.META:
user... | PypiClean |
/DuHast-1.0.7-py3-none-any.whl/duHast/APISamples/RevitFamilyCategoryDataUtils.py |
from collections import namedtuple
import Utility as util
# tuples containing change family category data read from file
changeFamilyCategory = namedtuple('changeFamilyCategory', 'filePath newCategoryName')
# tuples containing change family subcategory data read from file
changeFamilySubCategory = namedtuple('chang... | PypiClean |
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/model/rule_trigger_type.py | import re # noqa: F401
import sys # noqa: F401
from firefly_iii_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 |
/BinTools-0.2.0.zip/BinTools-0.2.0/README.txt | ===========
Python modules for Software Development Tools
===========
PyDevTools is a suite of python modules for the rapid prototyping of software development tools.
Currently, the project include modules for:
* ELF handling
* DWARF handling
Next, we are planning to add a GDB module containing :
* `RSP <http://sourc... | PypiClean |
/KratosDelaunayMeshingApplication-9.1.3-1-cp37-cp37m-win_amd64.whl/KratosMultiphysics/DelaunayMeshingApplication/mesher.py | from __future__ import print_function, absolute_import, division # makes KratosMultiphysics backward compatible with python 2.6 and 2.7
#import kratos core and applications
import KratosMultiphysics
import KratosMultiphysics.DelaunayMeshingApplication as KratosDelaunay
def CreateMesher(main_model_part, meshing_parame... | PypiClean |
/LeanSim-0.1.tar.gz/LeanSim-0.1/leansim/workflow.py | from __future__ import print_function
from time import sleep
import os
from .worker import Worker
import sys
class Workflow:
def __init__(self, workers):
self.workers = workers
self.work_done = 0
@property
def total_work(self):
return sum(w.wip + w.done for w in self.workers)... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.