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
File details
Details for the file astral-projection-0.1.1.tar.gz
.
File metadata
- Download URL: astral-projection-0.1.1.tar.gz
- Upload date:
- Size: 2.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.10.0 Darwin/21.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 78569eb08725961c6bcc0738e481a6febbb5a77bb3bc292ac15bbf345e94fc84 |
|
MD5 | 70415973abb140007e1f576a355d7a33 |
|
BLAKE2b-256 | f642bba98e7ecb5e6fd7f1a69af7893dca877537142802b649494b4a7f7e5c2a |
File details
Details for the file astral_projection-0.1.1-py3-none-any.whl
.
File metadata
- Download URL: astral_projection-0.1.1-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.1.11 CPython/3.10.0 Darwin/21.5.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | db97d446cceb8a72bf55048cc7ba9046fccf4c93548d4c241cbf1ae2da4fca2a |
|
MD5 | 47d12f2ac560c44e20268e8119fffd9f |
|
BLAKE2b-256 | f72a0287c33260c90f13fa611d7e2b11c5dbd29b750295d25783af95a08aa0f1 |