This commit is contained in:
saces 2026-01-12 17:39:34 +01:00
parent 16f964f41d
commit 3bb4ee9def
14 changed files with 219 additions and 7 deletions

View file

@ -0,0 +1 @@
from .discoverhs import discoverhs

View file

@ -0,0 +1,16 @@
import sys
from _pygomx import lib, ffi
def discoverhs():
if len(sys.argv) != 2:
print("usage: ", sys.argv[0], " matrixid")
return 1
mxid = sys.argv[1].encode(encoding="utf-8")
print("try to discover from: ", mxid)
r = lib.discoverhs(mxid)
result = ffi.string(r)
print(result)

View file

View file