Best of Planet Python β€” 2024

  1. 1
    Article
    Avatar of planetpythonPlanet PythonΒ·2y

    Python's many command-line utilities

    Discover Python modules that can be run as command-line tools and learn how to use the webbrowser module from the command-line.

  2. 2
    Article
    Avatar of planetpythonPlanet PythonΒ·2y

    Create Amazing Progress Bars in Python with alive-progress

    Alive-progress is a Python package created by RogΓ©rio Sampaio de Almeida that offers various types of progress bars for terminal or IPython REPL sessions. It is easily installable via pip and works with any iterable. The package includes demo scripts for showcasing its capabilities and provides several examples on GitHub to help integrate it into your own code. Useful for enhancing command-line utilities by displaying data processing progress.

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

  4. 4
    Article
    Avatar of planetpythonPlanet PythonΒ·2y

    My favorite Python 3.13 feature

    Python 3.13 introduces a brand new REPL with features like colored prompt, auto-indentation, improved exit and help commands, block-level history, and support for pasting code. However, the new REPL is not currently compatible with Windows.

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

  6. 6
    Article
    Avatar of planetpythonPlanet PythonΒ·2y

    [August 2024] Python Monthly Newsletter πŸ’»πŸ

    The 57th Python Monthly Newsletter covers crucial Python articles, resources, and updates. Highlights include an in-depth guide on the 'itertools' module, tips on running an asyncio event loop in a separate thread, insights into Python's packaging tools, and the importance of using high-quality data to mitigate AI's 'model collapse.' Additionally, news covers topics like Epic Games Store on EU iPhones, Apple's app store policies, Nvidia's revenue surge, and inspiring stories and resources.

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

  8. 8
    Article
    Avatar of planetpythonPlanet PythonΒ·2y

    How to Use Gemini in Python

    Learn how to use Gemini AI model in Python by accessing the Gemini API, installing the required libraries, and setting parameters for generating responses.

  9. 9
    Article
    Avatar of planetpythonPlanet PythonΒ·1y

    Python in Visual Studio Code

    The November 2024 release of the Python, Pylance, and Jupyter extensions for Visual Studio Code introduces several new features like generating docstrings with Pylance, new commands for folding and unfolding docstrings, import suggestions with aliases from user files, and an experimental AI Code Action for implementing abstract classes. It also updates the REPL variables view and announces the upcoming deprecation of Python 3.8 support. Users can explore these features by updating their extensions and reviewing the changelogs.

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

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

  12. 12
    Article
    Avatar of planetpythonPlanet PythonΒ·2y

    Web scraping as an API service

    This post discusses the use of web scraping as an API service in systems-to-systems integrations. It highlights why web scraping should be avoided in backend integrations and introduces Playwright as a tool for generating Python code for web scraping.

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

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

  15. 15
    Article
    Avatar of planetpythonPlanet PythonΒ·2y

    One way to fix Python circular imports

    A post discussing how to fix Python circular imports by organizing code in layers or changing the style of import statements.

  16. 16
    Article
    Avatar of planetpythonPlanet PythonΒ·1y

    From React to a Django+HTMX based stack

    Learn about Sheena O'Connell's journey of moving from a React-Django application to a pure Django with HTMX stack. Discover a real-world success story, lessons learned, and relevant resources including workshops, courses, and tools related to HTMX and Django development.

  17. 17
    Article
    Avatar of planetpythonPlanet PythonΒ·2y

    [June 2024] Python Monthly Newsletter πŸ’»πŸ

    Stay updated with the latest in Python and tech through this monthly newsletter. It includes curated important Python articles, resources, and tools. Highlights include NVIDIA's new Warp library for high-performance simulation, a recap of the annual Python conference, and insights into AI strategies from tech giants like Apple, Meta, and Google. Additionally, the newsletter touches on interesting tech stories and discussions about industry trends and software practices.

  18. 18
    Article
    Avatar of planetpythonPlanet PythonΒ·2y

    The State of Django 2024

    Discover the latest trends in Django development, including the use of Flask and FastAPI alongside Django, the popularity of Django for both full-stack and API development, the shift towards htmx, Alpine.js, and Tailwind CSS for frontend development, and the favored databases, container orchestration, CI systems, and infrastructure as code solutions among Django developers.

  19. 19
    Article
    Avatar of planetpythonPlanet PythonΒ·2y

    Creating Progress Bars in Your Terminal with Python and Textual

    Learn how to create a simple progress bar in your terminal using the Textual package with Python. The guide covers the installation of Textual, setting up a timer to simulate progress, and positioning widgets in the terminal using Center and Middle containers. The tutorial also includes a sample code to demonstrate the creating and updating of a progress bar upon a button press.

  20. 20
    Article
    Avatar of planetpythonPlanet PythonΒ·2y

    Getting started with network automation in Python

    Learn how to get started with network automation using a Python-based integration platform. This approach not only automates network devices but also connects with cloud applications like Jira and Microsoft 365, greatly enhancing efficiency and workflow management.

  21. 21
    Article
    Avatar of planetpythonPlanet PythonΒ·2y

    Python Logging Book Released!

    Learn about logging in Python with the book 'Python Logging'. Explore logger objects, log levels, log handlers, log formatting, log configuration, logging decorators, rotating logs, logging and concurrency, and more! Purchase the book online and find the code on GitHub.

  22. 22
    Article
    Avatar of planetpythonPlanet PythonΒ·2y

    7 Things That Helped Me Grow as a Software Engineer

    Growth as a software engineer involves several key principles: having inner drive, consistently delivering results, choosing impactful and interesting projects, developing deep expertise, teaching others, handling criticism well, and understanding the business aspect. Ambition and a love for challenges can drive ongoing learning and career progression.

  23. 23
    Article
    Avatar of planetpythonPlanet PythonΒ·2y

    On FastAPI

    FastAPI is a Python web framework that builds on the strengths of Django and Flask while feeling more modern and adhering to certain opinionated principles. It has excellent documentation, includes Swagger UI and Redoc out-of-the-box, and heavily depends on Pydantic for data schemas and validation.

  24. 24
    Article
    Avatar of planetpythonPlanet PythonΒ·2y

    Displaying Pandas DataFrames in the Terminal

    Learn how to use the textual-pandas package to display pandas DataFrames directly in your terminal with ease. The guide covers installation using pip and provides sample code to help you quickly get started with creating a Textual application that loads and displays a DataFrame in a table widget.

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