cannabis_licenses / manage.py
Keegan Skeate
🍅NJ + 🎴NV + 🦞ME + 🌲WA licenses | Updated 🗺️
825c643
raw
history blame
1.3 kB
"""
Cannabis Licenses | Management
Copyright (c) 2022 Cannlytics
Authors:
Keegan Skeate <https://github.com/keeganskeate>
Created: 9/29/2022
Updated: 9/29/2022
License: <https://huggingface.co/datasets/cannlytics/cannabis_licenses/blob/main/LICENSE>
"""
# Standard imports.
import argparse
def aggregate():
"""Aggregate all subsets into a single data file."""
# TODO: Implement!
raise NotImplementedError
def upload():
"""Upload all data files and create dynamic links."""
# TODO: Implement!
raise NotImplementedError
# === Support command line usage. ===
if __name__ == '__main__':
# Get command line arguments.
try:
arg_parser = argparse.ArgumentParser()
arg_parser.add_argument(
'--aggregate',
dest='aggregate',
action=argparse.BooleanOptionalAction,
)
arg_parser.add_argument(
'--upload',
dest='upload',
action=argparse.BooleanOptionalAction,
)
args = arg_parser.parse_args()
except SystemExit:
args = {}
# Perform specified action, otherwise aggregate and upload.
if args.get('aggregate'):
aggregate()
elif args.get('upload'):
upload()
else:
aggregate()
upload()