""" Cannabis Licenses | Get All Licenses Copyright (c) 2022 Cannlytics Authors: Keegan Skeate Candace O'Sullivan-Sutherland Created: 9/29/2022 Updated: 9/30/2022 License: Description: Collect all cannabis license data from all states with permitted adult-use: - Alaska - Arizona ✓ California - Colorado - Connecticut - Illinois ✓ Maine - Massachusetts - Michigan - Montana ✓ Nevada ✓ New Jersey - New Mexico - New York ✓ Oregon - Rhode Island - Vermont ✓ Washington """ from .get_licenses_ca import get_licenses_ca from .get_licenses_me import get_licenses_me from .get_licenses_nj import get_licenses_nj from .get_licenses_nv import get_licenses_nv from .get_licenses_or import get_licenses_or from .get_licenses_wa import get_licenses_wa # === Test === if __name__ == '__main': # Support command line usage. import argparse try: arg_parser = argparse.ArgumentParser() arg_parser.add_argument('--d', dest='data_dir', type=str) arg_parser.add_argument('--data_dir', dest='data_dir', type=str) arg_parser.add_argument('--env', dest='env_file', type=str) args = arg_parser.parse_args() except SystemExit: args = {'d': '../data/all', 'env_file': '../.env'} # Get arguments. data_dir = args.get('d', args.get('data_dir')) env_file = args.get('env_file') # Get licenses for each state. get_licenses_ca(data_dir, env_file=env_file) get_licenses_me(data_dir, env_file=env_file) get_licenses_nj(data_dir, env_file=env_file) get_licenses_nv(data_dir, env_file=env_file) get_licenses_or(data_dir, env_file=env_file) get_licenses_wa(data_dir, env_file=env_file)