id stringlengths 1 265 | text stringlengths 6 5.19M | dataset_id stringclasses 7
values |
|---|---|---|
/BubbleDet-1.0.0.tar.gz/BubbleDet-1.0.0/docs/source/intro.rst | ======================================
Introduction
======================================
Consider a scalar field :math:`\phi` in :math:`d` dimensions, with Euclidean
action
.. math::
S = \int \mathup{d}^d x \left[
\frac{1}{2}\nabla_\mu \phi \nabla_\mu \phi + V(\phi)
\right] .
If the potential :math:`V`... | PypiClean |
/ModiPy-1.2.2.tar.gz/ModiPy-1.2.2/lib/modipy/iterator.py | import csv
import logging
log = logging.getLogger('modipy')
from twisted.enterprise import adbapi
from twisted.internet import defer
from namespace import create_namespace
class Iterator:
"""
A ModiPy Iterator contains a series of Namespaces that
are iterated over one by one for use in variable substitu... | PypiClean |
/Automated%20Lazy%20Unit%20Testing%20in%20Python-1.0.0.tar.gz/Automated Lazy Unit Testing in Python-1.0.0/fyp/mypkg/generator.py |
import __builtin__
import os
import sys
import time
import re
import dis
import types
import py
import inspect
import byteplay
import random
import tracer
import trace
import opcode as op
import uuid
import tracer
import gc
import multiprocessing
import logging
import numbers
import jsonpickle
import copy
import setti... | PypiClean |
/NREL_shift-0.1.0a0-py3-none-any.whl/shift/graph.py |
# 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 notice, this
# list of conditions and the following disclaimer.
# 2. Redist... | PypiClean |
/MLMath-0.0.0rc1.tar.gz/MLMath-0.0.0rc1/mlm/math/backend/_dtype.py | import numpy as np
import sys
class DType:
"""
Instances of `DType` represent the kind and size of data elements.
The data type of a `Tensor` can be obtained via `mlm.math.Tensor.dtype`.
The following kinds of data types are supported:
* `float` with 32 / 64 bits
* `complex` with 64 / 128 bi... | PypiClean |
/ExtensibleCalendar-0.0.2.tar.gz/ExtensibleCalendar-0.0.2/src/extensible_calendar/base_calendar/constants.py | from __future__ import absolute_import, unicode_literals
import datetime
from enum import Enum
class Holiday(Enum):
def __new__(cls, english, chinese, days):
obj = object.__new__(cls)
obj._value_ = chinese
obj.english = english
obj.days = days
return obj
new_years_day... | PypiClean |
/Newsroom-1.0-py3-none-any.whl/newsroom/static/dist/companies_js.b5338013ccf073c0065a.js | webpackJsonp([4],{
/***/ 106:
/***/ (function(module, exports, __webpack_require__) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; desc... | PypiClean |
/OctoBot-Commons-1.9.18.tar.gz/OctoBot-Commons-1.9.18/octobot_commons/symbols/symbol.py | import re
import functools
import octobot_commons
# pylint: disable=R0902
class Symbol:
FULL_SYMBOL_GROUPS_REGEX = r"([^//]*)\/([^:]*):?([^-]*)-?([^-]*)-?([^-]*)-?([^-]*)"
# base / quote : settlement-identifier-strike price-type
# Inspired from CCXT https://docs.ccxt.com/en... | PypiClean |
/CCC-2.0.1.tar.gz/CCC-2.0.1/ccc/static/crm/js/marketing/campaigns/numbers.js | const CampaignNumbers = new Vue({
el: '#campaignNumbers',
delimiters: ["[[", "]]"],
data: {
check: {
number: '',
num_type: 'toll_free',
country: 'US'
},
campaign_numbers: {
next: null,
previous: null,
count: 0,
... | PypiClean |
/EOxServer-1.2.12-py3-none-any.whl/eoxserver/services/ows/config.py |
DEFAULT_EOXS_OWS_SERVICE_HANDLERS = [
'eoxserver.services.ows.wcs.v10.handlers.GetCapabilitiesHandler',
'eoxserver.services.ows.wcs.v10.handlers.DescribeCoverageHandler',
'eoxserver.services.ows.wcs.v10.handlers.GetCoverageHandler',
'eoxserver.services.ows.wcs.v11.handlers.GetCapabilitiesHandler',
... | PypiClean |
/BioSAK-1.72.0.tar.gz/BioSAK-1.72.0/My_Python_scripts/TCG/get_db.py | import os
import glob
import shutil
import argparse
from Bio import SeqIO
from Bio.Seq import Seq
from Bio.Alphabet import IUPAC
from Bio.SeqRecord import SeqRecord
def export_dna_record(gene_seq, gene_id, gene_description, output_handle):
seq_object = Seq(gene_seq, IUPAC.unambiguous_dna)
seq_record = SeqReco... | PypiClean |
/Flask-Common-0.3.0.tar.gz/Flask-Common-0.3.0/README.md | # flask-common
A Flask extension with lots of common time-savers (file-serving, favicons, etc).
An example app:
```python
import time
from flask import Flask
from flask_common import Common
app = Flask(__name__)
app.debug = True
common = Common(app)
@app.route("/")
@common.cache.cached(timeout=50)
def hello():
... | PypiClean |
/DragonPyEmulator-0.9.0-py3-none-any.whl/basic_editor/scrolled_text.py | import logging
import tkinter
log = logging.getLogger(__name__)
class ScrolledText(tkinter.Text):
def __init__(self, master=None, **kw):
frame = tkinter.Frame(master)
frame.rowconfigure(0, weight=1)
frame.columnconfigure(0, weight=1)
xscrollbar = tkinter.Scrollbar(frame, orient=... | PypiClean |
/DiscordPyExt-0.0.3-py3-none-any.whl/discordPyExt/components/text.py | from collections import OrderedDict
import datetime
from functools import cached_property
import typing
from pydantic import BaseModel, Field, validator
from pydantic.main import ModelMetaclass
from enum import Enum
from discord.ext import commands
import discord
class TextMappingTypes(Enum):
BOLD = "**{text... | PypiClean |
/Flask-NSQ-0.1.0.tar.gz/Flask-NSQ-0.1.0/CONTRIBUTING.rst | ============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.
You can contribute in many ways:
Types of Contributions
----------------------
Report Bugs
~~~~~~~~~~~
Report bugs at https://github.com/nikhilkalige/flask-ns... | PypiClean |
/Caboodle-1.0.2.tar.gz/Caboodle-1.0.2/docs/wiki/Home.md | Caboodle Wiki
=============
Caboodle is a Python module for web browsing, web scraping or web automation
developed to provide an all-in-one (kit and caboodle) utility for anything the
web has to offer.
> [kuh-bood-l] **noun**, *Informal*
>
> 1. the lot, pack, or crowd
Install
-------
pip install caboodle
What's N... | PypiClean |
/BRAILS-3.0.1.tar.gz/BRAILS-3.0.1/brails/InventoryGenerator.py |
import random
import sys
import pandas as pd
from shapely.geometry import Polygon
#import os
#import shutil
#import brails.models as models
from brails.modules import (ChimneyDetector, FacadeParser, GarageDetector,
NFloorDetector, PytorchRoofClassifier,
Pytorc... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/node_modules/bower/packages/bower-logger/README.md | # bower-logger
The logger used in the various architecture components of Bower.
Install
```sh
npm install --save bower-logger
```
## Usage
### .error(id, message, data)
Alias to `.log('error', id, message, data)`
### .conflict(id, message, data)
Alias to `.log('conflict', id, message, data)`
### .warn(id, m... | PypiClean |
/DTMC/spatialModel/Hub/HubSEIRS.py | import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
from .HubSEIR import HubSEIR
class HubSEIRS(HubSEIR):
"""
Object that represents the Hub Model SEIRS. In this model, E is assumed to not be
able to spread the virus.
Parameters
----------
S0: int
Initial amoun... | PypiClean |
/FlyBaseDownloads-1.0.6.tar.gz/FlyBaseDownloads-1.0.6/README.md |
# FlyBaseDownloads
Python package to facilitate the data download from FlyBase. Most of the available data from their official wiki can be downloaded. One of the purposes of this library is to organize the data as closely as possible to the source, **FlyBase**. Despite not being the official package, it is organized ... | PypiClean |
/MGP_SDK-1.1.1.tar.gz/MGP_SDK-1.1.1/src/MGP_SDK/basemap_service/interface.py | from MGP_SDK.basemap_service.basemaps import Basemaps
from MGP_SDK.OGC_Spec.interface import OgcInterface
class Interface:
def __init__(self, auth):
self.auth = auth
self.basemaps = Basemaps(self.auth)
self.ogc = OgcInterface(self.auth, 'basemaps')
def get_available_basemaps(self):
... | PypiClean |
/EdaSpiffWorkflow-0.0.2.tar.gz/EdaSpiffWorkflow-0.0.2/EdaSpiffWorkflow_Aadesh_G/bpmn/parser/task_parsers.py |
import copy
import os
from lxml import etree
from .ValidationException import ValidationException
from .TaskParser import TaskParser
from ..workflow import BpmnWorkflow
from .util import first, one, DEFAULT_NSMAP
from ..specs.events import (TimerEventDefinition, MessageEventDefinition,
Es... | PypiClean |
/DjangoDjangoAppCenter-0.0.11-py3-none-any.whl/AppCenter/simpleui/static/admin/js/admin/RelatedObjectLookups.js |
(function ($) {
'use strict';
// IE doesn't accept periods or dashes in the window name, but the element IDs
// we use to generate popup window names may contain them, therefore we map them
// to allowed characters in a reversible way so that we can locate the correct
// element when the popup win... | PypiClean |
/Flask-Composer-0.4.1.zip/Flask-Composer-0.4.1/flask_composer/__init__.py | from flask import Request
from flask.ext.composer.adapters import RenderingAdapter
import os
import json
__author__ = 'Denis Itskovich'
class TemplatePathLookup:
def __init__(self, dirs, parent=None):
self.dirs = [self._combine_path(d) for d in dirs]
self.template_cache = {}
self.parent ... | PypiClean |
/NREL-jade-0.9.9.tar.gz/NREL-jade-0.9.9/jade/cli/show_events.py | import logging
import sys
import click
from jade.common import OUTPUT_DIR
from jade.loggers import setup_logging
from jade.events import EventsSummary
@click.argument("names", nargs=-1)
@click.option("-o", "--output", default=OUTPUT_DIR, show_default=True, help="Output directory.")
@click.option(
"-c",
"--c... | PypiClean |
/Level_Up_RPG-1-py3-none-any.whl/Level_Up_RPG/level_up_rpg.py | import sys
import random
sys.modules['_decimal'] = None
import decimal
from decimal import *
from decimal import Decimal
getcontext().Emin = -10 ** 10000
getcontext().Emax = 10 ** 10000
getcontext().traps[Overflow] = 0
getcontext().traps[Underflow] = 0
getcontext().traps[DivisionByZero] = 0
getcontext().traps[InvalidO... | PypiClean |
/BuddyNS-2.0.2.tar.gz/BuddyNS-2.0.2/README.md | # buddyns-python
A python client library to easily consume [BuddyNS](https://www.buddyns.com)'s [API](https://www.buddyns.com/support/api/v2/).
# Installation and compatibility
Simply install the library from PyPI:
pip install buddyns
The library supports **Python 2.7+ and 3+** natively.
# Quick start
fr... | PypiClean |
/Flask-MDEditor-0.1.4.tar.gz/Flask-MDEditor-0.1.4/flask_mdeditor/static/mdeditor/js/lib/codemirror/mode/commonlisp/commonlisp.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use s... | PypiClean |
/IdracRedfishSupport-0.0.8.tar.gz/IdracRedfishSupport-0.0.8/GetIdracLcLogsREDFISH.py |
import argparse
import getpass
import json
import logging
import os
import re
import requests
import sys
import time
import warnings
from pprint import pprint
from datetime import datetime
warnings.filterwarnings("ignore")
parser = argparse.ArgumentParser(description="Python script using Redfish API to get iDRAC Li... | PypiClean |
/ImSwitchUC2-2.1.0.tar.gz/ImSwitchUC2-2.1.0/imswitch/imcontrol/model/managers/DetectorsManager.py | from time import sleep
import numpy as np
from imswitch.imcommon.framework import Mutex, Signal, SignalInterface, Thread, Timer, Worker
from .MultiManager import MultiManager
class DetectorsManager(MultiManager, SignalInterface):
""" DetectorsManager is an interface for dealing with DetectorManagers. It
is ... | PypiClean |
/FreePyBX-1.0-RC1.tar.gz/FreePyBX-1.0-RC1/freepybx/public/js/dojox/editor/plugins/nls/sv/latinEntities.js | define(
"dojox/editor/plugins/nls/sv/latinEntities", //begin v1.x content
({
/* These are already handled in the default RTE
amp:"ampersand",lt:"less-than sign",
gt:"greater-than sign",
nbsp:"no-break space\nnon-breaking space",
quot:"quote",
*/
iexcl:"omvänt utropstecken",
cent:"centtecken",
pound:"pundte... | PypiClean |
/BaseExtensions-1.2.6.tar.gz/BaseExtensions-1.2.6/.github/ISSUE_TEMPLATE/feature_request.md | ---
name: Feature request
about: Suggest an idea for this project
title: "[Enhancement] "
labels: Enhancement
---
## Summary
<!--
Please provide a brief summary of your proposal. Two to three sentences is best here.
-->
## API Changes
<!--
Include a list of all API changes, additions, subtractions as would be r... | PypiClean |
/E_Sic-2020.2.15.tar.gz/E_Sic-2020.2.15/E_Sic/pedidos_respostas/search.py | import asyncio, aiohttp, atexit, aiofile, re, os, typing, glob, zipfile
from bs4 import BeautifulSoup
from E_Sic.pedidos_respostas.exceptions import InvalidYear
from E_Sic.pedidos_respostas.conts import _ENCODING_, _URL_, _SELECT_FORMAT_, _SELECT_YEAR_, _MIN_YEAR
class BuscarPedidosRespostas:
"""
Class used ... | PypiClean |
/NiceLib-0.7.1.zip/NiceLib-0.7.1/nicelib/nicelib.py | from __future__ import division, absolute_import, with_statement, print_function, unicode_literals
from builtins import str, zip
from past.builtins import basestring
from future.utils import PY2, with_metaclass
import re
import sys
import warnings
import logging
from inspect import isfunction
from collections import ... | PypiClean |
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/tools/benchmark.py | from __future__ import print_function
benchmark_version = '1'
import os
import sys
import json
import kivy
import gc
from time import clock, time, ctime
from random import randint
from kivy.uix.label import Label
from kivy.uix.button import Button
from kivy.uix.widget import Widget
from kivy.graphics import RenderCo... | PypiClean |
/IdracRedfishSupportTest-0.0.7.tar.gz/IdracRedfishSupportTest-0.0.7/SecureBootCertificatesDbxREDFISH.py |
import argparse
import getpass
import json
import logging
import os
import re
import requests
import shutil
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 wit... | PypiClean |
/LinkChecker-10.2.1-py3-none-any.whl/linkcheck/logger/html.py | import html
import os
import time
from . import _Logger
from .. import strformat, configuration
# ss=1 enables show source
validate_html = "https://validator.w3.org/check?ss=1&uri=%(uri)s"
# options are the default
validate_css = (
"https://jigsaw.w3.org/css-validator/validator?"
"uri=%(uri)s&warning... | PypiClean |
/AstroCabTools-1.5.1.tar.gz/AstroCabTools-1.5.1/astrocabtools/cube_ans/src/viewers/ellipseCreation.py | import numpy as np
import math
import sys
import traceback
from PyQt5.QtWidgets import *
from PyQt5.QtCore import Qt, pyqtSlot
from PyQt5 import QtGui
from pubsub import pub
import astrocabtools.cube_ans.src.ui.ui_ellipseCreation
__all__=["EllipseCreation"]
class EllipseCreation(QDialog, astrocabtools.cube_ans.sr... | PypiClean |
/OASYS1-ShadowOui-1.5.210.tar.gz/OASYS1-ShadowOui-1.5.210/orangecontrib/shadow/widgets/special_elements/ow_conic_coefficients_refractor.py | import sys
from orangewidget import gui
from PyQt5.QtWidgets import QApplication
from orangecontrib.shadow.widgets.gui import ow_conic_coefficients_element, ow_optical_element
from orangecontrib.shadow.util import ShadowOpticalElement, ShadowBeam, ShadowPreProcessorData
class ConicCoefficientsRefractor(ow_conic_coeff... | PypiClean |
/DESPOTIC-2.1.tar.gz/DESPOTIC-2.1/despotic/composition.py |
import numpy as np
from .despoticError import despoticError
# Physical constants describing H2
thetaRot = 85.3 # Rotation constant in K
thetaVib = 5984. # Vibrational constant in K
class composition(object):
"""
A class describing the chemical composition of the dominant
components (hydrogen, helium... | PypiClean |
/MetaCalls-0.0.5-cp310-cp310-manylinux2014_x86_64.whl/metacalls/types/input_stream/capture_av_device_desktop.py | from ...ffprobe import FFprobe
from ...media_devices.device_info import DeviceInfo
from ...media_devices.screen_info import ScreenInfo
from .audio_parameters import AudioParameters
from .input_stream import InputAudioStream
from .input_stream import InputStream
from .input_stream import InputVideoStream
from .video_par... | PypiClean |
/CmlArabicReaderThird-0.1-py3-none-any.whl/ThirdcamelArabicReader/camel_tools/morphology/generator.py |
# MIT License
#
# Copyright 2018-2021 New York University Abu Dhabi
#
# 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, c... | PypiClean |
/Khayyam-3.0.17-cp27-cp27m-macosx_10_11_x86_64.whl/khayyam/formatting/formatters.py | import re
from khayyam.formatting import constants as consts
from .directives import DATE_FORMAT_DIRECTIVES
__author__ = 'vahid'
class BaseFormatter(object):
pass
class JalaliDateFormatter(BaseFormatter):
"""
Responsible to parse and formatting of a :py:class:`khayyam.JalaliDate` instance.
"""
... | PypiClean |
/Cuckoo-2.0.7a1.tar.gz/Cuckoo-2.0.7a1/cuckoo/data/analyzer/darwin/lib/api/screenshot.py |
import math
try:
import ImageChops
import ImageGrab
import ImageDraw
HAVE_PIL = True
except:
try:
from PIL import ImageChops
from PIL import ImageGrab
from PIL import ImageDraw
HAVE_PIL = True
except:
HAVE_PIL = False
class Screenshot:
"""Get screen... | PypiClean |
/AQoPA-0.9.5.tar.gz/AQoPA-0.9.5/aqopa/model/parser/lex_yacc/grammar/functions.py | from aqopa.model.parser.lex_yacc import LexYaccParserExtension
from aqopa.model import Function
class Builder():
"""
Builder for creating function objects
"""
def build_function(self, token):
"""
FUN IDENTIFIER function_params SEMICOLON
FUN IDENTIFIER function_par... | PypiClean |
/Microsoft-AI-Azure-Utility-Samples-0.3.7.tar.gz/Microsoft-AI-Azure-Utility-Samples-0.3.7/azureml_tools/subscription.py |
import json
import logging
import os
import subprocess
import sys
from azure.common.client_factory import get_client_from_cli_profile
from azure.common.credentials import get_cli_profile
from azure.mgmt.resource import SubscriptionClient
from prompt_toolkit import prompt
from tabulate import tabulate
from toolz impor... | PypiClean |
/CryptoDataHub-0.10.0.tar.gz/CryptoDataHub-0.10.0/cryptodatahub/common/entity.py |
import enum
import attr
from cryptodatahub.common.types import CryptoDataEnumBase, CryptoDataParamsNamed, convert_enum, convert_iterable
class EntityType(enum.Enum):
FOR_PROFIT_ORG = 'for-profit organization'
GOV_ORG = 'governmental organization'
NONPROFIT_ORG = 'nonprofit organization'
NOT_FOR_PRO... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_internal/req/__init__.py | from __future__ import absolute_import
import logging
from .req_install import InstallRequirement
from .req_set import RequirementSet
from .req_file import parse_requirements
from pip._internal.utils.logging import indent_log
from pip._internal.utils.typing import MYPY_CHECK_RUNNING
if MYPY_CHECK_RUNNING:
from t... | PypiClean |
/MezzanineFor1.7-3.1.10.tar.gz/MezzanineFor1.7-3.1.10/mezzanine/pages/migrations/south/0007_auto__chg_field_page_slug__chg_field_page_title.py | import datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models
class Migration(SchemaMigration):
def forwards(self, orm):
# Changing field 'Page.slug'
db.alter_column('pages_page', 'slug', self.gf('django.db.models.fields.CharField')(max_length=2000, nul... | PypiClean |
/Electrum-CHI-3.3.8.tar.gz/Electrum-CHI-3.3.8/packages/pip/_vendor/chardet/charsetprober.py |
import logging
import re
from .enums import ProbingState
class CharSetProber(object):
SHORTCUT_THRESHOLD = 0.95
def __init__(self, lang_filter=None):
self._state = None
self.lang_filter = lang_filter
self.logger = logging.getLogger(__name__)
def reset(self):
self._stat... | PypiClean |
/CellDetection-0.4.3-py3-none-any.whl/celldetection/models/convnext.py | from torchvision.models.convnext import CNBlockConfig
from torchvision.models import convnext as cnx
from typing import List, Optional, Callable, Sequence
import torch
from torch import Tensor, nn
import torch.nn.functional as F
from functools import partial
from torchvision.ops import misc, Permute
from torchvision.op... | PypiClean |
/Distribution_Waed-0.1.tar.gz/Distribution_Waed-0.1/Distribution_Waed/Binomialdistribution.py | import math
import matplotlib.pyplot as plt
from .Generaldistribution import Distribution
class Binomial(Distribution):
""" Binomial distribution class for calculating and
visualizing a Binomial distribution.
Attributes:
mean (float) representing the mean value of the distribution
std... | PypiClean |
/Kivy-2.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/kivy/core/camera/camera_picamera.py |
__all__ = ('CameraPiCamera', )
from math import ceil
from kivy.logger import Logger
from kivy.clock import Clock
from kivy.graphics.texture import Texture
from kivy.core.camera import CameraBase
from picamera import PiCamera
import numpy
class CameraPiCamera(CameraBase):
'''Implementation of CameraBase using ... | PypiClean |
/Auptimizer-2.0.tar.gz/Auptimizer-2.0/src/aup/compression/torch/pruning/amc/lib/utils.py |
import os
import torch
class TextLogger(object):
"""Write log immediately to the disk"""
def __init__(self, filepath):
self.f = open(filepath, 'w')
self.fid = self.f.fileno()
self.filepath = filepath
def close(self):
self.f.close()
def write(self, content):
se... | PypiClean |
/GeneralSQL-1.0.9.tar.gz/GeneralSQL-1.0.9/README.md | # General SQL
Sql 生成器工具
通用格式 处理不同数据库的数据 可根据 Template(模板) 进行自定义扩展
可参考 db/Jmysql.py
已支持数据库
- mysql 安装 `pip install mysql-connector`
## 使用示例
- [mysql, mariadb](https://github.com/joker-zzp/GeneralSQL/blob/master/doc/mysql.md)
## 各种方法详细使用设计
*`GeneralSQL`* 中目前有2种主要对象
- *`SeniorDB`* 数据库对象
- *`set_conf()`* 设置数据库... | PypiClean |
/IOT3ApiClient-1.0.0.tar.gz/IOT3ApiClient-1.0.0/urllib3/util/retry.py | from __future__ import absolute_import
import email
import logging
import re
import time
import warnings
from collections import namedtuple
from itertools import takewhile
from ..exceptions import (
ConnectTimeoutError,
InvalidHeader,
MaxRetryError,
ProtocolError,
ProxyError,
ReadTimeoutError,... | PypiClean |
/GalSim-2.4.11-cp37-cp37m-manylinux_2_17_i686.manylinux2014_i686.whl/galsim/config/value_random.py | from .util import GetRNG
from .value import GetAllParams, CheckAllParams, RegisterValueType
from ..errors import GalSimConfigError, GalSimConfigValueError
from ..random import UniformDeviate, GaussianDeviate, PoissonDeviate, BinomialDeviate
from ..random import WeibullDeviate, GammaDeviate, Chi2Deviate, DistDeviate
fro... | PypiClean |
/DeepGMAP-0.2.0.tar.gz/DeepGMAP-0.2.0/deepgmap/network_constructors/danq3.py | import functools
import tensorflow as tf
import math
import sys
from tensorflow.contrib import rnn
_ac=il.import_module("deepgmap.network_constructors.auc_calc")
ac=_ac.auc_pr
from tensorflow.contrib import grid_rnn
def doublewrap(function):
"""
A decorator decorator, allowing to use the decorator to be used ... | PypiClean |
/FamcyDev-0.3.71-py3-none-any.whl/Famcy/bower_components/jquery/src/deprecated.js | define( [
"./core",
"./core/nodeName",
"./core/camelCase",
"./core/toType",
"./var/isFunction",
"./var/isWindow",
"./var/slice",
"./deprecated/ajax-event-alias",
"./deprecated/event"
], function( jQuery, nodeName, camelCase, toType, isFunction, isWindow, slice ) {
"use strict";
// Support: Android <=4.0 onl... | PypiClean |
/MOM-Tapyr-1.6.2.tar.gz/MOM-Tapyr-1.6.2/_Attr/Date_Time_Delta.py |
from __future__ import unicode_literals
from _CAL import CAL
from _MOM.import_MOM import *
from _MOM.import_MOM import _A_Float_, _A_String_
from _TFL.I18N import _
from _TFL.pyk import pyk
import _CAL.Delta
import datetime
_Ancestor_Es... | PypiClean |
/FitBenchmarking-1.0.0.tar.gz/FitBenchmarking-1.0.0/docs/README.md | This folder includes images etc. used in the main FitBenchmarking [README](../README.md). Other documentation can also be found on the FitBenchmarking [Wiki](https://github.com/fitbenchmarking/fitbenchmarking/wiki).
Furthermore, sphinx documentation is being setup within the source folder and which can be build with M... | PypiClean |
/Cartopy-0.22.0-cp310-cp310-macosx_11_0_arm64.whl/cartopy/util.py | import numpy as np
import numpy.ma as ma
def add_cyclic_point(data, coord=None, axis=-1):
"""
Add a cyclic point to an array and optionally a corresponding
coordinate.
Parameters
----------
data
An n-dimensional array of data to add a cyclic point to.
coord : optional
A 1-... | PypiClean |
/Distribution_1_3-0.2.1.tar.gz/Distribution_1_3-0.2.1/Distribution/gaussian.py | from math import sqrt, pi, e
import matplotlib.pyplot as plt
import numpy as np
class Gaussian:
"""
This class will be used to calculate different parameter associated with the gaussian distribution
:param data: The continuous distribution (list or n.array) .
salary (float)
"""
def __init__... | PypiClean |
/DataGlitch-0.0.2.tar.gz/DataGlitch-0.0.2/README.md | # DataGlitch: _A Python Toolkit for Messy Data_
DataGlitch is a Python package designed to address common data challenges in a pandas DataFrame, including handling mixed data types, non-ASCII values, and facilitating dataset exploration.
```
pip install DataGlitch
```
<br>
## Usage
DataGlitch currently offers thre... | PypiClean |
/GrTiPy-0.1.0.tar.gz/GrTiPy-0.1.0/docs/B-D equation with Cosmological .ipynb | ```
from GrTiPy import *
init_printing()
d=4
t, r, theta, phi,n= symbols('t r theta phi n')
u=np.array([t, r, theta, phi])
R = Function('R')(t)
g00 = 1
g11 = -R**2
g22 = -R**2*r**2
g33 = -R**2*r**2*sin(theta)**2
g=np.array([[g00,0,0,0],[0,g11,0,0],\
[0,0,g22,0],[0,0,0,g33]])
gin=inverse_metric(g)
g
... | PypiClean |
/OASYS1-WOFRY-1.0.41.tar.gz/OASYS1-WOFRY-1.0.41/orangecontrib/wofry/widgets/tools/ow_wavefront_file_reader.py |
import os
import h5py
from PyQt5.QtWidgets import QMessageBox
try:
from silx.gui.dialog.DataFileDialog import DataFileDialog
except:
print("Fail to import silx.gui.dialog.DataFileDialog: need silx >= 0.7")
from orangewidget import gui,widget
from orangewidget.settings import Setting
from oasys.widgets import... | PypiClean |
/cortanaanalytics-0.0.4.zip/cortanaanalytics-0.0.4/cortanaanalytics/anomalydetection.py | #-------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation
# All rights reserved.
#
# Distributed under the terms of the MIT License
#-------------------------------------------------------------------------
import requests
from collections import namedtuple
fro... | PypiClean |
/73.unlockItems-0.3.tar.gz/73.unlockItems-0.3/73/unlockItems/browser/images/README.txt | README for the 'browser/images/' directory
==========================================
This folder is a Zope 3 Resource Directory acting as a repository for images.
Its declaration is located in 'browser/configure.zcml':
<!-- Resource directory for images -->
<browser:resourceDirectory
name="73.unlock... | PypiClean |
/Flask-Meld-0.13.1.tar.gz/Flask-Meld-0.13.1/flask_meld/cli.py | import os
import secrets
from pathlib import Path
from flask.cli import with_appcontext
from flask import current_app
import click
from flask_meld.templates import (
base_html_template,
config_template,
components,
components_template,
env_template,
index_html_template,
init_template,
... | PypiClean |
/Mezzanine-6.0.0.tar.gz/Mezzanine-6.0.0/mezzanine/forms/fields.py | from django import forms
from django.core.exceptions import ImproperlyConfigured
from django.forms.widgets import SelectDateWidget
from django.utils.translation import gettext_lazy as _
from mezzanine.conf import settings
from mezzanine.core.forms import SplitSelectDateTimeWidget
from mezzanine.utils.importing import ... | PypiClean |
/FrAG-1.1.0.tar.gz/FrAG-1.1.0/frag_pele/AdaptivePELE_repo/AdaptivePELE/runAllTests.py | from __future__ import absolute_import, division, print_function, unicode_literals
import unittest
import argparse
from AdaptivePELE.tests import testSpawning as tSpawning
from AdaptivePELE.tests import testAtomset as tAtomset
from AdaptivePELE.tests import testClustering as tClustering
from AdaptivePELE.tests import t... | PypiClean |
/Flask-Velox-2014.04.25.tar.gz/Flask-Velox-2014.04.25/flask_velox/formatters.py | import pytz
from jinja2 import Markup
def bool_formatter(value, true='Yes', false='No'):
""" For rendering True / False values in a human friendly way, by default
True = Yes and False = No however this can be overriden by passing
true and false keyword args with their respective values.
Example
... | PypiClean |
/Electrum-VTC-2.9.3.3.tar.gz/Electrum-VTC-2.9.3.3/plugins/cosigner_pool/vtc.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 |
/EUDP-1.0.0.tar.gz/EUDP-1.0.0/README.md | # EUDP
Encrypted UDP
<p align="right"> <img src="https://komarev.com/ghpvc/?username=merwin-eudp&label=Project%20views&color=0e75b6&style=flat" alt="darkmash-org" /> </p>
<hr>
## Install
pip install EUDP
## Features
- Cross platform (i think)
- RSA and AES Encryption
## Usage/Examples
```py... | PypiClean |
/2vyper-0.3.0.tar.gz/2vyper-0.3.0/src/twovyper/verification/verifier.py | import abc
import logging
from enum import Enum
from typing import Optional, Any
from jpype import JPackage
from twovyper import config
from twovyper.utils import list_to_seq
from twovyper.viper.typedefs import Program
from twovyper.viper.jvmaccess import JVM
from twovyper.verification.result import VerificationR... | PypiClean |
/ElectroMagneticPythonGpu-0.0.0.tar.gz/ElectroMagneticPythonGpu-0.0.0/examples/nk.py | ###########################
''' Import some modules '''
###########################
import numpy as np # array math
import warnings # warn user if invalid parameter, but continue program
import numpy.polynomial.polynomial as poly # polynomial fitting/reconstruction
############################################... | PypiClean |
/Jvav-1.3.0.tar.gz/Jvav-1.3.0/jvav/utils.py | import re
from typing import Tuple, List
import lxml
import random
import typing
import logging
import requests
import wikipediaapi
import concurrent.futures
from bs4 import BeautifulSoup
from anti_useragent import UserAgent
from deep_translator import GoogleTranslator
class BaseUtil:
def __init__(self, proxy_ad... | PypiClean |
/CustomPipeline-0.0.3-py3-none-any.whl/rpcore/mount_manager.py | import os
import atexit
from panda3d.core import Filename, VirtualFileSystem, get_model_path
from panda3d.core import VirtualFileMountRamdisk
from direct.stdpy.file import join, isdir, isfile
from rpcore.rpobject import RPObject
class MountManager(RPObject):
""" This classes mounts the required directories for... | PypiClean |
/BaculaFS-0.1.7.tar.gz/BaculaFS-0.1.7/README.rst | ========
BaculaFS
========
BaculaFS_ - Exposes the Bacula_ [*]_ catalog and storage as a Filesystem in
USErspace (FUSE_).
.. _BaculaFS: http://code.google.com/p/baculafs
.. _Bacula: http://www.bacula.org
.. _FUSE: http://fuse.sourceforge.net/
Copyright |(C)| 2009, 2010 Avi Rozen <avi.rozen@gmail.com>
.. contents:: ... | PypiClean |
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/lattices/Struct84.py | from genice2.cell import cellvectors
import genice2.lattices
desc = {"ref": {"SpaceFullerene": 'Sikiric 2010'},
"usage": "No options available.",
"brief": "A space fullerene."
}
class Lattice(genice2.lattices.Lattice):
def __init__(self):
self.pairs = """
87 157
75 ... | PypiClean |
/NGSpeciesID-0.3.0.tar.gz/NGSpeciesID-0.3.0/README.md | NGSpeciesID
===========
NGSpeciesID is a tool for clustering and consensus forming of long-read amplicon sequencing data (has been used with both PacBio and Oxford Nanopore data). The repository is a modified version of [isONclust](https://github.com/ksahlin/isONclust), where consensus, primer-removal, and polishing f... | PypiClean |
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/linotp/lib/ImportOTP/vasco.py | """ Import tokens from the vasco dpx files """
import pickle
import zlib
import os
import logging
# from ctypes import *
from ctypes import CDLL
from ctypes import Structure
from ctypes import pointer
from ctypes import c_void_p
from ctypes import c_char_p
from ctypes import c_int
from ctypes import c_ulong
from ct... | PypiClean |
/INGInious-0.8.7.tar.gz/INGInious-0.8.7/doc/teacher_doc/courses.rst | .. _course:
Courses
=======
Courses are defined by subdirectories found in the *tasks directory*, which has been specified in the configuration.
See :ref:`ConfigReference`. These subdirectories are composed of a ``course.yaml`` file describing the course parameters
and other subdirectories corresponding to tasks (See... | PypiClean |
/Flask_GSSAPI-1.5.0-py3-none-any.whl/flask_gssapi.py | """GSSAPI authentication plugin for Flask"""
import base64
import socket
from functools import wraps
import gssapi
from flask import current_app, make_response, request, Response
__version__ = '1.5.0'
class GSSAPI(object):
"""
Negotiate (GSSAPI) authentication extension for Flask applications for
... | PypiClean |
/Flask_BS4-5.3.1.0-py3-none-any.whl/flask_bs4/static/js/bootstrap.esm.min.js | import*as Popper from"@popperjs/core";const elementMap=new Map,Data={set(e,t,n){elementMap.has(e)||elementMap.set(e,new Map);const i=elementMap.get(e);i.has(t)||0===i.size?i.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(i.keys())[0]}.`)},get:(e,t)=>elem... | PypiClean |
/Liara-2.3.4.tar.gz/Liara-2.3.4/liara/config.py | from typing import (
Dict,
Any,
)
def create_default_configuration() -> Dict[str, Any]:
"""Creates a dictionary with the default configuration."""
# When changing this, make sure to update the docs as well
return {
'content_directory': 'content',
'resource_directory': 'resources',
... | PypiClean |
/LinOTP-2.11.1.tar.gz/LinOTP-2.11.1/linotp/lib/challenges.py |
import json
import logging
import datetime
from sqlalchemy import desc, and_
import linotp
from linotp.model import Session
from linotp.model import Challenge
from linotp.lib.context import request_context as context
log = logging.getLogger(__name__)
class Challenges(object):
DefaultTransactionIdLength = 17
... | PypiClean |
/Gooey-1.2.0a0.tar.gz/Gooey-1.2.0a0/gooey/examples/eee.py | from gooey.python_bindings.gooey_decorator import Gooey
from gooey.python_bindings.gooey_parser import GooeyParser
long_intro = '''
Guess again. And remember, don't do anything that affects anything, unless it turns out you were supposed to, in which case, for the love of God, don't not do it! Nay, I respect and adm... | PypiClean |
/CocoRPy27-1.4.1.zip/CocoRPy27-1.4.1/testSuite/TestAny_parserBaseline.py |
import sys
from Scanner import Token
from Scanner import Scanner
from Scanner import Position
class ErrorRec( object ):
def __init__( self, l, c, s ):
self.line = l
self.col = c
self.num = 0
self.str = s
class Errors( object ):
errMsgFormat = "file %(file)s : (%(line)d, %(c... | PypiClean |
/ChatWEB-2023.4.25.9.26.25.tar.gz/ChatWEB-2023.4.25.9.26.25/docs/README.md |   
<h1 align = "center">🔥LLM4GPT 为大模型而生🔥</h1>
---
# Install
```python
pip install -U llm4gpt
```
# [Docs](https://yuanjie-ai.g... | PypiClean |
/MoonNectar-0.6.0.tar.gz/MoonNectar-0.6.0/mnectar/config.py | import configargparse
import logging
import pathlib
import re
from contextlib import contextmanager
from lark import Lark, Transformer
from lark.exceptions import ParseError, UnexpectedCharacters
from typing import Optional, Union, Any, Callable, List
_logger = logging.getLogger(__name__)
cla... | PypiClean |
/DeepPhysX-22.6.tar.gz/DeepPhysX-22.6/src/Visualizer/VedoObjectFactories/MarkerFactory.py | from vedo import Marker
from DeepPhysX.Core.Visualizer.VedoObjectFactories.BaseObjectFactory import BaseObjectFactory, parse_wrapper, \
update_wrapper, ObjectDescription
class MarkerFactory(BaseObjectFactory):
"""
| MarkerFactory is a class that represent the data of a Marker visual object.
| MarkerF... | PypiClean |
/GenIce2-2.1.7.1.tar.gz/GenIce2-2.1.7.1/genice2/lattices/sV.py | from genice2.cell import cellvectors
import genice2.lattices
desc = {"ref": {"SpaceFullerene": 'Sikiric 2010'},
"usage": "No options available.",
"brief": "A space fullerene."
}
class Lattice(genice2.lattices.Lattice):
def __init__(self):
self.pairs = """
13 17
21 1... | PypiClean |
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/model/autocomplete_transaction_id_array.py | import re # noqa: F401
import sys # noqa: F401
from firefly_iii_client.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
file_type,
none_type,... | PypiClean |
/AIMakerMonitor-1.0.5.tar.gz/AIMakerMonitor-1.0.5/README.md | ## About upload to lib pypi
1. The account and password was saved in .pypic.
2. Please update lib version in setup.py before upload to pypi.
3. Please do not upload unnessary file (ex: egg.info, pycache...etc).
4. `Web` : <https://pypi.org/project/AIMakerMonitor/>
## If this is the first time to upload, please execut... | PypiClean |
/Flask-Caching-IceFruit-0.0.3.tar.gz/Flask-Caching-IceFruit-0.0.3/flask_caching/backends/cache.py | import os
import re
import errno
import tempfile
import platform
import hashlib
from time import time
try:
import cPickle as pickle
except ImportError: # pragma: no cover
import pickle
from werkzeug._compat import iteritems, string_types, text_type, \
integer_types, to_native
from werkzeug.posixemulation ... | PypiClean |
/Dowell%20Mail-1.0.2.tar.gz/Dowell Mail-1.0.2/docs/_build/html/_static/javascripts/lunr/lunr.it.js | !function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){return function(e){if(void 0===e)throw new Error("Lunr is not present. Please include / require Lunr before this script.");if(void 0===e.stemmerSupport)throw new Error("Lunr stemmer su... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/codemirror/mode/sas/sas.js |
// SAS mode copyright (c) 2016 Jared Dean, SAS Institute
// Created by Jared Dean
// TODO
// indent and de-indent
// identify macro variables
//Definitions
// comment -- text within * ; or /* */
// keyword -- SAS language variable
// variable -- macro variables starts with '&' or variable formats
// variable-2... | PypiClean |
/GailBot-0.2a0-py3-none-any.whl/gailbot/core/engines/whisperX/whisperX.py | import os
from typing import List, Dict
import whisperx
from gailbot.core.utils.logger import makelogger
from gailbot.core.utils.media import MediaHandler
from gailbot.core.utils.general import get_extension
from ..engine import Engine
logger = makelogger("whisperX")
class WhisperX(Engine):
def __init__(self)... | PypiClean |
/GLManager-1.1.6.tar.gz/GLManager-1.1.6/bot/dealer/use_case.py | from typing import Optional, List
from datetime import datetime, timedelta
from .respository import DealerRepository, AccountRepository
class DealerDTO:
id: int = None
name: str = None
username: str = None
account_creation_limit: int = None
expires_at: str = None
active: bool = None
def ... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.