Keegan Skeate
๐Ÿ…NJ + ๐ŸŽดNV + ๐ŸฆžME + ๐ŸŒฒWA licenses | Updated ๐Ÿ—บ๏ธ
825c643
raw
history blame
1.96 kB
"""
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
# === 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)