-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #103 from dpguthrie/sl-client
Semantic Layer Client
- Loading branch information
Showing
10 changed files
with
1,130 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,15 @@ | ||
# third party | ||
import requests | ||
|
||
# first party | ||
from dbtc.client.admin import _AdminClient | ||
from dbtc.client.metadata import _MetadataClient | ||
from dbtc.client.semantic_layer import _SemanticLayerClient | ||
|
||
|
||
class dbtCloudClient: | ||
def __init__(self, **kwargs): | ||
self.cloud = _AdminClient(**kwargs) | ||
self.metadata = _MetadataClient(**kwargs) | ||
session = requests.Session() | ||
self.cloud = _AdminClient(session, **kwargs) | ||
self.metadata = _MetadataClient(session, **kwargs) | ||
self.sl = _SemanticLayerClient(session, **kwargs) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.