14 votes

CLI tools hidden in the Python standard library

Tags: python, cli

2 comments

  1. aphoenix
    Link
    I enjoyed this article a lot (I just came here to post it and found your post). I liked the layout and that he outlined how he went about things: "I had this question, I used this tool, I found...

    I enjoyed this article a lot (I just came here to post it and found your post). I liked the layout and that he outlined how he went about things: "I had this question, I used this tool, I found these things, I learned this" is a great way to do a writeup.

    I like python -m http.server a lot for a simple http server and I use it with some frequency. It's great if you have some static HTML that you want to have a look at.

    4 votes
  2. qob
    Link
    You should also check for __main__.py files. If mypackage/__main__.py exists, running python -m mypackage will execute it.

    You should also check for __main__.py files. If mypackage/__main__.py exists, running python -m mypackage will execute it.

    3 votes