Sitk-cli

Latest version: v0.6.0

Safety actively analyzes 623704 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

0.5.0

0.2.0

This small package provides some helper functions based on the `inspect` module to translate functions that use `sitk.Image` in the signature in to functions that can be run from the command line. Function arguments of type `sitk.Image` are translated to `pathlib.Path` arguments. If the return type is `sitk.Image` a keyword argument is added to specify an output file, so the returned image can be written to file.

Example signature translation:
Python
def median_filter(input: sitk.Image, radius: int) -> sitk.Image:
pass

is converted by `sitk_cli.make_cli` to:
Python
def median_filter(input: pathlib.Path, radius: int, output: pathlib.Path = None):
pass

Links

Releases

Has known vulnerabilities

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.