Skip to content

Commit f524739

Browse files
authored
feat(client): support namespace and requester (#217)
Because - improve DX of client usage and endpoint functions This commit - unify client initialization interface - support client level `requester` - support endpoint level target `namespace` - remove configuration system resolves INS-6456 resolves INS-6457 resolves INS-6458
1 parent 19563ac commit f524739

File tree

13 files changed

+1340
-2844
lines changed

13 files changed

+1340
-2844
lines changed

instill/__main__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
#!/usr/bin/env python
22

33
"""Package entry point."""
4-
import pprint
5-
6-
from instill.configuration import global_config
74

85
if __name__ == "__main__": # pragma: no cover
9-
# main() # pylint: disable=no-value-for-parameter
10-
print("======================Configured Hosts======================")
11-
pprint.pprint(global_config.hosts)
6+
pass # pylint: disable=no-value-for-parameter

instill/clients/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from instill.clients.client import InstillClient, get_client
1+
from instill.clients.client import InstillClient, init_core_client
22
from instill.clients.mgmt import MgmtClient
33
from instill.clients.model import ModelClient
44
from instill.clients.pipeline import PipelineClient

0 commit comments

Comments
 (0)