mirror of
https://github.com/romanz/electrs.git
synced 2025-02-25 15:20:36 +01:00
15 lines
368 B
Python
Executable file
15 lines
368 B
Python
Executable file
#!/usr/bin/env python3
|
|
import argparse
|
|
import client
|
|
|
|
def main():
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument("host")
|
|
parser.add_argument("port", type=int)
|
|
args = parser.parse_args()
|
|
|
|
conn = client.Client((args.host, args.port))
|
|
print(conn.call("server.version", "health_check", "1.4")["result"])
|
|
|
|
if __name__ == '__main__':
|
|
main()
|