Skip to main content

Run code inside a context manager on a remote machine

Project description

astral-projection

Like it's real-world counterpart (if you can call it that), this package allows your code to have out-of-body experiences. Its effectiveness is also disputed by experts.

Usage:

import sys
import os
from astral_projection import host

x = 23

with host("l3vi.de"):
    os.system("hostname")
    print("hello!", x)
    for i in range(10):
        print("hi", i, file=sys.stderr)
    x += 1

print("x is now", x)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

astral-projection-0.1.1.tar.gz (2.6 kB view hashes)

Uploaded Source

Built Distribution

astral_projection-0.1.1-py3-none-any.whl (2.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page