Skip to main content

A library that allows converts JSON into an argparse ArgumentParser

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

argparsejson-0.0.6.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

argparsejson-0.0.6-py3-none-any.whl (4.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page