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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for astral_projection-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | db97d446cceb8a72bf55048cc7ba9046fccf4c93548d4c241cbf1ae2da4fca2a |
|
MD5 | 47d12f2ac560c44e20268e8119fffd9f |
|
BLAKE2b-256 | f72a0287c33260c90f13fa611d7e2b11c5dbd29b750295d25783af95a08aa0f1 |