Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions bin/dug_dumper.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
"""
The Dug Dumper allows you to dump certain kinds of content from a Dug instance.
"""

import click

@click.command()
@click.argument('output', type=click.Path(exists=False), required=True)
@click.option('--mds-metadata-endpoint', '--mds', default=DEFAULT_MDS_ENDPOINT,
help='The MDS metadata endpoint to use, e.g. https://healdata.org/mds/metadata')
@click.option('--limit', default=MDS_DEFAULT_LIMIT, help='The maximum number of entries to retrieve from the Platform '
'MDS. Note that some MDS instances have their own built-in '
'limit; if you hit that limit, you will need to update the '
'code to support offsets.')
def dug_dumper():
pass

# Run dug_dumper() if not used as a library.
if __name__ == "__main__":
dug_dumper()