def main(): export_path = Path.cwd() curation_export_published(export_path)
from docopt import parse_defaults from sparcur import exceptions as exc from sparcur.cli import Report, Options, __doc__ as clidoc from sparcur.paths import Path, BlackfynnCache from sparcur.config import auth from sparcur.server import make_app from sparcur.backends import BlackfynnRemote from sparcur.curation import Summary project_path = Path.cwd() if not (project_path / Path._cache_class._local_data_dir).exists(): raise exc.NotInProjectError(f'{project_path}') defaults = { o.name: o.value if o.argcount else None for o in parse_defaults(clidoc) } args = { 'server': True, '--raw': False, '--latest': True, '--sort-count-desc': True, '--project-path': project_path, '--tab-table': False, '<path>': [], '--verbose': False, '--export-path': auth.get_path('export-path'), '--partial': False, '--open': False, }