What Is the __pycache__ Folder in Python? – Real Python
In this tutorial, you'll explore Python's __pycache__ folder. You'll learn about when and why the interpreter creates these folders, and you'll customize their default behavior. Finally, you'll take a look under the hood of the cached .pyc files.
Python's logging module isn't the only way to create logs. There are several third-party packages you can use, too. One of the most popular is Loguru. Loguru intends to remove all the boilerplate you get with the Python logging API. You will find that Loguru greatly simplifies creating logs in Python.
Python Sequences: A Comprehensive Guide – Real Python
This tutorial dives into Python sequences, which is one of the main categories of data types. You'll learn about the properties that make an object a sequence and how to create user-defined sequences.
Asyncio Run Multiple Concurrent Event Loops - Super Fast Python
We can run multiple concurrent asyncio event loops by starting and running each new event loop in a separate thread. Each thread can host and manage one event loop. This means we can start one thread per event loop we require, allowing a program to potentially scale from thousands to millions of coroutines. In this […]
Asyncio Coroutine Object Methods in Python - Super Fast Python
We can define coroutine methods on custom Python objects. This allows methods on custom Python objects to use async/await syntax, such as awaiting other coroutines and tasks and allows the custom coroutine methods themselves to be awaited within our asyncio programs. In this tutorial, you will discover how to define object methods as coroutines. Let’s […]
This tutorial explores lazy evaluation in Python and looks at the advantages and disadvantages of using lazy and eager evaluation methods. By the end of this tutorial, you'll clearly understand which approach is best for you, depending on your needs.
Pydantic: Simplifying Data Validation in Python – Real Python
Discover the power of Pydantic, Python's most popular data parsing, validation, and serialization library. In this hands-on tutorial, you'll learn how to make your code more robust, trustworthy, and easier to debug with Pydantic.
monkeypatch/monkeypatch.py: The easiest way to build scalable LLM-powered applications, which get cheaper and faster over time.
The easiest way to build scalable LLM-powered applications, which get cheaper and faster over time. - monkeypatch/monkeypatch.py: The easiest way to build scalable LLM-powered applications, which g...
An open source technical publishing system for creating beautiful articles, websites, blogs, books, slides, and more. Supports Python, R, Julia, and JavaScript.
Textualize/rich: Rich is a Python library for rich text and beautiful formatting in the terminal.
Rich is a Python library for rich text and beautiful formatting in the terminal. - Textualize/rich: Rich is a Python library for rich text and beautiful formatting in the terminal.