TIL: 8 versions of UUID and when to use them | nicole@web
Python
Python's Built-in Functions: A Complete Exploration – Real Python
In this tutorial, you'll learn the basics of working with Python's numerous built-in functions. You'll explore how to use these predefined functions to perform common tasks and operations, such as mathematical calculations, data type conversions, and string manipulations.
Understanding the Python Mock Object Library – Real Python
In this tutorial, you'll learn how to use the Python mock object library, unittest.mock, to create and use mock objects to improve your tests. Obstacles like complex logic and unpredictable dependencies make writing valuable tests difficult, but unittest.mock can help you overcome these obstacles.
Testing with Python (part 7): ...until you make it
Simon & Garfunkel wrote the playbook. Well, at least the Bookends.
How to Web Scrape with HTTPX and Python
Intro to using Python's httpx library for web scraping. Proxy and user agent rotation and common web scraping challenges, tips and tricks.
Waiting in asyncio
One of the main appeals of using Python’s asyncio is being able to fire off many coroutines and run them concurrently. How many ways do you know for waiting for their results?
Tips and Tricks
Python tips and tricks
Mesop
FastAPI in Containers - Docker - FastAPI
FastAPI framework, high performance, easy to learn, fast to code, ready for production
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.
An Intro to Logging with Loguru
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.
Delgan/loguru: Python logging made (stupidly) simple
Python logging made (stupidly) simple.
Symbolica
Symbolica is a blazing fast computer algebra system.
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 […]
Retry with Stamina
Developing and Testing an Asynchronous API with FastAPI and Pytest
This tutorial looks at how to develop and test an asynchronous API with FastAPI, Postgres, pytest, and Docker using Test-driven Development (TDD).
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 […]
TIL 095 – better test parametrisation in pytest
Today I learned how to use named tuples to improve readability and flexibility of test parametrisations in pytest.
What's Lazy Evaluation in Python? – Real Python
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.
Announcing py2wasm: A Python to Wasm compiler · Blog · Wasmer
py2wasm converts your Python programs to WebAssembly, running them at 3x faster speeds
Enhancing Python Code Quality: A Comprehensive Guide to Linting with Ruff
Introduction In this article, we will discuss the importance of code linting and how to...
Python F-String Codes I Use Every Day - Pybites
I use f-strings every day. The irony is I also every day end up searching the Web to find the correct format to use. Until one day I thought a
Pytest With Eric
Best Pytest Tutorials
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.
Structuring Your Project — The Hitchhiker's Guide to Python
Inline run dependencies in pipx 1.4.2
Inline import
PEP 723 – Inline script metadata | peps.python.org
Inline import
Björn Ricks
Context Manager Tutorials
Chat with your databases using LangChain
The rise of Large Language Models (LLMs) has brought about a significant shift in technology, empowering developers to create applications…