teamtomo / starfile

STAR file I/O in Python
https://teamtomo.org/starfile/
BSD 3-Clause "New" or "Revised" License
44 stars 19 forks source link

command line interface #15

Closed brisvag closed 3 years ago

brisvag commented 3 years ago

This would add click and ipython to the dependencies, but it makes interacting with star file super easy.

Replace the usual less thing.star with starfile thing.star, and you get dropped in an ipython console, ready to go and handle the star file with the power of pandas :)

alisterburt commented 3 years ago

this is really cool! love it - could you make the extra dependencies optional in setup.cfg under an 'interactive' header?

That way we could pip install starfile[interactive] to have this functionality but avoid the extra deps

example here https://github.com/napari/napari/blob/6ef2e2787341283af0f2659189202e2614a025e9/setup.cfg#L75-L117

brisvag commented 3 years ago

Sure! But I think cli is a better identifier :P