home.social

#argparse — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #argparse, aggregated by home.social.

  1. #Python now has a wonderful colorful REPL, and in 3.14 it also made #argparse look amazing! Check my silly tool for converting PNGs to #GIF animations! Thank you @hugovk, @ambv and everyone else involved... github.com/villares/sketch-a-d

  2. #Python now has a wonderful colorful REPL, and in 3.14 it also made #argparse look amazing! Check my silly tool for converting PNGs to #GIF animations! Thank you @hugovk, @ambv and everyone else involved... github.com/villares/sketch-a-d

  3. #Python now has a wonderful colorful REPL, and in 3.14 it also made #argparse look amazing! Check my silly tool for converting PNGs to #GIF animations! Thank you @hugovk, @ambv and everyone else involved... github.com/villares/sketch-a-d

  4. #Python now has a wonderful colorful REPL, and in 3.14 it also made #argparse look amazing! Check my silly tool for converting PNGs to #GIF animations! Thank you @hugovk, @ambv and everyone else involved... github.com/villares/sketch-a-d

  5. #Python now has a wonderful colorful REPL, and in 3.14 it also made #argparse look amazing! Check my silly tool for converting PNGs to #GIF animations! Thank you @hugovk, @ambv and everyone else involved... github.com/villares/sketch-a-d

  6. Just released! 🚀

    🐍 Python 3.15 alpha 3!

    discuss.python.org/t/python-3-

    🔬 PEP 799: A new high-frequency statistical sampling profiler and dedicated profiling package
    💬 PEP 686: Python now uses UTF-8 as the default encoding
    🌊 PEP 782: A new PyBytesWriter C API to create a Python bytes object
    🎨 Colour code snippets in argparse help: bsky.app/profile/savannah.dev/
    ⚠️ Better error messages

    #Python #Python315 #CPython #release #PEP799 #PEP686 #PEP782 #argparse

  7. Just released! 🚀

    🐍 Python 3.15 alpha 3!

    discuss.python.org/t/python-3-

    🔬 PEP 799: A new high-frequency statistical sampling profiler and dedicated profiling package
    💬 PEP 686: Python now uses UTF-8 as the default encoding
    🌊 PEP 782: A new PyBytesWriter C API to create a Python bytes object
    🎨 Colour code snippets in argparse help: bsky.app/profile/savannah.dev/
    ⚠️ Better error messages

    #Python #Python315 #CPython #release #PEP799 #PEP686 #PEP782 #argparse

  8. Just released! 🚀

    🐍 Python 3.15 alpha 3!

    discuss.python.org/t/python-3-

    🔬 PEP 799: A new high-frequency statistical sampling profiler and dedicated profiling package
    💬 PEP 686: Python now uses UTF-8 as the default encoding
    🌊 PEP 782: A new PyBytesWriter C API to create a Python bytes object
    🎨 Colour code snippets in argparse help: bsky.app/profile/savannah.dev/
    ⚠️ Better error messages

    #Python #Python315 #CPython #release #PEP799 #PEP686 #PEP782 #argparse

  9. Just released! 🚀

    🐍 Python 3.15 alpha 3!

    discuss.python.org/t/python-3-

    🔬 PEP 799: A new high-frequency statistical sampling profiler and dedicated profiling package
    💬 PEP 686: Python now uses UTF-8 as the default encoding
    🌊 PEP 782: A new PyBytesWriter C API to create a Python bytes object
    🎨 Colour code snippets in argparse help: bsky.app/profile/savannah.dev/
    ⚠️ Better error messages

    #Python #Python315 #CPython #release #PEP799 #PEP686 #PEP782 #argparse

  10. Just released! 🚀

    🐍 Python 3.15 alpha 3!

    discuss.python.org/t/python-3-

    🔬 PEP 799: A new high-frequency statistical sampling profiler and dedicated profiling package
    💬 PEP 686: Python now uses UTF-8 as the default encoding
    🌊 PEP 782: A new PyBytesWriter C API to create a Python bytes object
    🎨 Colour code snippets in argparse help: bsky.app/profile/savannah.dev/
    ⚠️ Better error messages

    #Python #Python315 #CPython #release #PEP799 #PEP686 #PEP782 #argparse

  11. 🎨 Old news: I added colour to argparse CLI help in last month's Python 3.14.

    ⭐ New news: I just added colour to ruff and ty's help so they can catch up (uv already had colour).

    #Python #CLI #argparse #ruff #ty #uv #colour

  12. 🎨 Old news: I added colour to argparse CLI help in last month's Python 3.14.

    ⭐ New news: I just added colour to ruff and ty's help so they can catch up (uv already had colour).

    #Python #CLI #argparse #ruff #ty #uv #colour

  13. 🎨 Old news: I added colour to argparse CLI help in last month's Python 3.14.

    ⭐ New news: I just added colour to ruff and ty's help so they can catch up (uv already had colour).

    #Python #CLI #argparse #ruff #ty #uv #colour

  14. 🎨 Old news: I added colour to argparse CLI help in last month's Python 3.14.

    ⭐ New news: I just added colour to ruff and ty's help so they can catch up (uv already had colour).

    #Python #CLI #argparse #ruff #ty #uv #colour

  15. 🎨 Old news: I added colour to argparse CLI help in last month's Python 3.14.

    ⭐ New news: I just added colour to ruff and ty's help so they can catch up (uv already had colour).

    #Python #CLI #argparse #ruff #ty #uv #colour

  16. So my side side project to print out help for ALL the commands and subcommands and so on for an #Argparse app. Although it will make best efforts for other commands.

    `totalhelp pipx` -- seems to work.
    `totalhelp llm` -- incredibly slow.

    also has library version for

    `my_command --totalhelp` and it shows all the help for all the commands.

    pypi.org/project/totalhelp/0.1

  17. So my side side project to print out help for ALL the commands and subcommands and so on for an #Argparse app. Although it will make best efforts for other commands.

    `totalhelp pipx` -- seems to work.
    `totalhelp llm` -- incredibly slow.

    also has library version for

    `my_command --totalhelp` and it shows all the help for all the commands.

    pypi.org/project/totalhelp/0.1

  18. So my side side project to print out help for ALL the commands and subcommands and so on for an #Argparse app. Although it will make best efforts for other commands.

    `totalhelp pipx` -- seems to work.
    `totalhelp llm` -- incredibly slow.

    also has library version for

    `my_command --totalhelp` and it shows all the help for all the commands.

    pypi.org/project/totalhelp/0.1

  19. So my side side project to print out help for ALL the commands and subcommands and so on for an #Argparse app. Although it will make best efforts for other commands.

    `totalhelp pipx` -- seems to work.
    `totalhelp llm` -- incredibly slow.

    also has library version for

    `my_command --totalhelp` and it shows all the help for all the commands.

    pypi.org/project/totalhelp/0.1

  20. So my side side project to print out help for ALL the commands and subcommands and so on for an #Argparse app. Although it will make best efforts for other commands.

    `totalhelp pipx` -- seems to work.
    `totalhelp llm` -- incredibly slow.

    also has library version for

    `my_command --totalhelp` and it shows all the help for all the commands.

    pypi.org/project/totalhelp/0.1

  21. Had an enjoyable afternoon building a custom #cli #parser to replace #argparse in our internal tooling. I like its ease of use. But it is a custom parser and works only for my specific use case, but for use case it does more than argparse can and is simpler to use. #comandline #python

  22. Had an enjoyable afternoon building a custom #cli #parser to replace #argparse in our internal tooling. I like its ease of use. But it is a custom parser and works only for my specific use case, but for use case it does more than argparse can and is simpler to use. #comandline #python

  23. Had an enjoyable afternoon building a custom #cli #parser to replace #argparse in our internal tooling. I like its ease of use. But it is a custom parser and works only for my specific use case, but for use case it does more than argparse can and is simpler to use. #comandline #python

  24. Had an enjoyable afternoon building a custom #cli #parser to replace #argparse in our internal tooling. I like its ease of use. But it is a custom parser and works only for my specific use case, but for use case it does more than argparse can and is simpler to use. #comandline #python

  25. Had an enjoyable afternoon building a custom #cli #parser to replace #argparse in our internal tooling. I like its ease of use. But it is a custom parser and works only for my specific use case, but for use case it does more than argparse can and is simpler to use. #comandline #python

  26. @sumanthvepa

    argparse is maybe-okay for simple things, but I don't use it for pretty much anything anymore. Have you tried one of the other extant packages that provide higher-level, more-powerful option handling?

    I use `click` extensively for complex multiple-command CLI tools.

    #click #optparse #argparse #CLI

  27. @sumanthvepa

    argparse is maybe-okay for simple things, but I don't use it for pretty much anything anymore. Have you tried one of the other extant packages that provide higher-level, more-powerful option handling?

    I use `click` extensively for complex multiple-command CLI tools.

    #click #optparse #argparse #CLI

  28. @sumanthvepa

    argparse is maybe-okay for simple things, but I don't use it for pretty much anything anymore. Have you tried one of the other extant packages that provide higher-level, more-powerful option handling?

    I use `click` extensively for complex multiple-command CLI tools.

    #click #optparse #argparse #CLI

  29. @sumanthvepa

    argparse is maybe-okay for simple things, but I don't use it for pretty much anything anymore. Have you tried one of the other extant packages that provide higher-level, more-powerful option handling?

    I use `click` extensively for complex multiple-command CLI tools.

    #click #optparse #argparse #CLI

  30. @sumanthvepa

    argparse is maybe-okay for simple things, but I don't use it for pretty much anything anymore. Have you tried one of the other extant packages that provide higher-level, more-powerful option handling?

    I use `click` extensively for complex multiple-command CLI tools.

    #click #optparse #argparse #CLI

  31. It's probably a case of #bikesheding, but I've been really unhappy with the #python 's #argparse library for a while now. It's okay for run of the mill tools, but fails for more complex command line tools that have subcommands and complex options like --no-except to negate an option.

    This is my first cut writing a command line parser for a #cli

    github.com/sumanthvepa/experim

  32. It's probably a case of #bikesheding, but I've been really unhappy with the #python 's #argparse library for a while now. It's okay for run of the mill tools, but fails for more complex command line tools that have subcommands and complex options like --no-except to negate an option.

    This is my first cut writing a command line parser for a #cli

    github.com/sumanthvepa/experim

  33. It's probably a case of #bikesheding, but I've been really unhappy with the #python 's #argparse library for a while now. It's okay for run of the mill tools, but fails for more complex command line tools that have subcommands and complex options like --no-except to negate an option.

    This is my first cut writing a command line parser for a #cli

    github.com/sumanthvepa/experim

  34. It's probably a case of #bikesheding, but I've been really unhappy with the #python 's #argparse library for a while now. It's okay for run of the mill tools, but fails for more complex command line tools that have subcommands and complex options like --no-except to negate an option.

    This is my first cut writing a command line parser for a #cli

    github.com/sumanthvepa/experim

  35. It's probably a case of #bikesheding, but I've been really unhappy with the #python 's #argparse library for a while now. It's okay for run of the mill tools, but fails for more complex command line tools that have subcommands and complex options like --no-except to negate an option.

    This is my first cut writing a command line parser for a #cli

    github.com/sumanthvepa/experim

  36. Migrated my user-space environement over to 3.14.0b1 today.

    Nice to see the majority of the packages I use work without issue, so far.

    Plus, I get that all that pretty colored output from !

  37. Migrated my user-space environement over to #Python 3.14.0b1 today.

    Nice to see the majority of the packages I use work without issue, so far.

    Plus, I get that all that pretty colored output from #argparse!

    #EyeCandy #Terminal #CLI

  38. Migrated my user-space environement over to #Python 3.14.0b1 today.

    Nice to see the majority of the packages I use work without issue, so far.

    Plus, I get that all that pretty colored output from #argparse!

    #EyeCandy #Terminal #CLI

  39. Migrated my user-space environement over to #Python 3.14.0b1 today.

    Nice to see the majority of the packages I use work without issue, so far.

    Plus, I get that all that pretty colored output from #argparse!

    #EyeCandy #Terminal #CLI

  40. Migrated my user-space environement over to #Python 3.14.0b1 today.

    Nice to see the majority of the packages I use work without issue, so far.

    Plus, I get that all that pretty colored output from #argparse!

    #EyeCandy #Terminal #CLI

  41. Huh, there is really no way in #Python #argparse to say "print full help, not only usage when an error occurs"?

    I mean, besides
    ```
    parser = argparse.ArgumentParser()
    parser.format_usage = parser.format_help
    ```
    (or similar monstrosities)

  42. Huh, there is really no way in #Python #argparse to say "print full help, not only usage when an error occurs"?

    I mean, besides
    ```
    parser = argparse.ArgumentParser()
    parser.format_usage = parser.format_help
    ```
    (or similar monstrosities)

  43. Huh, there is really no way in #Python #argparse to say "print full help, not only usage when an error occurs"?

    I mean, besides
    ```
    parser = argparse.ArgumentParser()
    parser.format_usage = parser.format_help
    ```
    (or similar monstrosities)

  44. Huh, there is really no way in #Python #argparse to say "print full help, not only usage when an error occurs"?

    I mean, besides
    ```
    parser = argparse.ArgumentParser()
    parser.format_usage = parser.format_help
    ```
    (or similar monstrosities)

  45. Huh, there is really no way in #Python #argparse to say "print full help, not only usage when an error occurs"?

    I mean, besides
    ```
    parser = argparse.ArgumentParser()
    parser.format_usage = parser.format_help
    ```
    (or similar monstrosities)