__init__.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. """DataLad Gooey"""
  2. __docformat__ = 'restructuredtext'
  3. import logging
  4. lgr = logging.getLogger('datalad.ext.gooey')
  5. # Defines a datalad command suite.
  6. # This variable must be bound as a setuptools entrypoint
  7. # to be found by datalad
  8. command_suite = (
  9. # description of the command suite, displayed in cmdline help
  10. "Gooey (GUI)",
  11. [
  12. ('datalad_gooey.gooey', 'Gooey'),
  13. ('datalad_gooey.lsdir', 'GooeyLsDir', 'gooey-lsdir', 'gooey_lsdir'),
  14. ('datalad_gooey.status_light', 'GooeyStatusLight',
  15. 'gooey-status-light', 'gooey_status_light'),
  16. ]
  17. )
  18. from datalad.support.extensions import register_config
  19. from datalad.support.constraints import EnsureChoice
  20. register_config(
  21. 'datalad.gooey.ui-mode',
  22. 'Which user interface mode to use in the application',
  23. description=\
  24. 'In novice mode the user interface is simplified and more advanced '
  25. 'operations are hidden. Expert mode offers the complete aplication '
  26. 'functionality.',
  27. type=EnsureChoice('novice', 'expert'),
  28. default='novice',
  29. scope='global')
  30. from ._version import get_versions
  31. __version__ = get_versions()['version']
  32. del get_versions