id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/GTW-1.2.6.tar.gz/GTW-1.2.6/_OMP/_SRM/UI_Spec.py |
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from _GTW import GTW
from _TFL import TFL
import _GTW._OMP._SRM
import _TFL.Sorted_By
class UI_Spec (object) :... | PypiClean |
/Munki_Manifest_Generator-1.2.0-py3-none-any.whl/munki_manifest_generator/graph/make_api_request.py | import requests
import json
from retrying import retry
def make_api_request(endpoint, token, q_param=None):
"""Makes a get request and returns the response."""
# Create a valid header using the provided access token
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer... | PypiClean |
/ImgAnn-0.8.1-py3-none-any.whl/imgann/convert.py |
from .operators.imgdata import ImgData
from .operators import coco, csv, pascalvoc, yolo
import logging
import os
# set logger
logging.basicConfig()
logger = logging.getLogger(__name__)
logger.setLevel(logging.INFO)
class Convertor:
""" convert method implementation class """
@staticmethod
def coco2cs... | PypiClean |
/EconModel-0.15.tar.gz/EconModel-0.15/README.md | # EconModel
A small code library for easily working with economic models in Python with three objectives:
1. Provide standard functionality for copying, saving and loading.
1. Provide an easy interface to call [numba](http://numba.pydata.org/) JIT compilled functions.
1. Provide an easy interface to call C++ function... | PypiClean |
/DivideiteSolver-0.0.1.tar.gz/DivideiteSolver-0.0.1/divideiteSolvers/__init__.py | from functools import reduce
from math import sqrt, gcd
from sympy.parsing.latex import parse_latex
from sympy import *
from sympy import sympify
from errors import M3ELInputNoneError as InputNoneError
from errors import M3ELInputTypeError as TypeError
from errors import M3ELInvalidOperation as InvalidOperation
clas... | PypiClean |
/ENSEK-1.8.0.tar.gz/ENSEK-1.8.0/README.rst | ENSEK
=======
|PyPI| |Python Versions| |Build Status|
🐍 Python Client for the ENSEK API (http://www.ensek.co.uk/)
This client does not implement all the features of the API, pull requests are very welcome to expand functionality.
Installation
------------
To install ensek, simply:
.. code:: bash
pip install ... | PypiClean |
/NSoL-0.1.14.tar.gz/NSoL-0.1.14/nsol/optimize.py |
import scipy
import numpy as np
class Optimize(object):
##
# Gets the approximate solution lsmr (Linear least-squares method)
# \date 2017-07-24 10:24:36+0100
#
# \param self The object
# \param A {matrix, sparse matrix, ndarray, LinearOperator}
# ... | PypiClean |
/Misago-0.36.1.tar.gz/Misago-0.36.1/misago/static/misago/admin/momentjs/gl.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 |
/FFTA-0.3.5.1-py3-none-any.whl/ffta/pixel_utils/dwavelet.py |
import numpy as np
import pywt
def dwt_denoise(signal, fLow, fHigh, sampling_rate):
"""
Uses Discrete Wavelet Transform to denoise signal
around a desired frequency band.
:param signal:
:type signal:
:param fLow: frequency below which DWT coefficients zeroed
:type fLow: float
... | PypiClean |
/Newsroom-1.0-py3-none-any.whl/newsroom/email.py | from superdesk.emails import SuperdeskMessage # it handles some encoding issues
from flask import current_app, render_template, url_for
from flask_babel import gettext
def send_email(to, subject, text_body, html_body=None, sender=None, connection=None):
"""
Sends the email
:param to: List of recipients
... | PypiClean |
/EasyS7_10-1.0.0.tar.gz/EasyS7_10-1.0.0/PLC.py | import snap7
import sys
from EasyS7.Utility import *
from EasyS7.DataBlock import *
from datetime import datetime
class PLC:
def __init__(self,plc_address , plc_rack , plc_slot , plc_tcpport=102):
print("[INFO] : Initialization started...")
self.plc_address = str(plc_address)
self.plc_rac... | PypiClean |
/NehorayRapid-0.0.1-py3-none-any.whl/mmedit/core/evaluation/eval_hooks.py | import os.path as osp
from mmcv.runner import Hook
from torch.utils.data import DataLoader
class EvalIterHook(Hook):
"""Non-Distributed evaluation hook for iteration-based runner.
This hook will regularly perform evaluation in a given interval when
performing in non-distributed environment.
Args:
... | PypiClean |
/Evgeny_server-0.0.1.tar.gz/Evgeny_server-0.0.1/server/add_user.py | from PyQt5.QtWidgets import QDialog, QPushButton, QLineEdit, QApplication, QLabel, QMessageBox
from PyQt5.QtCore import Qt
import hashlib
import binascii
class RegisterUser(QDialog):
'''Класс диалог регистрации пользователя на сервере.'''
def __init__(self, database, server):
super().__init__()
... | PypiClean |
/6D657461666C6F77-0.0.17.tar.gz/6D657461666C6F77-0.0.17/metaflow/decorators.py | import traceback
from functools import partial
from .flowspec import FlowSpec
from .exception import MetaflowException, InvalidDecoratorAttribute
class BadStepDecoratorException(MetaflowException):
headline = "Syntax error"
def __init__(self, deco, func):
msg =\
"You tried to apply decor... | PypiClean |
/Dero-0.15.0-py3-none-any.whl/dero/latex/table/models/data/table.py | from typing import Union, List
import pandas as pd
from dero.latex.table.models.interfaces import LabelClassOrStrs
from dero.latex.logic.tools import _add_if_not_none
from dero.mixins.repr import ReprMixin
from dero.latex.table.models.data.valuestable import ValuesTable
from dero.latex.table.models.labels.label impor... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/datastructures/_mutablemapping.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import compas
if compas.PY2:
import collections as stdlib_collections
else:
import collections.abc as stdlib_collections
class Mapping(object):
__slots__ = ()
"""A Mapping is a generic conta... | PypiClean |
/ModelTool-0.8.5.tar.gz/ModelTool-0.8.5/README.md | # Model Tool
A tool to create and deploy Lambda Functions to AWS (for python things).
## Current version - 0.8.5:
* Create a new Python 2.7 AWS Lambda from included template. Either a simple lambda function or a Flask based microservice.
* Deploy AWS Lambda created with this tool. It generates a CloudFormation file ... | PypiClean |
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/linotp/lib/ext/pbkdf2.py |
from struct import pack
import linotp.lib.crypto
import string
import sys
import hmac
from hashlib import sha1
#
# Python 2.1 thru 3.2 compatibility
#
__version__ = "1.3"
__all__ = ['PBKDF2', 'crypt']
if sys.version_info[0] == 2:
_0xffffffffL = long(1) << 32
def isunicode(s):
return isinstance(s... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/embed/Flash.js | define("dojox/embed/Flash",["dojo"],function(_1){
_1.getObject("embed",true,dojox);
var _2,_3;
var _4=9;
var _5="dojox-embed-flash-",_6=0;
var _7={expressInstall:false,width:320,height:240,swLiveConnect:"true",allowScriptAccess:"sameDomain",allowNetworking:"all",style:null,redirect:null};
function _8(_9){
_9=_1.delegat... | PypiClean |
/DpmModule-1.1.0-py3-none-any.whl/dpmModule/jobs/soulmaster.py | from ..kernel import core
from ..kernel.core import VSkillModifier as V
from ..character import characterKernel as ck
from functools import partial
from ..status.ability import Ability_tool
from ..execution.rules import RuleSet, ConcurrentRunRule, InactiveRule
from . import globalSkill
from .jobclass import cygnus
cla... | PypiClean |
/MikeyyFTN-2.2.9-py3-none-any.whl/PirxcyPinger/__init__.py | try:
# System imports.
from typing import Tuple, Any, Union, Optional
import asyncio
import sys
import datetime
import json
import functools
import os
import random as py_random
import logging
import uuid
import json
import subprocess
# Third party imports.
... | PypiClean |
/Newgram-0.0.5.tar.gz/Newgram-0.0.5/newgram/types/inline_mode/inline_query_result_venue.py |
import newgram
from newgram import raw, types
from .inline_query_result import InlineQueryResult
class InlineQueryResultVenue(InlineQueryResult):
"""A venue.
By default, the venue will be sent by the user. Alternatively, you can use *input_message_content* to send a message
with the specified content in... | PypiClean |
/OctoBot-Commons-1.9.18.tar.gz/OctoBot-Commons-1.9.18/octobot_commons/logging/logging_util.py | import contextlib
import logging
import octobot_commons.constants as constants
import octobot_commons.timestamp_util as timestamp_util
LOG_DATABASE = "log_db"
LOG_NEW_ERRORS_COUNT = "log_new_errors_count"
BACKTESTING_NEW_ERRORS_COUNT: str = "log_backtesting_errors_count"
logs_database = {
LOG_DATABASE: [],
... | PypiClean |
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/argonaut/public/ckeditor/lang/eo.js | /*
Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.lang.eo={dir:'ltr',editorTitle:'Rich text editor, %1, press ALT 0 for help.',toolbar:'Toolbar',editor:'Rich Text Editor',source:'Fonto',newPage:'Nova Paĝo',save:'Se... | PypiClean |
/DI_engine-0.4.9-py3-none-any.whl/ding/policy/bc.py | import math
import torch
import torch.nn as nn
import copy
from torch.optim import Adam, SGD, AdamW
from torch.optim.lr_scheduler import LambdaLR
import logging
from typing import List, Dict, Any, Tuple, Union, Optional
from collections import namedtuple
from easydict import EasyDict
from ding.policy import Policy
from... | PypiClean |
/BotEXBotBase-3.1.3.tar.gz/BotEXBotBase-3.1.3/redbot/core/utils/tunnel.py | import discord
from datetime import datetime
from redbot.core.utils.chat_formatting import pagify
import io
import weakref
from typing import List, Optional
from .common_filters import filter_mass_mentions
_instances = weakref.WeakValueDictionary({})
class TunnelMeta(type):
"""
lets prevent having multiple t... | PypiClean |
/DESPOTIC-2.1.tar.gz/DESPOTIC-2.1/despotic/chemistry/setChemEq.py |
import numpy as np
from scipy.integrate import odeint
from despotic.despoticError import despoticError
from .abundanceDict import abundanceDict
from copy import deepcopy
from .chemEvol import chemEvol
import scipy.constants as physcons
kB = physcons.k*1e7
# Small numerical value
__small = 1e-100
def setChemEq(cloud,... | PypiClean |
/JATA-0.3.5-py3-none-any.whl/CJH/__init__.py | import numpy as np
import pandas as pd
import requests
from bs4 import BeautifulSoup
from Helpers import find_between
class CJH_Archives:
def __init__(self, repo, url=False):
self.repo = repo
self.url = url
def get_meta_data(self, object_type, page_to_start_at, maximum_pages_to_scrape):
... | PypiClean |
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/linotp/controllers/validate.py | import logging
import webob
from pylons import request, response, config
from pylons import tmpl_context as c
from pylons.controllers.util import abort
from pylons.i18n.translation import _
from linotp.lib.auth.validate import ValidationHandler
from linotp.lib.base import BaseController
from linotp.lib.config import ... | PypiClean |
/DeSide-1.0.2.tar.gz/DeSide-1.0.2/deside/utility/__init__.py | from .pub_func import print_df
from .pub_func import filter_gene_by_expression_log_mean, filter_gene_by_expression_min_max, filter_sample_by_expression
from .pub_func import log2_transform, center_value
from .pub_func import filter_gene_by_variance
from .pub_func import read_exp_from_hcluster
from .pub_func import read... | PypiClean |
/Adeepspeed-0.9.2.tar.gz/Adeepspeed-0.9.2/deepspeed/runtime/pipe/schedule.py |
# DeepSpeed Team
from ..utils import call_to_str
from abc import ABC, abstractmethod
class PipeSchedule(ABC):
"""Directs the execution of a pipeline engine by generating sequences of
:class:`PipeInstruction`.
Schedules are generators that yield sequences of
:class:`PipeInstruction` to process the ... | PypiClean |
/CPAT-3.0.4.tar.gz/CPAT-3.0.4/.eggs/nose-1.3.7-py3.7.egg/nose/result.py | import logging
try:
# 2.7+
from unittest.runner import _TextTestResult
except ImportError:
from unittest import _TextTestResult
from nose.config import Config
from nose.util import isclass, ln as _ln # backwards compat
log = logging.getLogger('nose.result')
def _exception_detail(exc):
# this is what ... | PypiClean |
/EmailNotice-1.2.5-py3-none-any.whl/src/Utility/StringUtilityCTK.py | from customtkinter import StringVar
from src.Utility.ConfigUtility import GetConfigSingletion
class _StringSingletonCTK:
_stringInstance = None
zhString = [
"狀態: ",
"離線",
"線上",
"電郵地址: ",
"請選擇範本",
"請選擇電郵組別",
"插入數據/附件",
"編輯範本",
"新增範... | PypiClean |
/DroneController-1.1.0-py3-none-any.whl/drone_controller/input_layer/drone_state.py | import math
from drone_controller.exception.exceptions import DroneControllerError
def check_input(parameter, name):
"""
Checks a parameter if it's three dimensional.
:param parameter: the parameter itself
:param name: it's name for error printing
"""
if not len(parameter) == 3:
raise... | PypiClean |
/FeatureMapVisualizer-1.0.6.tar.gz/FeatureMapVisualizer-1.0.6/README.md | # FeatureMapVisualizer - In-depth Visualization Tool for CNN-based Models
# Overview
FeatureMapVisualizer allows visualizations using individual feature maps of CNN-based image classification models to get insights about their predictions. It provides the following visualization techniques :
- Find Most-Activated F... | PypiClean |
/AyiinXd-0.0.8-cp311-cp311-macosx_10_9_universal2.whl/fipper/node_modules/https-proxy-agent/README.md | https-proxy-agent
================
### An HTTP(s) proxy `http.Agent` implementation for HTTPS
[](https://github.com/TooTallNate/node-https-proxy-agent/actions?workflow=Node+CI)
This module provides an `http.Agent` imple... | PypiClean |
/EthCod-0.0.1.tar.gz/EthCod-0.0.1/__init__.py | Rt = [[0, 1, 62, 28, 27], [36, 44, 6, 55, 20], [3, 10, 43, 25, 39], [41, 45, 15, 21, 8], [18, 2, 61, 56, 14]]
Rc = [1, 32898, 9223372036854808714, 9223372039002292224, 32907, 2147483649, 9223372039002292353, 9223372036854808585, 138, 136, 2147516425, 2147483658, 2147516555, 9223372036854775947, 9223372036854808713, 922... | PypiClean |
/DLTA-AI-1.1.tar.gz/DLTA-AI-1.1/DLTA_AI_app/mmdetection/mmdet/models/utils/csp_layer.py | import torch
import torch.nn as nn
from mmcv.cnn import ConvModule, DepthwiseSeparableConvModule
from mmcv.runner import BaseModule
class DarknetBottleneck(BaseModule):
"""The basic bottleneck block used in Darknet.
Each ResBlock consists of two ConvModules and the input is added to the
final output. Eac... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap/js/src/collapse.js | import {
defineJQueryPlugin,
getElement,
getSelectorFromElement,
getElementFromSelector,
reflow,
typeCheckConfig
} from './util/index'
import Data from './dom/data'
import EventHandler from './dom/event-handler'
import Manipulator from './dom/manipulator'
import SelectorEngine from './dom/selector-engine'
i... | PypiClean |
/Cubane-1.0.11.tar.gz/Cubane-1.0.11/cubane/ishop/apps/merchant/products/forms.py | from __future__ import unicode_literals
from django import forms
from django.conf import settings
from django.forms import widgets, fields
from django.forms.utils import ErrorList
from django.forms.formsets import BaseFormSet, formset_factory
from django.template.defaultfilters import slugify
from cubane.forms import B... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@mapbox/node-pre-gyp/lib/install.js | 'use strict';
module.exports = exports = install;
exports.usage = 'Attempts to install pre-built binary for module';
const fs = require('fs');
const path = require('path');
const log = require('npmlog');
const existsAsync = fs.exists || path.exists;
const versioning = require('./util/versioning.js');
const napi = re... | PypiClean |
/MParT-2.0.2.tar.gz/MParT-2.0.2/docs/source/api/multiindex.rst | ===================
MultiIndices
===================
Background
-------------------
A multiindex is simply a length :math:`D` vector of nonnegative integers :math:`\mathbf{p}=[p_1,p_2,\dots,p_D]`.
Multiindices are commonly employed for defining multivariate polynomial expansions and other function parameterizations.
... | PypiClean |
/Marl-Factory-Grid-0.1.2.tar.gz/Marl-Factory-Grid-0.1.2/marl_factory_grid/utils/plotting/compare_runs.py | import pickle
import re
from os import PathLike
from pathlib import Path
from typing import Union, List
import pandas as pd
from marl_factory_grid.utils.helpers import IGNORED_DF_COLUMNS
from marl_factory_grid.utils.plotting.plotting import prepare_plot
MODEL_MAP = None
def plot_single_run(run_path: Union[str, Pat... | PypiClean |
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Model/Vocabulary/Domain/Variables/Leafs/AbstractRelationVariableLeaf.py |
#+---------------------------------------------------------------------------+
#| 01001110 01100101 01110100 01111010 01101111 01100010 |
#| |
#| Netzob : Inferring communication protocols |
#+-... | PypiClean |
/Flask-TinyMCE-1.0.0.tar.gz/Flask-TinyMCE-1.0.0/flask_tinymce/static/plugins/table/plugin.min.js | !function(){"use strict";function e(r){return function(e){return t=typeof(n=e),(null===n?"null":"object"==t&&(Array.prototype.isPrototypeOf(n)||n.constructor&&"Array"===n.constructor.name)?"array":"object"==t&&(String.prototype.isPrototypeOf(n)||n.constructor&&"String"===n.constructor.name)?"string":t)===r;var n,t}}fun... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/materialdjango/static/materialdjango/components/bower_components/web-animations-js/src/handler-utils.js |
(function(scope) {
// consume* functions return a 2 value array of [parsed-data, '' or not-yet consumed input]
// Regex should be anchored with /^
function consumeToken(regex, string) {
var result = regex.exec(string);
if (result) {
result = regex.ignoreCase ? result[0].toLowerCase() : result[0];... | PypiClean |
/BetterSockets-0.0.1a3.tar.gz/BetterSockets-0.0.1a3/README.md | ## BetterSockets
#### The alternative for Python sockets and asyncio streams is here
##
### Usage:
To use this library just import BetterSockets, and you are good to go.
Start by choosing your class in form of a _client_ or a _server_, by writing
`client = BetterSockets.Client()` or `server = BetterSockets.HubServer()... | PypiClean |
/KF-0.1.3.tar.gz/KF-0.1.3/kalman_filter/icFlexibleLeastSquare.py | from ecKalmanFilter import ECKalmanFilter
import csv, scipy, cvxopt
from timeSeriesFrame import TimeSeriesFrame, StylusReader
from libregression import kalman_filter
from icRegression import ICRegression
from datetime import date
from numpy import multiply as mlt
from numpy import mat
from cvxopt.solvers import qp
DE... | PypiClean |
/Ibid-0.1.1.tar.gz/Ibid-0.1.1/ibid/plugins/help.py |
from copy import copy
import re
import sys
try:
from Stemmer import Stemmer
except ImportError:
from stemmer import PorterStemmer
class Stemmer(PorterStemmer):
def __init__(self, language):
PorterStemmer.__init__(self)
def stemWord(self, word):
return PorterStemmer.... | PypiClean |
/Deeplodocus-0.3.0-py3-none-any.whl/deeplodocus/core/metrics/loss.py | import inspect
from typing import Union
# Import back-end modules
import torch
# Import Deeplodocus modules
from deeplodocus.flags import DEEP_BACKEND_ALL
from deeplodocus.flags import DEEP_NOTIF_FATAL
from deeplodocus.flags.entry import *
from deeplodocus.utils.notification import Notification
from deeplodocus.core.... | PypiClean |
/ENCODEQueryTools-0.1.1.tar.gz/ENCODEQueryTools-0.1.1/docs/html/_sources/README.txt | ======================
About ENCODEQueryTools
======================
|
Introduction
############
The ENCODEQT module of the ENCODEQueryTools package is a Python wrapper around the ENCODE ChIP-Seq Significance Tool's API (ENCODEQT API). The ENCODE ChIP-Seq Significane Tool is a database-backed web tool for identifyin... | PypiClean |
/Hikka_TL-1.24.14-py3-none-any.whl/telethon/tl/functions/users.py | from ...tl.tlobject import TLObject
from ...tl.tlobject import TLRequest
from typing import Optional, List, Union, TYPE_CHECKING
import os
import struct
from datetime import datetime
if TYPE_CHECKING:
from ...tl.types import TypeInputUser, TypeSecureValueError
class GetFullUserRequest(TLRequest):
CONSTRUCTOR... | PypiClean |
/DNBC4tools-2.1.0.tar.gz/DNBC4tools-2.1.0/dnbc4tools/rna/src/generate_report.py | import pandas as pd
import os,argparse
from dnbc4tools.__init__ import __version__
def is_number(s):
"""
Check if the given string can be converted to a number.
:param s: A string to check.
:return: True if the string can be converted to a number, False otherwise.
"""
try:
float(s)
... | PypiClean |
/Cibyl-1.0.0.0rc1.tar.gz/Cibyl-1.0.0.0rc1/cibyl/sources/jenkins.py | import json
import logging
import re
from functools import partial
from typing import Callable, Dict, List
from urllib.parse import urlparse
import requests
import urllib3
from cibyl.cli.argument import Argument
from cibyl.exceptions.jenkins import JenkinsError
from cibyl.models.attribute import AttributeDictValue, A... | PypiClean |
/Alpha-Mind-0.3.1.tar.gz/Alpha-Mind-0.3.1/alphamind/data/engines/industries.py | INDUSTRY_MAPPING = {
'sw': {
1: ["采掘", "传媒", "电气设备", "电子", "房地产", "纺织服装", "非银金融", "钢铁", "公用事业", "国防军工", "化工", "机械设备",
"计算机", "家用电器", "建筑材料",
"建筑装饰", "交通运输", "农林牧渔", "汽车", "轻工制造", "商业贸易", "食品饮料", "通信", "休闲服务", "医药生物", "银行",
"有色金属", "综合"],
2: ["白色家电", "半导体", "包装印刷",... | PypiClean |
/Hyperion-0.9.10.tar.gz/Hyperion-0.9.10/docs/installation/installation.rst | ============
Installation
============
The easy way
============
The easiest way to install Hyperion and all the dependencies on MacOS X or Linux
is to use the `Anaconda Distribution <https://www.anaconda.com/download/>`_
or `Miniconda <https://conda.io/miniconda.html>`_. Once you have either
of these set up, you can... | PypiClean |
/OctoBot-Commons-1.9.18.tar.gz/OctoBot-Commons-1.9.18/octobot_commons/configuration/configuration.py | import os
import functools
import copy
import shutil
import octobot_commons.logging as logging
import octobot_commons.errors as errors
import octobot_commons.constants as commons_constants
import octobot_commons.profiles as profiles
import octobot_commons.json_util as json_util
import octobot_commons.configuration.conf... | PypiClean |
/MPD_sima-0.18.2.tar.gz/MPD_sima-0.18.2/sima/lib/simafm.py |
# Copyright (c) 2009-2014, 2021 kaliko <kaliko@azylum.org>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
... | PypiClean |
/Jobber-0.1.4.tar.gz/Jobber-0.1.4/docs/usage.rst | ========
Usage
========
Preparation
^^^^^^^^^^^
After installation start the Jobber daemon:
.. code-block:: bash
$ nohup jobber_server > jobber.log 2>&1 &
.. note::
If you installed Jobber as user you might not have an access to the jobber_server. By
default the binary location is $HOME/.local/bin and... | PypiClean |
/Mopidy-SevenSegmentDisplay-0.3.1.tar.gz/Mopidy-SevenSegmentDisplay-0.3.1/mopidy_sevensegmentdisplay/actor.py | from __future__ import unicode_literals
import pykka
import logging
from mopidy.core import CoreListener
from worker import Worker
logger = logging.getLogger('Frontend')
class Frontend(pykka.ThreadingActor, CoreListener):
worker = Worker()
def __init__(self, config, core):
self.config = config['sev... | PypiClean |
/FiPy-3.4.4.tar.gz/FiPy-3.4.4/fipy/viewers/mayaviViewer/mayaviClient.py | from __future__ import print_function
from __future__ import unicode_literals
from builtins import str
__docformat__ = 'restructuredtext'
import os
import subprocess
import sys
import tempfile
import time
from fipy.viewers.viewer import AbstractViewer
__all__ = ["MayaviClient"]
from future.utils import text_to_nativ... | PypiClean |
/IntervalArithmetic-0.2.0.tar.gz/IntervalArithmetic-0.2.0/doc/sphinx/source/user-guide.rst | .. include:: abbreviation.txt
.. _user-guide-page:
============
User Guide
============
Interval Construction
=====================
An interval can be constructed using a couple (inf, sup) or an object that support the *__getitem__*
interface
.. code-block:: py3
Interval(inf, sup)
Interval((inf, sup))
Inte... | PypiClean |
/observations-0.1.4.tar.gz/observations-0.1.4/observations/r/bomregions.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import csv
import numpy as np
import os
import sys
from observations.util import maybe_download_and_extract
def bomregions(path):
"""Australian and Related Historical Annual Climate Data, by region
Aust... | PypiClean |
/HTSQL-2.3.3.tar.gz/HTSQL-2.3.3/README | **************************************
HTSQL -- A Database Query Language
**************************************
HTSQL is a comprehensive navigational query language for relational
databases. HTSQL is designed for data analysts and other *accidental
programmers* who have complex business inquiries to solve and need... | PypiClean |
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/pl.py |
languages={'el': 'grecki', 'en': 'angielski', 'zh': u'chi\u0144ski', 'it': u'w\u0142oski', 'ar': 'arabski', 'cs': 'czeski', 'et': u'esto\u0144ski', 'es': u'hiszpa\u0144ski', 'ru': 'rosyjski', 'nl': 'holenderski', 'pt': 'portugalski', 'no': 'norweski', 'tr': 'turecki', 'lv': u'\u0142otewski', 'lt': 'litewski', 'ro': u'... | PypiClean |
/Aggrescan3D-1.0.2.tar.gz/Aggrescan3D-1.0.2/aggrescan/foldx_module.py |
import os
import shutil
import logger
from subprocess import PIPE, Popen
from os.path import join, isfile
import platform
_name = "FoldX"
if platform.system() == "Windows":
_bin_name = "foldx.exe"
else:
_bin_name = "foldx"
# TODO once this is working again re-write given the fact that command line rather tha... | PypiClean |
/Notable-0.4.2.tar.gz/Notable-0.4.2/notable/static/lib/ace/src-min/mode-pgsql.js | define("ace/mode/pgsql",["require","exports","module","ace/lib/oop","ace/mode/text","ace/tokenizer","ace/mode/pgsql_highlight_rules","ace/range"],function(e,t,n){var r=e("../lib/oop"),i=e("../mode/text").Mode,s=e("../tokenizer").Tokenizer,o=e("./pgsql_highlight_rules").PgsqlHighlightRules,u=e("../range").Range,a=functi... | PypiClean |
/Mantissa-0.9.0.tar.gz/Mantissa-0.9.0/xmantissa/plugins/baseoff.py | from twisted.python.filepath import FilePath
from twisted.protocols.amp import IBoxReceiver
from twisted.conch.interfaces import IConchUser
from nevow.inevow import IResource
from xmantissa.ixmantissa import ISiteURLGenerator
from xmantissa import offering
from xmantissa.web import SiteConfiguration
from xmantissa.we... | PypiClean |
/Eden-2.1.14.zip/Eden-2.1.14/eden/edenLib/openGl/learn/separatedIndexed3D/program.py | import ctypes as ct
import numpy as np
import OpenGL.GL as gl
class Shader:
shaderTypesGl = {'vertex': gl.GL_VERTEX_SHADER, 'fragment': gl.GL_FRAGMENT_SHADER}
def __init__ (self, aType, code):
self.aType = aType
self.code = code
self.shaderGl = gl.glCreateShader (self.shaderTypesGl [self.aType])
gl.glS... | PypiClean |
/NucDetect-0.18.3-py3-none-any.whl/gui/Definitions.py | import qtawesome as qta
from PyQt5 import QtGui
from PyQt5.QtCore import QSize
from PyQt5.QtGui import QIcon, QColor
class Color:
ITEM_ANALYSED = QColor("#5A597387")
ITEM_MODIFIED = QColor("#5A8c9ea3")
BRIGHT_RED = QColor(222, 23, 56)
LIGHT_BLUE = QColor(47, 167, 212)
INVISIBLE = QColor(0, 0, 0, 0... | PypiClean |
/HostHome-cli-3.0.2.tar.gz/HostHome-cli-3.0.2/hosthome/comandos.py | from docopt import docopt
import platform
from termcolor import cprint
from warnings import warn
import sys, os, requests
from hosthome.version import VERSION as __version__
from hosthome.login import login
import inquirer
url = requests.get("https://raw.githubusercontent.com/HostHome-of/config/main/config.json").js... | PypiClean |
/NREL_PySAM-4.2.0-cp39-cp39-manylinux2014_x86_64.whl/PySAM/PySSC.py |
import os
import sys
from ctypes import *
from tokenize import Number
c_number = c_double # must be c_double or c_float depending on how defined in sscapi.h
class PySSC:
def __init__(self, pdll_path=None):
this_directory = os.path.abspath(os.path.dirname(__file__))
if pdll_path == None:
... | PypiClean |
/FlyBrainLab-1.1.10-py3-none-any.whl/flybrainlab/circuit.py | import time
import json
from copy import deepcopy
import traceback, sys
import os
import numpy as np
import networkx as nx
import pandas as pd
import seaborn as sns
sns.set(color_codes=True)
from .graph import NAqueryResult, CircuitGraph
from .exceptions import FlyBrainLabNAserverException, FlyBrainLabNKserverExcepti... | PypiClean |
/NJU_jiaowu_helper-0.3.1.tar.gz/NJU_jiaowu_helper-0.3.1/jiaowu/core/function/utils/others.py | import os
import re
import pytesseract as pytesseract
from PIL import Image
# 识别验证码
from jiaowu.core.function.utils.writer import JSONWriter
from jiaowu.core.model.spider_model import LoginSpider
def recognize_captcha(file_path):
image = Image.open(file_path)
print(image.size)
image = image.crop((1, 1, ... | PypiClean |
/ChemDataExtractor_c-1.0.0-py3-none-any.whl/chemdataextractor/text/processors.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from __future__ import unicode_literals
from abc import ABCMeta, abstractmethod
import logging
import re
import six
from . import EMAIL_RE, APOSTROPHES
log = logging.getLogger(__name__)
class BaseProcessor(... | PypiClean |
/Djblets-3.3.tar.gz/Djblets-3.3/docs/releasenotes/0.6.14.rst | ============================
Djblets 0.6.14 Release Notes
============================
**Release date**: November 9, 2011
djblets.compress
================
* Added a new filters for django-compress that handles lesscss_ files and
automatically converts/deploys as CSS.
.. _lesscss: http://lesscss.org
* Added new... | PypiClean |
/Box2D-2.3.2.tar.gz/Box2D-2.3.2/examples/pgu/gui/area.py | import os
from . import pguglobals
from .const import *
from . import surface
from . import container, table
from . import group
from . import basic, button, slider
class SlideBox(container.Container):
"""A scrollable area with no scrollbars.
Example:
c = SlideBox(w,100,100)
c.offset = (1... | PypiClean |
/GxAutoTestManager-1.0.1.tar.gz/GxAutoTestManager-1.0.1/AutoTestManager/server/modules/log.py | import yaml
import json
import os
import time
import datetime
import logging
from cloghandler import ConcurrentRotatingFileHandler
#from logging.handlers import RotatingFileHandler
class HeartLog(object):
def __init__(self, yaml_file):
self.time_format = "%Y-%m-%d %H:%M:%S"
self.yaml_file = yaml_f... | PypiClean |
/CASWSGIMiddleware-1.2.1.tar.gz/CASWSGIMiddleware-1.2.1/README.md |
##Running as a test
Ahead of running the test script you will need support for python virtualenv and pip
> sudo apt-get install python-pip
> sudo pip install virtualenv
##Running as part of a WSGI Application under Apache
> apt-get install libapache2-mod-wsgi
You will need to set up the virtualenv, see the test/ru... | PypiClean |
/Netfoll_TL-2.0.1-py3-none-any.whl/netfoll_tl/requestiter.py | import abc
import asyncio
import time
from . import helpers
class RequestIter(abc.ABC):
"""
Helper class to deal with requests that need offsets to iterate.
It has some facilities, such as automatically sleeping a desired
amount of time between requests if needed (but not more).
Can be used syn... | PypiClean |
/Lotlan_Scheduler-1.1.2.tar.gz/Lotlan_Scheduler-1.1.2/lotlan_scheduler/helpers.py |
from os import walk
from os.path import splitext, join
from lotlan_scheduler.defines import LOTLAN_FILE_ENDING
def string_is_int(string):
"""
Returns true if a string can be cast to an int
returns false otherwise
"""
try:
int(string)
return True
except ValueError:
... | PypiClean |
/Eryn-1.1.4.tar.gz/Eryn-1.1.4/eryn/moves/move.py |
from ..state import BranchSupplimental
import numpy as np
from copy import deepcopy
try:
import cupy as xp
except (ModuleNotFoundError, ImportError):
import numpy as xp
__all__ = ["Move"]
class Move(object):
"""Parent class for proposals or "moves"
Args:
temperature_control (:class:`tempe... | PypiClean |
/AaronTools-1.0b14.tar.gz/AaronTools-1.0b14/utils/prime_numbers.py |
"""Generates prime numbers"""
import sys
from math import sqrt
from os import makedirs, path, access, W_OK
from AaronTools.const import AARONLIB
class Primes:
"""
find and cache prime numbers
"""
primes = [2, 3]
clean = False
cache = path.join(AARONLIB, "cache", "primes.dat")
def __init... | PypiClean |
/ConceptNet-5.7.0.tar.gz/ConceptNet-5.7.0/conceptnet5/readers/wiktionary.py | import os
import pathlib
import sqlite3
from collections import Counter
from conceptnet5.edges import make_edge
from conceptnet5.formats.json_stream import read_json_stream
from conceptnet5.formats.msgpack_stream import MsgpackStreamWriter
from conceptnet5.languages import ALL_LANGUAGES, valid_language
from conceptnet... | PypiClean |
/Inflector-3.1.0.tar.gz/Inflector-3.1.0/inflector/__init__.py |
from inflector.languages.english import English
from inflector.languages.spanish import Spanish
class Inflector(object):
"""
Inflector for pluralizing and singularizing nouns.
It provides methods for helping on creating programs
based on naming conventions like on Ruby on Rails.
"""
def __i... | PypiClean |
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/ui/expand_layout.py | from warnings import warn
from muntjac.ui.ordered_layout import OrderedLayout
class ExpandLayout(OrderedLayout):
"""A layout that will give one of it's components as much space as
possible, while still showing the other components in the layout. The
other components will in effect be given a fixed sized ... | PypiClean |
/GDAL-3.7.1.1.tar.gz/GDAL-3.7.1.1/gdal-utils/osgeo_utils/samples/tile_extent_from_raster.py |
import sys
from osgeo import gdal, ogr
from osgeo_utils.auxiliary.util import GetOutputDriverFor
def Usage():
print("Usage: tile_extent_from_raster.py [-f format] [-ovr level] in.tif out.shp")
return 2
def main(argv=sys.argv):
i = 1
output_format = None
in_filename = None
out_filename = N... | PypiClean |
/MAIVE-0.0.3.2-py3-none-any.whl/maive/maive.py | import math
import random
from fractions import Fraction
import numpy as np
import pandas as pd
import statistics as st
import matplotlib.pyplot as plt
import statsmodels.api as sms
import seaborn as sns
sns.set()
from sklearn.linear_model import LinearRegression, LogisticRegression
from sklearn.feature_selection imp... | PypiClean |
/McsPyDataTools-0.4.3.tar.gz/McsPyDataTools-0.4.3/docs/api.rst | McsPyDataTools API Reference
============================
.. automodule:: McsPy
:members:
The ''McsData'' module
----------------------
.. module:: McsPy.McsData
.. autoclass:: RawData
:members:
:member-order: bysource
.. autoclass:: Recording
:members:
:member-order: bysource
Provides th... | PypiClean |
/HSTools-0.0.3-py3-none-any.whl/hstools/funcs/move.py |
import os
import sys
import shutil
import argparse
import subprocess
from hstools import hydroshare, log
logger = log.logger
def move(hs, resid, source, target):
options = {
"source_path": source,
"target_path": target
}
# move the file
logger.info(f'- mo... | PypiClean |
/NeodroidVision-0.3.0-py36-none-any.whl/neodroidvision/data/synthesis/conversion/mnist/json_generation/coco_json_utilities.py |
__author__ = "Christian"
__doc__ = r"""
Created on 29/03/2020
"""
import json
from pathlib import Path
import numpy
from PIL import Image
from draugr.visualisation import progress_bar
from skimage import measure
from warg import NOD
__all__ = [
"create_coco_image",
"AnnotationJsonUtil... | PypiClean |
/FicusFramework-3.1.0.post2.tar.gz/FicusFramework-3.1.0.post2/src/api/model/FdInputWrapper.py | from api.exceptions import IllegalArgumentException
from factdatasource import FactDatasourceProxyServiceV2
class FdInputWrapper:
"""
fd输入的一个包装
"""
_site = None
_project_code = None
_fact_datasource_code = None
_join_fd_codes = set()
_join_fd_targets = set()
def fd_code(self):
... | PypiClean |
/dippy-0.1.0.tar.gz/dippy-0.1.0/dippy/example/build.py | from dippy import empty_env
# ------------------------------------------------------------------------------
# import implementations
# ------------------------------------------------------------------------------
# json
from dippy.example.json.json_cjson import component as json
#from dippy.example.json.json_simple... | PypiClean |
/GSAS-II-WONDER_linux-1.0.1.tar.gz/GSAS-II-WONDER_linux-1.0.1/GSAS-II-WONDER/GSASIIspc.py | ########### SVN repository information ###################
# $Date: 2019-09-20 14:45:35 -0500 (Fri, 20 Sep 2019) $
# $Author: vondreele $
# $Revision: 4157 $
# $URL: https://subversion.xray.aps.anl.gov/pyGSAS/trunk/GSASIIspc.py $
# $Id: GSASIIspc.py 4157 2019-09-20 19:45:35Z vondreele $
########### SVN repository infor... | PypiClean |
/ConferenceCorpus-0.1.1.tar.gz/ConferenceCorpus-0.1.1/corpus/lookup.py | from corpus.event import EventStorage
from corpus.eventcorpus import EventCorpus, EventDataSource
from corpus.datasources.acm import ACM
from corpus.datasources.confref import Confref
from corpus.datasources.crossref import Crossref
from corpus.datasources.dblp import Dblp
from corpus.datasources.gnd import GND
from co... | PypiClean |
/NSoL-0.1.14.tar.gz/NSoL-0.1.14/nsol/admm_linear_solver_parameter_study.py |
import numpy as np
import pysitk.python_helper as ph
from nsol.solver_parameter_study import SolverParameterStudy
import nsol.admm_linear_solver as admm
class ADMMLinearSolverParameterStudy(SolverParameterStudy):
##
# Store information for parameter study
# \date 2017-09-13 23:16:59+0100
#
... | PypiClean |
/Mopidy-MusicBox-Darkclient-1.1.tar.gz/Mopidy-MusicBox-Darkclient-1.1/mopidy_musicbox_darkclient/static/vendors/custom-select/jquery.custom-select.min.js | (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||... | PypiClean |
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/plugins/cosigner_pool/qt.py |
import socket
import threading
import time
import xmlrpclib
from PyQt4.QtGui import *
from PyQt4.QtCore import *
from electrum_vtc import bitcoin, util
from electrum_vtc import transaction
from electrum_vtc.plugins import BasePlugin, hook
from electrum_vtc.i18n import _
from electrum_vtc.wallet import Multisig_Walle... | PypiClean |
/Jade-Application-Kit-3.5.6.tar.gz/Jade-Application-Kit-3.5.6/bin/JAK/Utils.py |
import os
import re
import subprocess
from pathlib import Path
from PyQt5.QtWidgets import QApplication
register = {}
def create_desktop_entry(url, title, description, icon):
entry_name = title.replace(" ", "-")
filename = f"{entry_name}.desktop"
user_entry_path = f"{str(Path.home())}/.local/share/appli... | PypiClean |
/Flask-RQ2-18.3.tar.gz/Flask-RQ2-18.3/docs/index.rst | Flask-RQ2
=========
.. include:: ../README.rst
:start-after: .. snip
:end-before: .. snap
Decorators
----------
``@job``
~~~~~~~~
A decorator to mark a function as an `RQ job`_ and to add some helpers to
the function to simplify enqueuing:
.. code-block:: python
from flask_rq2 import RQ
rq = RQ()
... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.