teleprox


Nameteleprox JSON
Version 2.1.1 PyPI version JSON
download
home_pageNone
SummaryObject proxies over TCP
upload_time2025-10-06 20:53:00
maintainerNone
docs_urlNone
authorLuke Campagnola, Samuel Garcia, Martin Chase
requires_python>=3.6
licenseCopyright (c) 2016, French National Center for Scientific Research (CNRS) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the CNRS nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Teleprox: simple python object proxies over TCP

[![Tests](https://github.com/campagnola/teleprox/actions/workflows/test.yml/badge.svg)](https://github.com/campagnola/teleprox/actions)
[![PyPI version](https://badge.fury.io/py/teleprox.svg)](https://badge.fury.io/py/teleprox)

No declarations required; just access remote objects as if they are local.

Requires
--------

- python 3
- pyzmq
- msgpack
- numpy (optional; required only for SharedNDArray)


Examples
--------

```python
from teleprox import start_process
import time

# start a new process
proc = start_process()

# import os in the remote process
remote_os = proc.client._import('os')

# call os.getpid() in the remote process
pid = remote_os.getpid()

# or, call getpid asynchronously and wait for the result:
request = remote_os.getpid(_sync='async')
while not request.hasResult():
    time.sleep(0.01)
pid = request.result()

# write to sys.stdout in the remote process, and ignore the return value
remote_sys = proc.client._import('sys')
remote_sys.stdout.write('hello', _sync='off')

proc.stop()
```

Teleprox was originally developed as pyacq.core.rpc by the French National Center for Scientific Research (CNRS).

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "teleprox",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": null,
    "keywords": null,
    "author": "Luke Campagnola, Samuel Garcia, Martin Chase",
    "author_email": null,
    "download_url": "https://files.pythonhosted.org/packages/eb/11/f072cf3a34527e3ba12f7c99b349a46a5e8c86cee4e24e65aac192edf882/teleprox-2.1.1.tar.gz",
    "platform": null,
    "description": "# Teleprox: simple python object proxies over TCP\n\n[![Tests](https://github.com/campagnola/teleprox/actions/workflows/test.yml/badge.svg)](https://github.com/campagnola/teleprox/actions)\n[![PyPI version](https://badge.fury.io/py/teleprox.svg)](https://badge.fury.io/py/teleprox)\n\nNo declarations required; just access remote objects as if they are local.\n\nRequires\n--------\n\n- python 3\n- pyzmq\n- msgpack\n- numpy (optional; required only for SharedNDArray)\n\n\nExamples\n--------\n\n```python\nfrom teleprox import start_process\nimport time\n\n# start a new process\nproc = start_process()\n\n# import os in the remote process\nremote_os = proc.client._import('os')\n\n# call os.getpid() in the remote process\npid = remote_os.getpid()\n\n# or, call getpid asynchronously and wait for the result:\nrequest = remote_os.getpid(_sync='async')\nwhile not request.hasResult():\n    time.sleep(0.01)\npid = request.result()\n\n# write to sys.stdout in the remote process, and ignore the return value\nremote_sys = proc.client._import('sys')\nremote_sys.stdout.write('hello', _sync='off')\n\nproc.stop()\n```\n\nTeleprox was originally developed as pyacq.core.rpc by the French National Center for Scientific Research (CNRS).\n",
    "bugtrack_url": null,
    "license": "Copyright (c) 2016, French National Center for Scientific Research (CNRS)\n        All rights reserved.\n        \n        Redistribution and use in source and binary forms, with or without\n        modification, are permitted provided that the following conditions are met:\n        \n        1. Redistributions of source code must retain the above copyright notice, this \n        list of conditions and the following disclaimer.\n        \n        2. Redistributions in binary form must reproduce the above copyright notice,\n        this list of conditions and the following disclaimer in the documentation\n        and/or other materials provided with the distribution.\n        \n        3. Neither the name of the CNRS nor the names of its contributors may be used\n        to endorse or promote products derived from this software without specific\n        prior written permission.\n        \n        THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\"\n        AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE\n        IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\n        DISCLAIMED. IN NO EVENT SHALL THE HOLDERS AND CONTRIBUTORS BE LIABLE FOR ANY\n        DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n        (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\n        LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND\n        ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n        (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\n        SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n        ",
    "summary": "Object proxies over TCP",
    "version": "2.1.1",
    "project_urls": {
        "Homepage": "http://github.com/campagnola/teleprox",
        "Repository": "http://github.com/campagnola/teleprox"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5627ff3e210bc032066a6019b351a3a01b6e00d8f4118e2f597b730da48bb262",
                "md5": "906b99ec9abbf7b43c2ef0a58ba1538e",
                "sha256": "1eaebf79b862c64a40972a70988670fdeba973640aedfd542c2bbe7af3a8bc19"
            },
            "downloads": -1,
            "filename": "teleprox-2.1.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "906b99ec9abbf7b43c2ef0a58ba1538e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 49380,
            "upload_time": "2025-10-06T20:52:58",
            "upload_time_iso_8601": "2025-10-06T20:52:58.901772Z",
            "url": "https://files.pythonhosted.org/packages/56/27/ff3e210bc032066a6019b351a3a01b6e00d8f4118e2f597b730da48bb262/teleprox-2.1.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "eb11f072cf3a34527e3ba12f7c99b349a46a5e8c86cee4e24e65aac192edf882",
                "md5": "b1663f0664a9f54e8650f4f40da7e740",
                "sha256": "436774b27715ade32a57fec056ac9d7845dd20db4b14ea0058923df9b344ced9"
            },
            "downloads": -1,
            "filename": "teleprox-2.1.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b1663f0664a9f54e8650f4f40da7e740",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 43490,
            "upload_time": "2025-10-06T20:53:00",
            "upload_time_iso_8601": "2025-10-06T20:53:00.466758Z",
            "url": "https://files.pythonhosted.org/packages/eb/11/f072cf3a34527e3ba12f7c99b349a46a5e8c86cee4e24e65aac192edf882/teleprox-2.1.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-10-06 20:53:00",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "campagnola",
    "github_project": "teleprox",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "teleprox"
}
        
Elapsed time: 0.99830s