mirror of
https://github.com/okalachev/flix.git
synced 2026-06-28 05:56:44 +00:00
Add Python library (#20)
This commit is contained in:
Executable
+13
@@ -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)
|
||||
Reference in New Issue
Block a user