Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "cranecloud"
version = "0.0.9"
version = "1.0.0"
authors = [
{ name="cranecloud", email="allan@cranecloud.io" },
]
Expand Down
2 changes: 1 addition & 1 deletion src/cranecloud.egg-info/PKG-INFO
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: cranecloud
Version: 0.0.9
Version: 1.0.0
Summary: Cranecloud CLI client
Author-email: cranecloud <allan@cranecloud.io>
Project-URL: Homepage, https://github.com/crane-cloud/cranecloud-cli
Expand Down
12 changes: 3 additions & 9 deletions src/cranecloud/core/ml_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,17 @@
from cranecloud.utils.config import read_config



class MLOpsClient:
def __init__(self):
pass

def create_experiment(self, token, verbose=False):
"""Create a new experiment."""
# modify to take token as function parameter
config_file = read_config()
try:
global_settings = config_file['GlobalSettings']
except KeyError:
global_settings = {}

MLOPS_API_BASE_URL = global_settings.get('mlops_base_url')
# TODO: refactor to use configs
MLOPS_API_BASE_URL = "https://staging-mlops.cranecloud.io"

if not MLOPS_API_BASE_URL:
raise ValueError("Invalid experiments URL")

endpoint = f"{MLOPS_API_BASE_URL}/experiments"

Expand Down