|
""" |
|
Cannabis Licenses | Get All Licenses |
|
Copyright (c) 2022 Cannlytics |
|
|
|
Authors: |
|
Keegan Skeate <https://github.com/keeganskeate> |
|
Candace O'Sullivan-Sutherland <https://github.com/candy-o> |
|
Created: 9/29/2022 |
|
Updated: 9/30/2022 |
|
License: <https://github.com/cannlytics/cannlytics/blob/main/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 |
|
|
|
|
|
|
|
if __name__ == '__main': |
|
|
|
|
|
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'} |
|
|
|
|
|
data_dir = args.get('d', args.get('data_dir')) |
|
env_file = args.get('env_file') |
|
|
|
|
|
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) |
|
|