Piou

Latest version: v0.15.0

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

Scan your dependencies

Page 5 of 11

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

0.9.5

FIX

- Fix typo kianmeng
- Fix typing issues with `pyright`

0.9.4

FIX

- Fix `Option` of `CommandDerivedOption` processor where the `name` was not set properly.

0.9.3

FIX

- Fix `Option` / `CommandDerivedOption` where when reused the fields were overwritten

0.9.2

FIX

- Fix options and argument ordering with `RichFormatter`

0.9.1

NEW

- adding support for async derived processor

Page 5 of 11

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.