$npx skillfedfor your agent

autocommand

A library to create a command-line program from a function

Worth itPyPI Software DevelopmentReleased Nov 20221.5M downloads / moLGPLv3Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — autocommand-2.2.2-py3-none-any.whl
v2.2.2 · released 2022-11-18 · Python >=3.7

Yes, for simple scripts and utilities. Autocommand is mature, dependency-free, and solves a real problem—eliminating argparse boilerplate for straightforward CLI functions. Dormant maintenance is not a blocker for stable, feature-complete code, but consider it only for scripts where the function-to-CLI mapping is natural. For complex CLIs, subcommands, or plugins, use a more actively maintained framework.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.7 or later.
  • Low friction: pure Python wheel with no runtime dependencies.
  • Maintenance is dormant—last release was 2022-11-18 and last commit 2024-04-04—but the package is marked Mature and has been stable since its 2015 release.

License · maintenance · safety

LGPLv3 (copyleft) — Licensed under LGPLv3 (copyleft). Any derivative work or modification must be released under compatible terms; static linking or bundling may trigger copyleft obligations depending on how the package is integrated.

last release 2022-11-18 (1365 days) · last repo commit 2024-04-04 · 57 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,475,808 downloads/mo, #3,862 on PyPI

Verify before relying

from autocommand import autocommand

@autocommand(__name__)
def echo(thing):
    print(thing)

# Run: python script.py hello
  • Whether the package works correctly with Python versions beyond 3.7 despite no recent releases.
  • Whether dormant maintenance status affects real-world reliability for new projects.
Same gist for agents: .md · .json

What it is and what it does

Autocommand is a decorator-based library that turns a Python function into a fully functional command-line program. It inspects the function's signature—parameters, type annotations, and defaults—and automatically builds an argparse parser that handles positional arguments, optional flags, type conversion, and help text. When the module is run as __main__, autocommand collects command-line arguments, validates them against the function signature, and executes the function with the parsed values.

The library handles common CLI patterns: trailing arguments via *args, boolean switches with automatic short flags, type coercion with validation, file arguments, and docstring-based help text. It eliminates boilerplate argparse setup for simple scripts, making it useful for quick command-line tools, utility scripts, and small applications where a full framework would be overkill.

Use it for

  • Convert a utility function into a standalone script without writing argparse boilerplate.
  • Build simple command-line tools that accept typed arguments with automatic validation and help.
  • Create file processing scripts (cat, copy, filter) that read from stdin or file paths.
  • Prototype CLI applications where function signatures naturally map to command arguments.
  • Add command-line interfaces to existing Python functions with minimal code changes.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes, for simple scripts and utilities.

Autocommand is mature, dependency-free, and solves a real problem—eliminating argparse boilerplate for straightforward CLI functions. Dormant maintenance is not a blocker for stable, feature-complete code, but consider it only for scripts where the function-to-CLI mapping is natural. For complex CLIs, subcommands, or plugins, use a more actively maintained framework.

Install

autocommand on PyPI

Before you install

Low friction: pure Python wheel with no runtime dependencies. Maintenance is dormant—last release was 2022-11-18 and last commit 2024-04-04—but the package is marked Mature and has been stable since its 2015 release.

Requires Python 3.7 or later.

License in practice

Licensed under LGPLv3 (copyleft). Any derivative work or modification must be released under compatible terms; static linking or bundling may trigger copyleft obligations depending on how the package is integrated.

Quickstart

from autocommand import autocommand

@autocommand(__name__)
def echo(thing):
    print(thing)

# Run: python script.py hello

Verify before relying

  • Whether the package works correctly with Python versions beyond 3.7 despite no recent releases.
  • Whether dormant maintenance status affects real-world reliability for new projects.

Package facts

LicenseLGPLv3 copyleft
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 1,365 days since the last release
Last repo commit
First released
Downloads1,475,808 / month, #3,862 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 6 - MatureIntended Audience :: DevelopersLicense :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)Programming Language :: PythonProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyTopic :: Software DevelopmentTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Python Modules

Evidence: autocommand-2.2.2-py3-none-any.whl

Tags

Capabilities
function to command lineargparse from function signatureautomatic cli generatorpython function as scriptdecorator command line toolcli argument parserfunction signature to args
Topics
cli-generationargparse-wrapperscript-automation

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “argparse from function signature”

  • autocommandAutocommand converts a Python function into a command-line program by…
  • entrypoint2Converts Python function signatures and docstrings into command-line…
  • clizeClize turns Python functions into command-line interfaces…

Give your agent the search over MCP, or paste the wish link into any chat.

More Software Development packages

typing-extensions Worth it
PyPI · Software Development · released Jul 2026

Provides backported and experimental type hints for Python 3.9+, allowing use of newer typing features on older Python versions and enabling early experimentation with type system PEPs before they enter the standard library.

PSF-2.0pure Python · 3.9+
1.9Bdownloads / mo
numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
fastapi Worth it
PyPI · Software Development · released Jul 2026

FastAPI is a Python web framework for building REST APIs using type hints, with automatic request validation, serialization, and interactive API documentation.

MITpure Python · 3.10+
568.6Mdownloads / mo
annotated-doc With conditions
PyPI · Software Development · released Jul 2026

Provides a way to document function parameters, class attributes, return types, and variables inline using Python's `Annotated` type hint syntax instead of traditional docstrings.

MITpure Python · 3.9+
456.2Mdownloads / mo
typer Worth it
PyPI · Software Development · released Aug 2026

Typer builds command-line applications from Python functions using type hints, automatically generating help text, argument parsing, and shell completion.

Install it if you are building CLIs in Python.

MITpure Python · 3.10+
369.3Mdownloads / mo
distlib With conditions
PyPI · Software Development · released Jun 2026

Distlib provides low-level packaging utilities for building, distributing, and managing Python software—including metadata handling, version specifiers, wheel support, script installation, and dependency resolution.

permissive licensepure Python
323.3Mdownloads / mo

See also plac · arguably · argh · pyct · entrypoint2 · mando · clize · pydantic-argparse · python-tools-scripts · decli