Skip to content

Commit

Permalink
mob next [ci-skip] [ci skip] [skip ci]
Browse files Browse the repository at this point in the history
lastFile:src/skore/project.py
  • Loading branch information
thomass-dev committed Sep 6, 2024
1 parent 2e589f7 commit db49eb5
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/skore/project.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
Path = None
Item = None

def get_filepath_from_project_name(project_name) -> Path:
return None

class Transformer:
@staticmethod
def transform(value) -> Item:
...

class Project:
def __init__(self, transformer, storage):
self.transformer = transformer
self.storage = storage

def put(self, key, value):
self.storage.save(
key,
self.transformer.transform(value),
)

def put_item(self, key, item):
self.storage.save(
key,
item,
)

def load(project_name: str) -> Project:
filepath = get_filepath_from_project_name(project_name)

0 comments on commit db49eb5

Please sign in to comment.