Skip to main content

Remotely is a simple and secure remote code execution api that supports both asynchronous and blocking execution.

Remotely can be used for:

  • distributing tasks to other boxes in parallel

  • running coding under other versions of python

  • accessing libraries not available on the current box such as using win32com from linux

  • accessing resources (files etc) on another box

You start the remotely server on the box where you want to execute code.

from remotely import create_remotely_server
server = create_remotely_server("YOUR_API_KEY", PORT)
server.serve_forever()
...

And you use the remotely decorater for any function you want to run remotely.

from remotely import remotely

@remotely("YOUR_API_KEY", SERVER, PORT)
def remote_code():
    # import required packages
    # do something here
    return result

# function will be executed on the remote server
remote_code()

The asynchronous (non-blocking) version runs the function as a separate process on the remote server and supports simple job management functions (join and kill).

from remotely import RemoteClient
rc = RemoteClient("API_KEY", SERVER, PORT)
pid = rc.run(foo, arg1, arg2=key2)
output = rc.join(pid)
output = rc.kill(pid)

Created by Kefei Zhou (kefei.zhou at gmail)
Licensed under BSD 3-Clause, included as LICENSE in the source distribution.

Metadata

Release files for remotely 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for remotely 0.2.0
File Size Uploaded Provenance Actions
remotely-0.2.0.tar.gz 6.0 kB Without provenance Details for remotely-0.2.0.tar.gz

Release files / remotely-0.2.0.tar.gz

Download URL remotely-0.2.0.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
80d6652021fc4b6bf1a60e4a6beb809d314a5e2a7704c4fd82a4dd6251fa87f8
BLAKE2b-256 checksum
How to use checksums
42350b9dcdc6b9fbc21bee187e6328a04c3aa530b178a2e472860a3c5c9ba35b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for remotely 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page