Uploaded image for project: 'Apache Avro'
  1. Apache Avro
  2. AVRO-3162

Update Python CLI Argument Handling

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.10.2
    • None
    • python
    • The Avro Python cli can now be invoked with `python -m avro`, or, if python-avro is properly installed (such as with `pip install avro`, then just `avro` on the commandline.

    Description

      Avro python has several modules that use commandline arguments via sys.argv or the outdated optparse library. I propose to replace all of that using the up-to-date argparse library.

      Also, I would like to move scripts/avro into avro/_main_.py, so that {{python -m avro}} invokes it directly, and so that all the avro python code is in the same directory tree.

      Attachments

        Activity

          People

            kojiromike Michael A. Smith
            kojiromike Michael A. Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m