id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/dcm_processor-1.1.2-py3-none-any.whl/dcm_processor/services/dcm2nii/module/__init__.py | import os, json
import glob
import pydicom
from .lib import BytesEncoder, remove_strange_tags
DATA = os.getenv("DATA")
dir_path = os.path.dirname(os.path.realpath(__file__))
def load_json(filename):
data = {}
with open(filename, 'r') as jsfile:
data = json.load(jsfile)
return data
def worker(jobName, heade... | PypiClean |
/intecomm-edc-0.1.74.tar.gz/intecomm-edc-0.1.74/intecomm_group/migrations/0002_initial.py |
from django.conf import settings
from django.db import migrations, models
import django.db.models.deletion
class Migration(migrations.Migration):
initial = True
dependencies = [
("intecomm_lists", "0001_initial"),
("sites", "0002_alter_domain_unique"),
migrations.swappable_dependency... | PypiClean |
/django-datafactory-0.1.0.tar.gz/django-datafactory-0.1.0/django_datafactory/wrappers.py | from __future__ import unicode_literals
import base64
import json
import logging
import os
import sys
from urllib import quote
from django.conf import settings
from django_datafactory import settings as django_datafactory_settings
try:
# For Python 3.0 and later
from urllib.error import HTTPError
from u... | PypiClean |
/dsin100daysv28-6.0.1.tar.gz/dsin100daysv28-6.0.1/notebook/static/components/codemirror/mode/http/http.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror"], mod);
else // Plain browser env
mod(CodeMirror);
})(function(CodeMirror) {
"use s... | PypiClean |
/moead-framework-1.0.tar.gz/moead-framework-1.0/moead_framework/core/genetic_operator/numerical/polynomial_mutation.py | import random
from moead_framework.core.genetic_operator.abstract_operator import GeneticOperator
class PolynomialMutation(GeneticOperator):
"""
Polynomial Mutation operator.
Require only one solution.
"""
def run(self):
"""
Execute the genetic operator
:return: {:class:... | PypiClean |
/chik-blockchain-1.8.5.tar.gz/chik-blockchain-1.8.5/chik/full_node/tx_processing_queue.py | from __future__ import annotations
import asyncio
import logging
from dataclasses import dataclass
from queue import SimpleQueue
from typing import Dict, List, Optional
from chik.types.blockchain_format.sized_bytes import bytes32
from chik.types.transaction_queue_entry import TransactionQueueEntry
class Transaction... | PypiClean |
/g41dataStructures-1.5-py3-none-any.whl/dataStructures/linear/csll.py | from nodes.s_node import SNode
'''
class CircularSinglyLinkedList:
def __init__(self, head=None):
self.head = head
self.tail = head
self.size = 1 if head else 0
if head:
self.tail.next = self.head
def insert_head(self, node):
if not self.head:
sel... | PypiClean |
/sonatype_nexus_sdk-0.1.3-py3-none-any.whl/nexus_sdk/paths/v1_blobstores_s3/post.py | import decimal # noqa: F401
import functools # noqa: F401
import io # noqa: F401
import re # noqa: F401
import typing # noqa: F401
import uuid # noqa: F401
from dataclasses import dataclass
from datetime import date, datetime # noqa: F401
import frozendict # noqa: F401
import typing_extensions # noqa: F401
im... | PypiClean |
/fastai_category_encoders-0.0.4.tar.gz/fastai_category_encoders-0.0.4/fastai_category_encoders/ext_fastai.py | import pandas as pd
from fastai.tabular.data import TabularPandas, TabularProc
from .base import CategoryEncoder
from .ext_autoembedder import AutoEmbedderCategoryEncoder
from .ext_category_encoders import LibraryCategoryEncoder
from .ext_fasttext import FastTextCategoryEncoder
class CategoryEncode(TabularProc):
... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/tsutils/util/convert-ast.js | "use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.convertAst = void 0;
const ts = require("typescript");
const util_1 = require("./util");
/**
* Takes a `ts.SourceFile` and creates data structures that are easier (or more performant) to traverse.
* Note that there is only a performa... | PypiClean |
/Faker-19.3.1.tar.gz/Faker-19.3.1/faker/providers/job/ru_RU/__init__.py | from .. import Provider as BaseProvider
# Russian jobs taken from the Wikipedia page
# https://ru.wikipedia.org/wiki/%D0%A1%D0%BF%D0%B8%D1%81%D0%BE%D0%BA_%D0%BF%D1%80%D0%BE%D1%84%D0%B5%D1%81%D1%81%D0%B8%D0%B9
class Provider(BaseProvider):
jobs = [
"Авиадиспетчер",
"Авиатехник",
"Авиационн... | PypiClean |
/django-alapage-0.8.tar.gz/django-alapage-0.8/alapage/management/commands/populate_page.py |
import os
from django.core.management.base import BaseCommand, CommandError
from alapage.models import Page
from alapage.management.conf import bcolors
class Command(BaseCommand):
help = 'Populates a page with content from direct input of file: option "-f filename.html""'
def add_arguments(self, parser):
... | PypiClean |
/bart-extract-ga-0.1.1.tar.gz/bart-extract-ga-0.1.1/README.md | # Bart Extract GA
[](https://badge.fury.io/py/bart-extract-ga)
Extract event views to Google Analytics
## Install
```
$ pip install bart-extract-ga
```
## Modules
* `extract.processor.extract_yesterday`: exports data from D-1
* `extract.processor.extract... | PypiClean |
/kiwitcms-12.4.tar.gz/kiwitcms-12.4/tcms/node_modules/@types/d3-polygon/README.md | # Installation
> `npm install --save @types/d3-polygon`
# Summary
This package contains type definitions for D3JS d3-polygon module (https://github.com/d3/d3-polygon/).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/d3-polygon/v1.
### Additional Details
* Las... | PypiClean |
/zaber.serial-0.9.1.tar.gz/zaber.serial-0.9.1/zaber/serial/asciilockstep.py | from .asciilockstepinfo import AsciiLockstepInfo
from .asciimovementmixin import AsciiMovementMixin
from .utils import isstring
class AsciiLockstep(AsciiMovementMixin):
"""Represents an lockstep group of particular device (AsciiDevice).
Allows to setup and control lockstep (synchronized movement of axes).
... | PypiClean |
/django-suit-ckeditor-custom-1.0.11.tar.gz/django-suit-ckeditor-custom-1.0.11/suit_ckeditor/static/suit-ckeditor/ckeditor/plugins/scayt/dialogs/options.js | CKEDITOR.dialog.add("scaytDialog",function(d){var c=d.scayt,k='\x3cp\x3e\x3cimg alt\x3d"logo" title\x3d"logo" src\x3d"'+c.getLogo()+'" /\x3e\x3c/p\x3e\x3cp\x3e'+c.getLocal("version")+c.getVersion()+'\x3c/p\x3e\x3cp\x3e\x3ca href\x3d"'+c.getOption("CKUserManual")+'" target\x3d"_blank" style\x3d"text-decoration: underli... | PypiClean |
/delete-facebook-posts-1.1.17.tar.gz/delete-facebook-posts-1.1.17/deletefb/tools/likes.py | from .archive import archiver
from ..types import Page
from .common import SELENIUM_EXCEPTIONS, logger, click_button, wait_xpath, force_mobile, scroll_to, scroll_until_element_exists
from selenium.webdriver.common.by import By
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.supp... | PypiClean |
/Firefly%20III%20API%20Python%20Client-1.5.6.post2.tar.gz/Firefly III API Python Client-1.5.6.post2/firefly_iii_client/model/chart_line.py | import re # noqa: F401
import sys # noqa: F401
from firefly_iii_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_type,... | PypiClean |
/pypelined-0.1.3.tar.gz/pypelined-0.1.3/README.rst | ++++++++++++++++++++++++++++++++++++++++++++++++++
pypelined - stream and pipeline processing service
++++++++++++++++++++++++++++++++++++++++++++++++++
.. image:: https://readthedocs.org/projects/pypelined/badge/?version=latest
:target: http://pypelined.readthedocs.io/en/latest/?badge=latest
:alt: Documentati... | PypiClean |
/bmcs-0.0.2a28-py3-none-any.whl/ibvpy/fets/fets1D5/fets1d52ulrh.py | from ibvpy.fets.fets_eval import FETSEval, IFETSEval
from traits.api import Int, Array, \
Property, cached_property, Float, List, provides, Type
import numpy as np
import sympy as sp
import traits.api as tr
r_ = sp.symbols('r')
#=================================================
# 8 nodes isoparametric volume el... | PypiClean |
/wavegrad-0.1.5.tar.gz/wavegrad-0.1.5/README.md | # WaveGrad
 [](https://github.com/lmnt-com/wavegrad/blob/master/LICENSE)
WaveGrad is a fast, high-quality neural vocoder designed by the folks at Google Brain. The architecture is des... | PypiClean |
/connected_vehicle_client-2.0.1.tar.gz/connected_vehicle_client-2.0.1/src/models/r_instance.py | import datetime
from typing import Any, Dict, List, Type, TypeVar, Union
import attr
from dateutil.parser import isoparse
from ..types import UNSET, Unset
T = TypeVar("T", bound="RInstance")
@attr.s(auto_attribs=True)
class RInstance:
"""
Attributes:
value (Union[Unset, str]):
timestamp (Un... | PypiClean |
/python-docx-1-0.0.2.tar.gz/python-docx-1-0.0.2/docs/user/styles-understanding.rst | .. _understanding_styles:
Understanding Styles
====================
**Grasshopper:**
*"Master, why doesn't my paragraph appear with the style I specified?"*
**Master:**
*"You have come to the right page Grasshopper; read on ..."*
What is a style in Word?
------------------------
Documents communicate bett... | PypiClean |
/moto-ext-4.2.0.post1.tar.gz/moto-ext-4.2.0.post1/moto/ec2/models/dhcp_options.py | import itertools
from typing import Any, Dict, List, Optional
from ..exceptions import (
DependencyViolationError,
InvalidDHCPOptionsIdError,
InvalidParameterValueError,
MalformedDHCPOptionsIdError,
)
from .core import TaggedEC2Resource
from ..utils import random_dhcp_option_id, generic_filter
class D... | PypiClean |
/cdent-0.5.7.tar.gz/cdent-0.5.7/README.rst | C'Dent - A Portable Module Programming Language
-----------------------------------------------
C'Dent is a programming language that:
1) Is primarily intended to write portable OO modules. C'Dent modules
are written once, and then compiled to equivalent port modules in any
number of supported programming langu... | PypiClean |
/custom-awscli-1.27.51.tar.gz/custom-awscli-1.27.51/awscli/examples/chime/update-room.rst | **To update a chat room**
The following ``update-room`` example modifies the name of the specified chat room. ::
aws chime update-room \
--account-id 12a3456b-7c89-012d-3456-78901e23fg45 \
--room-id abcd1e2d-3e45-6789-01f2-3g45h67i890j \
--name teamRoom
Output::
{
"Room": {
... | PypiClean |
/hub_v1-1.3.9-py3-none-any.whl/hub_v1/auto/computer_vision/classification.py | import os
import hub_v1
import numpy as np
from hub_v1.auto import util
from hub_v1.auto.infer import state
from PIL import Image
from tqdm import tqdm
USE_TQDM = True
@state.directory_parser(priority=0)
def image_classification(path, scheduler, workers):
children = util.get_children(path, only_dirs=True)
... | PypiClean |
/Puddle-0.1.2.zip/Puddle-0.1.2/puddle/resource/action/new_folder_action.py | #------------------------------------------------------------------------------
# Imports:
#------------------------------------------------------------------------------
from enthought.io.api import File
from enthought.traits.api import Bool, on_trait_change
from enthought.pyface.api import ImageResource, OK, error
... | PypiClean |
/youtube_dl2-2.0.tar.gz/youtube_dl2-2.0/youtube_dl/extractor/blinkx.py | from __future__ import unicode_literals
import json
from .common import InfoExtractor
from ..utils import (
remove_start,
int_or_none,
)
class BlinkxIE(InfoExtractor):
_VALID_URL = r'(?:https?://(?:www\.)blinkx\.com/#?ce/|blinkx:)(?P<id>[^?]+)'
IE_NAME = 'blinkx'
_TEST = {
'url': 'http:... | PypiClean |
/ckcc_protocol-1.3.2-py3-none-any.whl/ckcc/electrum.py | import re
import os
import copy
import json
from ckcc.utils import xfp2str
from ckcc.client import ColdcardDevice
from ckcc.protocol import CCProtocolPacker
MULTISIG_WALLET_TYPE_PATTERN = r"^\d+of\d+$"
MULTISIG_WALLET_KEY_PATTERN = r"^x\d+/$"
def is_hww_keystore(keystore: dict) -> bool:
return keystore["type"]... | PypiClean |
/idds-atlas-0.11.10.tar.gz/idds-atlas-0.11.10/lib/idds/atlas/workflow/atlasstageinwork.py |
import copy
import datetime
import traceback
from rucio.client.client import Client as RucioClient
from rucio.common.exception import (CannotAuthenticate as RucioCannotAuthenticate,
DuplicateRule as RucioDuplicateRule,
RuleNotFound as RucioRuleNo... | PypiClean |
/ERDot-2.3.1-py3-none-any.whl/erdot/__main__.py | import sys
from .b import SimpleTemplate as t
from .dTemplate import dTemp
import json
import click
import os
import time
def loadJson(_inputFile):
with click.open_file(_inputFile) as f:
jsonLoaded = json.load(f)
return jsonLoaded
def figureOutOutputFileName(_inputFile, _outputFile):
outFileName... | PypiClean |
/azure-mgmt-appplatform-8.0.0.zip/azure-mgmt-appplatform-8.0.0/azure/mgmt/appplatform/v2022_11_01_preview/aio/operations/_service_registries_operations.py | import sys
from typing import Any, AsyncIterable, Callable, Dict, Optional, TypeVar, Union, cast
import urllib.parse
from azure.core.async_paging import AsyncItemPaged, AsyncList
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError... | PypiClean |
/letigre-moto-0.0.1.tar.gz/letigre-moto-0.0.1/moto/resourcegroupstaggingapi/responses.py | from __future__ import unicode_literals
from moto.core.responses import BaseResponse
from .models import resourcegroupstaggingapi_backends
import json
class ResourceGroupsTaggingAPIResponse(BaseResponse):
SERVICE_NAME = 'resourcegroupstaggingapi'
@property
def backend(self):
"""
Backend
... | PypiClean |
/dschmidt-cdktf-provider-google_beta-0.1.0.tar.gz/dschmidt-cdktf-provider-google_beta-0.1.0/src/dschmidt_cdktf_provider_google_beta/google_compute_packet_mirroring/__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
import constructs
class GoogleComputePacketMirroring(
cdktf.TerraformResource,
metaclass=jsii.JSIIMeta,
jsii_... | PypiClean |
/climacell_python-0.0.7-py3-none-any.whl/climacell_api/climacell_api.py | import requests
from climacell_api.climacell_response import ClimacellResponse
class ClimacellApiClient:
BASE_URL = "https://api.climacell.co/v3"
def __init__(self, key):
self.key = key
def realtime(self, lat, lon, fields, units='si'):
"""
The realtime data returns up to the minu... | PypiClean |
/criteo_api_retailmedia_sdk-2023.7.0.230831-py3-none-any.whl/criteo_api_retailmedia_v2023_07/model/line_item_bid_multipliers_request.py | import re # noqa: F401
import sys # noqa: F401
from criteo_api_retailmedia_v2023_07.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,
... | PypiClean |
/sherlibs-27.4.2023-py3-none-any.whl/Ayra/fns/misc.py |
import base64
import os
import random
import re
import string
from logging import WARNING
from random import choice, randrange, shuffle
from traceback import format_exc
from Ayra.exceptions import DependencyMissingError
try:
from aiohttp import ContentTypeError
except ImportError:
ContentTypeError = None
fr... | PypiClean |
/python-docx-lists-1.0.0.tar.gz/python-docx-lists-1.0.0/docx/dml/color.py | from __future__ import (
absolute_import, division, print_function, unicode_literals
)
from ..enum.dml import MSO_COLOR_TYPE
from ..oxml.simpletypes import ST_HexColorAuto
from ..shared import ElementProxy
class ColorFormat(ElementProxy):
"""
Provides access to color settings such as RGB color, theme col... | PypiClean |
/python-vsmclient-2.1.0-312.tar.gz/python-vsmclient-2.1.0-312/vsmclient/v1/limits.py |
# 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,
# software distributed under the Lic... | PypiClean |
/kafka-connect-dependency-0.1.4.tar.gz/kafka-connect-dependency-0.1.4/event_consumers/src/logging/logging_util.py | import json
import logging
import os
from newrelic.api.log import NewRelicContextFormatter
from event_consumers.src.logging.new_relic_logger import send_newrelic_log
LOG_FILE_PATH = '/var/www-api/.log/consumer_app.log'
LOG_DIR_PATH = '/var/www-api/.log'
LOG_FORMATTER = '%(levelname)s - %(asctime)s - %(name)s - %(mes... | PypiClean |
/melvant-0.0.5.tar.gz/melvant-0.0.5/geezlibs/types/inline_mode/chosen_inline_result.py |
from base64 import b64encode
from struct import pack
import geezlibs
from geezlibs import raw
from geezlibs import types
from ..object import Object
from ..update import Update
class ChosenInlineResult(Object, Update):
"""A :doc:`result <InlineQueryResult>` of an inline query chosen by the user and sent to thei... | PypiClean |
/cs_scrubadub-2.1.1.tar.gz/cs_scrubadub-2.1.1/scrubadub/detectors/catalogue.py | import inspect
import catalogue
from typing import Type, Optional, Union, TYPE_CHECKING
if TYPE_CHECKING:
from scrubadub.detectors import Detector
detector_catalogue = catalogue.create('scrubadub', 'detectors', entry_points=True)
def register_detector(detector: Type['Detector'], *, autoload: Optional[bool] = N... | PypiClean |
/Treadmill-0.0.2.tar.gz/Treadmill-0.0.2/treadmill/sproc/cleanup.py | import glob
import logging
import os
import subprocess
import click
from .. import appmgr
from .. import idirwatch
from .. import logcontext as lc
from .. import subproc
import treadmill
_LOGGER = lc.ContainerAdapter(logging.getLogger(__name__))
# FIXME(boysson): This extremely high timeout value comes from the fa... | PypiClean |
/pythonsnmp-1.0.1.tar.gz/pythonsnmp-1.0.1/README | pythonsnmp README
Python classes that extend the
Functionality of 'netsnmp' Extension Module
### Main Features
(1) BULKWALK : Current implementation of netsnmp does not provide
a 'bulkwalk' method . The existing 'snmpwalk' implementation uses
single 'getnext' operations that take a long time to complete in a
... | PypiClean |
/django-extended-attachments-0.4.0.tar.bz2/django-extended-attachments-0.4.0/attachments/settings.py |
from django.conf import settings
#
# Antivirus
#
ANTIVIRUS_BACKEND = getattr(settings, 'ANTIVIRUS_BACKEND', 'attachments.backends.av_clamav')
ANTIVIRUS_CLAMD_UNIX_SOCK = getattr(settings, 'ANTIVIRUS_CLAMD_UNIX_SOCK', '/var/run/clamav/clamd.ctl')
ANTIVIRUS_CLAMD_HOST = getattr(settings, 'ANTIVIRUS_CLAMD_HOST', '127.... | PypiClean |
/msgraph_beta_sdk-1.0.0a9-py3-none-any.whl/msgraph/generated/models/recommendation_collection_response.py | from __future__ import annotations
from kiota_abstractions.serialization import Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
if TYPE_CHECKING:
from . import base_collection_pagination_count_response, recommendation
from . import base_collect... | PypiClean |
/video_bot_add_disclaimers-0.0.1-py3-none-any.whl/add_disclaimers/models/page.py | from typing import AnyStr, List
class Author:
def __init__(self,
name: AnyStr = None,
link: AnyStr = None) -> None:
self.name = name
self.link = link
class Meta:
def __init__(self,
description: AnyStr = None,
duration: AnyStr = None,
uploadDate: Any... | PypiClean |
/caf_verilog-0.11.1-py3-none-any.whl/caf_verilog/sig_gen.py | from . quantizer import quantize
import os
from jinja2 import Environment, FileSystemLoader, Template
import numpy as np
from .caf_verilog_base import CafVerilogBase
from . quantizer import bin_num
filedir = os.path.dirname(os.path.realpath(__file__))
sig_gen_tb_module_path = os.path.join(filedir, '..', 'src')
sig_gen... | PypiClean |
/dsin100daysv28-6.0.1.tar.gz/dsin100daysv28-6.0.1/notebook/static/components/codemirror/mode/dart/dart.js |
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"), require("../clike/clike"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../lib/codemirror", "../clike/clike"], mod);
else // Plain browser env
mod(... | PypiClean |
/XStatic-MathJax-2.0.0.zip/XStatic-MathJax-2.0.0/xstatic/pkg/mathjax/data/jax/output/SVG/fonts/TeX/fontdata-extra.js | (function(a){var k=a.FONTDATA.DELIMITERS;var g="MathJax_Main",h="MathJax_Main-bold",i="MathJax_AMS",e="MathJax_Size1",b="MathJax_Size4";var j="H",f="V";var d={61:{dir:j,HW:[[0.767,g]],stretch:{rep:[61,g]}},8606:{dir:j,HW:[[1,i]],stretch:{left:[8606,i],rep:[8722,g]}},8608:{dir:j,HW:[[1,i]],stretch:{right:[8608,i],rep:[8... | PypiClean |
/OpenCoweb-1.0.tar.gz/OpenCoweb-1.0/js/coweb/jsoe/UpdateOperation.js | onevar:false, plusplus:false, undef:true, browser:true, devel:true,
forin:false, sub:false*/
/*global define*/
define([
'coweb/jsoe/Operation',
'coweb/jsoe/factory'
], function(Operation, factory) {
/**
* @constructor
*/
var UpdateOperation = function(args) {
this.type = 'update';... | PypiClean |
/tensorflow_cpu_aws-2.14.0rc1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl/tensorflow/python/ops/distributions/util.py | """Utilities for probability distributions."""
import functools
import hashlib
import numpy as np
from tensorflow.python.framework import constant_op
from tensorflow.python.framework import dtypes
from tensorflow.python.framework import ops
from tensorflow.python.framework import tensor_shape
from tensorflow.python.... | PypiClean |
/nano_net-1.3.2-py3-none-any.whl/nanonet/tb/structure_designer.py | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
from collections import OrderedDict
import logging
import numpy as np
import scipy.spatial
from nanonet.tb.abstract_interfaces import AbstractStructureDesigner
from nanonet.tb.aux_functions import xyz2np, count_... | PypiClean |
/SCRIdb-1.2.11a2.tar.gz/SCRIdb-1.2.11a2/.eggs/botocore-1.19.8-py3.7.egg/botocore/docs/method.py | import inspect
from botocore.docs.params import RequestParamsDocumenter
from botocore.docs.params import ResponseParamsDocumenter
from botocore.docs.example import ResponseExampleDocumenter
from botocore.docs.example import RequestExampleDocumenter
AWS_DOC_BASE = 'https://docs.aws.amazon.com/goto/WebAPI'
def get_i... | PypiClean |
/os2mo_sd_connector-0.0.2-py3-none-any.whl/sd_connector/sd_connector.py |
import datetime
from functools import partial
from typing import Optional, Union
from uuid import UUID
import aiohttp
from xmltodict import parse
xmlparse = partial(parse, dict_constructor=dict)
class SDAPIException(Exception):
pass
def is_uuid(uuid: Union[str, UUID]) -> bool:
if isinstance(uuid, UUID):
... | PypiClean |
/nonebot_plugin_mahjong_utils-0.4.4.tar.gz/nonebot_plugin_mahjong_utils-0.4.4/src/nonebot_plugin_mahjong_utils/mapper/plaintext/hora.py | from typing import TextIO, List
from mahjong_utils.hora import Hora, RegularHoraHandPattern
from mahjong_utils.models.furo import Furo
from mahjong_utils.models.tile import Tile
from .general import num_mapping, wind_mapping, yaku_mapping
from .hand import map_hand
from .point_by_han_hu import get_tsumo_text, get_ron... | PypiClean |
/numtest-2.0.6.tar.gz/numtest-2.0.6/.lib/setuptools/command/build_py.py | from glob import glob
from distutils.util import convert_path
import distutils.command.build_py as orig
import os
import fnmatch
import textwrap
import io
import distutils.errors
import itertools
from setuptools.extern import six
from setuptools.extern.six.moves import map, filter, filterfalse
try:
from setuptool... | PypiClean |
/pyqtgraph-for-dubble-bubble-2016.11.2.tar.gz/pyqtgraph-for-dubble-bubble-2016.11.2/pyqtgraph/Qt.py | import os, sys, re, time
from .python2_3 import asUnicode
PYSIDE = 'PySide'
PYQT4 = 'PyQt4'
PYQT5 = 'PyQt5'
QT_LIB = os.getenv('PYQTGRAPH_QT_LIB')
## Automatically determine whether to use PyQt or PySide (unless specified by
## environment variable).
## This is done by first checking to see whether one of the libra... | PypiClean |
/aicsshparam-0.1.7.tar.gz/aicsshparam-0.1.7/docs/installation.rst | .. highlight:: shell
============
Installation
============
Stable release
--------------
To install aics-shparam, run this command in your terminal:
.. code-block:: console
$ pip install aicsshparam
This is the preferred method to install aics-shparam, as it will always install the most recent stable releas... | PypiClean |
/odoo13_addon_hr_attendance_autoclose-13.0.1.1.0-py3-none-any.whl/odoo/addons/hr_attendance_autoclose/models/hr_attendance.py |
from datetime import datetime, timedelta
from odoo import api, fields, models
class HrAttendance(models.Model):
_inherit = "hr.attendance"
@api.depends("check_out", "check_in")
def _compute_open_worked_hours(self):
for attendance in self:
if attendance.check_out:
del... | PypiClean |
/astro-tiptop-1.2.tar.gz/astro-tiptop-1.2/tiptop/tiptopGUI.py | from mastsel.mavis import *
from ipywidgets import interact, interactive, fixed, interact_manual, Layout
import ipywidgets as widgets
from configparser import ConfigParser
sections_text = {}
sections_text['telescope'] = "Telescope"
sections_text['atmosphere'] = "Atmosphere"
sections_text['PSF_DIRECTIONS'] = "PSF Dire... | PypiClean |
/tensorflow_model_remediation-0.1.7.1-py3-none-any.whl/tensorflow_model_remediation/counterfactual/losses/base_loss.py | import abc
import re
from typing import Optional
import dill
import tensorflow as tf
from tensorflow_model_remediation.common import docs
from tensorflow_model_remediation.common import types
class CounterfactualLoss(tf.keras.losses.Loss, abc.ABC):
"""CounterfactualLoss abstract base class.
Inherits from: `tf.... | PypiClean |
/pyexcel-cli-0.0.3.tar.gz/pyexcel-cli-0.0.3/pyexcel_cli/_shared.py | import sys
import csv
import click
from pyexcel.core import get_io_type
def get_input_content(file_type):
if sys.version_info[0] == 2:
stream = sys.stdin
else:
stream = get_stream('stdin', file_type)
content = stream.read()
return content
def get_output_stream(file_type):
if sys.... | PypiClean |
/imdb_films_scraper-1.0.4.tar.gz/imdb_films_scraper-1.0.4/imdb_films_scraper/related_films.py | import requests
from bs4 import BeautifulSoup
from tqdm import tqdm
from time import sleep
from . import movie_class as mv
def get_related(movies_objects_list, ammount, message):
related_movies_objects_list = []
pbar = tqdm(total=ammount, bar_format='{l_bar}{bar:20}{r_bar}{bar:-20b}', desc=message)
for movie_o... | PypiClean |
/hedtools-0.3.1-py3-none-any.whl/hed/tools/visualization/word_cloud_util.py | import random
from random import Random
import numpy as np
from PIL import Image, ImageFilter
from matplotlib import cm
from wordcloud import WordCloud
def _draw_contour(wc, img):
"""Slightly tweaked copy of internal WorldCloud function to allow transparency"""
if wc.mask is None or wc.contour_width == 0 or ... | PypiClean |
/django-pyas2-1.2.3.tar.gz/django-pyas2-1.2.3/pyas2/views.py | import logging
import os
from django.contrib import messages
from django.shortcuts import Http404
from django.shortcuts import HttpResponse
from django.shortcuts import get_object_or_404
from django.utils.decorators import method_decorator
from django.utils.translation import gettext as _
from django.urls import rever... | PypiClean |
/GreenLearning-1.0.zip/GreenLearning-1.0/greenlearning/neural_network.py | from .utils.backend import tf
from . import activations
from .utils import config
import numpy as np
class NeuralNetwork:
"""Create a fully connected neural network with given number of layers and
activation function.
Example:
.. code-block:: python
gl.NeuralNetwork([2] + [50] * 4 + [1]... | PypiClean |
/pypeit-1.13.0.tar.gz/pypeit-1.13.0/doc/api/pypeit.scripts.rst | pypeit.scripts package
======================
Submodules
----------
.. toctree::
:maxdepth: 4
pypeit.scripts.cache_github_data
pypeit.scripts.chk_alignments
pypeit.scripts.chk_edges
pypeit.scripts.chk_flats
pypeit.scripts.chk_for_calibs
pypeit.scripts.chk_noise_1dspec
pypeit.scripts.chk_noise... | PypiClean |
/django-acmin-1.0.2.tar.gz/django-acmin-1.0.2/acmin/static/acmin/ace/js/buttons.flash.min.js | !function(a){"function"==typeof define&&define.amd?define(["jquery","datatables.net","datatables.net-buttons"],function(b){return a(b,window,document)}):"object"==typeof exports?module.exports=function(b,c){return b||(b=window),c&&c.fn.dataTable||(c=require("datatables.net")(b,c).$),c.fn.dataTable.Buttons||require("dat... | PypiClean |
/ansible-8.3.0-py3-none-any.whl/ansible_collections/community/general/plugins/modules/gitlab_group_members.py |
# Copyright (c) 2020, Zainab Alsaffar <Zainab.Alsaffar@mail.rit.edu>
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
from __future__ import absolute_import, division, print_function
__metaclass__ = type
DOC... | PypiClean |
/alvin_api_client-1.5.0rc1.tar.gz/alvin_api_client-1.5.0rc1/src/alvin_api_client/model/lineage_expanding_type.py | import re # noqa: F401
import sys # noqa: F401
from alvin_api_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_type,
... | PypiClean |
/pcs_argpass-0.9.4-py3-none-any.whl/pcs_argpass/pcs_argpass/Param.py | from re import X
import sys
import types
import inspect
from pathlib import Path, PurePath
import json
import types
import copy
import os
from itertools import chain
import textwrap
# Use json5 if it is avallable else use json
try:
import json5
JsonLoads = json5.loads
JsonLoad = json5.load
except:
Js... | PypiClean |
/OctoPrint-1.9.2.tar.gz/OctoPrint-1.9.2/src/octoprint/logging/handlers.py | import concurrent.futures
import logging.handlers
import os
import re
import time
class AsyncLogHandlerMixin(logging.Handler):
def __init__(self, *args, **kwargs):
self._executor = concurrent.futures.ThreadPoolExecutor(max_workers=1)
super().__init__(*args, **kwargs)
def emit(self, record):
... | PypiClean |
/pytest_jira_xray-0.8.9-py3-none-any.whl/pytest_xray/helper.py | import datetime as dt
import enum
import os
import re
from os import environ
from typing import Any, Dict, List, Optional, Union
from pytest_xray import constant
from pytest_xray.constant import (
DATETIME_FORMAT,
ENV_XRAY_API_BASE_URL,
ENV_XRAY_API_KEY,
ENV_XRAY_API_PASSWORD,
ENV_XRAY_API_USER,
... | PypiClean |
/boot-synth-1.2.0.tar.gz/boot-synth-1.2.0/synth/projects_master/nginx_router/frontend/react/node_modules/@webassemblyjs/wasm-edit/lib/index.js | "use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.edit = edit;
exports.editWithAST = editWithAST;
exports.add = add;
exports.addWithAST = addWithAST;
var _wasmParser = require("@webassemblyjs/wasm-parser");
var _ast = require("@webassemblyjs/ast");
var _clone = require("@webasse... | PypiClean |
/klaviyo_api-5.1.2-py3-none-any.whl/openapi_client/models/catalog_variant_delete_job_create_query_resource_object_attributes_variants.py | from __future__ import annotations
import pprint
import re # noqa: F401
import json
from typing import List
from pydantic import BaseModel, Field, conlist
from openapi_client.models.catalog_variant_delete_query_resource_object import CatalogVariantDeleteQueryResourceObject
class CatalogVariantDeleteJobCreateQueryRe... | PypiClean |
/Mopidy-Transistor-0.2.0.tar.gz/Mopidy-Transistor-0.2.0/mopidy_transistor/web/site/vendor/mopidy/mopidy.js | parcelRequire=function(e,r,t,n){var i,o="function"==typeof parcelRequire&&parcelRequire,u="function"==typeof require&&require;function f(t,n){if(!r[t]){if(!e[t]){var i="function"==typeof parcelRequire&&parcelRequire;if(!n&&i)return i(t,!0);if(o)return o(t,!0);if(u&&"string"==typeof t)return u(t);var c=new Error("Cannot... | PypiClean |
/cerberus_document_editor-0.0.9.tar.gz/cerberus_document_editor-0.0.9/cerberus_document_editor/editor.py | import sys
import time
import threading
import urwid
import json
import traceback
from interrupt_handler import InterruptHandler
from .debug import log
DEFAULT_PALETTE=[
('header','white,bold', 'black', 'bold'),
('footer','white,bold', 'black', 'bold'),
('body','white', 'dark gray', ''),
('label','whi... | PypiClean |
/mahad-0.3.0.tar.gz/mahad-0.3.0/maha/rexy/templates/expression.py | from __future__ import annotations
__all__ = ["Expression"]
import hashlib
import pickle
from dataclasses import dataclass
from pathlib import Path
from typing import Callable, Iterable
import regex as re
from regex import Match, Pattern
from maha import LIBRARY_PATH
from .expression_result import ExpressionResul... | PypiClean |
/anyio-4.0.0.tar.gz/anyio-4.0.0/docs/typedattrs.rst | Using typed attributes
======================
.. py:currentmodule:: anyio
On AnyIO, streams and listeners can be layered on top of each other to provide extra
functionality. But when you want to look up information from one of the layers down
below, you might have to traverse the entire chain to find what you're look... | PypiClean |
/rpi-greenhouse-0.4.1.tar.gz/rpi-greenhouse-0.4.1/rpi_greenhouse/greenhouse.py | from __future__ import print_function, division
from RPi import GPIO
from greenhouse_database import GreenhouseDatabase
from datetime import datetime
from time import sleep, time
import math
from sys import exit
try:
import Adafruit_DHT
except ImportError:
print("Adafruit DHT library missing.")
exit(0)
GP... | PypiClean |
/pytorch-ialgebra-1.0.0.tar.gz/pytorch-ialgebra-1.0.0/ialgebra/utils/utils_operation.py | import os
import numpy as np
import visdom
import matplotlib.image as mpimg
from matplotlib.pyplot import imshow
import warnings
warnings.filterwarnings("ignore")
# parse declarative query to ialgebra_name
name2operator = {
'projection': 'operator.projection',
'selection': 'operator.selection',
'join': '... | PypiClean |
/pypcapkit-1.2.1-cp310-none-any.whl/pcapkit/toolkit/__init__.py | # tools for default engine
from pcapkit.toolkit.pcap import ipv4_reassembly, ipv6_reassembly, tcp_reassembly, tcp_traceflow
from pcapkit.toolkit.pcapng import ipv4_reassembly as pcapng_ipv4_reassembly
from pcapkit.toolkit.pcapng import ipv6_reassembly as pcapng_ipv6_reassembly
from pcapkit.toolkit.pcapng import tcp_rea... | PypiClean |
/localstack_core-2.2.0-py3-none-any.whl/localstack/services/kinesis/provider.py | import logging
import os
import time
from random import random
from localstack import config
from localstack.aws.accounts import get_aws_account_id
from localstack.aws.api import RequestContext
from localstack.aws.api.kinesis import (
ConsumerARN,
Data,
HashKey,
KinesisApi,
PartitionKey,
Provis... | PypiClean |
/python-libsbml-5.20.1.tar.gz/python-libsbml-5.20.1/libsbml_source/src/bindings/swig/libsbmlutils.py |
import os, re
from os.path import join
skip_dirs = ['math-legacy', 'compress', 'test', '.deps', '.libs',
'test-data', 'subdir']
skip_files = ['extensiontypes.h', 'libsbml_wrap.h', 'libsbml_wrap-win.h',
'dirent.h', 'CMakeLists.txt', 'README.txt', 'extern.h',
'commo... | PypiClean |
/benchling_api_client-2.0.207-py3-none-any.whl/benchling_api_client/models/label_templates_list.py | from typing import Any, cast, Dict, List, Optional, Type, TypeVar, Union
import attr
from ..extensions import NotPresentError
from ..models.label_template import LabelTemplate
from ..types import UNSET, Unset
T = TypeVar("T", bound="LabelTemplatesList")
@attr.s(auto_attribs=True, repr=False)
class LabelTemplatesLi... | PypiClean |
/tmdb_wrapper-0.4.0.tar.gz/tmdb_wrapper-0.4.0/tmdb_wrapper/tmdb/searches.py | import textwrap
from typing import Any
from tmdb_wrapper.data.review import Review
from tmdb_wrapper.data.search import Search, SearchMulti
from tmdb_wrapper.tmdb.base import TMDb
from tmdb_wrapper.tmdb.datatype import Datatype, ModelDatatype
from tmdb_wrapper.tmdb.excep import TMDbException
from tmdb_wrapper.tmdb.requ... | PypiClean |
/e-objects-2.10.1.tar.gz/e-objects-2.10.1/objects/__init__.py | import io
import os
import re
import sys
import time
import codecs
import base64
import aiogram
import asyncio
import inspect
import telebot
import heroku3
import _thread
import calendar
import traceback
import unicodedata
import concurrent.futures
from aiogram import types
from ast import literal_eval
from copy import... | PypiClean |
/eurotools-0.5.4.tar.gz/eurotools-0.5.4/euronotifications/static/lib/noty-3.1.0/lib/noty.min.js | !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define("Noty",[],e):"object"==typeof exports?exports.Noty=e():t.Noty=e()}(this,function(){return function(t){function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].ca... | PypiClean |
/whooshy-2.8.13.tar.gz/whooshy-2.8.13/docs/source/api/scoring.rst | ==================
``scoring`` module
==================
.. automodule:: whoosh.scoring
Base classes
============
.. autoclass:: WeightingModel
:members:
.. autoclass:: BaseScorer
:members:
.. autoclass:: WeightScorer
.. autoclass:: WeightLengthScorer
Scoring algorithm classes
=========================
... | PypiClean |
/epivizFileServer-0.2.7.tar.gz/epivizFileServer-0.2.7/src/epivizfileserver/parser/BamFile.py | import pysam
from .SamFile import SamFile
from .utils import toDataFrame
class BamFile(SamFile):
"""
Bam File Class to parse bam files
Args:
file (str): file location can be local (full path) or hosted publicly
columns ([str]) : column names for various columns in file
Attributes... | PypiClean |
/lockit-1.0.1.tar.gz/lockit-1.0.1/README.md | # lockit
Encrypt files and folders from the command line without breaking a sweat 🔒📁📄
Lockit is a very simple program for a very simple purpose. Encrypt files / folders with any password. Let me show you.
```bash
$ touch hello.txt
$ echo "Hello World" > hello.txt
$ lock hello.txt
Password: MyPassword
Confirm Pass... | PypiClean |
/twentytab-cked-0.5.tar.gz/twentytab-cked-0.5/cked/static/cked/ckeditor/plugins/specialchar/dialogs/lang/nb.js | /*
Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
*/
CKEDITOR.plugins.setLang("specialchar","nb",{euro:"Eurosymbol",lsquo:"Venstre enkelt anførselstegn",rsquo:"Høyre enkelt anførselstegn",ldquo:"Venstre dobbelt anførselstegn"... | PypiClean |
/muspectre-0.26.3-cp311-cp311-macosx_10_15_x86_64.whl/muspectre-0.26.3.data/purelib/muFFT/Stencils2D.py | import muFFT
# First order upwind differences
upwind_x = muFFT.DiscreteDerivative([0, 0], [[-1], [1]])
upwind_y = muFFT.DiscreteDerivative([0, 0], [[-1, 1]])
upwind = (upwind_x, upwind_y)
# d-stencil label the corners used for the derivative
d_10_00 = upwind_x
d_01_00 = upwind_y
d_11_01 = muFFT.DiscreteDerivative([0,... | PypiClean |
/onshape_xblock-0.0.44.tar.gz/onshape_xblock-0.0.44/onshape_xblock/utility.py | import urlparse
import os
import json
import pint
from jsonpickle import encode, decode
u = pint.UnitRegistry()
def quantify(s, default_units=u.m, tolerance=None):
"""Take a string and turn it into a pint quantity. If the string doesn't have an associated unit, use the one
specified in default_units. Error s... | PypiClean |
/cuquantum_python_cu12-23.6.0-cp311-cp311-manylinux2014_aarch64.whl/cuquantum/cutensornet/_internal/typemaps.py | __all__ = ['NAME_TO_DATA_TYPE', 'NAME_TO_COMPUTE_TYPE']
import re
# hack to break circular import
from cuquantum.utils import ComputeType, cudaDataType
def create_cuda_data_type_map(cuda_data_type_enum_class):
"""
Map the data type name to the corresponding CUDA data type.
"""
cuda_data_type_pattern... | PypiClean |
/bigdl_orca_spark321-2.1.0b202207291-py3-none-macosx_10_11_x86_64.whl/bigdl/orca/tfpark/text/estimator/bert_ner.py | from bigdl.orca.tfpark.text.estimator import *
from bigdl.dllib.utils.log4Error import invalidInputError
def make_bert_ner_model_fn(optimizer):
import tensorflow as tf
from bigdl.orca.tfpark import ZooOptimizer
def _bert_ner_model_fn(features, labels, mode, params):
output_layer = bert_model(feat... | PypiClean |
/jupyterlab_remote_contents-0.1.1.tar.gz/jupyterlab_remote_contents-0.1.1/node_modules/vary/HISTORY.md | 1.1.2 / 2017-09-23
==================
* perf: improve header token parsing speed
1.1.1 / 2017-03-20
==================
* perf: hoist regular expression
1.1.0 / 2015-09-29
==================
* Only accept valid field names in the `field` argument
- Ensures the resulting string is a valid HTTP header value... | PypiClean |
/enough-2.2.35.tar.gz/enough-2.2.35/playbooks/debops/docs/ansible/roles/icinga_web/man_description.rst | .. Copyright (C) 2018 Maciej Delmanowski <drybjed@gmail.com>
.. Copyright (C) 2018 DebOps <https://debops.org/>
.. SPDX-License-Identifier: GPL-3.0-only
Description
===========
The `Icinga`__ project is a monitoring solution which can be used to monitor
infrastructure hosts and services. Icinga can use variety of rem... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.