def main(*args, **kwargs):
    """ Simple entry-point that takes the package name and json output"""

    parser = argparse.ArgumentParser()
    parser.add_argument('package_name', type=str)
    parser.add_argument('output_filename', type=str)

    parsed_args = parser.parse_args()

    # Find all package requirements
    get_all_requires(parsed_args.package_name)

    # Write tmp results to a file to be read into main app context
    json_file = open(parsed_args.output_filename, 'w')
    json_file.write(json.dumps(all_requires))
def main ( * args , ** kwargs ) : parser = argparse . ArgumentParser ( ) parser . add_argument ( 'package_name' , type = str ) parser . add_argument ( 'output_filename' , type = str ) parsed_args = parser . parse_args ( ) get_all_requires ( parsed_args . package_name ) json_file = open ( parsed_args . output_filename , 'w' ) json_file . write ( json . dumps ( all_requires ) )
Simple entry-point that takes the package name and json output