-
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.
- Loading branch information
1 parent
802fb42
commit ed9f9f2
Showing
4 changed files
with
58 additions
and
2 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 |
---|---|---|
@@ -0,0 +1,31 @@ | ||
from typing import List, Protocol | ||
|
||
from servicex.models import CachedDataset, TransformRequest, TransformStatus | ||
|
||
|
||
class ServiceXAdapterProtocol(Protocol): | ||
async def get_transforms(self) -> List[TransformStatus]: | ||
... | ||
|
||
def get_code_generators(self): | ||
... | ||
|
||
async def get_datasets( | ||
self, did_finder=None, show_deleted=False | ||
) -> List[CachedDataset]: | ||
... | ||
|
||
async def get_dataset(self, dataset_id=None) -> CachedDataset: | ||
... | ||
|
||
async def delete_dataset(self, dataset_id=None) -> bool: | ||
... | ||
|
||
async def delete_transform(self, transform_id=None): | ||
... | ||
|
||
async def submit_transform(self, transform_request: TransformRequest) -> str: | ||
... | ||
|
||
async def get_transform_status(self, request_id: str) -> TransformStatus: | ||
... |
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