Add Python library (#20)

This commit is contained in:
Oleg Kalachev
2025-07-22 14:17:08 +03:00
committed by GitHub
parent 779fa13e80
commit 1f47aa6d62
12 changed files with 713 additions and 2 deletions

13
tools/cli.py Executable file
View File

@@ -0,0 +1,13 @@
#!/usr/bin/env python3
# Remote CLI for Flix
from pyflix import Flix
flix = Flix()
flix.on('print', lambda text: print(text, end=''))
while True:
command = input()
flix.cli(command, wait_response=False)