20 lines
396 B
Python
20 lines
396 B
Python
__all__ = (
|
|
"exceptions",
|
|
"types",
|
|
)
|
|
|
|
from . types import (
|
|
Package,
|
|
Repository,
|
|
)
|
|
from pathlib import Path
|
|
|
|
def load_repositories(repo_storage_path: Path) -> list:
|
|
repositories = []
|
|
for repofile in repo_storage_path.glob('*.json'):
|
|
# try
|
|
repo = Repository.from_file(repofile)
|
|
# except
|
|
repositories.append(repo)
|
|
return repositories
|