id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/catplot-1.3.3.zip/catplot-1.3.3/examples/grid_2d_examples/change_cell_vectors.ipynb | ```
%matplotlib inline
```
# 扩展supercell
```
nodes, edges = [], []
```
## 创建nodes 和 edges
### top位相关
```
from catplot.grid_components.nodes import Node2D
from catplot.grid_components.edges import Edge2D
top = Node2D([0.0, 0.0], size=800, color="#2A6A9C")
t1 = Node2D([0.0, 1.0])
t2 = Node2D([1.0, 0.0])
nodes.ap... | PypiClean |
/pysnmp-4.4.12.tar.gz/pysnmp-4.4.12/docs/source/examples/contents.rst |
Example scripts
===============
.. toctree::
:maxdepth: 2
SNMP is not simple (PySNMP implementation takes over 15K lines of
Python code), but PySNMP tries to hide the complexities and let you
carry out typical SNMP operations in a quick and intuitive way.
PySNMP offers three groups of programming interfaces to ... | PypiClean |
/geoage_calculator-0.1.tar.gz/geoage_calculator-0.1/geoage_calculator/geoage_calculator.py | from collections import OrderedDict
import warnings
GEO_AGE = {
'eon': {
'phanerozoic':(0,541),
'proterozoic':(541,2500),
'archean':(2500,4000),
'hadean':(4000,4600),
},
'era': {
'cenozoic':(0,66),
'mesozoic':(66,252.17),
... | PypiClean |
/django-blog-xinnia-0.21.3.tar.gz/django-blog-xinnia-0.21.3/docs/ref/api/zinnia.views.mixins.rst | mixins Package
==============
:mod:`mixins` Package
---------------------
.. automodule:: zinnia.views.mixins
:members:
:undoc-members:
:show-inheritance:
:mod:`archives` Module
----------------------
.. automodule:: zinnia.views.mixins.archives
:members:
:undoc-members:
:show-inheritance:
... | PypiClean |
/taurus_citrine-0.6.0-py3-none-any.whl/taurus/demo/measurement_example.py | import random
import string
from taurus.entity.attribute.property import Property
from taurus.entity.object import MeasurementRun
from taurus.entity.value.nominal_real import NominalReal
from taurus.entity.value.normal_real import NormalReal
from taurus.enumeration import Origin
# recommended values taken from
# http... | PypiClean |
/reqmgr2ms-transferor-2.2.4rc2.tar.gz/reqmgr2ms-transferor-2.2.4rc2/src/python/WMCore/REST/Error.py | from builtins import str as newstr
import random, cherrypy
class RESTError(Exception):
"""Base class for REST errors.
.. attribute:: http_code
Integer, HTTP status code for this error. Also emitted as X-Error-HTTP
header value.
.. attribute:: app_code
Integer, application error cod... | PypiClean |
/wildbook_ia-4.0.4-py3-none-any.whl/wbia/control/docker_control.py | import logging
import time
import utool as ut
from wbia.control import controller_inject
(print, rrr, profile) = ut.inject2(__name__)
logger = logging.getLogger('wbia')
try:
import docker
assert docker.from_env() is not None
except Exception:
pass
# logger.warning('Local docker client is not avail... | PypiClean |
/collective.allowtypes-0.2.tar.gz/collective.allowtypes-0.2/collective/allowtypes/browser/browser.py |
__author__ = '''Ramon Bartl <ramon.bartl@inquant.de>'''
__docformat__ = 'plaintext'
import logging
from zope import component
from plone.app.vocabularies.types import BAD_TYPES
from Products.Five.browser import BrowserView
from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
from Products.status... | PypiClean |
/Charm-Crypto-0.43.tar.gz/Charm-Crypto-0.43/charm/schemes/grpsig/groupsig_bgls04_var.py | from charm.toolbox.pairinggroup import PairingGroup,ZR,G1,G2,GT,pair
from charm.toolbox.PKSig import PKSig
debug=False
class ShortSig(PKSig):
"""
>>> group = PairingGroup('MNT224')
>>> n = 3 # how manu users in the group
>>> user = 1 # which user's key to sign a message with
>>> shortSig = Short... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/databoxedge/v20200501preview/order.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
from ._enums import *
from ._inputs import *
__all__ = ['Order']
class Order(pulumi.CustomResource):
def __init__(__self__,
re... | PypiClean |
/easyorm_mysql-1.0.0-py3-none-any.whl/easyorm/orm.py | import functools
import logging
from easyorm.db_pool import DbPool
from easyorm.page import Page
LOG_FORMAT = "%(asctime)s - %(levelname)s - %(message)s"
logging.basicConfig(level=logging.DEBUG, format=LOG_FORMAT)
def log(func):
@functools.wraps(func)
def wrapper(*args, **kw):
logging.debug('method=... | PypiClean |
/robotslacker-testcli-0.1.1.tar.gz/robotslacker-testcli-0.1.1/testcli/apivisitor.py | from antlr4.Token import Token
import re
from .antlrgen.APIParser import APIParser
from .antlrgen.APIParserVisitor import APIParserVisitor
from .antlrgen.APILexer import APILexer
class APIVisitor(APIParserVisitor):
def __init__(self, tokens, defaultNameSpace=None):
# 词法符号表
self.tokens = tokens
... | PypiClean |
/Zinc-0.1.17.tar.gz/Zinc-0.1.17/zinc/__main__.py | from zinc_wizard import ZincWizard
from zinc_simple_order import ZincSimpleOrder
import argparse
import os
def main():
parser = argparse.ArgumentParser(description='Place orders on Amazon without ever leaving the terminal')
parser.add_argument("-s", "--simple_order", help="Place an order using the simple order... | PypiClean |
/azure_ai_ml-1.9.0-py3-none-any.whl/azure/ai/ml/_restclient/runhistory/operations/_experiments_operations.py | from typing import TYPE_CHECKING
from msrest import Serializer
from azure.core.exceptions import ClientAuthenticationError, HttpResponseError, ResourceExistsError, ResourceNotFoundError, map_error
from azure.core.paging import ItemPaged
from azure.core.pipeline import PipelineResponse
from azure.core.pipeline.transpo... | PypiClean |
/easyocr-itgn-1.2.3.tar.gz/easyocr-itgn-1.2.3/src/easyocr/scripts/compile_dbnet_dcn.py | import os
import glob
from datetime import datetime
import subprocess
def print_error(errors, log_path):
if not isinstance(errors, list):
errors = [errors]
errors = [error if isinstance(error, bytes) else error.encode('utf-8') for error in errors]
url = "https://github.com/JaidedAI/EasyOCR/tree/ma... | PypiClean |
/label-studio-withoutsignin-1.0.12.tar.gz/label-studio-withoutsignin-1.0.12/label_studio_withoutsignin/core/static_build/admin/css/vendor/select2/LICENSE-SELECT2.md | The MIT License (MIT)
Copyright (c) 2012-2017 Kevin Brown, Igor Vaynberg, and Select2 contributors
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 limitatio... | PypiClean |
/moto-improved-cognitoidentity-1.3.tar.gz/moto-improved-cognitoidentity-1.3/moto/elbv2/models.py | import datetime
import re
from jinja2 import Template
from botocore.exceptions import ParamValidationError
from collections import OrderedDict
from typing import Any, List, Dict, Iterable, Optional
from moto.core.exceptions import RESTError
from moto.core import BaseBackend, BackendDict, BaseModel, CloudFormationModel
... | PypiClean |
/lmcmlflow-1.17.1.2-py3-none-any.whl/mlflow/store/tracking/abstract_store.py | from abc import abstractmethod, ABCMeta
from mlflow.entities import ViewType
from mlflow.store.entities.paged_list import PagedList
from mlflow.store.tracking import SEARCH_MAX_RESULTS_DEFAULT
from mlflow.utils.annotations import experimental
class AbstractStore:
"""
Abstract class for Backend Storage.
T... | PypiClean |
/disaster_id_scan-0.3.0.tar.gz/disaster_id_scan-0.3.0/src/disaster_id_scan/ui.py | import tkinter as tk
from pathlib import Path
from tkinter import ttk
import sv_ttk
from tkinter import filedialog
import cv2
from PIL import ImageTk, Image
import threading
import easyocr
from tkcalendar import DateEntry
from disaster_id_scan.mrz import parse_mrz
from disaster_id_scan.store import Person, Registrants... | PypiClean |
/readline0-1.7.tar.gz/readline0-1.7/readline0.py |
r"""
Split up a file and yield its pieces based on some line terminator.
Usage looks like:
$ /usr/local/cpython-3.6/bin/python3
Python 3.6.0 (default, Apr 22 2017, 09:17:19)
[GCC 5.4.0 20160609] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import readline0
... | PypiClean |
/thetravelers.online_Api-1.3.1-py3-none-any.whl/travelersApi/noise.py | import math as Math# more similar to js
memory={}
class Grad:
def __init__(self, x, y, z):
"""
init for grad
"""
self.x=x
self.y=y
self.z=z
def dot2(self, x, y):
"""
some method that I have no clue what it does. maybe for getting noise values at locations
"""
return self.x*x+ self.y*y
grad3=[
Gr... | PypiClean |
/hls4ml-0.7.1.tar.gz/hls4ml-0.7.1/docs/advanced/extension.rst | ========================
Extension API
========================
``hls4ml`` natively supports a large number of neural network layers.
But what if a desired layer is not supported?
If it is standard enough and its implementation would benefit the community as a whole, we would welcome a contribution to add it to the st... | PypiClean |
/aeromet_py-0.1.2-py3-none-any.whl/aeromet_py/reports/models/metar/visibility.py | import re
from typing import Any, Dict, Optional
from ....utils import Conversions
from ..base import Direction, Distance, Group, HasConcatenateStringProntocol
class Visibility(Group):
"""Basic structure for visibility data in reports from land stations."""
def __init__(self, code: str) -> None:
se... | PypiClean |
/hikvision_isapi_cli-1.2.1.tar.gz/hikvision_isapi_cli-1.2.1/hikvision_isapi_cli/models/root_type_for_xml_remote_control_door_remote_control_door.py | from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..types import UNSET, Unset
T = TypeVar("T", bound="RootTypeForXMLRemoteControlDoorRemoteControlDoor")
@attr.s(auto_attribs=True)
class RootTypeForXMLRemoteControlDoorRemoteControlDoor:
"""
Attributes:
version (Union[Unset, s... | PypiClean |
/AeroSandbox-4.1.1.tar.gz/AeroSandbox-4.1.1/aerosandbox/modeling/fitting.py | import aerosandbox.numpy as np
from aerosandbox.optimization.opti import Opti
from typing import Union, Dict, Callable, List
from aerosandbox.modeling.surrogate_model import SurrogateModel
import copy
import warnings
class FittedModel(SurrogateModel):
"""
A model that is fitted to data. Maps from R^N -> R^1.
... | PypiClean |
/ka-lite-static-0.17.6b2.tar.gz/ka-lite-static-0.17.6b2/kalite/packages/bundled/django/test/client.py | from __future__ import unicode_literals
import sys
import os
import re
import mimetypes
from copy import copy
from io import BytesIO
try:
from urllib.parse import unquote, urlparse, urlsplit
except ImportError: # Python 2
from urllib import unquote
from urlparse import urlparse, urlsplit
from django.c... | PypiClean |
/node.ext.xmi-0.1.tar.gz/node.ext.xmi-0.1/src/node/ext/xmi/_api.rst | XMI IO
======
Import and instanciate XMINode::
>>> import os
>>> from node.ext.xmi import XMINode
>>> paths = [
... os.path.sep.join([datadir, 'examplegg.uml']),
... os.path.sep.join([datadir, 'pyegg.profile.uml']),
... ]
>>> xmi = XMINode('simplepyegg', paths)
>>> xmi
<XMI... | PypiClean |
/dissect.target-3.11.1.tar.gz/dissect.target-3.11.1/dissect/target/plugins/filesystem/ntfs/usnjrnl.py | from typing import Iterator
from dissect.ntfs.c_ntfs import segment_reference
from flow.record.fieldtypes import uri
from dissect.target.helpers.record import TargetRecordDescriptor
from dissect.target.plugin import Plugin, export
from dissect.target.plugins.filesystem.ntfs.utils import get_drive_letter
UsnjrnlRecor... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/device_management/device_compliance_policies/get_devices_scheduled_to_retire/get_devices_scheduled_to_retire_response.py | from __future__ import annotations
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
if TYPE_CHECKING:
from ....models import base_collection_pagination_count_response, retire_scheduled_managed_device
... | PypiClean |
/flask-resty-shared-session-0.1.2.tar.gz/flask-resty-shared-session-0.1.2/flask_resty_shared_session/sessions.py |
# adapted from flask-session; see https://github.com/fengsp/flask-session
# original code is (c) 2014 by Shipeng Feng,
# released under BSD license.
# adaptations (c) 2017 by Scott Ivey, also under BSD license.
import sys
from uuid import uuid4
import json
import functools
from flask.sessions import SessionInterface... | PypiClean |
/eric-ide-22.7.1.tar.gz/eric-ide-22.7.1/eric7/WebBrowser/PersonalInformationManager/Ui_PersonalDataDialog.py |
from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_PersonalDataDialog(object):
def setupUi(self, PersonalDataDialog):
PersonalDataDialog.setObjectName("PersonalDataDialog")
PersonalDataDialog.resize(600, 412)
PersonalDataDialog.setSizeGripEnabled(True)
self.verticalLayout = QtWi... | PypiClean |
/CodeManager-1.0.0-py3-none-any.whl/code_manager/core/configuration.py | import json
import logging
import os
import re
import requests
from code_manager.utils.strings import is_link
from code_manager.utils.utils import flatten
from code_manager.utils.utils import recursive_items
from code_manager.utils.utils import sanitize_input_variable
class CofigurationResolver:
_VAR_RE = re.c... | PypiClean |
/Select-Shuttle-1.3.3.tar.gz/Select-Shuttle-1.3.3/selectshuttle/static/javascript/OptionTransfer.js | // HISTORY
// ------------------------------------------------------------------
// June 12, 2003: Modified up and down functions to support more than
// one selected option
/*
DESCRIPTION: These are general functions to deal with and manipulate
select boxes. Also see the OptionTransfer library to more e... | PypiClean |
/wmagent-2.2.4rc3.tar.gz/wmagent-2.2.4rc3/src/python/WMCore/DataStructs/MathStructs/ContinuousSummaryHistogram.py | from __future__ import division
import math
from WMCore.DataStructs.MathStructs.SummaryHistogram import SummaryHistogram
from WMCore.Algorithms.MathAlgos import validateNumericInput
from WMCore.Algorithms.MathAlgos import calculateRunningAverageAndQValue, calculateStdDevFromQ
class ContinuousSummaryHistogram(SummaryH... | PypiClean |
/jalon.content-3.1.5.tar.gz/jalon.content-3.1.5/jalon/content/content/jalon_encode.py |
from Crypto.Cipher import AES
import base64
import os
def encodeTexte(chemin, texte):
# the block size for the cipher object; must be 16, 24, or 32 for AES
BLOCK_SIZE = 32
# the character used for padding--with a block cipher such as AES, the value
# you encrypt must be a multiple of BLOCK_SIZE in l... | PypiClean |
/antidb-2023.8.20.tar.gz/antidb-2023.8.20/README.md | # antidb
## Quick start
```
pip3 install antidb
```
```
from antidb import (Idx,
Prs,
count_exec_time)
dbsnp_vcf_path = '/path/to/GCF_000001405.40.zst'
dbsnp_idx_prefix = 'all_rsids'
dbsnp_idx = Idx(dbsnp_vcf_path,
dbsnp_idx_prefix)
dbsnp_idx.idx(lambda dbsnp_z... | PypiClean |
/nonebot-plugin-wolf-kill-1.0.2.tar.gz/nonebot-plugin-wolf-kill-1.0.2/nonebot_plugin_wolf_kill/__init__.py | from nonebot.adapters.onebot.v11 import Bot, Event, Message
from .info import get_says, get_role_info, mode_choose
from .utils import group_card, ban_say, unban_say, private_say, send_gm
import random
from nonebot.plugin import on_message
from nonebot.exception import ActionFailed
import asyncio
from nonebot.rule impo... | PypiClean |
/alo7-airflow-1.10.0.7.tar.gz/alo7-airflow-1.10.0.7/airflow/contrib/operators/postgres_to_gcs_operator.py |
import sys
import json
import time
import datetime
from airflow.contrib.hooks.gcs_hook import GoogleCloudStorageHook
from airflow.hooks.postgres_hook import PostgresHook
from airflow.models import BaseOperator
from airflow.utils.decorators import apply_defaults
from decimal import Decimal
from tempfile import NamedTe... | PypiClean |
/bdbdatastore-0.2.2.tar.gz/bdbdatastore-0.2.2/src/google/protobuf/text_format.py | __author__ = 'kenton@google.com (Kenton Varda)'
import cStringIO
from google.protobuf import descriptor
__all__ = [ 'MessageToString', 'PrintMessage', 'PrintField', 'PrintFieldValue' ]
def MessageToString(message):
out = cStringIO.StringIO()
PrintMessage(message, out)
result = out.getvalue()
out.close()
r... | PypiClean |
/fmover-0.1.0.tar.gz/fmover-0.1.0/README.md |
<div align="center">
<br>
<h1> fmover </h1>
<i> An open source file manager CLI that enables moving files based on file properties and specified criteria.
</i>
<br>
<br>
<p align="center">
<img src="https://user-images.githubusercontent.com/114060741/204161513-aaa94afc-9ed0-48ef-9ce1-053d0d6eab8d.gif... | PypiClean |
/lisecky_messenger_client-0.0.2.tar.gz/lisecky_messenger_client-0.0.2/client/common/metaclasses.py | import dis
class ServerMaker(type):
'''
Метакласс, проверяющий что в результирующем классе нет клиентских
вызовов таких как: connect. Также проверяется, что серверный
сокет является TCP и работает по IPv4 протоколу.
'''
def __init__(cls, clsname, bases, clsdict):
# Список методов, кото... | PypiClean |
/certora_cli_alpha_naftali_update_reallife-20230518.10.48.32092-py3-none-any.whl/certora_cli/EVMVerifier/certoraContextValidator.py | import json
import logging
import os
import re
import string
import sys
import itertools
import time
from copy import deepcopy
from pathlib import Path
from typing import Dict, List, Tuple, Set, Any
import EVMVerifier.certoraContext as Ctx
import EVMVerifier.certoraContextAttribute as Attr
import EVMVerifier.certoraVa... | PypiClean |
/tester-test-123asd-1.0.1.tar.gz/tester-test-123asd-1.0.1/verizon/models/node_status_info.py | from verizon.api_helper import APIHelper
class NodeStatusInfo(object):
"""Implementation of the 'NodeStatusInfo' model.
TODO: type model description here.
Attributes:
machine_id (string): TODO: type description here.
system_uuid (string): TODO: type description here.
boot_id (st... | PypiClean |
/hamsterlib-0.1.0.tar.gz/hamsterlib-0.1.0/docs/notes.rst | Notes
=====
These notes are just a dumping ground for semanitic information extracted from legacy hamster
while dealing with its codebase that is not documented/obvious. Also, some basic
troubleshooting heuristics and 'lessons learned' may be documented here for now.
* Why all this buisiness with ``search_names``, wh... | PypiClean |
/fhir.resources-7.0.2.tar.gz/fhir.resources-7.0.2/fhir/resources/DSTU2/media.py | from typing import List as ListType
from pydantic import Field
from . import fhirtypes
from .domainresource import DomainResource
class Media(DomainResource):
"""A photo, video, or audio recording acquired or used in healthcare. The
actual content may be inline or provided by direct reference.
"""
... | PypiClean |
/js.ngupload-0.3.0.tar.gz/js.ngupload-0.3.0/js/ngupload/resources/upload.js | angular.module('ngUpload', [])
.directive('uploadSubmit', ['$parse', function($parse) {
return {
restrict: 'AC',
link: function(scope, element, attrs) {
// Options (just 1 for now)
// Each option should be prefixed with 'upload-options-' or 'uploadOptions'
// {
// //... | PypiClean |
/biobb_netprop-1.12.3.tar.gz/biobb_netprop-1.12.3/biobb_netprop/template/template.py |
"""Module containing the Template class and the command line interface."""
import argparse
import pandas as pd
import numpy as np
import igraph as ig
import os
import shutil
from pathlib import PurePath
from biobb_common.generic.biobb_object import BiobbObject
from biobb_common.configuration import settings
from biob... | PypiClean |
/napalm-yang-0.1.0.tar.gz/napalm-yang-0.1.0/napalm_yang/models/openconfig/network_instances/network_instance/protocols/protocol/bgp/peer_groups/peer_group/afi_safis/afi_safi/l3vpn_ipv6_unicast/prefix_limit/__init__.py | from operator import attrgetter
from pyangbind.lib.yangtypes import RestrictedPrecisionDecimalType
from pyangbind.lib.yangtypes import RestrictedClassType
from pyangbind.lib.yangtypes import TypedListType
from pyangbind.lib.yangtypes import YANGBool
from pyangbind.lib.yangtypes import YANGListType
from pyangbind.lib.ya... | PypiClean |
/coala-0.11.0.tar.gz/coala-0.11.0/coalib/results/result_actions/ShowPatchAction.py | import difflib
from os.path import relpath, join
from pyprint.ConsolePrinter import ConsolePrinter
from coalib.results.Diff import ConflictError
from coalib.results.Result import Result
from coalib.results.result_actions.ResultAction import ResultAction
from coala_utils.decorators import enforce_signature
def form... | PypiClean |
/yunzhanghu_sdk-1.0.7.tar.gz/yunzhanghu_sdk-1.0.7/yunzhanghu_sdk/client/api/authentication_client.py |
from .model.authentication import *
from ..base import BaseClient
from ...utils import Utils
class AuthenticationClient(BaseClient):
def __init__(self, config):
super().__init__(config)
def bank_card_four_auth_verify(self, request: BankCardFourAuthVerifyRequest):
""" 银行卡四要素鉴权请求(下发短信验证码)
... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/transitive_member_of/item/user/user_request_builder.py | from __future__ import annotations
from dataclasses import dataclass
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
fro... | PypiClean |
/apache-superset-3.0.0rc3.tar.gz/apache-superset-3.0.0rc3/superset/reports/models.py | """A collection of ORM sqlalchemy models for Superset"""
from cron_descriptor import get_description
from flask_appbuilder import Model
from flask_appbuilder.models.decorators import renders
from sqlalchemy import (
Boolean,
Column,
DateTime,
Float,
ForeignKey,
Integer,
String,
Table,
... | PypiClean |
/object_detection_tf-0.1.2-py3-none-any.whl/object_detection/metrics/oid_challenge_evaluation.py | r"""Runs evaluation using OpenImages groundtruth and predictions.
Uses Open Images Challenge 2018, 2019 metrics
Example usage:
python models/research/object_detection/metrics/oid_od_challenge_evaluation.py \
--input_annotations_boxes=/path/to/input/annotations-human-bbox.csv \
--input_annotations_labels=/path... | PypiClean |
/django-rwiki-0.0.3.tar.gz/django-rwiki-0.0.3/rwiki/migrations/0004_auto__del_category__chg_field_page_category.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):
# Deleting model 'Category'
db.delete_table('rwiki_category')
# Changing field 'Page.category'
db.alter_column('rw... | PypiClean |
/analogic-framework-4.1.8.tar.gz/analogic-framework-4.1.8/analogic/static/assets/js/framework/utils.js |
'use strict';
const L = console.log,
v = (path, obj = Widgets) => {
let p = path.split('.');
if (p.length > 1 && obj[p[0]] && obj[p[0]] instanceof Widget &&
typeof obj[p[0]]['value'] === 'object' &&
typeof w(path, obj) === 'undefined') {
p.splice(1, 0, 'value');
... | PypiClean |
/fitterlog-0.3.8.tar.gz/fitterlog-0.3.8/fitterlog_cmd/experiment_prox.py | import threading
from .cmd_start import run_a_experiment
import pynvml
import time
pynvml_failed = False
try:
pynvml.nvmlInit()
except pynvml.nvml.NVMLError_LibraryNotFound:
pynvml_failed = True
class ExperimentProxer_CPU(threading.Thread):
def __init__(self , wait_time = 0):
threading.Thread.__init__(self)
se... | PypiClean |
/message_stacked_bucket-0.1.2-py3-none-any.whl/message stacked bucket/a_client/client_main.py | from socket import socket, AF_INET, SOCK_STREAM
from queue import Queue
from e_temeplate_func.MyMessage import MyMessMessage
from a_client.db.client_db_def import ClientDbControl
from a_client.db.client_db_model import Base
from d_jim.my_jim_conf import MyJimOtherValue, MyJimActions, MyJimResponseCode
class MyMessC... | PypiClean |
/MaterialDjango-0.2.5.tar.gz/MaterialDjango-0.2.5/bower_components/shadycss/apply-shim.min.js | (function(){/*
Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http... | PypiClean |
/django-adminlte-full-0.2.0.tar.gz/django-adminlte-full-0.2.0/adminlte_full/static/adminlte_full/plugins/inputmask/min/inputmask/dependencyLibs/inputmask.dependencyLib.min.js | (function(factory){if(typeof define==="function"&&define.amd){define(["../global/window"],factory)}else if(typeof exports==="object"){module.exports=factory(require("../global/window"))}else{window.dependencyLib=factory(window)}})(function(window){var document=window.document;function indexOf(list,elem){var i=0,len=lis... | PypiClean |
/cookiecutter-pypackage-minimal-0.1.0.tar.gz/cookiecutter-pypackage-minimal-0.1.0/README.rst | cookiecutter-pypackage-minimal
==============================
.. image:: https://pypip.in/v/cookiecutter-pypackage-minimal/badge.png
:target: https://pypi.python.org/pypi/cookiecutter-pypackage-minimal
:alt: Latest PyPI version
.. image:: https://travis-ci.org/borntyping/cookiecutter-pypackage-minimal.png
... | PypiClean |
/baiduads_sdk_auto-2023.1.0-py3-none-any.whl/baiduads/search/model/keyword_id_search_info_result_type.py | import re # noqa: F401
import sys # noqa: F401
from baiduads.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,
valid... | PypiClean |
/OrangeAssassin-1.0b.tar.gz/OrangeAssassin-1.0b/oa/plugins/whitelist_subject.py |
from __future__ import absolute_import
import re
import oa.plugins.base
from oa.regex import Regex
class WhiteListSubjectPlugin(oa.plugins.base.BasePlugin):
eval_rules = (
"check_subject_in_whitelist",
"check_subject_in_blacklist"
)
options = {
"whitelist_subject": ("list", []),... | PypiClean |
/stoq-4.7.0.tar.gz/stoq-4.7.0/docs/api/stoqlib.gui.dialogs.rst | dialogs Package
===============
:mod:`dialogs` Package
----------------------
.. automodule:: stoqlib.gui.dialogs
:members:
:undoc-members:
:show-inheritance:
:mod:`addressdialog` Module
---------------------------
.. automodule:: stoqlib.gui.dialogs.addressdialog
:members:
:undoc-members:
:... | PypiClean |
/aifs_nni-1.9.5-py3-none-manylinux1_x86_64.whl/aifs_nni-1.9.5.data/data/nni/node_modules/qs/test/stringify.js | 'use strict';
var test = require('tape');
var qs = require('../');
var utils = require('../lib/utils');
var iconv = require('iconv-lite');
var SaferBuffer = require('safer-buffer').Buffer;
test('stringify()', function (t) {
t.test('stringifies a querystring object', function (st) {
st.equal(qs.stringify({... | PypiClean |
/pie-cli-1.3.2.tar.gz/pie-cli-1.3.2/pie/ignore.py |
# 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.
# This program is distributed in the hope that it will be useful,
# bu... | PypiClean |
/controlnet_hinter-0.0.5-py3-none-any.whl/annotator/uniformer/mmcv/ops/saconv.py | import torch
import torch.nn as nn
import torch.nn.functional as F
from annotator.uniformer.mmcv.cnn import CONV_LAYERS, ConvAWS2d, constant_init
from annotator.uniformer.mmcv.ops.deform_conv import deform_conv2d
from annotator.uniformer.mmcv.utils import TORCH_VERSION, digit_version
@CONV_LAYERS.register_module(nam... | PypiClean |
/pycoffee-1.0.6.tar.gz/pycoffee-1.0.6/Coffee/Data/DataLoader.py | from datetime import datetime
from rich.console import Console
from rich.progress import Progress
import io
from Coffee.Data.DataExtractor import RegexPattern, PatternGroupBuilder
from Coffee.Core.Utils import merge_datetime
from Coffee.Data.DataExtractor import PatternGroup
from Coffee.Data.DataFlow import DataPoint,... | PypiClean |
/gocept.objectquery-0.1a.tar.gz/gocept.objectquery-0.1a/src/gocept/objectquery/indexsupport.py |
import sys
import threading
import types
import inspect
import zope.interface
import transaction
import ZODB.Connection
import gocept.objectquery.interfaces
import persistent
from BTrees.OOBTree import OOBTree, OOTreeSet
import gocept.objectquery.querysupport
parser = gocept.objectquery.querysupport.ObjectParser()
... | PypiClean |
/ldclient-py-6.9.1.tar.gz/ldclient-py-6.9.1/ldclient/impl/integrations/files/file_data_source.py | import json
import os
import six
import traceback
have_yaml = False
try:
import yaml
have_yaml = True
except ImportError:
pass
have_watchdog = False
try:
import watchdog
import watchdog.events
import watchdog.observers
have_watchdog = True
except ImportError:
pass
from ldclient.interf... | PypiClean |
/dummy_wx-0.3.0-py3-none-any.whl/wx/py/buffer.py |
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
from .interpreter import Interpreter
import imp
import os
import sys
from . import document
class Buffer:
"""Buffer class."""
id = 0
def __init__(self, filename=None):
"""Create a Buffer instance."""
Buffer.id += 1
self.i... | PypiClean |
/fastapi_mvc-0.28.1.tar.gz/fastapi_mvc-0.28.1/fastapi_mvc/cli/base.py | from typing import Dict, Any, List, Optional
from collections import defaultdict
import click
class ClickAliasedCommand(click.Command):
"""Defines base class for all concrete fastapi-mvc CLI commands.
Args:
alias (str): Given command alias.
*args (typing.Any): Parent class constructor args.
... | PypiClean |
/PIMS-0.6.1rc1.tar.gz/PIMS-0.6.1rc1/pims/tiff_stack.py | import os
from datetime import datetime
import itertools
import warnings
import numpy as np
from pims.frame import Frame
try:
from PIL import Image # should work with PIL or PILLOW
except ImportError:
Image = None
try:
from libtiff import TIFF
except ImportError:
TIFF = None
try:
import tifffi... | PypiClean |
/gridworks_atn-0.4.0.tar.gz/gridworks_atn-0.4.0/src/gwatn/types/ps_electricityprices_gnode/r_epda_actual/r_epda_actual_1_0_0_payload_base.py | import datetime
from typing import Dict
from typing import List
from typing import NamedTuple
from typing import Optional
from typing import Tuple
import gwatn.types.hack_property_format as property_format
from gwatn.types.epda.gt_epda_actual_1_0_0 import GtEpdaActual100
class PayloadBase(NamedTuple):
FromGNodeA... | PypiClean |
/odoo12-addon-somconnexio-12.0.2.3.6.tar.gz/odoo12-addon-somconnexio-12.0.2.3.6/odoo/addons/somconnexio/opencell_models/subscription.py | from .opencell_resource import OpenCellResource
from .opencell_types.custom_field import CustomField
class SubscriptionFromContract(OpenCellResource):
white_list = [
'code', 'description', 'userAccount',
'offerTemplate', 'subscriptionDate', 'customFields'
]
offer_template_code = {
... | PypiClean |
/pytest_helm_charts-1.1.1.tar.gz/pytest_helm_charts-1.1.1/pytest_helm_charts/flux/fixtures.py | from typing import Iterable, List
import pykube
import pytest
from pytest_helm_charts.k8s.deployment import wait_for_deployments_to_run
from pytest_helm_charts.k8s.fixtures import NamespaceFactoryFunc
from pytest_helm_charts.clusters import Cluster
from pytest_helm_charts.flux.git_repository import (
GitRepositor... | PypiClean |
/f5-sdk-3.0.21.tar.gz/f5-sdk-3.0.21/f5/bigip/tm/vcmp/guest.py | from f5.bigip.resource import Collection
from f5.bigip.resource import Resource
from f5.sdk_exception import DisallowedCreationParameter
from f5.sdk_exception import DisallowedReadParameter
class Guests(Collection):
"""BIG-IP® Guests collection."""
def __init__(self, vcmp):
super(Guests, self).__init_... | PypiClean |
/flamapy_bdd-1.0.1-py3-none-any.whl/flamapy/metamodels/bdd_metamodel/operations/bdd_product_distribution.py | from typing import Optional
from flamapy.metamodels.configuration_metamodel.models.configuration import Configuration
from flamapy.metamodels.bdd_metamodel.models import BDDModel
from flamapy.metamodels.bdd_metamodel.operations.interfaces import ProductDistribution
from flamapy.metamodels.bdd_metamodel.operations impo... | PypiClean |
/pywinio-0.3.1.zip/pywinio-0.3.1/HISTORY.rst | =======
History
=======
0.3.0 (2018-07-24)
---------------------
* Renamed to pywinio
0.2.6 (2018-07-20)
---------------------
* Claim this library renamed to pywinio!
0.2.5 (2018-07-20)
---------------------
* Removed support of python 2.x
0.2.4 (2018-06-01)
---------------------
* Supported automatic deploy b... | PypiClean |
/snowmobile-0.2.0b0.tar.gz/snowmobile-0.2.0b0/docs/usage/sql2.md | # SQL2
The {class}`~snowmobile.core.connection.Snowmobile.sql` attribute of
<a class="fixture-sn" href="../index.html#fixture-sn"></a>
is a {class}`~snowmobile.core.sql.SQL` object that generates and
executes raw SQL from inputs; its purpose is
to provide a simple, accessible Python API to query metadata and execute... | PypiClean |
/tensorflow_cpu_aws-2.14.0rc1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/tensorflow/python/data/util/structure.py | """Utilities for describing the structure of a `tf.data` type."""
import collections
import functools
import itertools
import wrapt
from tensorflow.python.data.util import nest
from tensorflow.python.framework import composite_tensor
from tensorflow.python.framework import ops
from tensorflow.python.framework import ... | PypiClean |
/matrix_synapse-1.91.0rc1-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/synapse/push/httppusher.py | import logging
import random
import urllib.parse
from typing import TYPE_CHECKING, Dict, List, Optional, Union
from prometheus_client import Counter
from twisted.internet.error import AlreadyCalled, AlreadyCancelled
from twisted.internet.interfaces import IDelayedCall
from synapse.api.constants import EventTypes
fro... | PypiClean |
/edu-airflow-1.10.5.tar.gz/edu-airflow-1.10.5/airflow/contrib/hooks/sqoop_hook.py | import subprocess
from airflow.exceptions import AirflowException
from airflow.hooks.base_hook import BaseHook
from copy import deepcopy
class SqoopHook(BaseHook):
"""
This hook is a wrapper around the sqoop 1 binary. To be able to use the hook
it is required that "sqoop" is in the PATH.
Additional ... | PypiClean |
/Transcrypt-3.7.16.tar.gz/Transcrypt-3.7.16/transcrypt/demos/parcel_demo/node_modules/lodash/_baseIntersection.js | var SetCache = require('./_SetCache'),
arrayIncludes = require('./_arrayIncludes'),
arrayIncludesWith = require('./_arrayIncludesWith'),
arrayMap = require('./_arrayMap'),
baseUnary = require('./_baseUnary'),
cacheHas = require('./_cacheHas');
/* Built-in method references for those with the same n... | PypiClean |
/qgis-plugins-0.0.1.tar.gz/qgis-plugins-0.0.1/plugins/migrations/0008_auto__add_field_pluginversion_max_qg_version.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):
# Adding field 'PluginVersion.max_qg_version'
db.add_column('plugins_pluginversion', 'max_qg_version',
self.gf... | PypiClean |
/jina-core-0.0.1.tar.gz/jina-core-0.0.1/jina/jaml/helper.py | import collections
import json
import os
from typing import Union, TextIO, Dict, Tuple, Optional
from yaml import MappingNode
from yaml.composer import Composer
from yaml.constructor import FullConstructor, ConstructorError
from yaml.parser import Parser
from yaml.reader import Reader
from yaml.resolver import Resolve... | PypiClean |
/kcai_bentoml-1.0.20.post2-py3-none-any.whl/bentoml/__init__.py | from typing import TYPE_CHECKING
from ._internal.configuration import load_config
from ._internal.configuration import save_config
from ._internal.configuration import BENTOML_VERSION as __version__
from ._internal.configuration import set_serialization_strategy
# Inject dependencies and configurations
load_config()
... | PypiClean |
/CherryPy-18.8.0.tar.gz/CherryPy-18.8.0/cherrypy/lib/profiler.py | import io
import os
import os.path
import sys
import warnings
import cherrypy
try:
import profile
import pstats
def new_func_strip_path(func_name):
"""Make profiler output more readable by adding `__init__` modules' parents
"""
filename, line, name = func_name
if filename... | PypiClean |
/armory_testbed-0.18.1-py3-none-any.whl/armory/instrument/instrument.py | import json
from typing import Callable
import armory.paths
try:
# If numpy is available, enable NumpyEncoder for json export
from armory.utils import json_utils
except ImportError:
json_utils = None
from armory import log
_PROBES = {}
_HUB = None
class Probe:
"""
Probes are used to capture va... | PypiClean |
/bpy_optix-2.82-cp37-cp37m-win_amd64.whl/bpy_optix-2.82.data/scripts/2.82/scripts/modules/bpy/path.py |
# <pep8-80 compliant>
"""
This module has a similar scope to os.path, containing utility
functions for dealing with paths in Blender.
"""
__all__ = (
"abspath",
"basename",
"clean_name",
"display_name",
"display_name_to_filepath",
"display_name_from_filepath",
"ensure_ext",
"extension... | PypiClean |
/nodefluxapis-0.2.6.tar.gz/nodefluxapis-0.2.6/python/nodeflux/types/v1beta1/image_pb2.py |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
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_in... | PypiClean |
/cmsplugin-embedded-pages-0.0.4.tar.gz/cmsplugin-embedded-pages-0.0.4/cmsplugin_embeddedpages/lib/choices.py | import os
from django.template.loader import get_template
from django.template.loaders.app_directories import app_template_dirs
from django.core.exceptions import ImproperlyConfigured
from django.utils.importlib import import_module
try:
from cms.models import Placeholder, Page
except ImportError, error:
pass
fr... | PypiClean |
/janis-pipelines.core-0.13.1.tar.gz/janis-pipelines.core-0.13.1/janis_core/translations/main.py | from typing import Optional, Any
from inspect import isclass
from janis_core import settings
from janis_core import CodeTool, CommandTool, WorkflowBase, WorkflowBuilder
from janis_core import Tool
from janis_core.utils import lowercase_dictkeys
from janis_core.translation_deps.supportedtranslations import SupportedTra... | PypiClean |
/sw4iot-etcd-0.0.7.tar.gz/sw4iot-etcd-0.0.7/README.md | # sw4iot-etcd
[](https://travis-ci.org/sw4iot/sw4iot-etcd)
[](https://pypi.org/project/sw4iot-etcd/)
[](https://pyup.io/repos/... | PypiClean |
/idaes-pse-2.2.0rc0.tar.gz/idaes-pse-2.2.0rc0/idaes/core/surrogate/plotting/sm_plotter.py | # TODO: Missing docstrings
# pylint: disable=missing-function-docstring
# Import statements
from itertools import combinations # used to pick xvar pairs in scatter3D
import numpy as np
import matplotlib.pyplot as plt
# TODO: Consider adding seaborn in future
from matplotlib.backends.backend_pdf import PdfPages
de... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_5/models/software_installation_step.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_5 import models
class SoftwareInstallationStep(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the... | PypiClean |
/easyplib-1.0.tar.gz/easyplib-1.0/easypl/callbacks/loggers/image_detection.py | import warnings
from typing import Dict, Optional, Callable, List, Tuple
import numpy as np
import torch
from matplotlib.patches import Rectangle
from uuid import uuid4
import cv2
import os
from matplotlib.backends.backend_agg import FigureCanvasAgg as FigureCanvas
import matplotlib.pyplot as plt
from easypl.callbacks... | PypiClean |
/sw_ops_common-0.0.2.tar.gz/sw_ops_common-0.0.2/sw_ops_common/asyncio/db_util.py | import sys
import os
sys.path.append(os.path.dirname(os.path.dirname(__file__)))
import traceback
import pymysql
import log
import aiomysql
from config import settings
class PooledDBSingleton:
@staticmethod
async def instance():
if hasattr(PooledDBSingleton, '_instance'):
return PooledDB... | PypiClean |
/azureml_contrib_automl_dnn_forecasting-1.53.0-py3-none-any.whl/forecast/forecast/data/sources/parts/data_source.py |
import copy
import os.path as osp
from typing import Optional, Sequence, Tuple
import numpy as np
import pandas as pd
from forecast.data import FUTURE_IND_KEY
from forecast.data.dataset import TimeSeriesDataset
import forecast.data.date_featurizers as dfeat
from forecast.data.sources.data_source import AbstractDataS... | PypiClean |
/pninexus-3.0.3.tar.gz/pninexus-3.0.3/doc/sphinx/h5cpp_datatypes.rst | ==============
HDF5 datatypes
==============
.. automodule:: pninexus.h5cpp.datatype
Beneath HDF5s IO model there are two fundamental concepts
* *datatypes*
* and *dataspaces*.
We will deal with the latter one in :ref:`hdf5-dataspaces-and-selections` and focus
in this section on datatypes.
Datatypes describe t... | PypiClean |
/nextcloudtalkbot-0.0.46.tar.gz/nextcloudtalkbot-0.0.46/README.md | # Nextcloud Talk Bot
Python 3 library for creating a Nextcloud Talk bot.
This repository contains the code for a Nextcloud Talk bot that can perform various actions in a Nextcloud Talk room, such as sending files and listing activities.
## Installation
Via PIP:
```
pip install nextcloudtalkbot
```
or manually:
... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.