id stringlengths 1 8 | text stringlengths 6 1.05M | dataset_id stringclasses 1
value |
|---|---|---|
/get_html_from_safari-0.2.3.tar.gz/get_html_from_safari-0.2.3/CONTRIBUTING.rst | .. highlight:: shell
============
Contributing
============
Contributions are welcome, and they are greatly appreciated! Every little bit
helps, and credit will always be given.
You can contribute in many ways:
Types of Contributions
----------------------
Report Bugs
~~~~~~~~~~~
Report bugs at https://github.com... | PypiClean |
/pulumi_azure_native-2.5.1a1693590910.tar.gz/pulumi_azure_native-2.5.1a1693590910/pulumi_azure_native/migrate/server_collector.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
from ._inputs import *
__all__ = ['ServerCollectorArgs', 'ServerCollector']
@pulumi.input_type
class ServerCollectorArgs:
def __init... | PypiClean |
/dsin100daysv36-6.0.1.tar.gz/dsin100daysv36-6.0.1/notebook/static/components/codemirror/mode/yacas/yacas.js |
// Yacas mode copyright (c) 2015 by Grzegorz Mazur
// Loosely based on mathematica mode by Calin Barbat
(function(mod) {
if (typeof exports == "object" && typeof module == "object") // CommonJS
mod(require("../../lib/codemirror"));
else if (typeof define == "function" && define.amd) // AMD
define(["../../... | PypiClean |
/dynafed_storagestats-1.0.40.tar.gz/dynafed_storagestats-1.0.40/README.md | # dynafed_storagestats
Module to interact with UGR's configuration files in order to obtain
storage status information from various types of endpoints and upload the
information to memcache. It leverage's UGR's connection check that it uploads
to memcache to skip any endpoints it has detected as being "Offline". (If
t... | PypiClean |
/quick_trade-7.9.7.tar.gz/quick_trade-7.9.7/quick_trade/utils.py | from enum import Enum
import threading
from functools import wraps
from time import sleep
from typing import Any
from typing import List
from typing import Sequence
from typing import Sized
from typing import Tuple
from typing import Union
from typing import Dict
from warnings import warn
import numpy as np
import pan... | PypiClean |
/DZDBuffy-0.7.3-py3-none-any.whl/buffy/buffyserver/backend/tag_and_pin_manager.py | import logging
from buffy.buffyserver.backend.storage.interface import StorageInterface
from buffy.buffyserver.api.v1.models import (
Request,
Response,
ResponseTagClaim,
ResponsePinClaim,
)
import datetime
log = logging.getLogger(__name__)
class TagAndPinManager:
def __init__(self, storage: Sto... | PypiClean |
/djangocms-4-migration-0.0.2.tar.gz/djangocms-4-migration-0.0.2/djangocms_4_migration/management/commands/migrate_alias_plugins.py | import logging
from django.core.management.base import BaseCommand
from django.core.exceptions import ObjectDoesNotExist
from django.contrib.sites.models import Site
from django.contrib.auth.models import User
from django.contrib.contenttypes.models import ContentType
from django.db import transaction
from cms.api im... | PypiClean |
/m3-gar-client-1.0.0.tar.gz/m3-gar-client-1.0.0/src/m3_gar_client/backends/m3_rest_gar/proxy_rest/views.py | from abc import (
ABC
)
from typing import (
List,
Type
)
from django.conf import (
settings
)
from django.utils.module_loading import (
import_string
)
from rest_framework.authentication import (
BaseAuthentication
)
from rest_framework.permissions import (
BasePermission,
IsAuthentica... | PypiClean |
/altimate_dataminion-0.0.8-py3-none-any.whl/altimate_models/s3/json_source_dialect.py | from typing import Text, Dict
from altimate_models.duckdb.dialect import DuckDBSourceDialect
from altimate_models.s3.utils import gen_table_path
from altimate_models.shared_models import S3Resource
class JsonSourceDialect(DuckDBSourceDialect):
DATA_QUERY = "data"
METADATA_QUERY = "metadata"
FORMAT_TO_T... | PypiClean |
/SenecaPy-2.0.0b4.tar.gz/SenecaPy-2.0.0b4/seneca/Modules/Sessions.py | from websocket import create_connection
import requests
from seneca.Modules.data import Create
import threading
from pprint import pprint
import json
import logging
class Sessions():
def __init__(self, SessionId, User):
self.SessionId = SessionId
self.idToken = User.idToken
self.userId = Us... | PypiClean |
/certora_cli_alpha_oz_gambitlinux-20230710.11.11.234001-py3-none-macosx_10_9_universal2.whl/certora_cli/EVMVerifier/certoraConfigIO.py | import json5
import logging
import sys
import copy
from pathlib import Path
from typing import Dict, Any
import EVMVerifier.certoraContext as Ctx
import EVMVerifier.certoraContextAttribute as Attr
from EVMVerifier.certoraContextClass import CertoraContext
from Shared.certoraUtils import Mode, is_new_api, CertoraUserIn... | PypiClean |
/pywin32-306-cp37-cp37m-win32.whl/pythonwin/pywin/tools/browseProjects.py | import glob
import os
import pyclbr
import afxres
import commctrl
import pywin.framework.scriptutils
import regutil
import win32api
import win32con
import win32ui
from pywin.mfc import dialog
from . import hierlist
class HLIErrorItem(hierlist.HierListItem):
def __init__(self, text):
self.text = text
... | PypiClean |
/google-cloud-life-sciences-0.9.3.tar.gz/google-cloud-life-sciences-0.9.3/google/cloud/lifesciences_v2beta/services/workflows_service_v2_beta/client.py | from collections import OrderedDict
import os
import re
from typing import (
Dict,
Mapping,
MutableMapping,
MutableSequence,
Optional,
Sequence,
Tuple,
Type,
Union,
cast,
)
from google.api_core import client_options as client_options_lib
from google.api_core import exceptions as... | PypiClean |
/quicklinks-0.1.5-py3-none-any.whl/api/service.py | import subprocess
import json
import logging
from psutil import process_iter
from signal import SIGTERM
from http.server import BaseHTTPRequestHandler, HTTPServer
from api.actions import *
PORT = 1867
class Server(BaseHTTPRequestHandler):
def send_json(self, value = { 'status': 'done' }, status_code=200):
... | PypiClean |
/django-bom-1.233.tar.gz/django-bom-1.233/bom/migrations/0040_alter_organization_currency.py |
from django.db import migrations
import djmoney.models.fields
class Migration(migrations.Migration):
dependencies = [
('bom', '0039_auto_20200929_2315'),
]
operations = [
migrations.AlterField(
model_name='organization',
name='currency',
field=djmoney... | PypiClean |
/port_ocean-0.2.3-py3-none-any.whl/port_ocean/context/event.py | from contextlib import asynccontextmanager
from dataclasses import dataclass, field
from typing import AsyncIterator, Literal, Any, TYPE_CHECKING, Optional
from uuid import uuid4
from loguru import logger
from werkzeug.local import LocalStack, LocalProxy
from port_ocean.exceptions.context import EventContextNotFoundE... | PypiClean |
/github_utils_api-0.65.0-py3-none-any.whl/githubutilsapi/interface/__init__.py | import requests
import base64
import json
from ..exceptions import GithubUtilsException
class GithubUtilsApi:
"""
GithubUtilsClass, created to let other scripts to automate DevOps HelpDesk Support
"""
def __init__(self, user, token, github_url="https://api.github.com",
github_url_gr... | PypiClean |
/django-authtools-py3-1.7.6.tar.gz/django-authtools-py3-1.7.6/docs/views.rst | Views
=====
.. currentmodule:: authtools.views
django-authtools provides the following class-based views, intended to be
*mostly* drop-in replacements for their :ref:`built-in
<django:built-in-auth-views>` counterparts.
In addition to the built-in views, there is a new
:class:`PasswordResetConfirmAndLoginView` that ... | PypiClean |
/aldryn-people-2.2.0.tar.gz/aldryn-people-2.2.0/aldryn_people/cms_toolbars.py |
from __future__ import unicode_literals
from django.utils.translation import get_language_from_request, ugettext as _
from cms.toolbar_base import CMSToolbar
from cms.toolbar_pool import toolbar_pool
from cms.utils.urlutils import admin_reverse
from parler.models import TranslatableModel
from six import iteritems
... | PypiClean |
/emissionsapi-worldmap-creator-0.3.tar.gz/emissionsapi-worldmap-creator-0.3/emissionsapi_worldmap_creator/__main__.py | import logging
import datetime
import argparse
from emissionsapi_worldmap_creator import get_points, plot
logger = logging.getLogger(__name__)
def parse_command_line():
"""Parse the command line arguments
:return: Parsed command line arguments
:rtype: argparse.Namespace
"""
parser = argparse.Ar... | PypiClean |
/SQLAlchemy-One-0.0.2.tar.gz/SQLAlchemy-One-0.0.2/sqlalchemy_plus/mixins/core.py | from flask import current_app
from sqlalchemy.ext.declarative import declared_attr
from sqlalchemy.orm.attributes import InstrumentedAttribute
from flask_atomic.database import db
# from flask_atomic.orm.database import db
from flask_atomic.orm.operators import commitsession
def session():
db = current_app.exten... | PypiClean |
/apicurio_registry_python_sdk_preview-2.4.14-cp311-cp311-macosx_13_0_x86_64.whl/apicurioregistrysdk/client/models/version_meta_data.py | from __future__ import annotations
from datetime import datetime
from kiota_abstractions.serialization import AdditionalDataHolder, Parsable, ParseNode, SerializationWriter
from typing import Any, Callable, Dict, List, Optional, TYPE_CHECKING, Union
if TYPE_CHECKING:
from . import artifact_state, properties
class... | PypiClean |
/bdbcontrib-0.1.8.1.tar.gz/bdbcontrib-0.1.8.1/src/predictors/predictor.py |
# Copyright (c) 2010-2016, MIT Probabilistic Computing Project
#
# 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 requi... | PypiClean |
/ka-lite-0.17.6b4.tar.gz/ka-lite-0.17.6b4/kalite/distributed/static/js/distributed/perseus/ke/local-only/localeplanet/icu.ps.js | (function() {
var dfs = {"am_pm":["غ.م.","غ.و."],"day_name":["یکشنبه","دوشنبه","سه\u200Cشنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],"day_short":["یکشنبه","دوشنبه","سه\u200Cشنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],"era":["ق.م.","م."],"era_name":["ق.م.","م."],"month_name":["جنوري","فبروري","مارچ","اپریل","می","جون","جول... | PypiClean |
/ax-platform-0.3.4.tar.gz/ax-platform-0.3.4/ax/models/torch/botorch_modular/sebo.py |
import functools
from copy import deepcopy
from functools import partial
from typing import Any, Callable, Dict, List, Optional, Tuple, Type
import torch
from ax.core.search_space import SearchSpaceDigest
from ax.models.torch.botorch_modular.acquisition import Acquisition
from ax.models.torch.botorch_modular.optimize... | PypiClean |
/v2/model/batch_set_sub_customer_discount_request.py |
import pprint
import re
import six
class BatchSetSubCustomerDiscountRequest:
"""
Attributes:
openapi_types (dict): The key is attribute name
and the value is attribute type.
attribute_map (dict): The key is attribute name
and the value... | PypiClean |
/baiduads_sdk_auto-2023.1.0-py3-none-any.whl/baiduads/shieldfunction/model/get_shield_policy_response_wrapper_body.py | import re # noqa: F401
import sys # noqa: F401
from baiduads.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,
valid... | PypiClean |
/network_config_analyzer-1.9.6-py3-none-any.whl/nca/Parsers/IstioTrafficResourcesYamlParser.py |
from functools import reduce
from nca.CoreDS.MinDFA import MinDFA
from nca.CoreDS.Peer import PeerSet
from nca.CoreDS.MethodSet import MethodSet
from nca.CoreDS.ConnectivityCube import ConnectivityCube
from nca.CoreDS.ConnectivityProperties import ConnectivityProperties
from nca.Resources.IstioTrafficResources import ... | PypiClean |
/iredis_bin-1.9.4-cp310-cp310-manylinux2010_x86_64.whl/iredis_bin-1.9.4.data/scripts/lib/iredis/data/commands/set.md | Set `key` to hold the string `value`. If `key` already holds a value, it is
overwritten, regardless of its type. Any previous time to live associated with
the key is discarded on successful `SET` operation.
## Options
The `SET` command supports a set of options that modify its behavior:
- `EX` _seconds_ -- Set the s... | PypiClean |
/splunk-appinspect-2.37.0.tar.gz/splunk-appinspect-2.37.0/splunk_appinspect/checks/check_potentially_harmful_operations.py | import logging
import platform
import splunk_appinspect
report_display_order = 5
logger = logging.getLogger(__name__)
@splunk_appinspect.tags("splunk_appinspect", "appapproval", "manual")
@splunk_appinspect.cert_version(min="1.0.0")
def check_hard_coded_paths(app, reporter):
"""Check for hard-coded filepaths in... | PypiClean |
/pytest_psqlgraph-0.2.0rc1-py3-none-any.whl/pytest_psqlgraph/plugin.py | import logging
from typing import Dict, cast
import pytest
from _pytest import fixtures as f
from _pytest import main as m
from _pytest import python as p
from . import helpers, models
logger = logging.getLogger(__name__)
CONFIG_FIXTURE_NAME: str = "psqlgraph_config"
MARKER_NAME: str = "psqlgraph_data"
ACTIVE_DB_FIX... | PypiClean |
/lektor-git-repos-0.1.1.tar.gz/lektor-git-repos-0.1.1/README.md | # lektor-github-pages
[](https://gitlab.com/Forkbombco/lektor-git-repos/commits/master)
Fetches your GitHub repos for display in Lektor templates
Gitlab is planned soon
[Demo](https://forkbomb.co/projects/lektor-git-repos)
... | PypiClean |
/properly_util_python-0.32.0-py3-none-any.whl/src/cloudwatch_metrics.py | import os
import time
from contextlib import contextmanager
from functools import wraps
from typing import Callable, Dict, List, Union
import boto3
from src.environments import get_properly_stage_for_resource
class MetricsClient:
def __init__(self, namespace: str, environment: str = None, dimensions: List[Dict]... | PypiClean |
/tensorflow_directml-1.15.8-cp37-cp37m-win_amd64.whl/tensorflow_core/python/ops/gen_list_ops.py | import collections as _collections
import six as _six
from tensorflow.python import pywrap_tensorflow as _pywrap_tensorflow
from tensorflow.python.eager import context as _context
from tensorflow.python.eager import core as _core
from tensorflow.python.eager import execute as _execute
from tensorflow.python.framework ... | PypiClean |
/azure_messaging_webpubsubservice-1.1.0b1-py3-none-any.whl/azure/messaging/webpubsubservice/_operations/_operations.py | import sys
from typing import Any, Callable, Dict, IO, List, Optional, TypeVar, cast
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
ResourceNotModifiedError,
map_error,
)
from azure.core.pipeline import PipelineRespo... | PypiClean |
/oqtant-0.16.3.tar.gz/oqtant-0.16.3/documentation/walkthroughs/walkthrough_4_experiment.md | # Oqtant Walkthrough 4: RF Sweep Experimentation
### This walkthrough covers creating and executings an RF Sweep Experiement using Ultracold Matter OqtantJobs
For more information about Oqtant refer to our documentation: https://gitlab.com/infleqtion/albert/oqtant/-/blob/main/README.md
_Batch job functionality is av... | PypiClean |
/azure-quantum-0.25.222596b1.tar.gz/azure-quantum-0.25.222596b1/azure/quantum/_authentication/_chained.py | import logging
from azure.core.exceptions import ClientAuthenticationError
from azure.identity import CredentialUnavailableError
try:
from typing import TYPE_CHECKING
except ImportError:
TYPE_CHECKING = False
if TYPE_CHECKING:
# pylint:disable=unused-import,ungrouped-imports
from typing import Any, ... | PypiClean |
/zipapp_utils-0.3.1-py3-none-any.whl/zipapp_utils/parsers_util.py |
import argparse
from argparse import ArgumentParser, _SubParsersAction
from pathlib import Path
from .config import DEFAULT_PYTHON3_SHEBANG_ZIPAPP
from .arg_handlers import (
main_py2pyz,
main_create_shell_script,
main_create_archive,
main_poetry2pyz,
main_pip2pyz,
)
def create_subparser_create_a... | PypiClean |
/azure_monitor_query-1.3.0b1-py3-none-any.whl/azure/monitor/query/_generated/metrics/operations/_operations.py | import datetime
import sys
from typing import Any, Callable, Dict, Iterable, Optional, TypeVar, cast
from azure.core.exceptions import (
ClientAuthenticationError,
HttpResponseError,
ResourceExistsError,
ResourceNotFoundError,
ResourceNotModifiedError,
map_error,
)
from azure.core.paging import... | PypiClean |
/pyrangelibc-danieldugas-0.0.2.tar.gz/pyrangelibc-danieldugas-0.0.2/vendor/gflags/README.md | [](https://travis-ci.org/gflags/gflags)
[](https://ci.appveyor.com/project/schuhschuh/gflags/branch/master)
The documentation of the gflags library i... | PypiClean |
/cdktf_cdktf_provider_aws-17.0.2-py3-none-any.whl/cdktf_cdktf_provider_aws/xray_group/__init__.py | import abc
import builtins
import datetime
import enum
import typing
import jsii
import publication
import typing_extensions
from typeguard import check_type
from .._jsii import *
import cdktf as _cdktf_9a9027ec
import constructs as _constructs_77d1e7e8
class XrayGroup(
_cdktf_9a9027ec.TerraformResource,
... | PypiClean |
/webapp2-3.0.0b1.tar.gz/webapp2-3.0.0b1/docs/tutorials/virtualenv.rst | .. _tutorials.virtualenv:
Installing virtualenv
=====================
`virtualenv <http://pypi.python.org/pypi/virtualenv>`_, sets a
"virtual environment" that allows you to run different projects with separate
libraries side by side. This is a good idea both for development and
production, as it'll assure that each p... | PypiClean |
/blocktorch-1.33.2-py3-none-any.whl/climaticai/pipelines/utils.py | import logging
from woodwork import logical_types
from . import (
TimeSeriesBinaryClassificationPipeline,
TimeSeriesMulticlassClassificationPipeline,
TimeSeriesRegressionPipeline,
)
from .binary_classification_pipeline import BinaryClassificationPipeline
from .multiclass_classification_pipeline import (
... | PypiClean |
/foxtail-contact-0.5.1.tar.gz/foxtail-contact-0.5.1/README.md | # foxtail-contact [](https://pypi.org/project/foxtail-contact/)
A simple, reusable Django contact form application. This application is designed for
internal use and the API should not be considered stable.
## License
This software is released under the MIT licen... | PypiClean |
/melthon-2.1.0.tar.gz/melthon-2.1.0/CHANGELOG.rst |
Changelog
=========
2.1.0 (2020-04-21)
------------------
* Refresh project by adding support for Docker, improving unit tests and freezing dependencies
2.0.0 (2020-05-22)
------------------
* Simplify project by dropping support for all Python versions except for the current version (3.8)
* Add support for repeat... | PypiClean |
/Scrapy3-1.0.1.tar.gz/Scrapy3-1.0.1/docs/topics/contracts.rst | .. _topics-contracts:
=================
Spiders Contracts
=================
.. versionadded:: 0.15
.. note:: This is a new feature (introduced in Scrapy 0.15) and may be subject
to minor functionality/API updates. Check the :ref:`release notes <news>` to
be notified of updates.
Testing spiders can get particu... | PypiClean |
/pyblosxom-1.5.3.tar.gz/pyblosxom-1.5.3/docs/dev_writing_plugins.rst | .. highlight:: python
:linenothreshold: 5
.. _writing-plugins:
===============
Writing Plugins
===============
Summary
=======
This chapter covers a bunch of useful things to know when writing
Pyblosxom plugins. This chapter, moreso than the rest of this manual,
is very much a work in progress.
If you need hel... | PypiClean |
/infoblox-netmri-3.8.0.0.tar.gz/infoblox-netmri-3.8.0.0/infoblox_netmri/api/broker/v3_2_0/cli_credential_broker.py | from ..broker import Broker
class CLICredentialBroker(Broker):
controller = "cli_credentials"
def index(self, **kwargs):
"""Lists the available cli credentials. Any of the inputs listed may be be used to narrow the list; other inputs will be ignored. Of the various ways to query lists, using this met... | PypiClean |
/nuradiomc-2.1.8.tar.gz/nuradiomc-2.1.8/NuRadioMC/examples/SignalVisualization/voltage_trace.py | from dash.dependencies import Input, Output, State
from dash import dcc
from dash import html
import dash
import plotly.subplots
import plotly.graph_objs as go
import numpy as np
import json
from NuRadioReco.utilities import units, fft
import NuRadioReco.detector.antennapattern
import NuRadioReco.detector.ARIANNA.analo... | PypiClean |
/amundsen_databuilder-7.4.4-py3-none-any.whl/databuilder/extractor/dashboard/apache_superset/apache_superset_table_extractor.py |
from functools import lru_cache
from typing import (
Any, Dict, Iterator, Union,
)
from sqlalchemy.engine.url import make_url
from databuilder.extractor.dashboard.apache_superset.apache_superset_extractor import ApacheSupersetBaseExtractor
from databuilder.models.dashboard.dashboard_table import DashboardTable
... | PypiClean |
/metaapi_cloud_sdk-21.5.0.tar.gz/metaapi_cloud_sdk-21.5.0/lib/clients/metaApi/metatraderAccountGenerator_client.py | from ..metaApi_client import MetaApiClient
from typing_extensions import TypedDict
from typing import Optional, List
from ...metaApi.models import random_id
class NewMT4DemoAccount(TypedDict, total=False):
"""New MetaTrader 4 demo account request model."""
accountType: Optional[str]
"""Account type. Avail... | PypiClean |
/localstack_core-2.2.0-py3-none-any.whl/localstack/services/stores.py | import re
from collections.abc import Callable
from threading import RLock
from typing import Any, Generic, Type, TypeVar, Union
from localstack import config
from localstack.utils.aws.aws_stack import get_valid_regions_for_service
LOCAL_ATTR_PREFIX = "attr_"
BaseStoreType = TypeVar("BaseStoreType")
#
# Descriptor... | PypiClean |
/m3-simple-report-1.4.15.tar.gz/m3-simple-report-1.4.15/src/simple_report/xlsx/section.py | from __future__ import absolute_import
from datetime import datetime
import copy
import numbers
import re
from lxml.etree import QName
from lxml.etree import SubElement
from six.moves import range
import six
from simple_report.core.exception import SheetDataException
from simple_report.core.shared_table import Share... | PypiClean |
/PyMeasure-0.12.0.tar.gz/PyMeasure-0.12.0/docs/dev/adding_instruments/advanced_communication.rst | .. _advanced_communication_protocols:
Advanced communication protocols
================================
Some devices require a more advanced communication protocol, e.g. due to checksums or device addresses. In most cases, it is sufficient to subclass :meth:`Instrument.write <pymeasure.instruments.Instrument.write>` ... | PypiClean |
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/request/KoubeiMerchantOperatorModifyRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.KoubeiMerchantOperatorModifyModel import KoubeiMerchantOperatorModifyModel
class KoubeiMerchantOperatorModifyRequest(object):
def __init__(self, biz_model=None):
sel... | PypiClean |
/nvidia_modulus-0.2.1-py3-none-any.whl/modulus/models/gnn_layers/mesh_graph_encoder.py |
import torch
import torch.nn as nn
from torch import Tensor
from dgl import DGLGraph
from typing import Tuple, Union
from .mesh_graph_mlp import MeshGraphMLP, MeshGraphEdgeMLPConcat, MeshGraphEdgeMLPSum
from .utils import aggregate_and_concat, CuGraphCSC
class MeshGraphEncoder(nn.Module):
"""Encoder used e.g. i... | PypiClean |
/PilotMapReduce-0.1.0.tar.gz/PilotMapReduce-0.1.0/pmr/PilotMapReduce.py | import sys
import os
import time
import pdb
import logging
import bliss.saga as saga
#FORMAT = "PMR - %(asctime)s - %(message)s"
#logging.basicConfig(format=FORMAT,level=logging.INFO,datefmt='%H:%M:%S')
logging.basicConfig(level=logging.INFO)
logger = logging.getLogger('PMR')
import bliss.saga as saga
from pilot impor... | PypiClean |
/Eskapade_Core-1.0.0-py3-none-any.whl/escore/tutorials/esk109_debugging_tips.py | from escore import ConfigObject, Chain
from escore import DataStore
from escore import core_ops
from escore import process_manager
from escore.logger import Logger
logger = Logger()
logger.debug('Now parsing configuration file esk109_debugging_tips')
##################################################################... | PypiClean |
/cctbx-2020.8-0_py36h1d45459-cp36-cp36m-manylinux2010_x86_64.whl/mmtbx/refinement/real_space/tst_weight.py | from __future__ import absolute_import, division, print_function
from scitbx.array_family import flex
from libtbx import group_args
from libtbx.utils import user_plus_sys_time
from mmtbx.refinement.real_space import individual_sites
from mmtbx.refinement.real_space import weight
import mmtbx
pdb_str_1 = """\
CRYST1 ... | PypiClean |
/vnpy_light-0.0.1-cp36-cp36m-win32.whl/vnpy/trader/app/dataRecorder/drEngine.py | import json
import csv
import os
import copy
import traceback
from collections import OrderedDict
from datetime import datetime, timedelta, time
from Queue import Queue, Empty
from threading import Thread
from pymongo.errors import DuplicateKeyError
from vnpy.event import Event
from vnpy.trader.vtEvent import *
from v... | PypiClean |
/Skailar-framework-5.0.tar.gz/Skailar-framework-5.0/skailar/contrib/admin/templatetags/admin_list.py | import datetime
from skailar.contrib.admin.templatetags.admin_urls import add_preserved_filters
from skailar.contrib.admin.utils import (
display_for_field,
display_for_value,
get_fields_from_path,
label_for_field,
lookup_field,
)
from skailar.contrib.admin.views.main import (
ALL_VAR,
IS_F... | PypiClean |
/wikiseriesricardolib-0.1.0.tar.gz/wikiseriesricardolib-0.1.0/README.rst | ====================
wikiseriesricardolib
====================
Library to use wikipedia to query tv series episode lists.
* Documentation: https://wikiseriesricardolib.readthedocs.org/en/latest
Development Workflow
====================
The workflow supports the following steps
* lint
* test
* build
* documen... | PypiClean |
/pydiverse_pipedag-0.6.6.tar.gz/pydiverse_pipedag-0.6.6/src/pydiverse/pipedag/backend/table/sql/sql.py | from __future__ import annotations
import json
import textwrap
import warnings
from collections.abc import Iterable
from contextlib import contextmanager
from typing import Any
import sqlalchemy as sa
import sqlalchemy.exc
import sqlalchemy.sql.elements
from pydiverse.pipedag import Stage, Table
from pydiverse.piped... | PypiClean |
/pytorch-mighty-0.3.0.tar.gz/pytorch-mighty-0.3.0/mighty/loss/penalty.py | import torch
import torch.nn as nn
class LossPenalty(nn.Module):
"""
A wrapper for reconstruction `loss` with a norm penalty.
Parameters
----------
criterion : nn.Module
Reconstruction loss without the penalty.
lambd : float, optional
A penalty constant.
Default: 0.5
... | PypiClean |
/sim-racing-tools-2021.6.2.tar.gz/sim-racing-tools-2021.6.2/sim_racing_tools/automation/sandbox.py | import os
import struct
import sqlite3
import logging
from collections import OrderedDict
import sim_racing_tools.automation.installation as installation
def get_engine_bill_of_material_params():
return {"EngineeringCost", "EngineeringTime", "ManHours",
"MaterialCost", "ToolingCosts", "TotalCost", "Se... | PypiClean |
/abqpy-2023.5.6-py3-none-any.whl/abaqus/Field/DiscreteField.py | from __future__ import annotations
from typing_extensions import Literal
from abqpy.decorators import abaqus_class_doc, abaqus_method_doc
from ..Assembly.PartInstance import PartInstance
from ..Region.Region import Region
from ..UtilityAndView.abaqusConstants import (
CARTESIAN,
INSIDE,
MEDIUM,
NODES... | PypiClean |
/pdpilot-0.5.2.tar.gz/pdpilot-0.5.2/src/sorting.ts | import type { OneWayPD, TwoWayPD, PDSortingOption } from './types';
import { isOneWayPdArray } from './types';
import { descending, transpose, mean } from 'd3-array';
import { centerIceLines, getClustering } from './utils';
export { singlePDPSortingOptions, doublePDPSortingOptions };
function distanceRatio(
highl... | PypiClean |
/jupyterhub_url_sharing-0.1.0.tar.gz/jupyterhub_url_sharing-0.1.0/node_modules/table/node_modules/ajv/lib/2020.ts | import type {AnySchemaObject} from "./types"
import AjvCore, {Options} from "./core"
import draft2020Vocabularies from "./vocabularies/draft2020"
import discriminator from "./vocabularies/discriminator"
import addMetaSchema2020 from "./refs/json-schema-2020-12"
const META_SCHEMA_ID = "https://json-schema.org/draft/20... | PypiClean |
/symphony_bdk_python-2.6.1-py3-none-any.whl/symphony/bdk/gen/agent_model/v1_dlp_policy.py | import re # noqa: F401
import sys # noqa: F401
from typing import List, Union
from symphony.bdk.gen.model_utils import ( # noqa: F401
ApiTypeError,
ModelComposed,
ModelNormal,
ModelSimple,
cached_property,
change_keys_js_to_python,
convert_js_args_to_python_args,
date,
datetime,
... | PypiClean |
/fake_bpy_module_2.90-20230117-py3-none-any.whl/bpy/ops/marker.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 |
/er-calvin-1.1.1.tar.gz/er-calvin-1.1.1/calvin/runtime/south/transports/calvinbt/twisted/bt.py |
# Copyright (c) 2015 Ericsson AB
#
# 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 writ... | PypiClean |
/great_expectations_cta-0.15.43.tar.gz/great_expectations_cta-0.15.43/great_expectations/expectations/core/expect_column_to_exist.py | from typing import TYPE_CHECKING, Dict, Optional
from great_expectations.core import (
ExpectationConfiguration,
ExpectationValidationResult,
)
from great_expectations.execution_engine import ExecutionEngine
from great_expectations.expectations.expectation import (
InvalidExpectationConfigurationError,
... | PypiClean |
/dash_svg-0.0.12.tar.gz/dash_svg-0.0.12/dash_svg/Mask.py |
from dash.development.base_component import Component, _explicitize_args
class Mask(Component):
"""A Mask component.
Mask is a wrapper for the <mask> SVG element.
For detailed attribute info see:
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/mask
Keyword arguments:
- children (a list of or a singula... | PypiClean |
/ipylgbst-0.2.0.tar.gz/ipylgbst-0.2.0/examples/lite/_output/retro/notebooks/jupyter-lite.ipynb | # jupyter-lite.ipynb
This notebook is the preferred source of site-specific runtime [configuration](https://jupyterlite.readthedocs.io/en/latest/configuring.html) for a JupyterLite app, and will override any configuration in [`jupyter-lite.json`](./jupyter-lite.json).
## Editing Configuration
The configuration is s... | PypiClean |
/Lotlan_Scheduler-1.1.2.tar.gz/Lotlan_Scheduler-1.1.2/lotlan_scheduler/defines.py |
TEST_FOLDER_PATH = "etc/tests/"
LOG_PATH = "logs/log.txt"
TEMPLATES_PATH = "lotlan_scheduler/templates"
LOTLAN_FILE_ENDING = ".tl"
SYMBOLIC_NAMES = {
"TEMPLATE": "a template",
"TASK": "a task",
"TRANSPORT_ORDER_STEP": "a transportOrderStep",
"INSTANCE:": "an instance",
"WHITESPACE": "a whitespace... | PypiClean |
/youtrack_python_openapi-2023.1-py3-none-any.whl/you_track_rest_api_client/api/default/post_issues_getter_count.py | from http import HTTPStatus
from typing import Any, Dict, Optional, Union
import httpx
from ... import errors
from ...client import Client
from ...models.issue_count_response import IssueCountResponse
from ...types import UNSET, Response, Unset
def _get_kwargs(
*,
client: Client,
json_body: IssueCountRe... | PypiClean |
/alipay-python-3.3.17.tar.gz/alipay-python-3.3.17/alipay/aop/api/request/AlipayBossProdSubmerchantQueryRequest.py | import json
from alipay.aop.api.FileItem import FileItem
from alipay.aop.api.constant.ParamConstants import *
from alipay.aop.api.domain.AlipayBossProdSubmerchantQueryModel import AlipayBossProdSubmerchantQueryModel
class AlipayBossProdSubmerchantQueryRequest(object):
def __init__(self, biz_model=None):
... | PypiClean |
/shibboleth-get-0.1.1.tar.gz/shibboleth-get-0.1.1/README.md | # Shibboleth Get
*Get the content of pages shielded by Shibboleth*
Many organizations (universities, especially) use [Shibboleth](https://www.shibboleth.net/) as a single-sign-on solution to protect secured webpages. This command line tool returns the page content of a URL that is protected by Shibboleth. It currentl... | PypiClean |
/rebookmaker-0.8.10.tar.gz/rebookmaker-0.8.10/CHANGELOG.rst | =====================
Appendix C. Changelog
=====================
:Info: This is the changelog for rebookmaker.
:Author: Shlomi Fish <shlomif@cpan.org>
:Copyright: © 2020, Shlomi Fish.
:License: BSD (see /LICENSE or :doc:`Appendix B <LICENSE>`.)
:Date: 2023-06-19
:Version: 0.8.10
.. index:: CHANGELOG
GitHub holds rel... | PypiClean |
/youtube_dl_fork-2022.6.30.tar.gz/youtube_dl_fork-2022.6.30/youtube_dl/extractor/ntvde.py | from __future__ import unicode_literals
import re
from .common import InfoExtractor
from ..compat import compat_urlparse
from ..utils import (
int_or_none,
js_to_json,
parse_duration,
)
class NTVDeIE(InfoExtractor):
IE_NAME = 'n-tv.de'
_VALID_URL = r'https?://(?:www\.)?n-tv\.de/mediathek/videos/... | PypiClean |
/pyseneye_windows-0.0.2.tar.gz/pyseneye_windows-0.0.2/pyseneye_windows/sud.py | import time
import struct
from abc import ABC
from array import array
from enum import Enum
import usb.core
import usb.util
from usb.core import USBError
# used to identify the undelying USB device
VENDOR_ID = 9463
PRODUCT_ID = 8708
# Based on the structs from Seneye sample C++ code
# https://github.com/seneye/SUDD... | PypiClean |
/cefkivy-ebs-66.0.10.tar.gz/cefkivy-ebs-66.0.10/cefkivy/mixins/popup.py | from ..components.blockdialog import PopupBlockDialog
class PopupMixin(object):
popup = None
def __init__(self):
self.register_event_type("on_before_popup")
# Logger.debug("cefkivy: Instantiating Browser Popup")
# self.popup = CefBrowserPopup(self)
def on_before_popup(self, brows... | PypiClean |
/cupy_cuda12x-12.2.0-cp38-cp38-manylinux2014_x86_64.whl/cupy/_core/_fusion_op.py | import string
import numpy
from cupy._core import _codeblock
from cupy._core._fusion_variable import _TraceVariable
from cupy._core._fusion_variable import _TraceArray
from cupy._core._fusion_variable import _VariableSet
from cupy._core import _fusion_thread_local
from cupy._core import _kernel
from cupy._core import... | PypiClean |
/ehelply_python_experimental_sdk-1.1.118-py3-none-any.whl/ehelply_python_experimental_sdk/api/catalogs_api_endpoints/get_catalog.py | from dataclasses import dataclass
import re # noqa: F401
import sys # noqa: F401
import typing
import urllib3
import functools # noqa: F401
from urllib3._collections import HTTPHeaderDict
from ehelply_python_experimental_sdk import api_client, exceptions
import decimal # noqa: F401
from datetime import date, datet... | PypiClean |
/manageiq-client-0.6.0.tar.gz/manageiq-client-0.6.0/src/manageiq_client/filters.py | from .utils import escape_filter
OPERATORS = {u'=', u'!=', u'<', u'<=', u'>=', u'>'}
def gen_filter(name, op, value, is_or=False):
"""Generates a single filter expression for ``filter[]``."""
if op not in OPERATORS:
raise ValueError('Unknown operator {}'.format(op))
result = u'{} {} {}'.format(na... | PypiClean |
/d_geolib_plus-0.3.0-py3-none-any.whl/geolib_plus/shm/nkt_utils.py | from enum import IntEnum
from typing import Iterable, Optional, Union
import numpy as np
from pydantic import BaseModel
from scipy.optimize import minimize as sc_minimize
from geolib_plus.shm.prob_utils import ProbUtils
class NktMethod(IntEnum):
REGRESSION = 1
STATISTICS = 2
class NktUtils(BaseModel):
... | PypiClean |
/COMPAS-1.17.5.tar.gz/COMPAS-1.17.5/src/compas_rhino/forms/chart.py | from __future__ import print_function
from __future__ import absolute_import
from __future__ import division
try:
basestring
except NameError:
basestring = str
from compas_rhino.forms.base import BaseForm
import clr
from System.Drawing import Size
from System.Drawing import Point
from System.Drawing import C... | PypiClean |
/bob.paper.btas_j2016-1.0.3.zip/bob.paper.btas_j2016-1.0.3/bob/paper/btas_j2016/plot_pad_results.py |
from __future__ import print_function
"""This script reads given score files (four column format), computes error rates, and plots DET curves"""
import bob.measure
import argparse
import numpy, math
import os
import os.path
import sys
import matplotlib.pyplot as mpl
import matplotlib.font_manager as fm
import bob... | PypiClean |
/Num_CFS_Cluster-0.5.3.tar.gz/Num_CFS_Cluster-0.5.3/README.md | # Causal-Fermion-System-of-Dirac-Sphere
Basically for a set of parameters i use Symengine to produce a function, which is the integrand of the Action-Integral. The integration is done numerically. I am searching for the set of parameters, which minimizes the Integral.
[Causal-Fermion-Systems](https://en.wikipedia.org/... | PypiClean |
/django-mobile-0.7.0.tar.gz/django-mobile-0.7.0/django_mobile/loader.py | import hashlib
from django.template import TemplateDoesNotExist
from django.template.loaders.cached import Loader as DjangoCachedLoader
from django_mobile import get_flavour
from django_mobile.conf import settings
from django_mobile.compat import BaseLoader, template_loader, template_from_string
from django.utils.encod... | PypiClean |
/lucene-querybuilder-0.2.tar.gz/lucene-querybuilder-0.2/lucenequerybuilder/query.py | import sys
if sys.version_info > (3, 0):
basestring = str
class Q(object):
""" Q is a query builder for the lucene language."""
specialchars = r'+-!(){}[]^"~*?\:'
doublechars = '&&||'
def __init__(self, *args, **kwargs):
"""
"""
self.must = []
self.must_not = []
... | PypiClean |
/contig%20tools-0.3.9.tar.gz/contig tools-0.3.9/contig_tools/check_metrics.py | from contig_tools.file_parsing import import_contig_records
from contig_tools.contig_metrics import get_contig_metrics
from contig_tools.utility import get_logger
import yaml
logger = get_logger(__file__)
def print_check_contig_metrics(fasta_file_path, conditions_yml_file):
'''Print results of checking contig me... | PypiClean |
/mkdocs_material_merore-9.2.0b3.tar.gz/mkdocs_material_merore-9.2.0b3/material/assets/javascripts/lunr/min/lunr.nl.min.js | * based on
* Snowball JavaScript Library v0.3
* http://code.google.com/p/urim/
* http://snowball.tartarus.org/
*
* Copyright 2010, Oleg Mazko
* http://www.mozilla.org/MPL/
*/
!function(r,e){"function"==typeof define&&define.amd?define(e):"object"==typeof exports?module.exports=e():e()(r.lunr)}(this,function(){... | PypiClean |
/python_bikewise-0.1.0-py3-none-any.whl/bikewise/bikewise.py |
import json
import requests
def api_method(method):
"""Decorator for using method signatures for generating url endpoint."""
def wrapper(self, *args, **kwargs):
method(self, *args, **kwargs)
api = self.api
parameters = self.parameters
endpoint = '&'.join(['{}={}'.format(key, v... | PypiClean |
/ModbusGuiApp-1.1-py3-none-any.whl/modbus_gui_app/gui/gui_left_side.py | from PySide2 import QtCore
from PySide2.QtWidgets import QHBoxLayout, QLabel, QComboBox, QStackedWidget, QWidget, QVBoxLayout, QLineEdit, QGroupBox
def _left_side_request_options_init(left_side_layout):
select_operation_box = QGroupBox()
select_operation_layout = QHBoxLayout()
select_operation_layout.setA... | PypiClean |
/cognitoAuth-0.0.8.tar.gz/cognitoAuth-0.0.8/CONTRIBUTING.md | # How to contribute
## How to get started
Before anything else, please install the git hooks that run automatic scripts during each commit and merge to strip the notebooks of superfluous metadata (and avoid merge conflicts). After cloning the repository, run the following command inside it:
```
nbdev_install_git_hook... | PypiClean |
/web3_reactor-0.1.0.tar.gz/web3_reactor-0.1.0/web3_reactor/core/context.py | import typing as t
from contextvars import ContextVar
from dataclasses import dataclass, field
from functools import partial
from time import time as get_time
from weakref import WeakValueDictionary
from werkzeug.local import LocalProxy
from web3_reactor.services.UUID import UUID, uuid
if t.TYPE_CHECKING:
from w... | PypiClean |
/sn_nacl-0.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.whl/nacl/lib/dataproxy.py | import numpy as np
import pandas
# from ..util.io import NTuple
class DataProxy:
""" Provide flexible ntuple manipulation.
In particular allows to map fields of a ntuple to arbitrary field
names and eases the creation of index for fields.
"""
def __init__(self, datasrc, **keys):
"""Param... | PypiClean |
/nltk-ma-0.0.6.tar.gz/nltk-ma-0.0.6/nltkma/classify/megam.py | import subprocess
from nltkma.internals import find_binary
try:
import numpy
except ImportError:
numpy = None
######################################################################
# { Configuration
######################################################################
_megam_bin = None
def config_megam(b... | PypiClean |
/mis_modulos-0.1.tar.gz/mis_modulos-0.1/tensorflow/python/ops/gen_ragged_conversion_ops.py | import collections
from tensorflow.python import pywrap_tfe as pywrap_tfe
from tensorflow.python.eager import context as _context
from tensorflow.python.eager import core as _core
from tensorflow.python.eager import execute as _execute
from tensorflow.python.framework import dtypes as _dtypes
from tensorflow.python.f... | PypiClean |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.