---
title: "Mauricio Villegas (@mauvilsa) | Hashnode"
description: "AI Researcher & Engineer · Document understanding & information extraction · Open source maintainer. Read the latest articles by Mauricio Villegas on Hashnode."
url: "https://hashnode.com/@mauvilsa"
---

@mauvilsa

# Mauricio Villegas

@mauvilsa · Berlin, Germany · Joined August 2026

AI Researcher & Engineer · Document understanding & information extraction · Open source maintainer

### [Swapping implementations from the command line](https://mauvilsa.hashnode.dev/swapping-implementations-from-the-command-line?utm_source=hashnode&utm_medium=feed)

One type hint turns a Python class into a CLI plugin system: choose an implementation, set its own options, and inject it. No registry.

20 min read · [mauvilsa.hashnode.dev](https://mauvilsa.hashnode.dev/swapping-implementations-from-the-command-line?utm_source=hashnode&utm_medium=feed)

[Sep 16](https://hashnode.com/posts/swapping-implementations-from-the-command-line/6aaa30e09027af9a6cb59a97)

### [Settings from the environment](https://mauvilsa.hashnode.dev/settings-from-the-environment?utm_source=hashnode&utm_medium=feed)

Two jsonargparse args give a Python CLI an environment variable for every option, and for the subcommand itself, so a Docker image needs no arguments.

13 min read · [mauvilsa.hashnode.dev](https://mauvilsa.hashnode.dev/settings-from-the-environment?utm_source=hashnode&utm_medium=feed)

[Sep 2](https://hashnode.com/posts/settings-from-the-environment/6a98710565dc67082b2c9426)

### [Tab completion, without writing a completion script](https://mauvilsa.hashnode.dev/tab-completion-without-writing-a-completion-script?utm_source=hashnode&utm_medium=feed)

Generate bash, zsh, fish and tcsh tab completions for a Python CLI from type hints you already wrote, no completion script to write or keep in sync.

15 min read · [mauvilsa.hashnode.dev](https://mauvilsa.hashnode.dev/tab-completion-without-writing-a-completion-script?utm_source=hashnode&utm_medium=feed)

[Aug 20](https://hashnode.com/posts/tab-completion-without-writing-a-completion-script/6a87316a86db944d952a6b98)

### [A CLI that works from anywhere](https://mauvilsa.hashnode.dev/a-cli-that-works-from-anywhere?utm_source=hashnode&utm_medium=feed)

Turning a Python script into an installed command with pyproject.toml and an entry point, then giving it config files jsonargparse finds on its own.

8 min read · [mauvilsa.hashnode.dev](https://mauvilsa.hashnode.dev/a-cli-that-works-from-anywhere?utm_source=hashnode&utm_medium=feed)

[Aug 10](https://hashnode.com/posts/a-cli-that-works-from-anywhere/6a79660c0760886d2da1ed57)

### [From API client to CLI, without writing a parser](https://mauvilsa.hashnode.dev/from-api-client-to-cli-without-writing-a-parser?utm_source=hashnode&utm_medium=feed)

Build a small API client as an ordinary Python class and get a complete CLI from it with jsonargparse: subcommands, help and config files.

18 min read · [mauvilsa.hashnode.dev](https://mauvilsa.hashnode.dev/from-api-client-to-cli-without-writing-a-parser?utm_source=hashnode&utm_medium=feed)

[Aug 3](https://hashnode.com/posts/from-api-client-to-cli-without-writing-a-parser/6a701a123b63df5224cac86c)
