id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/LEGO_Block_Creator-0.3.0-py3-none-any.whl/LEGO_Block_Creator-0.3.0.dist-info/LICENSE.md
# GNU GENERAL PUBLIC LICENSE ## Version 3, 29 June 2007 Copyright (C) 2007 Free Software Foundation, Inc. [https://fsf.org/](https://fsf.org) Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. ## Preamble The GNU General Public License is a fr...
PypiClean
/Firenado-0.9.0a2.tar.gz/Firenado-0.9.0a2/firenado/sqlalchemy.py
import functools from inspect import isfunction, ismethod import logging from sqlalchemy import inspect, func, text logger = logging.getLogger(__name__) def base_to_dict(base, columns=None): """ Returns a dict inherited from Base. If keys is provided it will only add to the dict the columns provided. :p...
PypiClean
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/utilities/opencv_utilities/voting/hough/lines.py
__author__ = "heider" __doc__ = r""" Created on 5/5/22 """ from typing import Any import cv2 import numpy from draugr.opencv_utilities import ThresholdTypeFlag, show_image, to_gray __all__ = ["hough_lines"] def hough_lines( img, kernel_size=11, sigma=1.4, # 0 aperture_size=...
PypiClean
/Bonsu-3.6.2-cp39-cp39-macosx_10_9_x86_64.whl/bonsu/changelog/CHANGELOG.md
## Version History #### Version 3.6.2 🗓 ️(21/05/2023) ✨ Pipeline item duplication and shortcuts. ✨ Pipeline item sorting shortcuts. ✨ Revise action script. ✨ Remove deprecated NumPy data types. 🔧 Minor bug fixes. #### Version 3.6.1 🗓 ️(12/03/2023) ✨ Replace load script with setuptools entry point. ✨ Rem...
PypiClean
/Maxar_Portal_SDK-1.1.2-py3-none-any.whl/Maxar_Portal_SDK/account_service/roles.py
import requests import json import Maxar_Portal_SDK.process as process class Roles: def __init__(self, auth): self.base_url = auth.api_base_url self.response = None self.version = auth.version self.auth = auth def GetRoles(self): """ Returns: All roles ...
PypiClean
/Flask-Statics-Helper-1.0.0.tar.gz/Flask-Statics-Helper-1.0.0/flask_statics/static/BootstrapValidator/js/language/pt_BR.js
(function ($) { /** * Portuguese (Brazil) language package * Translated by @marcuscarvalho6. Improved by @dgmike */ $.fn.bootstrapValidator.i18n = $.extend(true, $.fn.bootstrapValidator.i18n, { base64: { 'default': 'Por favor insira um código base 64 válido' }, ...
PypiClean
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/api/links_api.py
import re # noqa: F401 import sys # noqa: F401 from firefly_iii_client.api_client import ApiClient, Endpoint as _Endpoint from firefly_iii_client.model_utils import ( # noqa: F401 check_allowed_values, check_validations, date, datetime, file_type, none_type, validate_and_convert_types ) ...
PypiClean
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/linotp/lib/ImportOTP/__init__.py
import xml.etree.ElementTree as etree import re import os import binascii from linotp.lib.util import modhex_decode from linotp.lib.util import modhex_encode from Cryptodome.Cipher import AES import logging log = logging.getLogger(__name__) def getKnownTypes(): return ["feitian", "pskc", "dpw", 'dat', "vasco"] ...
PypiClean
/DracoPy-0.0.10.tar.gz/DracoPy-0.0.10/draco/docs/spec/README.md
--- layout: spec-page title: "README: Draco Spec Authoring Information" --- <ol class="breadcrumb"> <li class=""><a href="..">Home</a></li> <li class=""><a href=".">Draft Specification</a></li> <li class="">README</li> </ol> ![Draco logo graphic](../artwork/draco3d-horiz-320x79.png) # Authoring Info, Draco 3...
PypiClean
/OASYS1-WOFRY-1.0.41.tar.gz/OASYS1-WOFRY-1.0.41/orangecontrib/wofry/widgets/tools/ow_1D_to_2D.py
import sys from PyQt5.QtGui import QPalette, QColor, QFont from orangewidget import gui from orangewidget import widget from orangewidget.settings import Setting from oasys.widgets import gui as oasysgui from oasys.util.oasys_util import EmittingStream, TriggerIn, TriggerOut from wofry.propagator.wavefront2D.generic_...
PypiClean
/NESTML-5.3.0-py3-none-any.whl/pynestml/cocos/co_co_kernel_type.py
from typing import Optional from pynestml.cocos.co_co import CoCo from pynestml.codegeneration.printers.cpp_type_symbol_printer import CppTypeSymbolPrinter from pynestml.meta_model.ast_neuron import ASTNeuron from pynestml.symbols.integer_type_symbol import IntegerTypeSymbol from pynestml.symbols.real_type_symbol imp...
PypiClean
/Djblets-3.3.tar.gz/Djblets-3.3/djblets/integrations/manager.py
from __future__ import annotations import atexit import logging import threading from typing import (Dict, Iterable, List, Optional, Sequence, TYPE_CHECKING, Type) from weakref import WeakValueDictionary from django.conf import settings from django.core.exceptions import ImproperlyConfigured from...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/address/he_IL/__init__.py
from .. import Provider as AddressProvider class Provider(AddressProvider): city_formats = ("{{city_name}}",) street_name_formats = ("{{street_title}}",) street_address_formats = ("{{street_name}} {{building_number}}",) address_formats = ("{{street_address}}, {{city}}, {{postcode}}",) postcode_for...
PypiClean
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/tree/ComplexCallHelperFunctions.py
from nuitka.nodes.AttributeNodes import ( ExpressionAttributeCheck, makeExpressionAttributeLookup, ) from nuitka.nodes.BuiltinDictNodes import ExpressionBuiltinDict from nuitka.nodes.BuiltinIteratorNodes import ExpressionBuiltinIter1 from nuitka.nodes.BuiltinNextNodes import ExpressionBuiltinNext1 from nuitka.n...
PypiClean
/Cuckoo-2.0.7a1.tar.gz/Cuckoo-2.0.7a1/cuckoo/private/db_migration/versions/from_20c2_to_200_extend_options_custom.py
# Revision identifiers, used by Alembic. revision = "a1c8aab9598e" down_revision = "af16beb71aa7" import datetime import dateutil.parser from alembic import op import sqlalchemy as sa from cuckoo.core.database import Task TASK_PENDING = "pending" TASK_RUNNING = "running" TASK_COMPLETED = "completed" TASK_RECOVERED ...
PypiClean
/GrpcFileSystem-1.1.0.tar.gz/GrpcFileSystem-1.1.0/NASFileGrpcSystem/grpc_modify_file.py
import logging import os import sys import traceback try: from urllib.parse import urlparse except: from urlparse import urlparse import grpc from future.utils import raise_ from NASFileGrpcSystem.code_dict import code_dict from .proto import files_pb2 from .proto.files_pb2_grpc import FileWorkerStub if sys.ve...
PypiClean
/Andromeda-llm-0.0.3.tar.gz/Andromeda-llm-0.0.3/Andromeda/optimus_prime/autoregressive_wrapper.py
from math import ceil import torch from torch import nn import torch.nn.functional as F from einops import rearrange, pack, unpack def exists(val): return val is not None def eval_decorator(fn): def inner(self, *args, **kwargs): was_training = self.training self.eval() out = fn(self, ...
PypiClean
/LAMDA-SSL-1.0.2.tar.gz/LAMDA-SSL-1.0.2/LAMDA_SSL/Network/LadderNetwork.py
import numbers import torch import numpy as np from torch.nn.parameter import Parameter from torch.autograd import Variable import torch.nn as nn class Encoder(torch.nn.Module): def __init__(self, dim_in, dim_out, activation, train_bn_scaling, noise_level,device='cpu'): super(Encoder, sel...
PypiClean
/MAGINE-0.1.5.tar.gz/MAGINE-0.1.5/magine/logging.py
from __future__ import absolute_import import logging import platform import socket import time import os import warnings from . import __version__ # code based off of magine.logging.py SECONDS_IN_HOUR = 3600 LOG_LEVEL_ENV_VAR = 'MAGINE_LOG' BASE_LOGGER_NAME = 'magine' EXTENDED_DEBUG = 5 NAMED_LOG_LEVELS = {'NOTSET':...
PypiClean
/ChiantiPy-0.15.1.tar.gz/ChiantiPy-0.15.1/docs/source/api/ChiantiPy.base.rst
ChiantiPy\.base package ======================= Submodules ---------- ChiantiPy\.base\._IonTrails module ---------------------------------- .. automodule:: ChiantiPy.base._IonTrails :members: :undoc-members: :show-inheritance: ChiantiPy\.base\._SpecTrails module ----------------------------------- .. a...
PypiClean
/Hinagiku-0.0.0.tar.gz/Hinagiku-0.0.0/hinagiku/core.py
import sys import os import re import md5 import urllib2 import datetime import hinagiku import yaml from dateutil.tz import * from dateutil.parser import parse from genshi.template import MarkupTemplate class Hinagiku: def __init__(self, config_path=None, template_path=None, output_path=None): self.flag = dict...
PypiClean
/LibRecommender-1.3.0-cp38-cp38-macosx_10_9_x86_64.whl/libreco/graph/message.py
from dataclasses import InitVar, dataclass from typing import Iterable, List, Optional import numpy as np import torch from ..batch.enums import Backend def to_cpu_tensor(data, dtype=None): if data is None: return elif isinstance(data, np.ndarray): return torch.from_numpy(data) else: ...
PypiClean
/Authcode-1.6.0-py3-none-any.whl/authcode/setups/setup_for_shake.py
from ..utils import LazyUser, eval_url def setup_for_shake( auth, app, send_email=None, render=None, session=None, request=None, urloptions=None): # pragma: no cover (deprecated) if send_email: auth.send_email = send_email auth.request = request auth.render = render or app.render...
PypiClean
/GBT_parser-1.0.3-py3-none-any.whl/cantools/subparsers/generate_c_source.py
import argparse import os import os.path from .. import database from ..database.can.c_source import camel_to_snake_case, generate def _do_generate_c_source(args): dbase = database.load_file(args.infile, encoding=args.encoding, prune_choices=args.prun...
PypiClean
/DeltaML-commons-0.10.17.tar.gz/DeltaML-commons-0.10.17/commons/web3/delta_contracts.py
class DeltaContract: """ Base Wrapper to DeltaML smart contract """ def __init__(self, contract, address=None): self._contract = contract self.address = address def get_functions(self): return self._contract.functions.all_functions() def exec(self): self._contr...
PypiClean
/Flask-Assistant-0.5.4.tar.gz/Flask-Assistant-0.5.4/flask_assistant/core.py
import inspect import sys import os from functools import wraps, partial import aniso8601 from flask import current_app, json, request as flask_request, _app_ctx_stack from werkzeug.local import LocalProxy from flask_assistant import logger from flask_assistant.response import _Response from flask_assistant.manager i...
PypiClean
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/core/assignment.py
from functools import reduce from typing import Optional, Tuple from mathics.core.atoms import Atom, Integer from mathics.core.attributes import A_LOCKED, A_PROTECTED, attribute_string_to_number from mathics.core.element import BaseElement from mathics.core.evaluation import MAX_RECURSION_DEPTH, set_python_recursion_l...
PypiClean
/LyMaker-0.5.4.1.tar.gz/LyMaker-0.5.4.1/LyMaker.py
import sys, getopt,os from LyMaker import LyMk,xmlreader VERSION = "0.5.4" def usage(): print "LyMaker (Version %s)" % VERSION print "usage: LyMaker.py [options]" print "-h print help" print "-f xml filename (without extension)" print "-t create template xml file" print "-s show scale and val...
PypiClean
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/data/StoreExplorer.js.uncompressed.js
define("dojox/data/StoreExplorer", ["dijit","dojo","dojox","dojo/require!dojox/grid/DataGrid,dojox/data/ItemExplorer,dijit/layout/BorderContainer,dijit/layout/ContentPane"], function(dijit,dojo,dojox){ dojo.provide("dojox.data.StoreExplorer"); dojo.require("dojox.grid.DataGrid"); dojo.require("dojox.data.ItemExplorer")...
PypiClean
/Crypro-2.0.3.tar.gz/Crypro-2.0.3/README.md
# Crypro Simple symmetric GPG file encryption and decryption ## About Crypro provides a simple interface to symmetric Gnu Privacy Guard (gpg) encryption and decryption for one or more files on Unix and Linux platforms. It runs on top of gpg and requires a gpg install on your system. Encryption is performed with the ...
PypiClean
/lektor-3.4.0b6-py3-none-any.whl/lektor/types/primitives.py
import re from datetime import date from datetime import datetime from babel.dates import get_timezone from markupsafe import Markup from lektor.constants import PRIMARY_ALT from lektor.i18n import get_i18n_block from lektor.types.base import Type from lektor.utils import bool_from_string class SingleInputType(Type...
PypiClean
/DracoPy-0.0.10.tar.gz/DracoPy-0.0.10/draco/docs/spec/variable.descriptions.md
## Descriptions ### Constants * Mesh encoding methods * 0: MESH_SEQUENTIAL_ENCODING * 1: MESH_EDGEBREAKER_ENCODING * Metadata constants * 32768: METADATA_FLAG_MASK * Sequential attribute encoding methods * 0: SEQUENTIAL_ATTRIBUTE_ENCODER_GENERIC * 1: SEQUENTIAL_ATTRIBUTE_ENCODER_INTEGER * 2: SEQUENTIAL_...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/core/checks/messages.py
DEBUG = 10 INFO = 20 WARNING = 30 ERROR = 40 CRITICAL = 50 class CheckMessage: def __init__(self, level, msg, hint=None, obj=None, id=None): assert isinstance(level, int), "The first argument should be level." self.level = level self.msg = msg self.hint = hint self.obj = o...
PypiClean
/LIFEsim-0.2.29.tar.gz/LIFEsim-0.2.29/lifesim/util/options.py
import warnings import numpy as np # TODO: Rename habitable variable class Options(object): """ The Options class contains all options and settings needed for the simulation of the LIFE array. Any settings are exclusively found in the Options class and must only be set through changing attributes of ...
PypiClean
/Flask-httpretty-1.3.0.tar.gz/Flask-httpretty-1.3.0/README.rst
Flask-httpretty ================= .. image:: https://travis-ci.org/admire93/flask-httpretty.svg?branch=master :target: https://travis-ci.org/admire93/flask-httpretty Mock http request with flask! flask-httpretty is built based on httpretty_. Hello world ~~~~~~~~~~~~ .. code-block:: python from flask import...
PypiClean
/CATools-0.0.1-py3-none-any.whl/CATools-0.0.1.dist-info/DESCRIPTION.rst
All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary for...
PypiClean
/B9gemyaeix-4.14.1.tar.gz/B9gemyaeix-4.14.1/docs/contributing/debugging.rst
Debugging Weblate ================= Bugs can behave as application crashes or as various misbehavior. You are welcome to collect info on any such issue and submit it to the `issue tracker <https://github.com/WeblateOrg/weblate/issues>`_. Debug mode ---------- Turning on debug mode will make the exceptions show in th...
PypiClean
/BRAILS-3.0.1.tar.gz/BRAILS-3.0.1/brails/modules/GarageDetector/lib/efficientdet/dataset.py
import os import torch import numpy as np from torch.utils.data import Dataset from lib.efficientdet.coco import COCO import cv2 class CocoDataset(Dataset): def __init__(self, root_dir, coco_dir, img_dir, set_dir='train2017', transform=None): self.root_dir = root_dir self.img_dir = img_dir ...
PypiClean
/BIA_OBS-1.0.3.tar.gz/BIA_OBS-1.0.3/BIA/static/dist/node_modules/postcss-selector-parser/dist/selectors/guards.js
"use strict"; exports.__esModule = true; exports.isNode = isNode; exports.isPseudoElement = isPseudoElement; exports.isPseudoClass = isPseudoClass; exports.isContainer = isContainer; exports.isNamespace = isNamespace; exports.isUniversal = exports.isTag = exports.isString = exports.isSelector = exports.isRoot = export...
PypiClean
/NlpToolkit-Classification-1.0.16.tar.gz/NlpToolkit-Classification-1.0.16/Classification/Model/DummyModel.py
from Classification.Instance.CompositeInstance import CompositeInstance from Classification.Instance.Instance import Instance from Classification.InstanceList.InstanceList import InstanceList from Classification.Model.Model import Model from Math.DiscreteDistribution import DiscreteDistribution class DummyModel(Model...
PypiClean
/MachaTheKing-99.99.99-py3-none-any.whl/secret_santa/xmas.py
import time from random import randint,randrange,choice import random from colorama import Fore , Back,init #,Styles from termcolor import colored init() # terminal-img import os os.system('cls' if os.name == 'nt' else 'clear') print(80000*' ') # from image import DrawImage as drw # imgg = drw.from_file('ramya.jpg') # ...
PypiClean
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/model/signaldesigners/BetaScanDesigner.py
import numpy as np from .basesignaldesigners import ScanDesigner from imswitch.imcommon.model import initLogger class BetaScanDesigner(ScanDesigner): """ Scan designer for X/Y/Z stages that move a sample. Designer params: - ``return_time`` -- time to wait between lines for the stage to return to the...
PypiClean
/NESTML-5.3.0-py3-none-any.whl/pynestml/meta_model/ast_neuron_or_synapse_body.py
from typing import List, Optional from pynestml.meta_model.ast_block_with_variables import ASTBlockWithVariables from pynestml.meta_model.ast_equations_block import ASTEquationsBlock from pynestml.meta_model.ast_input_block import ASTInputBlock from pynestml.meta_model.ast_node import ASTNode from pynestml.meta_model...
PypiClean
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/prism/components/prism-bash.js
(function(Prism) { var insideString = { variable: [ // Arithmetic Environment { pattern: /\$?\(\([\s\S]+?\)\)/, inside: { // If there is a $ sign at the beginning highlight $(( and )) as variable variable: [{ pattern: /(^\$\(\([\s\S]+)\)\)/, lookbehind: true }, /^\$\...
PypiClean
/IPython-Dashboard-0.1.5.tar.gz/IPython-Dashboard-0.1.5/dashboard/static/js/dash.sql.js
function runSql(options) { console.log("###Run sql options: " + options); var sql_raw = (options=="selected" ? editor.getSelectedText() : editor.getValue()) ; sqlAjax(options, sql_raw); console.log("###Run sql : " + sql_raw); } function sqlAjax(options, sql_raw){ var postData = JSON.stringify({"sq...
PypiClean
/FAaDO-0.0.4.tar.gz/FAaDO-0.0.4/fado/runner/communication/sockets/server_pub_info_manager.py
import gzip import logging import pickle import select import socket import struct import sys import threading from time import sleep from typing import List, Optional, Any from fado.constants import SERVER_IP, SERVER_PORT, SERVER_PUB_PORT from fado.runner.communication.base_com_manager import BaseCommunicationManager...
PypiClean
/IntervalArithmetic-0.2.0.tar.gz/IntervalArithmetic-0.2.0/setup_data.py
#################################################################################################### import os import sys import subprocess #################################################################################################### def merge_include(src_lines, doc_path, included_rst_files=None): if inc...
PypiClean
/Lab_4-0.0.1-py3-none-any.whl/Lab4/interrupt_example_v3.ipynb
``` from pynq import Overlay import asyncio from psutil import cpu_percent ol = Overlay("fact_intrpt.bit") #assumes you have the overlay bitstream in the current directory ol.ip_dict ``` # IP address map You need to set up the interrupt controller in Vivado and get this information from there. ``` # IP's addresses...
PypiClean
/EmulsiPred-0.0.3.tar.gz/EmulsiPred-0.0.3/README.md
# EmulsiPred Tool for prediction of emulsifying peptides. EmulsiPred predicts the emulsifying property of either a single peptide or for any peptide within a protein sequences. Three emulsifying scores are calculated for each peptide as described by [García-Moreno P.J. et al., 2020](doi.org/10.1038/s41598-019-57229-6),...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/STIX-Web/Latin/Regular/Main.js
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.STIXMathJax_Latin={directory:"Latin/Regular",family:"STIXMathJax_Latin",testString:"\u00A0\u00A1\u00A2\u00A4\u00A6\u00A9\u00AA\u00AB\u00AD\u00B2\u00B3\u00B6\u00B8\u00B9\u00BA",32:[0,0,250,0,0],160:[0,0,250,0,0],161:[468,218,330,96,202],162:[579,138,500,53,448],164:[534,10,50...
PypiClean
/BYONDTools-0.1.8.zip/BYONDTools-0.1.8/LICENSE.rst
The MIT License (MIT) Copyright (c) 2013 Rob "N3X15" Nelson 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, merg...
PypiClean
/FastNLP-1.0.1.tar.gz/FastNLP-1.0.1/fastNLP/models/torch/seq2seq_generator.py
import torch from torch import nn import torch.nn.functional as F from fastNLP import seq_len_to_mask from .seq2seq_model import Seq2SeqModel from ...modules.torch.generator.seq2seq_generator import SequenceGenerator __all__ = ['SequenceGeneratorModel'] class SequenceGeneratorModel(nn.Module): """ 通过使用本模型封装...
PypiClean
/EpikCord.py-0.4.3.tar.gz/EpikCord.py-0.4.3/EpikCord/abc.py
from typing import ( List, Optional ) from .client import Client from .user import User from .message import Message from .member import GuildMember from .exceptions import ( InvalidArgumentType, CustomIdIsTooBig ) class Messageable: def __init__(self, client: Client, channel_id: str): self...
PypiClean
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/detection/single_stage/ssd/bounding_boxes/ssd_transforms.py
__author__ = "Christian Heider Nielsen" __doc__ = r""" Created on 25/03/2020 """ from typing import Any, Tuple import numpy import torch from draugr.numpy_utilities import SplitEnum from draugr.opencv_utilities import ( CV2Compose, CV2Expand, CV2PhotometricDistort, CV2RandomMir...
PypiClean
/ISSAstronaut_Tracker-0.1.tar.gz/ISSAstronaut_Tracker-0.1/README.txt
This is an ISS Tracker made using python. You will need to install the python packages json, turtle, and urllib.request beforehand as these packages are required. This project will report the live latitude and longtitude of the ISS. This project will also report the amount of astronauts on the ISS and Shenzhou 15 combi...
PypiClean
/Dans_Diffraction-3.0.0-py3-none-any.whl/Dans_Diffraction/functions_scattering.py
import numpy as np import datetime from . import functions_general as fg from . import functions_crystallography as fc __version__ = '0.9' MAX_QR_ARRAY = 1.0e7 TIME_REPORT = True DEBUG_MODE = False SCATTERING_TYPES = { 'xray': ['xray', 'x', 'x-ray', 'thomson', 'charge'], 'xray fast': ['xray fast', 'xfast'], ...
PypiClean
/CCMetagen-1.4.0-py3-none-any.whl/ccmetagen/fNCBItax.py
from ete3 import NCBITaxa from ccmetagen import cTaxInfo # where we define classes used here def lineage_extractor(query_taxid, TaxInfo_object, taxfile=None): list_of_taxa_ranks = ['superkingdom', 'kingdom', 'phylum', 'class', 'order', 'family','genus', 'species'] if taxfile is not None: ncbi = NCBIT...
PypiClean
/GiHaDocs-1.0.5.tar.gz/GiHaDocs-1.0.5/gihadocs/config/base.py
import logging import os import sys from yaml import YAMLError from collections import UserDict from gihadocs import exceptions from gihadocs import utils log = logging.getLogger('gihadocs.config') class ValidationError(Exception): """Raised during the validation process of the config on errors.""" class Con...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/dense_heads/paa_head.py
import numpy as np import torch from mmcv.runner import force_fp32 from mmdet.core import multi_apply, multiclass_nms from mmdet.core.bbox.iou_calculators import bbox_overlaps from mmdet.models import HEADS from mmdet.models.dense_heads import ATSSHead EPS = 1e-12 try: import sklearn.mixture as skm except ImportE...
PypiClean
/6D657461666C6F77-0.0.17.tar.gz/6D657461666C6F77-0.0.17/metaflow/datastore/util/s3tail.py
from .s3util import aws_retry, get_s3_client try: # python2 from urlparse import urlparse import cStringIO BytesIO = cStringIO.StringIO except: # python3 from urllib.parse import urlparse import io BytesIO = io.BytesIO class S3Tail(object): def __init__(self, s3url): url = ...
PypiClean
/Clortho-0.0.0.tar.gz/Clortho-0.0.0/README.md
<--- Copyright 2012 ShopWiki 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 in wr...
PypiClean
/EnforsML-0.0.3.tar.gz/EnforsML-0.0.3/README.md
# EnforsML - Enfors Machine Learning library Project state: early planning In its current state, this library only supports chatbot backends. # text - text-related classes ## word ## ngram ## bagofwords ## utils ## nlp Functionality related to natural language processing for chatbots and the like. ### How to ...
PypiClean
/KL_Audit_supportV2.3-1.0-py3-none-any.whl/AuditModule/core/persistences/adaptors/CassandraPersistenceAdaptor.py
import traceback import json from cassandra.cluster import Cluster from AuditModule.common import AppConstants from AuditModule.util import Logging as LOGG Logger = LOGG.get_logger() class CassandraDButility: def __init__(self): """ Initializer """ try: Logger.info...
PypiClean
/DynamicMachine-1.0.4-py3-none-any.whl/dynamic_machine/cli_process_json.py
import json import dynamic_machine.cli_commands from dynamic_machine.cli_commands import Command, User from dynamic_machine.cli_ssh import SshCli from builtins import RuntimeWarning, Exception class CliProcessingJson(object): ''' classdocs JSON should be of the format: { "hostname" : "<ip>...
PypiClean
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/addon/runmode/runmode.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
/ESMValCore-2.9.0rc1.tar.gz/ESMValCore-2.9.0rc1/esmvalcore/experimental/recipe.py
import logging import os import pprint import shutil from pathlib import Path from typing import Dict, Optional import yaml from esmvalcore._recipe.recipe import Recipe as RecipeEngine from esmvalcore.config import CFG, Session, _dask from ._logging import log_to_dir from .recipe_info import RecipeInfo from .recipe...
PypiClean
/AstroKundli-2.0.0.tar.gz/AstroKundli-2.0.0/FlatlibAstroSidereal/predictives/primarydirections.py
from FlatlibAstroSidereal import angle from FlatlibAstroSidereal import utils from FlatlibAstroSidereal import const from FlatlibAstroSidereal.dignities import tables # === Base functions === # def arc(pRA, pDecl, sRA, sDecl, mcRA, lat): """ Returns the arc of direction between a Promissor and Significator....
PypiClean
/MindsDB-23.8.3.0.tar.gz/MindsDB-23.8.3.0/mindsdb/migrations/versions/2022-09-06_96d5fef10caa_data_integration_id.py
from alembic import op import sqlalchemy as sa from sqlalchemy.sql import text import mindsdb.interfaces.storage.db # noqa # revision identifiers, used by Alembic. revision = '96d5fef10caa' down_revision = '473e8f239481' branch_labels = None depends_on = None def upgrade(): with op.batch_alter_table('pr...
PypiClean
/ECSctrl-0.4.0-py3-none-any.whl/ecsctrl/boto_client.py
import json import sys from functools import partial import boto3 import click from botocore.loaders import Loader from botocore.model import ServiceModel from botocore.validate import ParamValidator class BotoClient: def __init__(self, service, dry_run=False) -> None: self.dry_run = dry_run self...
PypiClean
/HEBO-0.3.2-py3-none-any.whl/hebo/models/nn/eac/masked_deep_ensemble.py
# This program is free software; you can redistribute it and/or modify it under # the terms of the MIT license. # This program is distributed in the hope that it will be useful, but WITHOUT ANY # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A # PARTICULAR PURPOSE. See the MIT License ...
PypiClean
/OctoBot-Commons-1.9.18.tar.gz/OctoBot-Commons-1.9.18/octobot_commons/os_util.py
import sys import os import platform import ctypes import psutil import octobot_commons.constants as constants import octobot_commons.enums as enums def get_current_platform(): """ Return the current platform details Return examples For Windows : >>> 'Windows:10:AMD64' For Linux : >>> '...
PypiClean
/Marmir-0.1.3.tar.gz/Marmir-0.1.3/mm/contrib/django/data_model.py
import logging from mm import model_base import django.db.models.fields as fields log = logging.getLogger(__name__) class DjangoDataModel(object): """ Data Model creates a list of system defined data types in self.field_headers""" def __init__(self, data, order=None, column_types=None): """ construc...
PypiClean
/AlphaPeel-1.1.3.tar.gz/AlphaPeel-1.1.3/src/tinypeel/tinyhouse/Pedigree.py
import numpy as np import numba import sys from numba import jit, int8, int64, boolean, deferred_type, optional, float32, double from numba.experimental import jitclass from collections import OrderedDict from . import InputOutput from . import ProbMath from . import MultiThreadIO class Family(object): """Family ...
PypiClean
/NHXDB-1.3.2.tar.gz/NHXDB-1.3.2/README.md
# NHXDB NHXDB is a lightweight Database which combines the SQL language with the ease of ORM syntax # Update v1.3.2 - ##### Choice of Default Directory for storage is added - ##### Restructure of syntax and refinement of algorithms - ##### Performance Improvements and bug fixes # Features currently supported - _Log...
PypiClean
/Fo4doG_mess_client-0.0.2.tar.gz/Fo4doG_mess_client-0.0.2/client/client.py
import argparse import sys import os from Crypto.PublicKey import RSA from PyQt5.QtWidgets import QApplication, QMessageBox from common.variables import * from common.errors import ServerError from common.decos import log from client_packets.client.client.database import ClientDatabase from client_packets.client.clien...
PypiClean
/ChemDataExtractor-IDE-1.3.2.tar.gz/ChemDataExtractor-IDE-1.3.2/chemdataextractor/reader/rsc.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging from ..doc.text import Footnote, Caption from ..doc.figure import Figure from ..doc.table import Table from ..scrape.pub.rsc import replace_rsc_img_chars f...
PypiClean
/AdjectorClient-1.0b1.tar.gz/AdjectorClient-1.0b1/ez_setup.py
import sys DEFAULT_VERSION = "0.6c9" DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3] md5_data = { 'setuptools-0.6b1-py2.3.egg': '8822caf901250d848b996b7f25c6e6ca', 'setuptools-0.6b1-py2.4.egg': 'b79a8a403e4502fbb85ee3f1941735cb', 'setuptools-0.6b2-py2.3.egg': '5657759...
PypiClean
/ChemDataExtractor_c-1.0.0-py3-none-any.whl/chemdataextractor/reader/markup.py
from __future__ import absolute_import from __future__ import division from __future__ import print_function from __future__ import unicode_literals import logging from abc import abstractmethod, ABCMeta from collections import defaultdict from lxml import etree from lxml.etree import XMLParser from lxml.html import H...
PypiClean
/Funct-0.9.2.tar.gz/Funct-0.9.2/README.md
# funct.Array Array is a functional mutable sequence inheriting from Python's built-in list. Array provides 100+ higher-order methods and more functionality to the built-in list, making operations on sequences simpler and one-liners neater with no third party packages required. Array provides a combination of python ...
PypiClean
/GQCMS-0.0.4-py3-none-any.whl/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/build/lib/gqcms/PlottingTools/LegendPlotter.py
import matplotlib.pyplot as plt import seaborn as sns from PIL import Image def sitesDrawer(postitions, color_dict={}, edge_color_dict={}, axis="NotGiven"): """ draws sites on the canvas on the required position positions, list of tuples: the positions of the sites color_dict, dict: contains the color...
PypiClean
/OCyara-1.0.1-py3-none-any.whl/ocyara/ocyara.py
import argparse import glob import io import os import tempfile import tesserocr import yara from multiprocessing import Process, JoinableQueue, Lock, Manager, cpu_count from queue import Empty from time import sleep import colorlog from PIL import Image from tqdm import tqdm import subprocess from typing import Dict,...
PypiClean
/NehorayRapid1-0.0.1-py3-none-any.whl/mmedit/models/common/gca_module.py
import torch import torch.nn as nn from mmcv.cnn import ConvModule, constant_init, xavier_init from torch.nn import functional as F class GCAModule(nn.Module): """Guided Contextual Attention Module. From https://arxiv.org/pdf/2001.04069.pdf. Based on https://github.com/nbei/Deep-Flow-Guided-Video-Inpaint...
PypiClean
/Fortune%20Calculator-0.0.4.tar.gz/Fortune Calculator-0.0.4/README.md
Minecraft Fortune Calculator for funny # Docs ## class Ore Type Ore for Calculator ```py Coal = 1 Diamond = 1 Emerald = 1 Iron = 1 Copper = "Copper" # (2~3) Gold = 1 NetherGold = "NetherGold" # (2~6) NetherQuartz = 1 Lapis = "Lapis" # (4~9) AmyestCluster = 4 ``` ## class Calculator Need arg = fortunelevel(int or flo...
PypiClean
/GraphQL_core_next-1.1.1-py3-none-any.whl/graphql/validation/rules/fragments_on_composite_types.py
from ...error import GraphQLError from ...language import FragmentDefinitionNode, InlineFragmentNode, print_ast from ...type import is_composite_type from ...utilities import type_from_ast from . import ValidationRule __all__ = [ "FragmentsOnCompositeTypesRule", "inline_fragment_on_non_composite_error_message"...
PypiClean
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/cmd/make_mode.py
import os import subprocess import sys from os import path from typing import List import sphinx from sphinx.cmd.build import build_main from sphinx.util.console import color_terminal, nocolor, bold, blue # type: ignore from sphinx.util.osutil import cd, rmtree BUILDERS = [ ("", "html", "to make sta...
PypiClean
/Aircraft_war-1.0.tar.gz/Aircraft_war-1.0/models.py
import pygame,random,traceback from pygame.locals import * # #定义需要的常量 SCREEN_SIZE = (512,768) SCREEN_RECT = pygame.Rect(0,0,*SCREEN_SIZE) #定义游戏场景的大小 # #自定义一个事件 ENEMY_CREATE = pygame.USEREVENT #自定义一个事件,用来定义敌方boss的出现时间 ENEMY_CREATES = pygame.USEREVENT +1 #时间声明 clock = pygame.time.Clock() class GameSprite(pygame.sp...
PypiClean
/FamilyLedger-0.2.0-py3-none-any.whl/familyledger/commandline.py
import argparse import os from collections import namedtuple from tkinter import filedialog from tkinter import Tk from . import dataview from . utils._i18n import n_ from . import version FORMAT_EXTENSION = { 'csv': '.csv', 'excel': '.xlsx', 'tsv': '.tsv', 'unix': '.csv', } """Mapping from output fo...
PypiClean
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/staticfiles/finders.py
import functools import os from collections import OrderedDict from django.apps import apps from django.conf import settings from django.contrib.staticfiles import utils from django.core.checks import Error from django.core.exceptions import ImproperlyConfigured from django.core.files.storage import ( FileSystemSt...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/date/buddhist/Date.js
if(!dojo._hasResource["dojox.date.buddhist.Date"]){ dojo._hasResource["dojox.date.buddhist.Date"]=true; dojo.provide("dojox.date.buddhist.Date"); dojo.experimental("dojox.date.buddhist.Date"); dojo.declare("dojox.date.buddhist.Date",null,{_date:0,_month:0,_year:0,_hours:0,_minutes:0,_seconds:0,_milliseconds:0,_day:0,co...
PypiClean
/CFS_Manager-1.3.0a0.tar.gz/CFS_Manager-1.3.0a0/docs/changelog.rst
********** Change Log ********** This is where all inter-version changes in the CFS_Manager project will be noted. All changes noted here will be in summary form. If you're reading this on *readthedocs*, you can do a full-text search to get more details. This project follows `Semantic Versioning <http://semver.org/>`_...
PypiClean
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/algorithm/optimizers.py
from typing import Optional from mathics.builtin.scoping import dynamic_scoping from mathics.core.atoms import ( Integer, Integer0, Integer1, Integer2, Integer3, Integer10, IntegerM1, Number, Real, String, ) from mathics.core.convert.python import from_python from mathics.core....
PypiClean
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/mapserver/wcs/capabilities_renderer.py
from lxml import etree from eoxserver.core import Component, implements from eoxserver.core.config import get_eoxserver_config from eoxserver.core.util.timetools import isoformat from eoxserver.contrib.mapserver import create_request, Map, Layer from eoxserver.resources.coverages import crss from eoxserver.render.cov...
PypiClean
/Fuzzython-0.1.0.tar.gz/Fuzzython-0.1.0/fsets/sfunction.py
from fsets.fuzzy_set import FuzzySet from interval import Interval __author__ = '' class SFunction(FuzzySet): """ Fuzzy Set with a S-shaped function __ /| / | /| | __/ | | | b | a c a: point for minimum function evaluation b: x-...
PypiClean
/IPFX-1.0.8.tar.gz/IPFX-1.0.8/ipfx/bin/make_stimulus_ontology.py
import allensdk.core.json_utilities as ju from ipfx.stimulus import StimulusOntology import re import ipfx.lims_queries as lq import logging def make_stimulus_ontology(stims): NAME = 'name' CODE = 'code' RES = 'resolution' CORE = 'core' HOLD = 'hold' ontology_tags = [] stims = [{k: v for...
PypiClean
/NeodroidAgent-0.4.8-py36-none-any.whl/neodroidagent/common/session_factory/vertical/procedures/training/exclude/step_wise2.py
from pathlib import Path from typing import Any, Union import numpy import torch from neodroidagent.common.transitions import ValuedTransition from draugr.torch_utilities import TensorBoardPytorchWriter from neodroid.environments.droid_environment import VectorUnityEnvironment from neodroid.utilities import Environme...
PypiClean
/NanoLyse-1.2.1.tar.gz/NanoLyse-1.2.1/nanolyse/NanoLyse.py
from __future__ import print_function import mappy as mp from argparse import HelpFormatter, ArgumentParser import sys from nanolyse.version import __version__ from os import path from Bio import SeqIO import logging import textwrap as _textwrap class CustomHelpFormatter(HelpFormatter): def _format_action_invoca...
PypiClean
/BakalariAPI-4.0.0-py3-none-any.whl/bakalarishell/shell.py
from __future__ import annotations import argparse import contextlib import io import os import shlex import sys from enum import Enum, IntEnum from typing import Any, Callable, Iterable from prompt_toolkit import PromptSession from prompt_toolkit.auto_suggest import AutoSuggestFromHistory from prompt_toolkit.comple...
PypiClean
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/comm/torch.py
# DeepSpeed Team from deepspeed import utils from .utils import * from .backend import * from .comm import * import torch def is_torch_two(): TORCH_MAJOR = int(torch.__version__.split('.')[0]) if TORCH_MAJOR >= 2: return True else: return False def has_coalescing_manager(): has_c...
PypiClean
/Adafruit_GPIO-1.0.3.tar.gz/Adafruit_GPIO-1.0.3/Adafruit_GPIO/SPI.py
import operator import time import Adafruit_GPIO as GPIO MSBFIRST = 0 LSBFIRST = 1 class SpiDev(object): """Hardware-based SPI implementation using the spidev interface.""" def __init__(self, port, device, max_speed_hz=500000): """Initialize an SPI device using the SPIdev interface. Port and dev...
PypiClean
/ESMValTool-2.9.0-py3-none-any.whl/esmvaltool/diag_scripts/ensclus/sel_season_area.py
import numpy as np def sel_season(var, dates, season): """Selecting a season (DJF,DJFM,NDJFM,JJA). USAGE: var_season, dates_season = sel_season(var, dates, season) """ # ----------------------------------------------------------------------- # print('Selecting only {0} data'.format(season)) ...
PypiClean