Day: June 29, 2025

  • Utilizing WebSockets in FastAPI for Real-time Applications

    Utilizing WebSockets in FastAPI for Real-time Applications

    Introduction WebSockets have become a crucial part of building modern, real-time web applications. They allow for bidirectional, full-duplex communication channels over a single TCP connection, which is essential for applications like online games, chat applications, and live updates for dashboards. FastAPI, with its asynchronous capabilities, provides excellent support for WebSockets. In this article, we’ll dive…

  • Effective Techniques for Testing FastAPI Applications

    Effective Techniques for Testing FastAPI Applications

    As a software engineer and backend web developer, I’ve always found testing to be an integral part of the development process. When working with FastAPI, a modern, fast web framework for building APIs with Python, setting up efficient testing routines can significantly enhance code quality and reliability. In this article, we’ll explore some effective techniques…

  • I need to convert a crontab entry to a systemd timer

    john: I have a crontab entry that executes a shell script every 30 minutes. It passes a parameter to th script. I need to convert it to be a systemd timer. My crontab entry is: */30 * * * * /Users/jturman/development/john/fastapi/cron.sh sandbox >> /Users/jturman/development/john/fastapi/python-cron.log 2>&1 Chatbot: To convert your cron job to a systemd timer,…