2022-03-15 21:23:22 -03:00
|
|
|
#Developer: Curly60e
|
|
|
|
|
#PyBLOCK its a clock of the Bitcoin blockchain.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import os
|
|
|
|
|
import os.path
|
2026-04-01 10:24:47 -03:00
|
|
|
import subprocess
|
2022-03-15 21:23:22 -03:00
|
|
|
import time as t
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def gitclone():
|
|
|
|
|
url = "https://github.com/curly60e/satellite"
|
2026-04-01 10:24:47 -03:00
|
|
|
subprocess.run(['git', 'clone', url])
|
|
|
|
|
subprocess.run(['mkdir', 'satellite/api/examples/.gnupg'])
|
|
|
|
|
subprocess.run(['gpg', '--full-generate-key', '--homedir', 'satellite/api/examples/.gnupg'])
|
2022-03-15 21:23:22 -03:00
|
|
|
|
|
|
|
|
def satnode():
|
|
|
|
|
try:
|
2026-04-01 10:24:47 -03:00
|
|
|
subprocess.Popen(['python3', 'satellite/api/examples/demo-rx.py'])
|
2022-03-15 21:23:22 -03:00
|
|
|
t.sleep(5)
|
2026-04-01 10:24:47 -03:00
|
|
|
subprocess.run(['python3', 'satellite/api/examples/api_data_reader.py', '--demo', '--plaintext'])
|
|
|
|
|
except Exception:
|
|
|
|
|
subprocess.run(['pkill', '-f', 'api_data_reader.py'])
|
|
|
|
|
subprocess.run(['pkill', '-f', 'demo-rx.py'])
|
2022-03-15 21:23:22 -03:00
|
|
|
|
|
|
|
|
def matrixsc():
|
|
|
|
|
if os.path.isdir('$HOME/pyblock/terminal_matrix'):
|
|
|
|
|
print("OK Pass")
|
|
|
|
|
else:
|
|
|
|
|
url = "https://github.com/curly60e/terminal_matrix.git"
|
2026-04-01 10:24:47 -03:00
|
|
|
subprocess.run(['git', 'clone', url])
|