Python Tooling: Latexify, Prefixed, DBT, and Memory Profiling

·49m 50s
Shared point

Python Development News and Tools

This episode of Python Bytes covers several innovative tools for Python developers, focusing on math representation, data handling, and code quality.

Mathematical and Data Tools

Latexify: A powerful library that utilizes a decorator to convert Python functions into formal LaTeX mathematical notation, making complex logic easier to document and visualize.
Prefixed: A clever class wrapper for floats that supports scientific, IEC, and metric prefixes (including new standards like Quetta and Ronto). It simplifies the representation of very large or small numbers in logs and reports.
dbt (data build tool): An open-source tool gaining momentum in the data world, allowing engineers to apply software engineering best practices—such as versioning, testing, and continuous integration—directly to SQL and Python transformations within data warehouses.

Debugging and Code Quality

Memray PyTest Plugin: An advanced tool by Bloomberg that introduces pytest integration to track memory allocations. It allows developers to set memory limits on tests and detect memory leaks without modifying the underlying application code.
Shed: An opinionated auto-formatting tool that bundles Black, isort, pyupgrade, and autoflake. It acts as a one-stop-shop for cleaning up imports, formatting code and Markdown blocks, and enforcing conventions.

Community and Best Practices

"Please steal my source code"

Brian discusses the spirit of open-source software, encouraging developers to view other projects' code and test suites as a primary way to learn how to interact with complex libraries. Additionally, topics like MASTODON.PY for social automation and the importance of using static site generators like Hugo for personal blogging were highlighted.

Humor and Culture

Lancer: An anti-linter that intentionally modifies code into a "functioning mess" by adding gibberish comments and obfuscated variables.
Demotivators: A look at the satirical response to corporate motivational posters.

Topics

Chapters

7 chapters
Python Bytes
AI chat — answers grounded in episodes