2020-06-04 14:28:45 -03:00
|
|
|
#Developer: Curly60e
|
|
|
|
|
#PyBLOCK its a clock of the Bitcoin blockchain.
|
2020-07-25 10:52:44 -03:00
|
|
|
|
2020-06-04 14:28:45 -03:00
|
|
|
|
2020-05-22 18:30:15 -03:00
|
|
|
import os
|
|
|
|
|
import os.path
|
2026-04-01 10:24:47 -03:00
|
|
|
import subprocess
|
2020-05-22 18:30:15 -03:00
|
|
|
import time as t
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
def gitclone():
|
2020-06-03 11:10:12 -03:00
|
|
|
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"])
|
2020-06-13 20:58:40 -03:00
|
|
|
|
2020-05-22 18:30:15 -03:00
|
|
|
def satnode():
|
2020-05-25 19:35:24 -03:00
|
|
|
try:
|
2026-04-01 10:24:47 -03:00
|
|
|
subprocess.run(["python3", "satellite/api/examples/demo-rx.py"])
|
2020-05-25 19:35:24 -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", "-9", "-f", "api_data_reader.py"])
|
|
|
|
|
subprocess.run(["pkill", "-9", "-f", "demo-rx.py"])
|
2020-06-13 20:58:40 -03:00
|
|
|
|
2020-05-29 11:52:29 -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])
|