linkml / prefixmaps

Semantic prefix map registry
https://linkml.io/prefixmaps/
Apache License 2.0
10 stars 3 forks source link

Enable top-level imports #5

Closed cthoyt closed 1 year ago

cthoyt commented 1 year ago

It's not very ergonomic to have to know two subpackages to get the most standard functionality. This PR replaces the need to do this

from prefixmaps.io.parser import load_context

with the more ergonomic

from prefixmaps import load_context
cmungall commented 1 year ago

@hrshdhgd can you resolve? recall we have this general version introspection issue that needs resolved

cthoyt commented 1 year ago

@hrshdhgd you need to turn on pre commit hooks or better remember to lint code after changing it, that’s causing a lot of issues. Further, you probably need to add a conditional dependency for this.