Skip to content

Commit c48d6a4

Browse files
committed
Implementation of ID Code import functionality
Signed-off-by: Samuel Babak <samuel.babak@sas.com>
1 parent 377b659 commit c48d6a4

5 files changed

Lines changed: 427 additions & 25 deletions

File tree

src/sasctl/_services/files.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ def create_file(cls, file, folder=None, filename=None, expiration=None):
6161

6262
with open(file, "rb") as f:
6363
file = f.read()
64-
else:
64+
65+
elif not isinstance(file, bytes):
6566
if filename is None:
6667
raise ValueError(
6768
"`filename` must be specified if `file` is not a path."

src/sasctl/pzmm/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Copyright (c) 2021, SAS Institute Inc., Cary, NC, USA. All Rights Reserved.
22
# SPDX-License-Identifier: Apache-2.0
33

4+
from .code_file import CodeFile
45
from .git_integration import GitIntegrate
56
from .import_model import ImportModel
67
from .mlflow_model import MLFlowModel

0 commit comments

Comments
 (0)