Scheduled service maintenance on November 22


On Friday, November 22, 2024, between 06:00 CET and 18:00 CET, GIN services will undergo planned maintenance. Extended service interruptions should be expected. We will try to keep downtimes to a minimum, but recommend that users avoid critical tasks, large data uploads, or DOI requests during this time.

We apologize for any inconvenience.

active_api.py 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. from datalad import cfg
  2. #
  3. # API specifications
  4. #
  5. # superset of all API scopes, full set of all supported commands
  6. # the order in this dict (and generally also those below) defines
  7. # the order in which commands appear in the respective places
  8. # the API is listed
  9. api = None
  10. # commands that operate on datasets
  11. dataset_api = None
  12. # commands that operate on any directory
  13. directory_api = None
  14. # commands that operate on directories in datasets
  15. directory_in_ds_api = None
  16. # commands that operate on any file
  17. file_api = None
  18. # commands that operate on any file in a dataset
  19. file_in_ds_api = None
  20. # command that operate on annex'ed files
  21. annexed_file_api = None
  22. # names of parameters to exclude for any command
  23. exclude_parameters = set()
  24. # mapping of parameter names to display names
  25. # to be applied across all commands
  26. parameter_display_names = {}
  27. # mapping of group name/title to sort index
  28. api_group_order = {}
  29. ui_mode = cfg.obtain('datalad.gooey.ui-mode')
  30. if ui_mode == 'simplified':
  31. from .simplified_api import (
  32. api,
  33. dataset_api,
  34. directory_api,
  35. directory_in_ds_api,
  36. file_api,
  37. file_in_ds_api,
  38. annexed_file_api,
  39. exclude_parameters,
  40. parameter_display_names,
  41. api_group_order,
  42. )
  43. elif ui_mode == 'complete':
  44. from .complete_api import (
  45. api,
  46. dataset_api,
  47. directory_api,
  48. directory_in_ds_api,
  49. file_api,
  50. file_in_ds_api,
  51. annexed_file_api,
  52. exclude_parameters,
  53. parameter_display_names,
  54. api_group_order,
  55. )
  56. else:
  57. raise NotImplementedError