-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
The Bioregistry (https://bioregistry.io; https://github.com/bioregistry/bioregistry) integrates the resources mentioned on the readme as well as several more. You could ping its API to see if there is a prefix (or synonym of a prefix) already available:
import requests
prefix = ...
res = requests.get(f'https://bioregistry.io/api/registry/{prefix}').json()I just realized it gives a 500 if there's no entry so I need to make an update. Alternatively you could pip install the package that holds the data and do
import bioregistry
resource = bioregistry.get('nope')
assert resource is NoneMetadata
Metadata
Assignees
Labels
No labels