Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement distributed repository #4

Open
cthoyt opened this issue May 23, 2019 · 0 comments
Open

Implement distributed repository #4

cthoyt opened this issue May 23, 2019 · 0 comments

Comments

@cthoyt
Copy link
Member

cthoyt commented May 23, 2019

Should be able to take a list of strings with links to git repositories and take care of cloning, installing, and updating them in a temporary cache.

from bel_repository import DistributedBELRepository

urls = {
    'hbp_knowledge': 'https://github.com/pharmacome/knowledge.git',
    'neurommsig_knowledge': 'https://github.com/neurommsig/neurommsig-knowledge.git',
}

distributed_bel_repository = DistributedBELRepository(
    urls=urls, 
    metadata=...,
)

# Should be able to get graphs the same way and follow the 
# same public API as bel_repository.BELRepository
graphs = distributed_bel_repository.get_graphs()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant