Skip to content

Switch from argparse to Typer聽#183

Description

@pybash1

馃殌 Feature

Use Typer instead of argparse

Have you read the Contributing Guidelines on Pull Requests?

Yes

Motivation

I have made applications using both Typer and argparse, and the developer and user experience with Typer is far better in my opinion.

Pitch

This feature reduces a lot of code and also uses modern features like decorators for sub-command handlers, etc. It is cross platform. It will reduce code complexity, allowing new and beginner programmers to contribute.

Activity

  1. github-actions commented on Apr 6, 2022

    @github-actions

    Hi馃憢 thanks for creating your first issue for IOSF, Will get back to you soon !.

  2. GouravSardana commented on Apr 6, 2022

    @GouravSardana
    Member

    @pybash1 Thanks for your wonderful advice. Can you show me some of the packages which uses this thing ?
    we need more clarity before moving to any parser.
    cc @pranavbaburaj @PradyumnaKrishna @peb-peb

  3. pybash1 commented on Apr 7, 2022

    @pybash1
    Author

    @GouravSardana It's hard for me to remember an example right now, but if I can remember any, I will let you know.

  4. peb-peb commented on Apr 8, 2022

    @peb-peb

    I played around with Typer and it's a wonderful tool, but refactoring and moving from argparse to Typer is a negative from my side. Because even if we refactor the code, it would not change anything major and add to the dependency of the project.

    Typer does bring a method for autocompletion in the terminal itself, but it's not the kind of autocomplete that we're looking for (we're looking for the TAB completion style of autocompletion).

    But, in it's defense, I would say that it's really beginner-friendly, easy to implement, and has many awesome features.

    @GouravSardana @pranavbaburaj what's your opinion on this?

  5. lainq commented on Apr 8, 2022

    @lainq
    Contributor

    I would be totally fine with porting to typer, if everyone's happy with the decision.

  6. GouravSardana commented on Apr 18, 2022

    @GouravSardana
    Member

    We're not in favour of moving from argparser to Typer.

    cc @pranavbaburaj

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions