id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/gaohn-common-utils-0.0.112.tar.gz/gaohn-common-utils-0.0.112/common_utils/core/decorators/decorators.py | import functools
import os
import threading
import time
from datetime import datetime
from typing import Any, Callable, Dict, TypeVar
import numpy as np
import psutil
from fastapi import Request
from prettytable import PrettyTable
from rich.pretty import pprint
# callable that takes any number of arguments and retur... | PypiClean |
/ArkPrice-0.1.1.tar.gz/ArkPrice-0.1.1/README.md | [](https://travis-ci.org/Highjhacker/arkprice)
[](http://hits.dwyl.io/Highjhacker/priceark) [](https://opensource.org/... | PypiClean |
/nebula2-python-2.6.1.tar.gz/nebula2-python-2.6.1/README.md | # nebula-python
This directory holds the Python API for Nebula Graph. It is used to connect with Nebula Graph 2.0.
## Before you start
Before you start, please read this section to choose the right branch for you. In branch v1.0, the API works only for Nebula Graph 1.0. In the master branch, the API works only for N... | PypiClean |
/jintian-architecture-code-test-1.2.tar.gz/jintian-architecture-code-test-1.2/com/fw/base/base_dao.py | from com.fw.utils.id_util import IDUtils
from com.fw.base.base_exception import BaseException
import inspect
'''
主要是做dao数据库低层封装
1:get set str
2:字段反射
3:常用属性
'''
class BaseDao(object):
table_name = None
service_name = None
def __init__(self, id=None):
if not id:
id = IDUtils.get_primar... | PypiClean |
/confine-controller-1.0.2.tar.gz/confine-controller-1.0.2/controller/management/commands/upgradecontroller.py | import functools
import os
import random
import string
from optparse import make_option
from django.core.management import call_command
from django.core.management.base import BaseCommand, CommandError
from controller import get_version
from controller.utils import decode_version
from controller.utils import get_exis... | PypiClean |
/breakpoint-2.1.4.tar.gz/breakpoint-2.1.4/.lib/setuptools/command/install_egg_info.py | from distutils import log, dir_util
import os
from setuptools import Command
from setuptools.archive_util import unpack_archive
import pkg_resources
class install_egg_info(Command):
"""Install an .egg-info directory for the package"""
description = "Install an .egg-info directory for the package"
user_... | PypiClean |
/lianai-kouyu-2022.10.11.0.tar.gz/lianai-kouyu-2022.10.11.0/LianaiKouyu/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 |
/streamlit_icon_component-0.0.2.tar.gz/streamlit_icon_component-0.0.2/streamlit_icon_component/__init__.py | import os
import streamlit.components.v1 as components
# Create a _RELEASE constant. We'll set this to False while we're developing
# the component, and True when we're ready to package and distribute it.
# (This is, of course, optional - there are innumerable ways to manage your
# release process.)
_RELEASE = True
#... | PypiClean |
/azure_functions_worker-1.1.9-py3-none-any.whl/azure_functions_worker/protos/FunctionRpc_pb2_grpc.py | """Client and server classes corresponding to protobuf-defined services."""
import grpc
from azure_functions_worker.protos import FunctionRpc_pb2 as FunctionRpc__pb2
class FunctionRpcStub(object):
"""Interface exported by the server.
"""
def __init__(self, channel):
"""Constructor.
Args... | PypiClean |
/xdis-5.0.12.tar.gz/xdis-5.0.12/pytest/stackeffect/se25.py |
[
-100, # 0
-1, # 1,
0, # 2,
0, # 3,
1, # 4,
0, # 5,
-100, # 6
-100, # 7
-100, # 8
-100, # 9
0, # 10,
0, # 11,
0, # 12,
0, # 13,
-100, # 14
0, # 15,
-100, # 16
-100, # 17
-2, # 18,
-1, # 19,
-1, # 20,
-1, # 21,
-1, # 22,
-1, # 23,... | PypiClean |
/askbot-tuan-1.5.tar.gz/askbot-tuan-1.5/askbot/setup_templates/static/default/media/js/tinymce/plugins/template/editor_plugin_src.js | (function() {
var each = tinymce.each;
tinymce.create('tinymce.plugins.TemplatePlugin', {
init : function(ed, url) {
var t = this;
t.editor = ed;
// Register commands
ed.addCommand('mceTemplate', function(ui) {
ed.windowManager.open({
file : url + '/template.htm',
width : ed.getParam('t... | PypiClean |
/py_bigdata_util-0.1.0-py3-none-any.whl/bigdata_util/util/base_config.py |
from . import get_logger
from pyhocon import ConfigFactory, HOCONConverter, ConfigTree
import os
from configobj import ConfigObj
import pydash
logger = get_logger(__file__)
class BaseConfig(object):
_config = None
_needed_config_attr = []
_config_file_path = 'config.conf'
def get(self, name, defau... | PypiClean |
/avirtech_report_metashape_2-0.0.9-py3-none-any.whl/process_foto/process_foto.py | import os
import csv
import shutil
class process_foto:
"""
This is a function to generating 9 photos per each folder, please pass the params to process the function"""
def __init__(self, location,chunk_shape_dictionary):
self.location = location
self.chunk_shape_dictionary = chunk_shape_dic... | PypiClean |
/kraken-core-0.3.6.tar.gz/kraken-core-0.3.6/src/kraken/core/utils.py | from __future__ import annotations
import contextlib
import enum
import importlib
import os
import shutil
import sys
import tempfile
from pathlib import Path
from typing import IO, AnyStr, BinaryIO, ContextManager, Iterable, Iterator, TextIO, TypeVar, overload
from typing_extensions import Literal
T = TypeVar("T")
... | PypiClean |
/Editra-0.7.20.tar.gz/Editra-0.7.20/src/syntax/_masm.py | __author__ = "Cody Precord <cprecord@editra.org>"
__svnid__ = "$Id: _masm.py 68798 2011-08-20 17:17:05Z CJP $"
__revision__ = "$Revision: 68798 $"
#-----------------------------------------------------------------------------#
# Imports
import wx.stc as stc
# Local Imports
import syndata
#---------------------------... | PypiClean |
/diffpy.pdfgui-2.0.0.tar.gz/diffpy.pdfgui-2.0.0/src/diffpy/pdfgui/doc/manual/extractEquations.py | # constants
rc = {
'directory' : 'images', # output directory
'resolution' : 72, # equation images resolution
'eqns' : [], # list of raw equation codes
'tmpdir' : None, # temporary directory
}
eqlatex = r"""
\documentclass{article}
\usepackage{exs... | PypiClean |
/django-flower-1.0.0.tar.gz/django-flower-1.0.0/flower/views/tasks.py | from __future__ import absolute_import
import copy
import logging
from functools import total_ordering
from flower.utils import login_required_admin
from django.utils.decorators import method_decorator
from flower.exceptions import HTTPError
try:
from itertools import imap
except ImportError:
imap = map
fr... | PypiClean |
/MetaGram-2.0.2.tar.gz/MetaGram-2.0.2/pyrogram/types/bots_and_keyboards/login_url.py |
from pyrogram import raw
from ..object import Object
class LoginUrl(Object):
"""Represents a parameter of the inline keyboard button used to automatically authorize a user.
Serves as a great replacement for the Telegram Login Widget when the user is coming from Telegram.
All the user needs to do is tap... | PypiClean |
/ka-lite-0.17.6b4.tar.gz/ka-lite-0.17.6b4/kalite/distributed/static/js/distributed/perseus/ke/local-only/localeplanet/icu.zh-MO.js | (function() {
var dfs = {"am_pm":["上午","下午"],"day_name":["星期日","星期一","星期二","星期三","星期四","星期五","星期六"],"day_short":["週日","週一","週二","週三","週四","週五","週六"],"era":["西元前","西元"],"era_name":["西元前","西元"],"month_name":["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],"month_short":["1月","2月","3月","4月","5月","6月","7月... | PypiClean |
/fds.sdk.ExchangeDataFeedSnapshotAPIEntireExchange-0.21.7-py3-none-any.whl/fds/sdk/ExchangeDataFeedSnapshotAPIEntireExchange/model_utils.py | from datetime import date, datetime # noqa: F401
from copy import deepcopy
import inspect
import io
import os
import pprint
import re
import tempfile
from dateutil.parser import parse
from fds.sdk.ExchangeDataFeedSnapshotAPIEntireExchange.exceptions import (
ApiKeyError,
ApiAttributeError,
ApiTypeError,
... | PypiClean |
/ucam-identitylib-2.0.2.tar.gz/ucam-identitylib-2.0.2/identitylib/photo_client/model/photo_identifier.py | import re # noqa: F401
import sys # noqa: F401
from identitylib.photo_client.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... | PypiClean |
/onium-0.9.2.tar.gz/onium-0.9.2/README.md | Onium - Inject hebrew support into slack desktop app
=====================================================
Onium is a small utility to inject Hebrew support (automatic RTL) into Slack's desktop app.
Onium does this by modifying Slack's app.asar (Slack application code) and changes the Slack app itself.
What is Oniu... | PypiClean |
/kundajelab_shap-1-pp37-pypy37_pp73-manylinux_2_12_x86_64.manylinux2010_x86_64.manylinux_2_28_x86_64.whl/shap/benchmark/plots.py | import numpy as np
from .experiments import run_experiments
from ..plots import colors
from .. import __version__
from . import models
from . import methods
from . import metrics
import sklearn
import io
import base64
import os
try:
import matplotlib.pyplot as pl
import matplotlib
except ImportError:
pass
... | PypiClean |
/TurboMail-3.0.3.tar.gz/TurboMail-3.0.3/turbomail/api.py | import logging
import warnings
from turbomail.control import interface
from turbomail.exceptions import ManagerException
__all__ = ['Extension', 'TransportFactory', 'Transport', 'Manager']
class Extension(object):
"""Basic extension API that allows for startup and shutdown hooks."""
def __init__(self... | PypiClean |
/pyDHL-0.3.tar.gz/pyDHL-0.3/README.md | pyDHL
===
Python module to work with DHL REST Webservice integration.
## pyDHL as module
```
import pyDHL
```
By running it as a module pyDHL will expose the following resources.
### Package
Inputs:
* `weight` (Mandatory): Package weight
* `length` (Mandatory): Package length
* `width` (Mandatory): Package width
*... | PypiClean |
/aspose-words-cloud-23.7.0.tar.gz/aspose-words-cloud-23.7.0/asposewordscloud/models/requests/update_comment_online_request.py | import json
from six.moves.urllib.parse import quote
from asposewordscloud import *
from asposewordscloud.models import *
from asposewordscloud.models.requests import *
from asposewordscloud.models.responses import *
class UpdateCommentOnlineRequest(BaseRequestObject):
"""
Request model for update_comment_onl... | PypiClean |
/PDFSegmenter-0.1.tar.gz/PDFSegmenter-0.1/README.rst |
This library builds a graph-representation of the content of PDFs. The graph is then clustered, resulting page segments are classified and returned. Tables are retrieved formatted in a CSV-style.
How-to
========
* Pass the path of the PDF file (as a string) which is wanted to be converted to ``PDFSegmenter``.
* Cal... | PypiClean |
/global-workqueue-2.2.4rc2.tar.gz/global-workqueue-2.2.4rc2/src/python/WMCore/WMFactory.py | from builtins import object
import threading
class WMFactory(object):
"""
A factory Class that is 'not thread safe' but is intended to work in
threads (no sharing). The class dynamically loads objects from files
when needed and caches them.
"""
def __init__(self, name, namespace=''):
... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/latest/virtual_network_tap.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
from ._enums import *
from ._inputs import *
__all__ = ['VirtualNetworkTap']
warnings.warn("""The 'latest' version is deprecated. Please migrate to ... | PypiClean |
/howso_engine-1.0.111-py3-none-any.whl/howso/community/client.py | from concurrent.futures import ThreadPoolExecutor, Future
from contextlib import contextmanager
import json
import logging
from typing import Union
from packaging.version import parse as parse_version
import certifi
from howso.direct import HowsoDirectClient
from howso.community import __version__ as community_version... | PypiClean |
/networks/feature_extraction_model.py | import logging
import os
import random
import zipfile
from glob import glob
from pathlib import Path
from typing import Dict, List, Tuple
import numpy as np
import torch
import torch.nn as nn
from tqdm import tqdm
from ..utils.im import IM_EXTENSIONS, ResizeDataset, denormalise_tensors
from ..utils.settings import Ex... | PypiClean |
/Django_patch-2.2.19-py3-none-any.whl/django/contrib/gis/forms/widgets.py | import logging
from django.conf import settings
from django.contrib.gis import gdal
from django.contrib.gis.geometry import json_regex
from django.contrib.gis.geos import GEOSException, GEOSGeometry
from django.forms.widgets import Widget
from django.utils import translation
logger = logging.getLogger('django.contrib... | PypiClean |
/zhaohuan-yuzhou-nengliangde-xingyun-zhenglishu-2022.10.7.1.tar.gz/zhaohuan-yuzhou-nengliangde-xingyun-zhenglishu-2022.10.7.1/ZhaohuanYuzhouNengliangdeXingyunZhenglishu/README.md | # 召唤宇宙能量的幸运整理术
## 下载
### Docker
```
docker pull apachecn0/zhaohuan-yuzhou-nengliangde-xingyun-zhenglishu
docker run -tid -p <port>:80 apachecn0/zhaohuan-yuzhou-nengliangde-xingyun-zhenglishu
# 访问 http://localhost:{port} 查看文档
```
### PYPI
```
pip install zhaohuan-yuzhou-nengliangde-xingyun-zhenglishu
zhaohuan-yuzho... | PypiClean |
/tensorflow_intel-2.14.0rc0-cp39-cp39-win_amd64.whl/tensorflow/_api/v2/__internal__/distribute/combinations/__init__.py | import sys as _sys
from tensorflow.python.distribute.combinations import env
from tensorflow.python.distribute.combinations import generate
from tensorflow.python.distribute.combinations import in_main_process
from tensorflow.python.distribute.strategy_combinations import central_storage_strategy_with_gpu_and_cpu
from... | PypiClean |
/tzcelery-3.1.27.tar.gz/tzcelery-3.1.27/docs/userguide/canvas.rst | .. _guide-canvas:
=============================
Canvas: Designing Workflows
=============================
.. contents::
:local:
:depth: 2
.. _canvas-subtasks:
.. _canvas-signatures:
Signatures
==========
.. versionadded:: 2.0
You just learned how to call a task using the tasks ``delay`` method
in the :r... | PypiClean |
/cgse-2023.35.0.tar.gz/cgse-2023.35.0/src/egse/coordinates/pyplot.py | import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D # needed for 3d projection
import numpy as np
import egse
from egse.coordinates.referenceFrame import ReferenceFrame
from egse.coordinates.point import Point, Points
def plot_reference_frame(frame, master=None, figname=None, **kwargs):
"""Pl... | PypiClean |
/gpipe-0.0.13.tar.gz/gpipe-0.0.13/examples/resequencing/workflow/00-reference.workflow.py |
import os
import sys
from gpipe.dsl import *
# ================================================================================
#
# ================================================================================
reference = import_relative_file('./libs/reference.py')
common = import_relative_file('./common.py')
... | PypiClean |
/simiki-1.6.2.3.tar.gz/simiki-1.6.2.3/README.md | # Simiki #
[](https://pypi.python.org/pypi/simiki)
[](https://github.com/tankywoo/simiki/blob/master/LICENSE)
[](https://travis-ci.or... | PypiClean |
/lavue-2.83.4.tar.gz/lavue-2.83.4/lavuelib/takeMotorsDialog.py | from .qtuic import uic
from pyqtgraph import QtCore
import os
try:
from pyqtgraph import QtWidgets
except Exception:
from pyqtgraph import QtGui as QtWidgets
try:
try:
import tango
except ImportError:
import PyTango as tango
#: (:obj:`bool`) tango imported
TANGO = True
except I... | PypiClean |
/NJS-0.0.5.2-py3-none-any.whl/njsCore/Color/ColorUtility.py | import math
def lab2rgb(L, A, B):
y = (L + 16) / 116
x = A / 500 + y
z = y - B / 200
r = 0; g = 0; b = 0
if x * x * x > 0.008856:
x = (x * x * x ) * 0.95047
else:
x = ((x - 16 / 116) / 7.787) * 0.95047
if y * y * y > 0.008856:
y = (y * y * y ) * 1.00000
els... | PypiClean |
/cioat-0.0.1.tar.gz/cioat-0.0.1/README.md | # cioat
The goal of this project is to visualize COVID-19's impact on airport traffic during Australia', 'Chile', 'Canada', 'United States of America (the).
Using a Geotab dataset, this dataset shows traffic to and from the Airport as a Percentage of the Traffic volume during the baseline period.
The dataset is dow... | PypiClean |
/tensorflow_datasets-4.9.2-py3-none-any.whl/tensorflow_datasets/core/split_builder.py | import collections.abc
import contextlib
import dataclasses
import functools
import itertools
import sys
import typing
from typing import Any, Callable, Dict, Iterable, Iterator, List, Optional, Tuple, Union
from absl import logging
import click
import psutil
from tensorflow_datasets.core import example_serializer
fro... | PypiClean |
/nameshark-vcard-1.0.0.tar.gz/nameshark-vcard-1.0.0/nameshark_vcard/nameshark_vcard.py | """Convert vCard-formatted string to the JSON format expected by Name Shark."""
# coding=utf-8
import base64
import json
import collections
import argparse
import vobject
NAMES = collections.namedtuple('Names', ['first_name', 'surname'])
def get_pp_names(fn_field):
"""
Use probablepeople to extract firstn... | PypiClean |
/trytond_analytic_budget-6.8.0.tar.gz/trytond_analytic_budget-6.8.0/doc/usage.rst | *****
Usage
*****
.. Setting analytic budgets:
Setting analytic budgets
========================
New `Analytic Budgets <model-analytic_account.budget>` can easily be created,
and existing budgets updated, by changing the budgets that are found in the
[:menuselection:`Financial --> Budgets --> Analytic Budgets`] main... | PypiClean |
/phishing-tracker-0.0.7.tar.gz/phishing-tracker-0.0.7/README.md | # Phishing Tracker
[](https://pypi.python.org/pypi/phishing-tracker/)
[](https://github.com/ndejong/phishing-tracker/)
[
logger = logging.getLogger("mate")
db = DatabasePro... | PypiClean |
/ethtools-py-evm-0.7.0a3.tar.gz/ethtools-py-evm-0.7.0a3/eth/consensus/clique/encoding.py | from typing import (
Tuple,
)
from eth_typing import (
Address,
)
import rlp
from eth.consensus.clique.datatypes import (
Snapshot,
Tally,
Vote,
VoteAction,
)
from eth.rlp.sedes import (
uint256,
)
ADDRESS_TALLY_SEDES = rlp.sedes.List((rlp.sedes.binary, rlp.sedes.binary))
VOTE_SEDES = rlp... | PypiClean |
/askbot-tuan-1.5.tar.gz/askbot-tuan-1.5/askbot/setup_templates/static/tiny_mce/langs/ia.js | tinyMCE.addI18n({ia:{common:{"more_colors":"\u66f4\u591a\u989c\u8272","invalid_data":"\u9519\u8bef\uff1a\u8f93\u5165\u4e86\u65e0\u6548\u7684\u503c\uff0c\u5df2\u6807\u8bb0\u4e3a\u7ea2\u8272\u3002","popup_blocked":"\u5bf9\u4e0d\u8d77\uff0c\u60a8\u7684\u5feb\u663e\u7a97\u53e3\u963b\u6b62\u7a0b\u5e8f\u5df2\u7ecf\u963b\u6b6... | PypiClean |
/insight2-0.1.36.tar.gz/insight2-0.1.36/magetool/SystemMsgTool.py |
import os, sys
import time
import platform
import zlib
#http://www.cnblogs.com/freeliver54/archive/2008/04/08/1142356.html
#http://blog.csdn.net/xtx1990/article/details/7288903
class SystemMsgObj(object):
"""docstring for SystemMsgObj"""
def __init__(self):
super(SystemMsgObj, self).__init__()
... | PypiClean |
/pycalib_simple-2022.12.14.3-py3-none-any.whl/pycalib/calib.py | import numpy as np
import cv2
import pycalib
from pycalib.util import transpose_to_col
from skimage.transform import SimilarityTransform, EuclideanTransform
def undistort_points(pt2d, cameraMatrix, distCoeffs):
return cv2.undistortPoints(pt2d, cameraMatrix, distCoeffs, P=cameraMatrix)
def distort_points(pt2d, ca... | PypiClean |
/jax-moseq-0.1.0.tar.gz/jax-moseq-0.1.0/jax_moseq/models/keypoint_slds/gibbs.py | import jax
import jax.numpy as jnp
import jax.random as jr
from functools import partial
from jax_moseq.utils.kalman import kalman_sample
from jax_moseq.utils.distributions import sample_vonmises_fisher
from jax_moseq.models import arhmm, slds
from jax_moseq.models.keypoint_slds.alignment import (
to_vanilla_slds... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/react-dev-utils/node_modules/inquirer/lib/prompts/password.js | 'use strict';
/**
* `password` type prompt
*/
var chalk = require('chalk');
var { map, takeUntil } = require('rxjs/operators');
var Base = require('./base');
var observe = require('../utils/events');
function mask(input, maskChar) {
input = String(input);
maskChar = typeof maskChar === 'string' ? maskChar : '*'... | PypiClean |
/wayback-0.4.2.tar.gz/wayback-0.4.2/CONTRIBUTING.rst | ============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every
little bit helps, and credit will always be given.
Before contributing, please be sure to take a look at our
`code of conduct <https://github.com/edgi-govdata-archiving/overview/blob/main/CONDUCT.md>`_.
You can ... | PypiClean |
/pyqode3_core-4.0.1-py3-none-any.whl/pyqode/core/modes/backspace.py | from qtpy.QtCore import Qt
from pyqode.core.api import Mode
class SmartBackSpaceMode(Mode):
"""Improves backspace and delete behaviour. The exact behavior is intended
to be as intuitive as possible, but is quite complex and described in more
detail in the functions below.
"""
def on_state_cha... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/network/latest/get_private_link_service_private_endpoint_connection.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'GetPrivateLinkServicePrivateEndpointConnectionResult',
'AwaitableGetPrivateLinkServicePrivateEndpointConnectionResult',
'get... | PypiClean |
/fmu_tools-1.12.1.tar.gz/fmu_tools-1.12.1/src/fmu/tools/qcproperties/qcproperties.py | from pathlib import Path
from typing import Any, Optional
import pandas as pd
import yaml
from fmu.tools._common import _QCCommon
from fmu.tools.qcdata import QCData
from fmu.tools.qcproperties._aggregate_df import PropertyAggregation
from fmu.tools.qcproperties._grid2df import GridProps2df
from fmu.tools.qcpropertie... | PypiClean |
/dmb-cli-3.1.10.tar.gz/dmb-cli-3.1.10/cli/compiler.py | import hashlib
import re
from lxml import etree
import json
from base64 import b64encode, b64decode
import xml2tree
from common import RawInput, MetaInfo, CompileResult
from debug_bridge import DebugBridge
import logging
import constant
# 需要在XML格式验证前,以字符串格式对一些特殊的字符进行替换,这样最终的xml验证能通过,然后转成的json也没问题
MAGIC_URL = {
'... | PypiClean |
/sycc-0.8.5.tar.gz/sycc-0.8.5/sycc_/pip/_vendor/html5lib/_ihatexml.py | from __future__ import absolute_import, division, unicode_literals
import re
import warnings
from .constants import DataLossWarning
baseChar = """
[#x0041-#x005A] | [#x0061-#x007A] | [#x00C0-#x00D6] | [#x00D8-#x00F6] |
[#x00F8-#x00FF] | [#x0100-#x0131] | [#x0134-#x013E] | [#x0141-#x0148] |
[#x014A-#x017E] | [#x0180-... | PypiClean |
/upf_to_json-0.9.5.tar.gz/upf_to_json-0.9.5/README.md | # UPF to JSON converter
UPF is a file format to describe atomic pseudo-potentials used by (DFT) density
functional theory codes. This package provides scripts for converting UPF v1 and
UPF v2 (Unified Pseudopotential Format) to json format as required by the SIRIUS
DFT library [SIRIUS github](https://github.com/electr... | PypiClean |
/SALTISE_course_flow-0.8.9.tar.gz/SALTISE_course_flow-0.8.9/course_flow/static/course_flow/js/ExportMenu.js | import * as Redux from "redux";
import * as React from "react";
import * as reactDom from "react-dom";
import {setUserPermission,getUsersForObject,getUserList} from "./PostFunctions";
import {Loader} from "./Constants";
export class ExportMenu extends React.Component{
constructor(props){
super(props);
... | PypiClean |
/lemon-tinymce-2.1.1.tar.gz/lemon-tinymce-2.1.1/tinymce/static/tinymce/js/utils/mctabs.js | function MCTabs() {
this.settings = [];
this.onChange = tinyMCEPopup.editor.windowManager.createInstance('tinymce.util.Dispatcher');
};
MCTabs.prototype.init = function(settings) {
this.settings = settings;
};
MCTabs.prototype.getParam = function(name, default_value) {
var value = null;
value = (typeof(this.set... | PypiClean |
/pyappnvn-0.0.4.tar.gz/pyappnvn-0.0.4/appnvn/balstock/guibls.py | import tkinter as tk
from tkinter import *
from tkinter import ttk
from tkinter import filedialog
from pynvn.csv.rcsv import rcsv
from pynvn.csv.tocsv import wrcsv
from pathlib import Path
from pynvn.path.ppath import (getpathfromtk,
PathSteel,
ExtractFil... | PypiClean |
/pexpect-py3-patch-4.6.0.tar.gz/pexpect-py3-patch-4.6.0/doc/install.rst | Installation
============
Pexpect is on PyPI, and can be installed with standard tools::
pip install pexpect
Or::
easy_install pexpect
Requirements
------------
This version of Pexpect requires Python 3.3 or above, or Python 2.7.
As of version 4.0, Pexpect can be used on Windows and POSIX systems. Howeve... | PypiClean |
/apexxapi-1.0.5.tar.gz/apexxapi-1.0.5/README.md | This is a simple library of wrapper functions for accessing the most common Apex API 2.0
requests.
The included functions are createCardTransaction, captureCardTransaction, refundCardTransaction, cancelCardTransaction and hostedPaymentPage. Each of
These functions is associated with an API request of the same name. The... | PypiClean |
/torchal-0.0.2-py3-none-any.whl/al_utils/ActiveLearning.py | import numpy as np
import torch
from .Sampling import Sampling, CoreSetMIPSampling
import pycls.utils.logging as lu
import os
logger = lu.get_logger(__name__)
class ActiveLearning:
"""
Implements standard active learning methods.
"""
def __init__(self, dataObj, cfg):
self.dataObj = dataObj
... | PypiClean |
/airgen-0.0.1-py3-none-any.whl/third_party/msgpackrpc/tornado/platform/twisted.py | from __future__ import absolute_import, division, print_function
import datetime
import functools
import numbers
import socket
import sys
import twisted.internet.abstract # type: ignore
from twisted.internet.defer import Deferred # type: ignore
from twisted.internet.posixbase import PosixReactorBase # type: ignore... | PypiClean |
/alipay-sdk-python-pycryptodome-3.3.202.tar.gz/alipay-sdk-python-pycryptodome-3.3.202/alipay/aop/api/request/AlipayEcoRenthouseRoomStateSyncRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayEcoRenthouseRoomStateSyncModel import AlipayEcoRenthouseRoomStateSyncModel
class AlipayEcoRenthouseRoomStateSyncRequest(object):
def __init__(self, biz_model=None):
... | PypiClean |
/apache_superset_iteco-2.1.1.4-py3-none-any.whl/superset/dashboards/api.py | import functools
import json
import logging
from datetime import datetime
from io import BytesIO
from typing import Any, Callable, cast, Optional
from zipfile import is_zipfile, ZipFile
from flask import make_response, redirect, request, Response, send_file, url_for
from flask_appbuilder import permission_name
from fl... | PypiClean |
/tvb-rest-client-2.8.1.tar.gz/tvb-rest-client-2.8.1/tvb/core/services/operation_service.py | import json
import os
import sys
import uuid
import zipfile
from inspect import isclass
from tvb.basic.exceptions import TVBException
from tvb.basic.logger.builder import get_logger
from tvb.basic.profile import TvbProfile
from tvb.config import MEASURE_METRICS_MODULE, MEASURE_METRICS_CLASS, MEASURE_METRICS_MODEL_CLAS... | PypiClean |
/Telethon-v1.24-1.24.8.tar.gz/Telethon-v1.24-1.24.8/telethon/tl/functions/langpack.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
class GetDifferenceRequest(TLRequest):
CONSTRUCTOR_ID = 0xcd984aa5
SUBCLASS_OF_ID = 0x52662d55
def __init__(self, lang_pac... | PypiClean |
/cs46_laky_trees-1.0.0.tar.gz/cs46_laky_trees-1.0.0/Trees/Heap.py | from Trees.BinaryTree import BinaryTree, Node
class Heap(BinaryTree):
'''
FIXME:
Heap is currently not a subclass of BinaryTree.
You should make the necessary changes in the class declaration line above
and in the constructor below.
'''
def __init__(self, xs=None):
'''
FIXM... | PypiClean |
/sleipnir.transport-0.1.0.tar.gz/sleipnir.transport-0.1.0/src/sleipnir/transport/adapters/pyside.py | from __future__ import absolute_import
__author__ = "Carlos Martin <cmartin@liberalia.net>"
__license__ = "See LICENSE file for details"
# Import here any required modules.
from itertools import ifilter
__all__ = ['PySideReconnectionStrategy', 'PySideConnection']
# Pyside requirements
from PySide.QtCore import QOb... | PypiClean |
/snapper-ont-0.4.5.tar.gz/snapper-ont-0.4.5/snapper/src/methods.py | import numpy as np
from itertools import combinations, product
import re
from snapper.src.seq_processing import gen_variants, letter_codes_rev, letter_anticodes
from scipy.stats import chi2_contingency, mode
from tqdm import tqdm
from multiprocessing import Process, Manager
regular_letters = ['A','G','C','T']
non_... | PypiClean |
/etna_ts-1.3.1-py3-none-any.whl/etna/transforms/change_points_trend.py | from copy import deepcopy
from typing import Dict
from typing import List
from typing import Optional
from typing import Tuple
from typing import Type
import numpy as np
import pandas as pd
from ruptures.base import BaseEstimator
from ruptures.costs import CostLinear
from sklearn.base import RegressorMixin
from etna.... | PypiClean |
/MyClickUp-0.1.5.tar.gz/MyClickUp-0.1.5/README.md | =================
MyClickUp
=================
2022/january/1 - Jose Cordeiro
The MyClickUp class allows you to encapsulate the integration with the ClickUp API.
To connect:
myClickUp = MyClickUp(token="18942493_f3779a347ec29bbd3f5e9d9c9e151bfc63462695")
**getTeam()**: Returns a dict with the data of users reg... | PypiClean |
/zhihu_oauth-0.0.42.tar.gz/zhihu_oauth-0.0.42/docs/for-user/search.rst | Search - 搜索
-------------
知乎的搜索功能通过 :any:`ZhihuClient.search` 方法提供。
目前知乎提供了 6 个搜索方式, :any:`SearchType` 枚举常量表示这六种方式,作为参数传递给 :any:`ZhihuClient.search` 方法。
方式与枚举常量对应关系如下:
.. automodule:: zhihu_oauth.zhcls.search
:members: SearchType
搜索的常见用法:
.. code-block:: Python
client.search('程序', SearchType.COLUMN)
... | PypiClean |
/eyepie-0.11.3.tar.gz/eyepie-0.11.3/src/eyepy/core/utils.py | from __future__ import annotations
import numpy as np
import numpy.typing as npt
from skimage.util import img_as_float32
from skimage.util import img_as_ubyte
from eyepy.core.filter import filter_by_height_enface
from .annotations import EyeVolumeLayerAnnotation
NDArrayFloat = npt.NDArray[np.float_]
NDArrayBool = n... | PypiClean |
/Aries-storage-0.1.330.tar.gz/Aries-storage-0.1.330/Aries/storage/cloud.py | import os
import datetime
import logging
import threading
from io import FileIO
from abc import ABC
from .base import StorageObject, StoragePrefixBase, StorageIOSeekable
logger = logging.getLogger(__name__)
class BucketStorageObject(StorageObject):
"""Represents a cloud storage object associated with a bucket.
... | PypiClean |
/trixie-0.1.2.tar.gz/trixie-0.1.2/homeassistant/components/media_player/openhome.py | import logging
from homeassistant.components.media_player import (
SUPPORT_NEXT_TRACK, SUPPORT_PAUSE, SUPPORT_PREVIOUS_TRACK, SUPPORT_TURN_ON,
SUPPORT_TURN_OFF, SUPPORT_VOLUME_SET, SUPPORT_VOLUME_MUTE,
SUPPORT_VOLUME_STEP, SUPPORT_STOP, SUPPORT_PLAY, SUPPORT_SELECT_SOURCE,
MediaPlayerDevice)
from homea... | PypiClean |
/fake-bge-module-latest-20230415.tar.gz/fake-bge-module-latest-20230415/gpu/state.py | import sys
import typing
def blend_get():
''' Current blending equation.
'''
pass
def blend_set(mode: str):
''' Defines the fixed pipeline blending equation.
:param mode: The type of blend mode. * NONE No blending. * ALPHA The original color channels are interpolated according to the alpha va... | PypiClean |
/rlane_libcurses-1.0.5-py3-none-any.whl/libcurses/mouseevent.py |
import copy
import curses
class MouseEvent:
"""Something done by a mouse; results of `curses.getmouse()`."""
# pylint: disable=too-many-instance-attributes
_last_mouse = None
def __init__(self):
"""Initialize `MouseEvent` with current mouse info."""
# https://docs.python.org/3/libr... | PypiClean |
/zencore-etcd3-0.12.0.20220817.tar.gz/zencore-etcd3-0.12.0.20220817/etcd3/transactions.py | import etcd3.etcdrpc as etcdrpc
import etcd3.utils as utils
_OPERATORS = {
etcdrpc.Compare.EQUAL: "==",
etcdrpc.Compare.NOT_EQUAL: "!=",
etcdrpc.Compare.LESS: "<",
etcdrpc.Compare.GREATER: ">"
}
class BaseCompare(object):
def __init__(self, key, range_end=None):
self.key = key
sel... | PypiClean |
/collective.mathjax-1.1.1.tar.gz/collective.mathjax-1.1.1/collective/mathjax/resources/MathJax/jax/input/MathML/entities/r.js | (function(a){MathJax.Hub.Insert(a.Parse.Entity,{RBarr:"\u2910",REG:"\u00AE",Racute:"\u0154",Rang:"\u27EB",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",ReverseElement:"\u220B",ReverseUpEquilibrium:"\u296F",Rho:"\u03A1",RightArrowBar:"\u21E5",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDo... | PypiClean |
/m2bk-0.4.0.tar.gz/m2bk-0.4.0/README.rst | m2bk
====
.. image:: https://travis-ci.org/axltxl/m2bk.svg?branch=develop
:target: https://travis-ci.org/axltxl/m2bk
.. image:: https://badge.fury.io/py/m2bk.svg
:target: http://badge.fury.io/py/m2bk
.. image:: https://img.shields.io/gratipay/axltxl.svg
:target: https://gratipay.com/axltxl
Send your mongodump... | PypiClean |
/ob_dj_factorial-0.0.2-py3-none-any.whl/ob_dj_factorial/core/factorial/views.py | import logging
import requests
from celery import current_app
from django.conf import settings
from django.contrib.sites.models import Site
from django.http import Http404, HttpRequest, HttpResponse
from django.shortcuts import redirect
from django.urls import reverse
from django.views import View
from ob_dj_factoria... | PypiClean |
/mmcif-0.69.tar.gz/mmcif-0.69/modules/pybind11/docs/advanced/cast/stl.rst | STL containers
##############
Automatic conversion
====================
When including the additional header file :file:`pybind11/stl.h`, conversions
between ``std::vector<>``/``std::deque<>``/``std::list<>``/``std::array<>``/``std::valarray<>``,
``std::set<>``/``std::unordered_set<>``, and
``std::map<>``/``std::unor... | PypiClean |
/cloud_asset-0.0.4.9-py3-none-any.whl/asset/base.py |
# Copyright The Cloud Asset Authors.
# SPDX-License-Identifier: Apache-2.0
import abc
import copy
import logging
import datetime
from typing import List
from sqlalchemy import create_engine, Table, UniqueConstraint
from boto3 import Session
from aliyunsdkcore.client import AcsClient
from asset.asset_table import ... | PypiClean |
/sphinxcontrib-yamcs-1.2.8.tar.gz/sphinxcontrib-yamcs-1.2.8/README.rst | sphinxcontrib-yamcs
===================
This repository holds the sources for the PyPI package sphinxcontrib-yamcs. This package
includes a number of Sphinx directives and other extensions that are used during document
generation of multiple Yamcs projects.
To use this package, include the following in your Sphinx ``... | PypiClean |
/spotify-ripper-fix-2.11.tar.gz/spotify-ripper-fix-2.11/spotify_ripper/eventloop.py |
# From PySpotify's EventLoop
# https://github.com/mopidy/pyspotify/blob/v2.x/master/spotify/eventloop.py
from __future__ import unicode_literals
from colorama import Fore
import threading
try:
# Python 3
import queue
except ImportError:
# Python 2
import Queue as queue
import spotify
__all__ = [
... | PypiClean |
/ER-Evaluation-2.1.0.tar.gz/ER-Evaluation-2.1.0/er_evaluation/data_structures/_data_structures.py | import logging
import numpy as np
import pandas as pd
from igraph import Graph
def compress_memberships(*memberships):
"""
Compress membership vectors to int values, preserving index compatibility.
Args:
series (list): list of membership vectors (Series) to compress
Returns:
List of... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/azure/azcollection/plugins/modules/azure_rm_ddosprotectionplan_info.py |
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOCUMENTATION = '''
---
module: azure_rm_ddosprotectionplan_info
version_added: "1.7.0"
short_description: Get Azure DDoS protection plan
description:
- Get facts of Azure DDoS protection plan.
options:
resource_group:
... | PypiClean |
/the_census-2.1.2.tar.gz/the_census-2.1.2/the_census/_variables/search/service.py | from logging import Logger
import pandas as pd
from the_census._utils.log.factory import ILoggerFactory
from the_census._utils.timer import timer
from the_census._variables.models import GroupCode
from the_census._variables.repository.interface import IVariableRepository
from the_census._variables.search.interface im... | PypiClean |
/pyParticleEst-1.1.4.tar.gz/pyParticleEst-1.1.4/pyparticleest/smoother.py | import numpy
import copy
from builtins import range
from . import filter as pf
from .filter import ParticleApproximation, TrajectoryStep
def bsi_full(model, pa, ptraj, pind, future_trajs, find, ut, yt, tt, cur_ind):
"""
Perform backward simulation by drawing particles from
the categorical distribution wi... | PypiClean |
/django_kelove_admin-0.4.1-py3-none-any.whl/django_kelove_admin/static/kelove_admin/editor_md/lib/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 |
/cpp_version_2-0.0.1-py3-none-any.whl/courses/views.py | from itertools import chain
from django.contrib import messages
from django.contrib.auth.decorators import login_required
from django.http import HttpResponseRedirect
from django.shortcuts import render, get_object_or_404
from django.http import HttpResponse
from . import forms
from . import models
def course_list(... | PypiClean |
/pyobs_core-1.4.10-py3-none-any.whl/pyobs/modules/robotic/scheduler.py | import asyncio
import copy
import json
import logging
import multiprocessing as mp
from typing import Union, List, Tuple, Any, Optional, Dict
import astroplan
from astroplan import ObservingBlock
from astropy.time import TimeDelta
import astropy.units as u
from pyobs.events.taskfinished import TaskFinishedEvent
from p... | PypiClean |
/ntv-firmware-1.0.2.tar.gz/ntv-firmware-1.0.2/ntv_firmware/twisted.py | from __future__ import absolute_import
import sys
import serial
from serial.tools import list_ports
import glob
from time import sleep
from twisted.internet import reactor, defer
def locate_firmware(
baudrate = 57600,
firmware_id = None,
firmware_version = None,
firmware_uid = None,
outstream = sy... | PypiClean |
/RsCMPX_WlanMeas-4.0.150-py3-none-any.whl/RsCMPX_WlanMeas/Implementations/WlanMeas/MultiEval/TsMask/Mimo/Maximum.py | from typing import List
from ......Internal.Core import Core
from ......Internal.CommandsGroup import CommandsGroup
from ......Internal.Types import DataType
from ......Internal.StructBase import StructBase
from ......Internal.ArgStruct import ArgStruct
from ...... import enums
from ...... import repcap
# noinspecti... | PypiClean |
/groupdocs-merger-cloud-23.2.tar.gz/groupdocs-merger-cloud-23.2/groupdocs_merger_cloud/models/formats_result.py |
# -----------------------------------------------------------------------------------
# <copyright company="Aspose Pty Ltd" file="FormatsResult.py">
# Copyright (c) 2003-2023 Aspose Pty Ltd
# </copyright>
# <summary>
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.