Python Trending Weekly
ISSUE 80

Django Performance Tuning

2024-12-07 Season 3

TL;DR

Two Django performance guides arrive together, machine learning cracks 4Chan captchas, and pydantic-ai pairs Pydantic validation with large language models.

Articles 12 Projects 12 Media 3
🦄

Articles & Tutorials

× 12
01 The Ultimate Guide to Django Performance: Best Practices for Scaling and Optimization loadforge.com

Want to boost your Django project's performance? This comprehensive guide covers database optimization, caching strategies, Django ORM query optimization, async programming, frontend performance techniques, load testing with LoadForge, multi-instance scaling, security considerations during performance optimization, and continuous monitoring and optimization.

02 Django Application Performance Optimization — A Checklist medium.com

This article introduces common techniques and best practices for optimizing Django project performance, including using APM tools for monitoring, django-silk for profiling, understanding QuerySet internals, optimizing database queries, tuning database settings, implementing caching, and async programming.

03 Advanced Python Development Workflow in Emacs blog.serghei.pl

Emacs is an incredibly powerful editor. This article shows how to build an effective Python development environment with it, configuring various tools and plugins for code intelligence, linting and static analysis, debugging, and environment management.

04 Year in Review (2024) wsvincent.com

The author's year-end review covers their work on LearnDjango website, video courses, book updates, tutorials/writing, Django Chat podcast, Django News weekly, and more.

05 Breaking the 4Chan CAPTCHA nullpt.rs

4Chan's CAPTCHA verifies whether users are human or bots. The author trained a browser-based machine learning model that achieved 90% success rate in breaking it. The article covers data collection, model creation and training, plus real-world testing.

06 The graduation problem: avoid frameworks getting in the way blog.dagworks.io

Ready-made solutions and large model frameworks can help you quickly develop generative AI projects, but they may become obstacles as versions evolve. This article proposes a 2-layer approach for developing RAG applications, creating maintainable solutions without relying on off-the-shelf components.

07 Making Fun Flask Apps for No Reason matduggan.com

This tutorial shows how to build a small Flask app to find Pokemon TCG Pocket mobile game partners. It demonstrates how Flask can quickly turn simple ideas into web projects.

08 Demystifying ODBC with Python medium.com

Open Database Connectivity (ODBC) has been the standard for database access since the 90s. How does this driver work, and what would implementing an ODBC driver in Python look like? The article implements a simple ODBC driver and PEP-249, plus mentions Python libraries that no longer depend on ODBC.

09 A new home for python-build-standalone astral.sh

python-build-standalone provides working standalone Python distributions and has been downloaded over 70 million times by tools like uv, Rye, and Bazel. The project officially transfers to the Astral organization (developers of Ruff and uv) starting December 17th.

10 How to Debug Your Textual Application blog.pythonlibrary.org

Textual creates lightweight, powerful text-based user interfaces. This article covers debugging TUI applications using textual-dev tools, including developer mode debugging and notification-based debugging.

11 Handling Cookies is a Minefield grayduck.mn

The article discusses the complexity of HTTP cookies in web development, particularly differences in cookie handling across browsers and programming languages like Golang, PHP, Python, Ruby, and Rust.

12 Development Advent Calendars for 2024 adrianroselli.com

Advent Calendars hide a small gift each day from December 1st to Christmas. In developer circles, annual challenges appear, and the author compiles them yearly. This year features 25 daily coding challenges.

🐿️

Projects & Resources

× 12
01 MagicQuill: An Intelligent Interactive Image Editing System github.com

An intelligent interactive system for precise image editing with user-friendly interface, AI-powered suggestions, and precise local editing. (2K stars)

MagicQuill: An Intelligent Interactive Image Editing System
02 deply: Keep your python architecture clean github.com

Enforces architectural rules in large Python projects, maintaining dependencies for cleaner, more maintainable, and modular project structure.

03 pdf-extract-api: Document (PDF) extraction and parse API using state of the art modern OCRs + Ollama supported models github.com

Convert any image or PDF to Markdown or JSON documents with ultra-high precision. Built with FastAPI API, uses Celery for async task processing, and Redis for caching OCR results. (1.4K stars)

04 peek: Print debugging information and benchmarking github.com

Makes print debugging easier and provides basic benchmarking functionality. Originally forked from IceCream but almost completely rewritten with many new features.

05 python-fire: Python Fire is a library for automatically generating command line interfaces (CLIs) github.com

Google's open-source library for quickly creating CLIs, helping develop and debug Python code and making conversion between Bash and Python easier. (27.2K stars)

06 pretty-pie-log: A powerful, thread-safe Python logging library featuring colorized output, structured logging github.com

Features colorized output, structured logging, timezone-aware timestamps, file log rotation, and function execution tracing, supporting any data type in details.

07 generative-ai-project-template: Template for a new generative ai project using streamlit, fastapi, llms github.com

A generative AI template with features: LLMs, information extraction, chat, RAG, etc. Uses Python uv for package management, loguru for logging, Streamlit frontend and FastAPI backend.

08 ai-hedge-fund: An AI Hedge Fund Team github.com

Uses multiple AI agents for trading decisions, supporting market data collection and preprocessing, quantitative trading, risk management, and portfolio management.

09 Progresspal: A decentralized python iterable, function and log tracker github.com

Enables collaborative monitoring of various scripts running on different devices and processes in real-time through decentralized approach.

10 nodezator: A generalist Python node editor github.com

A desktop application that visually connects different Python functions/callables to generate flexible parameterized behaviors/data/applications/code snippets. (1.1K stars)

nodezator: A generalist Python node editor
11 pydantic-ai: Agent Framework / shim to use Pydantic with LLMs github.com

Pydantic team's open-source agent framework that eases the pain of building production-grade applications with generative AI. Uses Pydantic for validating structured and streaming responses, type-safe dependency injection system, integrated with Logfire. (2.7K stars)

12 skyvern: Automate browser-based workflows with LLMs and Computer Vision github.com

Automate browser workflows using large models and computer vision to replace manual operations. Doesn't rely on DOM parsing and XPath, unaffected by website layout changes, supports operations on never-before-seen websites. (10.9K stars)

🐢

Podcasts & Videos

× 3
ESC
↑↓ select · ↵ open175 issues