L3viathan / astral-projection

Out-of-body experiences for your Python code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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)

About

Out-of-body experiences for your Python code


Languages

Language:Python 100.0%