id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/hops-apache-beam-2.24.0.2.tar.gz/hops-apache-beam-2.24.0.2/apache_beam/runners/dataflow/internal/clients/dataflow/message_matchers.py |
from __future__ import absolute_import
from future.utils import iteritems
from hamcrest.core.base_matcher import BaseMatcher
IGNORED = object()
class MetricStructuredNameMatcher(BaseMatcher):
"""Matches a MetricStructuredName."""
def __init__(self, name=IGNORED, origin=IGNORED, context=IGNORED):
"""Creates... | PypiClean |
/autorec-0.0.2.tar.gz/autorec-0.0.2/autorecsys/searcher/tuners/bayesian.py |
import random
import numpy as np
from scipy import optimize as scipy_optimize
from sklearn import exceptions
from sklearn import gaussian_process
from autorecsys.searcher.core import hyperparameters as hp_module
from autorecsys.searcher.core import trial as trial_lib
from autorecsys.searcher.tuners.tuner import Pip... | PypiClean |
/My-APScheduler-3.9.5.tar.gz/My-APScheduler-3.9.5/apscheduler/schedulers/asyncio.py | from __future__ import absolute_import
from functools import wraps, partial
from apscheduler.schedulers.base import BaseScheduler
from apscheduler.util import maybe_ref
try:
import asyncio
except ImportError: # pragma: nocover
try:
import trollius as asyncio
except ImportError:
raise Impo... | PypiClean |
/krkn_lib-1.1.1.tar.gz/krkn_lib-1.1.1/src/krkn_lib/models/telemetry/models.py | import base64
import json
from dataclasses import dataclass
import yaml
@dataclass(order=False)
class ScenarioTelemetry:
"""
Scenario Telemetry collection
"""
startTimeStamp: float
"""
Timestamp when the Krkn run started
"""
endTimeStamp: float
"""
Timestamp when the Krkn run... | PypiClean |
/udm-rest-client-1.2.2.tar.gz/udm-rest-client-1.2.2/udm_rest_client/base.py | import collections
import copy
import pprint
from typing import Any, Dict, Iterable, Iterator, Tuple, Union
LdapMapping = collections.namedtuple("LdapMapping", ("ldap2udm", "udm2ldap"))
class BaseObjectProperties(collections.abc.Mapping, collections.abc.Iterable):
"""Container for UDM properties."""
def __i... | PypiClean |
/libnacl-2.1.0.tar.gz/libnacl-2.1.0/doc/topics/releases/1.5.1.rst | ===========================
libnacl 1.5.1 Release Notes
===========================
Add Sealed Box Support
======================
A big thanks to Manatsawin Hanmongkolchai for adding in support for libsodium
`Sealed Boxes`!
Change Exception on Encrypt/Decrypt Failure
===========================================
If e... | PypiClean |
/sofia_redux-1.3.3.tar.gz/sofia_redux-1.3.3/sofia_redux/scan/coordinate_systems/projection/gnomonic_projection.py |
from astropy import units
import numpy as np
from sofia_redux.scan.coordinate_systems.projection.zenithal_projection \
import ZenithalProjection
from sofia_redux.scan.coordinate_systems.spherical_coordinates \
import SphericalCoordinates
__all__ = ['GnomonicProjection']
class GnomonicProjection(ZenithalPro... | PypiClean |
/duckduckgo-0.1.tar.gz/duckduckgo-0.1/duckduckgo.py | import urllib
import urllib2
from xml.etree import ElementTree
__version__ = 0.1
def query(query, useragent='python-duckduckgo 0.1'):
"""
Query Duck Duck Go, returning a Results object.
Here's a query that's unlikely to change:
>>> result = query('1 + 1')
>>> result.type
'nothing'
>>> r... | PypiClean |
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/acm/request-certificate.rst | **To request a new ACM certificate**
The following ``request-certificate`` command requests a new certificate for the www.example.com domain using DNS validation::
aws acm request-certificate --domain-name www.example.com --validation-method DNS
You can enter an idempotency token to distinguish between calls to ... | PypiClean |
/django_lightweight_queue-4.11.0-py3-none-any.whl/django_lightweight_queue/management/commands/queue_runner.py | from typing import Any, Dict, Optional
import daemonize
from django.apps import apps
from django.core.management.base import CommandError, CommandParser
from ...types import QueueName
from ...utils import get_logger, get_backend, get_middleware
from ...runner import runner
from ...command_utils import CommandWithExt... | PypiClean |
/pyqtgraph_karl-0.9.8.2.zip/pyqtgraph_karl-0.9.8.2/pyqtgraph/opengl/items/GLImageItem.py | from OpenGL.GL import *
from .. GLGraphicsItem import GLGraphicsItem
from ...Qt import QtGui
import numpy as np
__all__ = ['GLImageItem']
class GLImageItem(GLGraphicsItem):
"""
**Bases:** :class:`GLGraphicsItem <pyqtgraph.opengl.GLGraphicsItem>`
Displays image data as a textured quad.
"""
... | PypiClean |
/jupyterlab_classic-0.1.11-py3-none-any.whl/jupyterlab_classic/static/3062.bundle.js | (self.webpackChunk_JUPYTERLAB_CORE_OUTPUT=self.webpackChunk_JUPYTERLAB_CORE_OUTPUT||[]).push([[3062],{8843:(e,t,n)=>{"use strict";n.r(t),n.d(t,{Cache:()=>g,Selector:()=>y,Style:()=>p,Rule:()=>m,FreeStyle:()=>v,create:()=>S});let s=0;const r=Object.create(null),i=["animation-iteration-count","border-image-outset","borde... | PypiClean |
/calligraphy_scripting-1.1.4-py3-none-any.whl/calligraphy_scripting/parser.py | """Module to parse Calligraphy scripts into token representation"""
from __future__ import annotations
import re
import os
from calligraphy_scripting import transpiler
from calligraphy_scripting import utils
def handle_sourcing(contents: str) -> str:
"""Handle replacing Calligraphy source statements and recursiv... | PypiClean |
/ablator_ken_test2-0.0.1.tar.gz/ablator_ken_test2-0.0.1/ablator/modules/storage/cloud.py | import json
import os
import socket
import subprocess
import typing as ty
from pathlib import Path
from ablator.config.main import ConfigBase, configclass
from ablator.config.types import Optional
from ablator.modules.loggers.file import FileLogger
@configclass
class GcpConfig(ConfigBase):
"""
Configuration f... | PypiClean |
/chatexampy-0.1.tar.gz/chatexampy-0.1/src/client.py | import logging
import logs.config_client_log
import argparse
import sys
import os
from Crypto.PublicKey import RSA
from PyQt5.QtWidgets import QApplication, QMessageBox
from common.variables import *
from common.errors import ServerError
from common.decos import log
from client.database import ClientDatabase
from clie... | PypiClean |
/ydk-models-cisco-ios-xr-6.6.3.tar.gz/ydk-models-cisco-ios-xr-6.6.3/ydk/models/cisco_ios_xr/_meta/_vplatform.py | from ydk._core._dm_meta_info import _MetaInfoClassMember, _MetaInfoClass, _MetaInfoEnum
from ydk._core._dm_meta_info import ATTRIBUTE, REFERENCE_LIST, REFERENCE_LEAFLIST, REFERENCE_BITS, REFERENCE_UNION
from ydk._core._dm_meta_info import REFERENCE_CLASS, REFERENCE_IDENTITY_CLASS, REFERENCE_ENUM_CLASS, ANYXML_CLASS
fro... | PypiClean |
/django-tastypie-migrate-fix-0.10.0.tar.gz/django-tastypie-migrate-fix-0.10.0/docs/release_notes/v0.9.13.rst | v0.9.13
=======
*SECURITY HARDENING*
The latest version of Tastypie includes a number of important security fixes and all users are strongly
encouraged to upgrade.
Please note that the fixes might cause backwards incompatibility issues, so please check the upgrade notes
carefully.
Security hardening improvements
--... | PypiClean |
/xyz_util-0.7.16-py3-none-any.whl/xyz_util/dbutils.py | from __future__ import unicode_literals, print_function
from django.db import connections
import logging
from six import string_types
log = logging.getLogger("django")
try:
db = connections['default']
cursor = db.cursor()
cursor._defer_warnings = True
except:
pass
def get_table_fields(conn, table_na... | PypiClean |
/cdktf-cdktf-provider-vsphere-7.0.0.tar.gz/cdktf-cdktf-provider-vsphere-7.0.0/src/cdktf_cdktf_provider_vsphere/data_vsphere_host/__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 DataVsphereHost(
_cdktf_9a9027ec.TerraformDataSour... | PypiClean |
/cdktf_cdktf_provider_aws-17.0.2-py3-none-any.whl/cdktf_cdktf_provider_aws/qldb_ledger/__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 QldbLedger(
_cdktf_9a9027ec.TerraformResource,
... | PypiClean |
/abir_roy_package-0.0.1-py3-none-any.whl/abir_roy_package/data/dataset.py | import json
from PIL import Image
import os
import numpy as np
import requests
from io import BytesIO
import validators
class Dataset(object):
'''
A class for the dataset that will return data items as per the given index
'''
def __init__(self, annotation_file, transforms=None):
'''
... | PypiClean |
/txt_to_html-0.0.1.tar.gz/txt_to_html-0.0.1/resources/MathJax-2.7.2/unpacked/jax/output/CommonHTML/fonts/TeX/SansSerif-Regular.js | (function (CHTML) {
var font = 'MathJax_SansSerif';
CHTML.FONTDATA.FONTS[font] = {
className: CHTML.FONTDATA.familyName(font),
centerline: 250, ascent: 750, descent: 250,
0x20: [0,0,250,0,0], // SPACE
0x21: [694,0,319,110,208], // EXCLAMATION MARK
0x22: [694,-471,500,32,325], ... | PypiClean |
/latimes-appengine-template-0.022.tar.gz/latimes-appengine-template-0.022/appengine_template/google_appengine/lib/django_0_96/django/db/transaction.py | try:
import thread
except ImportError:
import dummy_thread as thread
from django.db import connection
from django.conf import settings
class TransactionManagementError(Exception):
"""
This exception is thrown when something bad happens with transaction
management.
"""
pass
# The state is a... | PypiClean |
/nanovar-1.4.1.tar.gz/nanovar-1.4.1/README.md | <p align="center">
<img src="http://benoukraf-lab.com/wp-content/uploads/2019/05/Nanovarlogo.png" width="200" alt="accessibility text" align='left'>
</p>
<br/><br/>
## NanoVar - Structural variant caller using low-depth long-read sequencing
[:
eplrs = False
class ShipType(UnitType):
helicopter_num = 0
plane_num = 0
parking = 0
clas... | PypiClean |
/tb-rest-client-3.5.tar.gz/tb-rest-client-3.5/tb_rest_client/models/models_pe/system_info.py | # Copyright 2023. ThingsBoard
#
# 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 writi... | PypiClean |
/kumo-ai-0.1.11.tar.gz/kumo-ai-0.1.11/kumoai/datamodel/jobs.py | import logging
from dataclasses import field
from datetime import datetime, timedelta
from enum import Enum
from typing import List, Optional, Union
from pydantic import Field, validator
from pydantic.dataclasses import dataclass
from typing_extensions import Annotated, Literal
logger = logging.getLogger(__name__)
... | PypiClean |
/toposis-bhanu-101803651-1.2.1.tar.gz/toposis-bhanu-101803651-1.2.1/README.md | Source code for TOPSIS optimization algorithm in python.
TOPSIS is an algorithm for the determination of the best choice out of many using Positive Ideal Solution and Negative Ideal
solution.
For sample solutions visit: http://www.jiem.org/index.php/jiem/article/view/573/498 WikiPedia:
https://en.wikipedia.org/wiki/... | PypiClean |
/open-autonomy-0.12.0.tar.gz/open-autonomy-0.12.0/docs/api/cli/utils/click_utils.md | <a id="autonomy.cli.utils.click_utils"></a>
# autonomy.cli.utils.click`_`utils
Usefule click utils.
<a id="autonomy.cli.utils.click_utils.image_profile_flag"></a>
#### image`_`profile`_`flag
```python
def image_profile_flag(default: str = ImageProfiles.PRODUCTION,
mark_default: bool = True) ... | PypiClean |
/django_amis_render-0.0.8-py3-none-any.whl/django_amis_render/static/amis-editor-demo/n/monaco-editor/min/vs/basic-languages/fsharp/fsharp.js | define("vs/basic-languages/fsharp/fsharp",["require","exports"],(function(e,n){"use strict";Object.defineProperty(n,"__esModule",{value:!0}),n.language=n.conf=void 0,n.conf={comments:{lineComment:"//",blockComment:["(*","*)"]},brackets:[["{","}"],["[","]"],["(",")"]],autoClosingPairs:[{open:"{",close:"}"},{open:"[",clo... | PypiClean |
/argo-workflows-fvdnabee-3.6.1.tar.gz/argo-workflows-fvdnabee-3.6.1/docs/IoK8sApiCoreV1ISCSIVolumeSource.md | # IoK8sApiCoreV1ISCSIVolumeSource
Represents an ISCSI disk. ISCSI volumes can only be mounted as read/write once. ISCSI volumes support ownership management and SELinux relabeling.
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**chap_auth_discovery** | **b... | PypiClean |
/social_core_optimized-0.0.1.tar.gz/social_core_optimized-0.0.1/social_core/exceptions.py | class SocialAuthBaseException(ValueError):
"""Base class for pipeline exceptions."""
pass
class WrongBackend(SocialAuthBaseException):
def __init__(self, backend_name):
self.backend_name = backend_name
def __str__(self):
return 'Incorrect authentication service "{0}"'.format(
... | PypiClean |
/databricks-feature-store-0.14.2.tar.gz/databricks-feature-store-0.14.2/databricks/feature_store/entities/online_store_detailed.py | from typing import Optional
from databricks.feature_store.entities._feature_store_object import _FeatureStoreObject
from databricks.feature_store.entities.cloud import Cloud
from databricks.feature_store.entities.online_store_metadata import (
CosmosDbMetadata,
DynamoDbMetadata,
MySqlMetadata,
OnlineSt... | PypiClean |
/yaml_setup-0.1.2.tar.gz/yaml_setup-0.1.2/yamlup/cli.py | import typer
import rich
import json
import sys
import re
from pathlib import Path
from rich.table import Table
from .schema import SetupFile, cerr, cout
app = typer.Typer(
name="yamlup",
help=f"A small CLI that's packaged with the yaml-setup lib",
no_args_is_help=True,
rich_help_panel="rich",
r... | PypiClean |
/linenotify-python-0.1.1.tar.gz/linenotify-python-0.1.1/README.md | # linenotify-python
LINE notify Web API wrapper
Plenty of [internal validations](./linenotify/validations.py), easy [error handling](./linenotify/exceptions.py).
## Install
```
pip install linenotify-python
```
## Usage
```python
from os import environ, path
import cv2
import linenotify as ln
TOKEN = environ['... | PypiClean |
/garpix_page-2.48.1.tar.gz/garpix_page-2.48.1/garpix_page/static/garpix_page/js/admin/components.js | class ItcSimpleSlider {
// Базовые классы и селекторы.
static PREFIX = 'slider';
static CLASS_NAME_ITEM = `${ItcSimpleSlider.PREFIX}__item`;
static CLASS_NAME_ITEM_ACTIVE = `${ItcSimpleSlider.PREFIX}__item_active`;
static CLASS_NAME_ITEMS = `${ItcSimpleSlider.PREFIX}__items`;
static CLASS_NAME_INDICATOR = `... | PypiClean |
/tank_inspector-0.0.0.tar.gz/tank_inspector-0.0.0/tank_inspector/pre_monsoon/create_table_pm.py | import sqlite3
conn = sqlite3.connect("database.db")
def create_pm_table(): # FUNCTION TO CREATE PRE MONSOON TABLE
print("Recommend to write as: pm_<tank_number> to avoid name conflict!")
# Table name input
table_name = str(input("Enter pre monsoon table name: "))
# CHECK WHETHER THE PARTICULAR TABL... | PypiClean |
/nlprep-0.2.1.tar.gz/nlprep-0.2.1/backup_dataset/multiqa/dataset.py | import re
import string
from nlprep.middleformat import MiddleFormat
import gzip
import json
from tqdm import tqdm
DATASET_FILE_MAP = {
"train": ["https://multiqa.s3.amazonaws.com/squad2-0_format_data/SQuAD2-0_train.json.gz",
"https://multiqa.s3.amazonaws.com/squad2-0_format_data/NewsQA_train.json.g... | PypiClean |
/dbpedia_ent-0.1.9-py3-none-any.whl/dbpedia_ent/dto/ent/n1/o/trie_ou.py |
d_trie_ou = {'_': ['ou-tchang-fou', 'ou-daig-weos', 'ou-prime', 'ou812'],
'a': ['ouangolodougou',
'ouaregou-peulh',
'ouattaradougou',
'ouagadoughou',
'ouakpe-daho',
'ouanaminthe',
'ouattagouna',
'ouagadougou',
'ouaouizeght',
'ouaongtenga',
'ouaoui... | PypiClean |
/labandco-2.2.33.tar.gz/labandco-2.2.33/src/labster/blueprints/notifications/mails.py | from __future__ import annotations
from flask import render_template
from flask_mail import Message
from flask_sqlalchemy import SQLAlchemy
from labster.di import injector
from labster.domain2.model.demande import Demande
from labster.domain2.model.notification import Notification
from labster.domain2.model.profile i... | PypiClean |
/django-ra-erp-1.3.1.tar.gz/django-ra-erp-1.3.1/ra/static/adminlte/plugins/moment/locale/hr.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 |
/forpy-2.0.4.tar.gz/forpy-2.0.4/build_support/external/googletest-v1.8.0/googletest/docs/V1_7_Samples.md | If you're like us, you'd like to look at some Google Test sample code. The
[samples folder](../samples) has a number of well-commented samples showing how to use a
variety of Google Test features.
* [Sample #1](../samples/sample1_unittest.cc) shows the basic steps of using Google Test to test C++ functions.
* [Sa... | PypiClean |
/search_in_api-1.0.1.tar.gz/search_in_api-1.0.1/README.rst | =============
Search in API
=============
.. image:: https://img.shields.io/pypi/v/search_in_api.svg
:target: https://pypi.python.org/pypi/search_in_api
.. image:: https://img.shields.io/travis/archatas/search_in_api.svg
:target: https://travis-ci.org/archatas/search_in_api
.. image:: https://pyup.i... | PypiClean |
/owasp-skf-1.3.21.tar.gz/owasp-skf-1.3.21/skf/markdown/knowledge_base/25-knowledge_base--Include_Strict_Transport_Security_header--.md |
Include Strict-Transport-Security header
-------
**Description:**
HTTP Strict-Transport-Security (HSTS) enforces secure (HTTP over SSL/TLS) connections to
the server. This reduces impact of bugs in web applications leaking session data through
cookies and external links and defends against Man-in-the-middle attack... | PypiClean |
/ozmo-1.0.2.tar.gz/ozmo-1.0.2/README.md | Linux: [](https://travis-ci.org/wpietri/ozmo)
Windows: [](https://ci.appveyor.com/project/wpietri/ozmo)
ozmo
=====
A simple command-line python script to drive a robot ... | PypiClean |
/django-dmcadmin-0.1.1.tar.gz/django-dmcadmin-0.1.1/dmcadmin/static/AdminLTE/plugins/summernote/lang/summernote-es-ES.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 r=a();for(var o in r)("object"==typeof exports?exports:e)[o]=r[o]}}(window,(function(){return function(e){var a={};function r(o){if(a[o])return a[o].exports;var t=a[... | PypiClean |
/ydk-models-cisco-ios-xr-6.6.3.tar.gz/ydk-models-cisco-ios-xr-6.6.3/ydk/models/cisco_ios_xr/Cisco_IOS_XR_ip_iep_oper.py | import sys
from collections import OrderedDict
from ydk.types import Entity as _Entity_
from ydk.types import EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Empty, Decimal64
from ydk.types import Entity, EntityPath, Identity, Enum, YType, YLeaf, YLeafList, YList, LeafDataList, Bits, Em... | PypiClean |
/python_mibig-0.1.0-py3-none-any.whl/mibig/converters/read/polyketide.py | from .shared import NonCanonical, Thioesterase
class Polyketide:
def __init__(self, raw):
self.cyclases = raw.get("cyclases") # list[str]
self.cyclic = raw.get("cyclic") # bool
self.ketide_length = raw.get("ketide_length") # int
self.release_type = raw.get("release_type") # list... | PypiClean |
/tendril-identity-0.2.7.tar.gz/tendril-identity-0.2.7/docs/api/index.rst |
API Documentation
=================
.. automodule:: tendril.identity
:members:
:undoc-members:
:show-inheritance:
Tendril Persona Infrastructure
------------------------------
.. toctree::
tendril.identity.persona.manager
Provided Schema Definitions
---------------------------
.. toctree::
ten... | PypiClean |
/bulma_sphinx_theme-0.2.1.tar.gz/bulma_sphinx_theme-0.2.1/docs/user_guide/source.md | # Source Buttons
Source buttons are links to the source of your page’s content (either on your site, or on hosting sites like GitHub).
## Add an edit button
You can add a button to each page that will allow users to edit the page text directly and submit a pull request to update the documentation. To add an edit but... | PypiClean |
/salt-ssh-9000.tar.gz/salt-ssh-9000/doc/topics/virt/nic.rst | .. _vm-nic-profiles:
================================
Virtual Machine Network Profiles
================================
Salt Virt allows for the network devices created for deployed virtual machines
to be finely configured. The configuration is a simple data structure which is
read from the ``config.option`` function... | PypiClean |
/numpy_mkp2020-1.14.5-cp37-cp37m-manylinux2014_aarch64.whl/numpy/testing/_private/decorators.py | import collections.abc
from .utils import SkipTest, assert_warns, HAS_REFCOUNT
__all__ = ['slow', 'setastest', 'skipif', 'knownfailureif', 'deprecated',
'parametrize', '_needs_refcount',]
def slow(t):
"""
Label a test as 'slow'.
The exact definition of a slow test is obviously both subjectiv... | PypiClean |
/hotpot_zzy-0.3.1.1-py3-none-any.whl/hotpot/tanks/cc.py | import os
from pathlib import Path
from typing import *
import json
import numpy as np
import pandas as pd
from openbabel import openbabel as ob
from hotpot import data_root
from hotpot.cheminfo import Molecule, Atom
from hotpot.bundle import MolBundle
from hotpot.utils.manage_machine import machine
# the atomic sin... | PypiClean |
/ssh_remote_control-0.2.1.tar.gz/ssh_remote_control-0.2.1/src/ssh_remote_control/default_collections/windows_ps.py | from ..collection import Collection
from ..command import ActionCommand, SensorCommand
from ..sensor import BinarySensor, NumberSensor, TextSensor
from .const import ActionKey, ActionName, SensorKey, SensorName
windows_ps = Collection(
"Windows (Power Shell)",
[
ActionCommand(
"Stop-Compute... | PypiClean |
/xmldirector.plonecore-2.1.1.zip/xmldirector.plonecore-2.1.1/xmldirector/plonecore/browser/resources/ace-builds/src/theme-iplastic.js | define("ace/theme/iplastic",["require","exports","module","ace/lib/dom"], function(require, exports, module) {
exports.isDark = false;
exports.cssClass = "ace-iplastic";
exports.cssText = ".ace-iplastic .ace_gutter {\
background: #dddddd;\
color: #666666\
}\
.ace-iplastic .ace_print-margin {\
width: 1px;\
background: ... | PypiClean |
/bob.bio.face_ongoing-1.0.7.zip/bob.bio.face_ongoing-1.0.7/bob/bio/face_ongoing/preprocessor/FaceCropTanTriggs.py |
import bob.ip.base
import bob.ip.color
import numpy
from bob.bio.face.preprocessor import FaceCrop
class FaceCropTanTriggs (FaceCrop):
"""Crops the face according to the given annotations in the same fashing as in :py:class:`bob.bio.face.preprocessor.FaceCrop`
and it returns either a 4 channel crop (RGB + TanTr... | PypiClean |
/icon-etl-0.1.3.tar.gz/icon-etl-0.1.3/iconetl/cli/export_all.py |
import re
from datetime import datetime, timedelta
import click
from blockchainetl_common.logging_utils import logging_basic_config
from iconsdk.icon_service import IconService
from iconsdk.providers.http_provider import HTTPProvider
from iconetl.jobs.export_all_common import export_all_common
from iconetl.service.i... | PypiClean |
/knowledge_repo-0.9.3-py3-none-any.whl/knowledge_repo/app/static/js/pages/base.js | $(document).ready(function () {
$("#searchbar")[0].setSelectionRange(1000, 1000);
$('#searchbar').typeahead({
hint: false,
highlight: true,
minLength: 1
}, {
name: 'knowledge_posts',
limit: 20,
display: function (item) {
return item.title + " - " ... | PypiClean |
/flowserv_core-0.9.4-py3-none-any.whl/flowserv/model/auth.py | from abc import ABCMeta, abstractmethod
from flowserv.model.base import APIKey, GroupObject, RunObject, User
import datetime as dt
import dateutil.parser
import flowserv.error as err
class Auth(metaclass=ABCMeta):
"""Base class for authentication and authorization methods. Different
authorization policies ... | PypiClean |
/invenio-records-marc21-0.14.2.tar.gz/invenio-records-marc21-0.14.2/invenio_records_marc21/resources/serializers/ui/fields/metadata.py |
"""Metadata field for marc21 records."""
import re
from dataclasses import dataclass
from typing import Dict, List
from marshmallow.fields import Field
class Marc21Controlfield:
"""Marc21Controlfield."""
def __init__(self, value):
"""Constructor."""
self.value = value
@dataclass
class Mar... | PypiClean |
/django-template-engines-1.3.10.tar.gz/django-template-engines-1.3.10/template_engines/templatetags/utils.py | import re
from io import BytesIO
from urllib.request import urlopen
from PIL import Image, ImageFile
from django.template.base import FilterExpression, kwarg_re
DIM_REGEX = r'^(?P<v>(\d|\.)+)(?P<u>[a-z]*)$'
DOCX_PAGE_WIDTH = 6120130
DOCX_PAGE_HEIGHT = 9251950
ODT_PAGE_WIDTH = 16697
ODT_PAGE_HEIGHT = 28815
CONV_MAP... | PypiClean |
/CoAPthon-4.0.2.tar.gz/CoAPthon-4.0.2/coapthon/transaction.py | import threading
__author__ = 'Giacomo Tanganelli'
class Transaction(object):
"""
Transaction object to bind together a request, a response and a resource.
"""
def __init__(self, request=None, response=None, resource=None, timestamp=None):
"""
Initialize a Transaction object.
... | PypiClean |
/PyGithubF-1.56.tar.gz/PyGithubF-1.56/github/Organization.py |
import datetime
import github.Event
import github.GithubObject
import github.NamedUser
import github.PaginatedList
import github.Plan
import github.Project
import github.Repository
import github.Team
from . import Consts
class Organization(github.GithubObject.CompletableGithubObject):
"""
This class repres... | PypiClean |
/anarchy-1.1.tar.gz/anarchy-1.1/README.md | ## Overview
`anarchy` is a package for managed & beautiful chaos, designed with
incremental procedural content generation in mind. It includes
incremental & reversible random numbers, a selection of distribution
functions for random values, and cohort operations that can be applied
incrementally to groups along an ind... | PypiClean |
/vivid3d-1.0.0.tar.gz/vivid3d-1.0.0/lib/ImportExport/assimp/contrib/zlib/contrib/pascal/readme.txt |
This directory contains a Pascal (Delphi, Kylix) interface to the
zlib data compression library.
Directory listing
=================
zlibd32.mak makefile for Borland C++
example.pas usage example of zlib
zlibpas.pas the Pascal interface to zlib
readme.txt this file
Compatibility notes
===========... | PypiClean |
/Euphorie-15.0.2.tar.gz/Euphorie-15.0.2/src/euphorie/client/resources/oira/script/chunks/36632.ec073ed9ec8040e37759.min.js | (self.webpackChunk_patternslib_patternslib=self.webpackChunk_patternslib_patternslib||[]).push([[36632],{36632:function(e){const t=["a","abbr","address","article","aside","audio","b","blockquote","body","button","canvas","caption","cite","code","dd","del","details","dfn","div","dl","dt","em","fieldset","figcaption","fi... | PypiClean |
/baiduads_sdk_auto-2023.1.0-py3-none-any.whl/baiduads/cyctemplate/model/get_template_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 |
/csle_agents-0.3.8.tar.gz/csle_agents-0.3.8/src/csle_agents/agents/dfsp_local/dfsp_local_ppo_agent.py | from typing import Union, List, Dict, Tuple, Optional, Any
import time
import gymnasium as gym
import os
import math
import numpy as np
from csle_common.dao.emulation_config.emulation_env_config import EmulationEnvConfig
from csle_common.dao.simulation_config.simulation_env_config import SimulationEnvConfig
from csle_c... | PypiClean |
/o7cli-0.1.265-py3-none-any.whl/o7lib/weather/ca_wls_v2.py | #!/usr/bin/python
#************************************************************************
# Copyright 2022 O7 Conseils inc (Philippe Gosselin)
#
# 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 a... | PypiClean |
/pyFortiManagerAPI-0.2.1.tar.gz/pyFortiManagerAPI-0.2.1/README.md | # pyFortiManagerAPI
A Python wrapper for the FortiManager JSON RPC API.
[](https://github.com/dwyl/esta/issues) [
class List(AAZCommand):
"""List all the tables for the given Log Analytics workspace.
:example: List all the tables for the given Log Analytics workspace
az mon... | PypiClean |
/mp_boilerplate-0.3.4-py3-none-any.whl/mp_boilerplate/core/MultiWorker.py | import multiprocessing as mp
import typing as t
from threading import Thread
from typeguard import typechecked
class MultiWorker:
_sentinel = None
_finished_adding = False
@typechecked
def __init__(
self,
job: t.Callable[..., t.Any],
init: t.Callable[..., t.Any] = None,
... | PypiClean |
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/spider/sensor.py | from __future__ import annotations
from homeassistant.components.sensor import (
SensorDeviceClass,
SensorEntity,
SensorStateClass,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import UnitOfEnergy, UnitOfPower
from homeassistant.core import HomeAssistant
from homeassistan... | PypiClean |
/ooouno-2.1.2-py3-none-any.whl/ooo/lo/rdf/x_document_metadata_access.py | from __future__ import annotations
import typing
from abc import abstractmethod
from .x_repository_supplier import XRepositorySupplier as XRepositorySupplier_feff0e30
from .xuri import XURI as XURI_5682078c
if typing.TYPE_CHECKING:
from ..beans.property_value import PropertyValue as PropertyValue_c9610c73
from ... | PypiClean |
/nxt-python-3.2.0.tar.gz/nxt-python-3.2.0/nxt/sensor/hitechnic.py |
from nxt.sensor import Type, Mode
from .digital import BaseDigitalSensor
from .analog import BaseAnalogSensor
class Compass(BaseDigitalSensor):
"""Hitechnic compass sensor."""
I2C_ADDRESS = BaseDigitalSensor.I2C_ADDRESS.copy()
I2C_ADDRESS.update({'mode': (0x41, 'B'),
'heading': (0... | PypiClean |
/python-tds-1.13.0.tar.gz/python-tds-1.13.0/src/pytds/collate.py | import codecs
import struct
TDS_CHARSET_ISO_8859_1 = 1
TDS_CHARSET_CP1251 = 2
TDS_CHARSET_CP1252 = 3
TDS_CHARSET_UCS_2LE = 4
TDS_CHARSET_UNICODE = 5
ucs2_codec = codecs.lookup('utf_16_le')
def sortid2charset(sort_id):
sql_collate = sort_id
#
# The table from the MSQLServer reference "Windows Collation ... | PypiClean |
/infrasim-compute-3.5.1.tar.gz/infrasim-compute-3.5.1/infrasim/ipmiconsole/sensor.py | from .common import msg_queue, send_ipmi_sim_command
import random
import threading
from .sel import SEL
from functools import wraps
sensor_unit = {
0: 'percent', 34: 'm', 68: 'megabit',
1: 'degrees C', 35: 'cu cm', 69: 'gigabit',
2: 'degrees F', 36: 'cu m', ... | PypiClean |
/astro-prospector-1.2.0.tar.gz/astro-prospector-1.2.0/doc/index.rst | Prospector
======================================
**Prospector** is a package to conduct principled inference of stellar population
properties from photometric and/or spectroscopic data using flexible models.
Prospector allows you to:
* Infer high-dimensional stellar population properties, including nebular
emission... | PypiClean |
/dsin100daysv28-6.0.1.tar.gz/dsin100daysv28-6.0.1/notebook/static/components/MathJax/localization/da/TeX.js | MathJax.Localization.addTranslation("da","TeX",{version:"2.7.5",isLoaded:true,strings:{ExtraOpenMissingClose:"Ekstra venstreklammeparentes eller manglende h\u00F8jreklammeparentes",ExtraCloseMissingOpen:"Ekstra h\u00F8jreklammeparentes eller manglende venstreklammeparentes",MissingLeftExtraRight:"Manglende \\left eller... | PypiClean |
/cuquantum_python_cu11-23.6.0-cp311-cp311-manylinux2014_x86_64.whl/cuquantum/cutensornet/_internal/einsum_parser.py | from collections import Counter
from itertools import chain
import re
import sys
import numpy as np
from . import formatters
from .tensor_wrapper import wrap_operands
from ...utils import WHITESPACE_UNICODE
DISALLOWED_LABELS = set(['.', '-', '>'])
native_to_str = lambda native : "'" + ''.join(s if s is not Ellipsis... | PypiClean |
/py_rete-0.0.6.tar.gz/py_rete-0.0.6/py_rete/ncc_node.py | from py_rete.common import Token
from py_rete.beta import BetaNode
class NccNode(BetaNode):
def __init__(self, children=None, parent=None, items=None, partner=None):
"""
:type partner: NccPartnerNode
:type items: list of rete.Token
"""
super(NccNode, self).__init__(childre... | PypiClean |
/polecat-filefield-0.0.0.tar.gz/polecat-filefield-0.0.0/polecat_filefield/resolvers.py | from pathlib import Path
import boto3
from polecat.core import active_config
from polecat.model.db import Q
from polecat.utils import retry
from .models import Tmpfile
from .utils import (destination_path_from_filename, remove_leading_slash,
temporary_path_from_file_id)
@active_config
def get_s3... | PypiClean |
/lfc-theme-1.3.tar.gz/lfc-theme-1.3/lfc_theme/static/lfc_theme/blueprint/plugins/buttons/readme.txt | Buttons
* Gives you great looking CSS buttons, for both <a> and <button>.
* Demo: particletree.com/features/rediscovering-the-button-element
Credits
----------------------------------------------------------------
* Created by Kevin Hale [particletree.com]
* Adapted for Blueprint by Olav Bjorkoy [bjorkoy.com]
Usa... | PypiClean |
/Wikked-0.8.1.tar.gz/Wikked-0.8.1/wikked/resources/help/Creating Pages.md |
You can create new pages quite easily in Wikked using one of the following
methods:
- Using the "_New Page_" menu item in the sidebar.
- Using wiki links.
- Using the URL.
## New Page Creation
When you click on the "_New Page_" menu entry in the sidebar, you'll be taken to
an interface where you can fill in the new... | PypiClean |
/zephyrus-sc2-parser-0.3.8.tar.gz/zephyrus-sc2-parser-0.3.8/zephyrus_sc2_parser/gamedata/65094/upgrade_data.py | upgrades = {'Protoss': {'ObserverGraviticBooster': {'mineral_cost': 100, 'gas_cost': 100}, 'GraviticDrive': {'mineral_cost': 100, 'gas_cost': 100}, 'ExtendedThermalLance': {'mineral_cost': 150, 'gas_cost': 150}, 'PsiStormTech': {'mineral_cost': 200, 'gas_cost': 200}, 'WarpGateResearch': {'mineral_cost': 50, 'gas_cost':... | PypiClean |
/plone.memoize-3.0.2-py3-none-any.whl/plone/memoize/request.py | from functools import wraps
from inspect import getfullargspec
from plone.memoize import volatile
from zope.annotation.interfaces import IAnnotations
_marker = object()
class RequestMemo:
key = "plone.memoize_request"
def __init__(self, arg=0):
self.arg = arg
def __call__(self, func):
... | PypiClean |
/Django%20Basic%20CRUD%20Generator-0.2.tar.gz/Django Basic CRUD Generator-0.2/README.md | # Django Basic Crud Generator
[](https://pypi.org/project/Django-Basic-CRUD-Generator/)
* Django Basic CRUD Generator is a simple python script to generate views, templates and tests files for a given Django Model.
* The Script will generate the fo... | PypiClean |
/backports.zoneinfo-0.2.1-cp36-cp36m-macosx_10_14_x86_64.whl/backports/zoneinfo/_zoneinfo.py | import bisect
import calendar
import collections
import functools
import re
import weakref
from datetime import datetime, timedelta, tzinfo
from . import _common, _tzpath
EPOCH = datetime(1970, 1, 1)
EPOCHORDINAL = datetime(1970, 1, 1).toordinal()
# It is relatively expensive to construct new timedelta objects, and ... | PypiClean |
/microservicebus_py-1.0.0-py3-none-any.whl/src/utils.py | import subprocess, sys, importlib, socket, array, struct, fcntl,json, urllib.request, tarfile, requests, shutil, os
def get_public_ip():
s = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
s.connect(("8.8.8.8", 80))
ip = s.getsockname()[0]
s.close()
return ip
def getHwAddr(ifname):
s = socket... | PypiClean |
/pyshark-legacy-0.3.8.tar.gz/pyshark-legacy-0.3.8/README.txt | pyshark
=======
Python wrapper for tshark, allowing python packet parsing using wireshark dissectors.
There are quite a few python packet parsing modules, this one is different because it doesn't actually parse any packets, it simply uses tshark's (wireshark command-line utility) ability to export XMLs to use its par... | PypiClean |
/nlproc_tools-0.1.0-py3-none-any.whl/nlproc_tools/datasets/da-san-martino-etal-2019.py | import json, csv, os, copy, random, logging
category_map = {
'Loaded_Language': 'loaded_language',
'Name_Calling,Labeling': 'name_calling',
'Repetition': 'repetition',
'Exaggeration,Minimisation': 'exaggeration',
'Doubt': 'doubt',
'Appeal_to_fear-prejudice': 'appeal_to_fear_prejudice',
'Fla... | PypiClean |
/django-ckedit-1.0.zip/django-ckedit-1.0/ckeditor/static/javascript/ckeditor/plugins/specialchar/dialogs/lang/ar.js | /*
Copyright (c) 2003-2014, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.md or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","ar",{euro:"رمز اليورو",lsquo:"علامة تنصيص علي اليسار",rsquo:"علامة تنصيص علي اليمين",ldquo:"علامة تنصيص مزدوجة علي اليسار",rdquo:"علام... | PypiClean |
/ansible-base-2.10.17.tar.gz/ansible-base-2.10.17/test/support/integration/plugins/modules/aws_s3.py |
from __future__ import (absolute_import, division, print_function)
__metaclass__ = type
ANSIBLE_METADATA = {'metadata_version': '1.1',
'status': ['stableinterface'],
'supported_by': 'core'}
DOCUMENTATION = '''
---
module: aws_s3
short_description: manage objects in S3.
descri... | PypiClean |
/py_spec-3.3.2.tar.gz/py_spec-3.3.2/py_spec/output/_plot_kam_surface.py | def plot_kam_surface(self, ns=[], ntheta=1000, zeta=0.0, ax=None, **kwargs):
"""Plot SPEC KAM surfaces
Args:
ns (list, optional): List of surface index to be plotted (0 for axis, -1 for the computational boundary if applied).
Defaults to [] (plot all).
zeta (float, ... | PypiClean |
/raptus.article.teaseme-1.0a1.zip/raptus.article.teaseme-1.0a1/README.rst | .. contents::
Introduction
============
raptus.article.teaseme provides a responsive teaser component for Articles.
The following features for raptus.article are provided by this package:
Components
----------
* Article teaser
Dependencies
------------
* raptus.article.core
* raptus.article.teaser
Opt... | PypiClean |
/trustregion-1.2.tar.gz/trustregion-1.2/README.rst | ===========================================
trustregion: Trust-region subproblem solver
===========================================
.. image:: https://travis-ci.org/lindonroberts/trust-region.svg?branch=master
:target: https://travis-ci.com/lindonroberts/trust-region
:alt: Build Status
.. image:: https://img.... | PypiClean |
/bigdl_chronos_spark3-2.3.0b20230119-py3-none-manylinux1_x86_64.whl/bigdl/chronos/utils.py |
import warnings
from functools import wraps
import importlib
import sys
def deprecated(message=""):
def deprecated_decorator(function):
@wraps(function)
def wrapped(*args, **kwargs):
warnings.simplefilter('always', DeprecationWarning)
warnings.warn("{} will be deprecated i... | PypiClean |
/yt-dlp-2023.7.6.tar.gz/yt-dlp-2023.7.6/yt_dlp/extractor/smotrim.py | from .common import InfoExtractor
from ..utils import ExtractorError
class SmotrimIE(InfoExtractor):
_VALID_URL = r'https?://smotrim\.ru/(?P<type>brand|video|article|live)/(?P<id>[0-9]+)'
_TESTS = [{ # video
'url': 'https://smotrim.ru/video/1539617',
'md5': 'b1923a533c8cab09679789d720d0b1c5',... | PypiClean |
/cloudkitty_tempest_plugin-2.7.1-py3-none-any.whl/cloudkitty_tempest_plugin/services/client.py | import six
from keystoneauth1.identity import v3
from keystoneauth1 import session
from keystoneclient import client
from oslo_serialization import jsonutils as json
from tempest import clients as tempest_clients
from tempest import config
from tempest.lib.common import rest_client
from tempest.lib.services import cli... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.