set up for proper repo crap

This commit is contained in:
2024-11-11 20:23:18 +10:00
parent b72d422746
commit bf40e4a3ca
7 changed files with 26 additions and 3 deletions
View File
+8
View File
@@ -0,0 +1,8 @@
from trilium_py.client import ETAPI
import os
server_url = f'{os.environ['TRILIUM_PROTOCOL']}://{os.environ['TRILIUM_HOST']}:{os.environ['TRILIUM_PORT']}'
password = os.environ['TRILIUM_PASS']
ea = ETAPI(server_url)
token = ea.login(password)
print(token)