Best of PIP2024

  1. 1
    Article
    Avatar of planetpythonPlanet Python·2y

    An Intro to Logging with Python and Loguru

    Learn how to use Loguru to simplify logging in Python. Install Loguru with pip, change the handler and add formatting to logs, and catch exceptions with Loguru.

  2. 2
    Article
    Avatar of planetpythonPlanet Python·2y

    Setting Your Python Working Environment, the Right Way

    Learn about the importance of Python virtual environments, how they work, and how to create and manage them. Discover how virtual environments help manage package dependencies and avoid conflicts.

  3. 3
    Article
    Avatar of pointerPointer·2y

    astral-sh/uv: An extremely fast Python package installer and resolver, written in Rust.

    An extremely fast Python package installer and resolver, written in Rust. uv is a drop-in replacement for pip and pip-compile, offering improved speed and efficiency. It is installable via various methods and supports advanced pip features like editable installs, Git dependencies, direct URL dependencies, and more.

  4. 4
    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.

  5. 5
    Article
    Avatar of hnHacker News·2y

    Generate pip requirements.txt file based on imports of any project. Looking for maintainers to move this project forward.

    Pipreqs is a tool to generate a requirements.txt file based on the imports of any Python project. It offers various options, such as using local package info, specifying a custom PyPI server, and ignoring specific directories. You can exclude dependencies for jupyter notebooks and save the output in a specified file path. It's a flexible alternative to using pip freeze, which captures all installed packages in the environment.