• taaz@biglemmowski.win
    link
    fedilink
    English
    arrow-up
    0
    ·
    5 months ago

    Not necessarily a trick that’s always useful but I always forget this.
    You can get async REPL by calling python -m asyncio.

    Also, old trick - in need of simple http server serving static files?
    python -m http.server

    • amenji@programming.dev
      link
      fedilink
      arrow-up
      0
      arrow-down
      1
      ·
      5 months ago

      Using http.server is my go-to sanity check method if my configured my network firewall correctly or not.

  • beeng@discuss.tchncs.de
    link
    fedilink
    arrow-up
    0
    ·
    5 months ago

    Don’t need to activate your venv to use it.

    Just use venv/bin/python my-file.py from a script or a terminal from your project root.