You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interfacy is a CLI framework for building command-line interfaces from Python functions, classes, and class instances using type annotations and docstrings.
9
+
Interfacy is a CLI framework that turns Python functions, classes, and class instances into command-line interfaces. It derives the CLI from signatures, type annotations, and docstrings instead of making you define it twice.
10
10
11
11
## Features
12
12
13
-
- Generate CLIs from functions, class methods, or class instances.
14
-
- Nested subcommands and command groups with aliases.
15
-
- Type inference from annotations, with support for custom parsers.
13
+
- Generate CLIs from functions, classes, class methods, and class instances.
14
+
- Nested subcommands and manual command groups with aliases.
15
+
- Type-driven parsing from annotations, with support for custom parsers.
16
+
- Model expansion for dataclasses, Pydantic models, and plain classes.
16
17
-`--help` text generated from docstrings.
17
-
- Run a target function, class, or class instance directly from the CLI (e.g. `interfacy path.py:main`).
18
-
- Multiple help layouts and color themes.
19
-
- Optional class initializer arguments exposed as CLI options.
20
-
- Argparse-compatible backend, including a drop-in `ArgumentParser` replacement.
18
+
- Highly customizable help output with multiple layouts, color themes, and configurable ordering.
21
19
- Stdin piping support with configurable routing to parameters.
0 commit comments