Mike Huls, Author at Towards Data Science https://towardsdatascience.com Publish AI, ML & data-science insights to a global community of data professionals. Wed, 10 Dec 2025 19:11:14 +0000 en-US hourly 1 https://wordpress.org/?v=6.8.3 https://towardsdatascience.com/wp-content/uploads/2025/02/cropped-Favicon-32x32.png Mike Huls, Author at Towards Data Science https://towardsdatascience.com 32 32 Personal, Agentic Assistants: A Practical Blueprint for a Secure, Multi-User, Self-Hosted Chatbot https://towardsdatascience.com/personal-agentic-assistants-a-practical-blueprint-for-a-secure-multi-user-self-hosted-chatbot/ Tue, 09 Dec 2025 16:30:00 +0000 https://towardsdatascience.com/?p=607863 Build a self-hosted, end-to-end platform that gives each user a personal, agentic chatbot that can autonomously vector-search through files that the user explicitly allows it to access.

The post Personal, Agentic Assistants: A Practical Blueprint for a Secure, Multi-User, Self-Hosted Chatbot appeared first on Towards Data Science.

]]>
The Problem with AI Browsers: Security Flaws and the End of Privacy https://towardsdatascience.com/the-problem-with-ai-browsers-security-flaws-and-the-end-of-privacy/ Mon, 01 Dec 2025 18:15:39 +0000 https://towardsdatascience.com/?p=607776 How Atlas and most current AI-powered browsers fail on three aspects: privacy, security, and censorship

The post The Problem with AI Browsers: Security Flaws and the End of Privacy appeared first on Towards Data Science.

]]>
Understanding When and How to Implement FastAPI Middleware (Examples and Use Cases) https://towardsdatascience.com/understanding-when-and-how-to-implement-fastapi-middleware-examples-and-use-cases-c2bd37cb4ffe/ Wed, 25 Dec 2024 17:32:03 +0000 https://towardsdatascience.com/understanding-when-and-how-to-implement-fastapi-middleware-examples-and-use-cases-c2bd37cb4ffe/ Supercharge Your FastAPI with Middleware: Practical Use Cases and Examples

The post Understanding When and How to Implement FastAPI Middleware (Examples and Use Cases) appeared first on Towards Data Science.

]]>
Dynamic, Lazy Dependency Injection in Python https://towardsdatascience.com/dynamic-lazy-dependency-injection-in-python-a96e6980becd/ Fri, 22 Nov 2024 18:42:14 +0000 https://towardsdatascience.com/dynamic-lazy-dependency-injection-in-python-a96e6980becd/ Automatic Python dependency injection to make your code more testable, decoupled, uncomplicated and readable

The post Dynamic, Lazy Dependency Injection in Python appeared first on Towards Data Science.

]]>
Log Breadcrumbs: only show Logs leading up to an Error https://towardsdatascience.com/log-breadcrumbs-only-show-logs-leading-up-to-an-error-82b9f4c15520/ Tue, 05 Nov 2024 20:45:25 +0000 https://towardsdatascience.com/log-breadcrumbs-only-show-logs-leading-up-to-an-error-82b9f4c15520/ Hot to log Breadcrumbs using Python's built-int logging package

The post Log Breadcrumbs: only show Logs leading up to an Error appeared first on Towards Data Science.

]]>
Let’s Write a Composable, Easy-to-Use Caching Package in Python https://towardsdatascience.com/lets-write-a-composable-easy-to-use-caching-package-in-python-171801935540/ Thu, 29 Aug 2024 06:22:50 +0000 https://towardsdatascience.com/lets-write-a-composable-easy-to-use-caching-package-in-python-171801935540/ Easy, user-friendly caching that tailors to all your needs

The post Let’s Write a Composable, Easy-to-Use Caching Package in Python appeared first on Towards Data Science.

]]>
Turn Your Python Function into a Decorator with One Line of Code https://towardsdatascience.com/turn-your-python-function-into-a-decorator-with-one-line-of-code-1ebd738f31c0/ Thu, 23 May 2024 06:25:14 +0000 https://towardsdatascience.com/turn-your-python-function-into-a-decorator-with-one-line-of-code-1ebd738f31c0/ A new way to write shorter, clearer, and more readable Python decorators that also act as a context manager

The post Turn Your Python Function into a Decorator with One Line of Code appeared first on Towards Data Science.

]]>
Don’t Crash Your App: Load Records from the Database in Batches for Better Performance https://towardsdatascience.com/dont-crash-your-app-load-records-from-the-databse-in-batches-for-better-performance-ab09f3598d96/ Thu, 18 Apr 2024 20:38:55 +0000 https://towardsdatascience.com/dont-crash-your-app-load-records-from-the-databse-in-batches-for-better-performance-ab09f3598d96/ Save your Python app's performance by efficiently loading query

The post Don’t Crash Your App: Load Records from the Database in Batches for Better Performance appeared first on Towards Data Science.

]]>
How to Store and Query 100 Million Items Using Just 77MB with Python Bloom Filters https://towardsdatascience.com/how-to-store-and-query-100-million-items-using-just-77mb-with-python-bloom-filters-6b3e8549f032/ Thu, 08 Feb 2024 18:18:49 +0000 https://towardsdatascience.com/how-to-store-and-query-100-million-items-using-just-77mb-with-python-bloom-filters-6b3e8549f032/ Perform lightning-fast, memory efficient membership checks in Python with this need-to-know data structure

The post How to Store and Query 100 Million Items Using Just 77MB with Python Bloom Filters appeared first on Towards Data Science.

]]>
Python: __init__ is NOT a constructor: a deep dive in Python object creation https://towardsdatascience.com/python-init-is-not-a-constructor-a-deep-dive-in-python-object-creation-9134d971e334/ Mon, 27 Nov 2023 16:20:29 +0000 https://towardsdatascience.com/python-init-is-not-a-constructor-a-deep-dive-in-python-object-creation-9134d971e334/ Tinkering with Python's constructor to create fast, memory-efficient classes

The post Python: __init__ is NOT a constructor: a deep dive in Python object creation appeared first on Towards Data Science.

]]>
Creating and Publishing Your Own Python Package for Absolute Beginners https://towardsdatascience.com/creating-and-publishing-your-own-python-package-for-absolute-beginners-7656c893f387/ Sat, 23 Sep 2023 07:41:15 +0000 https://towardsdatascience.com/creating-and-publishing-your-own-python-package-for-absolute-beginners-7656c893f387/ Create, build an publish a Python Package in 5 minutes

The post Creating and Publishing Your Own Python Package for Absolute Beginners appeared first on Towards Data Science.

]]>
Should You Use Slots? How Slots Affect Your Class, and When and How to Use Them https://towardsdatascience.com/should-you-use-slots-how-slots-affect-your-class-when-and-how-to-use-ab3f118abc71/ Sat, 12 Aug 2023 17:57:43 +0000 https://towardsdatascience.com/should-you-use-slots-how-slots-affect-your-class-when-and-how-to-use-ab3f118abc71/ One line of code for a 20% performance increase?

The post Should You Use Slots? How Slots Affect Your Class, and When and How to Use Them appeared first on Towards Data Science.

]]>
4 Easy-to-Implement, High-Impact Tweaks for Supercharging Your Python Code’s Performance https://towardsdatascience.com/4-easy-to-implement-high-impact-tweaks-for-supercharging-your-python-codes-performance-eb0652d942b7/ Wed, 12 Jul 2023 17:17:11 +0000 https://towardsdatascience.com/4-easy-to-implement-high-impact-tweaks-for-supercharging-your-python-codes-performance-eb0652d942b7/ My philosophy centers around attempting simple solutions before resorting to complex ones. By exploring the easy methods in this article, you may find the performance increase you need, sparing yourself the intricacies and countless hours required for implementing and debugging multiprocesssing, threads or packages written in another language. In this article we’ll delve into the […]

The post 4 Easy-to-Implement, High-Impact Tweaks for Supercharging Your Python Code’s Performance appeared first on Towards Data Science.

]]>
What is the difference between UNION and JOIN in SQL? https://towardsdatascience.com/what-is-the-difference-between-union-and-join-in-sql-c7cff3975ff4/ Mon, 01 May 2023 14:15:41 +0000 https://towardsdatascience.com/what-is-the-difference-between-union-and-join-in-sql-c7cff3975ff4/ 5 minute guide to UNION, EXCEPT and INTERSECT in SQL

The post What is the difference between UNION and JOIN in SQL? appeared first on Towards Data Science.

]]>
Python Quirks: Understand How a Variable Can Be Modified by a Function That Doesn’t Return Anything https://towardsdatascience.com/python-quirks-understand-how-a-variable-can-be-modified-by-a-function-that-doesnt-return-anything-343a40cc6923/ Thu, 13 Apr 2023 05:02:13 +0000 https://towardsdatascience.com/python-quirks-understand-how-a-variable-can-be-modified-by-a-function-that-doesnt-return-anything-343a40cc6923/ A deep dive into how Python passes arguments and mutability to prevent unexpected bugs

The post Python Quirks: Understand How a Variable Can Be Modified by a Function That Doesn’t Return Anything appeared first on Towards Data Science.

]]>
The easiest way to UPSERT with SQLAlchemy https://towardsdatascience.com/the-easiest-way-to-upsert-with-sqlalchemy-9dae87a75c35/ Mon, 20 Mar 2023 14:51:11 +0000 https://towardsdatascience.com/the-easiest-way-to-upsert-with-sqlalchemy-9dae87a75c35/ One command to both INSERT new data and UPDATE existing records in your database

The post The easiest way to UPSERT with SQLAlchemy appeared first on Towards Data Science.

]]>
Python args, kwargs, and All Other Ways to Pass Arguments to Your Function https://towardsdatascience.com/python-args-kwargs-and-all-other-ways-to-pass-arguments-to-your-function-bd2acdce72b5/ Tue, 07 Mar 2023 07:22:22 +0000 https://towardsdatascience.com/python-args-kwargs-and-all-other-ways-to-pass-arguments-to-your-function-bd2acdce72b5/ Expertly design your function parameters in 6 examples

The post Python args, kwargs, and All Other Ways to Pass Arguments to Your Function appeared first on Towards Data Science.

]]>
Create a Python Package with Super- Fast Rust Code in 3 Steps https://towardsdatascience.com/create-a-python-package-with-super-fast-rust-code-in-3-steps-a27389629beb/ Fri, 24 Feb 2023 06:29:20 +0000 https://towardsdatascience.com/create-a-python-package-with-super-fast-rust-code-in-3-steps-a27389629beb/ Extend you Python code with a package containing Rust code for a >150x performance increase!

The post Create a Python Package with Super- Fast Rust Code in 3 Steps appeared first on Towards Data Science.

]]>
Args vs kwargs: which is the fastest way to call a function in Python? https://towardsdatascience.com/args-vs-kwargs-which-is-the-fastest-way-to-call-a-function-in-python-afb2e817120/ Mon, 06 Feb 2023 10:01:31 +0000 https://towardsdatascience.com/args-vs-kwargs-which-is-the-fastest-way-to-call-a-function-in-python-afb2e817120/ A clear demonstration of the timeit module

The post Args vs kwargs: which is the fastest way to call a function in Python? appeared first on Towards Data Science.

]]>
Thread Your Python Program with Two Lines of Code https://towardsdatascience.com/thread-your-python-program-with-two-lines-of-code-3b474407dbb8/ Tue, 10 Jan 2023 08:30:59 +0000 https://towardsdatascience.com/thread-your-python-program-with-two-lines-of-code-3b474407dbb8/ Speed up your program by doing multiple things simultaneously

The post Thread Your Python Program with Two Lines of Code appeared first on Towards Data Science.

]]>