Best of Planet PythonJuly 2024

  1. 1
    Article
    Avatar of planetpythonPlanet Python·2y

    [July 2024] Python Monthly Newsletter 💻🐍

    This edition of Python Monthly highlights a variety of updates and resources for Python enthusiasts. Key topics include the introduction of free-threaded CPython, modern development practices, and new tools like FastHTML. Additional highlights cover a botched update by Crowdstrike, insights into AI models, and various project ideas for portfolios.

  2. 2
    Article
    Avatar of planetpythonPlanet Python·2y

    How to convert a Python script into a web app, a product others can use

    The post explains how to convert a Python utility script into a web app using Django and Django Rest Framework for the backend and React.js for the frontend. It describes the motivation behind building the app, the backend API design, authentication using JWT, and the deployment process using Docker. Additionally, it provides insights into the overall development lifecycle, emphasizing simplicity, speed, and gradual feature addition.

  3. 3
    Article
    Avatar of planetpythonPlanet Python·2y

    Multi-factor authentication in django

    Multi-factor authentication (MFA) is crucial for modern web applications. This guide explains how to implement both TOTP and FIDO2 authentication in Django using the django-mfa3 package and cbor-js for hardware token support. Key highlights include configuring templates, middleware, and views to enable MFA in your Django application.

  4. 4
    Article
    Avatar of planetpythonPlanet Python·2y

    Dashboards in Python with Streamlit

    A discussion with Channin Nantasenamat covers Python and the Streamlit web framework, teaching bioinformatics, differences in data science disciplines, and his experiences as a YouTuber.

  5. 5
    Article
    Avatar of planetpythonPlanet Python·2y

    Creating Images in Your Terminal with Python and Rich Pixels

    Rich Pixels is a Python package created by Darren Burns from the Textual project, allowing you to display images directly in your terminal. It can be installed using pip and can render both pre-existing images and those created with Pillow. The resolution of the image affects its display quality. While there might not be many practical use cases, it is a fun addition to terminal applications.

  6. 6
    Article
    Avatar of planetpythonPlanet Python·2y

    Using "else" in a comprehension

    Python's list comprehensions support conditional expressions using the ternary form `n if condition else m`, not the `else` keyword directly. For improved readability, complex conditions can be written over multiple lines, bracketed, or moved into a standalone function. Understanding and properly formatting these expressions can make your code clearer and more maintainable.

  7. 7
    Article
    Avatar of planetpythonPlanet Python·2y

    PyCoder’s Weekly

    Learn to create GUI applications with Python and PyQt by building a desktop calculator in a new video course. Umbra Space's new dataset offers satellite-based radar images for visualizing and annotating shipping data. Pydantic's new observability platform, Logfire, helps monitor your app with ease. Explore modern good practices for Python development and check out tutorials on building a guitar synthesizer using Python, understanding Python's security model, and creating high-quality README files for your projects.

  8. 8
    Article
    Avatar of planetpythonPlanet Python·2y

    You don't need virtualenv in Go

    Go, unlike Python, does not require a tool like virtualenv for managing execution and development environments. Go's statically compiled nature simplifies binary distribution, while Go modules efficiently handle dependencies by specifying exact versions in the go.mod file. This makes handling multiple versions and debugging much easier without conflicting dependencies.