Skip to content

jon77p/argparsejson

Repository files navigation

argparsejson

Easily parse arguments, simply by writing JSON!

Build Status

Generate JSON Schema docs

Getting Started

  1. Copy example_commands.json to commands.json
  2. Modify as necessary.
  3. To get an argparse ArgumentParser, call argparsejson.parse_arguments(<commands_file>) (adding optional parameters if necessary). Then, call parse_args() on the returned ArgumentParser.

Documentation

All documentation can be found here

The fully up-to-date JSON schema can be found here

About

A Python library to define argparse parameters using JSON syntax

Topics

Resources

Stars

Watchers

Forks

Languages