Piou

Latest version: v0.14.2

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

Scan your dependencies

Page 4 of 11

0.10.2

FIX

- Fix parsing issue of `UnionType`.

0.10.1

FIX

- Fix parsing issue of `Optional` types.

0.10.0

NEW

- Adding a new `Password` type that will hide the default value when printing help with the Rich Formatter.

0.9.8

FIX

- Fix issue where positional argument with quotation marks was not working as expected

0.9.7

FIX

- Fix issue where an async `Derived` processor would be using a different loop from the main run function

0.9.6

NEW

- You can now chain the `Derived` options.
For instance:
python
from piou import Cli, Option, Derived

cli = Cli(description='A CLI tool')

def processor_1(a: int = Option(1, '-a'),
b: int = Option(2, '-b')):
return a + b

def processor_2(c: int = Derived(processor_1)):
return c + 2

def processor_3(d: int = Derived(processor_2)):
return d * 2

cli.command()
def test(value: int = Derived(processor_3)):
nonlocal called
assert value == 10

Page 4 of 11

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.