id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/django_nats_nkeys-0.10.1-py3-none-any.whl/django_nats_nkeys/signals.py | from django.dispatch import receiver
from django.db.models.signals import m2m_changed, post_save
from .services import (
nsc_add_import,
nsc_bearer_auth_enable,
run_nsc_and_log_output,
save_describe_json,
nsc_jetstream_update,
)
from .models import NatsMessageExportType
from .settings import nats_n... | PypiClean |
/Netzob-2.0.0.tar.gz/Netzob-2.0.0/src/netzob/release.py |
#+---------------------------------------------------------------------------+
#| 01001110 01100101 01110100 01111010 01101111 01100010 |
#| |
#| Netzob : Inferring communication protocols |
#+-... | PypiClean |
/tw.dojo-0.9.181.tar.gz/tw.dojo-0.9.181/tw/dojo/static/1.8.1/min/dojox/layout/ScrollPane.js | require({cache:{"url:dojox/layout/resources/ScrollPane.html":"<div class=\"dojoxScrollWindow\" dojoAttachEvent=\"onmouseenter: _enter, onmouseleave: _leave\">\n <div class=\"dojoxScrollWrapper\" style=\"${style}\" dojoAttachPoint=\"wrapper\" dojoAttachEvent=\"onmousemove: _calc\">\n\t<div class=\"dojoxScrollPane\" d... | PypiClean |
/xnni-0.7.4-py3-none-manylinux1_x86_64.whl/xnni-0.7.4.data/data/nni/node_modules/moment/src/locale/fi.js |
import moment from '../moment';
var numbersPast = 'nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän'.split(' '),
numbersFuture = [
'nolla', 'yhden', 'kahden', 'kolmen', 'neljän', 'viiden', 'kuuden',
numbersPast[7], numbersPast[8], numbersPast[9]
];
function translate(numbe... | PypiClean |
/cx-pyqtgraph-0.12.1.tar.gz/cx-pyqtgraph-0.12.1/doc/extensions/qt_doc.py | def setup(app):
# probably we will be making a wrapper around autodoc
app.setup_extension('sphinx.ext.autodoc')
# would it be useful to define a new domain?
#app.add_domain(QtDomain)
## Add new configuration options
app.add_config_value('todo_include_todos', False, False)
## Node... | PypiClean |
/Trionyx-3.0.0.tar.gz/Trionyx-3.0.0/trionyx/trionyx/static/plugins/summernote/lang/summernote-uz-UZ.min.js | !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t();else if("function"==typeof define&&define.amd)define([],t);else{var r=t();for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(window,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[... | PypiClean |
/access_parser-0.0.5.tar.gz/access_parser-0.0.5/access_parser/parsing_primitives.py | from construct import *
def version_specific(version, v3_subcon, v4_subcon):
"""
There are some differences in the parsing structure between v3 and v4. Some fields are different length and some
exist only in one of the versions. this returns the relevant parsing structure by version
:param version: in... | PypiClean |
/satosacontrib.perun-4.1.0-py3-none-any.whl/satosacontrib/perun/micro_services/forward_authorization_params_microservice.py | import logging
from typing import Dict
from satosa.context import Context
from satosa.internal import InternalData
from satosa.micro_services.base import RequestMicroService
logger = logging.getLogger(__name__)
class ForwardAuthorizationParams(RequestMicroService):
"""
This Satosa microservice picks configu... | PypiClean |
/napari-spatialdata-0.2.6.tar.gz/napari-spatialdata-0.2.6/docs/contributing.md | # Contributing guide
Scanpy provides extensive [developer documentation][scanpy developer guide], most of which applies to this repo, too.
This document will not reproduce the entire content from there. Instead, it aims at summarizing the most important
information to get you started on contributing.
We assume that y... | PypiClean |
/fin_traffic_data-0.0.5.tar.gz/fin_traffic_data-0.0.5/README.rst | fin_traffic_data
================
Python package for:
1. fetching raw historical traffic data from
`Finnish Transport Infrastructure Agency <https://vayla.fi>`_,
2. aggregating said data,
3. building directional graph between provinces/ervas and mapping
the edges to the appropriate sections of the aggregated tr... | PypiClean |
/nova_powervm-9.0.0.0rc1.tar.gz/nova_powervm-9.0.0.0rc1/devstack/README.rst | ========================
Installing with DevStack
========================
What is DevStack?
--------------------------
DevStack is a script to quickly create an OpenStack development environment.
Find out more `here <https://docs.openstack.org/devstack/latest/>`_.
What are DevStack plugins?
----------------------... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/datashare/v20201001preview/get_share_subscription.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'GetShareSubscriptionResult',
'AwaitableGetShareSubscriptionResult',
'get_share_subscription',
]
@pulumi.output_type
class G... | PypiClean |
/dicodile-0.2.1.tar.gz/dicodile-0.2.1/examples/plot_mandrill.py |
import numpy as np
import matplotlib.pyplot as plt
from dicodile.data.images import fetch_mandrill
from dicodile.utils.dictionary import init_dictionary
from dicodile.utils.viz import display_dictionaries
from dicodile.utils.csc import reconstruct
from dicodile import dicodile
####################################... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/communications/online_meetings/item/attendance_reports/item/meeting_attendance_report_item_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 |
/flask_adminlte_full-0.2.0-py3-none-any.whl/flask_adminlte_full/static/plugins/daterangepicker/website/website.js | $(document).ready(function() {
$('#config-text').keyup(function() {
eval($(this).val());
});
$('.configurator input, .configurator select').change(function() {
updateConfig();
});
$('.demo i').click(function() {
$(this).parent().find('input').click();
});
$('#startD... | PypiClean |
/nsface_match_python-0.0.14-py3-none-any.whl/nsface_match/model/load_trt.py | import torch
import torch.nn as nn
import tensorrt as trt
import re
import sys
import numpy as np
def utils_flatten(inp):
if not isinstance(inp, (tuple, list)):
return [inp]
out = []
for sub_inp in inp:
out.extend(utils_flatten(sub_inp))
return out
def torch_dtype_from_trt(dtype):
... | PypiClean |
/azureml_core-1.53.0-py3-none-any.whl/azureml/_vendor/azure_storage/fileshare/_download.py |
import sys
import threading
import warnings
from io import BytesIO
from typing import Iterator
from azure.core.exceptions import HttpResponseError, ResourceModifiedError
from azure.core.tracing.common import with_current_context
from ._shared.request_handlers import validate_and_format_range_headers
from ._shared.res... | PypiClean |
/django-almastorage-0.4.1.tar.gz/django-almastorage-0.4.1/README.md | almastorage
========
Simple web-application used for accessing project with SwiftStack storage
Quick Install
-------------
1) Install almastorage:
pip install django-almastorage
2) Add 'almastorage' into your INSTALLED_APPS in project settings
3) Add fields into project settings infortation from your swiftst... | PypiClean |
/sui_brownie-10.5.0-py3-none-any.whl/sui_brownie/ed25519.py |
from __future__ import annotations
import base64
import hashlib
import hmac
from mnemonic import Mnemonic
from typing import List
from nacl.signing import SigningKey, VerifyKey
from .utils import get_bytes, padding_to_bytes
DEFAULT_ED25519_DERIVATION_PATH = "m/44'/784'/0'/0'/0'"
ED25519_SEED = b"ed25519 seed"
HA... | PypiClean |
/Bold-Falcon-0.0.1.tar.gz/Bold-Falcon-0.0.1/README.md | # 毕方云沙箱(恶意软件检测平台)
#### 开源资料
+ [cuckoo](https://github.com/cuckoosandbox/cuckoo) Cuckoo Sandbox is an automated dynamic malware analysis system
+ [cuckoo-modified](https://github.com/spender-sandbox/cuckoo-modified) Modified edition of cuckoo
+ [cuckooDroid](https://github.com/idanr1986/cuckoo-droid) CuckooDroid - Auto... | PypiClean |
/django_selectize-2.0-py3-none-any.whl/django_selectize/static/django_selectize/django_selectize.js | (function (factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory)
} else if (typeof module === 'object' && module.exports) {
module.exports = factory(require('jquery'))
} else {
// Browser globals
factory(jQuery || window.django.jQuery)
}
}(fun... | PypiClean |
/adafruit-circuitpython-hid-5.3.6.tar.gz/adafruit-circuitpython-hid-5.3.6/examples/hid_gamepad.py | import struct
import time
from adafruit_hid import find_device
class Gamepad:
"""Emulate a generic gamepad controller with 16 buttons,
numbered 1-16, and two joysticks, one controlling
``x` and ``y`` values, and the other controlling ``z`` and
``r_z`` (z rotation or ``Rz``) values.
The joystick ... | PypiClean |
/dotscanner-1.4.4.tar.gz/dotscanner-1.4.4/settings/configmanagement.py | import matplotlib.colors as colors
import traceback
from dotscanner import strings
from dotscanner.ui.DialogWindow import DialogWindow
def runChecks():
try:
scanConfigFileForErrors()
except Exception as exception:
print("\n", traceback.format_exc())
showStartupErrorDialog()
qu... | PypiClean |
/ztfy.myams-0.1.33.tar.gz/ztfy.myams-0.1.33/src/ztfy/myams/resources/js/ext/jquery-dataTables-keyTable.js | * @summary KeyTable
* @description Spreadsheet like keyboard navigation for DataTables
* @version 1.2.0
* @file dataTables.keyTable.js
* @author SpryMedia Ltd (www.sprymedia.co.uk)
* @contact www.sprymedia.co.uk/contact
* @copyright Copyright 2009-2014 SpryMedia Ltd.
*
* This source f... | PypiClean |
/passkit_python_grpc_sdk-1.1.72.2-py3-none-any.whl/io/core/a_rpc_images_pb2_grpc.py | """Client and server classes corresponding to protobuf-defined services."""
import grpc
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from io.common import common_objects_pb2 as io_dot_common_dot_common__objects__pb2
from io.common import filter_pb2 as io_dot_common_dot_filter__pb2
from i... | PypiClean |
/polytope_client-0.7.1-py3-none-any.whl/polytope/api/Admin.py |
import logging
import requests
from . import helpers
class Admin:
def __init__(self, config, auth, logger=None):
self.config = config
self.auth = auth
if logger:
self._logger = logger
else:
self._logger = logging.getLogger(__name__)
# GET /api/v1/use... | PypiClean |
/kg_detective-0.1.5-py3-none-any.whl/kg_detective/en/rules/adj_for_equal_comparisons.py | from spacy.matcher import DependencyMatcher
from kg_detective.lib import merge
def search_out(doc, nlp):
"""Search for adjective for equal comparisons
Args:
doc (spacy.tokens.Doc): doc to be analyzed
nlp (spacy.language.Language): context language
Returns:
list: list of spacy.tokens.Span
"""
r... | PypiClean |
/gc-boto-2.37.1.tar.gz/gc-boto-2.37.1/boto/s3/connection.py |
import xml.sax
import base64
from boto.compat import six, urllib
import time
from boto.auth import detect_potential_s3sigv4
import boto.utils
from boto.connection import AWSAuthConnection
from boto import handler
from boto.s3.bucket import Bucket
from boto.s3.key import Key
from boto.resultset import ResultSet
from b... | PypiClean |
/shapr_torch-0.0.1.tar.gz/shapr_torch-0.0.1/README.md | # SHAPR
<p align="center">
<img src="shapr_logo.png" width="200" />
</p>
Reconstructing 3D objects from 2D images is both challenging for our brains and machine learning algorithms. To support this spatial reasoning task, contextual information about the overall shape of an object is critical. However, such informatio... | PypiClean |
/crosswords-0.3.2.tar.gz/crosswords-0.3.2/README.rst | ==========
crosswords
==========
.. image:: https://img.shields.io/travis/bfontaine/crosswords.png
:target: https://travis-ci.org/bfontaine/crosswords
:alt: Build status
.. image:: https://img.shields.io/coveralls/bfontaine/crosswords/master.png
:target: https://coveralls.io/r/bfontaine/crosswords?branch=mas... | PypiClean |
/gmail_connector-0.9.1-py3-none-any.whl/gmailconnector/sms_deleter.py | import email
import imaplib
from concurrent.futures import ThreadPoolExecutor
from email.header import decode_header, make_header
from typing import Dict, Union
class DeleteSent:
"""Initiates DeleteSent object to delete the sent SMS email from SentItems.
>>> DeleteSent
"""
def __init__(self, **kwar... | PypiClean |
/eventlet-patched-0.28.0.tar.gz/eventlet-patched-0.28.0/eventlet/tpool.py |
import atexit
import imp
import os
import sys
import traceback
import eventlet
from eventlet import event, greenio, greenthread, patcher, timeout
import six
__all__ = ['execute', 'Proxy', 'killall', 'set_num_threads']
EXC_CLASSES = (Exception, timeout.Timeout)
SYS_EXCS = (GeneratorExit, KeyboardInterrupt, SystemEx... | PypiClean |
/gharar-0.1.0.tar.gz/gharar-0.1.0/README.rst | ======
gharar
======
.. image:: https://img.shields.io/pypi/v/gharar.svg
:target: https://pypi.python.org/pypi/gharar
.. image:: https://img.shields.io/travis/arastu/gharar.svg
:target: https://travis-ci.com/arastu/gharar
.. image:: https://readthedocs.org/projects/gharar/badge/?version=latest
... | PypiClean |
/openimis_be_calcrule_third_party_payment-1.5.0-py3-none-any.whl/calcrule_third_party_payment/converters/claims_to_bill.py | from django.contrib.contenttypes.models import ContentType
from invoice.apps import InvoiceConfig
from invoice.models import Bill
class ClaimsToBillConverter(object):
@classmethod
def to_bill_obj(cls, claims, product):
bill = {}
# single bill = queryset of claims with the same batch run id an... | PypiClean |
/galts-trade-api-0.2.0.tar.gz/galts-trade-api-0.2.0/src/galts_trade_api/transport/protos/exchange_info/api_pb2_grpc.py | import grpc
from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
from galts_trade_api.transport.protos import common_pb2 as protos_dot_common__pb2
from galts_trade_api.transport.protos.exchange_info import api_pb2 as protos_dot_exchange__info_dot_api__pb2
from galts_trade_api.transport.protos.ex... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/@typescript-eslint/eslint-plugin/docs/rules/dot-notation.md | # `dot-notation`
enforce dot notation whenever possible.
## Rule Details
This rule extends the base [`eslint/dot-notation`](https://eslint.org/docs/rules/dot-notation) rule.
It adds:
- Support for optionally ignoring computed `private` and/or `protected` member access.
- Compatibility with TypeScript's `noPropertyA... | PypiClean |
/pulumi_azure_nextgen-0.6.2a1613157620.tar.gz/pulumi_azure_nextgen-0.6.2a1613157620/pulumi_azure_nextgen/notificationhubs/v20140901/get_namespace.py |
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union
from ... import _utilities, _tables
from . import outputs
__all__ = [
'GetNamespaceResult',
'AwaitableGetNamespaceResult',
'get_namespace',
]
@pulumi.output_type
class GetNamespaceResult:
""... | PypiClean |
/django-italian-utils-0.3.3.tar.gz/django-italian-utils-0.3.3/italian_utils/utils.py |
REGIONI = {
'Abruzzo': [
{'abbr': 'AQ', 'nome': "L'Aquila"},
{'abbr': 'TE', 'nome': 'Teramo'},
{'abbr': 'PE', 'nome': 'Pescara'},
{'abbr': 'CH', 'nome': 'Chieti'}
],
'Basilicata': [
{'abbr': 'PZ', 'nome': 'Potenza'},
{'abbr': 'MT', 'nome': 'Matera'}
],
... | PypiClean |
/github2-0.6.2.tar.bz2/github2-0.6.2/doc/contributing.rst | .. Copyright (C) 2011-2012 James Rowe <jnrowe@gmail.com>
This file is part of python-github2, and is licensed under the 3-clause BSD
License. See the LICENSE file in the top distribution directory for the full
license text.
Contributing
============
Patches for :mod:`github2` are most welcome!
Forks on Gi... | PypiClean |
/django-congo3-3.2.1.tar.gz/django-congo3-3.2.1/congo/admin/admin.py | from congo.templatetags.admin_utils import admin_change_url
from django.contrib import admin
from django.contrib.admin.utils import unquote
from django.http.response import HttpResponseRedirect
from django.utils.safestring import mark_safe
from django.utils.translation import gettext_lazy as _
class BaseModelAdmin(adm... | PypiClean |
/moolib-0.0.9b0.tar.gz/moolib-0.0.9b0/src/tensorpipe/third_party/pybind11/docs/advanced/functions.rst | Functions
#########
Before proceeding with this section, make sure that you are already familiar
with the basics of binding functions and classes, as explained in :doc:`/basics`
and :doc:`/classes`. The following guide is applicable to both free and member
functions, i.e. *methods* in Python.
.. _return_value_policie... | PypiClean |
/drift_python_client-0.7.0-py3-none-any.whl/drift_client/reduct_client.py | import asyncio
from asyncio import new_event_loop
from typing import Tuple, List, Optional, Dict, Iterator
from reduct import Client, Bucket, ReductError, EntryInfo
from drift_client.error import DriftClientError
class ReductStoreClient:
"""Wrapper around ReductStore client"""
def __init__(self, url: str, ... | PypiClean |
/onetable-0.0.4.tar.gz/onetable-0.0.4/README.md | onetable
===============
Once defined, multiple ways to export table.
Install
===============
```
pip install onetable
```
Useage
===============
```python
from onetable import DefualtTable, HtmlRender, XlsRender, XlsxRender, PdfRender, CSVRender
table = DefualtTable({'fontSize': 10, 'color': 'red'})
table.setStyle... | PypiClean |
/django-dojo-0.0.1.tar.gz/django-dojo-0.0.1/dojo/static/dojo/dojox/rpc/README | -------------------------------------------------------------------------------
DojoX RPC
-------------------------------------------------------------------------------
Version 1.0
Release date: 07/01/2007
-------------------------------------------------------------------------------
Project state:
yahoo.smd: product... | PypiClean |
/performanceplatform-collector-0.3.1.tar.gz/performanceplatform-collector-0.3.1/performanceplatform/collector/ga/plugins/aggregate.py | from __future__ import division
from itertools import groupby
class AggregateKey(object):
"""
Given a set of documents, find all records with equal "key" where the "key"
is all values which are not being aggregated over.
For example:
doc1 = {"foo": "bar", "count": 2}
doc2 = {"foo":... | PypiClean |
/dsin100daysv29-6.0.1.tar.gz/dsin100daysv29-6.0.1/notebook/static/components/MathJax/extensions/asciimath2jax.js | MathJax.Extension.asciimath2jax={version:"2.7.5",config:{delimiters:[["`","`"]],skipTags:["script","noscript","style","textarea","pre","code","annotation","annotation-xml"],ignoreClass:"asciimath2jax_ignore",processClass:"asciimath2jax_process",preview:"AsciiMath"},ignoreTags:{br:(MathJax.Hub.Browser.isMSIE&&document.d... | PypiClean |
/deskaone_requests-0.0.7-py3-none-any.whl/deskaone_requests/Requests/Exceptions.py |
# ------------------------------------------------------------------------------- #
"""
cloudscraper.exceptions
~~~~~~~~~~~~~~~~~~~
This module contains the set of cloudscraper exceptions.
"""
# ------------------------------------------------------------------------------- #
class CloudException(Exception):
"... | PypiClean |
/fedml-afaf-0.7.327.tar.gz/fedml-afaf-0.7.327/fedml/simulation/mpi/fedseg/FedSegClientManager.py | import logging
from .message_define import MyMessage
from .utils import transform_list_to_tensor
from ....core.distributed.fedml_comm_manager import FedMLCommManager
from ....core.distributed.communication.message import Message
class FedSegClientManager(FedMLCommManager):
def __init__(self, args, trainer, comm=... | PypiClean |
/py_openkat-1.2.2.post1-py3-none-any.whl/openkat/boefjes/boefjes/plugins/kat_ssl_certificates/normalize.py | import re
from typing import Union, Iterator, List, Tuple
import cryptography
from cryptography import x509
from cryptography.hazmat.backends import default_backend
from octopoes.models import OOI, Reference
from octopoes.models.ooi.certificate import (
Certificate,
AlgorithmType,
CertificateSubjectAlterna... | PypiClean |
/netoapi-1.0.0.tar.gz/netoapi-1.0.0/README.md | # NetoAPI Library
### A Python API client for the <a href="https://www.netohq.com/" target="_blank">Neto</a> (Maropost) Ecommerce platform.
</br>
## Requirements:
* Python 3.7+
* <a href="https://pypi.org/project/requests/">Requests</a>
<br><br>
## To install:
```bash
pip install netoapi
```
## Basic use:
``` python
... | PypiClean |
/ageliaco.rd2-0.8.4.tar.gz/ageliaco.rd2-0.8.4/ageliaco/rd2/static/build/jsmin.js | String.prototype.has = function(c) {
return this.indexOf(c) > -1;
};
function jsmin(comment, input, level) {
if (input === undefined) {
input = comment;
comment = '';
level = 2;
} else if (level === undefined || level < 1 || level > 3) {
level = 2;
}
if (comment.length > 0) {
comment += '\n';
}
var... | PypiClean |
/nbconvert-7.7.3.tar.gz/nbconvert-7.7.3/docs/source/need_help.rst | Need help?
==========
Technical Support
-----------------
- `GitHub Issues and Bug Reports <https://github.com/jupyter/nbconvert/issues>`_. A place to report bugs or regressions found for nbconvert
- `Community Technical Support and Discussion - Jupyter Discourse <https://discourse.jupyter.org/>`_ :
A place for in... | PypiClean |
/queryS3-0.0.22.tar.gz/queryS3-0.0.22/README.md | # queryS3 API
## Introduction
This API enable users to query images from AI Testing database, currently implementing on AWS S3, with natural English description. A string of keywords also works if users want to put more restrictions onto the picture. The main functionality of this API can be treated in a blackbox manne... | PypiClean |
/nni_upload_test-0.7.1904290925-py3-none-win_amd64.whl/nni_upload_test-0.7.1904290925.data/data/nni/node_modules/tar/lib/read-entry.js | 'use strict'
const types = require('./types.js')
const MiniPass = require('minipass')
const SLURP = Symbol('slurp')
module.exports = class ReadEntry extends MiniPass {
constructor (header, ex, gex) {
super()
this.extended = ex
this.globalExtended = gex
this.header = header
this.startBlockSize = 5... | PypiClean |
/iotronic_ui-0.4.3.tar.gz/iotronic_ui-0.4.3/iotronic_ui/iot/fleets/forms.py |
import logging
from django.utils.translation import ugettext_lazy as _
from horizon import exceptions
from horizon import forms
from horizon import messages
from openstack_dashboard.api import iotronic
from openstack_dashboard import policy
LOG = logging.getLogger(__name__)
class CreateFleetForm(forms.SelfHandli... | PypiClean |
/mesh-python-0.4.tar.gz/mesh-python-0.4/mesh/client.py | import requests as r
import pandas as pd
from datetime import datetime
import json, time, base64
class MeshClient():
def __init__(self,username=None,password=None):
if not username:
print("[ERROR] Username required")
elif not password:
print("[Error] Password required")
... | PypiClean |
/relations-pymysql-0.6.12.tar.gz/relations-pymysql-0.6.12/lib/relations_pymysql.py |
import glob
import copy
import json
import threading
import pymysql
import pymysql.cursors
import relations
import relations_sql
import relations_mysql
class Source(relations.Source): # pylint: disable=too-many-public-methods
"""
PyMySQL Source
"""
SQL = relations_sql.SQL
ASC = relations_sql.... | PypiClean |
/gymnast-0.1a5.zip/gymnast-0.1a5/README.md | # Gymnast: It's not an Acrobat
[](https://github.com/ajmarks/pdf_parser/blob/master/LICENSE) [](https://www.quantifiedcode.com/app/projec... | PypiClean |
/kabbes_analytics_packages-0.5.0-py3-none-any.whl/analytics_packages/custom_pandas.py | import pandas as pd
import matplotlib.pyplot as plt
import numpy as np
import collections
import datetime
import sys
from dateutil.relativedelta import relativedelta
import time
def get_df(file_name, **params):
'''Read csv file from local directory: return dataframe'''
df = pd.read_csv(file_name, **params)
... | PypiClean |
/thedicomsort-1.0.1-py3-none-any.whl/dicomsort.py | # {{{ packages and logging utilities
# standard python includes
import sys
import os
import traceback
import shutil
import tempfile
import urllib.request
import zipfile
# special public packages
try:
import dicom
from dicom.filereader import InvalidDicomError
except ImportError:
import pydicom
from py... | PypiClean |
/jupyspace-0.0.4.tar.gz/jupyspace-0.0.4/jupyspace_api/jupyspace_api/space/__init__.py | from __future__ import annotations
from abc import ABC, abstractmethod
from typing import List
from fastapi import APIRouter
from .models import EnvironmentRead, EnvironmentCreate, ServerRead
from ..app import App
from ..router import Router
class Space(Router, ABC):
def __init__(
self,
app: A... | PypiClean |
/talbots-1.1.0.tar.gz/talbots-1.1.0/README.md | # [TALBOTS PYTHON LIBRARY](https://pypi.org/project/talbots/) #
Talbots is a simple Python library for understanding, analyzing, and evaluating the content of text-generating systems through research papers published in scientific journals. This will be a useful library to help you quickly, efficiently, and cost-effec... | PypiClean |
/pyvaporation-1.2.1-py3-none-any.whl/pyvaporation-1.2.1.dist-info/LICENSE.md | Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined b... | PypiClean |
/pulumi_alicloud-3.44.0a1693632188.tar.gz/pulumi_alicloud-3.44.0a1693632188/pulumi_alicloud/resourcemanager/get_delegated_administrators.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__ = [
'GetDelegatedAdministratorsResult',
'AwaitableGetDelegatedAdministratorsResult',
'get_delegated_administrators',
... | PypiClean |
/pyConnectome-1.0.1.tar.gz/pyConnectome-1.0.1/pyconnectome/utils/regtools.py | # System import
import os
import glob
# Package import
from pyconnectome import DEFAULT_FSL_PATH
from pyconnectome.wrapper import FSLWrapper
# Third patry
import numpy
import nibabel
from pyfreesurfer import DEFAULT_FREESURFER_PATH
from pyfreesurfer.wrapper import FSWrapper
from pyfreesurfer.utils.filetools import ge... | PypiClean |
/dlms-cosem-23.1.0a3.tar.gz/dlms-cosem-23.1.0a3/dlms_cosem/protocol/acse/base.py | import abc
from typing import *
import attr
from dlms_cosem import enumerations
from dlms_cosem.ber import BER
class AbstractAcseApdu(abc.ABC):
@classmethod
@abc.abstractmethod
def from_bytes(cls, source_bytes: bytes):
raise NotImplementedError("")
@abc.abstractmethod
def to_bytes(self)... | PypiClean |
/googleapis-common-protos-1.60.0.tar.gz/googleapis-common-protos-1.60.0/google/api/consumer_pb2.py |
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, ... | PypiClean |
/latex-0.7.0.tar.gz/latex-0.7.0/README.rst | latex
=====
Documentation can be found at https://pythonhosted.org/latex .
Allows calling LaTeX from Python without leaving a mess. Similar to the
(officially obsolete) `tex <https://pypi.python.org/pypi/tex/>`_ package, whose
`successor <http://www.profv.de/texcaller/>`_ is not PyPi-installable:
.. code-block:: pyt... | PypiClean |
/power_perceiver-2022.9.7.tar.gz/power_perceiver-2022.9.7/power_perceiver/transforms/pv.py | from dataclasses import dataclass
from typing import Optional, Union
import pandas as pd
import xarray as xr
from power_perceiver.time import set_new_sample_period_and_t0_idx_attrs
@dataclass
class PVPowerRollingWindow:
"""Compute rolling mean of PV power.
The xr.Dataset is modified in-place, and is return... | PypiClean |
/pulumi_gcp-6.65.0a1693462587.tar.gz/pulumi_gcp-6.65.0a1693462587/pulumi_gcp/assuredworkloads/outputs.py |
import copy
import warnings
import pulumi
import pulumi.runtime
from typing import Any, Mapping, Optional, Sequence, Union, overload
from .. import _utilities
__all__ = [
'WorkloadKmsSettings',
'WorkloadResource',
'WorkloadResourceSetting',
]
@pulumi.output_type
class WorkloadKmsSettings(dict):
@stat... | PypiClean |
/mrx_link-1.1.2-cp38-cp38-win_amd64.whl/mrx_link-1.1.2.data/data/share/jupyter/labextensions/mrx_link/static/788.e989002dab6afcf80ce9.js | (self.webpackChunkmrx_link=self.webpackChunkmrx_link||[]).push([[788],{85788:(e,t,n)=>{var r=n(58579);e.exports={Graph:r.Graph,json:n(62485),alg:n(39100),version:r.version}},74774:(e,t,n)=>{var r=n(77163);e.exports=function(e){var t,n={},i=[];function s(i){r.has(n,i)||(n[i]=!0,t.push(i),r.each(e.successors(i),s),r.each... | PypiClean |
/youtube_dl_fork-2022.6.30.tar.gz/youtube_dl_fork-2022.6.30/youtube_dl/extractor/imgur.py | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..utils import (
int_or_none,
js_to_json,
mimetype2ext,
ExtractorError,
)
class ImgurIE(InfoExtractor):
_VALID_URL = r'https?://(?:i\.)?imgur\.com/(?!(?:a|gallery|(?:t(?:opic)?|r)/[^/]+)/)(?P<id>[a-zA-Z0-9]+... | PypiClean |
/shyft.time_series-5.2.10-cp310-cp310-win_amd64.whl/shyft/dashboard/apps/dtss_viewer/widgets.py | import itertools
from typing import List,Optional
from shyft.dashboard.base.selector_views import MultiSelect, Select
from shyft.dashboard.time_series.ds_view_handle_registry import DsViewHandleRegistry
from shyft.dashboard.time_series.view_container.figure import Figure
from shyft.dashboard.time_series.view_container... | PypiClean |
/oa_atomacos-3.2.0.tar.gz/oa_atomacos-3.2.0/oa_atomacos/_a11y.py | import fnmatch
import logging
import AppKit
from ApplicationServices import (
AXIsProcessTrusted,
AXUIElementCreateApplication,
AXUIElementCreateSystemWide,
CFEqual,
)
from oa_atomacos import _converter
from oa_atomacos._macos import (
PAXUIElementCopyActionNames,
PAXUIElementCopyAttributeNames... | PypiClean |
/rflow_dpc-0.0.1.tar.gz/rflow_dpc-0.0.1/src/dpc/protos/kafkapixy_pb2_grpc.py | """Client and server classes corresponding to protobuf-defined services."""
import grpc
import dpc.protos.kafkapixy_pb2 as kafkapixy__pb2
class KafkaPixyStub(object):
"""Missing associated documentation comment in .proto file."""
def __init__(self, channel):
"""Constructor.
Args:
... | PypiClean |
/ftw.bridge.proxy-1.1.1.tar.gz/ftw.bridge.proxy-1.1.1/README.rst | Introduction
============
``ftw.bridge.proxy`` is a small pyramid based web application for proxying
requests between multiple plone instances. It's purpose is to isolate the
plone instances by routing through this proxy. This allows to easily move
plone instances to other servers.
Maintenance mode
----------------
... | PypiClean |
/pheno-utils-0.3.8.10.tar.gz/pheno-utils-0.3.8.10/pheno_utils/_modidx.py |
d = { 'settings': { 'branch': 'main',
'doc_baseurl': '/pheno-utils',
'doc_host': 'https://pheno-ai.github.io',
'git_url': 'https://github.com/pheno-ai/pheno-utils',
'lib_path': 'pheno_utils'},
'syms': { 'pheno_utils.age_reference_plots': { 'pheno_utils.... | PypiClean |
/torch_geometric_temporal-0.54.0.tar.gz/torch_geometric_temporal-0.54.0/torch_geometric_temporal/dataset/chickenpox.py | import io
import json
import numpy as np
from six.moves import urllib
from ..signal import StaticGraphTemporalSignal
class ChickenpoxDatasetLoader(object):
"""A dataset of county level chicken pox cases in Hungary between 2004
and 2014. We made it public during the development of PyTorch Geometric
Tempora... | PypiClean |
/django-publications-bootstrap-2.3.1.tar.gz/django-publications-bootstrap-2.3.1/publications_bootstrap/views/year.py |
from django.shortcuts import render
from ..models import Publication
from ..utils import populate
def by_year(request, year=None):
years = []
publications = Publication.objects.select_related()
if year:
publications = publications.filter(year=year, external=False)
else:
publications ... | PypiClean |
/pandaSDMX-1.10.0.tar.gz/pandaSDMX-1.10.0/pandasdmx/message.py | import logging
from datetime import datetime
from typing import Any, List, Optional, Text, Union
from pandasdmx import model
from pandasdmx.util import (
BaseModel,
DictLike,
compare,
dictlike_field,
direct_fields,
get_args,
summarize_dictlike,
validate_dictlike,
)
log = logging.getLog... | PypiClean |
/torch_geometric-2.3.1.tar.gz/torch_geometric-2.3.1/torch_geometric/loader/utils.py | import copy
import math
from collections.abc import Sequence
from typing import Dict, Optional, Tuple, Union
import numpy as np
import torch
from torch import Tensor
from torch_geometric.data import (
Data,
FeatureStore,
GraphStore,
HeteroData,
TensorAttr,
remote_backend_utils,
)
from torch_ge... | PypiClean |
/easy_manage-0.0.1.tar.gz/easy_manage-0.0.1/easy_manage/tools/ipmi/system/maps/sdr_maps.py | "HEX -> STRING maps + util method for values fetched by SDR "
def map_code_to_value(type_code, type_map):
"Returns string or 'unsupported' based on given type map and code"
try:
return type_map[type_code]
except KeyError:
return 'unsupported'
SENSOR_TYPE_MAP = {
0x01: "temperature",
... | PypiClean |
/keystone-23.0.0.0rc1.tar.gz/keystone-23.0.0.0rc1/doc/source/contributor/doctor-checks.rst | ..
Copyright 2011-2012 OpenStack Foundation
All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may
not use this file except in compliance with the License. You may obtain
a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
... | PypiClean |
/Simba_UW_no_tf-1.3.0-py3-none-any.whl/simba/plot_threshold.py | import os
import pandas as pd
import matplotlib.pyplot as plt
from configparser import ConfigParser, NoSectionError, NoOptionError
import glob
from simba.rw_dfs import *
def plot_threshold(configini, behavior):
configFile = str(configini)
config = ConfigParser()
config.read(configFile)
projectPath = co... | PypiClean |
/scikit_kinematics-0.9.0.tar.gz/scikit_kinematics-0.9.0/skinematics/sensors/xio.py | Author: Thomas Haslwanter
'''
import numpy as np
import pandas as pd
from scipy import constants
import abc
# To ensure that the relative path works
import os
import sys
parent_dir = os.path.abspath(os.path.join( os.path.dirname(__file__), '..' ))
if parent_dir not in sys.path:
sys.path.insert(0, parent_dir)
fr... | PypiClean |
/fake_bpy_module_3.1-20230117-py3-none-any.whl/bpy/ops/ptcache.py | import sys
import typing
import bpy.types
GenericType = typing.TypeVar("GenericType")
def add(override_context: typing.Union[typing.
Dict, 'bpy.types.Context'] = None,
execution_context: typing.Union[str, int] = None,
undo: typing.Optional[bool] = None):
'''... | PypiClean |
/load-shedding-0.11.5.tar.gz/load-shedding-0.11.5/src/load_shedding/providers/eskom.py | from datetime import timezone
from typing import List, Tuple
from load_shedding.libs import eskom, citypower
from load_shedding.providers import dict_list_to_obj_list, ProviderError, to_utc
from load_shedding.providers import Area, Province, Stage, Provider
class Area(Area):
def __init__(self, /, **kwargs) -> ob... | PypiClean |
/IsPycharmRun-1.0.tar.gz/IsPycharmRun-1.0/pb_py/arena_pb2.py |
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 = _symbol_database.Default()
DESCRIPTOR = _descrip... | PypiClean |
/MPInterfaces-2020.6.19.tar.gz/MPInterfaces-2020.6.19/mpinterfaces/mat2d/electronic_structure/analysis.py | from __future__ import print_function, division, unicode_literals
import os
import matplotlib as mpl
mpl.use('Agg')
import matplotlib.pyplot as plt
from matplotlib.font_manager import FontProperties
import numpy as np
from scipy.spatial.distance import euclidean
from pymatgen.core.structure import Structure
from p... | PypiClean |
/aqt-2.1.66-py3-none-any.whl/_aqt/forms/models_qt6.py |
from PyQt6 import QtCore, QtGui, QtWidgets
from aqt.utils import tr
class Ui_Dialog(object):
def setupUi(self, Dialog):
Dialog.setObjectName("Dialog")
Dialog.setWindowModality(QtCore.Qt.WindowModality.ApplicationModal)
Dialog.resize(396, 255)
self.verticalLayout_5 = QtWidgets.QV... | PypiClean |
/bumblebee-status-2.1.6.tar.gz/bumblebee-status-2.1.6/bumblebee_status/modules/contrib/nvidiagpu.py | import core.module
import core.widget
import util.cli
import util.format
class Module(core.module.Module):
def __init__(self, config, theme):
super().__init__(config, theme, core.widget.Widget(self.utilization))
self.__utilization = "Not found: 0 0/0"
def utilization(self, widget):
... | PypiClean |
/ansible-kkvesper-2.3.2.0.tar.gz/ansible-kkvesper-2.3.2.0/lib/ansible/modules/web_infrastructure/ansible_tower/tower_label.py |
# (c) 2017, Wayne Witzel III <wayne@riotousliving.com>
#
# This module 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 your option) any later version.
#
# This softwa... | PypiClean |
/fake-bpy-module-latest-20230902.tar.gz/fake-bpy-module-latest-20230902/bpy/ops/uv.py | import sys
import typing
import bpy.types
import bpy.ops.transform
GenericType = typing.TypeVar("GenericType")
def align(override_context: typing.Optional[
typing.Union[typing.Dict, 'bpy.types.Context']] = None,
execution_context: typing.Optional[typing.Union[str, int]] = None,
undo: typi... | PypiClean |
/Klampt-0.9.0-cp36-cp36m-win_amd64.whl/klampt/sim/simulation.py | from ..robotsim import *
from . import simlog
import weakref
from typing import Union,List,Sequence,Callable,Any
from klampt.control.blocks.robotcontroller import RobotControllerBlock
class SensorEmulator:
"""A generic sensor emulator. Translates from the physics simulation ->
inputs to a Python controller.
... | PypiClean |
/brkt-cli-1.0.15.tar.gz/brkt-cli-1.0.15/brkt_cli/esx/encrypt_vmdk.py | import logging
from brkt_cli.encryptor_service import (
wait_for_encryptor_up,
wait_for_encryption,
)
from brkt_cli.esx.esx_service import (
launch_mv_vm_from_s3,
validate_local_mv_ovf
)
from brkt_cli.util import (
CRYPTO_GCM,
Deadline,
METAVISOR_DISK_SIZE
)
log = logging.getLogger(__name_... | PypiClean |
/os_aio_pod_channel-0.1.13-py3-none-any.whl/os_aio_pod_channel/middleware.py | import asyncio
import logging
from functools import partial
from itertools import chain
from os_aio_pod.utils import pydantic_dict
from os_aio_pod_channel.exceptions import MiddlewareException
class MiddlewareManager(object):
def __init__(self, engine):
self.engine = engine
self.middlewares = []
... | PypiClean |
/bigpipe_response-0.0.10a3.tar.gz/bigpipe_response-0.0.10a3/bigpipe_response/js/remote_server/bigpipe_node_server.js | var restify = require('restify');
var errors = require('restify-errors');
var path = require('path');
var BigpipeProcessorManager = require('../BigpipeProcessorManager.js');
var serverToken = undefined;
var processors = {}
function renderError(error) { return new errors.InternalError(error); }
function renderMessa... | PypiClean |
/nda_api-0.0.3.tar.gz/nda_api-0.0.3/src/nda_api/nda_api.py | from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.common.by import By
from webdriver_manager.chrome import ChromeDriverManager
from selenium... | PypiClean |
/django-elasticsearch-dsl-drf-0.22.5.tar.gz/django-elasticsearch-dsl-drf-0.22.5/src/django_elasticsearch_dsl_drf/filter_backends/filtering/ids.py | from rest_framework.filters import BaseFilterBackend
from ...versions import ELASTICSEARCH_LTE_6_0
from ..mixins import FilterBackendMixin
__title__ = 'django_elasticsearch_dsl_drf.filter_backends.filtering.ids'
__author__ = 'Artur Barseghyan <artur.barseghyan@gmail.com>'
__copyright__ = '2017-2020 Artur Barseghyan'
... | PypiClean |
/elastic-apm-6.18.0.tar.gz/elastic-apm-6.18.0/elasticapm/utils/__init__.py |
import base64
import os
import re
import urllib.parse
from functools import partial
from types import FunctionType
from typing import Pattern
from elasticapm.conf import constants
from elasticapm.utils import encoding
try:
from functools import partialmethod
partial_types = (partial, partialmethod)
except I... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.