Skip to content
/ aku Public

An interactive annotation-driven ArgumentParser generator

Notifications You must be signed in to change notification settings

speedcell4/aku

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

logo

GitHub Workflow Status (with event) PyPI - Version PyPI - Downloads


An interactive annotation-driven ArgumentParser generator

Installation

python -m pip aku

Type Annotations

  • Primitive types, e.g., int, str, bool, float, Path.
  • Container types,
    • List, i.e., List[T]
    • Tuple, i.e., homogeneous Tuple[T, ...] and heterogeneous Tuple[T1, T2, T3]
    • Set and FrozenSet, i.e., Set[T] and FrozenSet[T]
    • Literal, e.g., Literal[42, 1905]
  • Nested types
    • Function, e.g., Type[F]
    • Union of functions, e.g., Union[Type[F1], Type[F2], Type[F3]]