# Python

5 posts

  1. FastAPI WebSockets with Uvicorn and Nginx (Including Reverse Proxy)

    Issues hit moving a FastAPI WebSocket chat from local to production: SSL handshake errors under Uvicorn and 404s behind Nginx without Upgrade headers.

  2. How to Use the Python Logger

    How to configure Python's logging module with basicConfig and getLogger to control log format and level across modules, and why to configure before import.

  3. Controlling Bluetooth with Python on Ubuntu

    A Python script that drives bluetoothctl and hcitool on Ubuntu to check every 30 seconds and reconnect a Bluetooth audio module when it drops.

  4. How Does Google Say to Write Docstrings?

    What Google's Python Style Guide says on when and how to write docstrings, compared with MIT's lessons on specs, and why docstrings are part of building code.

  5. Using PyCharm Remotely

    How to set up PyCharm Professional's SSH Interpreter so code written on a Windows desktop runs on a remote Linux server, plus folder sync and Deployment.