id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/BlueWhale3_Geo-0.3.0-py3-none-any.whl/orangecontrib/geo/widgets/plotutils.py | import os
import weakref
from io import BytesIO
from concurrent.futures import Future
from typing import List, NamedTuple, Optional
from functools import partial
from contextlib import closing
from PIL import Image
import numpy as np
from AnyQt.QtWidgets import QApplication
from AnyQt.QtCore import Qt, QObject, QThre... | PypiClean |
/Flask-Cors-4.0.0a0.tar.gz/Flask-Cors-4.0.0a0/docs/api.rst | API Docs
==========
This package exposes a Flask extension which by default enables CORS support on all routes, for all origins and methods.
It allows parameterization of all CORS headers on a per-resource level. The package also contains a decorator, for those who prefer this approach.
Extension
~~~~~~~~~
This is t... | PypiClean |
/Arc_api-1.1.tar.gz/Arc_api-1.1/Arcapi/sync_api.py | import re
import json
from typing import List, Dict, Any
from websocket import create_connection
import brotli
from Arcapi.api import Api
from Arcapi.exceptions import *
class SyncApi(Api):
user_code: str # User's 9-digit code for login
start: int # The beginning constant for consulting
end: int # Th... | PypiClean |
/Cloud-Cells-0.0.3.tar.gz/Cloud-Cells-0.0.3/cloud-cells/backend/handlers/deploy_handler.py | import copy
import json
import logging
import tempfile
import urllib
import requests
import yaml
from .base_handler import BaseHandler
from .sdia_service import SDIAService
logger = logging.getLogger('BuildToscaHandler')
logger.setLevel(logging.DEBUG)
# create console handler and set level to debug
ch = logging.Str... | PypiClean |
/CellProfiler-4.2.6.tar.gz/CellProfiler-4.2.6/cellprofiler/gui/parametersampleframe.py | import os
import traceback
import numpy
import skimage.io
import wx
import wx.lib.agw.floatspin
from cellprofiler_core.image import ImageSetList
from cellprofiler_core.measurement import Measurements
from cellprofiler_core.object import ObjectSet
from cellprofiler_core.pipeline import RunException
from cellprofiler_co... | PypiClean |
/InvokeAI-3.1.0-py3-none-any.whl/invokeai/app/services/invocation_queue.py |
import time
from abc import ABC, abstractmethod
from queue import Queue
from pydantic import BaseModel, Field
from typing import Optional
class InvocationQueueItem(BaseModel):
graph_execution_state_id: str = Field(description="The ID of the graph execution state")
invocation_id: str = Field(description="The... | PypiClean |
/Curp-1.3.1.tar.gz/Curp-1.3.1/curp/setting.py | from setting_base import *
class Setting(SettingBase):
"""Settings for curp computations
Parameters
----------
config : configparser.SafeConfigParser
check : Bool
Whether entries are checked or not.
Examples
--------
To create a default Setting object:
>>> import curp.set... | PypiClean |
/Axelrod-4.13.0.tar.gz/Axelrod-4.13.0/docs/reference/strategy_index.rst | .. _strategies-index:
Strategy index
==============
Here are the docstrings of all the strategies in the library.
.. automodule:: axelrod.strategies.adaptive
:members:
.. automodule:: axelrod.strategies.adaptor
:members:
.. automodule:: axelrod.strategies.alternator
:members:
.. automodule:: axelrod.strate... | PypiClean |
/KubeJobSub-0.1.18.tar.gz/KubeJobSub-0.1.18/README.md | [](https://badge.fury.io/py/KubeJobSub)
# KubeJobSub/AzureStorage/AzureBatch
This repository contains a Python package for three purposes - submitting jobs to a kubernetes cluster, manipulating
azure file storage with a bash-like interface, and simplifying submi... | PypiClean |
/FlyForms-1.0.0b1.tar.gz/FlyForms-1.0.0b1/docs/build/html/_static/searchtools.js | * Porter Stemmer
*/
var Stemmer = function() {
var step2list = {
ational: 'ate',
tional: 'tion',
enci: 'ence',
anci: 'ance',
izer: 'ize',
bli: 'ble',
alli: 'al',
entli: 'ent',
eli: 'e',
ousli: 'ous',
ization: 'ize',
ation: 'ate',
ator: 'ate',
alism: 'al',
... | PypiClean |
/GeophPy-0.32.2.tar.gz/GeophPy-0.32.2/geophpy/filesmanaging/grd.py | import numpy as np
import struct
#------------------------------------------------------------------------------#
# Classes to managed grids from Surfer (Golden Software) #
#------------------------------------------------------------------------------#
# List of the treated grid file format
grid... | PypiClean |
/Adafruit_Libraries-0.1.tar.gz/Adafruit_Libraries-0.1/Adafruit/LEDpixels/Adafruit_LEDpixels.py |
# Test code for Adafruit LED Pixels, uses hardware SPI
import RPi.GPIO as GPIO, time, os
DEBUG = 1
GPIO.setmode(GPIO.BCM)
def slowspiwrite(clockpin, datapin, byteout):
GPIO.setup(clockpin, GPIO.OUT)
GPIO.setup(datapin, GPIO.OUT)
for i in range(8):
if (byteout & 0x80):
GPIO.output(datapin, True)
else:
G... | PypiClean |
/ELDAM_LCA-1.0-py3-none-any.whl/eldam/gui/widgets/compare_simapro_export_with_elda.py | from PyQt5.QtWidgets import QTreeWidgetItem
from eldam.gui.widgets import EldamWidgetWithProcessSummary
from eldam.gui.dialogs import EldaOpenDialog, SimaProExportOpenDialog, ErrorDialog, RetryCancelDialog
from eldam.gui.gui_parameters import *
from eldam.core.simapro import SimaProXlsxReader
from eldam.core.elda imp... | PypiClean |
/Clarify-0.5.1.tar.gz/Clarify-0.5.1/clarify/parser.py | from collections import namedtuple
import datetime
import re
import dateutil.parser
from lxml import etree
class Parser(object):
"""
Parser for a jurisdiction's detail XML report files
An example for such a file can be found at
http://results.enr.clarityelections.com/KY/Adair/15263/27401/reports/de... | PypiClean |
/ClueDojo-1.4.3-1.tar.gz/ClueDojo-1.4.3-1/src/cluedojo/static/dojox/drawing/tools/TextBlock.js | if(!dojo._hasResource["dojox.drawing.tools.TextBlock"]){
dojo._hasResource["dojox.drawing.tools.TextBlock"]=true;
dojo.provide("dojox.drawing.tools.TextBlock");
dojo.require("dojox.drawing.stencil.Text");
(function(){
var _1;
dojo.addOnLoad(function(){
_1=dojo.byId("conEdit");
if(!_1){
console.error("A contenteditable ... | PypiClean |
/Handlers/ETLHandler.py | from BeetleETL.Handlers import ConfigHandler
from BeetleETL.Handlers import MongoHandler
from BeetleETL.Handlers import SQLHandler
import logging
import json
import smtplib
import os
class ETLHandler():
""" main entry point for MongoTOSQL, this object handles
- setup of config file (from ConfigHandler)
... | PypiClean |
/NeodroidAgent-0.4.8-py36-none-any.whl/neodroidagent/agents/numpy_agents/evolutionary/get_rid/meh_wat.py |
__author__ = 'Christian Heider Nielsen'
__doc__ = r'''
Created on 15/07/2020
'''
import collections
import akro
import numpy as np
from garage.misc import tensor_utils
class TrajectoryBatch( collections.namedtuple('TrajectoryBatch', [
'env_spec',
'observations',
'last_observatio... | PypiClean |
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/builtin/specialfns/gamma.py | import sys
import mpmath
import sympy
from mathics.builtin.arithmetic import _MPMathFunction, _MPMathMultiFunction
from mathics.builtin.base import PostfixOperator, SympyFunction
from mathics.core.atoms import Integer, Integer0, Number
from mathics.core.attributes import A_LISTABLE, A_NUMERIC_FUNCTION, A_PROTECTED
fr... | PypiClean |
/Bibtex_File_Comparison_and_Update-1.4.tar.gz/Bibtex_File_Comparison_and_Update-1.4/docs/build/html/_static/searchtools.js | * Porter Stemmer
*/
var Stemmer = function() {
var step2list = {
ational: 'ate',
tional: 'tion',
enci: 'ence',
anci: 'ance',
izer: 'ize',
bli: 'ble',
alli: 'al',
entli: 'ent',
eli: 'e',
ousli: 'ous',
ization: 'ize',
ation: 'ate',
ator: 'ate',
alism: 'al',
... | PypiClean |
/DXC-RL-1.0.3.5.tar.gz/DXC-RL-1.0.3.5/dxc/ai/pipeline/pipeline.py | from pymongo import MongoClient #MongoDB
import pandas as pd
import json
import datetime
import re
from dxc.ai.global_variables import globals_file
from dxc.ai.logging import pipeline_logging
def convert_dates_from_arrow_to_string(df, arrow_date_fields):
for field in arrow_date_fields:
df[field] = df[field... | PypiClean |
/NetworkSim-0.2.2.tar.gz/NetworkSim-0.2.2/docs/build/html/_static/doctools.js | * select a different prefix for underscore
*/
$u = _.noConflict();
/**
* make the code below compatible with browsers without
* an installed firebug like debugger
if (!window.console || !console.firebug) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
"dirxml", "group", "groupEnd", "... | PypiClean |
/Jord-0.1.5.tar.gz/Jord-0.1.5/jord/qgis_utilities/data_provider.py | __all__ = ["CommonVectorDataProviderLibEnum"]
from enum import Enum
class CommonVectorDataProviderLibEnum(Enum):
memory = "memory"
postgres = "postgres"
def auishd(iface) -> None:
"""
Some services require you to supply your own API key for the services to work.
For Esri basemaps you will need... | PypiClean |
/Greg-0.4.8.tar.gz/Greg-0.4.8/greg/aux_functions.py | import configparser
import os
import subprocess
import sys
import re
import time
import unicodedata
import string
import json
from urllib.request import urlopen
from urllib.error import URLError
from pkg_resources import resource_filename
import feedparser
try: # EyeD3 is an optional dependency
import eyed3
... | PypiClean |
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/docs/source/users/algorithms/minimizer_types.rst | .. _minimizer_types:
***************************************
Algorithm Types of Available Minimizers
***************************************
Least Squares (``ls``):
.. algorithmcheckdocs::
:key: ls
Deriv-Free (``deriv_free``):
.. algorithmcheckdocs::
:key: deriv_free
General (``general``):
.. algorithmch... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas/geometry/primitives/quaternion.py | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
import math
from compas.geometry import quaternion_multiply
from compas.geometry import quaternion_conjugate
from compas.geometry import quaternion_unitize
from compas.geometry import quaternion_canonize
from ... | PypiClean |
/Boiler-Plate-0.0.1.tar.gz/Boiler-Plate-0.0.1/README.rst | ===============================
Python Boilerplate
===============================
.. image:: https://img.shields.io/travis/fxs007/boiler-plate.svg
:target: https://travis-ci.org/fxs007/boiler-plate
.. image:: https://img.shields.io/pypi/v/boiler-plate.svg
:target: https://pypi.python.org/pypi/boiler-... | PypiClean |
/Drum-0.4.0.tar.gz/Drum-0.4.0/drum/links/static/js/jquery.pjax.js |
if (window.history && window.history.pushState && !navigator.userAgent.match(/(iPod|iPhone|iPad|WebApps\/.+CFNetwork)/)) {
$(function() {
var active = false;
var initial = true;
var pjax = function(url, push) {
$('.main').fadeTo(0, .5);
$.get(url, {pjax: 1}, func... | PypiClean |
/AltAnalyze-2.1.3.15.tar.gz/AltAnalyze-2.1.3.15/altanalyze/visualization_scripts/umap_learn_single/validation.py | import numpy as np
import numba
from sklearn.neighbors import KDTree
from umap_learn.distances import named_distances
@numba.njit()
def trustworthiness_vector_bulk(
indices_source, indices_embedded, max_k
): # pragma: no cover
n_samples = indices_embedded.shape[0]
trustworthiness = np.zeros(max_k + 1, ... | PypiClean |
/Diofant-0.14.0a2.tar.gz/Diofant-0.14.0a2/docs/modules/solvers/ode.rst | .. _ode-docs:
ODE
===
.. module::diofant.solvers.ode
User Functions
--------------
These are functions that are imported into the global namespace with ``from
diofant import *``. These functions (unlike `Hint Functions`_, below) are
intended for use by ordinary users of Diofant.
dsolve
^^^^^^
.. autofunction:: dio... | PypiClean |
/CodeIntel-2.0.0b19-cp34-cp34m-macosx_10_12_x86_64.whl/codeintel/codeintel2/tree_javascript.py | from __future__ import absolute_import
import logging
import types
import re
from pprint import pformat
from itertools import chain
from codeintel2.common import *
from codeintel2.util import indent
from codeintel2.tree import TreeEvaluator
class CandidatesForTreeEvaluator(TreeEvaluator):
# Note: the "alt" change... | PypiClean |
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/93202.004b584bc334a9f167ee.min.js | (self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[93202],{93202:function(e){function n(e){return e?"string"==typeof e?e:e.source:null}function t(...e){return e.map((e=>n(e))).join("")}function a(e){const a={"builtin-name":["action","bindattr","collection","component","conc... | PypiClean |
/EdaSpiffWorkflow-0.0.2.tar.gz/EdaSpiffWorkflow-0.0.2/EdaSpiffWorkflow_Aadesh_G/camunda/parser/UserTaskParser.py | from ...bpmn.parser.TaskParser import TaskParser, xpath_eval
from ...camunda.specs.UserTask import Form, FormField, EnumFormField
CAMUNDA_MODEL_NS = 'http://camunda.org/schema/1.0/bpmn'
class UserTaskParser(TaskParser):
def __init__(self, process_parser, spec_class, node):
super(UserTaskParser, self).__... | PypiClean |
/KittyStore-0.9.3.tar.gz/KittyStore-0.9.3/ez_setup.py | import os
import shutil
import sys
import tempfile
import zipfile
import optparse
import subprocess
import platform
import textwrap
import contextlib
from distutils import log
try:
from urllib.request import urlopen
except ImportError:
from urllib2 import urlopen
try:
from site import USER_SITE
except Im... | PypiClean |
/Kuyruk-9.4.1.tar.gz/Kuyruk-9.4.1/kuyruk/task.py | import os
import sys
import json
import platform
import signal
import socket
import logging
from uuid import uuid1
from datetime import datetime
from contextlib import contextmanager
from typing import Callable, Tuple, Dict, Any, NamedTuple, TYPE_CHECKING, Union, Iterator, Optional
import amqp
from blinker import Sign... | PypiClean |
/BlueWhale3-3.31.3.tar.gz/BlueWhale3-3.31.3/Orange/widgets/utils/dendrogram.py | import fractions
from collections import namedtuple, OrderedDict
from typing import Tuple, List, Optional, Dict
import numpy as np
from AnyQt.QtCore import QPointF, QRectF, Qt, QSizeF, QEvent, Signal
from AnyQt.QtGui import (
QPainterPath, QPen, QBrush, QPainterPathStroker, QColor, QTransform,
QFontMetrics, ... | PypiClean |
/MAVR-0.93.tar.gz/MAVR-0.93/scripts/filter/merge_and_check_reads.py | __author__ = 'Sergei F. Kliver'
import os
import argparse
from multiprocessing import Pool
from RouToolPa.Routines import FileRoutines
parser = argparse.ArgumentParser()
parser.add_argument("-d", "--sample_directory", action="store", dest="sample_dir",
help="Directory with samples")
parser.add_a... | PypiClean |
/EasyPlot-1.0.0b2.zip/EasyPlot-1.0.0b2/README.rst |
easyplot
========
**easyplot:** A matplotlib wrapper written in Python to enable fast and
easy creation of reusable plots.
by `Sudeep Mandal <http://www.sudeepmandal.com>`__
The EasyPlot module provides a thin wrapper to matplotlib, enabling fast
and easy generation of beautiful, annotated plots with minimal code. ... | PypiClean |
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/pb_py/device_info_config_pb2.py |
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_insertion_point(imports)
_sym_db = _symbol_database.Default()
DESCRIPTOR = _descrip... | PypiClean |
/IdracRedfishSupportTest-0.0.7.tar.gz/IdracRedfishSupportTest-0.0.7/RunDiagnosticsREDFISH.py |
import argparse
import getpass
import json
import logging
import re
import requests
import sys
import time
import warnings
import webbrowser
from datetime import datetime
from pprint import pprint
warnings.filterwarnings("ignore")
parser=argparse.ArgumentParser(description="Python script using Redfish API with OEM ... | PypiClean |
/Office365_REST_with_timeout-0.1.1-py3-none-any.whl/office365/sharepoint/internal/upload_session.py | import os
import uuid
from office365.runtime.client_result import ClientResult
from office365.runtime.queries.service_operation_query import ServiceOperationQuery
from office365.sharepoint.internal.create_file import create_file_query
from office365.sharepoint.files.file import File
from office365.sharepoint.files.fil... | PypiClean |
/Helmholtz-0.2.0.tar.gz/Helmholtz-0.2.0/helmholtz/neuralstructures/management/commands/populate_brain_regions.py | from helmholtz.core.populate import PopulateCommand
from helmholtz.neuralstructures.models import BrainRegion
#brain_regions = [
#{'id':1, 'species':{'name':'human'}, 'english_name':'BRAIN', 'latin_name':'Encephalon', 'abbreviation':'Br', 'volume_or_surface':'V'},
#{'id':2, 'species':{'name':'human'}, 'english_name':'... | PypiClean |
/CRIkit2-0.4.4.tar.gz/CRIkit2-0.4.4/crikit/io/meta_process.py | from crikit.data.frequency import (calib_pix_wn as _calib_pix_wn,
calib_pix_wl as _calib_pix_wl)
from crikit.data.spectra import Spectrum as _Spectrum
from crikit.data.spectra import Spectra as _Spectra
from crikit.data.spectra import Hsi as _Hsi
import numpy as _np
import tracebac... | PypiClean |
/Nuitka_fixed-1.1.2-cp310-cp310-win_amd64.whl/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Script/Interactive.py | from __future__ import print_function
__revision__ = "src/engine/SCons/Script/Interactive.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan"
__doc__ = """
SCons interactive mode
"""
# TODO:
#
# This has the potential to grow into something with a really big life
# of its own, which might or mig... | PypiClean |
/DoorPi-2.4.1.8.tar.gz/DoorPi-2.4.1.8/doorpi/status/status_lib/sipphone.py |
import logging
logger = logging.getLogger(__name__)
logger.debug("%s loaded", __name__)
def get(*args, **kwargs):
try:
if len(kwargs['name']) == 0: kwargs['name'] = ['']
if len(kwargs['value']) == 0: kwargs['value'] = ['']
sipphone = kwargs['DoorPiObject'].sipphone
status = {}
... | PypiClean |
/Jug-2.3.0.tar.gz/Jug-2.3.0/jug/jug.py |
import itertools
import logging
import os
import sys
from . import task
from .barrier import BarrierError
from .utils import prepare_task_matcher
from .hooks import jug_hook
_is_jug_running = False
def is_jug_running():
'''
Returns True if this script is being executed by jug instead of regular
Python... | PypiClean |
/Insta-Spam-1.1.tar.gz/Insta-Spam-1.1/README.md | <center>Hi everyone ,
<marquee> Auther : SM02 , Sm02present </marquee>
this project only for edeqution perposal
<mark>apt source only </mark>
<pre>
apt update
apt upgrade -y
apt install python3-pip -y
pip3 install --upgrade pip
pip3 install requests
pip3 install Insta-Spam
<mark> runing commonds</mark>
type... | PypiClean |
/IdracRedfishSupport-0.0.8.tar.gz/IdracRedfishSupport-0.0.8/SecureBootResetKeysREDFISH.py |
import argparse
import getpass
import json
import logging
import re
import requests
import sys
import time
import warnings
from datetime import datetime
from pprint import pprint
warnings.filterwarnings("ignore")
parser=argparse.ArgumentParser(description="Python script using Redfish API to either get supported res... | PypiClean |
/DBUtils-3.0.3.tar.gz/DBUtils-3.0.3/dbutils/steady_db.py | import sys
from . import __version__
class SteadyDBError(Exception):
"""General SteadyDB error."""
class InvalidCursor(SteadyDBError):
"""Database cursor is invalid."""
def connect(
creator, maxusage=None, setsession=None,
failures=None, ping=1, closeable=True, *args, **kwargs):
"""A ... | PypiClean |
/GoogleImages_Download-1.0.6-py3-none-any.whl/GoogleImages_Download/GoogleImagesDownload.py | from selenium import webdriver
import requests
import chromedriver_binary
from tqdm import tqdm
import os
import re
import sys
class GoogleImagesDownload:
def __init__(self,search):
self.url = "https://www.google.co.in/search?hl=en&tbm=isch&source=hp&biw=1600&bih=789&ei=75vUXuyBKLmb4-EP-rGciAE&q="
... | PypiClean |
/ColorFont-1.0.5.tar.gz/ColorFont-1.0.5/ColorFont.py |
#filename: prt_cmd_color.py
import ctypes,sys
STD_INPUT_HANDLE = -10
STD_OUTPUT_HANDLE = -11
STD_ERROR_HANDLE = -12
#字体颜色定义 text colors
FOREGROUND_BLUE = 0x09 # blue.
FOREGROUND_GREEN = 0x0a # green.
FOREGROUND_RED = 0x0c # red.
FOREGROUND_YELLOW = 0x0e # yellow.
# 背景颜色定义 background colors
BACKGROUND_YELLOW = 0... | PypiClean |
/BuildStream-2.0.1-cp39-cp39-manylinux_2_28_x86_64.whl/buildstream/_pluginfactory/pluginorigin.py |
from ..types import FastEnum
from ..node import ScalarNode, MappingNode
from .._exceptions import LoadError
from ..exceptions import LoadErrorReason
# PluginType()
#
# A type of plugin
#
class PluginType(FastEnum):
# A Source plugin
SOURCE = "source"
# An Element plugin
ELEMENT = "element"
def... | PypiClean |
/Adytum-PyMonitor-1.0.5.tar.bz2/Adytum-PyMonitor-1.0.5/lib/net/traceroute.py | import os
import sets
if os.name == 'posix':
TRACE_BIN = '/usr/sbin/traceroute'
else:
TRACE_BIN = None
class Trace(object):
'''
>>> from traceroute import Trace
>>> t = Trace(host='www.adytum.us')
>>> t.call()
>>> len(t.results.getHosts()) > 0
'''
def __init__(self, host='127.0.0.1... | PypiClean |
/CDS-1.0.1.tar.gz/CDS-1.0.1/cds/modules/records/serializers/schemas/common.py | from __future__ import absolute_import
from marshmallow import Schema, ValidationError, fields, validates_schema
from marshmallow.validate import Length
from ...api import Keyword
class LicenseSchema(Schema):
"""License schema."""
license = fields.Str()
material = fields.Str()
credit = fields.Str()... | PypiClean |
/Flask-Dashed-0.1a.tar.gz/Flask-Dashed-0.1a/flask_dashed/admin.py | from werkzeug import OrderedMultiDict
from flask import Blueprint, url_for, request, abort
from views import ObjectListView, ObjectFormView
from views import ObjectDeleteView, secure
def recursive_getattr(obj, attr):
"""Returns object related attributes, as it's a template filter None
is return when attribut... | PypiClean |
/KalibBot1-1.0.3.tar.gz/KalibBot1-1.0.3/KalibBot/__init__.py | __name__ = "KalibBot1"
__author__ = "Pirxcy"
__version__ = "1.0.3"
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
... | PypiClean |
/NIA_image_2latex-1.0-py3-none-any.whl/pix2tex.py | import pix2tex
from dataset.dataset import test_transform
import pandas.io.clipboard as clipboard
from PIL import ImageGrab
from PIL import Image
import os
import sys
import argparse
import logging
import yaml
import re
import latex2mathml.converter
import numpy as np
import torch
import natsort
from torchvision impo... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-3.1.2/SCons/Tool/msvs.py |
from __future__ import print_function
__revision__ = "src/engine/SCons/Tool/msvs.py bee7caf9defd6e108fc2998a2520ddb36a967691 2019-12-17 02:07:09 bdeegan"
import SCons.compat
import base64
import hashlib
import ntpath
import os
import pickle
import re
import sys
import SCons.Builder
import SCons.Node.FS
import SCon... | PypiClean |
/flask-2.3.3-py3-none-any.whl/flask/scaffold.py | from __future__ import annotations
import importlib.util
import os
import pathlib
import sys
import typing as t
from collections import defaultdict
from datetime import timedelta
from functools import update_wrapper
from jinja2 import FileSystemLoader
from werkzeug.exceptions import default_exceptions
from werkzeug.e... | PypiClean |
/AksharaJaana-1.0.1.1.tar.gz/AksharaJaana-1.0.1.1/README.md | # AksharaJaana
<p align="center">
<img src="https://user-images.githubusercontent.com/63489382/173864136-118db121-fcf4-4c8a-9b7d-7c4e4c0e48f9.png" width=200px>
</p>
<p align="center">
An OCR for Kannada.
</p>
<p align="center">
<a href="https://www.npmjs.com/package/@swc/core">
<a href="https://pypi.... | PypiClean |
/DLMS_SPODES-0.40.11.tar.gz/DLMS_SPODES-0.40.11/src/DLMS_SPODES/Values/RU/relation_to_obis_names.py | UNKNOWN = "Неизвестное имя класса"
FOR = "для"
BILLING_PERIOD = "За расчетный период"
OVER_VOLTAGE_COUNTER = "Количество перенапряжений"
# DLMS UA 1000-1 Ed 14 7.3.2 Value group B Table 56
INSTANCE = "экземпляр"
CHANNEL = "канал"
UTILITY_SPECIFIC = "код утилиты"
MANUFACTURER_SPECIFIC = "код производителя"
RESERVED = ... | PypiClean |
/Nuitka-1.8.tar.gz/Nuitka-1.8/nuitka/build/inline_copy/lib/scons-4.3.0/SCons/Warnings.py | import sys
import SCons.Errors
class SConsWarning(SCons.Errors.UserError):
pass
class WarningOnByDefault(SConsWarning):
pass
# NOTE: If you add a new warning class, add it to the man page, too!
# Not all warnings are defined here, some are defined in the location of use
class TargetNotBuiltWarning(SConsW... | PypiClean |
/EasyAIScaffolding-1.0.0.tar.gz/EasyAIScaffolding-1.0.0/EasyAI/TextClassifier/transformer/bert_classifer.py |
import argparse
import json
import os
import numpy as np
import torch
from loguru import logger
from sklearn.model_selection import train_test_split
from EasyAI.TextClassifier.base_classifier import ClassifierABC, load_data
from EasyAI.TextClassifier.data_helper import set_seed
from EasyAI.TextClassifier.transformer.... | PypiClean |
/BioSAK-1.72.0.tar.gz/BioSAK-1.72.0/My_Python_scripts/04_get_color_list.py | import math
import random
import seaborn as sns
def get_color_list(color_num):
if color_num <= 8:
color_list_combined = ['#3787c0', '#39399f', '#ffb939', '#399f39', '#9f399f', '#fb694a', '#9f9f39', '#959595']
elif 8 < color_num <= 16:
color_list_combined = ['#2b7bba', '#89bedc', '#2e2e99', '... | PypiClean |
/DeepXDE-1.9.3-py3-none-any.whl/deepxde/data/quadruple.py | from .data import Data
from .sampler import BatchSampler
class Quadruple(Data):
"""Dataset with each data point as a quadruple.
The couple of the first three elements are the input, and the fourth element is the
output. This dataset can be used with the network ``MIONet`` for operator
learning.
... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/bootstrap/site/content/docs/5.0/forms/checks-radios.md | ---
layout: docs
title: Checks and radios
description: Create consistent cross-browser and cross-device checkboxes and radios with our completely rewritten checks component.
group: forms
aliases: "/docs/5.0/forms/checks/"
toc: true
---
## Approach
Browser default checkboxes and radios are replaced with the help of `.... | PypiClean |
/GeoNode-3.2.0-py3-none-any.whl/geonode/static/geonode/js/ol-2.13/lib/OpenLayers/Lang/gl.js | * @requires OpenLayers/Lang.js
*/
/**
* Namespace: OpenLayers.Lang["gl"]
* Dictionary for Galego. Keys for entries are used in calls to
* <OpenLayers.Lang.translate>. Entry bodies are normal strings or
* strings formatted for use with <OpenLayers.String.format> calls.
*/
OpenLayers.Lang["gl"] = OpenLa... | PypiClean |
/NeuroTorch-0.0.1b2.tar.gz/NeuroTorch-0.0.1b2/src/neurotorch/transforms/spikes_auto_encoder.py | from typing import Union, Dict, Any, Tuple, Type, Optional
import torch
from .spikes_decoders import MeanConv
from .spikes_encoders import SpikesEncoder
from ..modules.layers import SpyLIFLayer, LIFLayer, ALIFLayer
from ..modules.base import BaseModel
class SpikesAutoEncoder(BaseModel):
@staticmethod
def _defau... | PypiClean |
/NearPy-0.2.2.tar.gz/NearPy-0.2.2/nearpy/hashes/pcadiscretizedprojections.py |
# Copyright (c) 2013 Ole Krause-Sparmann
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish,... | PypiClean |
/Grafane-0.6.tar.gz/Grafane-0.6/grafane/client.py | import time
import pytz
from datetime import datetime
from .settings import INFLUXDB_SETTINGS, TESTING
from influxdb import InfluxDBClient
class MissingInfluxDBSettings(Exception):
def __init__(self, message, errors):
super(MissingInfluxDBSettings, self).__init__(message)
self.errors = errors
cl... | PypiClean |
/GrappyLfjv-0.0.21-py3-none-any.whl/grappy.py | from matplotlib.backend_bases import MouseButton
import matplotlib.pyplot as plt
import csv
def string_liste(string: str): #convertit string en lite
resultat = []
for u in string:
resultat.append(u)
return resultat
def liste_string(liste: list): #convertit liste en string
resultat = ""
... | PypiClean |
/CephQeSdk-1.0.0.tar.gz/CephQeSdk-1.0.0/src/RhcsQeSdk/core/cli/ceph/pool.py | import logging
import RhcsQeSdk.core.cli.fabfile as fabfile
from RhcsQeSdk.core.cli.ceph.application import Application
logger = logging.getLogger(__name__)
logger.setLevel(logging.DEBUG)
formatter = logging.Formatter(
"%(asctime)s - %(levelname)s - %(name)s:%(lineno)d - %(message)s"
)
stream_handler = logging.... | PypiClean |
/OERPLib_py3-0.8.6-py3-none-any.whl/oerplib/rpc/__init__.py | from oerplib.rpc import error, service, jsonrpclib
from oerplib.tools import v
# XML-RPC available URL
# '/xmlrpc' => 5.0, 6.0, 6.1, 7.0, 8.0 (legacy path)
# '/openerp/xmlrpc/1' => 6.1, 7.0
# '/xmlrpc/2' => 8.0
XML_RPC_PATHS = ['/xmlrpc', '/openerp/xmlrpc/1', '/xmlrpc/2']
class Connector(obje... | PypiClean |
/MVVLive-0.1.0.tar.gz/MVVLive-0.1.0/README.md | MVVLive
=======
This Python library is designed to fetch data about public transportation in Munich, Germany.
Available data consists of departure and serving line information for every stop in the MVV region, and also punctuality information for S-Bahn lines (S-Bahn München, DB).
The former departure and serving line... | PypiClean |
/AlignQC-2.0.5.tar.gz/AlignQC-2.0.5/alignqc/analyze.py | import argparse, os, inspect, sys, gzip
from subprocess import Popen, PIPE
from tempfile import mkdtemp, gettempdir
from shutil import rmtree
from distutils.spawn import find_executable
from seqtools.format.gtf import GTFFile
import prepare_all_data
import create_html
g_version = None
def main(args):
if not args.... | PypiClean |
/Lasagne-0.1.tar.gz/Lasagne-0.1/docs/user/layers.rst | Layers
======
The `lasagne.layers` module provides various classes representing the layers
of a neural network. All of them are subclasses of the
:class:`lasagne.layers.Layer` base class.
Creating a layer
----------------
A layer can be created as an instance of a `Layer` subclass. For example, a
dense layer can be... | PypiClean |
/FlaskBB-2.0.2.tar.gz/FlaskBB-2.0.2/flaskbb/fixtures/groups.py | from collections import OrderedDict
fixture = OrderedDict((
('Administrator', {
'description': 'The Administrator Group',
'admin': True,
'super_mod': False,
'mod': False,
'banned': False,
'guest': False,
'editpost': True,
'deletepost': True,
... | PypiClean |
/Brigadir-1.0.1.tar.gz/Brigadir-1.0.1/Brigada/pack_utils.py | import inspect
import types
from Brigada.constants import PRIMITIVES, COLLECTIONS
from types import FunctionType, BuiltinFunctionType, LambdaType, GetSetDescriptorType, MappingProxyType, \
MethodDescriptorType, WrapperDescriptorType
def is_function(obj):
return inspect.isfunction(obj) or inspect.ismethod(obj)... | PypiClean |
/DatabasePipe-2.2.1.tar.gz/DatabasePipe-2.2.1/databasepipe/helper/connection.py | import logging
from bn import AttributeDict
from databasepipe.helper import service_extensions
try:
from conversionkit import Conversion
except ImportError:
has_conversionkit = False
else:
has_conversionkit = True
log = logging.getLogger(__name__)
#
# Database
#
class PerRequestConnectionCursor(object):... | PypiClean |
/ANC08JUNE2020GEOG489L2-2.0.tar.gz/ANC08JUNE2020GEOG489L2-1.0/README.md | # Extract spatial features using a Graphical User Interface
This tool can extract spatial features using attribute parameters selected by the user.
## Step 1
Click the folder icons to select a base polygon shapefile and a point shapefile. The point shapefile will be your extracted feature.

## St... | PypiClean |
/Gletscher-0.0.1.tar.gz/Gletscher-0.0.1/gletscher/commands/search_catalog.py |
import os
import re
import time
from gletscher.aws import GlacierClient
from gletscher.catalog import Catalog
from gletscher.config import BackupConfiguration
from gletscher.index import Index
import logging
from gletscher import hex, crypto
logger = logging.getLogger(__name__)
def DownloadArchives(glacier_client, d... | PypiClean |
/LancasterAQ-1.0.0.tar.gz/LancasterAQ-1.0.0/README.md | # LancasterAQ Package
Python package developed for the Lancaster Air Quality project.
Included are tools to:
* Import the dataset
* Convert the dataset to different formats
## Installation Instructions
### PyPI Installation
```bash
$ pip install LancasterAQ
```
### Manual Installation
#### Local install
```bas... | PypiClean |
/LuaAutoDoc-0.9.1-py3-none-any.whl/lua_auto_doc/modules/lua_parser/lua_documentation_parser.py | import re
import os
from typing import Union
from hashlib import sha1
from lua_auto_doc.modules.lua_parser import doc_classes
import lua_auto_doc.modules.tools.config_handler as conf
from lua_auto_doc.modules.tools.progress_bar import ProgressBar
from lua_auto_doc.modules.lua_parser.doc_classes import DocLine, DocEntry... | PypiClean |
/2048_py-0.1.6-py3-none-any.whl/main.py |
logo = '''
___ ____ __ __ ____
|__ \ / __ \/ // / ( __ )
__/ // / / / // /_/ __ |
/ __// /_/ /__ __/ /_/ /
/____/\____/ /_/ \____/
'''
# Imports
import os
import sys
import random
import termcolor
#INDENTATION ------> TABS <----------
'''
TODO:
- Implement moves
- We have a r... | PypiClean |
/KD_Lib-0.0.32.tar.gz/KD_Lib-0.0.32/KD_Lib/models/resnet.py | import torch.nn as nn
import torch.nn.functional as F
class BasicBlock(nn.Module):
expansion = 1
def __init__(self, in_planes, planes, stride=1):
super(BasicBlock, self).__init__()
self.conv1 = nn.Conv2d(
in_planes, planes, kernel_size=3, stride=stride, padding=1, bias=False
... | PypiClean |
/Argonaut-0.3.4.tar.gz/Argonaut-0.3.4/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 |
/Ibidas-0.1.26.tar.gz/Ibidas-0.1.26/docs/index.rst | .. Ibidas documentation master file, created by
sphinx-quickstart on Mon Jan 17 11:09:37 2011.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
Welcome to Ibidas's documentation!
==================================
Contents:
.. toctree::
:maxd... | PypiClean |
/GSLab_Tools-1.1.1.tar.gz/GSLab_Tools-1.1.1/gslab_fill/textfill.py | import os, argparse, types, traceback
from HTMLParser import HTMLParser, HTMLParseError
def textfill(**kwargs):
try:
args = parse_arguments(kwargs)
text = parse_text(args)
insert_text(args, text)
exitmessage = args['template'] + ' filled successfully by textfill'
print exitm... | PypiClean |
/Imap-CLI-0.7.tar.gz/Imap-CLI-0.7/imap_cli/config.py | import codecs
import getpass
import itertools
import logging
import os
from six.moves import configparser
from imap_cli import const
app_name = os.path.splitext(os.path.basename(__file__))[0]
DEFAULT_CONFIG = {
u'hostname': u'imap.example.org',
u'username': u'username',
u'password': u'secret',
u'ssl... | PypiClean |
/FreeClimb-4.5.0-py3-none-any.whl/freeclimb/model/add_to_conference.py | import re # noqa: F401
import sys # noqa: F401
from freeclimb.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,
vali... | PypiClean |
/MergePythonSDK.ticketing-2.2.2-py3-none-any.whl/MergePythonSDK/accounting/api/vendor_credits_api.py | import re # noqa: F401
import sys # noqa: F401
from MergePythonSDK.shared.api_client import ApiClient, Endpoint as _Endpoint
from MergePythonSDK.shared.model_utils import ( # noqa: F401
check_allowed_values,
check_validations,
date,
datetime,
file_type,
none_type,
validate_and_convert_ty... | PypiClean |
/Mongothon-0.8.0.tar.gz/Mongothon-0.8.0/mongothon/__init__.py | import inspect
from inflection import camelize
from document import Document
from model import Model, NotFoundException
from schema import Schema
from schemer import Mixed, ValidationException, Array
def _module_name_from_previous_frame(num_frames_back):
"""
Returns the module name associated with a frame `nu... | PypiClean |
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/Model/Vocabulary/Types/AbstractType.py |
#+---------------------------------------------------------------------------+
#| 01001110 01100101 01110100 01111010 01101111 01100010 |
#| |
#| Netzob : Inferring communication protocols |
#+-... | PypiClean |
/Foundations-2.1.0.tar.gz/Foundations-2.1.0/utilities/sanitizer.py | #**********************************************************************************************************************
#*** Future imports.
#**********************************************************************************************************************
from __future__ import unicode_literals
#*****************... | PypiClean |
/Dyko-0.2.tar.gz/Dyko-0.2/kalamar/access_point/__init__.py | import abc
import datetime
import decimal
import uuid
from ..item import Item, ItemWrapper, ItemStub
from ..request import And, Condition
DEFAULT_PARAMETER = object()
class NotOneMatchingItem(Exception):
"""Not one object has been returned."""
value = __doc__
class MultipleMatchingItems(NotOneMatchingIte... | PypiClean |
/HalRing_Lib-1.1.0-py3-none-any.whl/halring/mysql/mysql_util.py | import pymysql
import os
import sys
nga_root = os.path.abspath(__file__).split("halring")[0]
if nga_root not in sys.path:
sys.path.append(nga_root)
from loguru import logger
from windows.halring_os import OsUtil
class MySqlUtil:
"""
MySQL Server
Author: xqzhou
"""
_connection = None
def ... | PypiClean |
/My_Server_Student-0.0.1.tar.gz/My_Server_Student-0.0.1/server/server/core.py |
from threading import Thread
from logging import getLogger
from select import select
from socket import socket, AF_INET, SOCK_STREAM
from json import JSONDecodeError
from hmac import compare_digest, new
from binascii import hexlify, a2b_base64
from os import urandom
import sys
from system.metaclasses import ServerMak... | PypiClean |
/Gooey-1.2.0a0.tar.gz/Gooey-1.2.0a0/gooey/examples/a_time_remaining.py | from random import random
from typing import List
from gooey import Gooey, GooeyParser, constants, Events
import os
from gooey.python_bindings.types import PublicGooeyState
from gooey.python_bindings.types import FormField
save_dir = os.path.join(os.path.dirname(__file__), 'saves')
def grab_latest(args, state: Pub... | PypiClean |
/Acolyte-0.0.1.tar.gz/Acolyte-0.0.1/acolyte/testing/core/flow_service.py | from acolyte.core.service import Result
from acolyte.testing import EasemobFlowTestCase
from acolyte.core.storage.flow_template import FlowTemplateDAO
class FlowServiceTestCase(EasemobFlowTestCase):
def setUp(self):
self.flow_service = self._("FlowService")
self.flow_meta_mgr = self._("flow_meta_... | PypiClean |
/Marmir-0.1.3.tar.gz/Marmir-0.1.3/mm/model_base.py | import logging
from datetime import datetime
import inspect
import sys
from types import NoneType
from lib.font_data.decorators import memoized
log = logging.getLogger(__name__)
class BaseFieldType(object):
def __init__(self, data):
self.data = data
def __repr__(self):
return unicode(self)
... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/node_modules/@mapbox/node-pre-gyp/lib/main.js | 'use strict';
/**
* Set the title.
*/
process.title = 'node-pre-gyp';
const node_pre_gyp = require('../');
const log = require('npmlog');
/**
* Process and execute the selected commands.
*/
const prog = new node_pre_gyp.Run({ argv: process.argv });
let completed = false;
if (prog.todo.length === 0) {
if (~p... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.