forked from typesense/typesense-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathclient.py
More file actions
21 lines (20 loc) · 784 Bytes
/
client.py
File metadata and controls
21 lines (20 loc) · 784 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
from .aliases import Aliases
from .debug import Debug
from .collections import Collections
from .multi_search import MultiSearch
from .keys import Keys
from .operations import Operations
from .configuration import Configuration
from .api_call import ApiCall
from .analytics import Analytics
class Client(object):
def __init__(self, config_dict):
self.config = Configuration(config_dict)
self.api_call = ApiCall(self.config)
self.collections = Collections(self.api_call)
self.multi_search = MultiSearch(self.api_call)
self.keys = Keys(self.api_call)
self.aliases = Aliases(self.api_call)
self.analytics = Analytics(self.api_call)
self.operations = Operations(self.api_call)
self.debug = Debug(self.api_call)