id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/tensorflow_rocm-2.12.0.560-cp310-cp310-manylinux2014_x86_64.whl/tensorflow/python/keras/callbacks.py | """Callbacks: utilities called at certain points during model training."""
import collections
import copy
import csv
import json
import os
import re
import sys
import time
import numpy as np
from tensorflow.core.framework import summary_pb2
from tensorflow.python.checkpoint import checkpoint_management
from tensorfl... | PypiClean |
/bambu-tools-3.3.4.tar.gz/bambu-tools-3.3.4/bambu/bootstrap/static/bootstrap/js/bootstrap.min.js | !function($){"use strict";$(function(){$.support.transition=function(){var transitionEnd=function(){var name,el=document.createElement("bootstrap"),transEndEventNames={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(name in... | PypiClean |
/caterpillar_hls-1.1-py3-none-any.whl/caterpillar/merge.py | import os
import pathlib
import re
import shutil
import subprocess
import sys
import time
from typing import Optional, Tuple
import m3u8
from .utils import (
FFmpegLogLevel,
abspath,
chdir,
ffmpeg_loglevel,
ffmpeg_log_entry_get_loglevel,
generate_m3u8,
logger,
)
# If ignore_errors is Tru... | PypiClean |
/django-mailprotector-0.3.1.tar.gz/django-mailprotector-0.3.1/mailprotector/templatetags/mailprotector_tags.py | from django.core.validators import validate_email
from django import template
from django import forms
from django.utils.safestring import mark_safe
from bs4 import BeautifulSoup
from mailprotector import protectors
from mailprotector.conf import settings
register = template.Library()
@register.simple_tag
def mail... | PypiClean |
/circuit-dawg-1.0.1.tar.gz/circuit-dawg-1.0.1/circuit_dawg/wrapper.py | import struct
import array
from . import units
class Dictionary(object):
"""
Dictionary class for retrieval and binary I/O.
"""
def __init__(self):
self._units = array.array("I")
ROOT = 0
"Root index"
def has_value(self, index):
"Checks if a given index is related to the... | PypiClean |
/dostoevsky-0.6.0.tar.gz/dostoevsky-0.6.0/README.md | # Dostoevsky [](https://travis-ci.org/bureaucratic-labs/dostoevsky)
<img align="right" src="https://i.imgur.com/uLMWPuL.png">
Sentiment analysis library for russian language
## Install
Please note that `Dostoevsky` supports only Py... | PypiClean |
/rhoas_sdks-1.0.5.tar.gz/rhoas_sdks-1.0.5/sdks/smart_events_mgmt_sdk/rhoas_smart_events_mgmt_sdk/model/cloud_provider_list_response.py | import re # noqa: F401
import sys # noqa: F401
from rhoas_smart_events_mgmt_sdk.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,
n... | PypiClean |
/cubicweb_postgis-1.0.0-py3-none-any.whl/cubicweb_postgis/views.py | from cubicweb import tags, uilib
from cubicweb.utils import UStringIO
from cubicweb_web import formfields, formwidgets
from cubicweb_web.views.owl import OWL_TYPE_MAP
from cubicweb_web.view import EntityView
from cubicweb.predicates import match_kwargs
try:
from shapely import wkb
except ImportError:
wkb = Non... | PypiClean |
/reverser-2.0.0.tar.gz/reverser-2.0.0/README.md | # reverser
Reverser is a Python package for reversing strings, lists, tuples, dictionaries, and integers.
## Installation
To install _reverser_, simply use pip:
## Usage
To use Reverser, first import the `Reverser` class from the `reverser` module:
Then, create an instance of the `Reverser` class:
### Reversing ... | PypiClean |
/xrootd-5.6.1.tar.gz/xrootd-5.6.1/src/XrdSciTokens/vendor/inih/README.md | # inih
[](https://travis-ci.org/jtilly/inih)
This is a header only C++ version of [inih](https://github.com/benhoyt/inih).
**inih (INI Not Invented Here)** is a simple [.INI file](http://en.wikipedia.org/wiki/INI_file) parser written in C. It's only ... | PypiClean |
/stsci.tools-4.0.1.tar.gz/stsci.tools-4.0.1/CHANGES.rst | .. _change_log:
======================
stsci.tools Change Log
======================
The version of stsci.tools can be identified using:
>>> import stsci.tools
>>> stsci.tools.__version__
The following notes provide some details on what has been revised for each
version in reverse chronological order (most recent v... | PypiClean |
/Plata-1.1.0.tar.gz/Plata-1.1.0/plata/payment/modules/postfinance.py | from datetime import datetime
from decimal import Decimal
from hashlib import sha1
import locale
import logging
from django.conf import settings
from django.http import HttpResponse, HttpResponseForbidden
from django.utils.decorators import method_decorator
from django.utils.translation import ugettext_lazy as _, get_... | PypiClean |
/cohesity-sdk-1.1.0.tar.gz/cohesity-sdk-1.1.0/cohesity_sdk/cluster/model/gpfs_registration_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 |
/bambu-webhooks-2.0.tar.gz/bambu-webhooks-2.0/README | Bambu Webhooks
==============
Create webhooks and allow users to assign URLs to them
About Bambu Webhooks
--------------------
This package allows web apps to provide third-party integration via
webhooks. You as the developer can trigger a webhook by name, and
provide an interface whereby the user can manage the URL... | PypiClean |
/PyHal-10.2.6.tar.gz/PyHal-10.2.6/hal/profile/performance.py | import getpass
import os
import random
import sys
from time import time
from hal.files.models.files import Document
from hal.maths.problems import EightQueen
# todo use logging
INTRO = "So, let\'s get into the details.. I\'m going to solve the " \
"classic Eight Queens Puzzle: it\'s the problem of placing "... | PypiClean |
/echo-opt-1.0.2.tar.gz/echo-opt-1.0.2/echo/src/base_objective.py | from echo.src.trial_suggest import trial_suggest_loader
from echo.src.config import recursive_config_reader, recursive_update
from collections import defaultdict
import copy
import glob
import os
import pandas as pd
import logging
import warnings
warnings.filterwarnings("ignore")
logger = logging.getLogger(__name__)... | PypiClean |
/mess_client_fatfar-0.0.1.tar.gz/mess_client_fatfar-0.0.1/client/client/main_window.py |
import json
import logging
import base64
from PyQt5.QtWidgets import QMainWindow, qApp, QMessageBox
from PyQt5.QtGui import QStandardItemModel, QStandardItem, QBrush, QColor
from PyQt5.QtCore import pyqtSlot, Qt
from Cryptodome.Cipher import PKCS1_OAEP
from Cryptodome.PublicKey import RSA
from packet_client.client i... | PypiClean |
/cassandra_step-0.2.1.tar.gz/cassandra_step-0.2.1/cassandra_step/tk_cassandra.py | import seamm
from seamm_util import ureg, Q_, units_class # noqa: F401
import seamm_widgets as sw # noqa: F401
import Pmw
import pprint # noqa: F401
import tkinter as tk
import tkinter.ttk as ttk
class TkCassandra(seamm.TkNode):
"""The graphical part of a Cassandra step in a MolSSI flowchart.
"""
def... | PypiClean |
/rflow_ml_pipelines_sdk-1.1.18-py3-none-any.whl/tfx/extensions/google_cloud_big_query/experimental/elwc_example_gen/proto/elwc_config_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 |
/zope.app.appsetup-5.0.tar.gz/zope.app.appsetup-5.0/src/zope/app/appsetup/bootstrap.rst | Bootstrap helpers
=================
The bootstrap helpers provide a number of functions that help with
bootstrapping.
The bootStrapSubscriber function makes sure that there is a root
object. It subscribes to DatabaseOpened events:
>>> from zope.app.appsetup import bootstrap
>>> import zope.processlifetime
... | PypiClean |
/pycold-0.1.2.tar.gz/pycold-0.1.2/README.rst | PYCOLD
======
|GithubActions| |Pypi| |Downloads|
.. .. TODO: uncomment these after docs / pypi / coverage are online
.. .. |ReadTheDocs| |Codecov|
A Python library for COntinuous monitoring of Land Disturbance (COLD) and its extension algorithms at the speed of C language
==========================================... | PypiClean |
/CRIkit2-0.4.4.tar.gz/CRIkit2-0.4.4/docs/source/cri_walkthru.rst | .. _cri_walkthru:
.. image:: _static/CRIkit2_Logo.png
:align: left
|
|
|
|
|
|
|
Walk-Thru: CRI Processing
=========================
This walk-thru will take you through several steps:
- `Overview`_
- `Generating the built-in Raman/BCARS numerical phantom`_
- `Viewing dark, NRB, and dataset spectra`_
- `Dark s... | PypiClean |
/Arduinozore-1.1.3.tar.gz/Arduinozore-1.1.3/arduinozore/handlers/serialManager.py | import json
import sys
import time
from multiprocessing import Event
from multiprocessing import Manager
from multiprocessing import Process
from arduinozore.handlers.serialReader import SerialReader
class Singleton(type):
"""
Singleton metaclass.
From https://stackoverflow.com/q/6760685/9395299.
""... | PypiClean |
/c65ryu-5.0.0.tar.gz/c65ryu-5.0.0/ryu/lib/type_desc.py |
import base64
import six
from ryu.lib import addrconv
class TypeDescr(object):
pass
class IntDescr(TypeDescr):
def __init__(self, size):
self.size = size
def to_user(self, binary):
i = 0
for _ in range(self.size):
c = binary[:1]
i = i * 256 + ord(c)
... | PypiClean |
/plum_dispatch-2.2.1.tar.gz/plum_dispatch-2.2.1/plum/type.py | import abc
import sys
import typing
import warnings
from typing import Literal, get_args, get_origin
try: # pragma: specific no cover 3.8 3.9
from types import UnionType
except ImportError: # pragma: specific no cover 3.10 3.11
class UnionType:
"""Replacement for :class:`types.UnionType`."""
__all... | PypiClean |
/pynq_alveo_examples-1.0.3.tar.gz/pynq_alveo_examples-1.0.3/pynq_alveo_examples/notebooks/2_kernel_optimization/1-kernel-optimizations.ipynb | # Kernel Optimizations
In this notebook, we will explore some kernel optimizations. More specifically, we will take a look at:
1. using a wide data bus to read more elements in parallel
2. using multiple memory banks
3. overlapping communication and computation
To this purpose, we will use the `vadd_wide` and `vadd_... | PypiClean |
/gurux_dlms-1.0.145.tar.gz/gurux_dlms-1.0.145/gurux_dlms/objects/GXDLMSMBusClient.py | from .GXDLMSObject import GXDLMSObject
from .IGXDLMSBase import IGXDLMSBase
from ..enums import ErrorCode
from ..internal._GXCommon import _GXCommon
from ..GXByteBuffer import GXByteBuffer
from ..enums import ObjectType, DataType
from .enums import MBusEncryptionKeyStatus
# pylint: disable=too-many-instance-attributes... | PypiClean |
/decmore-1.0.1.tar.gz/decmore-1.0.1/README.md | # DecMore
> This library contains some decorators that will be useful for both daily development and application needs.
Access DecMore's documentation <a href="https://decmore.readthedocs.io/en/latest/">here</a>
## Authors
> Daniel Relvas Trivelli
> <br>
> * <a href="https://github.com/DanielTrivelli" target="_blan... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/dbformariadb/v20180601preview/outputs.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from ._enums import *
__all__ = [
'ResourceIdentityResponse',
'SkuResponse',
'StorageProfileResponse',
]
@pulumi.output_type
class ResourceIdentityResponse(di... | PypiClean |
/pdsimage-1.1.2.tar.gz/pdsimage-1.1.2/README.rst |
Welcome to pdsimage
===================
The Lunar Reconnaissance Orbiter (`LRO`_) mission has gathered some
fantastic data of the lunar surface and, thanks to `NASA`_, all are
available for free on the internet.
However, using them can be criptic without a bit of experience.
**Pdsimage** aims to facilitate... | PypiClean |
/tridentx-0.7.8-py3-none-any.whl/trident/models/pytorch_yolo.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import time
import inspect
import math
import os
import uuid
from collections import *
from collections import deque
from copy import copy, deepcopy
from functools import partial
from itertools import repeat
i... | PypiClean |
/FuzzyClassificator-1.3.84-py3-none-any.whl/pybrain/rl/agents/learning.py | __author__ = 'Thomas Rueckstiess, ruecksti@in.tum.de'
from pybrain.rl.agents.logging import LoggingAgent
class LearningAgent(LoggingAgent):
""" LearningAgent has a module, a learner, that modifies the module, and an explorer,
which perturbs the actions. It can have learning enabled or disabled and can be... | PypiClean |
/dxter-0.0.1.tar.gz/dxter-0.0.1/dexter/framemap.py | from typing import List
import pandas as pd
import numpy as np
from dexter.helper import _to_html_str_, _to_html_
import dexter.optimizer
class FrameMap(dict):
"""
Data in the form of a list of two tuples, one containing the names of dataframes and
other containing the dataframes themselves.
Paramete... | PypiClean |
/laterpay-client-5.9.0.tar.gz/laterpay-client-5.9.0/README.rst | laterpay-client-python
======================
.. image:: https://img.shields.io/pypi/v/laterpay-client.png
:target: https://pypi.python.org/pypi/laterpay-client
.. image:: https://img.shields.io/travis/laterpay/laterpay-client-python/develop.png
:target: https://travis-ci.org/laterpay/laterpay-client-python
... | PypiClean |
/numba_celltree-0.1.6.tar.gz/numba_celltree-0.1.6/numba_celltree/constants.py | import math
from typing import NamedTuple
import numba as nb
import numba.types as nbtypes
import numpy as np
IntDType = np.intp
FloatDType = np.float64
BoolArray = np.ndarray
IntArray = np.ndarray
FloatArray = np.ndarray
BucketArray = np.ndarray
NodeArray = np.ndarray
class Point(NamedTuple):
x: float
y: f... | PypiClean |
/sunset-repos-1.0.1.tar.gz/sunset-repos-1.0.1/README.md | Installation
============
Create a GitHub personal access token. The application will prompt you
for the value of your token each time you run it.
The application is available at PyPI. Install it from there using the
following command:
pip install sunset-repos
You can also install directly from the source code ... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/securityinsights/v20230201/get_watchlist.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__ = [
'GetWatchlistResult',
'AwaitableGetWatchlistResult',
'get_watchlist',
'get_watchlist_output',
]
@pulumi.out... | PypiClean |
/google-ads-21.3.0.tar.gz/google-ads-21.3.0/google/ads/googleads/v13/services/types/travel_asset_suggestion_service.py | from __future__ import annotations
from typing import MutableSequence
import proto # type: ignore
from google.ads.googleads.v13.enums.types import (
asset_field_type as gage_asset_field_type,
)
from google.ads.googleads.v13.enums.types import call_to_action_type
from google.ads.googleads.v13.enums.types import ... | PypiClean |
/Mathics3-6.0.2.tar.gz/Mathics3-6.0.2/mathics/eval/numbers.py | from typing import Optional
import mpmath
import sympy
from mathics.core.atoms import Complex, MachineReal, PrecisionReal
from mathics.core.convert.sympy import from_sympy
from mathics.core.element import BaseElement
from mathics.core.expression import Expression
from mathics.core.number import MACHINE_PRECISION_VALU... | PypiClean |
/django-tinymce-4-0.0.17.tar.gz/django-tinymce-4-0.0.17/tinymce_4/static/tinymce_4/tinymce/plugins/importcss/plugin.js |
tinymce.PluginManager.add('importcss', function(editor) {
var self = this, each = tinymce.each;
function removeCacheSuffix(url) {
var cacheSuffix = tinymce.Env.cacheSuffix;
if (typeof url == 'string') {
url = url.replace('?' + cacheSuffix, '').replace('&' + cacheSuffix, '');
}
return url;
}
function... | PypiClean |
/python-roboticeclient-0.0.2.tar.gz/python-roboticeclient-0.0.2/roboticeclient/common/horizon.py | from __future__ import absolute_import
import os
import requests
import logging
import json
import decimal
from horizon import messages
from django.conf import settings
from roboticeclient.common.django import DjangoClient
from roboticeclient.utils.dotdict import list_to_dotdict
from roboticeclient.exceptions impor... | PypiClean |
/steam_troy-0.9.2-py3-none-any.whl/steam_troy/protobufs/gc_pb2.py |
from google.protobuf.internal import enum_type_wrapper
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_insertion_point(imports)
_sym_db... | PypiClean |
/Starlette-WTF-0.4.3.tar.gz/Starlette-WTF-0.4.3/starlette_wtf/util.py | import hashlib
import hmac
import os
from itsdangerous import BadData, SignatureExpired, URLSafeTimedSerializer
from starlette.datastructures import ImmutableMultiDict, Secret
from starlette.requests import Request as StarletteRequest
from wtforms import ValidationError
async def get_formdata(request: StarletteReque... | PypiClean |
/feanor_csv-0.5.0-py3-none-any.whl/feanor/util.py | import os
import sys
import inspect
from importlib import import_module
from importlib.util import spec_from_file_location, module_from_spec
from functools import singledispatch, update_wrapper
def to_string_list(iterable):
"""Utility function to produce a string like: "'A', 'B', 'C'" from ['B', 'A', 'C'].
... | PypiClean |
/django_sh-1.0.17-py3-none-any.whl/sh/static/sh/codemirror/mode/groovy/groovy.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use s... | PypiClean |
/Nitrous-0.9.3-py3-none-any.whl/turbogears/i18n/data/da_DK.py |
languages={'el': u'Gr\xe6sk', 'gu': 'Gujaratisk', 'en': 'Engelsk', 'zh': 'Kinesisk', 'vi': 'Vietnamesisk', 'ca': 'Katalansk', 'am': 'Amharisk', 'it': 'Italiensk', 'cs': 'Tjekkisk', 'ar': 'Arabisk', 'ga': 'Irsk', 'eu': 'Baskisk', 'et': 'Estisk', 'gl': 'Galicisk', 'id': 'Indonesisk', 'es': 'Spansk', 'ru': 'Russisk', 'az... | PypiClean |
/py_tgcalls-0.9.1-cp310-cp310-macosx_10_15_x86_64.whl/pytgcalls/node_modules/tar/lib/replace.js | 'use strict'
// tar -r
const hlo = require('./high-level-opt.js')
const Pack = require('./pack.js')
const fs = require('fs')
const fsm = require('fs-minipass')
const t = require('./list.js')
const path = require('path')
// starting at the head of the file, read a Header
// If the checksum is invalid, that's our posit... | PypiClean |
/toltecmk-0.2.1.tar.gz/toltecmk-0.2.1/toltec/bash.py | """Bridge Bash with Python."""
import os
import shlex
import subprocess
import logging
from collections import deque
from typing import Deque, Dict, Generator, List, Optional, Tuple, Union
from docker.client import DockerClient
AssociativeArray = Dict[str, str]
IndexedArray = List[Optional[str]]
LogGenerator = Genera... | PypiClean |
/graphql_schema_diff-1.2.4-py3-none-any.whl/schemadiff/changes/field.py | from graphql import is_non_null_type, GraphQLField
from schemadiff.changes import Change, Criticality, is_safe_type_change
class FieldDescriptionChanged(Change):
criticality = Criticality.safe()
def __init__(self, new_type, name, old_field, new_field):
self.type = new_type
self.field_name =... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/users/item/contact_folders/item/contacts/item/extensions/extensions_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 |
/cadlabs_ethereum_economic_model-0.0.6a0.tar.gz/cadlabs_ethereum_economic_model-0.0.6a0/experiments/notebooks/visualizations/eth_supply_simulator.py | from jupyter_dash import JupyterDash
import dash_core_components as dcc
import dash_html_components as html
from dash.dependencies import Input, Output
from dash.exceptions import PreventUpdate
import copy
from datetime import datetime
import psutil
import experiments.notebooks.visualizations as visualizations
import ... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/@jupyterlab/application/lib/tokens.d.ts | import { ServerConnection, ServiceManager } from '@jupyterlab/services';
import { ITranslator } from '@jupyterlab/translation';
import { CommandRegistry } from '@lumino/commands';
import { ReadonlyPartialJSONObject, Token } from '@lumino/coreutils';
import { IDisposable } from '@lumino/disposable';
import { ISignal } f... | PypiClean |
/google-cloud-dlp-3.12.2.tar.gz/google-cloud-dlp-3.12.2/google/cloud/dlp_v2/services/dlp_service/pagers.py | from typing import (
Any,
AsyncIterator,
Awaitable,
Callable,
Iterator,
Optional,
Sequence,
Tuple,
)
from google.cloud.dlp_v2.types import dlp
class ListInspectTemplatesPager:
"""A pager for iterating through ``list_inspect_templates`` requests.
This class thinly wraps an ini... | PypiClean |
/arabert-1.0.1.tar.gz/arabert-1.0.1/araelectra/run_finetuning.py | from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import argparse
import collections
import json
import tensorflow as tf
import configure_finetuning
from finetune import preprocessing
from finetune import task_builder
from model import modeling
from model im... | PypiClean |
/slurm_rest-0.0.37.1-py3-none-any.whl/slurm_rest/model/dbv0037_response_user_delete.py | import re # noqa: F401
import sys # noqa: F401
from slurm_rest.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,
val... | PypiClean |
/canyon-1.0-py3-none-any.whl/valley/engine/hooks.py |
# -*- coding: utf-8 -*-
# Copyright (c) Facebook, Inc. and its affiliates.
import datetime
import itertools
import logging
import math
import operator
import os
import sys
import tempfile
import time
import warnings
from collections import Counter
import torch
from fvcore.common.checkpoint import Checkpointer
from fv... | PypiClean |
/writerai_api-0.2.0-py3-none-any.whl/writer/sdk.py | import requests as requests_http
from . import utils
from .ai_content_detector import AIContentDetector
from .billing import Billing
from .completions import Completions
from .content import Content
from .cowrite import CoWrite
from .download_the_customized_model import DownloadTheCustomizedModel
from .files import Fil... | PypiClean |
/degiro_connector-2.0.23-py3-none-any.whl/degiro_connector/trading/actions/action_get_update.py | import requests
import logging
from typing import Dict, Union
# IMPORTATION THIRD PARTY
# IMPORTATION INTERNAL
from degiro_connector.core.constants import urls
from degiro_connector.trading.models.trading_pb2 import (
Credentials,
Order,
Update,
)
from degiro_connector.core.abstracts.abstract_action impor... | PypiClean |
/tensorflow-gpu-macosx-1.8.1.tar.gz/tensorflow/contrib/eager/python/datasets.py | """Iteration over tf.data.Datasets when eager execution is enabled."""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import threading
from tensorflow.contrib.data.python.ops import prefetching_ops
from tensorflow.python.data.ops import iterator_ops
from ... | PypiClean |
/one_interfaces-4.7.1.tar.gz/one_interfaces-4.7.1/one_interfaces/configuration_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 |
/spyder-terminal-1.2.2.tar.gz/spyder-terminal-1.2.2/spyder_terminal/server/static/components/node-forge/lib/xhr.js | var forge = require('./forge');
require('./socket');
require('./http');
/* XHR API */
var xhrApi = module.exports = forge.xhr = forge.xhr || {};
(function($) {
// logging category
var cat = 'forge.xhr';
/*
XMLHttpRequest interface definition from:
http://www.w3.org/TR/XMLHttpRequest
interface XMLHttpRequest {
//... | PypiClean |
/Andencento-0.24.tar.gz/Andencento-0.24/userbot/helpers/functions.py |
import os
try:
pass
except:
os.system("pip install colour")
import asyncio
import re
import time
import PIL.ImageOps
import requests
from bs4 import BeautifulSoup
from PIL import Image
from telethon.errors.rpcerrorlist import YouBlockedUserError
from validators.url import url
MARGINS = [50, 150, 250, 350, 4... | PypiClean |
/ensmallen_graph-0.6.0-cp37-cp37m-manylinux2010_x86_64.whl/ensmallen_graph/datasets/string/corynebacteriumlubricantis.py | from typing import Dict
from ..automatic_graph_retrieval import AutomaticallyRetrievedGraph
from ...ensmallen_graph import EnsmallenGraph # pylint: disable=import-error
def CorynebacteriumLubricantis(
directed: bool = False,
verbose: int = 2,
cache_path: str = "graphs/string",
**additional_graph_kwa... | PypiClean |
/customgpt_client-1.1.6.tar.gz/customgpt_client-1.1.6/customgpt_client/models/get_settings_response_400_data.py | from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from ..models.get_settings_response_400_data_code import GetSettingsResponse400DataCode
from ..types import UNSET, Unset
T = TypeVar("T", bound="GetSettingsResponse400Data")
@attr.s(auto_attribs=True)
class GetSettingsResponse400Data:
"""
... | PypiClean |
/online_judge_api_client-10.10.1-py3-none-any.whl/onlinejudge_workaround_for_conflict/type.py | import datetime
from abc import ABC, abstractmethod
from typing import Callable, Iterator, List, NamedTuple, NewType, Optional, Sequence, Tuple
import requests
CredentialsProvider = Callable[[], Tuple[str, str]]
class LoginError(RuntimeError):
def __init__(self, message: str = 'failed to login'):
super(... | PypiClean |
/safe_eth_py_suraneti-5.4.3-py3-none-any.whl/gnosis/protocol/gnosis_protocol_api.py | from functools import cached_property
from typing import Any, Dict, List, Optional, TypedDict, Union, cast
import requests
from eth_account import Account
from eth_account.messages import encode_defunct
from eth_typing import AnyAddress, ChecksumAddress, HexStr
from hexbytes import HexBytes
from gnosis.eth import Eth... | PypiClean |
/bcdi-0.3.1.tar.gz/bcdi-0.3.1/doc/scripts/index.rst | .. toctree::
:maxdepth: 2
.. _scripts:
Scripts Reference:
==================
.. _algorithm:
Algorithms
----------
bcdi_flatten_intensity.py
^^^^^^^^^^^^^^^^^^^^^^^^^
.. literalinclude:: ../../scripts/algorithms/bcdi_flatten_intensity.py
:start-after: helptext
:end-before: """
:language: rst
bcdi_blur... | PypiClean |
/crypten-0.4.1.tar.gz/crypten-0.4.1/benchmarks/run_historical_benchmarks.py |
# Copyright (c) Facebook, Inc. and its affiliates.
#
# This source code is licensed under the MIT license found in the
# LICENSE file in the root directory of this source tree.
"""
A script to run historical benchmarks.
- writes monthly data to 'dash_app/data/`
- example: 'dash_app/data/2019-10-26/func_benchmarks... | PypiClean |
/dew-pacman-0.11.0.tar.gz/dew-pacman-0.11.0/dew/storage.py | import os, os.path
import shutil
from typing import Callable
from enum import Enum
class BuildType(Enum):
Debug = 0
Release = 1
BUILD_TYPE_NAMES = {BuildType.Debug: 'debug', BuildType.Release: 'release'}
class StorageController(object):
def __init__(self, path):
self.path = path
def _makedir... | PypiClean |
/fds.sdk.SecuritizedDerivativesAPIforDigitalPortals-0.10.2-py3-none-any.whl/fds/sdk/SecuritizedDerivativesAPIforDigitalPortals/model/inline_response2006_instrument_life_cycle.py | import re # noqa: F401
import sys # noqa: F401
from fds.sdk.SecuritizedDerivativesAPIforDigitalPortals.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetim... | PypiClean |
/dsin100daysv30-6.0.1.tar.gz/dsin100daysv30-6.0.1/notebook/static/components/codemirror/src/util/bidi.js | import { lst } from "./misc.js"
// BIDI HELPERS
export function iterateBidiSections(order, from, to, f) {
if (!order) return f(from, to, "ltr", 0)
let found = false
for (let i = 0; i < order.length; ++i) {
let part = order[i]
if (part.from < to && part.to > from || from == to && part.to == from) {
... | PypiClean |
/pybullet_planning-0.6.0.tar.gz/pybullet_planning-0.6.0/src/pybullet_planning/motion_planners/meta.py | import time
from .lattice import lattice
from .lazy_prm import lazy_prm
from .prm import prm
from .rrt import rrt
from .rrt_connect import rrt_connect, birrt
from .rrt_star import rrt_star
from .utils import INF
from .smoothing import smooth_path
from .utils import RRT_RESTARTS, RRT_SMOOTHING, INF, irange, elapsed_ti... | PypiClean |
/eric-ide-22.7.1.tar.gz/eric-ide-22.7.1/eric7/PipInterface/Ui_PipPackagesInputDialog.py |
from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_PipPackagesInputDialog(object):
def setupUi(self, PipPackagesInputDialog):
PipPackagesInputDialog.setObjectName("PipPackagesInputDialog")
PipPackagesInputDialog.resize(600, 130)
PipPackagesInputDialog.setSizeGripEnabled(True)
se... | PypiClean |
/citymaker_sdk-1.1.15.0.tar.gz/citymaker_sdk-1.1.15.0/citymaker_sdk_test/SDK/RenderControl/ITerrainArc.py | import os, sys,json
sys.path.append(os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))))
import Utils.classmake as CM
import Utils.classPath as CP
import Utils.SocketApiServe as socketApi
from SDK.RenderControl.ITerrainEllipse import ITerrainEllipse
Props={"endAngle":{"t":"double","v":0,
"F":"... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/community/general/plugins/modules/redis_data_incr.py |
# Copyright (c) 2021, Andreas Botzner <andreas at botzner dot com>
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUM... | PypiClean |
/robinhood_aiokafka-1.1.6-cp37-cp37m-macosx_10_9_x86_64.whl/aiokafka/consumer/consumer.py | import asyncio
import logging
import re
import sys
import traceback
import warnings
from kafka.coordinator.assignors.roundrobin import (
RoundRobinPartitionAssignor,
)
from aiokafka.abc import ConsumerRebalanceListener
from aiokafka.client import AIOKafkaClient
from aiokafka.errors import (
TopicAuthorization... | PypiClean |
/bcsfe_kr-2.7.0.4-py3-none-any.whl/BCSFE_KR/edits/levels/main_story.py | from typing import Any
from ... import helper
from . import story_level_id_selector
CHAPTERS = [
"Empire of Cats 1",
"Empire of Cats 2",
"Empire of Cats 3",
"Into the Future 1",
"Into the Future 2",
"Into the Future 3",
"Cats of the Cosmos 1",
"Cats of the Cosmos 2",
"Cats of the ... | PypiClean |
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v3_0_0/access_search_result_secondary_grid_broker.py | from ..broker import Broker
class AccessSearchResultSecondaryGridBroker(Broker):
controller = "access_search_result_secondary_grids"
def index(self, **kwargs):
"""Lists the available access search result secondary grids. Any of the inputs listed may be be used to narrow the list; other inputs will be... | PypiClean |
/WPServer-1.0.tar.gz/WPServer-1.0/vectorformats/Feature.py | class Feature (object):
def __init__ (self, id = None, geometry = None, props = None):
self.id = id
self.geometry = geometry or {}
self.properties = props or {}
self.bbox = None
def __getitem__(self, key):
if key == "geometry":
return self.geo... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/onenote/sections/item/pages/pages_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 |
/pyChatteringy-0.0.5a0-py3-none-any.whl/pychatteringy/classes/chatbot.py | from collections import defaultdict
from typing import Iterable, Iterator, Union, Generator, List
import json
import re
from os import listdir
from random import choice
from pathlib import Path
from datetime import datetime, time
from pychatteringy.classes.intents import Intent
from pychatteringy.functions.string_op... | PypiClean |
/openboxes-client-0.1a1.tar.gz/openboxes-client-0.1a1/openboxes/rest.py | from __future__ import absolute_import
import io
import json
import logging
import re
import ssl
import certifi
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import urlencode
try:
import urllib3
except ImportError:
raise ImportError('Swagger python client requires urlli... | PypiClean |
/sit_academy_django_jet-1.0.11-py3-none-any.whl/jet/templatetags/jet_tags.py | from __future__ import unicode_literals
import json
import os
from django import template
try:
from django.core.urlresolvers import reverse
except ImportError: # Django 1.11
from django.urls import reverse
from django.forms import CheckboxInput, ModelChoiceField, Select, ModelMultipleChoiceField, SelectMultipl... | PypiClean |
/logexp-0.1.3.tar.gz/logexp-0.1.3/examples/scikit-learn/iris.py | import typing as tp
import copy
import importlib
import colt
import logexp
from sklearn.base import BaseEstimator
from sklearn.datasets import load_iris
from sklearn.model_selection import train_test_split
from logger import create_logger
logger = create_logger(__name__)
ex = logexp.Experiment("sklearn-iris")
@col... | PypiClean |
/tujie-chanlun-vol2-2022.10.15.0.tar.gz/tujie-chanlun-vol2-2022.10.15.0/TujieChanlunVol2/js/plugins/search.js | EPUBJS.reader.search = {};
// Search Server -- https://github.com/futurepress/epubjs-search
EPUBJS.reader.search.SERVER = "https://pacific-cliffs-3579.herokuapp.com";
EPUBJS.reader.search.request = function(q, callback) {
var fetch = $.ajax({
dataType: "json",
url: EPUBJS.reader.search.SERVER + "/search?q=" + en... | PypiClean |
/async_rx-1.0.4.tar.gz/async_rx-1.0.4/async_rx/observable/rx_from.py | from typing import Any, Dict
from ..protocol import Observable, Observer, Subscription, default_subscription
from .rx_create import rx_create
from .rx_dict import rx_dict
__all__ = ["rx_from"]
def rx_from(observable_input: Any) -> Observable:
"""Convert almost anything to an Observable.
Anything means:
... | PypiClean |
/discord-curious-0.7.9.tar.gz/discord-curious-0.7.9/curious/core/httpclient.py | import datetime
import json
import logging
import mimetypes
import random
import string
import time
import typing
import weakref
from email.utils import parsedate
from math import ceil, floor
from urllib.parse import quote
import asks
import multio
import pytz
from asks.errors import ConnectivityError
from asks.respon... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/fortinet/fortimanager/plugins/modules/fmgr_vpnsslweb_hostchecksoftware.py | from __future__ import absolute_import, division, print_function
# Copyright 2019-2023 Fortinet, Inc.
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at ... | PypiClean |
/msgraph-sdk-1.0.0a3.tar.gz/msgraph-sdk-1.0.0a3/msgraph/generated/me/oauth2_permission_grants/count/count_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 |
/kangas-1.1.12-py3-none-any.whl/datagrid/frontend/standalone/node_modules/next/dist/compiled/path-browserify/index.js | (function(){"use strict";var e={113:function(e){function assertPath(e){if(typeof e!=="string"){throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}}function normalizeStringPosix(e,r){var t="";var i=0;var n=-1;var a=0;var f;for(var l=0;l<=e.length;++l){if(l<e.length)f=e.charCodeAt(l);else if(f===47... | PypiClean |
/Muntjac-1.1.2.tar.gz/Muntjac-1.1.2/muntjac/demo/sampler/features/menubar/MenuBarCollapsingExample.py | from muntjac.api import VerticalLayout
from muntjac.ui.menu_bar import MenuBar, ICommand
from muntjac.terminal.external_resource import ExternalResource
class MenuBarCollapsingExample(VerticalLayout):
def __init__(self):
super(MenuBarCollapsingExample, self).__init__()
self._menubar = MenuBar()
... | PypiClean |
/Pyrseas-0.9.1.tar.gz/Pyrseas-0.9.1/docs/function.rst | Functions
=========
.. module:: pyrseas.dbobject.function
The :mod:`function` module defines four classes: class :class:`Proc`
derived from :class:`DbSchemaObject`, classes :class:`Function` and
:class:`Aggregate` derived from :class:`Proc`, and class
:class:`ProcDict` derived from :class:`DbObjectDict`.
Procedure
-... | PypiClean |
/easy_crud_repo_service-0.1.6.tar.gz/easy_crud_repo_service-0.1.6/easy_crud_repo_service/repo/connections/builders.py | import os
from typing import Self
from dotenv import load_dotenv
from easyvalid_data_validator.constraints import Constraint
from easyvalid_data_validator.validator import validate_json_data
from mysql.connector.pooling import MySQLConnectionPool
class MySQLConnectionPoolBuilder:
def __init__(self, absolute_dote... | PypiClean |
/dictalchemy3-1.0.0.tar.gz/dictalchemy3-1.0.0/dictalchemy/utils.py | import copy
from sqlalchemy import inspect
from sqlalchemy.ext.associationproxy import _AssociationList
from sqlalchemy.orm.dynamic import AppenderMixin
from sqlalchemy.orm.query import Query
from dictalchemy import constants
from dictalchemy import errors
def arg_to_dict(arg):
"""Convert an argument that can b... | PypiClean |
/feast-0.33.1.tar.gz/feast-0.33.1/sdk/python/docs/source/feast.rst | feast package
=============
Subpackages
-----------
.. toctree::
:maxdepth: 4
feast.diff
feast.dqm
feast.infra
feast.loaders
feast.protos
feast.ui
Submodules
----------
feast.aggregation module
------------------------
.. automodule:: feast.aggregation
:members:
:undoc-members:
:show... | PypiClean |
/ampel_alerts-0.9.0-py3-none-any.whl/ampel/alert/load/TarAlertLoader.py |
import tarfile
from gzip import GzipFile
from typing import IO
from ampel.log.AmpelLogger import AmpelLogger
from ampel.types import Traceless
from ampel.abstract.AbsAlertLoader import AbsAlertLoader
class TarAlertLoader(AbsAlertLoader[IO[bytes]]):
"""
Load alerts from a ``tar`` file. The archive must be laid out ... | PypiClean |
/bpy36-1.0.0-py3-none-any.whl/bpy2/2.79/scripts/addons/space_view3d_pie_menus/pie_delete_menu.py |
# <pep8 compliant>
bl_info = {
"name": "Hotkey: 'X'",
"description": "Edit mode V/E/F Delete Modes",
"author": "pitiwazou, meta-androcto",
"version": (0, 1, 0),
"blender": (2, 77, 0),
"location": "Mesh Edit Mode",
"warning": "",
"wiki_url": "",
"category": "Edit Delete Pie"
}
... | PypiClean |
/option_price-0.2.0-py3-none-any.whl/optionprice/option.py | import scipy.stats as sps
import numpy as np
class Option:
"""
function: initialize an option
:parm european: True if the option is an European option and False if it's an American one
:parm kind: 1 for call option while -1 for put option. Other number are not valid
:parm s0: initial price
:pa... | PypiClean |
/tgext.evolve-0.0.5.tar.gz/tgext.evolve-0.0.5/tgext/evolve/evolver.py | import os
import logging
from abc import abstractmethod
log = logging.getLogger('tgext.evolve')
class Evolver(object):
def __init__(self, model, evolutions):
super(Evolver, self).__init__()
self._model = model
def _alloc(evo):
if isinstance(evo, Evolution):
ret... | PypiClean |
/openedx_event_sink_clickhouse-0.2.0.tar.gz/openedx_event_sink_clickhouse-0.2.0/event_sink_clickhouse/management/commands/dump_data_to_clickhouse.py | import logging
from textwrap import dedent
from django.core.management.base import BaseCommand, CommandError
from event_sink_clickhouse.sinks.base_sink import ModelBaseSink
from event_sink_clickhouse.tasks import dump_data_to_clickhouse
log = logging.getLogger(__name__)
def dump_target_objects_to_clickhouse(
c... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.