Other articles


  1. Static binaries in Python

    Static binaries in Python

    Do you envy developers that use Go, Rust or Haskell for their static binaries? Just one file that can be passed around, like the binary of the static[1] website generator Hugo, written in Go?

    No need to install libraries (of course you need to install …

    read more
  2. Living without Getopt(s)

    Living without Getopt(s)

    Parsing command lines can be tricky sometimes. There are arguments and options (the things that begin with a dash or two). Options can have arguments themselves.[1] For some options, the arguments may be optional. Options come in long (more than one letter) and short (just …

    read more
  3. A caveat for subparsers

    Argparse provides subparsers. They let you easily handle subcommands. What is a subcommand? A command that is specified as an argument for a command. A typical example is Git, where you have subcommands like git status, git commit and so on.

    One common and very convenient way to implement subcommands …

    read more

links

social