id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/baseapp-cloudflare-stream-field-0.5.tar.gz/baseapp-cloudflare-stream-field-0.5/baseapp_cloudflare_stream_field/tasks.py | from celery import shared_task
from baseapp_cloudflare_stream_field.stream import StreamClient
stream_client = StreamClient()
@shared_task
def refresh_from_cloudflare(content_type_pk, object_pk, attname, retries=1):
from django.contrib.contenttypes.models import ContentType
content_type = ContentType.objec... | PypiClean |
/figure_second-0.2.0.tar.gz/figure_second-0.2.0/julia/figure_second/docs/src/index.md | # Welcome
`figure_second` is a layout first approach to plotting based on the ideas of the python
library [figurefirst](https://flyranch.github.io/figurefirst/). The general workflow of the library
is to define a layout of graphs in inkscape, label each object with an XML `id`, and then plot
*into* these objects usin... | PypiClean |
/testmsm-3.8.5.tar.gz/testmsm-3.8.5/examples/tICA-vs-PCA.ipynb | # tICA vs. PCA
This example uses OpenMM to generate example data to compare two methods for dimensionality reduction:
tICA and PCA.
### Define dynamics
First, let's use OpenMM to run some dynamics on the 3D potential energy function
$$E(x,y,z) = 5 \cdot (x-1)^2 \cdot (x+1)^2 + y^2 + z^2$$
From looking at this equa... | PypiClean |
/GTW-1.2.6.tar.gz/GTW-1.2.6/_RST/_TOP/_MOM/Admin_Restricted.py |
from __future__ import absolute_import, division, print_function, unicode_literals
from _GTW._RST._TOP._MOM.Admin import *
from _TFL.I18N import _, _T, _Tn
Admin = GTW.RST.TOP.MOM.Admin
class E_Type_R (Admin.E_Type) :
"""Directory displaying the restricted instances of one E_Type."""
... | PypiClean |
/criscostack_brik-1.0.5.tar.gz/criscostack_brik-1.0.5/brik/config/common_site_config.py | import getpass
import json
import os
default_config = {
"restart_supervisor_on_update": False,
"restart_systemd_on_update": False,
"serve_default_site": True,
"rebase_on_pull": False,
"criscostack_user": getpass.getuser(),
"shallow_clone": True,
"background_workers": 1,
"use_redis_auth": False,
"live_reload":... | PypiClean |
/petsc-3.19.5.tar.gz/petsc-3.19.5/config/BuildSystem/config/packages/metis.py | import config.package
class Configure(config.package.CMakePackage):
def __init__(self, framework):
config.package.CMakePackage.__init__(self, framework)
self.versionname = 'METIS_VER_MAJOR.METIS_VER_MINOR.METIS_VER_SUBMINOR'
self.gitcommit = 'v5.1.0-p11'
self.download = ['git:/... | PypiClean |
/pulumi_gcp_native-0.0.2a1617829075.tar.gz/pulumi_gcp_native-0.0.2a1617829075/pulumi_gcp_native/storagetransfer/v1/_inputs.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
__all__ = [
'AwsAccessKeyArgs',
'AwsS3DataArgs',
'AzureBlobStorageDataArgs',
'AzureCredentialsArgs',
'DateArgs',
'GcsDataArgs',
'HttpDataArgs',... | PypiClean |
/np-session-0.6.38.tar.gz/np-session-0.6.38/src/np_session/jobs/lims_upload.py | import pathlib
import np_logging
from np_session.session import Session
from np_session.components.paths import INCOMING_ROOT as DEFAULT_INCOMING_ROOT
logger = np_logging.getLogger(__name__)
def write_trigger_file(
session: Session,
incoming_dir: pathlib.Path = DEFAULT_INCOMING_ROOT,
trigger_dir: pathl... | PypiClean |
/cada_dash_custom_radioitems-0.1.1.tar.gz/cada_dash_custom_radioitems-0.1.1/cada_dash_custom_radioitems/cada_dash_custom_radioitems.min.js | window.cada_dash_custom_radioitems=function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=ty... | PypiClean |
/accelbyte_py_sdk-0.48.0.tar.gz/accelbyte_py_sdk-0.48.0/accelbyte_py_sdk/api/eventlog/operations/user_information/get_user_activities_handler.py |
# template file: ags_py_codegen
# pylint: disable=duplicate-code
# pylint: disable=line-too-long
# pylint: disable=missing-function-docstring
# pylint: disable=missing-module-docstring
# pylint: disable=too-many-arguments
# pylint: disable=too-many-branches
# pylint: disable=too-many-instance-attributes
# pylint: dis... | PypiClean |
/etianen-cms-2.6.5.tar.gz/etianen-cms-2.6.5/src/cms/admin.py |
from django.contrib import admin
from cms import externals
from cms.models.base import SearchMetaBaseSearchAdapter, PageBaseSearchAdapter
class PublishedBaseAdmin(admin.ModelAdmin):
"""Base admin class for published models."""
change_form_template = "admin/cms/publishedmodel/change_for... | PypiClean |
/horovod-0.28.1.tar.gz/horovod-0.28.1/third_party/boost/assert/README.md | # Boost.Assert
The Boost.Assert library, part of the collection of [Boost C++ Libraries](http://github.com/boostorg),
provides several configurable diagnostic macros similar in behavior and purpose to the standard macro
`assert` from `<cassert>`.
## Documentation
See the documentation of [BOOST_ASSERT](doc/assert.ad... | PypiClean |
/django-countries-geoextent-0.0.1.tar.gz/django-countries-geoextent-0.0.1/README.md | # Django Countries GeoExtent
This package adds a `geo_extent` attribute to
the `django-countries` [Country](https://github.com/SmileyChris/django-countries#the-country-object) object.
The `geo_extent` attribute represents the geographic extent of a country, as extracted
from [GADM 4.1](https://gadm.org/download_world... | PypiClean |
/accelerator_toolbox-0.4.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl/at/plot/generic.py | from __future__ import annotations
from itertools import chain, repeat
# noinspection PyPackageRequirements
import matplotlib.pyplot as plt
from typing import Callable
from .synopt import plot_synopt
from ..lattice import Lattice
SLICES = 400
__all__ = ['baseplot']
def baseplot(ring: Lattice, plot_function: Callabl... | PypiClean |
/wield.iirrational-2.9.5.tar.gz/wield.iirrational-2.9.5/src/wield/iirrational/external/tabulate/tabulate.py | from __future__ import print_function
from __future__ import unicode_literals
from collections import namedtuple
import sys
import re
import math
if sys.version_info >= (3, 3):
from collections.abc import Iterable
else:
from collections import Iterable
if sys.version_info[0] < 3:
from itertools import iz... | PypiClean |
/tocka-django-cms-3.1.2a0.tar.gz/tocka-django-cms-3.1.2a0/cms/middleware/toolbar.py | from django.contrib.admin.models import LogEntry, ADDITION, CHANGE
from django.core.urlresolvers import resolve
from django.http import HttpResponse
from django.template.loader import render_to_string
from cms.toolbar.toolbar import CMSToolbar
from cms.utils.conf import get_cms_setting
from cms.utils.i18n import force... | PypiClean |
/pytorch-search-0.6.8.tar.gz/pytorch-search-0.6.8/jina/docker/hubapi.py | import json
import requests
from typing import Dict
from pkg_resources import resource_stream
from .helper import credentials_file
from ..helper import yaml, colored
def _list(logger, name: str = None, kind: str = None, type_: str = None, keywords: tuple = ('numeric')):
""" Hub API Invocation to run `hub list` "... | PypiClean |
/python-xlib-0.33.tar.gz/python-xlib-0.33/Xlib/ext/res.py | from Xlib.protocol import rq
RES_MAJOR_VERSION = 1
RES_MINOR_VERSION = 2
extname = "X-Resource"
# v1.0
ResQueryVersion = 0
ResQueryClients = 1
ResQueryClientResources = 2
ResQueryClientPixmapBytes = 3
# v1.2
ResQueryClientIds = 4
ResQueryResourceBytes = 5
class QueryVersion(rq.ReplyRequest):
_request = rq.Stru... | PypiClean |
/dash-google-charts-0.0.3rc1.tar.gz/dash-google-charts-0.0.3rc1/dash_google_charts/_components/ColumnChart.py |
from dash.development.base_component import Component, _explicitize_args
class ColumnChart(Component):
"""A ColumnChart component.
Keyword arguments:
- id (string; optional): The ID of this component, used to identify dash components
in callbacks. The ID needs to be unique across all of the
components in an ap... | PypiClean |
/af_process_image_renderer-3.0.3-py3-none-any.whl/af_process_image_renderer/api_client.py | from __future__ import absolute_import
import datetime
import json
import mimetypes
from multiprocessing.pool import ThreadPool
import os
import re
import tempfile
# python 2 and python 3 compatibility library
import six
from six.moves.urllib.parse import quote
from af_process_image_renderer.configuration import Con... | PypiClean |
/frodocs-material-4.6.4.tar.gz/frodocs-material-4.6.4/material/assets/javascripts/lunr/lunr.da.js | * based on
* Snowball JavaScript Library v0.3
* http://code.google.com/p/urim/
* http://snowball.tartarus.org/
*
* Copyright 2010, Oleg Mazko
* http://www.mozilla.org/MPL/
*/
!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof exports?module.exports=r():r()(e.lunr)}(this,function(){r... | PypiClean |
/bonobo-trans-0.0.4.tar.gz/bonobo-trans-0.0.4/bonobo_trans/sequencer.py | import logging
from bonobo.config import Configurable, ContextProcessor, Option, Service
from bonobo.config import use_context
from bonobo.errors import UnrecoverableError
from sqlalchemy import Column, Integer, MetaData, String, Table, func, select
from sqlalchemy.engine import create_engine
from bonobo_trans.loggin... | PypiClean |
/paramiko-3.3.1.tar.gz/paramiko-3.3.1/demos/demo_simple.py |
# Copyright (C) 2003-2007 Robey Pointer <robeypointer@gmail.com>
#
# This file is part of paramiko.
#
# Paramiko 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 2.1 of the License, or (... | PypiClean |
/ais_dom-2023.7.2-py3-none-any.whl/homeassistant/components/nibe_heatpump/climate.py | from __future__ import annotations
from typing import Any
from nibe.coil import Coil
from nibe.coil_groups import (
CLIMATE_COILGROUPS,
UNIT_COILGROUPS,
ClimateCoilGroup,
UnitCoilGroup,
)
from nibe.exceptions import CoilNotFoundException
from homeassistant.components.climate import (
ATTR_HVAC_MO... | PypiClean |
/spectrify-3.1.0.tar.gz/spectrify-3.1.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 |
/pulumi_oci-1.9.0a1693465256.tar.gz/pulumi_oci-1.9.0a1693465256/pulumi_oci/identity/domain_replication_to_region.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = ['DomainReplicationToRegionArgs', 'DomainReplicationToRegion']
@pulumi.input_type
class DomainReplicationToRegionArgs:
def __init__(__self__, *,... | PypiClean |
/Pyrogram-2.0.34.tar.gz/Pyrogram-2.0.34/pyrogram/handlers/raw_update_handler.py |
from typing import Callable
from .handler import Handler
class RawUpdateHandler(Handler):
"""The Raw Update handler class. Used to handle raw updates. It is intended to be used with
:meth:`~pyrogram.Client.add_handler`
For a nicer way to register this handler, have a look at the
:meth:`~pyrogram.Cl... | PypiClean |
/memsource-cli-0.3.8.tar.gz/memsource-cli-0.3.8/docs/ProjectTransMemoryDto.md | # ProjectTransMemoryDto
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**target_locale** | **str** | | [optional]
**workflow_step** | [**WorkflowStepReference**](WorkflowStepReference.md) | | [optional]
**read_mode** | **bool** | | [optional]
**write_... | PypiClean |
/BoxKit-2023.6.7.tar.gz/BoxKit-2023.6.7/bin/cmd.py | import os
import sys
import subprocess
from setuptools.command.install import install
from setuptools.command.develop import develop
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
# Import cbox_build from cbox
# module located in the 'bin' folder of the
# package directory
from cbox import cbox_build ... | PypiClean |
/kolibri_ml-1.1.88-py3-none-any.whl/kolibri/tokenizers/multi_word_tokenizer.py | from kolibri.tokenizers.regex_tokenizer import RegexpTokenizer
from kolibri.tokenizers.tokenizer import Tokenizer
from kdmt.dict import update
class MultiWordTokenizer(Tokenizer):
defaults = {
"fixed": {
'whitespace': False,
'regex': None,
'split': " "
},
... | PypiClean |
/bmcs-0.0.2a28-py3-none-any.whl/stats/spirrid_bak/ui/view/spirrid_view.py | from etsproxy.traits.api import HasTraits, Str, Instance, Float, \
Event, Int, Bool, Button
from etsproxy.traits.ui.api import View, Item, \
HGroup, Tabbed, VGroup, ModelView, Group, HSplit
from stats.spirrid_bak.old.spirrid import SPIRRID
from math import pi
# -------------------------------
# SPIRRID... | PypiClean |
/cosmos_ingest-0.1-py3-none-any.whl/ingest/process/detection/src/converters/html2xml.py | from bs4 import BeautifulSoup
import re
import os
import glob
import codecs
from postprocess.postprocess import not_ocr
from pascal_voc_writer import Writer
from argparse import ArgumentParser
def iterate_and_update_writer(soup, writer):
"""
Core function for outputting xml
:param soup: BeautifulSoup repr... | PypiClean |
/aisy_sca-0.2.7-py3-none-any.whl/aisy_sca/optimization/RandomGridSearch.py | from aisy_sca.optimization.HyperparameterSearch import *
from aisy_sca.sca.Profiling import Profiling
from aisy_sca.utils import Utils
import tensorflow.keras.backend as backend
from termcolor import colored
import itertools
import json
import time
class RandomGridSearch(HyperparameterSearch):
"""
Class that ... | PypiClean |
/v2/__init__.py |
from __future__ import absolute_import
# import EvsClient
from huaweicloudsdkevs.v2.evs_client import EvsClient
from huaweicloudsdkevs.v2.evs_async_client import EvsAsyncClient
# import models into sdk package
from huaweicloudsdkevs.v2.model.attachment import Attachment
from huaweicloudsdkevs.v2.model.az_info import ... | PypiClean |
/privy-presidio-utils-0.0.71.tar.gz/privy-presidio-utils-0.0.71/presidio_evaluator/data_generator/faker_extensions/data_objects.py | from dataclasses import dataclass
import dataclasses
import json
from typing import Optional, List, Dict
from collections import Counter
@dataclass(eq=True)
class FakerSpan:
"""FakerSpan holds the start, end, value and type of every element replaced."""
value: str
start: int
end: int
type: str
... | PypiClean |
/retro_data_structures-0.23.0-py3-none-any.whl/retro_data_structures/properties/corruption/archetypes/HoverThenHomeProjectile.py | import dataclasses
import struct
import typing
from retro_data_structures.game_check import Game
from retro_data_structures.properties.base_property import BaseProperty
from retro_data_structures.properties.corruption.core.AssetId import AssetId, default_asset_id
@dataclasses.dataclass()
class HoverThenHomeProjectil... | PypiClean |
/bw_plex-0.1.0.tar.gz/bw_plex-0.1.0/bw_plex/credits.py | from __future__ import division
import glob
import os
import subprocess
import re
import click
import numpy as np
from bw_plex import LOG
from bw_plex.video import video_frame_by_frame
from bw_plex.misc import sec_to_hh_mm_ss
try:
import cv2
except ImportError:
cv2 = None
LOG.warning('Scanning for credi... | PypiClean |
/cn-stock-holidays-1.10.tar.gz/cn-stock-holidays-1.10/cn_stock_holidays/zipline/exchange_calendar_hkex.py | from datetime import time
from cn_stock_holidays.data_hk import get_cached
from pandas import Timestamp, date_range, DatetimeIndex
import pytz
from zipline.utils.memoize import remember_last, lazyval
import warnings
from zipline.utils.calendars import TradingCalendar
from zipline.utils.calendars.trading_calendar impor... | PypiClean |
/Pint-0.22-py3-none-any.whl/pint/_vendor/flexparser.py | from __future__ import annotations
import collections
import dataclasses
import enum
import functools
import hashlib
import hmac
import inspect
import logging
import pathlib
import re
import sys
import typing as ty
from collections.abc import Iterator
from dataclasses import dataclass
from functools import cached_prop... | PypiClean |
/robot_grpc-0.0.4.tar.gz/robot_grpc-0.0.4/robot_grpc/node_modules/lodash/_baseSortedIndexBy.js | var isSymbol = require('./isSymbol');
/** Used as references for the maximum length and index of an array. */
var MAX_ARRAY_LENGTH = 4294967295,
MAX_ARRAY_INDEX = MAX_ARRAY_LENGTH - 1;
/* Built-in method references for those with the same name as other `lodash` methods. */
var nativeFloor = Math.floor,
native... | PypiClean |
/certora_cli_alpha_antti_learned_lemma_passing_cvl2-20230517.9.39.262005-py3-none-any.whl/certora_cli/EVMVerifier/certoraNodeFilters.py | from typing import Any, Dict
import os
import sys
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from Shared.certoraUtils import NoValEnum
class NodeFilters:
class NodeType(NoValEnum):
def is_this_node_type(self, type_name_node: Dict[str, Any]) -> bool:
return type_name_node... | PypiClean |
/delphix_dct_api-9.0.0rc1-py3-none-any.whl/delphix/api/gateway/model/provision_vdbby_timestamp_parameters_all_of.py | import re # noqa: F401
import sys # noqa: F401
from delphix.api.gateway.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... | PypiClean |
/PyOpenGL-Demo-3.1.1.tar.gz/PyOpenGL-Demo-3.1.1/OpenGL_Demo/proesch/simpleTexture/texturedQuad.py |
from __future__ import absolute_import
from __future__ import print_function
import sys
import array
from PIL import Image
import random
from six.moves import range
try:
from OpenGL.GLUT import *
from OpenGL.GL import *
from OpenGL.GLU import *
except:
print(""" Error PyOpenGL not installed properly !... | PypiClean |
/microt_preprocessing-0.1.61-py3-none-any.whl/time_study_preprocessing_main/preprocess_scripts/phone/daily_notes/parse.py | from os import sep
import pandas as pd
import warnings
warnings.filterwarnings("ignore")
def parse_raw_df(df_hour_raw):
columns_names = ["LOG_TIME", "LOG_TYPE", "PARTICIPANT_ID", "FILE_NAME", "NOTES"]
df_burst_status = pd.DataFrame()
df_dnd_status = pd.DataFrame()
if df_hour_raw.shape[0] > 0:
... | PypiClean |
/python-docx-2023-0.2.17.tar.gz/python-docx-2023-0.2.17/docx/oxml/coreprops.py | from __future__ import (
absolute_import, division, print_function, unicode_literals
)
import re
from datetime import datetime, timedelta
from docx.compat import is_string
from docx.oxml import parse_xml
from docx.oxml.ns import nsdecls, qn
from docx.oxml.xmlchemy import BaseOxmlElement, ZeroOrOne
class CT_Cor... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/domain/AlipayDataDataserviceAntdataassetsUploadjobCreateModel.py | import json
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AntdataassetsOdpsColumn import AntdataassetsOdpsColumn
class AlipayDataDataserviceAntdataassetsUploadjobCreateModel(object):
def __init__(self):
self._guid = None
self._odps_columns = None
@property
... | PypiClean |
/mitmproxy_lin_customization-5.2.2.1.tar.gz/mitmproxy_lin_customization-5.2.2.1/pathod/protocols/http2.py | import itertools
import time
import hyperframe.frame
from hpack.hpack import Encoder, Decoder
from mitmproxy.net.http import http2
import mitmproxy.net.http.headers
import mitmproxy.net.http.response
import mitmproxy.net.http.request
from mitmproxy.coretypes import bidi
from .. import language
class TCPHandler:
... | PypiClean |
/nvme-spex-0.0.1.tar.gz/nvme-spex-0.0.1/src/spex/jsonspec/rowiter.py | import copy
from lxml import etree
from spex.xml import Xpath
def repr_elem(elem):
return etree.tostring(elem, encoding="unicode").strip()
def alst_count_decr(alst):
res = [(ndx, (elem, count - 1)) for ndx, (elem, count) in alst if count > 1]
return res
def alst_insert(alst, ndx, elem, count):
e... | PypiClean |
/zc.relation-2.0.tar.gz/zc.relation-2.0/src/zc/relation/tokens.rst | ======================================================
Tokens and Joins: zc.relation Catalog Extended Example
======================================================
Introduction and Set Up
=======================
This document assumes you have read the introductory README.rst and want
to learn a bit more by example. ... | PypiClean |
/Pyomo-6.6.2-cp39-cp39-win_amd64.whl/pyomo/scripting/plugins/download.py |
import logging
import sys
from pyomo.common.download import FileDownloader, DownloadFactory
from pyomo.scripting.pyomo_parser import add_subparser
class GroupDownloader(object):
def __init__(self):
self.downloader = FileDownloader()
def create_parser(self, parser):
return self.downloader.cre... | PypiClean |
/gaeframework-2.0.10.tar.gz/gaeframework-2.0.10/google_appengine/lib/django_1_2/django/db/models/loading.py | "Utilities for loading models and the modules that contain them."
from django.conf import settings
from django.core.exceptions import ImproperlyConfigured
from django.utils.datastructures import SortedDict
from django.utils.importlib import import_module
from django.utils.module_loading import module_has_submodule
im... | PypiClean |
/forked_ecephys_spike_sorting-0.1.1.tar.gz/forked_ecephys_spike_sorting-0.1.1/ecephys_spike_sorting/scripts/batch_processing_NP0_ks.py | import os
import subprocess
import glob
import shutil
from create_input_json import createInputJson
npx_directories = [r'N:\715093703_386129_20180627'
]
probe_type = '3A'
json_directory = r'C:\Users\svc_neuropix\Documents\json_files'
def copy_to_local(source, destination):
robocopy(source, destination)
... | PypiClean |
/textworld-py-0.0.3.4.tar.gz/textworld-py-0.0.3.4/textworld/envs/zmachine/jericho.py |
import io
import os
import sys
import warnings
import jericho
import textworld
from textworld.core import GameState
from textworld.core import GameNotRunningError
class JerichoUnsupportedGameWarning(UserWarning):
pass
class JerichoGameState(GameState):
@property
def nb_deaths(self):
""" Num... | PypiClean |
/odoo13_addon_account_payment_return-13.0.1.0.6-py3-none-any.whl/odoo/addons/account_payment_return/models/account_move.py |
from operator import itemgetter
from odoo import fields, models
class AccountMove(models.Model):
_inherit = "account.move"
returned_payment = fields.Boolean(
string="Payment returned",
help="Invoice has been included on a payment that has been returned later.",
copy=False,
)
... | PypiClean |
/azure-mgmt-appplatform-8.0.0.zip/azure-mgmt-appplatform-8.0.0/azure/mgmt/appplatform/v2023_01_01_preview/operations/_api_portals_operations.py | import sys
from typing import Any, Callable, Dict, IO, Iterable, Optional, TypeVar, Union, cast, overload
import urllib.parse
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
ResourceNotModifiedError,
map_error,
)
from... | PypiClean |
/quantlwsdk-0.0.24.tar.gz/quantlwsdk-0.0.24/rqalpha/const.py |
from enum import Enum, EnumMeta
import six
class CustomEnumMeta(EnumMeta):
def __new__(metacls, cls, bases, classdict):
enum_class = super(CustomEnumMeta, metacls).__new__(metacls, cls, bases, classdict)
enum_class._member_reverse_map = {v.value: v for v in enum_class.__members__.values()}
... | PypiClean |
/torvy-hass-0.1.tar.gz/torvy-hass-0.1/homeassistant/components/light/wink.py | import colorsys
from homeassistant.components.light import (
ATTR_BRIGHTNESS, ATTR_COLOR_TEMP, ATTR_RGB_COLOR, SUPPORT_BRIGHTNESS,
SUPPORT_COLOR_TEMP, SUPPORT_RGB_COLOR, Light)
from homeassistant.components.wink import WinkDevice
from homeassistant.util import color as color_util
from homeassistant.util.color ... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/MybankPaymentTradeNormalpayTransferRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.MybankPaymentTradeNormalpayTransferModel import MybankPaymentTradeNormalpayTransferModel
class MybankPaymentTradeNormalpayTransferRequest(object):
def __init__(self, biz_mod... | PypiClean |
/odooku_odoo_base-11.0.7-py35-none-any.whl/odoo/addons/web/static/lib/moment/locale/es-do.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 |
/testfixtures-7.1.0.tar.gz/testfixtures-7.1.0/README.rst | Testfixtures
============
|CircleCI|_ |Docs|_
.. |CircleCI| image:: https://circleci.com/gh/simplistix/testfixtures/tree/master.svg?style=shield
.. _CircleCI: https://circleci.com/gh/simplistix/testfixtures/tree/master
.. |Docs| image:: https://readthedocs.org/projects/testfixtures/badge/?version=latest
.. _Docs: ht... | PypiClean |
/asyncpg_trek-0.3.1.tar.gz/asyncpg_trek-0.3.1/asyncpg_trek/asyncpg.py | import pathlib
from contextlib import asynccontextmanager
from typing import AsyncContextManager, AsyncIterator, Optional
import asyncpg # type: ignore
from asyncpg_trek._types import Operation
CREATE_TABLE = """\
CREATE SCHEMA IF NOT EXISTS "{schema}";
CREATE TABLE IF NOT EXISTS "{schema}".migrations (
id SERI... | PypiClean |
/deoldify-0.0.1-py3-none-any.whl/fastai/callbacks/csv_logger.py | "A `Callback` that saves tracked metrics into a persistent file."
#Contribution from devforfu: https://nbviewer.jupyter.org/gist/devforfu/ea0b3fcfe194dad323c3762492b05cae
from ..torch_core import *
from ..basic_data import DataBunch
from ..callback import *
from ..basic_train import Learner, LearnerCallback
from time i... | PypiClean |
/china-1.0.1-py3-none-any.whl/yuan/utils/sql/hive.py | class Hive(object):
get_feats = lambda feats: [i.split('.')[1] if '.' in i else i for i in feats]
def gen_cols(self, feats_str: list = [], feats_num: list = [], all_feats: list = []):
if all_feats:
if feats_str or feats_num:
if feats_str:
z = zip(range(10... | PypiClean |
/cdktf_cdktf_provider_aws-17.0.2-py3-none-any.whl/cdktf_cdktf_provider_aws/data_aws_ec2_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 DataAwsEc2Host(
_cdktf_9a9027ec.TerraformDataSourc... | PypiClean |
/echarts-china-counties-pypkg-0.0.2.tar.gz/echarts-china-counties-pypkg-0.0.2/echarts_china_counties_pypkg/resources/echarts-china-counties-js/8b845197731b3b5affc2159ca0bee819.js | (function (root, factory) {if (typeof define === 'function' && define.amd) {define(['exports', 'echarts'], factory);} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {factory(exports, require('echarts'));} else {factory({}, root.echarts);}}(this, function (exports, echarts) {var log = func... | PypiClean |
/readme_metrics-3.0.3-py3-none-any.whl/readme_metrics/PayloadBuilder.py | from collections.abc import Mapping
import importlib
import json
from json import JSONDecodeError
from logging import Logger
import platform
import time
from typing import List, Optional
from urllib import parse
import uuid
from readme_metrics import ResponseInfoWrapper
class QueryNotFound(Exception):
pass
cl... | PypiClean |
/mercurial-6.5.1.tar.gz/mercurial-6.5.1/hgext/convert/gnuarch.py |
import os
import shutil
import stat
import tempfile
from mercurial.i18n import _
from mercurial import (
encoding,
error,
mail,
pycompat,
util,
)
from mercurial.utils import (
dateutil,
procutil,
)
from . import common
class gnuarch_source(common.converter_source, common.commandline):
... | PypiClean |
/headergen-1.1.1-py3-none-any.whl/callsites-jupyternb-micro-benchmark/utils.py | import jupytext
import re
from pathlib import Path
def create_input_py(filename):
py_ntbk_path = None
if filename.endswith(".ipynb"):
_file = Path(filename)
_filename = _file.name.split(".ipynb")[0]
ntbk = jupytext.read(_file)
# py_ntbk = jupytext.writes(ntbk, fmt='py:percent'... | PypiClean |
/huoyong_paoxue_siwei-2022.10.11.0-py3-none-any.whl/HuoyongPaoxueSiwei/js/reader.js | (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(factory((global.RSVP = global.RSVP || {})));
}(this, (function (exports) { 'use strict';
function indexOf(callbacks, callback) ... | PypiClean |
/dsin100daysv33-6.0.1.tar.gz/dsin100daysv33-6.0.1/notebook/utils.py |
# Copyright (c) Jupyter Development Team.
# Distributed under the terms of the Modified BSD License.
from __future__ import print_function
import asyncio
import concurrent.futures
import ctypes
import errno
import inspect
import os
import stat
import sys
from distutils.version import LooseVersion
try:
from url... | PypiClean |
/nautobot_version_control-1.0.0a0-py3-none-any.whl/nautobot_version_control/middleware.py |
from django.contrib import messages
from django.core.exceptions import ObjectDoesNotExist
from django.db.models.signals import m2m_changed, post_save, pre_delete
from django.http import HttpResponse
from django.shortcuts import redirect
from django.utils.safestring import mark_safe
from nautobot.extras.models.change_... | PypiClean |
/pygame-engine-0.0.6.tar.gz/pygame-engine-0.0.6/game/game_objects/controllers/items_controller/invencible_power_up_controller.py | from pygame.math import Vector2
from pygame import mixer
from game_engine.time import Time
from game_engine.game_object import GameObject
from random import uniform as randfloat
from game.game_objects.mesh_objects.invencible_circle import InvencibleCircle
from game_engine.material import Material
from game_engine.basic... | PypiClean |
/sat_mapping_cyborg_ai-0.0.37-py3-none-any.whl/sat_mapping/Lib/gsutil/third_party/pyasn1/docs/source/pyasn1/type/namedtype/defaultednamedtype.rst |
.. _namedtype.DefaultedNamedType:
.. |NamedType| replace:: DefaultedNamedType
DefaultedNamedType
------------------
.. autoclass:: pyasn1.type.namedtype.DefaultedNamedType
:members:
.. note::
The *DefaultedNamedType* class models named field of a constructed
ASN.1 type which has a default va... | PypiClean |
/pretty_simple_namespace-0.1.1-py3-none-any.whl/pretty_simple_namespace/_vendor/ordered_set.py | import itertools as it
from collections import deque
try:
# Python 3
from collections.abc import MutableSet, Sequence
except ImportError:
# Python 2.7
from collections import MutableSet, Sequence
SLICE_ALL = slice(None)
__version__ = "3.1"
def is_iterable(obj):
"""
Are we being asked to look... | PypiClean |
/ncrar-abr-1.0.1.tar.gz/ncrar-abr-1.0.1/ncrar_abr/app.py | import argparse
from collections import Counter
import json
from pathlib import Path
from matplotlib import pylab as pl
from numpy import random
import pandas as pd
from scipy import stats
import enaml
from enaml.application import deferred_call
from enaml.qt.qt_application import QtApplication
from enaml.qt.QtCore i... | PypiClean |
/roof_mask_Yv8-0.5.9-py3-none-any.whl/detectron2/utils/events.py | import datetime
import json
import logging
import os
import time
from collections import defaultdict
from contextlib import contextmanager
from typing import Optional
import torch
from fvcore.common.history_buffer import HistoryBuffer
from detectron2.utils.file_io import PathManager
__all__ = [
"get_event_storage... | PypiClean |
/gino-admin-0.3.0.tar.gz/gino-admin-0.3.0/gino_admin/routes/main.py | import os
from ast import literal_eval
from typing import Text
import asyncpg
from sanic import response
from sanic.request import Request
from sqlalchemy.engine.url import URL
from gino_admin import auth, config, utils
from gino_admin.core import admin
from gino_admin.history import log_history_event, write_history_... | PypiClean |
/certora-cli-alpha-jtoman-gmx-set-data-20230501.21.4.812906.tar.gz/certora-cli-alpha-jtoman-gmx-set-data-20230501.21.4.812906/certora_cli/EVMVerifier/Compiler/CompilerCollectorSol.py | from pathlib import Path
from typing import Any, List, Tuple, Dict, Set
from EVMVerifier.Compiler.CompilerCollector import CompilerLang, CompilerCollector, CompilerLangFunc
from Shared.certoraUtils import Singleton
import EVMVerifier.certoraType as CT
class CompilerLangSol(CompilerLang, metaclass=Singleton):
"""... | PypiClean |
/uoft_core-1.0.1.tar.gz/uoft_core-1.0.1/uoft_core/yaml/constructor.py |
import datetime
import base64
import binascii
import sys
import types
import warnings
from collections.abc import Hashable, MutableSequence, MutableMapping
from typing import TYPE_CHECKING, Tuple, cast, Optional
# fmt: off
from .error import (MarkedYAMLError, MarkedYAMLFutureWarning,
Ma... | PypiClean |
/Atom_avatar-0.0.3.tar.gz/Atom_avatar-0.0.3/avatar/index.py | from io import BytesIO, StringIO
from random import randrange
from cairosvg import svg2png
from jinja2 import Template, Environment, FileSystemLoader
import json
import os
# a= open('male_back.json')
# b= a.read()
# print(type(json.loads(b)))
path=os.path.dirname(os.path.realpath(__file__))
load_base = FileSystemLoade... | PypiClean |
/hbmqtt-master2.2-0.9.7.tar.gz/hbmqtt-master2.2-0.9.7/docs/references/broker.rst | Broker API reference
====================
The :class:`~hbmqtt.broker.Broker` class provides a complete MQTT 3.1.1 broker implementation. This class allows Python developers to embed a MQTT broker in their own applications.
Usage example
-------------
The following example shows how to start a broker using the defaul... | PypiClean |
/c65ryu-5.0.0.tar.gz/c65ryu-5.0.0/ryu/app/rest_qos.py |
import logging
import json
import re
from ryu.app import conf_switch_key as cs_key
from ryu.app.wsgi import ControllerBase
from ryu.app.wsgi import Response
from ryu.app.wsgi import route
from ryu.app.wsgi import WSGIApplication
from ryu.base import app_manager
from ryu.controller import conf_switch
from ryu.control... | PypiClean |
/levis_pdfparse-0.1.0-py3-none-any.whl/scipdf/features/text_utils.py | import numpy as np
import pandas as pd
import textstat
import spacy
from collections import Counter
from itertools import groupby
nlp = spacy.load("en_core_web_sm")
PRESENT_TENSE_VERB_LIST = ["VB", "VBP", "VBZ", "VBG"]
VERB_LIST = ["VB", "VBP", "VBZ", "VBG", "VBN", "VBD"]
NOUN_LIST = ["NNP", "NNPS"]
SECTIONS_MAPS ... | PypiClean |
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/ram/get-resource-share-invitations.rst | **To list your resource share invitations**
The following ``get-resource-share-invitations`` example lists your current resource share invitations. ::
aws ram get-resource-share-invitations
Output::
{
"resourceShareInvitations": [
{
"resourceShareInvitationArn": "arn:aws:... | PypiClean |
/FOFA_py-2.0.3-py3-none-any.whl/fofa/__main__.py | import os
import click
import fofa
import json
import logging
from tqdm import tqdm
from .helper import XLSWriter, CSVWriter
COLORIZE_FIELDS = {
'ip': 'green',
'port': 'yellow',
'domain': 'magenta',
'as_organization': 'cyan',
}
def escape_data(args):
# Make sure the string is unicode so the termi... | PypiClean |
/PyUpdater-SCP-Plugin-4.0.3.tar.gz/PyUpdater-SCP-Plugin-4.0.3/versioneer.py | from __future__ import print_function
try:
import configparser
except ImportError:
import ConfigParser as configparser
import errno
import json
import os
import re
import subprocess
import sys
class VersioneerConfig:
"""Container for Versioneer configuration parameters."""
def get_root():
"""Get the... | PypiClean |
/nnisgf-0.4-py3-none-manylinux1_x86_64.whl/nnisgf-0.4.data/data/nni/node_modules/browserify-mime/browserify-mime.js | "use strict"
var mime = module.exports = {
lookup: function (path, fallback) {
var ext = path.replace(/.*[\.\/]/, '').toLowerCase();
return this.types[ext] || fallback || this.default_type;
}
, default_type: "application/octet-stream"
, types: {
"123": "application/vnd.lotus-1-2-3",
"ez": "application/... | PypiClean |
/variants-0.2.0.tar.gz/variants-0.2.0/docs/installation.rst | .. highlight:: shell
============
Installation
============
Stable release
--------------
To install variants, run this command in your terminal:
.. code-block:: console
$ pip install variants
This is the preferred method to install variants, as it will always install the most recent stable release.
If you... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/request/AlipayMarketingCampaignDiscountStatusUpdateRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayMarketingCampaignDiscountStatusUpdateModel import AlipayMarketingCampaignDiscountStatusUpdateModel
class AlipayMarketingCampaignDiscountStatusUpdateRequest(object):
de... | PypiClean |
/pg_seldump-0.3-py3-none-any.whl/seldump/dbreader.py | import logging
from functools import lru_cache
import psycopg
from psycopg import sql
from psycopg.rows import namedtuple_row
from .consts import DUMPABLE_KINDS, KIND_TABLE, KIND_PART_TABLE, REVKINDS
from .reader import Reader
from .dbobjects import DbObject, Column, ForeignKey
from .exceptions import DumpError
logg... | PypiClean |
/maskrcnn-modanet-1.0.3.tar.gz/maskrcnn-modanet-1.0.3/maskrcnn_modanet/train/generator.py | import numpy as np
import random
import warnings
import keras
from keras_retinanet.utils.anchors import (
anchor_targets_bbox,
bbox_transform,
anchors_for_shape,
guess_shapes
)
from keras_retinanet.utils.config import parse_anchor_parameters
from keras_retinanet.utils.image import (
TransformParam... | PypiClean |
/Gbtestapi0.3-0.1a10-py3-none-any.whl/gailbot/services/organizer/settings/interface/watsonInterface.py | from pydantic import BaseModel, ValidationError
from typing import Dict, Union
from .engineSettingInterface import EngineSettingInterface
from gailbot.core.utils.logger import makelogger
from gailbot.core.utils.download import is_internet_connected
from gailbot.core.engines import Watson
logger = makelogger("watson_in... | PypiClean |
/bots-ediint-3.3.1.tar.gz/bots-ediint-3.3.1/bots/pluglib.py | from __future__ import unicode_literals
import sys
if sys.version_info[0] > 2:
basestring = unicode = str
import os
#~ import time
import zipfile
import zipimport
import codecs
import django
from django.core import serializers
from django.utils.translation import ugettext as _
from . import models
from . import bot... | PypiClean |
/dara_components-1.1.2-py3-none-any.whl/dara/components/common/grid.py | from typing import Optional, Union
from pydantic import BaseModel
from dara.components.common.base_component import LayoutComponent
from dara.core.definitions import ComponentInstance, discover
from dara.core.visual.components.types import Direction
class ScreenBreakpoints(BaseModel):
xs: Optional[int] = None
... | PypiClean |
/nonebot_plugin_chatrecorder-0.4.1.tar.gz/nonebot_plugin_chatrecorder-0.4.1/nonebot_plugin_chatrecorder/adapters/kaiheila.py | from datetime import datetime
from typing import Any, Dict, Optional, Type
from nonebot.adapters import Bot as BaseBot
from nonebot.message import event_postprocessor
from nonebot_plugin_datastore import create_session
from nonebot_plugin_session import Session, SessionLevel, extract_session
from nonebot_plugin_sessio... | PypiClean |
/Fugue-generator-0.9a1.tar.gz/Fugue-generator-0.9a1/fugue/__init__.py |
#TODO: Do I actually need all this?
import logging
import os
from sys import argv, executable
from pathlib import Path
import re
import yaml
from lxml import etree as ET
#Used for static file moving/deleting.
from distutils.dir_util import copy_tree
import shutil
# Used for pre-/post-processing.
import subprocess
... | PypiClean |
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v3_8_0/auth_privilege_broker.py | from ..broker import Broker
class AuthPrivilegeBroker(Broker):
controller = "auth_privileges"
def index(self, **kwargs):
"""Lists the available auth privileges. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the various ways to query lists, using this met... | PypiClean |
/echarts-china-counties-pypkg-0.0.2.tar.gz/echarts-china-counties-pypkg-0.0.2/echarts_china_counties_pypkg/resources/echarts-china-counties-js/2239791f59c98df5421aea4af70306b9.js | (function (root, factory) {if (typeof define === 'function' && define.amd) {define(['exports', 'echarts'], factory);} else if (typeof exports === 'object' && typeof exports.nodeName !== 'string') {factory(exports, require('echarts'));} else {factory({}, root.echarts);}}(this, function (exports, echarts) {var log = func... | PypiClean |
/taskcc-alipay-sdk-python-3.3.398.tar.gz/taskcc-alipay-sdk-python-3.3.398/alipay/aop/api/request/KoubeiMallScanpurchaseUserverifyVerifyRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.KoubeiMallScanpurchaseUserverifyVerifyModel import KoubeiMallScanpurchaseUserverifyVerifyModel
class KoubeiMallScanpurchaseUserverifyVerifyRequest(object):
def __init__(self... | PypiClean |
/pygac-fdr-0.2.2.tar.gz/pygac-fdr-0.2.2/README.md | # pygac-fdr
Python package for creating a Fundamental Data Record (FDR) of AVHRR GAC data using pygac
[](https://github.com/pytroll/pygac-fdr/actions/workflows/ci.yaml)
[![Coverage](https://codecov.io/gh/pytroll/pygac-fdr/branch/main/gr... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.