id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/CleanAdminDjango-1.5.3.1.tar.gz/CleanAdminDjango-1.5.3.1/django/contrib/localflavor/ca/forms.py | from __future__ import absolute_import, unicode_literals
import re
from django.core.validators import EMPTY_VALUES
from django.forms import ValidationError
from django.forms.fields import Field, CharField, Select
from django.utils.encoding import smart_text
from django.utils.translation import ugettext_lazy as _
ph... | PypiClean |
/django-helpdesk3000-0.3.4.tar.gz/django-helpdesk3000-0.3.4/helpdesk/south_migrations/0001_initial.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 model 'Queue'
db.create_table('helpdesk_queue', (
('id', self.gf('django.db.models.fields.AutoField')(p... | PypiClean |
/chaipy-0.4.0-py3-none-any.whl/chai_py/deployment.py | from pathlib import Path
from typing import AnyStr, Optional
import time
from halo import Halo
from requests import HTTPError
from typing_extensions import TypedDict
import requests
import segno
from chai_py.auth import get_auth
from chai_py.cloud_logs import display_logs, get_logs
from chai_py.defaults import ENDPOI... | PypiClean |
/kurby-0.3.3.tar.gz/kurby-0.3.3/README.md | # Kurby
[](https://docs.python.org/3/whatsnew/3.7.html) [](https://pepy.tech/badge/kurby) [](https://badge.fury.io/py/kurby.svg)
<d... | PypiClean |
/suds3-0.1.tar.gz/suds3-0.1/suds/xsd/deplist.py | from logging import getLogger
from suds import *
log = getLogger(__name__)
class DepList:
"""
Dependancy solving list.
Items are tuples: (object, (deps,))
@ivar raw: The raw (unsorted) items.
@type raw: list
@ivar index: The index of (unsorted) items.
@type index: list
@ivar stack: Th... | PypiClean |
/acconeer_exptool-7.4.0-py3-none-any.whl/acconeer/exptool/a111/algo/obstacle_detection/ui.py |
import logging
import numpy as np
from numpy import unravel_index
from PySide6 import QtCore, QtGui
import pyqtgraph as pg
import acconeer.exptool as et
from .constants import WAVELENGTH
log = logging.getLogger("acconeer.exptool.examples.obstacle_detection")
class PGUpdater:
def __init__(self, sensor_conf... | PypiClean |
/Camper_Logger_Exception-0.2.0-py3-none-any.whl/Camper/Log.py | import logging
import colorlog
from .Static import *
from Camper.ExceptionCatcher import CamperException
def error_handler(err):
print(err)
class CamperLogger:
@CamperException.exception_catcher(error_callback=error_handler)
def __init__(self, logger_name, **kwargs):
self.name = logger_name
... | PypiClean |
/SPyOD-0.1.7.tar.gz/SPyOD-0.1.7/README.md | # Spectral Proper Orthogonal Decomposition
## Table of contents
* [Description](#description)
* [Installation](#installation)
* [License](#license)
* [Contact us](#contact-us)
* [Contributors](#contributors)
## Description
__SPyOD__ is the python implementation of the Spectral Proper Orthogonal Decompos... | PypiClean |
/HolmesIV-2021.9.8a1.tar.gz/HolmesIV-2021.9.8a1/mycroft/skills/intent_services/padatious_service.py | """Intent service wrapping padatious."""
from functools import lru_cache
from subprocess import call
from threading import Event
from time import time as get_time, sleep
from os.path import expanduser, isfile
from mycroft.configuration import Configuration
from mycroft.messagebus.message import Message
from mycroft.u... | PypiClean |
/invoicing_as_pdf-1.0.0-py3-none-any.whl/invoicing/invoice.py | import os
import pandas as pd
import glob
from fpdf import FPDF
from pathlib import Path
def generate(invoices_path, pdfs_path,image_path,product_id,product_name,amount_purchased,price_per_unit,total_price):
'''
This Function coverts invoice Excel files into PDF invoices
:param invoices_path:
:param ... | PypiClean |
/safegate-pro-frontend-20210805.0.tar.gz/safegate-pro-frontend-20210805.0/hass_frontend/frontend_latest/chunk.df34f1bea54a4dedf7c4.js | (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[5748],{12198:(e,t,r)=>{"use strict";r.d(t,{p6:()=>a,mn:()=>d,D_:()=>u});var i=r(68928),n=r(14516),o=r(43274);const s=(0,n.Z)((e=>new Intl.DateTimeFormat(e.language,{year:"numeric",month:"long",day:"numeric"}))),a=o.Sb?(e,t)=>... | PypiClean |
/cifrazia-django-jet-1.1.4.tar.gz/cifrazia-django-jet-1.1.4/jet/dashboard/models.py | import json
from importlib import import_module
from django.db import models
from django.utils.translation import gettext_lazy as _
from six import python_2_unicode_compatible
from jet.utils import LazyDateTimeEncoder
@python_2_unicode_compatible
class UserDashboardModule(models.Model):
title = models.CharField... | PypiClean |
/tls.messaging-0.6.4.tar.gz/tls.messaging-0.6.4/tls/messaging/oauth.py |
import dataclasses
import json
import math
import time
from urllib import error, parse, request
from . import exceptions
from .utils import config
@dataclasses.dataclass
class TToken:
"""
OAuth token.
Attrs:
access_token: The OAuth access token.
token_type: The type of the token.
... | PypiClean |
/ai_flow-0.3.1.tar.gz/ai_flow-0.3.1/airflow/models/dagbag.py |
import hashlib
import importlib
import importlib.machinery
import importlib.util
import logging
import os
import sys
import textwrap
import traceback
import warnings
import zipfile
from datetime import datetime, timedelta
from typing import Dict, List, NamedTuple, Optional
import tenacity
from croniter import Cronite... | PypiClean |
/PaperCV-0.3.tar.gz/PaperCV-0.3/papercv/citation.py |
import ads
class papers:
def __init__(self, orcid_id, username, sort_by='year', filename='citation_list'):
self.orcid_id = orcid_id
self.username = username
self.sort_by = sort_by
self.filename = filename
def query_ADS(self):
self.first_paper_data = list(ad... | PypiClean |
/GCMlib-1.0.4.tar.gz/GCMlib-1.0.4/gcm.py | import os
import base64 as b64
import json
from alive_progress import alive_bar
#AES stoof
from Crypto.Cipher import AES
from Crypto.Random import random
#KeyGen | kdf
import argon2
#The header that's used with the aes encryption for the json object is not encrypted, just base64 encoded and I don't really kn... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_6/models/reference.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_6 import models
class Reference(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attri... | PypiClean |
/comfylib-0.0.5-py3-none-any.whl/comfy/hazard/ldm/models/diffusion/ddpm.py | import torch
import torch.nn as nn
import numpy as np
# import pytorch_lightning as pl
from torch.optim.lr_scheduler import LambdaLR
from einops import rearrange, repeat
from contextlib import contextmanager, nullcontext
from functools import partial
import itertools
from tqdm import tqdm
from torchvision.utils import ... | PypiClean |
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/autoprefixer/lib/hacks/align-content.js | 'use strict';
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); ... | PypiClean |
/django-el-pagination-4.0.0.tar.gz/django-el-pagination-4.0.0/doc/javascript.rst | JavaScript reference
====================
For each type of pagination it is possible to enable Ajax so that the requested
page is loaded using an asynchronous request to the server. This is especially
important for :doc:`twitter_pagination` and
:ref:`endless pagination on scroll<javascript-pagination-on-scroll>`, but
... | PypiClean |
/build-service-osc-0.16.2.tar.gz/build-service-osc-0.16.2/README | osc -- opensuse-commander with svn like handling
Patches can be submitted via
* mail to opensuse-buildservice@opensuse.org
* Bugzilla: https://bugzilla.novell.com/enter_bug.cgi?product=openSUSE.org&component=BuildService
* or the official Git repository on Github:
https://github.com/openSUSE/osc
INSTALLATION:... | PypiClean |
/odoo_addon_l10n_es_ticketbai_pos-15.0.1.0.6-py3-none-any.whl/odoo/addons/l10n_es_ticketbai_pos/static/src/js/tbai_models.js | odoo.define("l10n_es_ticketbai_pos.tbai_models", function (require) {
"use strict";
var core = require("web.core");
var _t = core._t;
var field_utils = require("web.field_utils");
var Backbone = window.Backbone;
var tbai = window.tbai;
var QRCode = window.QRCode;
/* A TicketBAI Simpli... | PypiClean |
/fds.sdk.NaturalLanguageProcessing-0.22.6-py3-none-any.whl/fds/sdk/NaturalLanguageProcessing/model/http_error.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.NaturalLanguageProcessing.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,... | PypiClean |
/ydk-models-cisco-ios-xe-16.9.3.post1.tar.gz/ydk-models-cisco-ios-xe-16.9.3.post1/ydk/models/cisco_ios_xe/CISCO_FIREWALL_TC.py | import sys
from collections import OrderedDict
from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64
from ydk.filters import YFilter
from ydk.errors import YError, YModelError
from ydk.errors.error_handler import handle_type_error as _handle_type... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/core-js-pure/modules/esnext.async-iterator.flat-map.js | 'use strict';
var $ = require('../internals/export');
var call = require('../internals/function-call');
var aCallable = require('../internals/a-callable');
var anObject = require('../internals/an-object');
var isObject = require('../internals/is-object');
var getIteratorDirect = require('../internals/get-iterator-direc... | PypiClean |
/thunes-0.31-=%20py37-none-any.whl/transaction/models.py | from django.db import models
from sender.models import Sender
from beneficiary.models import Beneficiary
from quotation.models import Quotation
# Create your models here.
class Transaction(models.Model):
TRANSACTION_STATUS = (
('10000', 'CREATED'),
('20000', 'CONFIRMED'),
('20110', 'CONFI... | PypiClean |
/kabbes_aws_credentials-0.9.0.tar.gz/kabbes_aws_credentials-0.9.0/src/aws_credentials/AWS_Creds.py | from parent_class import ParentClass, ParentPluralDict
import py_starter as ps
class AWS_Cred (ParentClass) :
"""Class for storing one instance of a singular AWS Role and its associated credentials
role: AWS role associated
dict: contains each key-value combination for each environment variable and its v... | PypiClean |
/proteofav-0.2.3.tar.gz/proteofav-0.2.3/docs/example_usage.rst | =============
Example Usage
=============
Example usage is currently provided as a `Jupyter Notebook`, which can be viewed with the `GitHub's`_ file viewer or with the Jupyter `nbviewer`_.
You can download the Jupyter notebook from `GitHub`_ and test it with your ProteoFAV's installation.
.. _GitHub's: https://gith... | PypiClean |
/lightautoml-gpu-1.0.0.tar.gz/lightautoml-gpu-1.0.0/lightautoml/validation/gpu/gpu_iterators.py |
from typing import Optional
from typing import Tuple
from typing import Union
from typing import cast
import cupy as cp
from lightautoml.dataset.gpu.gpu_dataset import CupyDataset
from lightautoml.dataset.gpu.gpu_dataset import CudfDataset
from lightautoml.dataset.gpu.gpu_dataset import DaskCudfDataset
from lightaut... | PypiClean |
/mara-mondrian-2.0.2.tar.gz/mara-mondrian-2.0.2/README.md |
# Mara Mondrian
[](https://travis-ci.org/mara/mara-mondrian)
[](https://github.com/mara/mara-mondrian/blob/master/LICENSE)
[ 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
from google.p... | PypiClean |
/code_comment-0.1.0.tar.gz/code_comment-0.1.0/code_comment/lib.py |
import os.path
from code_comment.models import Comment
from code_comment.errors import CodeLanguageUnsupported
class CodeLanguage:
PYTHON = 'python'
PHP = 'php'
JAVASCRIPT = 'javascript'
GOLANG = 'go'
@staticmethod
def factory(code_name):
if code_name == CodeLanguage.PYTHON:
... | PypiClean |
/simuPOP-1.1.12.tar.gz/simuPOP-1.1.12/src/gsl.py | from sys import version_info as _swig_python_version_info
if _swig_python_version_info >= (2, 7, 0):
def swig_import_helper():
import importlib
pkg = __name__.rpartition('.')[0]
mname = '.'.join((pkg, '_gsl')).lstrip('.')
try:
return importlib.import_module(mname)
... | PypiClean |
/Prestige-0.0.1.tar.gz/Prestige-0.0.1/pylot/component/static/pylot/vendor/mdeditor/bower_components/codemirror/mode/turtle/turtle.js | CodeMirror.defineMode("turtle", function(config) {
var indentUnit = config.indentUnit;
var curPunc;
function wordRegexp(words) {
return new RegExp("^(?:" + words.join("|") + ")$", "i");
}
var ops = wordRegexp([]);
var keywords = wordRegexp(["@prefix", "@base", "a"]);
var operatorChars = /[*+\-<>=&|]/... | PypiClean |
/eko-0.13.5-py3-none-any.whl/ekomark/benchmark/external/apfel_utils.py | import time
import numpy as np
from banana.benchmark.external.apfel_utils import load_apfel
from eko import basis_rotation as br
def compute_apfel_data(
theory, operators, pdf, skip_pdfs, rotate_to_evolution_basis=False
):
"""
Run APFEL to compute operators.
Parameters
----------
theory : d... | PypiClean |
/ohmeow-blurr-1.0.5.tar.gz/ohmeow-blurr-1.0.5/blurr/text/data/question_answering.py |
__all__ = ['QAPreprocessor', 'QATextInput', 'QABatchTokenizeTransform']
# Cell
import ast
from functools import reduce
from datasets import Dataset
from fastcore.all import *
from fastai.data.block import DataBlock, CategoryBlock, ColReader, ColSplitter
from fastai.imports import *
from fastai.losses import CrossEnt... | PypiClean |
/TashriTelethon-1.24.0-py3-none-any.whl/telethon/extensions/html.py | import struct
from collections import deque
from html import escape
from html.parser import HTMLParser
from typing import Iterable, Optional, Tuple, List
from .. import helpers
from ..tl.types import (
MessageEntityBold, MessageEntityItalic, MessageEntityCode,
MessageEntityPre, MessageEntityEmail, MessageEntit... | PypiClean |
/comt-2.6.4.tar.gz/comt-2.6.4/src/cm/media/js/lib/yui/yui3-3.15.0/build/tree/tree-coverage.js | if (typeof __coverage__ === 'undefined') { __coverage__ = {}; }
if (!__coverage__['build/tree/tree.js']) {
__coverage__['build/tree/tree.js'] = {"path":"build/tree/tree.js","s":{"1":0,"2":0,"3":0,"4":0,"5":0,"6":0,"7":0,"8":0,"9":0,"10":0,"11":0,"12":0,"13":0,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"... | PypiClean |
/casai-home-frontend-20220503.0.tar.gz/casai-home-frontend-20220503.0/hass_frontend/frontend_es5/7651b3d3.js | (self.webpackChunkhome_assistant_frontend=self.webpackChunkhome_assistant_frontend||[]).push([[60929],{22098:function(e,t,r){"use strict";var n,i,o,a,s=r(50424),c=r(55358);function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==ty... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/AlipayFundCouponWufuCostassetsQueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayFundCouponWufuCostassetsQueryModel import AlipayFundCouponWufuCostassetsQueryModel
class AlipayFundCouponWufuCostassetsQueryRequest(object):
def __init__(self, biz_mod... | PypiClean |
/azure_mgmt_kubernetesconfiguration-3.0.0-py3-none-any.whl/azure/mgmt/kubernetesconfiguration/v2022_03_01/aio/operations/_flux_config_operation_status_operations.py | from typing import Any, Callable, Dict, Optional, TypeVar
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
ResourceNotModifiedError,
map_error,
)
from azure.core.pipeline import PipelineResponse
from azure.core.pipelin... | PypiClean |
/dune_xt-2022.1.4.601-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/dune/xt/common/vtk/reader.py | from pathlib import Path
from xml.etree.ElementTree import fromstring
from collections import OrderedDict
from xmljson import BadgerFish
import vtk
from lxml import etree
def _read_collection(xml):
collection = xml['VTKFile']['Collection']
files = collection['DataSet']
data = [(f['@timestep'], _read_singl... | PypiClean |
/ccc-coef-0.1.6.tar.gz/ccc-coef-0.1.6/README.md | # Clustermatch Correlation Coefficient (CCC)
[](https://github.com/greenelab/ccc/actions/workflows/pytest.yaml)
[](https://codecov.io/gh/gre... | PypiClean |
/avrzero-0.0.3.tar.gz/avrzero-0.0.3/.github/ISSUE_TEMPLATE/bug_report.md | ---
name: Bug report
about: Create a report to help us improve
title: ''
labels: bug
assignees: ''
---
**Describe the bug**
A clear and concise description of what the bug is.
**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See the error
**Expected beh... | PypiClean |
/hat-trie-python-0.6.0.tar.gz/hat-trie-python-0.6.0/README.md | # hat-trie-python
Python wrapper for https://github.com/Tessil/hat-trie (MIT License)
It's still incomplete, not all functionality is supported. Sets are not implemented yet.
Tested on Linux 2.7+, Windows 3.5+, MacOS 2.7+. It should work on Windows 2.7 also, however it's tricky to compile.
## Install
- `pip install... | PypiClean |
/mb-commons-1.1.8.tar.gz/mb-commons-1.1.8/mb_commons/mongo.py | from __future__ import annotations
from collections import OrderedDict
from dataclasses import dataclass
from decimal import Decimal
from typing import Any, Generic, Optional, Tuple, Type, TypeVar, Union
from urllib.parse import urlparse
from bson import CodecOptions, Decimal128, ObjectId
from bson.codec_options impo... | PypiClean |
/alibabacloud_vcs20200515-3.6.3-py3-none-any.whl/alibabacloud_vcs20200515/models.py | from Tea.model import TeaModel
from typing import List, Dict, Any
class AiotDevice(TeaModel):
def __init__(
self,
ipaddr: str = None,
latitude: float = None,
longitude: float = None,
name: str = None,
place: str = None,
port: int = None,
):
# ip地... | PypiClean |
/mutwo.music-0.24.0-py3-none-any.whl/mutwo/music_converters/loudness.py |
import math
from mutwo_third_party import pydsm
from mutwo import core_constants
from mutwo import core_converters
from mutwo import core_events
from mutwo import music_converters
__all__ = ("LoudnessToAmplitude",)
class LoudnessToAmplitude(core_converters.abc.Converter):
"""Make an approximation of the neede... | PypiClean |
/gtdb_to_taxdump-0.1.9-py3-none-any.whl/gtdb2td/Graph.py | from __future__ import print_function
# batteries
import os
import sys
import gzip
import bz2
import argparse
import logging
import csv
import urllib.request
import codecs
from collections import OrderedDict
class Graph(object):
def __init__(self, graph_dict=None):
""" initializes a graph object
... | PypiClean |
/syntaxflow-0.1.0.tar.gz/syntaxflow-0.1.0/CONTRIBUTING.rst | .. highlight:: shell
============
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... | PypiClean |
/dsws_client-0.2.0-py3-none-any.whl/dsws_client/client.py | import json
import logging
import sys
import urllib.parse
from typing import Any, Dict, List, Optional, Type, TypeVar, Union
import requests
from dsws_client.config import DSWSConfig
from dsws_client.ds_request import (
DSDataRequest,
DSDataType,
DSDate,
DSGetDataBundleRequest,
DSGetDataRequest,
... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/operationalinsights/v20210601/cluster.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from . import outputs
from ._enums import *
from ._inputs import *
__all__ = ['ClusterArgs', 'Cluster']
@pulumi.input_type
class ClusterArgs:
def __init_... | PypiClean |
/pyDVL-0.6.1.tar.gz/pyDVL-0.6.1/src/pydvl/utils/parallel/map_reduce.py | import inspect
from functools import singledispatch, update_wrapper
from itertools import accumulate, repeat
from typing import (
Any,
Callable,
Dict,
Generic,
List,
Optional,
Sequence,
TypeVar,
Union,
)
import numpy as np
import ray
from numpy.typing import NDArray
from ray import ... | PypiClean |
/symmetric_secret_share-0.0.8-py3-none-any.whl/sss_cli/__main__.py | from nacl.encoding import Base64Encoder
from nacl.utils import random, randombytes_deterministic
import typer
from sss_cli import __version__
from sss_cli._string_template import EXAMPLE_KEYCHAIN
from sss_cli.helper import get_keychain
from sss_cli.inject import inject
from sss_cli.share import share
app = typer.Type... | PypiClean |
/bigdl_chronos_spark321-2.1.0b202207291-py3-none-manylinux1_x86_64.whl/bigdl/chronos/model/autoformer/Autoformer.py |
# MIT License
# Copyright (c) 2021 THUML @ Tsinghua University
# 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, ... | PypiClean |
/ua_box_api-1.0.0-py3-none-any.whl/ua_box_api/ua_box_api.py | from io import BytesIO
import boxsdk
__author__ = "Stephen Stern"
__maintainer__ = "Stephen Stern"
__email__ = "sterns1@email.arizona.edu"
class BoxApi:
def __init__(self, stache_secret):
# Authenticate the API client using the JWT authentication method.
private_key_stream = BytesIO(
... | PypiClean |
/gino-factory-0.1.0.tar.gz/gino-factory-0.1.0/README.rst |
Gino Factory
===========================
| **Install**: ``pip install gino-factory``
**Github**: https://github.com/Basalex/gino_factory
Usage:
~~~~~~~~~~~~~~~~~~
Let's create two gino models
.. code:: python
class Team(db.Model):
__tablename__ = 'teams'
id = db.Column(db.Integer, primary_ke... | PypiClean |
/rcsb.utils.io-1.45.tar.gz/rcsb.utils.io-1.45/rcsb/utils/io/ExecUtils.py | import logging
import os
import subprocess
import sys
logger = logging.getLogger(__name__)
class ExecUtils(object):
"""Wrapper for subprocess execution."""
def __init__(self):
"""Wrapper for subprocess execution"""
def run(self, execPath, execArgList=None, outPath=None, outAppend=False, timeOut... | PypiClean |
/django-epic-0.6.1.tar.gz/django-epic-0.6.1/epic/kicad/bom.py | from types import SimpleNamespace
import logging
import re
import xml.etree.ElementTree as ET
from pathlib import Path
from egauge import webapi
from epic.base import Enum, format_part_number, strchoice
from . import csv
from .error import Error, UnknownFlavorsError
from .parts_cache import PartsCache
EP_PAT = re... | PypiClean |
/tagtools-0.8d.tar.gz/tagtools-0.8d/docs/flickr.rst | FlickrTokenizer
================
.. currentmodule:: tagtools
.. moduleauthor:: Gustavo Picon <tabo@tabo.pe>
.. inheritance-diagram:: FlickrTokenizer
.. autoclass:: FlickrTokenizer
:show-inheritance:
Example::
FlickrTokenizer.str2tags('"Tag 1" Tag2 "TAG 1" Tag3')
returns::
[('tag 1', 'Ta... | PypiClean |
/boto3_type_annotations_with_docs-0.3.1.tar.gz/boto3_type_annotations_with_docs-0.3.1/boto3_type_annotations/xray/paginator.py | from typing import Dict
from typing import List
from datetime import datetime
from botocore.paginate import Paginator
class BatchGetTraces(Paginator):
def paginate(self, TraceIds: List, PaginationConfig: Dict = None) -> Dict:
"""
Creates an iterator that will paginate through responses from :py:me... | PypiClean |
/redlock-py-catch-1.1.0.tar.gz/redlock-py-catch-1.1.0/redlock/cli.py | from __future__ import print_function
import argparse
import sys
import textwrap
import redlock
def log(*args, **kwargs):
if not log.quiet:
print(*args, file=sys.stderr, **kwargs)
def lock(name, validity, redis, retry_count=3, retry_delay=200, **kwargs):
if retry_count < 0:
retry_count = 0... | PypiClean |
/resources/GovGAST1.py | from functools import cached_property
from pydantic import Field
from pydantic.dataclasses import dataclass
from .Base import DataclassConfig, Profile
from .TurbineGovernorDynamics import TurbineGovernorDynamics
@dataclass(config=DataclassConfig)
class GovGAST1(TurbineGovernorDynamics):
"""
Modified single sh... | PypiClean |
/dagster_pandas-1.0.5-py3-none-any.whl/dagster_pandas/validation.py | from dagster_pandas.constraints import (
CategoricalColumnConstraint,
ColumnDTypeFnConstraint,
ColumnDTypeInSetConstraint,
Constraint,
ConstraintViolationException,
DataFrameConstraint,
InRangeColumnConstraint,
NonNullableColumnConstraint,
UniqueColumnConstraint,
)
from pandas import... | PypiClean |
/glibc-0.6.1.tar.gz/glibc-0.6.1/pyglibc/select.py | from __future__ import absolute_import
from ctypes import POINTER
from ctypes import byref
from ctypes import cast
from errno import EBADF
from threading import Lock
from glibc import EPOLLERR
from glibc import EPOLLET
from glibc import EPOLLHUP
from glibc import EPOLLIN
from glibc import EPOLLMSG
from glibc import E... | PypiClean |
/pytorch_forecasting-1.0.0-py3-none-any.whl/pytorch_forecasting/metrics/_mqf2_utils.py | from typing import List, Optional, Tuple
from cpflows.flows import DeepConvexFlow, SequentialFlow
import torch
from torch.distributions import AffineTransform, Distribution, Normal, TransformedDistribution
import torch.nn.functional as F
class DeepConvexNet(DeepConvexFlow):
r"""
Class that takes a partially ... | PypiClean |
/glance-26.0.0.0b3.tar.gz/glance-26.0.0.0b3/doc/source/admin/policies.rst | ..
Copyright 2012 OpenStack Foundation
All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
... | PypiClean |
/toolcli-0.6.5.tar.gz/toolcli-0.6.5/docs/command_execution_sequence.md |
## Command Execution Sequence
- starting with a raw command, command execution is similar to the following:
```python
command_sequence = parse_command_sequence(raw_command)
command_spec = resolve_command_spec(command_index[command_sequence])
command_args = parse_command_args(raw_command, command_spec['args'])
_execute... | PypiClean |
/dimahelpers-0.1.0.tar.gz/dimahelpers-0.1.0/doc/docs/usage-cli.md | # Command-Line Usage
Once installation is complete, an executable will be added to PATH which can be accessed as below:
**Linux**
`dima-cli -h`
**Windows**
`dima-cli.exe -h`
**MacOS**
`dima-cli -h`
## Basic Usage
`dima-cli -i sequences.fasta -o output.json -l 9`
`dima-cli -i sequences.fasta | grep supports`
##... | PypiClean |
/monk_keras_cuda101_test-0.0.1-py3-none-any.whl/monk/pytorch/losses/retrieve_loss.py | from monk.pytorch.losses.imports import *
from monk.system.imports import *
@accepts(dict, post_trace=False)
#@TraceFunction(trace_args=False, trace_rv=False)
def retrieve_loss(system_dict):
'''
Retrieve loss post state changes
Args:
system_dict (dict): System dictionary storing experiment state ... | PypiClean |
/lib_path-1.0.4.tar.gz/lib_path-1.0.4/ISSUE_TEMPLATE.md | * **I'm submitting a ... **
- [ ] bug report
- [ ] feature request
- [ ] support request
* **Do you want to request a *feature* or report a *bug*?**
* **What is the current behavior?**
* **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem... | PypiClean |
/django_adminx-2.0.3-py3-none-any.whl/xadmin/plugins/bookmark.py | from django.contrib.contenttypes.models import ContentType
from django.urls.base import reverse
from django.db import transaction
from django.db.models import Q
from django.forms import ModelChoiceField
from django.http import QueryDict
from django.template import loader
from django.utils.decorators import method_decor... | PypiClean |
/pacman_ipam-0.9.6.tar.gz/pacman_ipam-0.9.6/pacman/utils/utils.py | import datetime, os, configparser
msgbuffer = []
guibuffer = []
def logmsg(msg, toFile = False, toGUI = True):
"""
Logs message to GUI and text file
Parameters
----------
msg : string
Message to log.
toFile : boolean, optional
Whether to write to log file or only to window cons... | PypiClean |
/mxnet_cu115-1.9.1-py3-none-manylinux2014_x86_64.whl/mxnet/contrib/quantization.py | try:
from scipy import stats
except ImportError:
stats = None
import ctypes
import logging
import os
import shutil
import warnings
import numpy as np
from ..base import _LIB, check_call, py_str
from ..base import c_array, c_str, mx_uint, c_str_array
from ..base import NDArrayHandle, SymbolHandle
from ..symbol ... | PypiClean |
/tensorflow-2.1.1-cp36-cp36m-macosx_10_11_x86_64.whl/tensorflow_core/python/layers/normalization.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
from tensorflow.python.keras.layers import normalization as keras_normalization
from tensorflow.python.layers import base
from tensorflow.python.ops import init_ops
from tensorflow.python.util import deprecati... | PypiClean |
/tensorflow_ascend-1.15.0-cp37-cp37m-manylinux2014_aarch64.whl/tensorflow_core/python/ops/lookup_ops.py | """Lookup operations."""
# pylint: disable=g-bad-name
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import collections
import functools
import uuid
import six
from tensorflow.python.compat import compat as fwd_compat
from tensorflow.python.eager import co... | PypiClean |
/zegami-sdk-testrelease-0.4.6.tar.gz/zegami-sdk-testrelease-0.4.6/README.md | # Zegami Python SDK
An SDK and general wrapper for the lower level Zegami API for Python. This package provides higher level collection interaction and data retrieval.
# Getting started
Grab this repo, open the script, and load an instance of ZegamiClient into a variable.
```
from zegami_sdk.client import ZegamiClien... | PypiClean |
/uniBert-0.2.1.tar.gz/uniBert-0.2.1/unibert/bert_qa/bert_qa.py | import math
import torch
import torch.nn as nn
import torch.nn.functional as F
from torch.autograd import Variable
from pytorch_transformers import *
from torch.nn.functional import softmax, sigmoid
from sklearn.preprocessing import MultiLabelBinarizer
from nlp2 import *
class BCEFocalLoss(nn.Module):
def __init... | PypiClean |
/horizon-23.2.0.tar.gz/horizon-23.2.0/doc/source/install/install-ubuntu.rst | ================================
Install and configure for Ubuntu
================================
This section describes how to install and configure the dashboard
on the controller node.
The only core service required by the dashboard is the Identity service.
You can use the dashboard in combination with other serv... | PypiClean |
/noc-0.7(3).tar.gz/noc-0.7(3)/sa/apps/switchportvalidation/views.py |
## NOC modules
from noc.lib.app.saapplication import SAApplication
##
## Reduce task for switchport validation
##
def switchport_validation_reduce(task):
from noc.lib.app.simplereport import Report, TableSection, SectionRow
from noc.lib.text import list_to_ranges
switchports = {} # object -> interface -... | PypiClean |
/alcoholic_tfe22540-0.1.12.tar.gz/alcoholic_tfe22540-0.1.12/tfe22540/comportement.py | import seaborn as sns
import pandas as pd
import numpy as np
import xlsxwriter
import matplotlib.patches as mpatches
import matplotlib.pyplot as plt
from tfe22540.perso_path import perso_path_string, patient_number_list
perso_path, excel_path, subjects_path, patients_path, plot_path, atlas_path = perso_path_string()... | PypiClean |
/changelly-0.11.tar.gz/changelly-0.11/README.md | ## Changelly Exchange API Client
[](https://www.gnu.org/licenses/lgpl-3.0)

[ is the world’s largest DNS intelligence database that provides a unique, fact-based, multifaceted view of the configuration of the global Internet infrastructure. DNSDB leverages... | PypiClean |
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/setuptools/_distutils/dist.py | import sys
import os
import re
import pathlib
import contextlib
from email import message_from_file
try:
import warnings
except ImportError:
warnings = None
from distutils.errors import (
DistutilsOptionError,
DistutilsModuleError,
DistutilsArgError,
DistutilsClassError,
)
from distutils.fancy... | PypiClean |
/pk-dlp-2023.3.4.tar.gz/pk-dlp-2023.3.4/yt_dlp/extractor/tokentube.py | import functools
import re
from .common import InfoExtractor
from ..utils import (
clean_html,
get_element_by_class,
parse_count,
remove_end,
unified_strdate,
js_to_json,
OnDemandPagedList,
)
class TokentubeIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?tokentube\.net/(?:view\?[... | PypiClean |
/dp_cgans-0.0.4.tar.gz/dp_cgans-0.0.4/src/dp_cgans/constraints/base.py |
import copy
import importlib
import inspect
import logging
import warnings
import pandas as pd
from copulas.multivariate.gaussian import GaussianMultivariate
from copulas.univariate import GaussianUnivariate
from rdt import HyperTransformer
from sdv.constraints.errors import MissingConstraintColumnError
LOGGER = lo... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/users/item/authentication/microsoft_authenticator_methods/item/device/registered_users/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 |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/KoubeiCateringDishRuleCreateRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.KoubeiCateringDishRuleCreateModel import KoubeiCateringDishRuleCreateModel
class KoubeiCateringDishRuleCreateRequest(object):
def __init__(self, biz_model=None):
sel... | PypiClean |
/cfcapi-1.0.1.tar.gz/cfcapi-1.0.1/README.md | [//]: # (1 Project's title)
# cfcapi
[//]: # (2 Project description)
`Python` API to interact with the Caonabo Fluidic Controller (CFC).
The CFC is a board that allows one to control a total of 50 valves to manipulate the flow of chemicals.
It is composed of five valve modules and one control module. Each valve module... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/metarhiziumrobertsii.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def MetarhiziumRobertsii(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/string",
**additional_graph_kwargs: D... | PypiClean |
/BoltzTraP2-22.12.1.tar.gz/BoltzTraP2-22.12.1/external/spglib-1.9.9/database/make_VSpU.py |
import sys
import numpy as np
from sage.all import *
def get_VSpU( M ):
N = copy(M)
for i in range(N.nrows()):
N[i,i%3] -= 1
S,U,V = N.smith_form()
Sp = Matrix( QQ, S.transpose() )
for i in range(3):
if not Sp[i,i]==0:
Sp[i,i] = 1.0 / Sp[i,i]
return V*Sp*U
def ge... | PypiClean |
/ais-libpythonpro-0.2.tar.gz/ais-libpythonpro-0.2/README.md | # libpythonpro
Módulo para exemplificar construção de projetos Python no curso PyTools
Suportada Versão do Python 3
[](https://pyup.io/repos/github/Aislanfagundes/libpythonpro/)
[:
def __init_... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/storage/v20200801preview/queue.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = ['Queue']
class Queue(pulumi.CustomResource):
def __init__(__self__,
resource_name: str,
opts: Optional[pulumi.ResourceOp... | PypiClean |
/sumotools-0.7.2.tar.gz/sumotools-0.7.2/traci/_simulation.py |
# @file _simulation.py
# @author Daniel Krajzewicz
# @author Jakob Erdmann
# @author Michael Behrisch
# @date 2011-03-15
# @version $Id$
from __future__ import absolute_import
import struct
import collections
from . import constants as tc
from .domain import Domain
from .storage import Storage
Stage = colle... | PypiClean |
/sierra-research-1.3.5.tar.gz/sierra-research-1.3.5/README.rst | ===========================================================================
SIERRA (reSearch pIpEline for Reproducibility, Reusability, and Automation)
===========================================================================
.. |pepy-downloads| image:: https://pepy.tech/badge/sierra-research
:ta... | PypiClean |
/datalad_deprecated-0.3.0-py3-none-any.whl/datalad_deprecated/metadata/extractors/datalad_rfc822.py | import logging
lgr = logging.getLogger('datalad.metadata.extractors.datalad_rfc822')
from os.path import exists
import email
import email.parser # necessary on Python 2.7.6 (trusty)
from os.path import join as opj
from datalad.interface.base import dedent_docstring
from .base import BaseMetadataExtractor
def _split... | PypiClean |
/genx3-3.6.22.tar.gz/genx3-3.6.22/genx/levenberg_marquardt.py | import pickle
import _thread
from dataclasses import dataclass
from numpy import *
from scipy.optimize import leastsq
from .exceptions import ErrorBarError, OptimizerInterrupted
from .core.config import BaseConfig
from .core.custom_logging import iprint
from .model import Model
from .solver_basis import GenxOptimizer... | PypiClean |
/PyZSI3-2.2.tar.gz/PyZSI3-2.2/ZSI/twisted/interfaces.py |
import sys, warnings
# twisted & related imports
from zope.interface import classProvides, implements, Interface
# ZSI imports
from ZSI import EvaluateException, ParseException, ParsedSoap, SoapWriter
#
# Stability: Unstable
#
def CheckInputArgs(*interfaces):
"""Must provide at least one interface, the last... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.