semvec/pypi-packages huggingface dataset:
acellera-func2argparse 0.0.1
Convert python functions to argparse objects
Requires Python: >=3.9

# func2argparse

Converts annotated python functions to argparsers.

func2argparse uses type hints and default values in function signatures and combines them together with
the docstring of the function to create an argument parser out of it.

Choices for arguments are taken from the docstrings as demonstrated in the example below.
Boolean arguments must always be default `False`.

## Documentation & Installation

```sh
pip install func2argparse
```

## Examples

```py
from pathlib import Path

def foo(
    x: int,
    y: Path,
    z: int = 54,
    w: list[str] = ("hey", "ho"),
    k: str = "choice1",
    ll: list[int] = None,
    flg: bool = False,
    lb: list[bool] = True,
):
    """This is a test function

    Parameters
    ----------
    x : int
        First arg
    y : Path
        Second arg
    z : int
        Third arg
    w : list[str]
        Fourth arg.
        Multiline documentation
    k : str, choices=("choice1", "choice2")
        Fifth arg
    ll : list[int]
        This is an empty list
    flg : bool
        Set to True to do something
    lb : list[bool]
        A list of boolean values

    Examples
    --------
    >>> foo()
    """
    print(locals())

from func2argparse import func_to_argparser
parser = func_to_argparser(foo, exit_on_error=False)
parser.print_help()
```

```
usage: This [-h] --x X --y Y [--z Z] [--w W [W ...]] [--k {choice1,choice2}] [--ll LL [LL ...]] [--flg] [--lb LB [LB ...]]

options:
  -h, --help            show this help message and exit
  --x X, -x X           First arg (default: None)
  --y Y, -y Y           Second arg (default: None)
  --z Z, -z Z           Third arg (default: 54)
  --w W [W ...], -w W [W ...]
                        Fourth arg. Multiline documentation (default: ('hey', 'ho'))
  --k {choice1,choice2}, -k {choice1,choice2}
                        Fifth arg (default: choice1)
  --ll LL [LL ...], -l LL [LL ...]
                        This is an empty list (default: None)
  --flg, -f             Set to True to do something (default: False)
  --lb LB [LB ...], -lb LB [LB ...]
                        A list of boolean values (default: True)
```
dhmsaiffconverter 1.0
converter raw aiff vibration data to csv data file
Requires Python: >=3.6

# DHMS_aiff_to_csv
Aiff振动加速度音频文件转csv文件Python库

所有者：苏州德姆斯信息技术有限公司

维护者：包岱杰

创建日期：2023年5月19日

说明：此Python库仅限于下载德姆斯设备健康管理系统中非主线环境的设备原始振动加速度aiff数据