lambdamusic / Ontospy

Python library and command-line interface for inspecting and visualizing RDF models aka ontologies.
http://lambdamusic.github.io/Ontospy/
MIT License
219 stars 52 forks source link

Bloated installation requirements #20

Closed cthoyt closed 7 years ago

cthoyt commented 7 years ago

While it's packed full of great features, unfortunately, the installation footprint of OntoSpy is rather large.

Would you consider splitting this package into multiple components/plugins, such as the way that Flask, SQLAlchemy and other modules do?

My use case is just for parsing and programatic traversal of RDF/SKOS/OWL documents and have less interest in visualization/command line components. I can imagine other people might just have a use for one of these components, but not all.

lambdamusic commented 7 years ago

Thanks, that's a fair comment, it's something I've been meaning to do but never got down to.

cthoyt commented 7 years ago

I hope it's not annoying that I keep making suggestions to your library - if it's getting excessive I will stop :)

I have one more idea on how to do this easily, without changing much code - using the extras-require in setuptools it's possible to skip installing some of these dependencies (without changing any code) if a user isn't planning on using them (see PR #22 for how I used this to remove the readline dependency that's a bit problematic)

lambdamusic commented 7 years ago

FYI I've now separated out all the core APIs from the documentation library, which lives in the OntoDocs package. The requirements for OntoSpy are much more lightweight. Hope this helps!