Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Top 6 Examples of "apipkg in functional component" in Python

Dive into secure and efficient coding practices with our curated list of the top 10 examples showcasing 'apipkg' in functional components in Python. Our advanced machine learning engine meticulously scans each line of code, cross-referencing millions of open source libraries to ensure your implementation is not just functional, but also robust and secure. Elevate your React applications to new heights by mastering the art of handling side effects, API calls, and asynchronous operations with confidence and precision.

# -*- coding: utf-8 -*-
"""
execnet
-------

pure python lib for connecting to local and remote Python Interpreters.

(c) 2012, Holger Krekel and others
"""
import apipkg

apipkg.initpkg(
    __name__,
    {
        "__version__": "._version:version",
        "PopenGateway": ".deprecated:PopenGateway",
        "SocketGateway": ".deprecated:SocketGateway",
        "SshGateway": ".deprecated:SshGateway",
        "makegateway": ".multi:makegateway",
        "set_execmodel": ".multi:set_execmodel",
        "HostNotFound": ".gateway_bootstrap:HostNotFound",
        "RemoteError": ".gateway_base:RemoteError",
        "TimeoutError": ".gateway_base:TimeoutError",
        "XSpec": ".xspec:XSpec",
        "Group": ".multi:Group",
        "MultiChannel": ".multi:MultiChannel",
        "RSync": ".rsync:RSync",
        "default_group": ".multi:default_group",
"""Module docstring."""

import apipkg

apipkg.initpkg(
    __name__,
    {
        "data_path": "._data:data_path",
        "zip_data_paths": "._data:zip_data_paths",
        "Delivery": "._delivery:Delivery",
        "gamma": "._gamma.implementation.shell:gamma_shell",
        "read_trf": "._trf:read_trf",
        "__version__": "._version:__version__",
        "version_info": "._version:version_info",
    },
)

from . import (  # isort:skip pylint:disable = wrong-import-position
    dicom,
#

import apipkg
apipkg.initpkg(__name__, {
    'commands': {
        "HelpCommand": "clish._commands._HelpCommand:HelpCommand",
        "ExitCommand": "clish._commands._ExitCommand:ExitCommand",
    },

    'Namespace': "clish._Namespace:Namespace",
    'Command'  : "clish._Command:Command",
    'Shell'    : "clish._Shell:Shell",

    # DEPRECATE NAMES
    'InteractiveCommand' : "clish._Command:Command",
    'InteractiveShell'   : "clish._Shell:Shell",
})
from py._vendored_packages import apipkg
    lib_not_mangled_by_packagers = True
    vendor_prefix = '._vendored_packages.'
except ImportError:
    import apipkg
    lib_not_mangled_by_packagers = False
    vendor_prefix = ''

try:
    from ._version import version as __version__
except ImportError:
    # broken installation, we don't even try
    __version__ = "unknown"


apipkg.initpkg(__name__, attr={'_apipkg': apipkg, 'error': error}, exportdefs={
    # access to all standard lib modules
    'std': '._std:std',

    '_pydir' : '.__metainfo:pydir',
    'version': 'py:__version__', # backward compatibility

    # pytest-2.0 has a flat namespace, we use alias modules
    # to keep old references compatible
    'test' : 'pytest',

    # hook into the top-level standard library
    'process' : {
        '__doc__'        : '._process:__doc__',
        'cmdexec'        : '._process.cmdexec:cmdexec',
        'kill'           : '._process.killproc:kill',
        'ForkedFunc'     : '._process.forkedfunc:ForkedFunc',
from py._vendored_packages import apipkg
    lib_not_mangled_by_packagers = True
    vendor_prefix = '._vendored_packages.'
except ImportError:
    import apipkg
    lib_not_mangled_by_packagers = False
    vendor_prefix = ''

try:
    from ._version import version as __version__
except ImportError:
    # broken installation, we don't even try
    __version__ = "unknown"


apipkg.initpkg(__name__, attr={'_apipkg': apipkg, 'error': error}, exportdefs={
    # access to all standard lib modules
    'std': '._std:std',

    '_pydir' : '.__metainfo:pydir',
    'version': 'py:__version__', # backward compatibility

    # pytest-2.0 has a flat namespace, we use alias modules
    # to keep old references compatible
    'test' : 'pytest',

    # hook into the top-level standard library
    'process' : {
        '__doc__'        : '._process:__doc__',
        'cmdexec'        : '._process.cmdexec:cmdexec',
        'kill'           : '._process.killproc:kill',
        'ForkedFunc'     : '._process.forkedfunc:ForkedFunc',
from apipkg import initpkg
initpkg(
    __name__,
    dict(
        jobs="qs.jobs",
        proc="qs.proc",
        qserve="qs.qserve",
        rpcclient="qs.rpcclient",
        rpcserver="qs.rpcserver",
        slave="qs.slave"))

Is your System Free of Underlying Vulnerabilities?
Find Out Now