-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathbridge.py
More file actions
25 lines (21 loc) · 770 Bytes
/
bridge.py
File metadata and controls
25 lines (21 loc) · 770 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# Using eel, this file exposes Python functions so that Vue.js can call them
import eel
from fetch_service import FetchService
from tenant_service import TenantService
from utility import get_fetcher_script, get_current_version
from utility import ask_directory_path
from utility import open_directory
# Exposing Tenant Service methods
tenant_service = TenantService()
eel.expose(tenant_service.get_all_tenants)
eel.expose(tenant_service.add_tenant)
eel.expose(tenant_service.update_tenant)
eel.expose(tenant_service.delete_tenant)
# Exposing Fetch Service methods
fetch_service = FetchService()
eel.expose(fetch_service.fetch)
# Utility methods
eel.expose(get_fetcher_script)
eel.expose(ask_directory_path)
eel.expose(open_directory)
eel.expose(get_current_version)