pepkit / pepdbagent

Database for storing sample metadata
BSD 2-Clause "Simplified" License
2 stars 1 forks source link

Add a `get_namespaces` method #13

Closed nleroy917 closed 2 years ago

nleroy917 commented 2 years ago

This might not be essential, but could speed things up if implemented. It would be nice to have a function that obtains all the unique namespace's inside a pephub database. I envision the API being used as such:

>>> nspaces = db.get_namespaces()
>>> nspaces
>>> ['demo', 'geo', 'nfcore' ... ]

This helps quickly populate a lot of the html splash pages we have.

khoroshevskyi commented 2 years ago

Fixed!