id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/big_thing_py-0.4.1.5-3-py3-none-any.whl/big_thing_py/super/super_function.py | from big_thing_py.super.super_request import *
from big_thing_py.super.super_mqtt_message import *
class MXSuperFunction(MXFunction):
'''
[Whole super service structure]
super_thing┬── super_service1┬── sub_service1┬────── target_thing1(at Middleware1)
│ │ ... | PypiClean |
/comt-2.6.4.tar.gz/comt-2.6.4/src/cm/media/js/lib/yui/yui3-3.15.0/build/dd-proxy/dd-proxy-debug.js | YUI.add('dd-proxy', function (Y, NAME) {
/**
* Plugin for dd-drag for creating a proxy drag node, instead of dragging the original node.
* @module dd
* @submodule dd-proxy
*/
/**
* Plugin for dd-drag for creating a proxy drag node, instead of dragging the original node.
* @class ... | PypiClean |
/python-billomat-0.5.2.tar.gz/python-billomat-0.5.2/pybillomat/suppliers.py | import errors
import xml.etree.ElementTree as ET
from bunch import Bunch
from http import Url
from _items_base import Item, ItemsIterator
def _supplier_xml(
name = None,
street = None,
zip = None,
city = None,
state = None,
country_code = None,
first_name = None,
last_name = None,
... | PypiClean |
/pyyawl-0.4.0.tar.gz/pyyawl-0.4.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 |
/curv-logger-0.0.0.2.tar.gz/curv-logger-0.0.0.2/README.md | # curv-logger
Logger with timing added & some helpful usage added like `with`
## Installing package
```shell script
pip install curv-logger
```
## Installing for local development
```shell script
git clone https://github.com/rep-ai/curv-logger.git
cd curv-logger
pip install -r requirements.txt
pip install -e .
```
##... | PypiClean |
/pythreejs-2.4.2.tar.gz/pythreejs-2.4.2/docs/source/api/helpers/HemisphereLightHelper_autogen.rst |
.. py:currentmodule:: pythreejs
HemisphereLightHelper
====================================================
.. Use autoclass to fill any memebers not manually specified.
This ensures it picks up any members in overridden classes.
.. autohastraits:: HemisphereLightHelper(light=None, size=1, color="#ffffff", )
... | PypiClean |
/desmos2python-0.3.4.tar.gz/desmos2python-0.3.4/.eggs/numpy-1.24.2-py3.8-linux-x86_64.egg/numpy/testing/_private/noseclasses.py |
# Because this module imports nose directly, it should not
# be used except by nosetester.py to avoid a general NumPy
# dependency on nose.
import os
import sys
import doctest
import inspect
import numpy
import nose
from nose.plugins import doctests as npd
from nose.plugins.errorclass import ErrorClass, ErrorClassPlu... | PypiClean |
/tensorflow_rocm_enhanced-2.4.3-cp36-cp36m-manylinux1_x86_64.whl/tensorflow/python/debug/examples/v1/debug_fibonacci.py | """Demo of the tfdbg curses UI: A TF network computing Fibonacci sequence."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import sys
import numpy as np
from six.moves import xrange # pylint: disable=redefined-builtin
import tensorflow
... | PypiClean |
/pulumi_oci-1.9.0a1693465256.tar.gz/pulumi_oci-1.9.0a1693465256/pulumi_oci/cloudbridge/get_appliance_image.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__ = [
'GetApplianceImageResult',
'AwaitableGetApplianceImageResult',
'get_appliance_image',
'get_appliance_image_ou... | PypiClean |
/bigdl_chronos_spark3-2.3.0b20230119-py3-none-manylinux1_x86_64.whl/bigdl/chronos/model/tcmf/data_loader.py |
#
# This file is adapted from the DeepGlo Project. https://github.com/rajatsen91/deepglo
#
# Note: This license has also been called the "New BSD License" or "Modified BSD License". See also
# the 2-clause BSD License.
#
# Copyright (c) 2019 The DeepGLO Project.
# All rights reserved.
#
# Redistribution and use in sou... | PypiClean |
/hm_wrapper-0.12.3-py3-none-any.whl/hm_wrapper/_utils.py | import datetime
def parse_date_input(date_object: object) -> str:
"""
accepts datetime, date objects or date formatted strings (eg 1/2/19); should be able to handle most regional
format variations.
Returns an ISO 8601 formatted date string
:type date_object: object
"""
iso_formatted_stri... | PypiClean |
/salt-ssh-9000.tar.gz/salt-ssh-9000/salt/utils/win_update.py | import logging
import subprocess
import salt.utils.args
import salt.utils.data
import salt.utils.winapi
from salt.exceptions import CommandExecutionError
try:
import win32com.client
import pywintypes
HAS_PYWIN32 = True
except ImportError:
HAS_PYWIN32 = False
log = logging.getLogger(__name__)
REBOOT... | PypiClean |
/disco-1.40.4-py3-none-any.whl/discomp/job_file_handler.py | import inspect, sys
import os
import glob
import dill
from zipfile import ZipFile
from . import utils
from disco import upload_file, Job
def upload_job_files(job_name, func, args, args_types):
script_module_ids_tuple = upload_script_module_and_req_files(job_name, func, args_types)
input_files_ids_array = uplo... | PypiClean |
/client_chat-0.0.1-py3-none-any.whl/client/client_gui.py | import time
from PyQt5 import QtWidgets, uic, QtGui, QtCore, Qt
from PyQt5.QtCore import pyqtSignal
from PyQt5.QtGui import QColor
from PyQt5.QtWidgets import QLineEdit, QPushButton, QLabel, QListView, QMessageBox, QGraphicsColorizeEffect
from jim import Jim, CHAT_NAME
class DlgLogin(QtWidgets.QDialog):
""" Диа... | PypiClean |
/gamification-engine-0.4.0.tar.gz/gamification-engine-0.4.0/gengine/app/jsscripts/node_modules/postcss-loader/node_modules/postcss/lib/vendor.js | 'use strict';
exports.__esModule = true;
/**
* Contains helpers for working with vendor prefixes.
*
* @example
* const vendor = postcss.vendor;
*
* @namespace vendor
*/
var vendor = {
/**
* Returns the vendor prefix extracted from an input string.
*
* @param {string} prop - string with or wi... | PypiClean |
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/prime_remastered/objects/AmbientAIMP1.py | import dataclasses
import struct
import typing
from retro_data_structures.game_check import Game
from retro_data_structures.properties.base_property import BaseProperty
import base64
@dataclasses.dataclass()
class AmbientAIMP1(BaseProperty):
unknown_properties: dict[int, bytes] = dataclasses.field(default_factor... | PypiClean |
/object_detection_0.1-0.1-py3-none-any.whl/object_detection/core/target_assigner.py | import tensorflow as tf
from object_detection.box_coders import faster_rcnn_box_coder
from object_detection.box_coders import mean_stddev_box_coder
from object_detection.core import box_coder as bcoder
from object_detection.core import box_list
from object_detection.core import matcher as mat
from object_detection.cor... | PypiClean |
/mollie-api-python-3.5.0.tar.gz/mollie-api-python-3.5.0/mollie/api/resources/chargebacks.py | from typing import TYPE_CHECKING, Any
from ..objects.chargeback import Chargeback
from ..objects.list import ObjectList
from .base import ResourceBase, ResourceGetMixin, ResourceListMixin
if TYPE_CHECKING:
from ..client import Client
from ..objects.payment import Payment
from ..objects.profile import Prof... | PypiClean |
/contracts-lib-py-1.0.4.tar.gz/contracts-lib-py-1.0.4/contracts_lib_py/nft_upgradeable.py | from web3 import Web3
from contracts_lib_py.contract_base import ContractBase
class NFTUpgradeable(ContractBase):
"""Class representing the NFTUpgradeable contract."""
CONTRACT_NAME = 'NFTUpgradeable'
def is_approved_for_all(self, account_address, operator_address):
"""
Retrieves if the ... | PypiClean |
/cloudmesh-timeseries-4.3.3.tar.gz/cloudmesh-timeseries-4.3.3/cloudmesh/timeseries/transform.py | import numpy as np
import pandas as pd
import random as math_random
from sklearn.preprocessing import minmax_scale
class Transform:
"""
Applies on df, returns always a new copy of a df fitting that condition
"""
@staticmethod
def calculate_daily_change(df):
change = df.copy()
for ... | PypiClean |
/scrap2rst-0.3.0.tar.gz/scrap2rst-0.3.0/README.rst | =========
scrap2rst
=========
.. image:: https://img.shields.io/pypi/v/scrap2rst.svg
:alt: PyPI
:target: http://pypi.org/p/scrap2rst
.. image:: https://img.shields.io/pypi/pyversions/scrap2rst.svg
:alt: PyPI - Python Version
.. image:: https://img.shields.io/github/license/shimizukawa/scrap2rst.svg
:alt:... | PypiClean |
/thesherlock-0.2.6-py3-none-any.whl/sherlock/sherlocklog.py | from colorama import Back, Fore, Style, init
class SherlockLog:
def __init__(self,
debug=False):
self.locked = False
@staticmethod
def getLogger():
"""
Get a SherlockLog object instance.
Return: (SherlockLog); SherlockLog instance.
"""
return... | PypiClean |
/sidekick_agent_python-0.1.2-cp37-cp37m-macosx_10_9_x86_64.whl/tracepointdebug/external/googleclouddebugger/capture_collector.py | # TODO: rename this file to collector.py.
import copy
import datetime
import inspect
import itertools
import logging
import os
import re
import sys
import time
import types
import six
from . import cdbg_native as native
from . import labels
# Externally defined functions to actually log a message. If these variable... | PypiClean |
/business-rules-extra-1.0.11.tar.gz/business-rules-extra-1.0.11/HISTORY.rst | History
-------
1.0.11
++++++
released 2018-3-13
- Use a better name for log
1.0.10
++++++
released 2018-3-12
- Make logging debug level
1.0.9
+++++
released 2018-3-12
- Make logging consistent with Python logging
1.0.4
+++++
released 2018-2-27
- Fix rule variable in numeric rule
1.0.3
+++++
released 2018-2-26... | PypiClean |
/pymars-0.10.0a1-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.whl/mars/learn/contrib/pytorch/run_script.py |
import os
from typing import Any, BinaryIO, Dict, List, Optional, TextIO, Union
import numpy as np
from .... import opcodes as OperandDef
from ....core.context import get_context
from ....remote.run_script import RunScript, _extract_inputs
from ....serialization.serializables import Int32Field, StringField
from ....... | PypiClean |
/robyn-0.30.0.tar.gz/robyn-0.30.0/docs/hosting.md | ## Hosting
The process of hosting a Robyn app on various cloud providers.
### Railway
We will be deploying the app on [Railway](https://railway.app/).
A GitHub account is needed as a mandatory prerequisite.
We will deploy a sample "Hello World," demonstrating a simple GET route and serving an HTML file.
Directory... | PypiClean |
/writemore-0.0.1.tar.gz/writemore-0.0.1/README.md | # writemore
A library of customizable autonomous agents for common jobs.
## Installation
`writemore` is a command line application written in Python.
*The following commands should be executed in a CMD, Bash or Powershell window.
To do this in Microsoft Windows, go to a folder on your computer, click in the folder... | PypiClean |
/gears-sass-0.2.2.tar.gz/gears-sass-0.2.2/gears_sass/node_modules/node-sass/node_modules/sinon/node_modules/util/node_modules/inherits/README.md | Browser-friendly inheritance fully compatible with standard node.js
[inherits](http://nodejs.org/api/util.html#util_util_inherits_constructor_superconstructor).
This package exports standard `inherits` from node.js `util` module in
node environment, but also provides alternative browser-friendly
implementation through... | PypiClean |
/test-uqpy-4.0.1.tar.gz/test-uqpy-4.0.1/src/UQpy/sampling/mcmc/DRAM.py | import logging
from typing import Callable
import warnings
import numpy as np
warnings.filterwarnings('ignore')
from beartype import beartype
from UQpy.sampling.mcmc.baseclass.MCMC import MCMC
from UQpy.distributions import *
from UQpy.utilities.ValidationTypes import *
class DRAM(MCMC):
@beartype
def __i... | PypiClean |
/realms-wiki-0.9.3.tar.gz/realms-wiki-0.9.3/realms/static/vendor/ace/lib/ace/mode/diff_highlight_rules.js | define(function(require, exports, module) {
"use strict";
var oop = require("../lib/oop");
var TextHighlightRules = require("./text_highlight_rules").TextHighlightRules;
var DiffHighlightRules = function() {
// regexp must not have capturing parentheses. Use (?:) instead.
// regexps are ordered -> the first m... | PypiClean |
/qitian-django-starting-0.0.1.tar.gz/qitian-django-starting-0.0.1/system/migrations/0001_initial.py |
from django.db import migrations, models
import django.db.models.deletion
import mptt.fields
import system.utils.storage
class Migration(migrations.Migration):
initial = True
dependencies = [
('sites', '0002_alter_domain_unique'),
]
operations = [
migrations.CreateModel(
... | PypiClean |
/baiduads_sdk_auto-2023.1.0-py3-none-any.whl/baiduads/platorderbusinessquery/model/get_order_detail_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 |
/altf1be_helpers-2.2.2.tar.gz/altf1be_helpers-2.2.2/README.md | # altf1be_helpers
Helpers to deal with basic requirements of an application built by www.alt-f1.be. See <https://bitbucket.org/altf1be/altf1be_helpers>
* management of a JSON File: Load, save, save with datetime.
## usage
* install the package on **pypi.org** :
* install : `pip install altf1be_helpers`
* ... | PypiClean |
/yafowil.widget.autocomplete-1.7.tar.gz/yafowil.widget.autocomplete-1.7/src/yafowil/widget/autocomplete/widget.py | from yafowil.base import ExtractionError
from yafowil.base import factory
from yafowil.common import generic_extractor
from yafowil.common import generic_required_extractor
from yafowil.common import input_generic_renderer
from yafowil.compat import STR_TYPE
from yafowil.utils import attr_value
from yafowil.utils impor... | PypiClean |
/app_ocr-1.2.14.tar.gz/app_ocr-1.2.14/app/config/pydantic_models.py | from __future__ import annotations
from typing import List, Union, Optional
from pydantic import BaseModel, Field
from datetime import datetime
from uuid import UUID
class DetectFacial(BaseModel):
startX: int
startY: int
endX: int
endY: int
class QualityType(BaseModel):
type: str
result: boo... | PypiClean |
/oracle_ads-2.8.8-py3-none-any.whl/ads/jobs/utils.py |
# Copyright (c) 2022, 2023 Oracle and/or its affiliates.
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
import os
import json
from oci.data_flow.models import Application
from ads.opctl.config.utils import read_from_ini
from ads.opctl.constants import (
... | PypiClean |
/Babel-Thrive-1.11.tar.gz/Babel-Thrive-1.11/csharp_extractor.py | from babel.messages.jslexer import tokenize, unquote_string
# This helper is copied to all necessary files because once again python imports are being a pain
def reopen_normal_read(file_obj, encoding):
"""Re-open a file obj in plain read mode"""
return open(file_obj.name, "r", encoding=encoding)
class Activ... | PypiClean |
/objecttools-1.0.1.tar.gz/objecttools-1.0.1/README.rst | objecttools
===========
Various tools for working with objects and classes in Python
Cached properties
-----------------
Works just like a normal property, but returned values are cached:
.. code:: python
from objecttools import CachedProperty
class ExpensiveOperations(object):
@CachedProperty
... | PypiClean |
/fugue-0.8.6.tar.gz/fugue-0.8.6/fugue_ibis/dataframe.py | from abc import abstractmethod
from typing import Any, Dict, Iterable, List, Optional
import pandas as pd
import pyarrow as pa
from triad import Schema, assert_or_throw
from fugue import DataFrame, IterableDataFrame, LocalBoundedDataFrame
from fugue.dataframe.dataframe import _input_schema
from fugue.exceptions impor... | PypiClean |
/Ciw-3.0.0.tar.gz/Ciw-3.0.0/docs/Tutorial-II/tutorial_vi.rst | .. _tutorial-vi:
================================
Tutorial VI: Restricted Networks
================================
Imagine a manufacturing plant that produces stools:
+ Every 4 seconds a seat arrives on a conveyor-belt.
+ The belt contains three workstations.
+ At the each workstation a leg is connected.
+ Connecti... | PypiClean |
/Misty_SDK-0.1.1-py3-none-any.whl/mistyPy/Robot.py | from .RobotCommands import RobotCommands
from .Events import Event
from time import sleep
from requests import exceptions
class Robot(RobotCommands):
def __init__(self, ip):
self.__determine_ip(ip)
self.active_event_registrations = {}
def __determine_ip(self, ip: str):
try:
... | PypiClean |
/timer_for_jupyter-0.1.tar.gz/timer_for_jupyter-0.1/timer_for_jupyter/timer.py | import time
class TimerError(Exception):
"""A custom exception used to report errors in use of Timer class"""
class Timer:
def __init__(self):
self._start_time = None
def start(self):
"""Start a new timer"""
if self._start_time is not None:
raise TimerEr... | PypiClean |
/django_login_history2-0.0.2.tar.gz/django_login_history2-0.0.2/README.md | # django-login-history2




**django-lo... | PypiClean |
/exactly-0.15.0-py3-none-any.whl/exactly_lib/cli/program_modes/help/request_handling/console_help.py | import os
import shutil
from typing import Sequence
from exactly_lib.cli.definitions.program_modes.help import arguments_for
from exactly_lib.cli.definitions.program_modes.help import command_line_options as clo
from exactly_lib.cli.program_modes.help.request_handling.request_handler import RequestHandler
from exactly... | PypiClean |
/dstore-sdk-python-1.0.2.5.tar.gz/dstore-sdk-python-1.0.2.5/dstore/engine/procedures/pm_ModifyPersonsInGroups_Ad_pb2.py |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
from google.p... | PypiClean |
/sri-autoflow-1.0.3.tar.gz/sri-autoflow-1.0.3/autoflow/ta2-ta3/pipeline_pb2.py |
import sys
_b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
from google.protobuf import descriptor as _descriptor
from google.protobuf import message as _message
from google.protobuf import reflection as _reflection
from google.protobuf import symbol_database as _symbol_database
# @@protoc_in... | PypiClean |
/clawpack-5.9.0.tar.gz/clawpack-5.9.0/geoclaw/examples/tsunami/bowl-slosh-netcdf/setplot.py | from __future__ import absolute_import
import numpy
a = 1.
sigma = 0.5
h0 = 0.1
grav = 9.81
omega = numpy.sqrt(2.*grav*h0) / a
#--------------------------
def setplot(plotdata=None):
#--------------------------
"""
Specify what is to be plotted at each frame.
Input: plotdata, an instance of pyclaw.... | PypiClean |
/atlas-placement-hints-0.1.1.tar.gz/atlas-placement-hints-0.1.1/atlas_placement_hints/distances/create_watertight_mesh.py | import logging
import os
import subprocess
import tempfile
from distutils.spawn import find_executable
from pathlib import Path
import nrrd # type: ignore
import numpy as np
import trimesh # type: ignore
from atlas_commons.typing import BoolArray, FloatArray
from scipy.spatial.distance import cdist, directed_hausdor... | PypiClean |
/TashriTelethon-1.24.0-py3-none-any.whl/telethon/tl/functions/stickers.py | from ...tl.tlobject import TLObject
from ...tl.tlobject import TLRequest
from typing import Optional, List, Union, TYPE_CHECKING
import os
import struct
from datetime import datetime
if TYPE_CHECKING:
from ...tl.types import TypeInputDocument, TypeInputStickerSet, TypeInputStickerSetItem, TypeInputUser
class Add... | PypiClean |
/lcms-0.3.0.tar.gz/lcms-0.3.0/ext/pybind11/docs/advanced/cast/eigen.rst | Eigen
#####
`Eigen <http://eigen.tuxfamily.org>`_ is C++ header-based library for dense and
sparse linear algebra. Due to its popularity and widespread adoption, pybind11
provides transparent conversion and limited mapping support between Eigen and
Scientific Python linear algebra data types.
To enable the built-in E... | PypiClean |
/pwntools-4.11.0b0.tar.gz/pwntools-4.11.0b0/pwnlib/rop/rop.py | r"""
Return Oriented Programming
Manual ROP
-------------------
The ROP tool can be used to build stacks pretty trivially.
Let's create a fake binary which has some symbols which might
have been useful.
>>> context.clear(arch='i386')
>>> binary = ELF.from_assembly('add esp, 0x10; ret; pop eax; ret; pop ecx; ... | PypiClean |
/hana_ml-2.17.23080800-py3-none-any.whl/hana_ml/algorithms/pal/tsa/hierarchical_forecast.py | import logging
import uuid
try:
import pyodbc
except ImportError as error:
pass
from hdbcli import dbapi
from hana_ml.algorithms.pal.pal_base import (
PALBase,
ParameterTable,
try_drop,
require_pal_usable
)
logger = logging.getLogger(__name__)
class Hierarchical_Forecast(PALBase):
"""
H... | PypiClean |
/bsp_tool-0.4.0.tar.gz/bsp_tool-0.4.0/bsp_tool/branches/valve/sdk_2013.py | import enum
from typing import List
from .. import base
# from . import alien_swarm
from . import left4dead2
from . import orange_box
from . import source
FILE_MAGIC = b"VBSP"
BSP_VERSION = 21
GAME_PATHS = {"Blade Symphony": "Blade Symphony/berimbau",
"Counter-Strike: Global Offensive": "Counter-Stri... | PypiClean |
/gui/panels/patientDataPanel/patientDataPanel.py | from PyQt5.QtCore import QDir
from PyQt5.QtWidgets import QWidget, QVBoxLayout, QPushButton, QFileDialog, QDialog, \
QStackedWidget, QListView, QLineEdit, QHBoxLayout, QCheckBox
import opentps.core.io.dataLoader as dataLoader
from opentps.core.io.serializedObjectIO import saveDataStructure
from opentps.core import... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/identity_governance/entitlement_management/access_package_assignment_resource_roles/item/access_package_subject/access_package_subject_request_builder.py | from __future__ import annotations
from dataclasses import dataclass
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
fro... | PypiClean |
/Products.ReflectoImageScales-1.0.zip/Products.ReflectoImageScales-1.0/Products/ReflectoImageScales/browser.py | from Products.ATContentTypes.content import image
from zope.publisher.interfaces import IPublishTraverse
from Products.Five.browser import BrowserView
from ZPublisher.BaseRequest import DefaultPublishTraverse
from App.Common import rfc1123_date
from Products.CMFCore.utils import getToolByName
import time
from stat impo... | PypiClean |
/pulumi_google_native-0.31.2a1689827148.tar.gz/pulumi_google_native-0.31.2a1689827148/pulumi_google_native/cloudkms/v1/key_ring_crypto_key_iam_member.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from ... import _utilities
from ... import iam as _iam
__all__ = ['KeyRingCryptoKeyIamMemberArgs', 'KeyRingCryptoKeyIamMember']
@pulumi.input_type
class KeyRingCryptoKeyIamMemberArgs:
... | PypiClean |
/pydata_sphinx_theme-0.13.3.tar.gz/pydata_sphinx_theme-0.13.3/docs/user_guide/analytics.rst | ============================
Analytics and usage services
============================
The theme supports several web analytics services via the ``analytics`` option. It is configured
by passing a dictionary with options. See the sections below for relevant
options depending on the analytics provider that you want to ... | PypiClean |
/aws-cfn-bootstrap-1.4-31.tar.gz/aws-cfn-bootstrap-1.4-31/cfnbootstrap/packages/requests/packages/urllib3/_collections.py | from collections import Mapping, MutableMapping
try:
from threading import RLock
except ImportError: # Platform-specific: No threads available
class RLock:
def __enter__(self):
pass
def __exit__(self, exc_type, exc_value, traceback):
pass
try: # Python 2.7+
from ... | PypiClean |
/sdksio_verizon_apis_sdk-1.0.0-py3-none-any.whl/verizon/controllers/software_management_callbacks_v3_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 |
/dql_alpha-0.38.0-py3-none-any.whl/dql/node.py | from datetime import datetime
from typing import Any, Dict, List, Optional
import attrs
from dql.utils import time_to_str
class DirType:
FILE = 0
DIR = 1
TAR_ARCHIVE = 5
class DirTypeGroup:
"""
Groups of DirTypes for selecting storage nodes or dataset entries.
When filtering with FILE and... | PypiClean |
/lpmqtt-0.0.1.tar.gz/lpmqtt-0.0.1/README.rst | ======
lpmqtt
======
lpmqtt, like its name implies, is a tool for publish a launchpad event stream
into MQTT. It will publish all the capture events from the lp emails over imap
and publish them to MQTT
MQTT Topics
===========
lpmqtt will push launchpad events to topics broken by project and event type.
The formula u... | PypiClean |
/tiktok_downloader-0.3.5.tar.gz/tiktok_downloader-0.3.5/tiktok_downloader/server.py | from io import BytesIO
from flask import (
Flask,
request,
render_template
)
from flask.wrappers import Response
from typing import List
from tiktok_downloader.scrapper_v2 import VideoInfoV2
from . import services
from .snaptik import Snaptik
from .scrapper import VideoInfo
from .utils import Download
impo... | PypiClean |
/buzz-python-client-0.2.tar.gz/buzz-python-client-0.2/examples/make_comment.py |
import os
import sys
import traceback
import getopt
#
# Load Buzz library (if available...)
#
try:
sys.path.append(os.path.join(os.path.dirname(__file__), '..'))
import buzz
except ImportError:
print 'Error importing Buzz library!!!'
print '-' * 80
print __doc__
print '-' * 80
token = verification_code... | PypiClean |
/neural-tangents-0.6.4.tar.gz/neural-tangents-0.6.4/examples/weight_space.py | from absl import app
from jax import grad
from jax import jit
from jax import random
from jax.example_libraries import optimizers
from jax.nn import log_softmax
import jax.numpy as np
import neural_tangents as nt
from neural_tangents import stax
from examples import datasets
from examples import util
_LEARNING_RATE =... | PypiClean |
/loo-v2020-2020.2.tar.gz/loo-v2020-2020.2/loopy/kernel/creation.py |
from __future__ import division, absolute_import, print_function
__copyright__ = "Copyright (C) 2012 Andreas Kloeckner"
__license__ = """
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 ... | PypiClean |
/symphony_bdk_python-2.6.1-py3-none-any.whl/symphony/bdk/gen/agent_model/room_created_message.py | import re # noqa: F401
import sys # noqa: F401
from typing import List, Union
from symphony.bdk.gen.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
... | PypiClean |
/mlots-0.0.4.3.tar.gz/mlots-0.0.4.3/README.md | # Machine Learning On Time-Series (```MLOTS```)

[](https://travis-ci.com/vivekmahato/mlots)
[](https://codecov.io/gh/v... | PypiClean |
/sagemath-standard-10.0b0.tar.gz/sagemath-standard-10.0b0/sage/interfaces/sympy_wrapper.py |
from sympy.core.basic import Basic
from sympy.core.decorators import sympify_method_args
from sympy.core.sympify import sympify
from sympy.sets.sets import Set
@sympify_method_args
class SageSet(Set):
r"""
Wrapper for a Sage set providing the SymPy Set API.
Parents in the category :class:`sage.categorie... | PypiClean |
/collective.zodbbrowser-0.1.tar.gz/collective.zodbbrowser-0.1/collective/zodbbrowser/resources/jquery.layout.min.js | (function($){$.fn.layout=function(opts){var
prefix="ui-layout-",defaults={paneClass:prefix+"pane",resizerClass:prefix+"resizer",togglerClass:prefix+"toggler",togglerInnerClass:prefix+"",buttonClass:prefix+"button",contentSelector:"."+prefix+"content",contentIgnoreSelector:"."+prefix+"ignore"};var options={name:"",scrol... | PypiClean |
/MLXP-0.1.0.tar.gz/MLXP-0.1.0/mlxp/parser.py |
import ply.lex as lex
import ply.yacc as yacc
import ast
from operator import eq, ge, gt, le, lt, ne
from tinydb import where, Query
from tinydb.queries import QueryInstance
import abc
from mlxp.errors import InvalidKeyError
from mlxp.enumerations import SearchableKeys
class Parser(abc.ABC):
"""An abstract cla... | PypiClean |
/pymdown_extensions-10.3-py3-none-any.whl/pymdownx/blocks/block.py | from abc import ABCMeta, abstractmethod
import functools
import copy
import re
from markdown import util as mutil
RE_IDENT = re.compile(
r'''
(?:(?:-?(?:[^\x00-\x2f\x30-\x40\x5B-\x5E\x60\x7B-\x9f])+|--)
(?:[^\x00-\x2c\x2e\x2f\x3A-\x40\x5B-\x5E\x60\x7B-\x9f])*)
''',
re.I | re.X
)
RE_INDENT = re.com... | PypiClean |
/UW_RestClients_Libraries-1.3-py3-none-any.whl/uw_libraries/models.py |
import json
from restclients_core import models
class Library(models.Model):
name = models.CharField(max_length=250, null=True)
description = models.CharField(max_length=1000, null=True)
url = models.CharField(max_length=250, null=True)
class Librarian(models.Model):
name = models.CharField(max_len... | PypiClean |
/datadog_checks_base-33.1.0.tar.gz/datadog_checks_base-33.1.0/datadog_checks/base/checks/win/winpdh_base.py | from collections import defaultdict
from typing import Callable, Dict, List, Optional, Tuple # noqa: F401
import win32wnet
from six import iteritems
from ... import AgentCheck, is_affirmative
from ...utils.containers import hash_mutable
try:
from .winpdh import DATA_TYPE_DOUBLE, DATA_TYPE_INT, WinPDHCounter
exc... | PypiClean |
/vault_printer-0.3.1.tar.gz/vault_printer-0.3.1/vault_printer/entities.py | from typing import List, Dict
from jinja2 import Template
TEMPLATE: Template = Template(u"""#### {{header}}
{% for key, value in dict.items() %}
{{" - %s" | format(key)}}
{{" - %s" | format(value)}}{% endfor %}\n\n\n""")
class Object: # pylint: disable=too-few-public-methods
"""
super class representin... | PypiClean |
/django-markdown-shortcodes-1.3.tar.gz/django-markdown-shortcodes-1.3/README.md | # Markdown Shortcodes for Django
Provides the ability to use WordPress-like "shortcodes" in your content, which get rendered as HTML.
The idea here is to extend Markdown authoring capabilities. For example, rendering a more complex component in the flow of a content body that shows featured content - or as simple as ... | PypiClean |
/intel_tensorflow-2.13.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/tensorflow/python/ops/resources.py | # pylint: disable=g-bad-name
import collections
import os
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.ops import array_ops
from tensorflow.python.ops import array_ops_stack
from tensorflow.python.ops import control_flow_ops
from tensorflow.python.op... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/calendar/calendar_view/item/exception_occurrences/item/instances/item/attachments/attachments_request_builder.py | from __future__ import annotations
from dataclasses import dataclass
from kiota_abstractions.get_path_parameters import get_path_parameters
from kiota_abstractions.method import Method
from kiota_abstractions.request_adapter import RequestAdapter
from kiota_abstractions.request_information import RequestInformation
fro... | PypiClean |
/moin-1.9.11.tar.gz/moin-1.9.11/MoinMoin/support/pygments/lexers/nix.py | import re
from pygments.lexer import RegexLexer, include
from pygments.token import Text, Comment, Operator, Keyword, Name, String, \
Number, Punctuation, Literal
__all__ = ['NixLexer']
class NixLexer(RegexLexer):
"""
For the `Nix language <http://nixos.org/nix/>`_.
.. versionadded:: 2.0
"""
... | PypiClean |
/openapi_python_embyapi-4.8.0.36.tar.gz/openapi_python_embyapi-4.8.0.36/openapi_python_embyapi/models/media_encoding_configuration_tone_mapping_tone_map_options_visibility.py | from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..models.operating_system import OperatingSystem
from ..types import UNSET, Unset
T = TypeVar("T", bound="MediaEncodingConfigurationToneMappingToneMapOptionsVisibility")
@attr.s(auto_attribs=True)
class MediaEncodingConfigurationToneMappingT... | PypiClean |
/python-stdnum-do-1.16.tar.gz/python-stdnum-do-1.16/docs/stdnum.exceptions.rst | stdnum.exceptions
=================
.. automodule:: stdnum.exceptions
:show-inheritance:
:member-order: bysource
:members:
The exceptions are organised hierarchically in the following structure:
::
ValidationError
+-- InvalidFormat
| +-- InvalidLength
+-- InvalidChecksum... | PypiClean |
/cn-zipline-live-1.3.tar.gz/cn-zipline-live-1.3/zipline/utils/simfactory.py | import zipline.utils.factory as factory
from zipline.testing.core import create_data_portal_from_trade_history
from zipline.test_algorithms import TestAlgorithm
from zipline.utils.calendars import get_calendar
def create_test_zipline(**config):
"""
:param config: A configuration object that is a dict with... | PypiClean |
/OTLModel/Classes/Levenscyclus/BeheerGrazigeVegetatie.py | from OTLMOW.OTLModel.BaseClasses.OTLAttribuut import OTLAttribuut
from OTLMOW.OTLModel.Classes.ImplementatieElement.AIMObject import AIMObject
from OTLMOW.OTLModel.Datatypes.BooleanField import BooleanField
from OTLMOW.OTLModel.Datatypes.DtcMaaien import DtcMaaien
from OTLMOW.OTLModel.Datatypes.KlBeheerGrazigeVegetatie... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/domain/TransOrderResult.py | import json
from alipay.aop.api.constant.ParamConstants import *
class TransOrderResult(object):
def __init__(self):
self._error_code = None
self._fail_reason = None
self._order_id = None
self._out_biz_no = None
self._status = None
@property
def error_code(self):... | PypiClean |
/pulumi_alicloud-3.44.0a1693632188.tar.gz/pulumi_alicloud-3.44.0a1693632188/pulumi_alicloud/cloudfirewall/firewall_vpc_firewall_cen.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
from . import outputs
from ._inputs import *
__all__ = ['FirewallVpcFirewallCenArgs', 'FirewallVpcFirewallCen']
@pulumi.input_type
class FirewallVpcFirewallCe... | PypiClean |
/ftw.contentstats-1.3.0.tar.gz/ftw.contentstats-1.3.0/README.rst | ================
ftw.contentstats
================
.. contents:: Table of Contents
Introduction
============
``ftw.contentstats`` is a Plone add-on for collecting and displaying content
statistics.
Compatibility
-------------
Plone 4.3.x
Installation
============
- Add the package to your buildout configurati... | PypiClean |
/fenics_fiat-2019.1.0-py3-none-any.whl/FIAT/hdivcurl.py |
import numpy
import types
from FIAT.tensor_product import TensorProductElement
from FIAT import functional
def Hdiv(element):
if not isinstance(element, TensorProductElement):
raise NotImplementedError
if element.A.get_formdegree() is None or element.B.get_formdegree() is None:
raise ValueEr... | PypiClean |
/shyft.time_series-5.2.10-cp310-cp310-win_amd64.whl/shyft/dashboard/time_series/ts_viewer.py | from typing import List, Optional, Dict, Union, Tuple
import logging
from concurrent.futures import ThreadPoolExecutor
import numpy as np
import bokeh
from bokeh.layouts import row, column
from pint import UnitRegistry, UndefinedUnitError
from shyft.time_series import UtcPeriod, TimeAxis, min_utctime, max_utctime, Ts... | PypiClean |
/tharos-pytools-0.0.12.tar.gz/tharos-pytools-0.0.12/tharospytools/multithreading.py | "Tools to handle multithreading"
from concurrent.futures import ThreadPoolExecutor
from multiprocessing import cpu_count
from typing import Callable
from collections.abc import Iterable
try:
from resource import setrlimit, getrlimit, RLIMIT_AS
from psutil import virtual_memory
except ImportError:
print(OSEr... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/codemirror/addon/comment/continuecomment.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) {
var ... | PypiClean |
/pulumi_gcp-6.65.0a1693462587.tar.gz/pulumi_gcp-6.65.0a1693462587/pulumi_gcp/compute/get_instance.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__ = [
'GetInstanceResult',
'AwaitableGetInstanceResult',
'get_instance',
'get_instance_output',
]
@pulumi.output_t... | PypiClean |
/cliquet-3.1.5-cp2.cp3-none-any.whl/cliquet_docs/api/deprecation.rst | .. _deprecation:
###########
Deprecation
###########
A track of the client version will be kept to know after which date each old version can be shutdown.
The date of the end of support is provided in the API root URL (e.g. ``/v0``)
Using the ``Alert`` response header, the server can communicate any potential warni... | PypiClean |
/macwinnie_pyhelpers-1.1.0.tar.gz/macwinnie_pyhelpers-1.1.0/src/macwinnie_pyhelpers/CSV.py |
import pandas as pd
import math
class CSV:
"""
Helper class for CSV files, where named columns will be retrievable
The class needs the data being given as list of lists. Each row (outer list) contains multiple cells (inner list).
If the data is given JSON like – as a list of dictionaries where each ... | PypiClean |
/ssb_sgis-0.3.4.tar.gz/ssb_sgis-0.3.4/src/sgis/networkanalysis/networkanalysis.py | from copy import copy, deepcopy
from datetime import datetime
from time import perf_counter
import igraph
import numpy as np
import pandas as pd
from geopandas import GeoDataFrame
from igraph import Graph
from pandas import DataFrame, MultiIndex
from ..geopandas_tools.general import _push_geom_col
from ._get_route im... | PypiClean |
/dropmail_client-2.0.0-py3-none-any.whl/dropmail/dropmail.py |
# Copyright (C) 2019 Jonston Chan
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distribu... | PypiClean |
/shrub_py-3.0.8-py3-none-any.whl/shrub/v2/variant.py | from dataclasses import dataclass
from itertools import chain
from typing import Any, Dict, Optional, Set, FrozenSet, Sequence, List
from shrub.v2.task import Task, TaskGroup, RunnableTask, ExistingTask
from shrub.v2.dict_creation_util import add_existing_from_dict
@dataclass(frozen=True)
class _DisplayTask(object):... | PypiClean |
/sagemath-standard-10.0b0.tar.gz/sagemath-standard-10.0b0/sage/combinat/sf/macdonald.py | r"""
Macdonald Polynomials
Notation used in the definitions follows mainly [Mac1995]_.
The integral forms of the bases `H` and `Ht` do not appear in
Macdonald's book. They correspond to the two bases
`H_\mu[X;q,t] = \sum_{\nu} K_{\nu\mu}(q,t) s_\mu[X]` and
`{\tilde H}_\mu[X;q,t] = t^{n(\mu)} \sum_{\nu} K_{\nu\mu}(q,... | PypiClean |
/ressources/lib/node_modules/highcharts/js/modules/map.src.js | 'use strict';
(function (factory) {
if (typeof module === 'object' && module.exports) {
module.exports = factory;
} else if (typeof define === 'function' && define.amd) {
define(function () {
return factory;
});
} else {
factory(Highcharts);
}
}(function (Highcharts) {
(function (H) {
/**
* (c) 201... | PypiClean |
/columbia-discord-bot-0.2.1.tar.gz/columbia-discord-bot-0.2.1/docs/_build/html/_static/docutils/transforms/peps.py | __docformat__ = 'reStructuredText'
import sys
import os
import re
import time
from docutils import nodes, utils, languages
from docutils import ApplicationError, DataError
from docutils.transforms import Transform, TransformError
from docutils.transforms import parts, references, misc
class Headers(Transform):
... | PypiClean |
/love_course_2016_2019-2023.3.1.0-py3-none-any.whl/LoveCourse20162019/docs/liang-nan/02旭旭私教3.0:第十二集:约会的总结.md | # 02 旭旭私教3.0:第十二集:约会的总结
好 這一節我們要給約會的內容做一個小小的總結,首先你要明白在約會的過程中每個女生都不一樣,約會的事情也不是計算機給你安排好的 它是真正的人語人的溝通,所以一定會存在千變萬畫的各式各樣的意外情況。
當你遇到這些意外情況的話 有的時候可能你臨場反應能處理掉,但有的時候可能處理不好,這個時候你可能會失敗,然後可能女生不喜歡你可能會出醜,或者說之類的遇到一些解決不了情況,這個時候記得千萬不要氣內舉殺。
你要輕輕處處的記得你在約會過程中發生的事情,以及所有處理不了的情況,那麼這個時候你回來之後,哪怕你失敗了或者成功了,這個都不重要,你要什麼給我們去寫你的總結,讓我們知道你在這個過程中具體發... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.