id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/biosimulators_utils-0.1.186.tar.gz/biosimulators_utils-0.1.186/biosimulators_utils/simulator/io.py | from ..biosimulations.utils import validate_biosimulations_api_response
from ..config import get_config
from ..utils.core import patch_dict
from ..globals import JSONType
import json
import os
import requests
import simplejson as complexjson
import simplejson.errors
def read_simulator_specs(path_or_url: str, patch: d... | PypiClean |
/PyQNet-0.2.0.tar.gz/PyQNet-0.2.0/qnet/callbacksender.py | from qnet import sender
import logging
log = logging.getLogger( 'qnet.sender.callback' )
import traceback
import Queue
class CallbackSender( sender.Sender ):
"""Callback-calling sending class for qnet
"""
LOG_UNHANDLED = False
def __init__( self, *args, **named ):
super( CallbackSender, self ... | PypiClean |
/pyicare-1.0.0-py3-none-any.whl/icare/snp_model.py | import pathlib
from typing import List, Union, Optional, Tuple
import numpy as np
import pandas as pd
from icare import utils, check_errors, design_matrix
from icare.covariate_model import CovariateModel
def extract_snp_info(info_path: Union[str, pathlib.Path, None]) -> Tuple[List[str], np.ndarray, np.ndarray]:
... | PypiClean |
/geowatch-0.9.4.tar.gz/geowatch-0.9.4/dev/debug/gdal_regression.sh | docker run -it python:3.6 /bin/bash -c 'pip install GDAL==2.4.1 --find-links https://girder.github.io/large_image_wheels --no-index && time python -c "import osgeo; print(osgeo.__file__, osgeo.__version__)"'
# Fast: 0.118 seconds on namek, 0.058s on horologic
docker run -it python:3.6 /bin/bash -c 'pip install GDAL==3... | PypiClean |
/ethpwn-py-evm-0.7.0a4.tar.gz/ethpwn-py-evm-0.7.0a4/eth/vm/opcode_values.py | STOP = 0x00
ADD = 0x01
MUL = 0x02
SUB = 0x03
DIV = 0x04
SDIV = 0x05
MOD = 0x06
SMOD = 0x07
ADDMOD = 0x08
MULMOD = 0x09
EXP = 0x0A
SIGNEXTEND = 0x0B
#
# Comparison and Bitwise Logic
#
LT = 0x10
GT = 0x11
SLT = 0x12
SGT = 0x13
EQ = 0x14
ISZERO = 0x15
AND = 0x16
OR = 0x17
XOR = 0x18
NOT = 0x19
BYTE = 0x1A
SHL = 0x1B
SHR... | PypiClean |
/stockstir-1.0.3.tar.gz/stockstir-1.0.3/docs/code structure.rst | Code Structure
==============
In the code, there are two classes:::
gatherInfo
Tools
The gatherInfo class
--------------------
The **gatherInfo** class consists of three functions: two to gather the source code of a web page and one to return the price based on the source code. These three functions are **getSour... | PypiClean |
/rllte_core-0.0.1b1.tar.gz/rllte_core-0.0.1b1/docs/api_docs/xplore/augmentation/random_rotate.md | #
## RandomRotate
[source](https://github.com/RLE-Foundation/rllte/blob/main/rllte/xplore/augmentation/random_rotate.py/#L31)
```python
RandomRotate(
p: float = 0.2
)
```
---
Random rotate operation for processing image-based observations.
**Args**
* **p** (float) : The image rotate problistily in a batch.
... | PypiClean |
/rai_toolbox-0.3.1rc3.tar.gz/rai_toolbox-0.3.1rc3/src/rai_toolbox/optim/lp_space.py |
from functools import partial
from typing import Any, Dict, Optional, Union
import torch
from torch import Generator, Tensor, default_generator
from torch.optim import SGD
from typing_extensions import Final
from rai_toolbox._typing import Optimizer as Opt, OptimizerType, OptimParams, Partial
from rai_toolbox._utils... | PypiClean |
/odoo13_addon_base_export_manager-13.0.1.0.1-py3-none-any.whl/odoo/addons/base_export_manager/models/ir_exports_line.py |
from odoo import _, api, exceptions, fields, models
class IrExportsLine(models.Model):
_inherit = "ir.exports.line"
_order = "sequence,id"
name = fields.Char(
store=True,
compute="_compute_name",
inverse="_inverse_name",
help="Field's technical name.",
)
field1_id... | PypiClean |
/seed_intersphinx_mapping-1.2.2.tar.gz/seed_intersphinx_mapping-1.2.2/seed_intersphinx_mapping/__init__.py | #
# Copyright © 2020-2022 Dominic Davis-Foster <dominic@davis-foster.co.uk>
#
# 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
... | PypiClean |
/mxm.midifile-1.1.tar.gz/mxm.midifile-1.1/mxm/midifile/docs/readme.md | Overall architecture
====================
Files overview.
**constants.py** contains all the midi constants used in the library.
**data_type_converters.py** contains all the functions that converts to the specific data types used in the midi format.
**raw_instream_file.py** and **raw_outstream_file.py** reads and wr... | PypiClean |
/pythondata_cpu_blackparrot-0.0.post1804-py3-none-any.whl/pythondata_cpu_blackparrot/system_verilog/GETTING_STARTED.md | # Getting started (Quickstart)
# Clone the latest repo
git clone https://github.com/black-parrot/pre-alpha-release.git
cd pre-alpha-release
# Install a minimal set of tools
make verilator
make ucode
make libs
# Running your first test
cd bp_top/syn
make build.sc sim.sc PROG=hel... | PypiClean |
/kidx-core-0.0.1a2.tar.gz/kidx-core-0.0.1a2/kidx_core/actions/action.py | import logging
import typing
from typing import List, Text, Optional, Dict, Any
import requests
import copy
import kidx_core
from kidx_core import events
from kidx_core.constants import (
DOCS_BASE_URL,
DEFAULT_REQUEST_TIMEOUT,
REQUESTED_SLOT, FALLBACK_SCORE, USER_INTENT_OUT_OF_SCOPE)
from kidx_core.event... | PypiClean |
/django-admin-adminlte-1.0.5.tar.gz/django-admin-adminlte-1.0.5/admin_adminlte/static/plugins/summernote/lang/summernote-en-US.js | (function webpackUniversalModuleDefinition(root, factory) {
if(typeof exports === 'object' && typeof module === 'object')
module.exports = factory(require("jQuery"));
else if(typeof define === 'function' && define.amd)
define(["jQuery"], factory);
else {
var a = typeof exports === 'object' ? factory(require("j... | PypiClean |
/Flask-Cachual-0.2.0.tar.gz/Flask-Cachual-0.2.0/flask_cachual.py | from flask import current_app
from functools import wraps
import cachual
__version__ = '0.2.0'
class Cachual(object):
"""This object ties the Flask application object to the Cachual library by
setting the ``cachual_cache`` attribute of the application instance to the
Cachual cache as specified by the ap... | PypiClean |
/dataos_sdk_py-0.0.1-py3-none-any.whl/heimdall/auth/authorizer.py | import logging
from pydantic.fields import Dict, Tuple
from requests import HTTPError
from heimdall.auth.policy_enforcement_provider import PolicyEnforcementProvider
from heimdall.heimdall_client import HeimdallClient
from heimdall.models.authorization_request import AuthorizationRequest, PepContext, AuthorizationReq... | PypiClean |
/dcextensions-0.0.1.tar.gz/dcextensions-0.0.1/docs/_build/html/_static/doctools.js | * select a different prefix for underscore
*/
$u = _.noConflict();
/**
* make the code below compatible with browsers without
* an installed firebug like debugger
if (!window.console || !console.firebug) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
"dirxml", "group", "groupEnd", "... | PypiClean |
/lpd_nodeps-0.4.12-py3-none-any.whl/lpd/callbacks/scheduler_step.py | from lpd.enums import Phase, State
from lpd.callbacks.callback_base import CallbackBase
from lpd.callbacks.callback_context import CallbackContext
from lpd.utils.torch_utils import get_lrs_from_optimizer
from typing import Union, List, Optional, Dict, Callable
class SchedulerStep(CallbackBase):
"""This callback wi... | PypiClean |
/django-player-0.1.0-beta7.tar.gz/django-player-0.1.0-beta7/player/data/models.py |
from datetime import datetime
from django.db import models
from django.db.models.signals import post_save
from django.utils.translation import ugettext
from django.utils.translation import ugettext_lazy as _
from configfield.dbfields import JSONField
from player.logicaldelete import models as logicaldelete_models
fr... | PypiClean |
/ibsplib-0.1.0.tar.gz/ibsplib-0.1.0/README.md | # IBSPLib
ibsplib is Python package for working with Quake 3 IBSP structures
References were taken from http://www.mralligator.com/q3
- Parsing IBSP
- No dependencies
- Typings & code completion included
- More to come....
### Installation
Available on PyPI, just:
```sh
pip install ibsplib
```
### Usage
```py
from ... | PypiClean |
/scikit-vi-0.1.zip/scikit-vi-0.1/ez_setup.py | import sys
DEFAULT_VERSION = "0.6c11"
DEFAULT_URL = "http://pypi.python.org/packages/%s/s/setuptools/" % sys.version[:3]
md5_data = {
'setuptools-0.6b1-py2.3.egg': '8822caf901250d848b996b7f25c6e6ca',
'setuptools-0.6b1-py2.4.egg': 'b79a8a403e4502fbb85ee3f1941735cb',
'setuptools-0.6b2-py2.3.egg': '565775... | PypiClean |
/tomsk-energosbyt-python-0.0.23a1.tar.gz/tomsk-energosbyt-python-0.0.23a1/inter_rao_energosbyt/actions/sql/subscriber.py | from collections import Mapping
from typing import Any, Optional, TYPE_CHECKING
import attr
from inter_rao_energosbyt.actions import DataMapping
from inter_rao_energosbyt.actions.sql import ACTION_SQL
if TYPE_CHECKING:
from inter_rao_energosbyt.interfaces import BaseEnergosbytAPI
@attr.s(kw_only=True, frozen=T... | PypiClean |
/nni_yds-0.3.7-py3-none-any.whl/nni_yds-0.3.7.data/data/nni/node_modules/joi/test/index.js |
var Lab = require('lab');
var Code = require('code');
var Joi = require('../lib');
var Helper = require('./helper');
// Declare internals
var internals = {};
// Test shortcuts
var lab = exports.lab = Lab.script();
var describe = lab.describe;
var it = lab.it;
var expect = Code.expect;
describe('Joi', function ... | PypiClean |
/lilacai-0.0.9.tar.gz/lilacai-0.0.9/lilac/web/_app/immutable/entry/app.9bafe1f9.js | import{S as C,i as q,s as U,a as j,e as p,c as z,b,d as h,f as P,g as d,h as g,j as W,o as F,k as G,l as H,m as J,n as A,p as m,q as K,r as M,u as Q,v as y,w as D,x as E,y as v,z as I,A as R,B as L}from"../chunks/index.f491bb8d.js";const X="modulepreload",Y=function(a,e){return new URL(a,e).href},O={},w=function(e,n,i)... | PypiClean |
/hazen-1.3.0-py3-none-any.whl/hazenlib/tasks/ghosting.py | import os
import sys
import traceback
import numpy as np
import cv2 as cv
import hazenlib.utils
from hazenlib.HazenTask import HazenTask
class Ghosting(HazenTask):
def __init__(self, **kwargs):
super().__init__(**kwargs)
def run(self) -> dict:
ghosting_results = {}
for dcm in self.... | PypiClean |
/etl-parser-1.0.1.tar.gz/etl-parser-1.0.1/etl/parsers/etw/Microsoft_Windows_Kernel_Prefetch.py | from construct import Int8sl, Int8ul, Int16ul, Int16sl, Int32sl, Int32ul, Int64sl, Int64ul, Bytes, Double, Float32l, Struct
from etl.utils import WString, CString, SystemTime, Guid
from etl.dtyp import Sid
from etl.parsers.etw.core import Etw, declare, guid
@declare(guid=guid("5322d61a-9efa-4bc3-a3f9-14be95c144f8"), ... | PypiClean |
/platon_env-1.3.5-py3-none-any.whl/platon_env/factory/factory.py | import json
from dataclasses import dataclass, field, asdict
from typing import List
from dacite import from_dict
from platon_env.utils import concurrent_executor
from ruamel import yaml
from platon_env.base.host import Host
from platon_env.node import Node
from platon_env.utils.key import gen_node_keypair, gen_bls_ke... | PypiClean |
/cosmos_ingest-0.1-py3-none-any.whl/ingest/process/app.py | import base64
import uuid
import falcon
from .schema import Pdf, Page, PageObject
import uuid
import tempfile
import json
from sqlalchemy import create_engine
from sqlalchemy.orm import sessionmaker
import click
import os
import io
import subprocess
import glob
from PIL import Image, UnidentifiedImageError
from process... | PypiClean |
/tw2.ckeditor-2.0.1.tar.gz/tw2.ckeditor-2.0.1/tw2/ckeditor/static/4.0.1/plugins/specialchar/dialogs/lang/pt-br.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","pt-br",{euro:"Euro",lsquo:"Aspas simples esquerda",rsquo:"Aspas simples direita",ldquo:"Aspas duplas esquerda",rdquo:"Aspas duplas d... | PypiClean |
/treasury_prime_client-1.13.548.tar.gz/treasury_prime_client-1.13.548/treasury_prime_client/model/person_application.py | import re # noqa: F401
import sys # noqa: F401
from treasury_prime_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_ty... | PypiClean |
/SIR-0.17.tar.gz/SIR-0.17/sir/variables/api.py | from flask import g
import sir.helpers.api
def _variables_post(request):
# curl -i -H "Content-Type: application/json" -X POST -d '{"name": "test", "category": "development", "content": {"ads": "qwe", "asd": "zxc"}}' http://127.0.0.1:5000/api/v1.0/variables
db = getattr(g, 'db')
name = request.json.get('... | PypiClean |
/django-tabular-export-1.1.0.tar.gz/django-tabular-export-1.1.0/tabular_export/core.py | from __future__ import absolute_import, division, print_function, unicode_literals
import csv
import datetime
import sys
from functools import wraps
from itertools import chain
import xlsxwriter
from django.conf import settings
from django.http import HttpResponse, StreamingHttpResponse
from django.utils.encoding imp... | PypiClean |
/hiphive-1.2.tar.gz/hiphive-1.2/doc/source/moduleref/core.rst | .. index::
single: Function reference; Core components
single: Class reference; Core components
Core components
===============
The low-level functions and classes described here are part of the
:program:`hiPhive` core components and not intended to be used *directly*
during normal operation.
`config`
--------... | PypiClean |
/nb_workflows-0.8.0a5.tar.gz/nb_workflows-0.8.0a5/nb_workflows/cmd/executors.py | import json
import os
import sys
import click
from rich import print_json
from rich.console import Console
from nb_workflows import client, defaults
from nb_workflows.client.diskclient import DiskClient
from nb_workflows.conf import load_client
from nb_workflows.context import create_dummy_ctx
from nb_workflows.execu... | PypiClean |
/watson_machine_learning_client_V4-1.0.135-py3-none-any.whl/watson_machine_learning_client/helpers/connections/base_data_connection.py | __all__ = [
"BaseDataConnection"
]
import io
import json
from abc import ABC, abstractmethod
from typing import Union, Tuple, TYPE_CHECKING
import requests
from pandas import concat
from watson_machine_learning_client.utils.autoai.utils import try_load_dataset
from watson_machine_learning_client.utils.autoai.e... | PypiClean |
/haas-python-ds18b20-0.0.8.tar.gz/haas-python-ds18b20-0.0.8/ds18b20.py | from driver import GPIO
from onewire import OneWire
from machine import Pin
import time
class DS18B20():
def __init__(self, gpioObj, resolution=12):
self.pin = None
if not isinstance(gpioObj, GPIO):
raise ValueError("parameter is not a GPIO object")
self.pin = gpioObj.port()
... | PypiClean |
/Flask_AdminLTE3-1.0.9-py3-none-any.whl/flask_adminlte3/static/plugins/summernote/lang/summernote-pl-PL.min.js | !function(e,a){if("object"==typeof exports&&"object"==typeof module)module.exports=a();else if("function"==typeof define&&define.amd)define([],a);else{var o=a();for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,(function(){return(e=jQuery).extend(e.summernote.lang,{"pl-PL":{font:{bold:"Pogrubienie",ita... | PypiClean |
/scArchest-0.0.1-py3-none-any.whl/scarches/dataset/trvae/anndata.py | import numpy as np
import torch
from torch.utils.data import Dataset
from scipy import sparse
from .data_handling import remove_sparsity
from ._utils import label_encoder
class AnnotatedDataset(Dataset):
def __init__(self,
adata,
condition_key=None,
condition_en... | PypiClean |
/pulsar_client-3.3.0-cp39-cp39-macosx_10_15_universal2.whl/pulsar/schema/schema_avro.py |
import _pulsar
import io
import json
import logging
import enum
from . import Record
from .schema import Schema
try:
import fastavro
HAS_AVRO = True
except ImportError:
HAS_AVRO = False
if HAS_AVRO:
class AvroSchema(Schema):
def __init__(self, record_cls, schema_definition=None):
... | PypiClean |
/openqaoa-core-0.2.0rc1.tar.gz/openqaoa-core-0.2.0rc1/openqaoa/optimizers/pennylane/pennylane_optimizers/nesterov_momentum.py |
# 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
# Unless required by applicable law or agreed to in writing, software
# distributed under the... | PypiClean |
/das7pad-dns-lexicon-3.5.1.post1.tar.gz/das7pad-dns-lexicon-3.5.1.post1/lexicon/providers/dnsmadeeasy.py | from __future__ import absolute_import
import hmac
import json
import logging
from builtins import bytes
from email.utils import formatdate
from hashlib import sha1
import requests
from requests.adapters import HTTPAdapter
from urllib3.util.retry import Retry
from lexicon.providers.base import Provider as BaseProvid... | PypiClean |
/Optimus_foundation_5-5.2.2.1.tar.gz/Optimus_foundation_5-5.2.2.1/optimus_foundation_5/sources/js/foundation5/foundation/foundation.reveal.js | ;(function ($, window, document, undefined) {
'use strict';
Foundation.libs.reveal = {
name : 'reveal',
version : '5.2.2',
locked : false,
settings : {
animation: 'fadeAndPop',
animation_speed: 250,
close_on_background_click: true,
close_on_esc: true,
dismiss_modal_... | PypiClean |
/django-adminlte-full-0.2.0.tar.gz/django-adminlte-full-0.2.0/adminlte_full/static/adminlte_full/plugins/moment/locale/bg.js |
;(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined'
&& typeof require === 'function' ? factory(require('../moment')) :
typeof define === 'function' && define.amd ? define(['../moment'], factory) :
factory(global.moment)
}(this, (function (moment) { 'use strict';
... | PypiClean |
/px-snowball-0.1.0.tar.gz/px-snowball-0.1.0/README.md | # Snowball
Library with several utilities for merging "n+1" amount function calls into one.
This utilities might be helpful for tasks/functions that should run not very frequently, but there could be a lot of initiating calls to that functions.
## Installation
```sh
pip install px-snowball
```
## Usage
Simple usa... | PypiClean |
/newlandface_r-0.1.tar.gz/newlandface_r-0.1/newlandface_r/basemodels/Facenet.py | import os
from pathlib import Path
import gdown
from functools import partial
from keras.models import Model
from keras.layers import Activation
from keras.layers import BatchNormalization
from keras.layers import Concatenate
from keras.layers import Conv2D
from keras.layers import Dense
from keras.layers import Dropo... | PypiClean |
/olive-oil-ml-0.11.tar.gz/olive-oil-ml-0.11/oil/tuning/slurmExecutor.py | import dill
from ast import literal_eval
import sys,os,stat
import time
import tempfile
import atexit
import subprocess
from concurrent import futures
from functools import partial
import itertools
import torch
from oil.tuning.localGpuExecutor import LocalGpuExecutor
def kwargs_to_list(kwargs):
return ["%s%s"%(('-... | PypiClean |
/boxd-client-0.2.0.tar.gz/boxd-client-0.2.0/boxd_client/proto/control_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 |
/couchbase-4.1.8rc1-cp310-cp310-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_24_x86_64.whl/acouchbase/binary_collection.py |
from typing import (TYPE_CHECKING,
Any,
Awaitable,
Union)
from couchbase.result import CounterResult, MutationResult
if TYPE_CHECKING:
from couchbase.options import (AppendOptions,
DecrementOptions,
... | PypiClean |
/ztext-0.0.8.tar.gz/ztext-0.0.8/README.md | # ztext
This project is designed for NLP analysis eaily, event you don't have any background of NLP you still can use it for text insights.
Functions:
1. Text clean.
2. Topic analysis
3. SVO (Subject Verb and Object extraction)
4. NER (Entity extraction)
5. Topic and SVO visualization (for now Visualization ... | PypiClean |
/flowui-project-0.0.3.tar.gz/flowui-project-0.0.3/flowui/operators/bash_operator.py | from airflow.operators.bash import BashOperator as AirflowBashOperator
from airflow.utils.context import Context
from airflow.exceptions import AirflowException, AirflowSkipException
from pathlib import Path
import json
import os
class BashOperator(AirflowBashOperator):
def execute(self, context: Context):
... | PypiClean |
/pyserpzotero-1.0.14.tar.gz/pyserpzotero-1.0.14/node_modules/bittorrent-dht/test/dht_store_immutable.js | var common = require('./common')
var DHT = require('../')
var test = require('tape')
test('local immutable put/get', function (t) {
t.plan(3)
var dht = new DHT({ bootstrap: false })
t.once('end', function () {
dht.destroy()
})
common.failOnWarningOrError(t, dht)
dht.on('ready', function () {
var ... | PypiClean |
/mxnet_cu102-2.0.0b1-py3-none-manylinux2014_x86_64.whl/mxnet/gluon/probability/distributions/poisson.py |
# coding: utf-8
# pylint: disable=wildcard-import
"""Poisson distribution."""
__all__ = ['Poisson']
from numbers import Number
from .exp_family import ExponentialFamily
from .constraint import Positive, NonNegativeInteger
from .utils import gammaln
from .... import np, npx
class Poisson(ExponentialFamily):
r"""... | PypiClean |
/google-cloud-bigquery-data-exchange-0.5.5.tar.gz/google-cloud-bigquery-data-exchange-0.5.5/README.rst | Python Client for BigQuery Analytics Hub
========================================
|preview| |pypi| |versions|
`BigQuery Analytics Hub`_: is a data exchange that allows you to efficiently and securely exchange data assets across organizations to address challenges of data reliability and cost.
- `Client Library Docum... | PypiClean |
/arts_localisation-1.0.tar.gz/arts_localisation-1.0/arts_localisation/run_localisation.py |
import os
import argparse
import logging
import numpy as np
import matplotlib.pyplot as plt
import astropy.units as u
from astropy.coordinates import SkyCoord
from astropy.visualization.wcsaxes import SphericalCircle
from scipy import stats
from arts_localisation import tools
from arts_localisation.constants import ... | PypiClean |
/databricks_client-0.0.3.tar.gz/databricks_client-0.0.3/README.md | # databricks-client
## About
A REST client for the [Databricks REST API](https://docs.databricks.com/dev-tools/api/latest/index.html).
This module is a thin layer allowing to build HTTP [Requests](https://requests.readthedocs.io/en/master/).
It does not expose API operations as distinct methods, but rather exposes g... | PypiClean |
/webtest-docgen-0.6.2.tar.gz/webtest-docgen-0.6.2/webtest_docgen/providers/base.py | import shutil
from os import makedirs
from os.path import exists, dirname, join
from webtest_docgen import DocumentationRoot, Resource, Document
class BaseProvider:
_files = []
def __init__(self, docs_root: DocumentationRoot, destination_dir: str):
self.destination_dir = destination_dir
sel... | PypiClean |
/python-abc-0.2.0.tar.gz/python-abc-0.2.0/README.md | # Python ABC
[][1]
A python implementation of [the ABC Software metric][2]:
> The ABC software metric was introduced by Jerry Fitzpatrick in 1997 to overcome the drawbacks of the LOC. The metric defines an ABC score as a triplet of values that repres... | PypiClean |
/SentinelOne-1.2.1.tar.gz/SentinelOne-1.2.1/management/mgmtsdk_v2/services/agent.py | import logging
from management.common.query_filter import QueryFilter, NoTenantScopeFilter
from management.mgmtsdk_v2.endpoints import GET_AGENTS, COUNT_AGENTS, \
GET_APPLICATIONS, GET_PASSPHRASES, GET_PROCESSES, EXPORT_LOGS
from management.mgmtsdk_v2.entities.agent import Agent, AgentCountSummary, \
Applicati... | PypiClean |
/geoai_rasterio-1.2.10-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.whl/rasterio/dtypes.py | bool_ = 'bool'
ubyte = uint8 = 'uint8'
sbyte = int8 = 'int8'
uint16 = 'uint16'
int16 = 'int16'
uint32 = 'uint32'
int32 = 'int32'
float32 = 'float32'
float64 = 'float64'
complex_ = 'complex'
complex64 = 'complex64'
complex128 = 'complex128'
complex_int16 = "complex_int16"
dtype_fwd = {
0: None, # GDT_Unknown
... | PypiClean |
/qudi-core-1.4.1.tar.gz/qudi-core-1.4.1/src/qudi/tools/config_editor/custom_widgets.py | __all__ = ['CustomItemsWidget', 'CustomOptionsWidget', 'CustomConnectorsWidget']
import os
from PySide2 import QtCore, QtWidgets, QtGui
from typing import Optional, Mapping, Union, Dict, Iterable, Any
from qudi.util.paths import get_artwork_dir
class CustomItemsWidget(QtWidgets.QWidget):
"""
"""
def __i... | PypiClean |
/django-sitecats-1.2.2.tar.gz/django-sitecats-1.2.2/docs/source/index.rst | django-sitecats documentation
=============================
https://github.com/idlesign/django-sitecats
Description
-----------
*Django reusable application for content categorization.*
Nay, - you say, - all that tags business lacks structuring.
This application is just about structuring your data: build categori... | PypiClean |
/ambition_screening-0.1.40-py3-none-any.whl/ambition_screening/early_withdrawal_evaluator.py | from ambition_visit_schedule import DAY1
from collections import OrderedDict
from django.apps import apps as django_apps
from django.contrib import messages
from django.core.exceptions import ObjectDoesNotExist
from edc_reportable import IU_LITER, TEN_X_9_PER_LITER
from .reportables import alt_ref, neutrophil_ref, pla... | PypiClean |
/openspace_train_environment-0.0.3-py3-none-any.whl/src/virtual_tuda/virtual_network_tuda.py | import json
from twisted.internet import reactor
from twisted.internet.endpoints import TCP4ClientEndpoint, connectProtocol
from src.network_daemon import TCPClient, MulticastNetworkServer
from src.train_unit_data_aggregator.network_train_unit_data_aggregator import NetworkTrainUnitDataAggregator
from src.virtual_tud... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/containerservice/v20180331/_inputs.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from ._enums import *
__all__ = [
'ContainerServiceLinuxProfileArgs',
'ContainerServiceNetworkProfileArgs',
'ContainerServiceSshConfigurationArgs',
'Contai... | PypiClean |
/ocrmypdf-14.2.1.tar.gz/ocrmypdf-14.2.1/misc/watcher.py | from __future__ import annotations
import json
import logging
import os
import shutil
import sys
import time
from datetime import datetime
from pathlib import Path
import pikepdf
from watchdog.events import PatternMatchingEventHandler
from watchdog.observers import Observer
from watchdog.observers.polling import Poll... | PypiClean |
/arm_pyart-1.15.2-cp39-cp39-macosx_10_9_x86_64.whl/pyart/correct/bias_and_noise.py | import numpy as np
from ..config import get_field_name, get_metadata
def correct_noise_rhohv(
radar,
urhohv_field=None,
snr_field=None,
zdr_field=None,
nh_field=None,
nv_field=None,
rhohv_field=None,
):
"""
Corrects RhoHV for noise according to eq. 6 in Gourley et al. 2006.
Th... | PypiClean |
/RosterServer-0.17.tar.gz/RosterServer-0.17/docs/html/_static/doctools.js | * select a different prefix for underscore
*/
$u = _.noConflict();
/**
* make the code below compatible with browsers without
* an installed firebug like debugger
if (!window.console || !console.firebug) {
var names = ["log", "debug", "info", "warn", "error", "assert", "dir",
"dirxml", "group", "groupEnd", "... | PypiClean |
/django-localflavor-4.0.tar.gz/django-localflavor-4.0/docs/_build/html/localflavor/kw.html.py | XXXXXXXXX XXXXX
XXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXX
XXXXX XXXXXXXXXXXXXXX XX
XXXXXXXXXXXXX XXXX XXXXXXX XXXXXXXXXXXXXXXXXX XXX XXXXXXXXXXXXXXXXXXXXX
XXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXX XX
XXXXX XXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXX... | PypiClean |
/Restr-0.1.6.tar.gz/Restr-0.1.6/restr/static/bower/codemirror/mode/clike/clike.js | CodeMirror.defineMode("clike", function(config, parserConfig) {
var indentUnit = config.indentUnit,
statementIndentUnit = parserConfig.statementIndentUnit || indentUnit,
dontAlignCalls = parserConfig.dontAlignCalls,
keywords = parserConfig.keywords || {},
builtin = parserConfig.builtin || {},
... | PypiClean |
/spotify.py-0.8.4.zip/spotify.py-0.8.4/spotify/components/authentication.py | from spotify.components.base import Component
from pyemitter import Emitter
import json
import logging
import re
RE_LANDING = re.compile(
r"new\sSpotify.Web.Login\(.*?(?P<params>\{.*\}),\s*?\d+,\s*?Spotify\.Web\.App.*?\);",
re.IGNORECASE | re.DOTALL
)
AUTH_ERRORS = {
'invalid_credentials': 'Invalid accou... | PypiClean |
/PyNDN-2.13b1.tar.gz/PyNDN-2.13b1/python/pyndn/util/exponential_re_express.py | import logging
from pyndn.interest import Interest
class ExponentialReExpress(object):
"""
You should call ExponentialReExpress.makeOnTimeout instead of the private
constructor. Create a new ExponentialReExpress where onTimeout expresses the
interest again with double the interestLifetime. If the inter... | PypiClean |
/cryptools-0.0.2.tar.gz/cryptools-0.0.2/cipher/aes.py | from Crypto.Cipher import AES
from random import randint
from functools import reduce
from binascii import hexlify
from .xor import xor
from ..util.pad import pad, unpad
def aes_ecb_encrypt(m, key, padding=True, output='hex'):
if isinstance(m, str):
m = m.encode('utf-8')
if isinstance(key, str):
... | PypiClean |
/embedding_reader-1.5.1-py3-none-any.whl/embedding_reader/piece_builder.py |
import pandas as pd
from collections import namedtuple
PIECES_BASE_COLUMNS = [
"filename",
"piece_start",
"piece_end",
"piece_length",
"batch_id",
"batch_start",
"batch_end",
"batch_length",
"last_piece",
]
def build_pieces(headers, batch_size, start, end, max_piece_size=100000,... | PypiClean |
/scikits.statsmodels-0.3.1.zip/scikits.statsmodels-0.3.1/scikits/statsmodels/docs/source/datasets/generated/longley.rst | Longley dataset
===============
Description
-----------
The Longley dataset contains various US macroeconomic
variables that are known to be highly collinear. It has been used to appraise
the accuracy of least squares routines.
Notes
-----
Number of Observations - 16
Number of Variables - 6
Variable name definit... | PypiClean |
/airbyte-cdk-PHLAIR-0.2.3.tar.gz/airbyte-cdk-PHLAIR-0.2.3/airbyte_cdk/sources/utils/schema_models.py |
from typing import Any, Dict, Optional, Type
from airbyte_cdk.sources.utils.schema_helpers import expand_refs
from pydantic import BaseModel, Extra
from pydantic.main import ModelMetaclass
from pydantic.typing import resolve_annotations
class AllOptional(ModelMetaclass):
"""
Metaclass for marking all Pydant... | PypiClean |
/odoo13_addon_l10n_es_ticketbai_api-13.0.1.5.8-py3-none-any.whl/odoo/addons/l10n_es_ticketbai_api/ticketbai/xml_schema.py | import logging
from base64 import b64encode
from datetime import datetime
from uuid import uuid4
from lxml import etree
from ..utils import utils as tbai_utils
_logger = logging.getLogger(__name__)
try:
import xmlsig
import xmltodict
from cryptography.hazmat.primitives import hashes
except (ImportError,... | PypiClean |
/secretflow_ray-2.2.0-cp38-cp38-macosx_10_16_x86_64.whl/secretflow_ray-2.2.0.data/purelib/ray/rllib/algorithms/sac/sac.py | import logging
from typing import Type, Dict, Any, Optional, Union
from ray.rllib.algorithms.algorithm_config import AlgorithmConfig, NotProvided
from ray.rllib.algorithms.dqn.dqn import DQN
from ray.rllib.algorithms.sac.sac_tf_policy import SACTFPolicy
from ray.rllib.policy.policy import Policy
from ray.rllib.utils i... | PypiClean |
/data_science_toolbox-0.1.4-py3-none-any.whl/data_science_toolbox/pandas/analysis/.ipynb_checkpoints/difference-checkpoint.py | import pandas as pd
import numpy as np
def pct_change_from_col(df, anchor_col, diff_col):
""" Given two columns of values, compute the percent change
in vectorized manner
Parameters
----------
df : DataFrame
Dataframe of data
anchor_col : str
The column name of from which t... | PypiClean |
/bmlx-argo-workflows-1.0.5.tar.gz/bmlx-argo-workflows-1.0.5/docs/V1alpha1CronWorkflowStatus.md | # V1alpha1CronWorkflowStatus
CronWorkflowStatus is the status of a CronWorkflow
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**active** | [**list[V1ObjectReference]**](V1ObjectReference.md) | Active is a list of active workflows stemming from this CronWor... | PypiClean |
/django-periodically-0.3.0.tar.gz/django-periodically-0.3.0/periodically/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 'ExecutionRecord'
db.create_table('periodically_executionrecord', (
('id', self.gf('django.db.mod... | PypiClean |
/sematic_ee-0.0.1-py3-none-any.whl/sematic/api/endpoints/auth.py | import functools
from http import HTTPStatus
from typing import Callable
# Third-party
import flask
from google.auth.exceptions import GoogleAuthError
from google.auth.transport import requests
from google.oauth2 import id_token
from sqlalchemy.orm.exc import NoResultFound
# Sematic
from sematic.api.app import semati... | PypiClean |
/cortex_command_mod_converter_engine-1.0.18-py3-none-any.whl/cortex_command_mod_converter_engine/bmp_to_png.py | from pathlib import Path
import numpy as np
from PIL import Image
def is_bmp(full_filename):
return Path(full_filename).suffix.lower() == ".bmp"
def get_bmp_compression_method(img):
img.seek(0x1E)
return int.from_bytes(img.read(4), byteorder="little")
def is_bmp_rle8_compressed(img):
return get_b... | PypiClean |
/tangocard-raasv2-1.0.0b0.tar.gz/tangocard-raasv2-1.0.0b0/raas_v2/models/create_order_request_model.py | import raas_v2.models.name_email_model
class CreateOrderRequestModel(object):
"""Implementation of the 'CreateOrderRequest' model.
Create Order Request
Attributes:
account_identifier (string): Account Identifier
amount (float): Amount
customer_identifier (string): Customer Identi... | PypiClean |
/openerp-web-7.0.406.tar.gz/openerp-web-7.0.406/static/lib/datejs/time.js | * TimeSpan(milliseconds);
* TimeSpan(days, hours, minutes, seconds);
* TimeSpan(days, hours, minutes, seconds, milliseconds);
*/
var TimeSpan = function (days, hours, minutes, seconds, milliseconds) {
var attrs = "days hours minutes seconds milliseconds".split(/\s+/);
var gFn = function (attr) {
... | PypiClean |
/paystack-1.5.0.tar.gz/paystack-1.5.0/LICENSE.md | Copyright (c) 2015, Bernard Ojengwa
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 di... | PypiClean |
/wholecell-vivarium-0.0.54.tar.gz/wholecell-vivarium-0.0.54/vivarium/plots/transport_metabolism.py | from __future__ import absolute_import, division, print_function
import os
import matplotlib.pyplot as plt
from vivarium.core.composition import set_axes
from vivarium.library.dict_utils import get_value_from_path
def plot_diauxic_shift(timeseries, settings={}, out_dir='out'):
external_path = settings.get('ext... | PypiClean |
/docai_py-0.1.1.tar.gz/docai_py-0.1.1/docai/generated/models/queue_settings_dto.py | from typing import Any, Dict, List, Type, TypeVar
import attr
from ..models.page_range_dto import PageRangeDto
from ..models.user_review_setting import UserReviewSetting
T = TypeVar("T", bound="QueueSettingsDto")
@attr.s(auto_attribs=True)
class QueueSettingsDto:
"""
Attributes:
notification_email ... | PypiClean |
/empire-platform-api-public-client-1.0.0.tar.gz/empire-platform-api-public-client-1.0.0/empire_platform_api_public_client/models/organisation_market_settings.py | from __future__ import annotations
import pprint
import re # noqa: F401
import json
from pydantic import BaseModel, Field, constr, validator
from empire_platform_api_public_client.models.organisation_market_settings_gb_nomination_settings import OrganisationMarketSettingsGbNominationSettings
from empire_platform_ap... | PypiClean |
/ansible-base-2.10.17.tar.gz/ansible-base-2.10.17/docs/docsite/rst/user_guide/playbooks_vars_facts.rst | .. _vars_and_facts:
************************************************
Discovering variables: facts and magic variables
************************************************
With Ansible you can retrieve or discover certain variables containing information about your remote systems or about Ansible itself. Variables related... | PypiClean |
/cdktf-cdktf-provider-azurerm-10.0.1.tar.gz/cdktf-cdktf-provider-azurerm-10.0.1/src/cdktf_cdktf_provider_azurerm/mysql_flexible_server_configuration/__init__.py | import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import typing_extensions
from typeguard import check_type
from .._jsii import *
import cdktf as _cdktf_9a9027ec
import constructs as _constructs_77d1e7e8
class MysqlFlexibleServerConfiguration(
_cdktf_9a9027ec.... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/mixedreality/object_anchors_account.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__ = ['ObjectAnchorsAccountArgs', 'ObjectAnchorsAccount']
@pulumi.input_type
class Obj... | PypiClean |
/tinyos-2.1.2.3.tar.gz/tinyos-2.1.2.3/nesdoc/components.py |
# Generate HTML file for a component
from nesdoc.utils import *
from nesdoc.generators import *
from nesdoc.html import *
__all__ = [ "generate_component" ]
# Output HTML describing a specification element
def spec_signature_html(ht, elem):
if elem.tagName == "function":
ht.pfnsig(elem, lambda (name): "<b>%s<... | PypiClean |
/scikit-splearn-1.2.1.tar.gz/scikit-splearn-1.2.1/README.rst | The **scikit-splearn** package is a Python scikit toolbox for spectral learning algorithms.
These algorithms aim at learning Weighted Automata (WA) using what is named a Hankel matrix. The toolbox thus provides also a class for WA (with a bunch of useful methods), another one for Hankel matrix, and a class for loadin... | PypiClean |
/opensubmit_web-0.7.17-py3-none-any.whl/opensubmit/admin/user.py | from django.contrib.auth.admin import UserAdmin as DjangoUserAdmin
from django.shortcuts import render
from django.contrib import admin
from django.http import HttpResponseRedirect
from django.contrib import messages
from django.core.urlresolvers import reverse
from opensubmit.models import UserProfile
from opensubmit... | PypiClean |
/pvplot-0.6.2.tar.gz/pvplot-0.6.2/cad_epics/epics.py | __version__ = 'v0.0.2 2023-04-14'# No colon separation when splitting PV name to (device,parameter) tuple.
#from time import perf_counter as timer
from caproto.threading.client import Context
_Ctx = Context()
_PVCache = {}# cache of PVs
# the key is EPICS PV name, the fields are as follows:
_PVC_PV = 0# EPICS PV obj... | PypiClean |
/unisos.wsInvokerIcm-0.4.tar.gz/unisos.wsInvokerIcm-0.4/unisos/wsInvokerIcm/wsInvokerIcm.py | ####+BEGIN: bx:icm:python:top-of-file :partof "bystar" :copyleft "halaal+minimal"
"""
* This file:/de/bx/nne/dev-py/pypi/pkgs/unisos/wsInvokerIcm/dev/unisos/wsInvokerIcm/newLibIcm.py :: [[elisp:(org-cycle)][| ]]
is part of The Libre-Halaal ByStar Digital Ecosystem. http://www.by-star.net
*CopyLeft* This Software is... | PypiClean |
/mera_tvm_full-1.4.0-cp36-cp36m-manylinux_2_27_x86_64.whl/tvm/relay/type_functor.py | """The type functor of Relay."""
from .ty import (
TypeVar,
IncompleteType,
TensorType,
FuncType,
TupleType,
TypeRelation,
RefType,
GlobalTypeVar,
TypeCall,
)
from .adt import TypeData
class TypeFunctor:
"""
An abstract visitor defined over Type.
Defines the default di... | PypiClean |
/maeham1-1.0.0.tar.gz/maeham1-1.0.0/maepagesplugin/navigation.py | import warnings
from typing import List, Optional, Union, Dict
from maeguias.structure.nav import Navigation as MaeNavigation, Section, Link, \
_get_by_type, _add_parent_links, _add_previous_and_next_links
from maeguias.structure.pages import Page
from .arrange import arrange, InvalidArrangeEntry
from .meta impor... | PypiClean |
/martian_chatbot-0.4.2.tar.gz/martian_chatbot-0.4.2/chatbot/monitoring.py | import psutil
import time
import requests
import logging
import uptime
import os
import datetime
from threading import Thread
from chatbot.utils.database_utils import DatabaseUtils
class ChatbotMonitoring:
def __init__(self, pid, config):
self.logFile = config.monitoring['log']
self.process = psu... | PypiClean |
/strawberry_graphql-0.158.0.tar.gz/strawberry_graphql-0.158.0/strawberry/exceptions/duplicated_type_name.py | from __future__ import annotations
from typing import TYPE_CHECKING, Optional, Type
from strawberry.utils.cached_property import cached_property
from .exception import StrawberryException
from .utils.source_finder import SourceFinder
if TYPE_CHECKING:
from rich.console import RenderableType
from .exception... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.