optfunc2 auto-generates CLI commands from Python functions using type annotations and docstrings. Zero-boilerplate alternative to argparse.
Key features
Type coercion (int, float, bool, str, list, dict, Union)
Auto-generated help from docstrings (Google style)
Hexadecimal input support for integers
Default command & shell abbreviation support
Why add it?
Similar philosophy to Google's python-fire (already listed), but lighter weight
Active development with tests
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.
## 📋 Pull Request Information
**Original PR:** https://github.com/vinta/awesome-python/pull/2987
**Author:** [@yjloong](https://github.com/yjloong)
**Created:** 3/24/2026
**Status:** ❌ Closed
**Base:** `master` ← **Head:** `add-optfunc2`
---
### 📝 Commits (1)
- [`035cd43`](https://github.com/vinta/awesome-python/commit/035cd43b51fd5335f186546854c6d51b6cff51bd) Add optfunc2 to CLI Development section
### 📊 Changes
**1 file changed** (+1 additions, -0 deletions)
<details>
<summary>View changed files</summary>
📝 `README.md` (+1 -0)
</details>
### 📄 Description
## Summary
Adding [optfunc2](https://github.com/yjloong/optfunc2) to the CLI Development section.
**optfunc2** auto-generates CLI commands from Python functions using type annotations and docstrings. Zero-boilerplate alternative to argparse.
### Key features
- Type coercion (int, float, bool, str, list, dict, Union)
- Auto-generated help from docstrings (Google style)
- Hexadecimal input support for integers
- Default command & shell abbreviation support
### Why add it?
- Similar philosophy to Google's python-fire (already listed), but lighter weight
- Active development with tests
---
<sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 Pull Request Information
Original PR: https://github.com/vinta/awesome-python/pull/2987
Author: @yjloong
Created: 3/24/2026
Status: ❌ Closed
Base:
master← Head:add-optfunc2📝 Commits (1)
035cd43Add optfunc2 to CLI Development section📊 Changes
1 file changed (+1 additions, -0 deletions)
View changed files
📝
README.md(+1 -0)📄 Description
Summary
Adding optfunc2 to the CLI Development section.
optfunc2 auto-generates CLI commands from Python functions using type annotations and docstrings. Zero-boilerplate alternative to argparse.
Key features
Why add it?
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.