id
stringlengths
1
8
text
stringlengths
6
1.05M
dataset_id
stringclasses
1 value
/pee-0.1.1.tar.gz/pee-0.1.1/README.md
# pee ## (p)ython fr(ee) ### the Linux free command but for MacOS and built in Python `pee` displays stats about `total`, `used`, `free`, and `available` memory in the system. By default (no flag), it returns the stats as bytes. `time` also returns `buffer` and `cache` info which is not available from the MacOS ker...
PypiClean
/zipline_tej-0.0.48-cp38-cp38-win_amd64.whl/zipline/utils/events.py
from abc import ABCMeta, abstractmethod from collections import namedtuple import inspect import warnings import datetime import numpy as np import pandas as pd import pytz from toolz import curry from zipline.utils.input_validation import preprocess from zipline.utils.memoize import lazyval from zipline.utils.sentin...
PypiClean
/trytond_stock_consignment-6.8.0.tar.gz/trytond_stock_consignment-6.8.0/stock.py
from functools import wraps from trytond.model import ModelView, Workflow, fields from trytond.modules.product import round_price from trytond.pool import Pool, PoolMeta from trytond.pyson import Eval from trytond.transaction import Transaction class Location(metaclass=PoolMeta): __name__ = 'stock.location' ...
PypiClean
/wipo_gbd_pypers-2.1.27-py3-none-any.whl/pypers/execs.py
import argparse import sys import os import getpass import glob import re import time import traceback import locale import signal from threading import Thread from pypers.common import build_command_parser, apply_custom from pypers.cli import STAGE from pypers.cli.snapshot import Snapshot from pypers.cli.stage_ori im...
PypiClean
/hightea-plotting-0.3.5.tar.gz/hightea-plotting-0.3.5/README.md
# hightea-plotting Plotting routines for `hightea` library. Documentation is available [online](https://hightea-plotting.readthedocs.io/en/latest/). Simplest usage in python code: ``` import hightea.plotting as hyt hyt.plot('tests/input/simple1d.json') ``` Plot function can take any arguments with appropriate data ...
PypiClean
/jellyfin_mpv_shim-2.6.0-py3-none-any.whl/jellyfin_mpv_shim/utils.py
import socket import ipaddress import requests import urllib.parse from threading import Lock import logging import sys import os.path import platform from .conf import settings from datetime import datetime from functools import wraps from .constants import USER_APP_NAME from .i18n import _ from typing import TYPE_C...
PypiClean
/wayround_org_webserver-0.3.tar.gz/wayround_org_webserver-0.3/wayround_org/webserver/application.py
import importlib import logging """ module structure description: wayround_org_webserver application module must have 2 strict things: 1. class named 'WebServerModule', which has following parameters: 1. reference to webserver instance; 2. reference to socket pool ...
PypiClean
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/textract/start-document-analysis.rst
**To start analyzing text in a multi-page document** The following ``start-document-analysis`` example shows how to start asynchronous analysis of text in a multi-page document. Linux/macOS:: aws textract start-document-analysis \ --document-location '{"S3Object":{"Bucket":"bucket","Name":"document"}}' ...
PypiClean
/simapy-4.4.3.tar.gz/simapy-4.4.3/src/sima/hydro/frequencydependentdamping.py
from typing import Dict,Sequence,List from dmt.blueprint import Blueprint from .blueprints.frequencydependentdamping import FrequencyDependentDampingBlueprint from numpy import ndarray,asarray from sima.hydro.twodofdata import TwoDofData from sima.sima.moao import MOAO from sima.sima.scriptablevalue import ScriptableVa...
PypiClean
/control-lab-les-0.0.0.5.tar.gz/control-lab-les-0.0.0.5/src/controllable/View/image_utils.py
# Standard library imports import numpy as np # Third party imports import cv2 # pip install opencv-python # Local application imports print(f"Import: OK <{__name__}>") class Image(object): """ Image class with image manipulation methods Args: frame (array): image frame """ def __init__(...
PypiClean
/ansible-8.3.0-py3-none-any.whl/ansible_collections/community/aws/plugins/modules/iam_server_certificate.py
# Copyright: Contributors to the Ansible project # GNU General Public License v3.0+ (see COPYING or https://www.gnu.org/licenses/gpl-3.0.txt) DOCUMENTATION = r""" --- module: iam_server_certificate version_added: 1.0.0 short_description: Manage IAM server certificates for use on ELBs and CloudFront description: - A...
PypiClean
/PythonProj_Message_Client-0.0.1-py3-none-any.whl/client/client/main_window.py
from PyQt5.QtWidgets import QMainWindow, qApp, QMessageBox, QApplication, QListView from PyQt5.QtGui import QStandardItemModel, QStandardItem, QBrush, QColor from PyQt5.QtCore import pyqtSlot, QEvent, Qt from Cryptodome.Cipher import PKCS1_OAEP from Cryptodome.PublicKey import RSA import json import logging import base...
PypiClean
/dipex-4.50.6-py3-none-any.whl/integrations/aarhus/los_import.py
import asyncio import datetime import logging from pathlib import Path import click import config import initial import sentry_sdk from dateutil import parser from los_leder import ManagerImporter from los_org import OrgUnitImporter from los_pers import PersonImporter from los_stam import StamImporter logger = loggi...
PypiClean
/shared_memory38-0.1.2-cp37-cp37m-win_amd64.whl/shared_memory/managers.py
import os import signal from multiprocessing import ProcessError, util from multiprocessing.managers import BaseManager, Server, State, dispatch from os import getpid try: from . import shared_memory HAS_SHMEM = True except ImportError: HAS_SHMEM = False __all__ = ['SharedMemoryManager'] if HAS_SHMEM: ...
PypiClean
/ray_for_mars-1.12.1-cp38-cp38-manylinux2014_x86_64.whl/ray_for_mars-1.12.1.data/purelib/ray/tune/examples/tune_mnist_keras.py
import argparse import os from filelock import FileLock from tensorflow.keras.datasets import mnist import ray from ray import tune from ray.tune.schedulers import AsyncHyperBandScheduler from ray.tune.integration.keras import TuneReportCallback def train_mnist(config): # https://github.com/tensorflow/tensorflo...
PypiClean
/ngcp-xbee-1.3.tar.gz/ngcp-xbee-1.3/examples/io/LocalADCSample/readme.txt
Introduction ------------ This sample Python application shows how to read XBee analog inputs of the device attached to the serial/USB port of your PC. The application configures an IO line of the XBee device as ADC. Then, it periodically reads its value and prints it in the output console. NOTE: ...
PypiClean
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/network/get_bastion_host.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 __all__ = [ 'GetBastionHostResult', 'AwaitableGetBastionHostResult', 'get_bastion_host', 'get_bastion_host_output', ] @p...
PypiClean
/Products.SilvaKupu-1.4.2.tar.gz/Products.SilvaKupu-1.4.2/Products/kupu/doc/reference/readme.txt
This is designed to be more of a reference than the procedural documentation in the folder above. It's currently only just beginning, so please feel free to submit patches, comments and suggestions to kupu-dev@codespeak.net. The files are as follows: errors.txt - A list of the errors commonly emitted by Kupu and ...
PypiClean
/jk_json-0.2023.2.6.tar.gz/jk_json-0.2023.2.6/jk_jsonschema/SimpleSchemaGenerator.py
import typing import re import random import jk_json import jk_utils from .re import compactVerboseRegEx def _isType(x) -> bool: return type is type(x) # _compileSingleType = None class AbstractGenerator(object): # # @param list _xParentalRequiredList The JSON list that holds the names of those p...
PypiClean
/Flask_Telebot-1.0.0-py3-none-any.whl/flask_telebot.py
import logging import os import sys import time import telebot from flask import current_app, request, abort, Blueprint from pyngrok import ngrok try: from flask import _app_ctx_stack as stack except ImportError: from flask import _request_ctx_stack as stack logger = logging.getLogger(__name__) telebot.apihelp...
PypiClean
/nemesispy-0.0.10.tar.gz/nemesispy-0.0.10/README.md
This library contains routines for simulating and fitting exoplanet emission spectra at arbitrary orbital phase, thereby constraining the thermal structure and chemical abundance of exoplanet atmospheres. It is also capable of fitting emission spectra at multiple orbital phases (phase curves) at the same time. This pac...
PypiClean
/aws-spot-fleet-helper-0.2.0.tar.gz/aws-spot-fleet-helper-0.2.0/README.md
# AWS Spot Fleet Helper # ### Python library to help launching a fleet of Spot instances within AWS infrastructure ### Functionality is also available via CLI: ``` $ spot_fleet_config.py --help usage: spot_fleet_config.py [-h] -bid-value BID_VALUE -ssh-key-name SSH_KEY_NAME -ami-id AMI_ID...
PypiClean
/kiosk-multiweb-1.3.3.tar.gz/kiosk-multiweb-1.3.3/multiweb/applications/manager.py
import os from urllib.parse import urlparse from twisted import logger from twisted.internet.defer import inlineCallbacks from ebs.linuxnode.core.constants import ASSET class MultiWebApplication(object): def __init__(self, parent, spec): self._parent = parent self._spec = spec @property ...
PypiClean
/sage-conf-10.0b0.tar.gz/sage-conf-10.0b0/sage_root/build/pkgs/elliptic_curves/SPKG.rst
elliptic_curves: Databases of elliptic curves ============================================= Description ----------- Includes two databases: - A small subset of John Cremona's database of elliptic curves up to conductor 10000. - William Stein's database of interesting curves Upstream Contact ---------------- ...
PypiClean
/ee_satellites-0.0.11-py3-none-any.whl/ee_satellites.py
import ee, pandas as pd, concurrent.futures, sentinel1, sentinel2, landsat8 ''' GATHER ALL MEAN INDICES FOR A FIELD, FOR EACH TIME A SATELLITE CONSTELLATION (SENTINEL 1, SENTINEL 2 or LANDSAT 8) CROSSED THE FIELD, WITHIN A SPECIFIC TIME SPAN ''' def process_chunk(s_filtered, chunk, polygon, field_col_name, field_nam...
PypiClean
/tvb_framework-2.8.1.1-py3-none-any.whl/tvb/interfaces/web/static/mathjax/jax/output/SVG/fonts/TeX/Main/Regular/CombDiacritMarks.js
MathJax.Hub.Insert(MathJax.OutputJax.SVG.FONTDATA.FONTS.MathJax_Main,{768:[699,-505,0,-394,-204,"-394 655Q-394 671 -381 685T-350 699Q-334 699 -323 688Q-310 671 -278 629T-225 561T-205 533T-218 519L-233 505L-304 563Q-381 626 -387 634Q-394 643 -394 655"],769:[699,-505,0,-297,-107,"-151 699Q-133 699 -120 686T-107 656Q-107 ...
PypiClean
/odoo_addon_l10n_th_base_location-15.0.1.0.0.2-py3-none-any.whl/odoo/addons/l10n_th_base_location/wizard/geonames_import.py
import csv import os from odoo import api, fields, models class CityZipGeonamesImport(models.TransientModel): _inherit = "city.zip.geonames.import" is_thailand = fields.Boolean( compute="_compute_is_thailand", help="For Thailand only, data is from TH_th.txt and TH_en.txt stored " "i...
PypiClean
/tno.mpc.protocols.secure_comparison-4.1.2-py3-none-any.whl/tno/mpc/protocols/secure_comparison/initiator.py
from secrets import choice, randbelow from typing import Any, List, Optional, Tuple, Union, cast from tno.mpc.encryption_schemes.dgk import DGK, DGKCiphertext from tno.mpc.encryption_schemes.paillier import Paillier, PaillierCiphertext from .communicator import Communicator from .utils import to_bits class Initiat...
PypiClean
/zipdetr-2.0.10.tar.gz/zipdetr-2.0.10/vehicle/utils/benchmarks.py
import glob import platform import sys import time from pathlib import Path import numpy as np import torch.cuda from tqdm import tqdm from vehicle import YOLO from vehicle.cfg import TASK2DATA, TASK2METRIC from vehicle.engine.exporter import export_formats from vehicle.utils import ASSETS, LINUX, LOGGER, MACOS, SETT...
PypiClean
/py-healthcheck-1.10.1.tar.gz/py-healthcheck-1.10.1/healthcheck/environmentdump.py
import json import os import platform import sys import six from .security import safe_dict class EnvironmentDump(object): def __init__(self, include_os=True, include_python=True, include_process=True, **kwargs): self.functions = {} ...
PypiClean
/ax-platform-0.3.4.tar.gz/ax-platform-0.3.4/ax/plot/pareto_frontier.py
import warnings from typing import Dict, Iterable, List, Optional, Tuple, Union import numpy as np import pandas as pd import plotly.graph_objs as go from ax.core.experiment import Experiment from ax.core.objective import MultiObjective from ax.core.optimization_config import ( MultiObjectiveOptimizationConfig, ...
PypiClean
/cppyy-cling-6.28.0.tar.gz/cppyy-cling-6.28.0/src/interpreter/llvm/src/lib/Support/Unix/README.txt
llvm/lib/Support/Unix README =========================== This directory provides implementations of the lib/System classes that are common to two or more variants of UNIX. For example, the directory structure underneath this directory could look like this: Unix - only code that is truly generic to all UNIX ...
PypiClean
/onnxruntime_openvino-1.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/onnxruntime/backend/backend.py
import os import unittest import packaging.version from onnx import ModelProto, helper, version # noqa: F401 from onnx.backend.base import Backend from onnx.checker import check_model from onnxruntime import InferenceSession, SessionOptions, get_available_providers, get_device from onnxruntime.backend.backend_rep im...
PypiClean
/django_htmx_ui_adminlte-0.1.13-py3-none-any.whl/django_htmx_ui_adminlte/static/adminlte/plugins/summernote/lang/summernote-vi-VN.js
(function webpackUniversalModuleDefinition(root, factory) { if(typeof exports === 'object' && typeof module === 'object') module.exports = factory(); else if(typeof define === 'function' && define.amd) define([], factory); else { var a = factory(); for(var i in a) (typeof exports === 'object' ? exports : roo...
PypiClean
/jet-test-0.0.3.tar.gz/jet-test-0.0.3/jet_test/report.py
import itertools import re import textwrap # self from jet_test.classes import Error # dependencies from rich.panel import Panel from rich.layout import Layout from rich.text import Text from rich.align import Align def _camel_case_split(identifier: str) -> str: matches = re.finditer( ".+?(?:(?<=[a-z])(...
PypiClean
/cctbx-2020.8-0_py36h1d45459-cp36-cp36m-manylinux2010_x86_64.whl/wxtbx/metallicbutton.py
from __future__ import absolute_import, division, print_function # Copyright 2010 University of California # derived from wx.lib.platebtn (see copyright below). ############################################################################### # Name: platebtn.py ...
PypiClean
/odoo14_addon_pos_customer_display-14.0.1.0.1-py3-none-any.whl/odoo/addons/pos_customer_display/models/pos_config.py
from odoo import _, api, fields, models from odoo.exceptions import ValidationError class PosConfig(models.Model): _inherit = "pos.config" _CUSTOMER_DISPLAY_FORMAT_SELECTION = [ ("2_20", "2 Lines of 20 Characters"), ] iface_customer_display = fields.Boolean( string="LED Customer Dis...
PypiClean
/e3-core-22.3.1.tar.gz/e3-core-22.3.1/src/e3/cve.py
from __future__ import annotations from functools import cached_property from requests import Session from e3.log import getLogger from typing import TYPE_CHECKING if TYPE_CHECKING: from typing import Any, Iterator logger = getLogger("cve") class CVE: """Represent a CVE entry.""" def __init__(self, j...
PypiClean
/cellseg_models_pytorch-0.1.22.tar.gz/cellseg_models_pytorch-0.1.22/cellseg_models_pytorch/utils/latency_benchmark.py
from timeit import repeat from typing import Any, Callable, Dict, List, Tuple, Union import numpy as np import torch from tqdm import tqdm from cellseg_models_pytorch.inference import BaseInferer __all__ = ["LatencyBenchmarker"] class LatencyBenchmarker: def __init__(self, inferer: BaseInferer) -> None: ...
PypiClean
/p01.cgi-0.5.1.zip/p01.cgi-0.5.1/src/p01/cgi/parser.py
__docformat__ = "reStructuredText" import re import os import urllib import rfc822 import tempfile import cStringIO import zope.interface from p01.cgi import interfaces #TODO: should this be a zope.conf property? maxlen = 0 #TODO: maybe move all those methods to a class? OVERSIZE_FIELD_CONTENT = 1000 class Sim...
PypiClean
/automic_rest-0.0.6-py3-none-any.whl/automic_rest/createrepository.py
import os import json from automic_rest import config import requests from requests.exceptions import HTTPError from requests.exceptions import Timeout from requests.packages.urllib3.exceptions import InsecureRequestWarning requests.packages.urllib3.disable_warnings(InsecureRequestWarning) class createRepository: ...
PypiClean
/django-trojsten-submit-0.1.0.tar.gz/django-trojsten-submit-0.1.0/submit/defaults.py
from django.core.urlresolvers import reverse from django.utils.html import format_html from django.utils.translation import ugettext_lazy as _ import submit.settings as submit_settings from submit.models import Submit def is_submit_accepted(submit): """ This method defines which submits will be accepted, pen...
PypiClean
/airflow_code_editor-5.2.2-py3-none-any.whl/airflow_code_editor/static/addon/scroll/simplescrollbars.js
(function(mod) { if (typeof exports == "object" && typeof module == "object") // CommonJS mod(require("../../lib/codemirror")); else if (typeof define == "function" && define.amd) // AMD define(["../../lib/codemirror"], mod); else // Plain browser env mod(CodeMirror); })(function(CodeMirror) { "use...
PypiClean
/range_set-0.3.1.tar.gz/range_set-0.3.1/README.rst
RangeSet ====== License: Your choice of MIT or Apache License 2.0 --------- Python Sets are nice to work with, but very inefficient if you need a large set with mostly-consecutive integers. The RangeSet class provides efficient handling and storage for these sets. Non-integers? ============= RangeSet works with an...
PypiClean
/la_businesses-0.1.1-py3-none-any.whl/la_businesses/la_businesses.py
from argparse import ArgumentParser, ArgumentDefaultsHelpFormatter from pathlib import Path import logging import datetime as dt import pytz # for timezone handling import pandas as pd import requests import simplekml # ----------------------------------------------------------------------------# # CONSTANTS AND CON...
PypiClean
/RsCMPX_LteMeas-4.0.185.tar.gz/RsCMPX_LteMeas-4.0.185/RsCMPX_LteMeas/Implementations/LteMeas/MultiEval/ListPy/EsFlatness/Maxr/Extreme.py
from typing import List from .......Internal.Core import Core from .......Internal.CommandsGroup import CommandsGroup from .......Internal import Conversions from .......Internal.ArgSingleSuppressed import ArgSingleSuppressed from .......Internal.Types import DataType from ....... import repcap # noinspection PyPep8...
PypiClean
/aim-ui-custom-3.15.2.post2.tar.gz/aim-ui-custom-3.15.2.post2/aim_ui/build/vs/editor/editor.main.nls.zh-cn.js
define("vs/editor/editor.main.nls.zh-cn",{"vs/base/browser/ui/actionbar/actionViewItems":["{0} ({1})"],"vs/base/browser/ui/findinput/findInput":["\u8F93\u5165"],"vs/base/browser/ui/findinput/findInputCheckboxes":["\u533A\u5206\u5927\u5C0F\u5199","\u5168\u5B57\u5339\u914D","\u4F7F\u7528\u6B63\u5219\u8868\u8FBE\u5F0F"],"...
PypiClean
/pyqode3.core-3.2.35.tar.gz/pyqode3.core-3.2.35/pyqode/core/modes/outline.py
import logging from pyqode.core.api import Mode from pyqode.core.api import DelayJobRunner from pyqode.core.backend import NotRunning from pyqode.core.share import Definition from pyqode.qt import QtCore def _logger(): return logging.getLogger(__name__) class OutlineMode(Mode, QtCore.QObject): """ Gener...
PypiClean
/snowcross-0.3.0.tar.gz/snowcross-0.3.0/README.md
# snowcross-python Adaptors for tools and services in a Snowflake-centric data platform. > **WARNING** While this repository is private, releases are published _publicly_ to > [PyPI](https://pypi.org/project/snowcross/)! All commits, pull requests and this readme are > hidden, however the source code is easily extra...
PypiClean
/django-cms-4.1.0rc4.tar.gz/django-cms-4.1.0rc4/cms/app_registration.py
import inspect from functools import lru_cache from importlib import import_module from django.apps import apps from django.core.exceptions import ImproperlyConfigured from django.utils.module_loading import module_has_submodule from cms.app_base import CMSAppConfig, CMSAppExtension from cms.constants import CMS_CONF...
PypiClean
/django-rflatpages-0.0.9.tar.gz/django-rflatpages-0.0.9/rflatpages/rflatpages-example/project/static/js/tiny_mce/themes/advanced/js/link.js
tinyMCEPopup.requireLangPack(); var LinkDialog = { preInit : function() { var url; if (url = tinyMCEPopup.getParam("external_link_list_url")) document.write('<script language="javascript" type="text/javascript" src="' + tinyMCEPopup.editor.documentBaseURI.toAbsolute(url) + '"></script>'); }, init : functio...
PypiClean
/mle_hyperopt-0.0.9-py3-none-any.whl/mle_hyperopt/strategies/grid.py
from typing import Optional, List from ..strategy import Strategy from ..spaces import GridSpace from ..utils import visualize_2D_grid, print_grid_hello class GridSearch(Strategy): def __init__( self, real: Optional[dict] = None, integer: Optional[dict] = None, categorical: Optiona...
PypiClean
/change_detection_pytorch-0.1.4.tar.gz/change_detection_pytorch-0.1.4/change_detection_pytorch/unet/model.py
from typing import Optional, Union, List from .decoder import UnetDecoder from ..encoders import get_encoder from ..base import SegmentationModel from ..base import SegmentationHead, ClassificationHead class Unet(SegmentationModel): """Unet_ is a fully convolution neural network for image semantic segmentation. C...
PypiClean
/legend_daq2lh5-1.0.0-py3-none-any.whl/daq2lh5/data_streamer.py
from __future__ import annotations import fnmatch import logging from abc import ABC, abstractmethod from .raw_buffer import RawBuffer, RawBufferLibrary, RawBufferList log = logging.getLogger(__name__) class DataStreamer(ABC): """Base clase for data streams. Provides a uniform interface for streaming, e.g...
PypiClean
/ray_for_mars-1.12.1-cp38-cp38-manylinux2014_x86_64.whl/ray_for_mars-1.12.1.data/purelib/ray/serve/model_wrappers.py
from typing import Dict, Optional, Type, Union from ray._private.utils import import_attr from ray.ml.checkpoint import Checkpoint from ray.ml.predictor import Predictor from ray.serve.drivers import InputSchemaFn, SimpleSchemaIngress import ray from ray import serve def _load_checkpoint( checkpoint: Union[Check...
PypiClean
/sdksio_verizon_apis_sdk-1.0.0-py3-none-any.whl/verizon/controllers/uicc_device_profile_management_controller.py
from verizon.api_helper import APIHelper from verizon.configuration import Server from verizon.http.api_response import ApiResponse from verizon.controllers.base_controller import BaseController from apimatic_core.request_builder import RequestBuilder from apimatic_core.response_handler import ResponseHandler from apim...
PypiClean
/robotice-0.0.1.tar.gz/robotice-0.0.1/docs/source/support/cli.rst
.. _cli-test: ====================== Command Line Interface ====================== Robotice Welcome! ---------------- .. code-block:: bash (robotice)root@control-single:/srv/robotice/service# bin/robotice -h .. code-block:: yaml usage: robotice [-r ROLE] [--version] [-d] [-v] ______ _ _ ...
PypiClean
/vtex-client-0.1.0.tar.gz/vtex-client-0.1.0/vtex_client/base.py
from __future__ import unicode_literals import json import requests from . import faults class BaseClient(object): """Base client for VTEX webservice""" api_url = "https://api.vtexpayments.com.br/{}" def _get_headers(self): return {'CONTENT-TYPE': 'application/json'} def _handle_error(sel...
PypiClean
/zanon-0.3.3.tar.gz/zanon-0.3.3/zanonymity/study_output.py
from collections import defaultdict import numpy as np import json import matplotlib.pyplot as plt from matplotlib.ticker import LinearLocator MAX_GENERALIZATION = 20 stepsize = np.array([3000, 5000, 10000, 30000, 500000]) numeric_category = False with open('output.json',"r") as f: data = json.load(f) labels...
PypiClean
/apis_core-0.18.14.tar.gz/apis_core-0.18.14/apis_core/apis_metainfo/migrations/0001_initial.py
import django.db.models.deletion from django.db import migrations, models class Migration(migrations.Migration): initial = True dependencies = [ ] operations = [ migrations.CreateModel( name='Collection', fields=[ ('id', models.AutoField(auto_created...
PypiClean
/notion_cli_py-1.0.1-py3-none-any.whl/notion_cli_py/client/client.py
import toml import os import requests import sys from ..utils import logger class Client: def __init__(self, label): self.logger = logger.init_logger(__name__) try: PATH = os.environ['HOME'] + "/.notion_cli/config.toml" config = toml.load(open(PATH)) self.config...
PypiClean
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/lorem/en_US/__init__.py
from typing import Dict from .. import Provider as LoremProvider class Provider(LoremProvider): """Implement lorem provider for ``en_US`` locale. Word list is based on the source(s) below, and some words have been removed to make the word list appropriate for public testing. Sources: - https:/...
PypiClean
/accel-brain-base-1.1.0.tar.gz/accel-brain-base-1.1.0/accelbrainbase/controllablemodel/_mxnet/transformer_controller.py
from accelbrainbase.controllable_model import ControllableModel from accelbrainbase._mxnet._exception.init_deferred_error import InitDeferredError from accelbrainbase.observabledata._mxnet.transformer_model import TransformerModel from accelbrainbase.observabledata._mxnet.transformermodel.transformer_encoder import Tra...
PypiClean
/hvl_ccb-0.14.1.tar.gz/hvl_ccb-0.14.1/docs/hvl_ccb.dev.rst
hvl\_ccb.dev ============ Subpackages ----------- .. toctree:: :maxdepth: 4 hvl_ccb.dev.crylas hvl_ccb.dev.cube hvl_ccb.dev.ea_psi9000 hvl_ccb.dev.fluke884x hvl_ccb.dev.fug hvl_ccb.dev.heinzinger hvl_ccb.dev.highland_t560 hvl_ccb.dev.labjack hvl_ccb.dev.lauda hvl_ccb.dev.mbw973 h...
PypiClean
/lx-pylib-0.3.0.tar.gz/lx-pylib-0.3.0/README.rst
lx-pylib ======== .. image:: https://travis-ci.org/hilarryxu/lx-pylib.svg?branch=master :target: https://travis-ci.org/hilarryxu/lx-pylib Some useful python utils. Installing ---------- Install and update using `pip`_: .. code-block:: text $ pip install lx-pylib .. _pip: https://pip.pypa.io/en/stable/qu...
PypiClean
/collective.properties-1.0a2.tar.gz/collective.properties-1.0a2/collective/properties/converter.py
from zope.component import adapts from zope.schema.interfaces import IBytesLine, IBytes, IChoice from Products.CMFPlone.utils import safe_unicode, normalizeString from z3c.form.interfaces import ITextAreaWidget, ITextWidget from z3c.form.converter import BaseDataConverter, SequenceDataConverter from collective.prope...
PypiClean
/hotelling-0.5.0.tar.gz/hotelling-0.5.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
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/loader-utils/node_modules/json5/README.md
# JSON5 – JSON for Humans [![Build Status](https://travis-ci.org/json5/json5.svg)][Build Status] [![Coverage Status](https://coveralls.io/repos/github/json5/json5/badge.svg)][Coverage Status] The JSON5 Data Interchange Format (JSON5) is a superset of [JSON] that aims to alleviate some of the limitations of JSON by ex...
PypiClean
/kiwitcms-12.4.tar.gz/kiwitcms-12.4/tcms/node_modules/es6-set/node_modules/type/docs/plain-function.md
# Plain Function A _Function_ instance that is not a _Class_ ## `plain-function/is` Confirms if given object is a _plain function_ ```javascript const isPlainFunction = require("type/plain-function/is"); isPlainFunction(function () {}); // true isPlainFunction(() => {}); // true isPlainFunction(class {}); // false...
PypiClean
/mkdocs_git_authors_plugin-0.7.2-py3-none-any.whl/mkdocs_git_authors_plugin/git/command.py
import subprocess class GitCommandError(Exception): """ Exception thrown by a GitCommand. """ pass class GitCommand(object): """ Wrapper around a Git command. Instantiate with a command name and an optional args list. These can later be modified with set_command() and set_args(). ...
PypiClean
/tincanradar-0.1.1.tar.gz/tincanradar-0.1.1/README.rst
.. image:: https://travis-ci.org/scivision/tincanradar.svg?branch=master :target: https://travis-ci.org/scivision/tincanradar .. image:: https://coveralls.io/repos/github/scivision/tincanradar/badge.svg?branch=master :target: https://coveralls.io/github/scivision/tincanradar?branch=master .. image:: https...
PypiClean
/django-lfc-1.2b2.tar.gz/django-lfc-1.2b2/lfc/static/lfc/js/lfc_tinymce.js
var editor; function addEditor(selector, hide_save) { if (hide_save == true) { buttons = "bold,italic,underline,strikethrough,|,justifyleft,justifycenter,justifyright,justifyfull,|,bullist,numlist,|,forecolor,backcolor,styleselect,formatselect,image,|,link,mylink,unlink,|,removeformat,code,|,fullscreen" ...
PypiClean
/baiduads-sdk-auto-snapshot-2022.2.1.5.tar.gz/baiduads-sdk-auto-snapshot-2022.2.1.5/baiduads/pricestrategy/model/add_price_strategy_response_wrapper.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
/stac_nb-0.4.0.tar.gz/stac_nb-0.4.0/docs/installation.rst
.. highlight:: shell ============ Installation ============ Stable release -------------- To install stac-nb, run this command in your terminal: .. code-block:: console $ pip install stac-nb This is the preferred method to install stac-nb, as it will always install the most recent stable release. If you don...
PypiClean
/Pyrseas-0.9.1.tar.gz/Pyrseas-0.9.1/docs/cfgobjects.rst
Augmenter Configuration Objects =============================== These configuration objects are predefined in the Augmenter modules or can be defined or overriden by configuration elements in the ``augmenter`` map. Please see also :doc:`configitems` and :doc:`predefaug`. .. module:: pyrseas.augment.function Configu...
PypiClean
/azure_mgmt_storagesync-2.0.0b1-py3-none-any.whl/azure/mgmt/storagesync/operations/_operation_status_operations.py
import sys 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.c...
PypiClean
/fds.sdk.CapitalStructureReportBuilder-1.0.6-py3-none-any.whl/fds/sdk/CapitalStructureReportBuilder/model_utils.py
from datetime import date, datetime # noqa: F401 from copy import deepcopy import inspect import io import os import pprint import re import tempfile from dateutil.parser import parse from fds.sdk.CapitalStructureReportBuilder.exceptions import ( ApiKeyError, ApiAttributeError, ApiTypeError, ApiValue...
PypiClean
/usbsecurity-server-4.9.1.tar.gz/usbsecurity-server-4.9.1/usbsecurity_server/static/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
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/intl/locale-data/jsonp/en-GI.js
IntlPolyfill.__addLocaleData({locale:"en-GI",date:{ca:["gregory","buddhist","chinese","coptic","dangi","ethioaa","ethiopic","generic","hebrew","indian","islamic","islamicc","japanese","persian","roc"],hourNo0:true,hour12:false,formats:{short:"{1}, {0}",medium:"{1}, {0}",full:"{1} 'at' {0}",long:"{1} 'at' {0}",available...
PypiClean
/gladia_torchaudio-2.1.0a0-py3-none-any.whl/torchaudio/models/wav2vec2/utils/import_fairseq.py
import re from torch.nn import Module from ..model import wav2vec2_model, Wav2Vec2Model def _parse_config(w2v_model): encoder = w2v_model.encoder conv_layers = w2v_model.feature_extractor.conv_layers extractor_mode = "layer_norm" if "GroupNorm" in conv_layers[0][2].__class__.__name__: extra...
PypiClean
/h2o_pysparkling_3.3-3.42.0.2.post1.tar.gz/h2o_pysparkling_3.3-3.42.0.2.post1/h2o/transforms/transform_base.py
from h2o.utils.compatibility import * # NOQA from h2o import expr from ..frame import H2OFrame class TransformAttributeError(AttributeError): def __init__(self, obj, method): super(AttributeError, self).__init__("No {} method for {}".format(method, obj.__class__.__name__)) class H2OTransformer(object)...
PypiClean
/latexcodec-2.0.1.tar.gz/latexcodec-2.0.1/README.rst
latexcodec ========== |travis| |codecov| A lexer and codec to work with LaTeX code in Python. * Download: http://pypi.python.org/pypi/latexcodec/#downloads * Documentation: http://latexcodec.readthedocs.org/ * Development: http://github.com/mcmtroffaes/latexcodec/ .. |travis| image:: https://travis-ci.org/mcmtrof...
PypiClean
/intelcom_helper-0.5.0.tar.gz/intelcom_helper-0.5.0/intelcom_helper/snowflake.py
import os import pandas as pd import snowflake.connector from sqlalchemy import create_engine from snowflake.sqlalchemy import URL from snowflake.connector.pandas_tools import write_pandas def fetch_data(sql_query): """ fetch data from snowflake tables """ ctx = snowflake.connector.connect( user=os.e...
PypiClean
/parquetranger-0.5.2.tar.gz/parquetranger-0.5.2/notebooks/doc-001-quickstart.ipynb
# Quickstart ``` import pandas as pd from parquetranger import TableRepo df = pd.DataFrame( { "A": [1, 2, 3, 4, 5, 6], "B": ["x", "y", "z", "x1", "x2", "x3"], "C": [1, 2, 1, 1, 1, 2], "C2": ["a", "a", "b", "a", "c", "c"], }, index=["a1", "a2", "a3", "a4", "a5", "a6"], ) ...
PypiClean
/vnpy_extra-0.8.20211220.0-py3-none-any.whl/vnpy_extra/pm/by_json.py
import json import logging from tqdm import tqdm from vnpy_extra.db.orm import StrategyBacktestStats, SymbolsInfo, set_account, StrategyBacktestStatusEnum, \ AccountStrategyMapping from vnpy_extra.pm.plot import plot_with_base_position from vnpy_extra.utils.symbol import get_main_contract def get_id_name_symbol...
PypiClean
/bf-nlp-package-13.3.tar.gz/bf-nlp-package-13.3/rasa/nlu/featurizers/dense_featurizer/mitie_featurizer.py
import numpy as np import typing from typing import Any, List, Text, Optional, Dict, Type from rasa.nlu.config import RasaNLUModelConfig from rasa.nlu.components import Component from rasa.nlu.featurizers.featurizer import DenseFeaturizer from rasa.nlu.tokenizers.tokenizer import Token, Tokenizer from rasa.nlu.utils.m...
PypiClean
/PyrogramXd-2.0.64-py3-none-any.whl/pyrogram/methods/messages/send_audio.py
import os import re from datetime import datetime from typing import Union, BinaryIO, List, Optional, Callable import pyrogram from pyrogram import StopTransmission, enums from pyrogram import raw from pyrogram import types from pyrogram import utils from pyrogram.errors import FilePartMissing from pyrogram.file_id i...
PypiClean
/pulsar-odm-0.7.0.tar.gz/pulsar-odm-0.7.0/odm/dialects/postgresql/pool.py
from sqlalchemy import pool from pulsar.apps.greenio import GreenLock class GreenletPool(pool.Pool): '''A Pool that maintains one connection per greenlet. Maintains one connection per each greenlet, never moving a connection to a greenlet other than the one which it was created in. ''' def _...
PypiClean
/meta1-testnet-0.2.11.tar.gz/meta1-testnet-0.2.11/CODE_OF_CONDUCT.md
Code of Conduct =============== Our Pledge ---------- In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gende...
PypiClean
/fds.sdk.OptimizationEngineAPIMultiperiod-0.21.7-py3-none-any.whl/fds/sdk/OptimizationEngineAPIMultiperiod/model/optimizer_inputs_mp_target_probability_term.py
import re # noqa: F401 import sys # noqa: F401 from fds.sdk.OptimizationEngineAPIMultiperiod.model_utils import ( # noqa: F401 ApiTypeError, ModelComposed, ModelNormal, ModelSimple, cached_property, change_keys_js_to_python, convert_js_args_to_python_args, date, datetime, fil...
PypiClean
/black-it-0.2.1.tar.gz/black-it-0.2.1/black_it/samplers/halton.py
"""This module contains the implementation for the Halton sampler.""" import itertools from typing import Iterator, List, Optional import numpy as np from numpy.random import default_rng from numpy.typing import NDArray from black_it.samplers.base import BaseSampler from black_it.search_space import SearchSpace from...
PypiClean
/ruamel.windowsregistry-0.1.1.tar.gz/ruamel.windowsregistry-0.1.1/__init__.py
from typing import Dict, Any _package_data: Dict[str, Any] = dict( full_package_name='ruamel.windowsregistry', version_info=(0, 1, 1), __version__='0.1.1', version_timestamp='2023-02-01 10:10:42', author='Anthon van der Neut', author_email='a.van.der.neut@ruamel.eu', description='get and s...
PypiClean
/anpl-0.0.7-py3-none-any.whl/anchor/token.py
import typing __all__: typing.List[str] = list(['pmdict', 'kwdict', 'namedict', 'NAME',]) PERCENT: typing.Literal = 'PERCENT' LPAR: typing.Literal = 'LPAR' RPAR: typing.Literal = 'RPAR' STAR: typing.Literal = 'STAR' DOUBLESTAR: typing.Literal = 'DOUBLESTAR' PLUS: typing...
PypiClean
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/lactobacillusgallinarum.py
from typing import Dict from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error def LactobacillusGallinarum( directed: bool = False, verbose: int = 2, cache_path: str = "graphs/string", **additional_graph_kwargs...
PypiClean
/all_params_env-0.0.1.tar.gz/all_params_env-0.0.1/all_params_env/opt_selfimple/deOpt.py
from opt_selfimple.opt import Optimization from sko.DE import DE import numpy as np import scipy.stats as stats import copy hyperparams_DeOpt_default = { 'individual number': 50, 'mutation probability': 0.01, 'precision': 1e-7 } conditions_DeOpt_default = { 'generate times': 20 } optConfig_DeOpt_defau...
PypiClean
/pdpc-decisions-1.3.2.tar.gz/pdpc-decisions-1.3.2/pdpc_decisions/corpus_text/decision_v2.py
import logging import re from typing import List, Dict, Optional from pdfminer.high_level import extract_pages, extract_text from pdfminer.layout import LTTextContainer, LAParams, LTTextBoxHorizontal, LTTextLineHorizontal, LTChar from pdpc_decisions.classes import PDPCDecisionItem, Options, PDFFile from pdpc_decision...
PypiClean
/tensorflow_quantum-0.7.2-cp37-cp37m-macosx_10_11_x86_64.whl/tensorflow_quantum/core/ops/math_ops/fidelity_op.py
"""Module for tfq.math.fidelity op.""" import tensorflow as tf from tensorflow_quantum.core.ops.math_ops import inner_product_op @tf.function @tf.custom_gradient def fidelity(programs, symbol_names, symbol_values, other_programs): """Calculate the fidelity between circuits. Compute (potentially many) fidelit...
PypiClean
/gordo_components-0.47.0-py3-none-any.whl/gordo_components/machine/validators.py
import collections import copy import re import datetime import pandas as pd import dateutil.parser import logging from gordo_components.serializer import pipeline_from_definition from gordo_components.machine.dataset.sensor_tag import SensorTag logger = logging.getLogger(__name__) class BaseDescriptor: """ ...
PypiClean
/TwistedSNMP-working-0.3.13.zip/TwistedSNMP-working-0.3.13/v4/agentproxy.py
__metaclass__ = type from pysnmp.entity import config from twisted.internet import defer, reactor from pysnmp.entity.rfc3413 import cmdgen DEFAULT_BULK_REPETITION_SIZE = 256 def targetNames( ): """Create an iterable producing monotonously increasing integers""" i = 0 while 1: i += 1 yield i class BaseProxy: ...
PypiClean
/tencentcloud_iac_pulumi-0.1.5.tar.gz/tencentcloud_iac_pulumi-0.1.5/tencentcloud_iac_pulumi/instance/outputs.py
import warnings import pulumi import pulumi.runtime from typing import Any, Mapping, Optional, Sequence, Union, overload from .. import _utilities __all__ = [ 'InstanceDataDisk', 'GetTypesFilterResult', 'GetTypesInstanceTypeResult', ] @pulumi.output_type class InstanceDataDisk(dict): @staticmethod ...
PypiClean