id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/lark-oapi-1.0.19.tar.gz/lark-oapi-1.0.19/lark_oapi/api/corehr/v1/model/form_field_variable_list_object.py |
from typing import *
from lark_oapi.core.construct import init
from .form_field_variable_bool_value import FormFieldVariableBoolValue
from .form_field_variable_date_value import FormFieldVariableDateValue
from .form_field_variable_datetime_value import FormFieldVariableDatetimeValue
from .form_field_variable_departme... | PypiClean |
/py-pure-client-1.38.0.tar.gz/py-pure-client-1.38.0/pypureclient/flasharray/FA_2_8/models/throttle.py | import pprint
import re
import six
import typing
from ....properties import Property
if typing.TYPE_CHECKING:
from pypureclient.flasharray.FA_2_8 import models
class Throttle(object):
"""
Attributes:
swagger_types (dict): The key is attribute name
and the value is attrib... | PypiClean |
/castep_parse-0.2.3-py3-none-any.whl/castep_parse/writers.py |
from pathlib import Path
import itertools
import numpy as np
from castep_parse.utils import (get_int_arr, format_arr,
get_castep_cell_constraints)
__all__ = [
'write_cell_file',
'write_input_files',
]
def write_cell_file(supercell, atom_sites, species, species_idx, dir_path... | PypiClean |
/serverhub_agent-0.0.22.tar.gz/serverhub_agent-0.0.22/serverhub_agent/ws/ws_messages.py | from enum import Enum
from typing import Any, List, Optional, Text
from marshmallow import ValidationError, post_load, pre_dump
from marshmallow_dataclass import dataclass
from serverhub_agent.types.common import ObjectWithSchema
from serverhub_agent.types.files import File
class TestMsgTypes(Enum):
text = 'tex... | PypiClean |
/alex_ber_utils-0.7.0.tar.gz/alex_ber_utils-0.7.0/alexber/utils/processinvokes.py | import logging
import os as _os
import subprocess
import threading
from concurrent.futures import ThreadPoolExecutor
from . importer import importer
executor = None
default_log_name = None
default_log_level = None
default_logpipe_cls = None
default_log_subprocess_cls = None
#inspired by https://codereview.stackexcha... | PypiClean |
/exactly-0.15.0-py3-none-any.whl/exactly_lib/definitions/entity/all_entity_types.py | from exactly_lib.definitions.cross_ref.name_and_cross_ref import EntityTypeNames
from exactly_lib.util.str_.name import a_name_with_plural_s, NameWithGender, an_name_with_plural_s
def _command_line_names_as_singular_name(entity_type_identifier: str,
name: NameWithGender) -> En... | PypiClean |
/tpds_extension_sha104_105_support-1.0.1-py3-none-any.whl/tpds_extension/sha104_105_support/frontend/assets/js/jquery.magnific-popup.js | ;(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(['jquery'], factory);
} else if (typeof exports === 'object') {
// Node/CommonJS
factory(require('jquery'));
} else {
// Browser globals
factory(window.jQuery || window.Zepto);
}
... | PypiClean |
/pyspace_toolkit-1.1.25.294-py3-none-any.whl/pyspace/pandas/excel.py | from functools import partial
import pickle
import string
import re
import numpy as np
import pandas as pd
from pyspace.pandas.pdfunctions import pddisplay, pdselect
def pd_get_excel_formats(writer, ):
workbook = writer.book
# border_args = {'bottom':5, 'top':5, 'left':5, 'right':5}
format0 = workbo... | PypiClean |
/appium_flutter_utils-0.1.0.tar.gz/appium_flutter_utils-0.1.0/src/appium_flutter_utils/wait.py | from src.appium_flutter_utils.setup import UtilsSetup
import traceback
class WhatToWait:
BY_VALUE_KEY = 1
BY_TYPE = 2 # Default
BY_TEXT = 3
# If semantics causes some error, in Semantic Widget do :
# excludeSemantics: true or explicitChildNodes:true depending on scenario,
# View this issue :h... | PypiClean |
/genoml2-1.0.0b3.tar.gz/genoml2-1.0.0b3/genoml/utils.py |
import json
import os
import time
import traceback
__author__ = 'Sayed Hadi Hashemi'
import textwrap
class ColoredBox:
BLACK = 30
RED = 31
GREEN = 32
YELLOW = 33
BLUE = 34
MAGENTA = 35
CYAN = 36
WHITE = 37
RESET = 39
def __init__(self, color=None):
if color is None:... | PypiClean |
/fds.sdk.QuotesAPIforDigitalPortals-0.11.1-py3-none-any.whl/fds/sdk/QuotesAPIforDigitalPortals/model/inline_response20054.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.QuotesAPIforDigitalPortals.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 |
/lab4GraphsTrees-0.1.tar.gz/lab4GraphsTrees-0.1/README.md | # DATA533 Lab 4
By Eric Baxter and Adityal Saluja
[](https://github.com/adityasal/DATA533_Lab4/actions)
## Graphs Subpackage by Eric
This sub-package contains two modules, one for un-weighted graphs and one fo... | PypiClean |
/python_microscopy-20.12.8-cp36-cp36m-win_amd64.whl/PYME/recipes/runRecipe.py | import matplotlib
from PYME.recipes import modules
from argparse import ArgumentParser
from PYME.IO.image import ImageStack
import pandas as pd
import tables
from PYME.IO import tabular
from PYME.IO import MetaDataHandler
from PYME.IO import unifiedIO
import logging
logger = logging.getLogger(__name__)
import warning... | PypiClean |
/LARRY_dataset-0.0.2rc0-py3-none-any.whl/larry/_analysis/_growth_rate_grouped_violin_plot.py | __module_name__ = "_violin_plot.py"
__author__ = ", ".join(["Michael E. Vinyard"])
__email__ = ", ".join(["vinyard@g.harvard.edu"])
# import packages: ------------------------------------------------------------
import matplotlib.pyplot as plt
import vinplots
import numpy as np
import anndata
# data prep function: ... | PypiClean |
/flake8-html-0.4.3.tar.gz/flake8-html-0.4.3/README.rst | ===========
flake8-html
===========
.. image:: https://img.shields.io/pypi/v/flake8-html.svg
:target: https://pypi.python.org/pypi/flake8-html
.. image:: https://img.shields.io/travis/lordmauve/flake8-html.svg
:target: https://travis-ci.org/lordmauve/flake8-html
.. image:: https://pyup.io/repos/gith... | PypiClean |
/dimagi-superset-2.0.1.tar.gz/dimagi-superset-2.0.1/superset/config.py | # pylint: disable=too-many-lines
import imp # pylint: disable=deprecated-module
import importlib.util
import json
import logging
import os
import re
import sys
from collections import OrderedDict
from datetime import timedelta
from typing import (
Any,
Callable,
Dict,
List,
Literal,
Optional,
... | PypiClean |
/magneticod-0.6.0-py3-none-any.whl/magneticod-0.6.0.dist-info/DESCRIPTION.rst | ==========
magneticod
==========
*Autonomous BitTorrent DHT crawler and metadata fetcher.*
**magneticod** is the daemon that crawls the BitTorrent DHT network in the background to discover info hashes and
fetches metadata from the peers. It uses SQLite 3 that is built-in your Python 3.x distribution to persist data.
... | PypiClean |
/encord_active-0.1.70.tar.gz/encord_active-0.1.70/src/encord_active/cli/project.py | from pathlib import Path
from typing import Dict
import typer
from tqdm.auto import tqdm
from encord_active.cli.utils.decorators import ensure_project
from encord_active.lib.common.data_utils import download_file, file_path_to_url
from encord_active.lib.db.connection import PrismaConnection
from encord_active.lib.pro... | PypiClean |
/saraswati-0.6.0.tar.gz/saraswati-0.6.0/CHANGES.rst | ###################
Saraswati changelog
###################
in progress
===========
2021-07-21 0.6.0
================
- Don't automatically start tailing the log file after "saraswati setup"
- Add systemd path-activation file in order to start the Saraswati service only
after all USB sound devices have been regis... | PypiClean |
/unicms-0.30.2-py3-none-any.whl/cms/medias/migrations/0005_auto_20210507_1618.py |
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
dependencies = [
migrations.swappable_dependency(settings.AUTH_USER_MODEL),
('cmsmedias', '0004_auto_20210415_1304'),
]
operations = [
... | PypiClean |
/varana-1.1.0-py3-none-any.whl/varana-1.1.0.data/scripts/phase.py | from argparse import ArgumentParser, RawTextHelpFormatter, ArgumentTypeError
from textwrap import dedent
from varana.phase import display_plot, get_model, prepare_data, save_phased_lightcurve, save_plot
arg_parser = ArgumentParser(
prog="phase.py",
description=">> Phase a light curve <<",
epilog="Copyrigh... | PypiClean |
/musma_ray-1.0.0.2-py3-none-any.whl/rllib/env/policy_server_input.py | from http.server import HTTPServer, SimpleHTTPRequestHandler
import logging
import queue
from socketserver import ThreadingMixIn
import threading
import time
import traceback
import ray.cloudpickle as pickle
from ray.rllib.env.policy_client import PolicyClient, _create_embedded_rollout_worker
from ray.rllib.offline.in... | PypiClean |
/eta_utility-2.2.3b1.tar.gz/eta_utility-2.2.3b1/eta_utility/eta_x/common/callbacks.py | from __future__ import annotations
from typing import TYPE_CHECKING
from stable_baselines3.common.callbacks import BaseCallback, CallbackList
from eta_utility import get_logger
from eta_utility.eta_x.envs import BaseEnv
if TYPE_CHECKING:
from stable_baselines3.common.type_aliases import MaybeCallback
log = get... | PypiClean |
/isedit-0.3.0.tar.gz/isedit-0.3.0/js/node_modules/postcss-modules-values/src/index.js | "use strict";
const ICSSUtils = require("icss-utils");
const matchImports = /^(.+?|\([\s\S]+?\))\s+from\s+("[^"]*"|'[^']*'|[\w-]+)$/;
const matchValueDefinition = /(?:\s+|^)([\w-]+):?(.*?)$/;
const matchImport = /^([\w-]+)(?:\s+as\s+([\w-]+))?/;
module.exports = (options) => {
let importIndex = 0;
const createIm... | PypiClean |
/aioprometheus-api-client-0.0.2.tar.gz/aioprometheus-api-client-0.0.2/aioprometheus_api_client/metric_snapshot_df.py | from pandas import DataFrame, to_datetime
from pandas._typing import Axes, Dtype
from typing import Optional, Sequence
from aioprometheus_api_client.exceptions import MetricValueConversionError
class MetricSnapshotDataFrame(DataFrame):
"""Subclass to format and represent Prometheus query response as pandas.DataF... | PypiClean |
/fake_bpy_module_3.0-20230117-py3-none-any.whl/bpy_extras/mesh_utils.py | import sys
import typing
import bpy.types
GenericType = typing.TypeVar("GenericType")
def edge_face_count(mesh) -> typing.List:
'''
:rtype: typing.List
:return: list face users for each item in mesh.edges.
'''
pass
def edge_face_count_dict(mesh) -> typing.Dict:
'''
:rtype: typing.D... | PypiClean |
/cchenutils-0.6.6-py3-none-any.whl/wanghong/video/mmml/data_prep.py |
import os
import random
from glob import iglob
from gensim.models import word2vec
import numpy as np
import pandas as pd
from keras.preprocessing.sequence import pad_sequences
def contains(x, keywords):
for keyword in keywords:
if keyword in x:
return True
return False
def load_npz(fp):... | PypiClean |
/niflow-nipype1-workflows-0.0.5.tar.gz/niflow-nipype1-workflows-0.0.5/niflow/nipype1/workflows/dmri/mrtrix/group_connectivity.py | import os.path as op
import warnings
from nipype.interfaces import io as nio # Data i/o
from nipype.interfaces import utility as util # utility
from nipype.interfaces import cmtk as cmtk
from nipype.algorithms import misc as misc
from nipype.pipeline import engine as pe # pipeline engine
from nipype.utils.misc impo... | PypiClean |
/pyka-1.3.6.0.tar.gz/pyka-1.3.6.0/kafka/coordinator/heartbeat.py | from __future__ import absolute_import, division
import copy
import time
class Heartbeat(object):
DEFAULT_CONFIG = {
'group_id': None,
'heartbeat_interval_ms': 3000,
'session_timeout_ms': 10000,
'max_poll_interval_ms': 300000,
'retry_backoff_ms': 100,
}
def __init... | PypiClean |
/cdktf-cdktf-provider-google_beta-9.0.1.tar.gz/cdktf-cdktf-provider-google_beta-9.0.1/src/cdktf_cdktf_provider_google_beta/google_ml_engine_model/__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 GoogleMlEngineModel(
_cdktf_9a9027ec.TerraformReso... | PypiClean |
/drypatrick-2021.7.5.tar.gz/drypatrick-2021.7.5/homeassistant/components/spotify/media_player.py | from __future__ import annotations
from asyncio import run_coroutine_threadsafe
import datetime as dt
from datetime import timedelta
import logging
import requests
from spotipy import Spotify, SpotifyException
from yarl import URL
from homeassistant.components.media_player import BrowseMedia, MediaPlayerEntity
from ... | PypiClean |
/rpa-pdf-1.1.13.tar.gz/rpa-pdf-1.1.13/rpa_pdf/Converter.py | import os
import subprocess
import warnings
import comtypes.client
from PIL import Image
from fpdf import FPDF
import pdfkit
from .common import parse_output_file_path
class Converter:
def __init__(self):
self.__root_dir__: str = os.path.dirname(os.path.abspath(__file__))
self.__fonts_dir__: str = ... | PypiClean |
/ethereum-etl-delphi-0.1.tar.gz/ethereum-etl-delphi-0.1/blockchainetl/jobs/exporters/google_pubsub_item_exporter.py |
import json
import logging
from google.cloud import pubsub_v1
from timeout_decorator import timeout_decorator
class GooglePubSubItemExporter:
def __init__(self, item_type_to_topic_mapping, message_attributes=(),
batch_max_bytes=1024 * 5, batch_max_latency=1, batch_max_messages=1000,
ena... | PypiClean |
/django-simpleui-2023.8.28.tar.gz/django-simpleui-2023.8.28/simpleui/widgets.py | import typing
import copy
import datetime
import re
import warnings
from collections import defaultdict
from itertools import chain
from django.conf import settings
from django.forms.renderers import get_default_renderer
from django.forms.utils import to_current_timezone
from django.forms.widgets import media_property... | PypiClean |
/git-deps-1.1.0.zip/git-deps-1.1.0/git_deps/html/node_modules/is-arguments/README.md | #is-arguments <sup>[![Version Badge][2]][1]</sup>
[![dependency status][5]][6]
[![dev dependency status][7]][8]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][11]][1]
Is this an arguments object? It's a harder question than you think.
## Example
```js
var isAr... | PypiClean |
/collective.noticeboard-0.7.1.zip/collective.noticeboard-0.7.1/bootstrap.py | import os, shutil, sys, tempfile, urllib, urllib2, subprocess
from optparse import OptionParser
if sys.platform == 'win32':
def quote(c):
if ' ' in c:
return '"%s"' % c # work around spawn lamosity on windows
else:
return c
else:
quote = str
# See zc.buildout.easy_inst... | PypiClean |
/qautils-0.0.2.tar.gz/qautils-0.0.2/README.rst | QAutils ( *Quality Assurance development, utils module* )
=========================================================
.. image:: https://img.shields.io/github/issues/netzulo/qautils.svg
:alt: Issues on Github
:target: https://github.com/netzulo/qautils/issues
.. image:: https://img.shields.io/github/issues-pr/netzu... | PypiClean |
/Python%20video%20annotator%20-%20models%20-%20gui-0.7.63.tar.gz/Python video annotator - models - gui-0.7.63/pythonvideoannotator_models_gui/models/video/objects/geometry/geometry_gui.py | import csv, cv2, os, numpy as np, AnyQt
from confapp import conf
from pyforms.basewidget import BaseWidget
from pyforms.controls import ControlButton
from pyforms.controls import ControlCombo
from pyforms.controls import ControlLabel
from pyforms.controls import ControlText
from pythonvideoannotator_models.models.video... | PypiClean |
/alipay_sdk_python-3.6.740-py3-none-any.whl/alipay/aop/api/request/MybankEcnyEntwalletCreateRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.MybankEcnyEntwalletCreateModel import MybankEcnyEntwalletCreateModel
class MybankEcnyEntwalletCreateRequest(object):
def __init__(self, biz_model=None):
self._biz_mo... | PypiClean |
/Django-Pizza-16.10.1.tar.gz/Django-Pizza-16.10.1/pizza/kitchen_sink/static/ks/ckeditor/CHANGES.md | CKEditor 4 Changelog
====================
## CKEditor 4.2.2
Fixed Issues:
* [#9314](http://dev.ckeditor.com/ticket/9314): Fixed: Incorrect error message on closing a dialog window without saving changs.
* [#10308](http://dev.ckeditor.com/ticket/10308): [IE10] Fixed: Unspecified error when deleting a row.
* [#10945](... | PypiClean |
/django-leonardo-1.0.6.tar.gz/django-leonardo-1.0.6/leonardo/static/leonardo/js/smoothscroll.js | if (!window['jQuery']) alert('The jQuery library must be included before the smoothscroll.js file. The plugin will not work propery.');
/**
* jQuery.ScrollTo - Easy element scrolling using jQuery.
* Copyright (c) 2007-2013 Ariel Flesler - aflesler(at)gmail(dot)com | http://flesler.blogspot.com
* Dual licensed unde... | PypiClean |
/odoo14_addon_ssi_psychology_consultation_outsource_work-14.0.1.2.0-py3-none-any.whl/odoo/addons/ssi_psychology_consultation_outsource_work/README.rst | .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
============================================
Psychology Case - Outsource Work Integration
============================================
Installation
============
... | PypiClean |
/bg_helper-0.1.19-py3-none-any.whl/bg_helper/tools/_docker.py | __all__ = [
'docker_ok', 'docker_stop', 'docker_start_or_run', 'docker_container_id',
'docker_container_inspect', 'docker_container_config', 'docker_container_env_vars',
'docker_logs', 'docker_exec', 'docker_exec_wait', 'docker_shell', 'docker_cleanup_volumes',
'docker_redis_start', 'docker_redis_cli', ... | PypiClean |
/rsa_encryptor-0.1.tar.gz/rsa_encryptor-0.1/rsa_encryptor/encryption.py | import rsa
import base64
from os import path
from .keygen import KeyGen
class Encryption(KeyGen):
__block_size = None
__cipher_length = None
def __init__(self, key_size=512, pool_size=8, output_dir='./storage', pb_alias="public_key", pr_alias="private_key") -> None:
super().__init__(... | PypiClean |
/django-proctor-1.2.1.tar.gz/django-proctor-1.2.1/proctor/middleware.py | from __future__ import absolute_import, unicode_literals
import six
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.deprecation import MiddlewareMixin
from . import api
from . import cache
from . import identify
from . import constants
class BaseProctorMidd... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/devices/latest/_enums.py |
from enum import Enum
__all__ = [
'AccessRights',
'AccessRightsDescription',
'AllocationPolicy',
'AuthenticationType',
'Capabilities',
'DefaultAction',
'IotDpsSku',
'IotHubSku',
'IpFilterActionType',
'IpFilterTargetType',
'NetworkRuleIPAction',
'PrivateLinkServiceConnec... | PypiClean |
/nni-3.0rc1-py3-none-macosx_10_9_x86_64.whl/nni_node/node_modules/deepmerge/readme.md | # deepmerge
Merges the enumerable properties of two or more objects deeply.
> UMD bundle is 646B minified+gzipped
## Getting Started
### Example Usage
<!--js
const merge = require('./')
-->
```js
const x = {
foo: { bar: 3 },
array: [{
does: 'work',
too: [ 1, 2, 3 ]
}]
}
const y = {
foo: { baz: 4 },
quux:... | PypiClean |
/z3c.feature.core-0.1.1.tar.gz/z3c.feature.core-0.1.1/src/z3c/feature/core/interfaces.py | import datetime
import os
import zope.interface
from zope.interface.interfaces import IInterface
import zope.schema
from z3c.builder.core.interfaces import troveClassiferVocabulary
FEATURE_GROUP = 'z3c.feature'
class IFeatureType(IInterface):
"""An interface that describes a particular type of feature."""
clas... | PypiClean |
/nitdms-2.0.7-py3-none-any.whl/waveformDT/waveform.py | from numbers import Number
import numpy as np
from unyt import matplotlib_support, unyt_array
matplotlib_support()
matplotlib_support.label_style = "/"
class WaveformDT(np.lib.mixins.NDArrayOperatorsMixin):
"""Python implementation of LabVIEW's waveform data type
LabVIEW's waveform data type has three requi... | PypiClean |
/otcextensions-0.30.2.tar.gz/otcextensions-0.30.2/doc/source/sdk/architecture.rst | Architecture Overview and Important Terms
=========================================
The OTC Extensions contain an abstraction interface layer. Clouds can
do many things, but there are probably only about ten of them that
most people care frequently.
If you want to do complicated things, the per-service oriented
porti... | PypiClean |
/dropbox_sign-1.1.1-py3-none-any.whl/dropbox_sign/model/signature_request_response_custom_field_type_enum.py | from __future__ import annotations
from typing import TYPE_CHECKING, Optional, List, Dict, Union
import json # noqa: F401
import re # noqa: F401
import sys # noqa: F401
from dropbox_sign import ApiClient
from dropbox_sign.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
M... | PypiClean |
/pytorch_pretrained_biggan-0.1.1-py3-none-any.whl/pytorch_pretrained_biggan/file_utils.py | from __future__ import (absolute_import, division, print_function, unicode_literals)
import json
import logging
import os
import shutil
import tempfile
from functools import wraps
from hashlib import sha256
import sys
from io import open
import boto3
import requests
from botocore.exceptions import ClientError
from tq... | PypiClean |
/v2/model/resource_tag.py |
import pprint
import re
import six
class ResourceTag:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value is json key in definit... | PypiClean |
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v2_10_0/job_process_broker.py | from ..broker import Broker
class JobProcessBroker(Broker):
controller = "job_processes"
def index(self, **kwargs):
"""Lists the available job processes. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the various ways to query lists, using this method is ... | PypiClean |
/allwhois-1.0.0.tar.gz/allwhois-1.0.0/README.md | All Whois
============
[](https://travis-ci.org/marirs/allwhois)
[](https://codecov.io/gh/marirs/allwhois)
](https://conferencecorpus.bitplan.com)
[ {
var indentUnit = config.indentUnit,
keywords = parserConfig.keywords,
functions = parserConfig.functions,
types = parserConfig.types,
sqlplus = parserConfig.sqlplus,
multiLineStrings ... | PypiClean |
/conpot-0.6.0-py3-none-any.whl/conpot/protocols/enip/enip_server.py |
import logging
import socket
import cpppo
import contextlib
import time
import sys
import traceback
from lxml import etree
from cpppo.server import network
from cpppo.server.enip import logix
from cpppo.server.enip import parser
from cpppo.server.enip import device
from conpot.core.protocol_wrapper import conpot_prot... | PypiClean |
/django_postgres_extensions-0.9.3.tar.gz/django_postgres_extensions-0.9.3/django_postgres_extensions/models/expressions.py | from django.db.models.expressions import F as BaseF, Value as BaseValue, Func, Expression
from django.utils import six
from django.contrib.postgres.fields.array import IndexTransform
from django.utils.functional import cached_property
from django.db.models.lookups import Transform
class OperatorMixin(object):
CAT ... | PypiClean |
/schemaorg_types-0.4.0.tar.gz/schemaorg_types-0.4.0/schemaorg_types/GlutenFreeDiet.py | from __future__ import annotations
from datetime import *
from time import *
from typing import *
from pydantic import *
class GlutenFreeDiet(BaseModel):
"""A diet exclusive of gluten.
References:
https://schema.org/GlutenFreeDiet
Note:
Model Depth 5
Attributes:
potentialAct... | PypiClean |
/listenclosely-0.1.2.tar.gz/listenclosely-0.1.2/CONTRIBUTING.rst | ============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.
You can contribute in many ways:
Types of Contributions
----------------------
Report Bugs
~~~~~~~~~~~
Report bugs at https://github.com/jlmadurga/listenclos... | PypiClean |
/uniqgift_custom-1.0.7-py3-none-any.whl/django/contrib/gis/geoip2/base.py | import socket
import geoip2.database
from django.conf import settings
from django.core.exceptions import ValidationError
from django.core.validators import validate_ipv46_address
from django.utils._os import to_path
from .resources import City, Country
# Creating the settings dictionary with any settings, if needed... | PypiClean |
/mayan-edms-maestropdf-2.0.2.1.tar.gz/mayan-edms-maestropdf-2.0.2.1/mayan/apps/metadata/views.py | from __future__ import absolute_import, unicode_literals
from django.conf import settings
from django.contrib import messages
from django.core.exceptions import PermissionDenied, ValidationError
from django.core.urlresolvers import reverse, reverse_lazy
from django.http import HttpResponseRedirect
from django.shortcut... | PypiClean |
/act-workers-2.1.14.tar.gz/act-workers-2.1.14/act/workers/libs/mandiant_ti_v4.py |
import base64
import datetime as DT
import logging
import time
import urllib.parse as urlparse
from typing import Any, Dict, List, Optional
import requests
APP = "mnemonic/mss/act-0.1"
class V4APIError(Exception):
"""Exception class used to report errors from the API"""
...
class Connection:
"""Basi... | PypiClean |
/ViewLogger-2.2.2.tar.gz/ViewLogger-2.2.2/README.md | # View Logger
ViewLogger is a simple Django app Log view hits over time so that you know who enter this view and when.
## Installation
* Install the package
```sh
pip install ViewLogger
pip install unicodecsv
```
* Add Application to your project's INSTALLED_APPs
```python
INSTALLED_APPS = (
'....',
'ViewLo... | PypiClean |
/PatryksAutoAI-1.6.2.tar.gz/PatryksAutoAI-1.6.2/KaggleAutoAI/regression/models/gradient_boosting.py | from sklearn.metrics import mean_squared_error,r2_score
from sklearn.ensemble import GradientBoostingRegressor
from sklearn.model_selection import GridSearchCV, train_test_split,KFold
import optuna.visualization as vis
from ..metrics_regression import Metrics
from joblib import dump, load
import numpy as np
import optu... | PypiClean |
/haiqv-profiling-0.0.1.tar.gz/haiqv-profiling-0.0.1/src/pandas_profiling/model/messages.py | values, high correlations)."""
from enum import Enum, auto, unique
from typing import List, Union
import numpy as np
from pandas_profiling.config import config
from pandas_profiling.model.base import Variable
from pandas_profiling.model.correlations import perform_check_correlation
@unique
class MessageType(Enum):
... | PypiClean |
/antlr4-mysql-0.1.1.tar.gz/antlr4-mysql-0.1.1/am/autogen/MySqlBaseParser.py | from antlr4 import *
from io import StringIO
import sys
if sys.version_info[1] > 5:
from typing import TextIO
else:
from typing.io import TextIO
def serializedATN():
with StringIO() as buf:
buf.write("\3\u608b\ua72a\u8133\ub9ed\u417c\u3be7\u7786\u5964\3\u0446")
buf.write("\u01ff\4\2\t\2\4\3\t\3\... | PypiClean |
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/vmware_protection_group_params.py | import re # noqa: F401
import sys # noqa: F401
from cohesity_sdk.cluster.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_typ... | PypiClean |
/h2o_pysparkling_3.1-3.42.0.2.post1.tar.gz/h2o_pysparkling_3.1-3.42.0.2.post1/ai/h2o/sparkling/ml/models/H2OPCAMOJOModel.py |
from ai.h2o.sparkling.ml.models.H2ODimReductionMOJOModel import H2ODimReductionMOJOModel
from pyspark.ml.util import _jvm
from py4j.java_gateway import JavaObject
from ai.h2o.sparkling.Initializer import Initializer
from ai.h2o.sparkling.ml.models.H2OMOJOSettings import H2OMOJOSettings
from ai.h2o.sparkling.ml.params.... | PypiClean |
/hydrocnhs-0.0.3.tar.gz/hydrocnhs-0.0.3/docs/index.rst | .. HydroCNHS documentation master file, created by
sphinx-quickstart on Thu Dec 23 20:33:17 2021.
You can adapt this file completely to your liking, but it should at least
contain the root `toctree` directive.
HydroCNHS User Manual
=====================================
**The Hydrological model for Coupled Na... | PypiClean |
/golismero-2.0.3.tar.gz/golismero-2.0.3/tools/sqlmap/thirdparty/chardet/langhungarianmodel.py |
import constants
# 255: Control characters that usually does not exist in any text
# 254: Carriage/Return
# 253: symbol (punctuation) that does not belong to word
# 252: 0 - 9
# Character Mapping Table:
Latin2_HungarianCharToOrderMap = ( \
255,255,255,255,255,255,255,255,255,255,254,255,255,254,255,255, # 00
255,25... | PypiClean |
/paddlepaddle-2.5.1-cp310-cp310-win_amd64.whl/paddle/static/quantization/cal_kl_threshold.py |
import logging
import math
import numpy as np
from ..log_helper import get_logger
_logger = get_logger(
__name__, logging.INFO, fmt='%(asctime)s-%(levelname)s: %(message)s'
)
def expand_quantized_bins(quantized_bins, reference_bins):
'''
Expand hist bins.
'''
expanded_quantized_bins = [0] * le... | PypiClean |
/tid_costa_rica_poverty_prediction-0.0.3-py3-none-any.whl/cr_analysis/processing/features.py | import pickle
from pathlib import Path
from typing import Union
import numpy as np
import pandas as pd
from sklearn.base import BaseEstimator, TransformerMixin
from cr_analysis.config.core import PIPELINE_DEBUG_DIR, config
# This custom step saves the column names of its input dataframe as a binary .pkl file
class ... | PypiClean |
/domain-admin-1.5.21.tar.gz/domain-admin-1.5.21/domain_admin/utils/whois_util/whois_util.py | from __future__ import print_function, unicode_literals, absolute_import, division
import json
import re
from copy import deepcopy
from datetime import datetime
from dateutil import parser
from domain_admin.log import logger
from domain_admin.utils import json_util, domain_util
from domain_admin.utils.whois_util.conf... | PypiClean |
/netbox_pip-0.0.10-py3-none-any.whl/users/api/views.py | from django.contrib.auth import authenticate
from django.contrib.auth.models import Group, User
from django.db.models import Count
from rest_framework.exceptions import AuthenticationFailed
from rest_framework.permissions import IsAuthenticated
from rest_framework.response import Response
from rest_framework.routers im... | PypiClean |
/django-cked-2.0.2.tar.gz/django-cked-2.0.2/README.rst | Django CKEd
===========
**CKEditor and elFinder integration for Django Framework.**
Provides a ``RichTextField`` and ``CKEditorWidget`` with upload and browse support.
.. figure:: docs/_static/img/ckeditor.jpg
:align: center
:alt: CKEditor widget
CKEditor widget
.. figure:: docs/_static/img/elfin... | PypiClean |
/twilio-fatisar-5.4.1.tar.gz/twilio-fatisar-5.4.1/twilio/rest/base.py | import logging
import platform
import os
from twilio.exceptions import TwilioException
from twilio.rest.resources import Connection
from twilio.rest.resources import UNSET_TIMEOUT
from twilio.rest.resources import make_request
from twilio.version import __version__ as LIBRARY_VERSION
def find_credentials(environ=Non... | PypiClean |
/snowland_apihelper-0.0.4a0-py3-none-any.whl/apihelper/thirdparty/demos/ProductListService.py |
import tornado.httpserver
import tornado.ioloop
from apihelper.thirdparty.tornadows import soaphandler
from apihelper.thirdparty.tornadows import webservices
from apihelper.thirdparty.tornadows import complextypes
from apihelper.thirdparty.tornadows.soaphandler import webservice
""" This web service implements two py... | PypiClean |
/py-osinfo-0.1.1.tar.gz/py-osinfo-0.1.1/README.rst | py-osinfo
=========
A module for getting the OS type, brand, release, and kernel with Python
2 & 3
Py-osinfo should work without any extra programs or libraries, beyond
what your OS provides. The goal is for this to work on every OS that
Python supports. Works on Linux, OS X, Windows, BSD, Solaris, Cygwin,
and Haiku.... | PypiClean |
/sparkautomapper.fhir-2.0.0.tar.gz/sparkautomapper.fhir-2.0.0/spark_auto_mapper_fhir/backbone_elements/medicinal_product_name_part.py | from __future__ import annotations
from typing import Optional, TYPE_CHECKING
from spark_auto_mapper_fhir.fhir_types.list import FhirList
from spark_auto_mapper_fhir.fhir_types.string import FhirString
from spark_auto_mapper_fhir.extensions.extension_base import ExtensionBase
from spark_auto_mapper_fhir.base_types.fh... | PypiClean |
/ms_deisotope-0.0.51-cp39-cp39-macosx_10_9_x86_64.whl/ms_deisotope/data_source/_vendor/masslynx/MassLynxRawChromatogramReader.py | import copy
import ctypes
from ctypes import*
from array import *
from .MassLynxRawReader import *
from .MassLynxRawDefs import MassLynxBaseType
class MassLynxRawChromatogramReader(MassLynxRawReader):
"""Read masslynx chromatogram data"""
def __init__(self, source ):
super(MassLynxRawChromatogramRea... | PypiClean |
/aleph-lang-1.0.0b0.tar.gz/aleph-lang-1.0.0b0/README.md |
# aleph
This package provides the Python bindings for `aleph`.
`aleph` defines a high level programming model that can be embedded into classical languages to develop large scale quantum hybrid applications, without the quantum mechanics.
## Getting started
To get started, install the aleph-lang package from PyPI:... | PypiClean |
/wptools_clone-0.4.19.tar.gz/wptools_clone-0.4.19/wptools/category.py | from . import core
class WPToolsCategory(core.WPTools):
"""
WPToolsCategory class
"""
def __init__(self, *args, **kwargs):
"""
Returns a WPToolsCategory object
Gets a random category without arguments
Optional positional {params}:
- [title]: <str> category ti... | PypiClean |
/approw-py-sdk-1.0.8.tar.gz/approw-py-sdk-1.0.8/approw/v2/management/users.py | from functools import singledispatch
from .types import ManagementClientOptions
from ..common.rest import RestClient
from ..common.utils import encrypt, url_join_args, convert_udv_list_to_dict, format_authorized_resources, \
convert_nested_pagination_custom_data_list_to_dict
from ..common.graphql import GraphqlCli... | PypiClean |
/formification-1.2.0-py3-none-any.whl/formulaic/static/admin/formulaic/ember-formulaic/node_modules/eslint/node_modules/lodash/_baseSortedIndexBy.js | var isSymbol = require('./isSymbol');
/** Used as references for the maximum length and index of an array. */
var MAX_ARRAY_LENGTH = 4294967295,
MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeFloor = Math.floor,
native... | PypiClean |
/QuantDigger-0.400.tar.gz/QuantDigger-0.400/quantdigger/widgets/mplotwidgets/mplots.py |
import numpy as np
import inspect
from matplotlib.colors import colorConverter
from matplotlib.collections import LineCollection, PolyCollection
def override_attributes(method):
# 如果plot函数不带绘图参数,则使用属性值做为参数。
# 如果带参数,者指标中的plot函数参数能够覆盖本身的属性。
def wrapper(self, widget, *args, **kwargs):
self.widget = ... | PypiClean |
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/caniuse-lite/data/regions/FK.js | module.exports={C:{"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,"22":0,"23":0,"24":0,"25":0,"26":0,"27":0,"28":0,"29":0,"30":0,"31":0,"32":0,"33":0,"34":0,"35":0,"36":0,"37":0,"38":0,"39":0,"40":0,"41":0,"42":0,"43":0,"44":0,"45":0,"... | PypiClean |
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/react-intl/locale-data/az.js | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e.ReactIntlLocaleData=e.ReactIntlLocaleData||{},e.ReactIntlLocaleData.az=t())}(this,function(){"use strict";return[{locale:"az",pluralRuleFunction:function(e,t){var a=String(e).split("... | PypiClean |
/reportlab-eh-3.6.11.tar.gz/reportlab-eh-3.6.11/src/reportlab/pdfbase/_fontdata_enc_symbol.py | SymbolEncoding = (
None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, None,
None, None, None, None, None, None, None, None, None, None, None, None, None, None, None, 'space',
'exclam', 'universal', 'numbersign', 'ex... | PypiClean |
/ringcentral_async_client-1.0.3-py3-none-any.whl/ringcentral_async_client/_code_gen/model/_13.py | from ._12 import *
@dataclass_json(letter_case=LetterCase.CAMEL)
@dataclass
class UpdateConferencingSettingsResponse(DataClassJsonMixin):
uri: Optional[str] = None
""" Canonical URI of a conferencing """
allow_join_before_host: Optional[bool] = None
""" Determines if host user allows conference pa... | PypiClean |
/bigquery_views_manager-1.0.4-py3-none-any.whl/bigquery_views_manager/cli.py | import argparse
import logging
import sys
from pathlib import Path
from typing import Dict, List
from abc import ABCMeta, abstractmethod
from collections import OrderedDict
from google.cloud import bigquery
from .views import get_bq_view_names
from .view_list import (
get_mapped_materialized_view_subset,
exte... | PypiClean |
/django-vr-payment-0.2.8.tar.gz/django-vr-payment-0.2.8/django_vr_payment/utils/transaction_status.py | import re
"""
checks for VR Payment result codes
see https://vr-pay-ecommerce.docs.oppwa.com/reference/resultCodes for full list
"""
TRANSACTION_SUCCESSFULLY_PROCESSED_REGEX = r"^(000\.000\.|000\.100\.1|000\.[36])"
TRANSACTION_SUCCESSFULLY_PROCESSED_NEEDS_REVIEW_REGEX = (
r"^(000\.400\.0[^3]|000\.400\.100)"
)
TR... | PypiClean |
/portfolio-carousel-0.1.4.tar.gz/portfolio-carousel-0.1.4/src/portfolio_carousel/frontend/js/swiper-bundle.min.js | !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Swiper=t()}(this,(function(){"use strict";function e(e){return null!==e&&"object"==typeof e&&"constructor"in e&&e.constructor===Obj... | PypiClean |
/jupyros-0.7.0a0.tar.gz/jupyros-0.7.0a0/js/node_modules/es-set-tostringtag/README.md | # es-set-tostringtag <sup>[![Version Badge][npm-version-svg]][package-url]</sup>
[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][npm-badge-png]][package-url]
A helper to opt... | PypiClean |
/fab-auth-dynamic-roles-0.1.7.tar.gz/fab-auth-dynamic-roles-0.1.7/README.md | # Auth plugin for Flask AppBuilder based Applications

## Goals
- Sync role from keycloak to Flask AppBuilder based applications.
- It means that you can maintain `Roles` only in `Keycloak`.
- Show a full configuration example with AzureAD, Keycloak, and Apache Supe... | PypiClean |
/muapi_client_py-0.1.3.2-py3-none-any.whl/muapi_client_py/cli.py | import requests
import hashlib
import time
import json
import re
import sys
import urllib.parse
import base64
class MyError(Exception):
def __init__(self, value='Ошибка'):
self.msg = value
def __str__(self):
return self.msg
class muapi_client:
def __init__(self, private_key, public_key,... | PypiClean |
/graph4nlp-cu111-0.5.5.tar.gz/graph4nlp-cu111-0.5.5/graph4nlp/pytorch/modules/graph_embedding_initialization/embedding_construction.py | import torch
from torch import nn
from torch.nn.utils.rnn import pack_padded_sequence, pad_packed_sequence
from ...data.data import from_batch
from ..utils.bert_utils import convert_text_to_bert_features, extract_bert_hidden_states
from ..utils.generic_utils import dropout_fn
from ..utils.padding_utils import pad_4d_v... | PypiClean |
/django-dojo-0.0.1.tar.gz/django-dojo-0.0.1/dojo/static/dojo/dojox/wire/ml/RestHandler.js | dojo.provide("dojox.wire.ml.RestHandler");
dojo.require("dojox.wire._base");
dojo.require("dojox.wire.ml.util");
dojo.declare("dojox.wire.ml.RestHandler", null, {
// summary:
// A REST service handler
// description:
// This class serves as a base REST service.
// Sub-classes may override _getContent() and _g... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.