CLI subcommands with lazy imports
The post explains that Python 3.15’s new lazy imports feature is great for CLI tools, but naïve argparse subcommand patterns accidentally force all lazy imports to execute early, negating the benefit. It then shows two simple patterns that preserve laziness for subcommands: dispatching with a match statement, or wrapping lazy-imported callables in lambdas so they are only reified when th...
https://snarky.ca/subcommands-with-lazy-imports/
The post explains that Python 3.15’s new lazy imports feature is great for CLI tools, but naïve argparse subcommand patterns accidentally force all lazy imports to execute early, negating the benefit. It then shows two simple patterns that preserve laziness for subcommands: dispatching with a match statement, or wrapping lazy-imported callables in lambdas so they are only reified when th...
https://snarky.ca/subcommands-with-lazy-imports/
Tall, Snarky Canadian
CLI subcommands with lazy imports
In case you didn't hear, PEP 810 got accepted which means Python 3.15 is going to support lazy imports! One of the selling points of lazy imports is with code that has a CLI so that you only import code as necessary, making the app a bit more snappy
taylorwilsdon / google_workspace_mcp
Control Gmail, Google Calendar, Docs, Sheets, Slides, Chat, Forms, Tasks, Search & Drive with AI - Comprehensive Google Workspace / G Suite MCP Server & CLI Tool
https://github.com/taylorwilsdon/google_workspace_mcp
Control Gmail, Google Calendar, Docs, Sheets, Slides, Chat, Forms, Tasks, Search & Drive with AI - Comprehensive Google Workspace / G Suite MCP Server & CLI Tool
https://github.com/taylorwilsdon/google_workspace_mcp
GitHub
GitHub - taylorwilsdon/google_workspace_mcp: Control Gmail, Google Calendar, Docs, Sheets, Slides, Chat, Forms, Tasks, Search &…
Control Gmail, Google Calendar, Docs, Sheets, Slides, Chat, Forms, Tasks, Search & Drive with AI - Comprehensive Google Workspace / G Suite MCP Server & CLI Tool - taylorwilsdon/goo...
Capturing Plots in R and Python: A Tale of Two Architectures
This post explains how plot capture works differently in Python and R: in Python (especially Jupyter) all figure output goes through a single display system that makes automatic capture reliable, whereas in R the graphics architecture has no central display layer so capturing plots is harder and often requires explicit publishing. It contrasts the architectural reasons behind these diffe...
https://blog.gofigr.io/posts/capturing-plots-in-r-and-python
This post explains how plot capture works differently in Python and R: in Python (especially Jupyter) all figure output goes through a single display system that makes automatic capture reliable, whereas in R the graphics architecture has no central display layer so capturing plots is harder and often requires explicit publishing. It contrasts the architectural reasons behind these diffe...
https://blog.gofigr.io/posts/capturing-plots-in-r-and-python
blog.gofigr.io
Capturing Plots in R and Python: A Tale of Two Architectures | GoFigr Blog
ai-functions
Python functions powered by AI agents - with runtime post-conditions for reliable agentic workflows.
https://github.com/strands-labs/ai-functions
Python functions powered by AI agents - with runtime post-conditions for reliable agentic workflows.
https://github.com/strands-labs/ai-functions
GitHub
GitHub - strands-labs/ai-functions: Python functions powered by AI agents - with runtime post-conditions for reliable agentic workflows.
Python functions powered by AI agents - with runtime post-conditions for reliable agentic workflows. - strands-labs/ai-functions
Properties vs Methods in Python: What Your Code Is Promising
The video explains when to use a property versus a method in Python, highlighting how each communicates different expectations around cost, side effects, and behavior. It also argues that async properties are typically a design smell and shows how to keep asynchronous work explicit while maintaining clean object design.
https://www.youtube.com/watch?v=wHLZ_uTrCYA
The video explains when to use a property versus a method in Python, highlighting how each communicates different expectations around cost, side effects, and behavior. It also argues that async properties are typically a design smell and shows how to keep asynchronous work explicit while maintaining clean object design.
https://www.youtube.com/watch?v=wHLZ_uTrCYA
YouTube
Python Properties vs Methods: The Contract You Didn’t Know You Were Making
🧱 Build software that lasts. Join the Software Design Mastery waiting list → https://arjan.codes/mastery.
In this video, I break down when something in Python should be a property and when it should be a method, and why that choice matters more than it looks.…
In this video, I break down when something in Python should be a property and when it should be a method, and why that choice matters more than it looks.…
Timber – Ollama for classical ML models, 336x faster than Python
https://github.com/kossisoroyce/timber
https://github.com/kossisoroyce/timber
GitHub
GitHub - kossisoroyce/timber: Ollama for classical ML models. AOT compiler that turns XGBoost, LightGBM, scikit-learn, CatBoost…
Ollama for classical ML models. AOT compiler that turns XGBoost, LightGBM, scikit-learn, CatBoost & ONNX models into native C99 inference code. One command to load, one command to serve. 33...
Validating data with pointblank in python
One of the most common tasks of any organization is reviewing data to ensure that it is accurate and does not contain errors. Commonly, this is done by producing graphs or summary information like a median or mean and confirming that it looks reasonable. Pointblank is a newer tool that allows you to really dig into a dataset and task assumptions in a robust and reproducible manner.
https://www.markpitblado.me/blog/validating-data-with-pointblank-in-python
One of the most common tasks of any organization is reviewing data to ensure that it is accurate and does not contain errors. Commonly, this is done by producing graphs or summary information like a median or mean and confirming that it looks reasonable. Pointblank is a newer tool that allows you to really dig into a dataset and task assumptions in a robust and reproducible manner.
https://www.markpitblado.me/blog/validating-data-with-pointblank-in-python
Mark Pitblado
Validating data with pointblank in python
One of the most common tasks of any organization is reviewing data to ensure that it is accurate and does not contain errors. Commonly, this is done by producing graphs or summary information like a median or mean and confirming that it looks reasonable.…
Update on array API adoption in scikit-learn
The article explains how scikit-learn is adopting the Python Array API standard, allowing machine-learning code to run on different array libraries (NumPy, PyTorch, CuPy) without rewriting algorithms. This enables the same scikit-learn models to automatically leverage accelerators like GPUs and improves interoperability across the scientific Python ecosystem.
https://labs.quansight.org/blog/array-api-scikit-learn-2026
The article explains how scikit-learn is adopting the Python Array API standard, allowing machine-learning code to run on different array libraries (NumPy, PyTorch, CuPy) without rewriting algorithms. This enables the same scikit-learn models to automatically leverage accelerators like GPUs and improves interoperability across the scientific Python ecosystem.
https://labs.quansight.org/blog/array-api-scikit-learn-2026
Python 3.12.13, 3.11.15 and 3.10.20 are now available!
New security releases for 3.10, 3.11 and 3.12 are now available. (As these Python versions are now in security-fix-only mode, these are source-only releases, and there is no pre-set release cadence.)
https://blog.python.org/2026/03/python-31213-31115-31020/
New security releases for 3.10, 3.11 and 3.12 are now available. (As these Python versions are now in security-fix-only mode, these are source-only releases, and there is no pre-set release cadence.)
https://blog.python.org/2026/03/python-31213-31115-31020/
Python Insider
Python 3.12.13, 3.11.15 and 3.10.20 are now available! | Python Insider
Python Releases For Your Security! New security releases for 3.10, 3.11 and 3.12 are now available.
MedKit
MedKit is a high-performance, unified SDK that transforms fragmented medical APIs into a single, programmable platform. It provides a clean interface for OpenFDA, PubMed, and ClinicalTrials.gov, augmented with a clinical intelligence layer and relationship mapping.
https://github.com/interestng/medkit
MedKit is a high-performance, unified SDK that transforms fragmented medical APIs into a single, programmable platform. It provides a clean interface for OpenFDA, PubMed, and ClinicalTrials.gov, augmented with a clinical intelligence layer and relationship mapping.
https://github.com/interestng/medkit
GitHub
GitHub - interestng/medkit: Unified Python SDK for OpenFDA, PubMed, and ClinicalTrials.gov with clinical intelligence, interaction…
Unified Python SDK for OpenFDA, PubMed, and ClinicalTrials.gov with clinical intelligence, interaction detection, and research tools. - interestng/medkit
Serving Private Files with Django and S3
The article shows how to securely serve private user files stored in Amazon S3 from a Django app by keeping the bucket private and generating time-limited pre-signed URLs when a user is authorized to access a file. This approach lets S3 handle file delivery directly while Django controls access, avoiding slow proxying through the app server and making the system more scalable.
https://lincolnloop.com/blog/serving-private-files-with-django-and-s3/
The article shows how to securely serve private user files stored in Amazon S3 from a Django app by keeping the bucket private and generating time-limited pre-signed URLs when a user is authorized to access a file. This approach lets S3 handle file delivery directly while Django controls access, avoiding slow proxying through the app server and making the system more scalable.
https://lincolnloop.com/blog/serving-private-files-with-django-and-s3/
Lincoln Loop
Serving Private Files with Django and S3 | Lincoln Loop
Django’s FileField and ImageField are good at storing files, but on their own they don’t let us control access. When …
Unit testing your code’s performance, part 2: Catching speed changes
Got benchmarks in CI? You can (maybe) use tests to catch performance changes even earlier.
https://pythonspeed.com/articles/speed-unit-tests/
Got benchmarks in CI? You can (maybe) use tests to catch performance changes even earlier.
https://pythonspeed.com/articles/speed-unit-tests/
Python⇒Speed
Unit testing your code’s performance, part 2: Catching speed changes
Got benchmarks in CI? You can (maybe) use tests to catch performance changes even earlier.
seomachine
A specialized Claude Code workspace for creating long-form, SEO-optimized blog content for any business. This system helps you research, write, analyze, and optimize content that ranks well and serves your target audience.
https://github.com/TheCraigHewitt/seomachine
A specialized Claude Code workspace for creating long-form, SEO-optimized blog content for any business. This system helps you research, write, analyze, and optimize content that ranks well and serves your target audience.
https://github.com/TheCraigHewitt/seomachine
GitHub
GitHub - TheCraigHewitt/seomachine: A specialized Claude Code workspace for creating long-form, SEO-optimized blog content for…
A specialized Claude Code workspace for creating long-form, SEO-optimized blog content for any business. This system helps you research, write, analyze, and optimize content that ranks well and ser...
hermes-agent
Hermes Agent is an open-source autonomous AI agent that you install on your own server or machine, where it lives persistently, learns over time, and builds reusable skills and memory across sessions instead of resetting like typical chatbots.
https://github.com/NousResearch/hermes-agent
Hermes Agent is an open-source autonomous AI agent that you install on your own server or machine, where it lives persistently, learns over time, and builds reusable skills and memory across sessions instead of resetting like typical chatbots.
https://github.com/NousResearch/hermes-agent
GitHub
GitHub - NousResearch/hermes-agent: The agent that grows with you
The agent that grows with you. Contribute to NousResearch/hermes-agent development by creating an account on GitHub.
Formualizer
The spreadsheet engine that actually evaluates formulas. Parse, evaluate, and mutate Excel workbooks from Rust, Python, or the browser.
https://github.com/psu3d0/formualizer
The spreadsheet engine that actually evaluates formulas. Parse, evaluate, and mutate Excel workbooks from Rust, Python, or the browser.
https://github.com/psu3d0/formualizer
GitHub
GitHub - PSU3D0/formualizer: Embeddable spreadsheet engine — parse, evaluate & mutate Excel workbooks from Rust, Python, or the…
Embeddable spreadsheet engine — parse, evaluate & mutate Excel workbooks from Rust, Python, or the browser. Arrow-powered, 320+ functions. - PSU3D0/formualizer
MicroGPT explained interactively
Walk through Karpathy's 200-line GPT from scratch. Tokenize names into integers, watch softmax convert scores to probabilities, step through backpropagation on a computation graph, explore attention heatmaps, and see a tiny model learn to generate plausible names.
https://growingswe.com/blog/microgpt
Walk through Karpathy's 200-line GPT from scratch. Tokenize names into integers, watch softmax convert scores to probabilities, step through backpropagation on a computation graph, explore attention heatmaps, and see a tiny model learn to generate plausible names.
https://growingswe.com/blog/microgpt
Growingswe
MicroGPT explained interactively
Walk through Karpathy's 200-line GPT from scratch. Tokenize names into integers, watch softmax convert scores to probabilities, step through backpropagation on a computation graph, explore attention heatmaps, and see a tiny model learn to generate plausible…
Using tox to Test a Django App Across Multiple Django Versions
The article shows how to use tox to test a Django app across multiple Python and Django versions by creating isolated environments that install specific dependency combinations and run the same test suite. By defining a version matrix in tox.ini, developers can automatically verify compatibility across many Django releases and catch packaging or environment issues before users encounter them.
https://www.djangotricks.com/blog/2026/02/using-tox-to-test-a-django-app-across-multiple-django-versions/
The article shows how to use tox to test a Django app across multiple Python and Django versions by creating isolated environments that install specific dependency combinations and run the same test suite. By defining a version matrix in tox.ini, developers can automatically verify compatibility across many Django releases and catch packaging or environment issues before users encounter them.
https://www.djangotricks.com/blog/2026/02/using-tox-to-test-a-django-app-across-multiple-django-versions/
DjangoTricks
Using tox to Test a Django App Across Multiple Django Versions
Learn tips and tricks about web development with Django daily