Exemplo n.º 1
0
def get_argument_settings():
    """@todo: Docstring for get_argument_settings.

    :returns: @todo

    """
    description = textwrap.dedent("""
    Joins two delimited files by common keys.
    """)

    epilog = textwrap.dedent("""

    Examples:

    """)

    m_overrides = []
    parser = add_common_arguments(m_overrides,
                                  description=description,
                                  epilog=epilog)
    parser.add_argument('-x',
                        '--expresssion',
                        dest='expression',
                        default=None,
                        required=True,
                        action='append',
                        help='XXX'
                        'XXX')

    return parser
Exemplo n.º 2
0
def get_argument_settings():
    """@todo: Docstring for get_argument_settings.

    :returns: @todo

    """
    description = textwrap.dedent("""
    Joins two delimited files by common keys.
    """)

    epilog = textwrap.dedent("""

    Examples:

    """)

    m_overrides = []
    parser = add_common_arguments(m_overrides, description=description,
                                  epilog=epilog)
    parser.add_argument('-x', '--expresssion',
                        dest='expression',
                        default=None,
                        required=True,
                        action='append',
                        help='XXX'
                        'XXX')

    return parser
Exemplo n.º 3
0
def get_argument_settings():
    """@todo: Docstring for get_argument_settings.

    :returns: @todo

    """
    description = textwrap.dedent("""
    Joins two delimited files by common keys.
    """)

    epilog = textwrap.dedent("""

    Examples:

    """)

    m_overrides = []
    parser = add_common_arguments(m_overrides,
                                  description=description,
                                  epilog=epilog)
    parser.add_argument('--oc',
                        '--output-columns',
                        dest='output_columns',
                        default=None,
                        required=False,
                        action='append',
                        help='XXX'
                        'XXX')

    parser.add_argument('--cw',
                        '--output-columns-widths',
                        dest='column_widths',
                        default=None,
                        required=False,
                        action='append',
                        help='XXX'
                        'XXX')

    parser.add_argument('-m',
                        '--monkey-readable',
                        dest='monkey_readable',
                        default=False,
                        required=False,
                        action='store_true',
                        help='XXX'
                        'XXX')

    return parser
Exemplo n.º 4
0
def get_argument_settings():
    """@todo: Docstring for get_argument_settings.

    :returns: @todo

    """
    description = textwrap.dedent("""
    Joins two delimited files by common keys.
    """)

    epilog = textwrap.dedent("""

    Examples:

    """)

    m_overrides = []
    parser = add_common_arguments(m_overrides,
                                  description=description,
                                  epilog=epilog)
    parser.add_argument('--on',
                        dest='on',
                        default=None,
                        required=False,
                        nargs='+',
                        help="Common fields to join on")
    parser.add_argument(
        '--left-on',
        dest='left_on',
        default=None,
        required=False,
        nargs='+',
        help="Join fields for left side (only two tables allowed)")
    parser.add_argument(
        '--right-on',
        dest='right_on',
        default=None,
        required=False,
        nargs='+',
        help="Join fields for right side (only two tables allowed)")
    parser.add_argument('--how',
                        dest='how',
                        default='inner',
                        required=False,
                        choices=('left', 'right', 'outer', 'inner'),
                        help="How to join")

    return parser
Exemplo n.º 5
0
def get_argument_settings():
    """@todo: Docstring for get_argument_settings.

    :returns: @todo

    """
    description = textwrap.dedent("""
    Joins two delimited files by common keys.
    """)

    epilog = textwrap.dedent("""

    Examples:

    """)

    m_overrides = []
    parser = add_common_arguments(m_overrides, description=description,
                                  epilog=epilog)
    parser.add_argument('--on',
                        dest='on',
                        default=None,
                        required=False,
                        nargs='+',
                        help="Common fields to join on")
    parser.add_argument('--left-on',
                        dest='left_on',
                        default=None,
                        required=False,
                        nargs='+',
                        help="Join fields for left side (only two tables allowed)")
    parser.add_argument('--right-on',
                        dest='right_on',
                        default=None,
                        required=False,
                        nargs='+',
                        help="Join fields for right side (only two tables allowed)")
    parser.add_argument('--how',
                        dest='how',
                        default='inner',
                        required=False,
                        choices=('left', 'right', 'outer', 'inner'),
                        help="How to join")

    return parser
Exemplo n.º 6
0
def get_argument_settings():
    """@todo: Docstring for get_argument_settings.

    :returns: @todo

    """
    description = textwrap.dedent("""
    Joins two delimited files by common keys.
    """)

    epilog = textwrap.dedent("""

    Examples:

    """)

    m_overrides = []
    parser = add_common_arguments(m_overrides, description=description,
                                  epilog=epilog)
    parser.add_argument('--oc', '--output-columns',
                        dest='output_columns',
                        default=None,
                        required=False,
                        action='append',
                        help='XXX'
                        'XXX')

    parser.add_argument('--cw', '--output-columns-widths',
                        dest='column_widths',
                        default=None,
                        required=False,
                        action='append',
                        help='XXX'
                        'XXX')

    parser.add_argument('-m', '--monkey-readable',
                        dest='monkey_readable',
                        default=False,
                        required=False,
                        action='store_true',
                        help='XXX'
                        'XXX')

    return parser
Exemplo n.º 7
0
def get_argument_settings():
    """@todo: Docstring for get_argument_settings.

    :returns: @todo

    """
    description = textwrap.dedent("""
    Joins two delimited files by common keys.
    """)

    epilog = textwrap.dedent("""

    Examples:

    """)

    m_overrides = []
    parser = add_common_arguments(m_overrides, description=description,
                                  epilog=epilog)
    parser.add_argument('-f', '--fields',
                        dest='fields',
                        default=None,
                        required=True,
                        action='append',
                        help='XXX'
                        'XXX')
    parser.add_argument('--asc', '--ascending',
                        dest='ascending',
                        default=True,
                        required=False,
                        action='store_true',
                        help='XXX'
                        'XXX')
    parser.add_argument('--desc', '--descending',
                        dest='ascending',
                        required=False,
                        action='store_false',
                        help='XXX'
                        'XXX')


    return parser
Exemplo n.º 8
0
def get_argument_settings():
    """@todo: Docstring for get_argument_settings.

    :returns: @todo

    """
    description = textwrap.dedent("""
    Joins two delimited files by common keys.
    """)

    epilog = textwrap.dedent("""

    Examples:

    """)

    m_overrides = []
    parser = add_common_arguments(m_overrides,
                                  description=description,
                                  epilog=epilog)
    parser.add_argument('-f',
                        '--fields',
                        dest='fields',
                        default=None,
                        required=True,
                        action='append',
                        help='XXX'
                        'XXX')

    parser.add_argument('--sort',
                        dest='sort',
                        default=True,
                        required=False,
                        action='store_true',
                        help='XXX'
                        'XXX')
    parser.add_argument('--no-sort',
                        dest='sort',
                        required=False,
                        action='store_false',
                        help='XXX'
                        'XXX')

    parser.add_argument('--group-keys',
                        dest='group_keys',
                        default=True,
                        required=False,
                        action='store_true',
                        help='XXX'
                        'XXX')
    parser.add_argument('--no-group-keys',
                        dest='group_keys',
                        required=False,
                        action='store_false',
                        help='XXX'
                        'XXX')

    parser.add_argument('-c',
                        '--count',
                        dest='count',
                        default=False,
                        required=False,
                        action='store_true',
                        help='XXX'
                        'XXX')

    parser.add_argument(
        '--fct',
        '--apply-function',
        dest='function',
        default=None,
        required=False,
        choices=[
            'agg', 'aggregate', 'boxplot', 'corr', 'corrwith', 'cov',
            'cumcount', 'cummax', 'cummin', 'cumprod', 'cumsum', 'describe',
            'diff', 'ffill', 'fillna', 'filter', 'first', 'get_group',
            'groups', 'head', 'hist', 'idxmax', 'idxmin', 'irow', 'last',
            'mad', 'max', 'mean', 'median', 'min', 'name', 'ngroups', 'nth',
            'ohlc', 'pct_change', 'plot', 'prod', 'quantile', 'rank',
            'resample', 'shift', 'size', 'skew', 'std', 'sum', 'tail', 'var'
        ],
        help='XXX'
        'XXX')

    return parser
Exemplo n.º 9
0
def get_argument_settings():
    """@todo: Docstring for get_argument_settings.

    :returns: @todo

    """
    description = textwrap.dedent("""
    Joins two delimited files by common keys.
    """)

    epilog = textwrap.dedent("""

    Examples:

    """)

    m_overrides = []
    parser = add_common_arguments(m_overrides, description=description,
                                  epilog=epilog)
    parser.add_argument('-f', '--fields',
                        dest='fields',
                        default=None,
                        required=True,
                        action='append',
                        help='XXX'
                        'XXX')

    parser.add_argument('--sort',
                        dest='sort',
                        default=True,
                        required=False,
                        action='store_true',
                        help='XXX'
                        'XXX')
    parser.add_argument('--no-sort',
                        dest='sort',
                        required=False,
                        action='store_false',
                        help='XXX'
                        'XXX')

    parser.add_argument('--group-keys',
                        dest='group_keys',
                        default=True,
                        required=False,
                        action='store_true',
                        help='XXX'
                        'XXX')
    parser.add_argument('--no-group-keys',
                        dest='group_keys',
                        required=False,
                        action='store_false',
                        help='XXX'
                        'XXX')

    parser.add_argument('-c', '--count',
                        dest='count',
                        default=False,
                        required=False,
                        action='store_true',
                        help='XXX'
                        'XXX')

    parser.add_argument('--fct', '--apply-function',
                        dest='function',
                        default=None,
                        required=False,
                        choices=['agg', 'aggregate', 'boxplot',
                                 'corr', 'corrwith', 'cov',
                                 'cumcount', 'cummax', 'cummin', 'cumprod',
                                 'cumsum', 'describe', 'diff',
                                 'ffill', 'fillna', 'filter',
                                 'first', 'get_group', 'groups', 'head',
                                 'hist', 'idxmax', 'idxmin', 'irow',
                                 'last', 'mad', 'max', 'mean', 'median',
                                 'min', 'name', 'ngroups', 'nth', 'ohlc',
                                 'pct_change', 'plot', 'prod', 'quantile',
                                 'rank', 'resample', 'shift', 'size',
                                 'skew', 'std', 'sum', 'tail', 'var'],
                        help='XXX'
                        'XXX')

    return parser