Picle

Latest version: v0.7.3

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

Scan your dependencies

Page 2 of 2

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.

0.1.0

FEATURES:

1. Add help for enums
2. Add autocompletion for enums
3. Add input validation
4. Add support for static method to models to source options/choices dynamically
5. Add support to convert argument values from single value to a list as well as to mutate types e.g. from string to int
6. Add <ENTER> to help output if model supports subshell
7. Add support for model field to be of Callable type with default value being string the refers to model staticmethod

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.