id
stringlengths
1
265
text
stringlengths
6
5.19M
dataset_id
stringclasses
7 values
/BrainpyFuck-0.1.1.tar.gz/BrainpyFuck-0.1.1/README.md
# BrainFuckInterpreter ### standard usage: ```python from brainFuckInterpreter import BrainF ``` easily get outputs: ```python for msg in BrainF(code='yourcodehere'): print(msg) #msg is what the '.' outputs ``` or use a comprehension ```python meg=[i for i in BrainF(code='yourcodehere') if i] ``` or just run it a...
PypiClean
/Nepali%20nlp-0.0.0.tar.gz/Nepali nlp-0.0.0/Nepali_nlp/utils.py
import re import urllib from bs4 import BeautifulSoup from urllib.request import Request, urlopen def load_multiple_link_dataset(file_loc = 'nep-eng.txt'): with open(file_loc,'r') as fp: file_content = [] file_ = fp.read().splitlines() for ind,item in enumerate(file_): if item...
PypiClean
/EnergyCapSdk-8.2304.4743.tar.gz/EnergyCapSdk-8.2304.4743/energycap/sdk/models/specific_widget_response_py3.py
from msrest.serialization import Model class SpecificWidgetResponse(Model): """SpecificWidgetResponse. :param specific_widget_id: Specific widget identifier :type specific_widget_id: int :param title: User Widget title :type title: str :param widget_info: Widget title :type widget_info: ...
PypiClean
/Aitomatic-Contrib-23.8.10.3.tar.gz/Aitomatic-Contrib-23.8.10.3/src/aito/iot_mgmt/maint_ops/migrations/0117_verbose_names.py
from django.db import migrations class Migration(migrations.Migration): """Verbose names.""" dependencies = [ ('IoT_MaintOps', '0116_rename_alert_equipmentinstancealertperiod') ] operations = [ migrations.AlterModelOptions( name='alertdiagnosisstatus', optio...
PypiClean
/HC-05-ConfigTool-0.1.1.tar.gz/HC-05-ConfigTool-0.1.1/hc05config/master_and_slave.py
from .port_select import getPort from .input_lib import get_input, INVALID_MESSAGE, BAUD_RATE_VALIDATE, STOP_BIT_VALIDATE, PARITY_BIT_VALIDATE, MASTER_AND_SLAVE_VALIDATE, NAME_VALIDATOR from .basic_info import print_basic_info from .preset import selectPreset, adjustPreset, savePreset # Setting up master and slave blu...
PypiClean
/DocOnce-1.5.15-py3-none-any.whl/doconce/common.py
from __future__ import absolute_import from future import standard_library standard_library.install_aliases() from builtins import str from builtins import range import sys, os, shutil, subprocess#, xml.etree.ElementTree import regex as re import requests import urllib.request, urllib.parse, urllib.error #TODO: substit...
PypiClean
/GeCO-1.0.7.tar.gz/GeCO-1.0.7/README.md
[![Build Status](https://travis-ci.org/CharJon/GeCO.svg?branch=main)](https://travis-ci.org/CharJon/GeCO) [![codecov](https://codecov.io/gh/CharJon/GeCO/branch/main/graph/badge.svg?token=IRS3LOkoFZ)](https://codecov.io/gh/CharJon/GeCO) # GeCO **Generators for Combinatorial Optimization** This python package offers f...
PypiClean
/DpmModule-1.1.0-py3-none-any.whl/dpmModule/boss/kernel.py
from ..kernel.core import * '''Boss Pattern (1) Boss Pattern DO NOT HAVE delay, because each skill represents boss's state only. (2) Each pattern has state flag which represents boss's state during given action is progressing. (1) 보스 패턴은 딜레이를 가지지 않습니다. 이는 보스 패턴이 보스의 상태를 기술하기 위함이기 때문이며, 데미지를 가하는 주체가 보스가 아닌 유저이기 때문...
PypiClean
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/losses/focal_loss.py
import torch import torch.nn as nn import torch.nn.functional as F from mmcv.ops import sigmoid_focal_loss as _sigmoid_focal_loss from ..builder import LOSSES from .utils import weight_reduce_loss # This method is only for debugging def py_sigmoid_focal_loss(pred, target, ...
PypiClean
/NREL_sup3r-0.1.0-py3-none-any.whl/sup3r/preprocessing/batch_handling.py
import logging import numpy as np from datetime import datetime as dt import os import pickle from scipy.ndimage.filters import gaussian_filter from concurrent.futures import (as_completed, ThreadPoolExecutor) from rex.utilities import log_mem from sup3r.utilities.utilities import (estimate_max_workers, ...
PypiClean
/DjamBase-1.0.16.tar.gz/DjamBase-1.0.16/README.txt
========== DjamBase ========== .. image:: http://images.jambase.com/logos/jambase140x70.gif **A Python Jambase API Client Library** Getting Started --------------- .. code:: $ pip install DjamBase Get a valid Developer API key at http://developer.jambase.com. .. code:: python import DjamBase db =...
PypiClean
/FileTransfer-0.11.0-py3-none-any.whl/filetransfer/mail.py
import email import logging import pprint import string import textwrap import traceback from smtplib import SMTP, SMTP_SSL, SMTPException from salmagundi.strings import format_timedelta from .const import ExitCodes from .job import JobResult from .utils import read_resource _logger = logging.getLogger(__name__) _...
PypiClean
/Ax_Metrics-0.9.2.tar.gz/Ax_Metrics-0.9.2/py/axonchisel/metrics/foundation/metricdef/mdefl.py
import copy import yaml import collections from axonchisel.metrics.foundation.ax.obj import AxObj from axonchisel.metrics.foundation.ax.dictutil import dict_update_recursive from .metricdef import MetricDef from .filters import Filter from .metset import MetSet # --------------------------------------------------...
PypiClean
/Django-Select2-Py3-4.2.1.tar.gz/Django-Select2-Py3-4.2.1/README
Django-Select2 ============== This is a [Django](https://www.djangoproject.com/) integration of [Select2](http://ivaynberg.github.com/select2/). The app includes Select2 driven Django Widgets and Form Fields. Installation ============ 1. Install `django_select2` pip install django_select2 2. Add `django_s...
PypiClean
/FP-SMC-ALS-test1-0.0.1.tar.gz/FP-SMC-ALS-test1-0.0.1/smc/examples/engine-node-health.py
import smc.examples from smc import session from smc.core.engines import Layer3VirtualEngine, Layer3Firewall from smc.core.waiters import NodeStatusWaiter from smc_info import * if __name__ == "__main__": session.login(url=SMC_URL, api_key=API_KEY, verify=False, timeout=120, api_version=API_VERSION) print("s...
PypiClean
/Office365-REST-Python-Client-2.4.3.tar.gz/Office365-REST-Python-Client-2.4.3/office365/sharepoint/marketplace/tenant/appcatalog/accessor.py
from office365.runtime.client_result import ClientResult from office365.runtime.paths.resource_path import ResourcePath from office365.runtime.paths.service_operation import ServiceOperationPath from office365.runtime.queries.service_operation import ServiceOperationQuery from office365.sharepoint.base_entity import Ba...
PypiClean
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/fipy/terms/binaryTerm.py
from __future__ import unicode_literals __docformat__ = 'restructuredtext' __all__ = [] import os from fipy.terms.abstractBinaryTerm import _AbstractBinaryTerm class _BinaryTerm(_AbstractBinaryTerm): @property def _buildExplcitIfOther(self): return True def _buildAndAddMatrices(self, var, Spar...
PypiClean
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/diofant/__main__.py
import argparse import ast import atexit import code import os import readline import rlcompleter from diofant.interactive.session import (AutomaticSymbols, IntegerDivisionWrapper) __all__ = () parser = argparse.ArgumentParser(description=__doc__, ...
PypiClean
/ImSwitch-2.0.0.tar.gz/ImSwitch-2.0.0/imswitch/imcontrol/model/interfaces/thorcamera.py
from logging import raiseExceptions import numpy as np import time import cv2 from imswitch.imcommon.model import initLogger import collections import numpy as np import matplotlib.pyplot as plt # init devwraps #import devwraps # removes all DLLs #devwraps.remove_dlls() # look for DLLs according to the paths spe...
PypiClean
/Blender_Renderer-1.2.1-py3-none-any.whl/blender_renderer/renderer.py
import json import os import uuid import subprocess from typing import Dict, List, Any from .cleaner import rm_dir class Renderer: def __init__(self, blender_path: str, tmp_directory: str): self.blender_path = blender_path self.tmp_directory = tmp_directory scripts_dir = os.path.join(os....
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/ext-old_ie.js
ace.define("ace/ext/searchbox",["require","exports","module","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/keyboard/hash_handler","ace/lib/keys"], function(require, exports, module) { "use strict"; var dom = require("../lib/dom"); var lang = require("../lib/lang"); var event = require("../lib/event"); var searchbo...
PypiClean
/CC-dbgen-0.2.0.tar.gz/CC-dbgen-0.2.0/dbgen/cli/run.py
import typing as typ #External imports from os import environ from argparse import ArgumentParser from pprint import pformat from distutils.util import strtobool from ast import literal_eval from json import load # Internal Modules from dbgen.support.utils import Conne...
PypiClean
/Data4FAE-0.0.1.tar.gz/Data4FAE-0.0.1/README.md
# 2Data4FAE For this task, the developer has selected the [mc52-syum](https://data.nasa.gov/Space-Science/Fireball-And-Bolide-Reports/mc52-syum) database, whith contains information on the date and time of each fireball event, its geographic location, its altitude and velocity at peak brightness, its approximate total...
PypiClean
/KFlask-AppBuilder-1.0.1.tar.gz/KFlask-AppBuilder-1.0.1/flask_appbuilder/const.py
from flask_babel import lazy_gettext """ All constants and messages definitions go here Log messages obey the following rule: LOGMSG_<SEV>_<MODULE>_<NAME> <SEV> :- INF | DEB | WAR | ERR <MODULE> :- SEC Flash messages obey the following rule: FLAMSG_<SEV>_<MODULE>...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ckeditor/lang/cy.js
/* Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.lang['cy']={"dir":"ltr","editor":"Golygydd Testun Cyfoethog","common":{"editorHelp":"Gwasgwch ALT 0 am gymorth","browseServer":"Pori'r Gweinydd","url":"URL","protoco...
PypiClean
/Goog_API-0.22.tar.gz/Goog_API-0.22/Goog_API/Goog_API.py
from __future__ import print_function from concurrent.futures import ThreadPoolExecutor, as_completed #Imports de la API de Google from googleapiclient import errors from googleapiclient.discovery import build from google_auth_oauthlib.flow import InstalledAppFlow from google.auth.transport.requests import Request fr...
PypiClean
/ApiTestEz-1.0.30.tar.gz/ApiTestEz-1.0.30/api_test_ez/ez/log/log.py
import os import logging from enum import Enum Log_Format = '%(asctime)s [%(levelname)s] [%(filename)s:%(lineno)d] [%(thread)d] - %(message)s' class LogLevel(Enum): CRITICAL = 'CRITICAL' FATAL = 'FATAL' ERROR = 'ERROR' WARNING = 'WARNING' INFO = 'INFO' DEBUG = 'DEBUG' NOTSET = 'NOTSET' ...
PypiClean
/ChatExchange-0.0.4-py3-none-any.whl/chatexchange/browser.py
import sys import logging if sys.version_info[:2] <= (2, 6): logging.Logger.getChild = lambda self, suffix:\ self.manager.getLogger('.'.join((self.name, suffix)) if self.root is not self else suffix) import json import threading import time from bs4 import BeautifulSoup import requests import websocket fro...
PypiClean
/Bluebook-0.0.1.tar.gz/Bluebook-0.0.1/pylot/component/static/pylot/vendor/bootstrap/js/tooltip.js
+function ($) { 'use strict'; // TOOLTIP PUBLIC CLASS DEFINITION // =============================== var Tooltip = function (element, options) { this.type = null this.options = null this.enabled = null this.timeout = null this.hoverState = null this.$element = null ...
PypiClean
/DZDutils-1.7.4.tar.gz/DZDutils-1.7.4/README.md
# DZDutils ## About **Maintainer**: tim.bleimehl@dzd-ev.de **Licence**: MIT **Purpose**: Collection of homemade Python tools of the German Center for Diabetes Research [[_TOC_]] ## Install `pip3 install DZDutils` or if you need the current dev version: `pip3 install git+https://git.connect.dzd-ev.de/dzdpython...
PypiClean
/HalWeb-0.6.0.tar.gz/HalWeb-0.6.0/src/halicea/lib/baseClasses.py
import os, shutil from codeBlocksHelpers import * from locators import * class Model(object): def __init__(self): self.Package = '' self.Name = '' self.References = [] self.Properties = [] self.InheritsFrom = '' self.SourceCode = '' @property def FullName(se...
PypiClean
/Django-4.2.4.tar.gz/Django-4.2.4/django/contrib/auth/checks.py
from itertools import chain from types import MethodType from django.apps import apps from django.conf import settings from django.core import checks from .management import _get_builtin_permissions def check_user_model(app_configs=None, **kwargs): if app_configs is None: cls = apps.get_model(settings.A...
PypiClean
/Office365_REST_with_timeout-0.1.1-py3-none-any.whl/office365/sharepoint/publishing/site_page.py
from office365.runtime.queries.service_operation_query import ServiceOperationQuery from office365.runtime.queries.update_entity_query import UpdateEntityQuery from office365.sharepoint.publishing.site_page_metadata import SitePageMetadata class SitePage(SitePageMetadata): """Represents a site Page.""" def c...
PypiClean
/Jord-0.1.5.tar.gz/Jord-0.1.5/jord/shapely_utilities/morphology.py
from shapely.geometry.base import BaseGeometry __all__ = ["closing", "opening", "erode", "erosion", "dilate", "dilation", "close"] def erosion(geom: BaseGeometry, eps: float = 1e-7) -> BaseGeometry: """ :param geom: The geometry to be eroded :param eps: Erosion amount :return: The eroded geometry ...
PypiClean
/ORG.asm-1.0.3.tar.gz/ORG.asm-1.0.3/doc/sphinx/source/algorithms/seedselection.rst
Seed selection ============== During the assembling process, to focus on a specific sequence, the mitochondrial genome, the chloroplast genome or the nuclear rDNA, |orgasm| initiates the assembling from a subset of reads supposed to belongs the targeted sequence. The seed selection process aims to select this read su...
PypiClean
/Helmholtz-0.2.0.tar.gz/Helmholtz-0.2.0/helmholtz/recording/views.py
from django.utils.datastructures import SortedDict from django.template import RequestContext from django.shortcuts import render_to_response from helmholtz.core.decorators import memorise_last_page, memorise_last_rendered_page from helmholtz.access_control.models import User from helmholtz.access_request.models import...
PypiClean
/LambdaTool-0.9.5.tar.gz/LambdaTool-0.9.5/lambdatool/stack_tool.py
class StackTool(object): _cf_client = None _stack_name = None _stage = None _region = None def __init__(self, stack_name, stage, profile, region, cf_client): """ StackTool is a simple tool to print some specific data about a CloudFormation stack. Args: s...
PypiClean
/Mold2_pywrapper-0.0.4-py3-none-any.whl/Mold2_pywrapper/mold2_wrapper.py
from __future__ import annotations import json import os import re import shutil import stat import subprocess import tempfile import zipfile from platform import architecture from sys import platform from typing import Iterable, List, Optional import more_itertools import pandas as pd import pystow import requests f...
PypiClean
/COSMO_TL-0.1.0.0-py3-none-any.whl/COSMO_TL/NIST.py
import pandas as pd import numpy as np import json import os from . import GammaLoaders as gl from difflib import get_close_matches, SequenceMatcher import matplotlib.pyplot as plt from . import sigma_functions as sf class ThermoML(): def __init__(self, doi): # use the doi to get the json file from the dat...
PypiClean
/BitGlitter-2.0.0.tar.gz/BitGlitter-2.0.0/bitglitter/write/preprocess/fileprocess.py
import logging import os from bitglitter.utilities.compression import compress_file from bitglitter.utilities.cryptography import encrypt_file, get_hash_from_file def directory_crawler(directory_path, payload_directory, compression_enabled, crypto_key, scrypt_n, scrypt_r, scrypt_p): logging...
PypiClean
/Flask-Security-Invenio-3.2.0.tar.gz/Flask-Security-Invenio-3.2.0/flask_security/cli.py
from functools import wraps import click from flask import current_app from flask.cli import with_appcontext from werkzeug.datastructures import MultiDict from werkzeug.local import LocalProxy from .utils import hash_password _security = LocalProxy(lambda: current_app.extensions['security']) _datastore = LocalProxy(...
PypiClean
/BigJob2-0.54.post73.tar.gz/BigJob2-0.54.post73/examples/pilot-api/example-pilot-compute-data.py
import sys import os import time import logging #logging.basicConfig(level=logging.DEBUG) sys.path.append(os.path.join(os.path.dirname(__file__), "../..")) from pilot import PilotComputeService, PilotDataService, ComputeDataService, State COORDINATION_URL = "redis://localhost:6379" if __name__ == "__main__": ...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/HTML-CSS/fonts/Gyre-Pagella/DoubleStruck/Regular/Main.js
MathJax.OutputJax["HTML-CSS"].FONTDATA.FONTS.GyrePagellaMathJax_DoubleStruck={directory:"DoubleStruck/Regular",family:"GyrePagellaMathJax_DoubleStruck",testString:"\u00A0\u2102\u210D\u2115\u2119\u211A\u211D\u2124\u213C\u213D\u213E\u213F\u2140\u2145\u2146",32:[0,0,250,0,0],160:[0,0,250,0,0],8450:[698,12,858,80,778],8461...
PypiClean
/AASMessenger_Client-1.0.1.tar.gz/AASMessenger_Client-1.0.1/client/client/transport.py
import socket import time import logging import json import threading import hashlib import hmac import binascii from PyQt5.QtCore import pyqtSignal, QObject from common.utils import send_message, recv_message from common.settings import ACTION, PRESENCE, TIME, USER, ACCOUNT_NAME, \ PUBLIC_KEY, RESPONSE, ERROR, D...
PypiClean
/CSCN73030_Attendance_Module-0.18.0-py3-none-any.whl/Attendance/database_s3.py
import json from typing import List from Attendance.database import ( Database, AttendanceAlreadyExists, AttendanceDoesNotExist, AttendanceIsMalformed, Attendance, ) from boto3 import session from botocore.client import Config class DatabaseS3(Database): def __init__( self, s3...
PypiClean
/BRAILS-3.0.1.tar.gz/BRAILS-3.0.1/brails/modules/ChimneyDetector/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
/Mopidy_YouTube-3.7-py3-none-any.whl/mopidy_youtube/apis/ytm_item_to_video.py
from mopidy_youtube import logger from mopidy_youtube.timeformat import convert_Millis, format_duration def ytm_item_to_video(item): if "videoDetails" in item: item = item["videoDetails"] try: if "duration" in item: duration = item["duration"] elif "length" in item: ...
PypiClean
/ITMO_FS-0.3.3.tar.gz/ITMO_FS-0.3.3/ITMO_FS/filters/univariate/measures.py
from functools import partial, update_wrapper from math import exp from math import log import numpy as np from scipy import sparse as sp from scipy.sparse import lil_matrix from sklearn.preprocessing import MinMaxScaler from ITMO_FS.utils.data_check import generate_features from ITMO_FS.utils.information_theory impo...
PypiClean
/JDSPackage-1.0.0.tar.gz/JDSPackage-1.0.0/README.rst
============== JDSPackagedocs ============== .. image:: https://img.shields.io/pypi/v/JDSPackage.svg :target: https://pypi.python.org/pypi/JDSPackage .. image:: https://img.shields.io/travis/jdsmithwes/JDSPackage.svg :target: https://travis-ci.com/jdsmithwes/JDSPackage .. image:: https://readthedocs...
PypiClean
/NREL_reV-0.8.1-py3-none-any.whl/reV/losses/utils.py
import calendar import logging import numpy as np from reV.utilities.exceptions import reVLossesValueError logger = logging.getLogger(__name__) # 1900 is just a representative year, since a year input is required DAYS_PER_MONTH = [calendar.monthrange(1900, i)[1] for i in range(1, 13)] FIRST_DAY_INDEX_OF_MONTH = np....
PypiClean
/Apycula-0.9.0a1.tar.gz/Apycula-0.9.0a1/legacy/fuzzer.py
import re import os import tempfile import subprocess from collections import deque from itertools import chain, count from random import shuffle, seed from warnings import warn from math import factorial import numpy as np from multiprocessing.dummy import Pool import codegen import bslib import pindef import sys, p...
PypiClean
/JSONAutoArray-1.0.4.tar.gz/JSONAutoArray-1.0.4/README.md
# json_autoarray Write JSON-serializable python objects to file as JSON array. Raises a SerializationError if you send it an object that cannot be serialized by whatever json module you are using.. Tries to use python-cjson (python2.x only) or UltraJSON for serializing objects, because you wouldn't be needi...
PypiClean
/HDDM-0.9.9.tar.gz/HDDM-0.9.9/docs/source/lan_visualizations.rst
New Visualizations ------------------ .. code:: ipython3 import hddm from matplotlib import pyplot as plt import numpy as np from copy import deepcopy Generate some Data ~~~~~~~~~~~~~~~~~~ .. code:: ipython3 # Metadata nmcmc = 2000 model = 'angle' n_samples = 1000 includes = hdd...
PypiClean
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/dependencies.py
import os import shutil import subprocess import sys import tarfile import tempfile import urllib import zipfile def get_dependencies(): """ Downloads and installs external package dependencies. 1. Ensure user account has write permission to the install path of this package. 2. Run get_dependencies() ...
PypiClean
/ESMValCore-2.9.0rc1.tar.gz/ESMValCore-2.9.0rc1/doc/develop/derivation.rst
.. _derivation: ******************* Deriving a variable ******************* The variable derivation preprocessor module allows to derive variables which are not in the CMIP standard data request using standard variables as input. This is a special type of :ref:`preprocessor function <preprocessor_function>`. All deri...
PypiClean
/BanzaiDB-0.3.0.tar.gz/BanzaiDB-0.3.0/docs/_build/html/searchindex.js
Search.setIndex({envversion:42,terms:{all:[8,7,5],code:[7,5],queri:[0,8,7,5],prefix:1,correl:5,subclass:[2,7],variant_hotspot:[7,8],follow:[2,1,4,5,6,8],row:[6,7],aug:2,readabl:8,specif:[8,7,5],get_current_reference_id:7,init:[8,5],ftype:5,biopython:5,sped:7,must:[6,7],strainid:[2,6,7],sourc:[7,8,1,5],stanton:8,string:...
PypiClean
/Client_messenger-0.2.tar.gz/Client_messenger-0.2/client_packages/client/client_database.py
import os import datetime from sqlalchemy import create_engine, Table, Column, Integer, String, Text, \ MetaData, DateTime from sqlalchemy.orm import mapper, sessionmaker from sqlalchemy.sql import default_comparator class ClientDatabase: """ Класс - оболочка для работы с базой данных клиента. ...
PypiClean
/DisBot-1.0-py3-none-any.whl/Disbot/subcommands/commands.py
import click import os from pathlib import Path @click.command() @click.argument('name') # @click.argument('path') def createbot(name): path='.' if os.path.isdir(os.path.join(name,path)): click.echo(f"\u001b[31mError\u001b[0m : '{name}' folder already exists in the current directory.") retur...
PypiClean
/DOCBRPY-0.1.3.tar.gz/DOCBRPY-0.1.3/src/PYBRDOC/inscricaosuframa.py
import re from itertools import chain from random import choice, randint from .documentoidentificacao import DocumentoIdentificacao class InscricaoSuframa(DocumentoIdentificacao): """ Número de inscrição na Superintendência da Zona Franca de Manaus (SUFRAMA) """ def __init__(self, arg): super(InscricaoSufra...
PypiClean
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/gui/qt/qrcodewidget.py
from PyQt4.QtGui import * from PyQt4.QtCore import * import PyQt4.QtGui as QtGui import os import qrcode import electrum_vtc from electrum_vtc.i18n import _ from util import WindowModalDialog class QRCodeWidget(QWidget): def __init__(self, data = None, fixedSize=False): QWidget.__init__(self) s...
PypiClean
/CGATReport-0.9.1.tar.gz/CGATReport-0.9.1/doc/Roadmap.rst
.. _Releases: ============= Release Notes ============= Version 0.8.1 ============= * minor bugfix release * ggplot now an optional dependency * bokeh now an optional dependency Version 0.7.6 ============= * bugfix in user renderer Version 0.7.5 ============= * bugfix in multi-plot generation for matplotlib plo...
PypiClean
/FastRoot-1.5.tar.gz/FastRoot-1.5/README.md
FastRoot is a python implementation of a class of 'optimization-based' rooting methods for phylogenetic trees: Minimum Variance (MV), Midpoint (MP), Outgroups (OG), and Root-to-tip (RTT). All rooting methods are linear in time and memory. FastRoot was tested on Linux or MacOS. ## Installation FastRoot needs the follow...
PypiClean
/OASYS1-COMSYL-1.0.19.tar.gz/OASYS1-COMSYL-1.0.19/orangecontrib/comsyl/util/tally2d.py
import numpy from oasys.util.oasys_util import get_fwhm from srxraylib.plot.gol import plot, plot_image import matplotlib.pylab as plt import os, sys, time import h5py from srxraylib.util.h5_simple_writer import H5SimpleWriter # def get_fwhm(histogram, bins): # quote = numpy.max(histogram)*0.5 # cursor = nump...
PypiClean
/MIAvisual-0.0.6-py3-none-any.whl/matplotlib/image.py
import math import os import logging from pathlib import Path import numpy as np import PIL.PngImagePlugin import matplotlib as mpl from matplotlib import _api import matplotlib.artist as martist from matplotlib.backend_bases import FigureCanvasBase import matplotlib.colors as mcolors import matplotlib.cm as cm impor...
PypiClean
/CUQIpy-0.4.0-py3-none-any.whl/cuqi/distribution/_lmrf.py
import numpy as np from cuqi.geometry import _DefaultGeometry, Image2D from cuqi.operator import FirstOrderFiniteDifference from cuqi.distribution import Distribution class LMRF(Distribution): """Laplace distribution on the difference between neighboring nodes. For 1D `(physical_dim=1)`, the Laplace differenc...
PypiClean
/AeroSandbox-4.1.1.tar.gz/AeroSandbox-4.1.1/aerosandbox/library/mass_structural.py
def mass_hpa_wing( span, chord, vehicle_mass, n_ribs, # You should optimize on this, there's a trade between rib weight and LE sheeting weight! n_wing_sections=1, # defaults to a single-section wing (be careful: can you disassemble/transport this?) ultimate_load_factor=...
PypiClean
/CC-CataLog-0.1.330.tar.gz/CC-CataLog-0.1.330/catalog/jobs/versions.py
import json # Internal Modules from catalog.jobs.version_utils import Version,Key,const,onlyif,pickletraj_to_jsontraj,dftcode,err,has_parent,get_kwargs,classify,single_atom,check_init_magmoms from decimal import Decimal ################################################ # Constants #---------- NoneType = type(None) #####...
PypiClean
/LFake-18.9.0.tar.gz/LFake-18.9.0/lfake/providers/job/ro_RO/__init__.py
from .. import Provider as BaseProvider class Provider(BaseProvider): jobs = [ "Adjunct Al Procurorului General", "Ambasador", "Chestor Parlament", "Comandant Unic Aviatie", "Comisar General", "Comisar General Adjunct", "Senator", "Guvernator", ...
PypiClean
/Beaker-1.12.1.tar.gz/Beaker-1.12.1/beaker/cache.py
import warnings from itertools import chain from beaker._compat import u_, unicode_text, func_signature, bindfuncargs import beaker.container as container import beaker.util as util from beaker.crypto.util import sha1 from beaker.exceptions import BeakerException, InvalidCacheBackendError from beaker.synchronization i...
PypiClean
/Cr0wl3r-0.0.1.tar.gz/Cr0wl3r-0.0.1/README.md
![Cr0wl3r logo](https://mauricelambert.github.io/info/python/security/Cr0wl3r_small.png "Cr0wl3r logo") # Cr0wl3r ## Description This package implements a web crawler to find all visible URLs in the page and sort URL by dynamic content (useful for pentest and hacking). ## Requirements This package require: - pyt...
PypiClean
/MatchZoo-test-1.0.tar.gz/MatchZoo-test-1.0/matchzoo/models/bimpm.py
import typing import torch import torch.nn as nn from torch.nn import functional as F from matchzoo.engine import hyper_spaces from matchzoo.engine.param_table import ParamTable from matchzoo.engine.param import Param from matchzoo.engine.base_model import BaseModel class BiMPM(BaseModel): """ BiMPM Model. ...
PypiClean
/MnemoPwd-1.2.1-py3-none-any.whl/mnemopwd/client/uilayer/uicomponents/MetaButtonBox.py
# Copyright (c) 2016-2017, Thierry Lemeunier <thierry at lemeunier dot net> # All rights reserved. # # Redistribution and use in source and binary forms, with or without modification, # are permitted provided that the following conditions are met: # # 1. Redistributions of source code must retain the above copyright n...
PypiClean
/Cibyl-1.0.0.0rc1.tar.gz/Cibyl-1.0.0.0rc1/cibyl/utils/strings.py
import validators def is_url(string: str) -> bool: """ :param string: The string to test. :return: True if the string follows a URL format, False if not. """ result = validators.url(string) if isinstance(result, bool): return result return False class IndentedTextBuilder: "...
PypiClean
/KegElements-0.9.1.tar.gz/KegElements-0.9.1/keg_elements/views.py
import flask from keg.web import BaseView from keg_elements.extensions import gettext as _ class FormMixin: """Mixin supporting simple form view setup""" form_cls = None """form class to construct, or callable returning a form instance.""" flash_success = ('Form submitted successfully.', 'success') ...
PypiClean
/GraphLab_Create-2.1-cp27-none-macosx_10_5_x86_64.macosx_10_6_intel.macosx_10_9_intel.macosx_10_9_x86_64.macosx_10_10_intel.macosx_10_10_x86_64.macosx_10_11_intel.macosx_10_11_x86_64.whl/graphlab/data_structures/sframe.py
from __future__ import print_function """ This module defines the SFrame class which provides the ability to create, access and manipulate a remote scalable dataframe object. SFrame acts similarly to pandas.DataFrame, but the data is completely immutable and is stored column wise on the GraphLab Server side. """ '''...
PypiClean
/GReNaDIne-0.0.21.tar.gz/GReNaDIne-0.0.21/README.md
# GReNaDIne: Gene Regulatory Network Data-driven Inference <div style="display: flex; justify-content: center;"> <img src="logo.png" height="250"> </div> This Python 3.7 package allows to infer Gene Regulatory Networks through several Data-driven methods. Pre-processing and evaluation methods are also included. ###...
PypiClean
/FriendFeed%20PyAPI-0.2.0.tar.gz/FriendFeed PyAPI-0.2.0/README
= FriendFeed PyAPI = This library provides an object-driven Python interface to the FriendFeed API. (See http://code.google.com/p/friendfeed-api/wiki/ApiDocumentation for official FriendFeed API documentation.) == Requirements == * Python of version 2.x where x is 5 or greater. (Python 3 support is planned for a f...
PypiClean
/AtomicP2P-0.0.6.tar.gz/AtomicP2P-0.0.6/atomic_p2p/peer/command.py
from ..communication.command import Command from ..mixin.topology.lan.handler import JoinHandler, DisconnectHandler from .entity.peer_info import PeerInfo from .communication import MessageHandler class HelpCmd(Command): """HelpCmd show the help for peers. Usage in prompt: peer help [cmd] """ ...
PypiClean
/FlaskCms-0.0.4.tar.gz/FlaskCms-0.0.4/flask_cms/static/js/ace/mode-mysql.js
ace.define("ace/mode/doc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"], function(require, exports, module) { "use strict"; var oop = require("../lib/oop"); var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules; var DocCommentHighlightRule...
PypiClean
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/DjangoAppCenter/simpleui/static/admin/simpleui-x/elementui/utils/aria-dialog.js
'use strict'; exports.__esModule = true; var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/plugins/safe_t/pinmatrix.py
from __future__ import print_function import sys import math try: from PyQt4.QtGui import (QPushButton, QLineEdit, QSizePolicy, QRegExpValidator, QLabel, QApplication, QWidget, QGridLayout, QVBoxLayout, QHBoxLayout) from PyQt4.QtCore import QObject, SIGNAL, QRegExp, Qt, QT_VERSION...
PypiClean
/Aries-storage-0.1.330.tar.gz/Aries-storage-0.1.330/README.md
# Aries.storage: A Unified Storage Interface _Read and write files on Google Cloud Storage and Amazon S3 as if they are on local computer_ The Aries storage sub-package provides a unified interface for accessing files and folders on local and cloud storage systems. The `StorageFile` class transform a file on cloud st...
PypiClean
/NEMO_rs2_access-1.5.1-py3-none-any.whl/NEMO_rs2_access/rs2.py
import datetime import json from logging import getLogger from typing import Dict, List, Set, Type, Union import requests from NEMO.exceptions import NEMOException from NEMO.models import Area, AreaAccessRecord, Customization, Project, UsageEvent, User from NEMO.utilities import beginning_of_the_day, distinct_qs_value...
PypiClean
/Colbert-0.30.tar.gz/Colbert-0.30/src/scripts/colbert_bilan_to_rst.py
# Copyright (c) 2012 Stanislas Guerra <stanislas.guerra@gmail.com> # All rights reserved. # # Redistribution and use in source and binary forms, with or without # modification, are permitted provided that the following conditions # are met: # 1. Redistributions of source code must retain the above copyright # notic...
PypiClean
/Marine_Traffic_API-0.20.1-py3-none-any.whl/marinetrafficapi/events/EV03_berth_calls/query_params.py
from marinetrafficapi.query_params import QueryParams class EV03QueryParams(QueryParams): """Query params for EV03 API call.""" time_span = 'timespan', 'The maximum age, in minutes, of the \n' \ 'returned port calls. Maximum value is 2880.' mmsi = 'mmsi', 'The Maritime Mobile...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/data/AndOrReadStore.js
if(!dojo._hasResource["dojox.data.AndOrReadStore"]){ dojo._hasResource["dojox.data.AndOrReadStore"]=true; dojo.provide("dojox.data.AndOrReadStore"); dojo.require("dojo.data.util.filter"); dojo.require("dojo.data.util.simpleFetch"); dojo.require("dojo.date.stamp"); dojo.declare("dojox.data.AndOrReadStore",null,{construc...
PypiClean
/MolScribe-1.1.1.tar.gz/MolScribe-1.1.1/molscribe/constants.py
from typing import List import re ORGANIC_SET = {'B', 'C', 'N', 'O', 'P', 'S', 'F', 'Cl', 'Br', 'I'} RGROUP_SYMBOLS = ['R', 'R1', 'R2', 'R3', 'R4', 'R5', 'R6', 'R7', 'R8', 'R9', 'R10', 'R11', 'R12', 'Ra', 'Rb', 'Rc', 'Rd', 'X', 'Y', 'Z', 'Q', 'A', 'E', 'Ar'] PLACEHOLDER_ATOMS = ["Lv", "Lu", "Nd", "...
PypiClean
/DFHypercode-0.0.1-py3-none-any.whl/Hypercode/schemas.py
import nbtlib as nbt from nbtlib import String, Int, List, Byte, Compound, Double, Long # region:item_schemas # region:--main_item_schemas ItemDisplaySchema = nbt.schema("ItemDisplaySchema", dict( color=Int, Name=String, Lore=List[String] )) """Represents the 'display' key of :class:`ItemTagSchema`.""" I...
PypiClean
/Mathics_Django-6.0.0-py3-none-any.whl/mathics_django/web/media/js/mathjax/jax/output/SVG/fonts/Asana-Math/Shapes/Regular/Main.js
MathJax.OutputJax.SVG.FONTDATA.FONTS.AsanaMathJax_Shapes={directory:"Shapes/Regular",family:"AsanaMathJax_Shapes",id:"ASANAMATHSHAPES",32:[0,0,249,0,0,""],9250:[726,28,552,-27,508,"66 588v32c0 30 -7 41 -25 41h-56v28c79 12 112 20 156 37l9 -8l-1 -103l211 77l13 -35l-223 -85v-203c32 77 98 116 165 116c89 0 180 -71 193 -215v...
PypiClean
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/data/CsvStore.js
if(!dojo._hasResource["dojox.data.CsvStore"]){ dojo._hasResource["dojox.data.CsvStore"]=true; dojo.provide("dojox.data.CsvStore"); dojo.require("dojo.data.util.filter"); dojo.require("dojo.data.util.simpleFetch"); dojo.declare("dojox.data.CsvStore",null,{constructor:function(_1){ this._attributes=[]; this._attributeInd...
PypiClean
/Kgen-0.3.0-py3-none-any.whl/kgen/K_functions.py
import numpy as np from .coefs import K_coefs, K_presscorr_coefs from pymyami import calculate_seawater_correction, approximate_seawater_correction default_temp_c = 25.0 default_sal = 35.0 default_p_bar = 0.0 default_magnesium = 0.0528171 default_calcium = 0.0102821 def calc_K1K2(coefficients, temp_c, sal): """Ca...
PypiClean
/lhm_parser-0.0.1.tar.gz/lhm_parser-0.0.1/LHM_Parser/LHM_Parser.py
from datetime import datetime import json import requests class LHM_Parser: """ A class to parse the data from the LHM json endpoint. Notes ----- Pylint C0103: The module name would be too long if full name was used Libre_Hardware_Monitor_Parser Pylint R0904: This is a data source class its meant to have...
PypiClean
/flask-2.3.3-py3-none-any.whl/flask/views.py
from __future__ import annotations import typing as t from . import typing as ft from .globals import current_app from .globals import request http_method_funcs = frozenset( ["get", "post", "head", "options", "delete", "put", "trace", "patch"] ) class View: """Subclass this class and override :meth:`dispa...
PypiClean
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/electrum_chi/electrum/gui/qt/main_window.py
import sys import time import threading import os import traceback import json import shutil import weakref import csv from decimal import Decimal import base64 from functools import partial import queue import asyncio from typing import Optional from PyQt5.QtGui import QPixmap, QKeySequence, QIcon, QCursor from PyQt5...
PypiClean
/GxSphinx-1.0.0.tar.gz/GxSphinx-1.0.0/sphinx/builders/latex/transforms.py
from typing import Any, Dict, List, Set, Tuple from typing import cast from docutils import nodes from docutils.nodes import Element, Node from sphinx import addnodes from sphinx.application import Sphinx from sphinx.builders.latex.nodes import ( captioned_literal_block, footnotemark, footnotetext, math_reference...
PypiClean
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/model/managers/rs232/RS232Manager.py
from imswitch.imcommon.model import initLogger class RS232Manager: """ A general-purpose RS232 manager that together with a general-purpose RS232Driver interface can handle an arbitrary RS232 communication channel, with all the standard serial communication protocol parameters as defined in the hardwa...
PypiClean
/energon_prometheus_exporter_main-0.0.1.tar.gz/energon_prometheus_exporter_main-0.0.1/torchdistill-test/torchdistill/eval/coco.py
import copy import json import pickle from collections import defaultdict import numpy as np import pycocotools.mask as mask_util import torch import torch.distributed as dist from pycocotools.coco import COCO from pycocotools.cocoeval import COCOeval # from torch._six import string_classes from torchdistill.common.m...
PypiClean
/Flask-MDBootstrap-3.0.5.tar.gz/Flask-MDBootstrap-3.0.5/flask_mdbootstrap/static/MDB-Pro/js/addons/datatables.min.js
!function(t){var e={};function n(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,n),a.l=!0,a.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.d...
PypiClean
/BitGlitter-2.0.0.tar.gz/BitGlitter-2.0.0/bitglitter/write/render/headerencode.py
from bitstring import BitArray, BitStream, ConstBitStream import cv2 import json import logging import zlib from bitglitter.utilities.compression import compress_bytes from bitglitter.utilities.cryptography import encrypt_bytes, get_sha256_hash_from_bytes def calibrator_header_render(image, block_height, block_widt...
PypiClean
/Finger_balabolka_Server-1.0.19-py3-none-any.whl/fb_server/core/handler.py
import json import logging from datetime import datetime from fb_server.utils import log_config from fb_server.protocol.msg_handler import MessageHandler from fb_server.db.managers import (ClientManager, ClientHistoryManager, ClientContactsManager) logger = logging.getLogger("server_log") ...
PypiClean