Best of Planet PythonSeptember 2024

  1. 1
    Article
    Avatar of planetpythonPlanet Python·2y

    47 - Python Projects of 2024

    The author highlights two notable projects they've worked on: 'JupyterLab 101 Book' available on Kickstarter and a book titled 'Textual'. Readers are encouraged to support the publication by subscribing.

  2. 2
    Article
    Avatar of planetpythonPlanet Python·2y

    Adding Terminal Effects with Python

    TerminalTextEffects is a Python package that adds visual effects to terminal text interfaces. It supports Xterm 256/RGB hex colors, complex animations with Paths and Beams effects, and integrates with other TUI libraries. Installation is simple using pip, and the package offers various built-in effects to enhance text-based UIs.

  3. 3
    Article
    Avatar of planetpythonPlanet Python·2y

    Switching from pyenv to uv

    The post discusses the process of transitioning from pyenv to uv for Python version and environment management on Ubuntu Linux 24.04. The author details the steps taken, including uninstalling pyenv, setting up uv, and reinstalling Python versions and tools. uv simplifies Python interpreter and tool management, offering features like easy updates and virtual environment creation.

  4. 4
    Article
    Avatar of planetpythonPlanet Python·2y

    Build a AI-powered desktop Translator with Python & Tkinter

    Learn how to build a desktop translator application using Python, Tkinter, and OpenAI's ChatGPT APIs. The tutorial walks through setting up a Python virtual environment, creating the UI with Tkinter, and implementing language translation using the OpenAI API. Key elements include using Tkinter to design the GUI, creating scrollable text areas and combo boxes for input, and handling translation functionality with the OpenAI client.

  5. 5
    Article
    Avatar of planetpythonPlanet Python·2y

    Using Pandas to Read JSON from URL

    Learn how to use Pandas in Python to read JSON data directly from a URL into a DataFrame. This tutorial covers a basic example and explains the key parameters of the `pd.read_json()` method, enabling customization of the data reading process.

  6. 6
    Article
    Avatar of planetpythonPlanet Python·2y

    Production-ready Python Docker Containers with uv

    Learn how to create efficient and production-ready Python Docker containers using uv. Key points include the use of multi-stage builds, judicious layering, and build-cache mounts for quicker builds and effective dependency management. Detailed instructions and commands are provided to streamline the process.

  7. 7
    Article
    Avatar of planetpythonPlanet Python·2y

    Commenting in Python

    Learn how to use comments in Python to improve code readability. The guide covers single line, block, and inline comments, along with best practices outlined in PEP 8. Practical examples demonstrate how to effectively use comments, including how to handle special cases like ANSI escape codes.