import sys, os import json import argparse import re from collections import OrderedDict import dxpy from dxpy.templating.utils import (print_intro, get_name, get_version, get_metadata, Completer, get_ordinal_str, prompt_for_var, prompt_for_yn, use_completer, get_language, language_options, get_pattern, get_timeout, fill_in_name_and_ver, clean, create_files_from_templates) from dxpy.utils.printing import fill, BOLD, UNDERLINE, DNANEXUS_LOGO, ENDC from dxpy.app_categories import APP_CATEGORIES from dxpy.utils.completer import InstanceTypesCompleter from dxpy.utils.pretty_print import format_table from dxpy.compat import wrap_stdio_in_codecs wrap_stdio_in_codecs() try: import colorama colorama.init() except: pass IO_NAME_PATTERN = re.compile('^[a-zA-Z_][0-9a-zA-Z_]*$') API_VERSION = '1.0.0' parser = argparse.ArgumentParser(description="Create a source code directory for a DNAnexus app. You will be prompted for various metadata for the app as well as for its input and output specifications.") parser.add_argument('--json-file', help='Use the metadata and IO spec found in the given file') parser.add_argument('--language', help='Programming language of your app') parser.add_argument('--template',
import sys, os import json import argparse import re from collections import OrderedDict import dxpy from dxpy.templating.utils import (print_intro, get_name, get_version, get_metadata, Completer, get_ordinal_str, prompt_for_var, prompt_for_yn, use_completer, get_language, language_options, get_pattern, get_timeout, fill_in_name_and_ver, clean, create_files_from_templates) from dxpy.utils.printing import fill, BOLD, UNDERLINE, DNANEXUS_LOGO, ENDC from dxpy.app_categories import APP_CATEGORIES from dxpy.utils.completer import InstanceTypesCompleter from dxpy.utils.pretty_print import format_table from dxpy.compat import wrap_stdio_in_codecs wrap_stdio_in_codecs() try: import colorama colorama.init() except: pass IO_NAME_PATTERN = re.compile('^[a-zA-Z_][0-9a-zA-Z_]*$') DEFAULT_REGION_AWS = 'aws:us-east-1' DEFAULT_REGION_AZURE = 'azure:westus' API_VERSION = '1.0.0' parser = argparse.ArgumentParser(description="Create a source code directory for a DNAnexus app. You will be prompted for various metadata for the app as well as for its input and output specifications.") parser.add_argument('--json-file', help='Use the metadata and IO spec found in the given file') parser.add_argument('--language', help='Programming language of your app')