Picle

Latest version: v0.5.2

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

Scan your dependencies

Page 1 of 2

0.5.2

BUGS

1. Fixed arguments unpacking for run, Callable and function prior to executing them

0.5.1

BUGS

1. Improved commands and shells defaults handling

FEATURES

1. Added `kv` formatter

0.5.0

FEATURES

1. Added support for ``outputter`` json_schema_extra and PicleConfig arguments to specify function to use to output the results
2. Added ``processors`` argument to PicleConfig definition
3. Added ``rich_json`` and ``rich_print`` outputters and pipe functions

0.4.0

FEATURES

1. Added support for ``|`` piping commands output via models
2. Added PipeFunctionsModel build in class with this functions to process results:

- include - Returns only lines that contains requested ``include`` pattern
- exclude - Returns only lines that does not contains requested ``exclude`` pattern
- json - convert results to json string and pretty print it
- pprint - pretty print results using Python build-in ``pprint`` module
- yaml - convert results to yaml string and pretty print it

3. Added tests for PICLE using stdin/stdout App class attributes
4. Added support for model field ``function`` attribute to reference callable function to execute using collected results
5. Added support for ``processors`` argument to pass results through a list of arbitrary functions
6. Added support to use Field ``alias`` attribute as a field name to mask pydantic methods and reference the command

0.3.0

BUGS

1. Fixed tab completion handling when using Pydantic 2
2. Fixed model verbose help print when using Pydantic 2
3. Fixed `subshell` handling when model has `run` method defined

FEATURES

1. Added support to extract default values that are not ``None`` from the model definition
2. Added support for ``presence`` directive to allow field values sourcing from model when no value provided for the field

0.2.0

CHANGES

1. Updated dependency to pydantic 2, pydantic 1 no longer supported.

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.