Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/speedcell4/aku
An interactive annotation-driven ArgumentParser generator
https://github.com/speedcell4/aku
annotations argument-parser generator inspect python3 type-hints
Last synced: 18 days ago
JSON representation
An interactive annotation-driven ArgumentParser generator
- Host: GitHub
- URL: https://github.com/speedcell4/aku
- Owner: speedcell4
- Created: 2018-01-05T07:48:23.000Z (about 7 years ago)
- Default Branch: develop
- Last Pushed: 2024-02-20T10:49:42.000Z (11 months ago)
- Last Synced: 2024-03-20T16:08:20.846Z (10 months ago)
- Topics: annotations, argument-parser, generator, inspect, python3, type-hints
- Language: Python
- Homepage:
- Size: 351 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/speedcell4/aku/unit-tests.yml?cacheSeconds=0)
![PyPI - Version](https://img.shields.io/pypi/v/aku?label=pypi%20version&cacheSeconds=0)
![PyPI - Downloads](https://img.shields.io/pypi/dm/aku?cacheSeconds=0)---
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]]`