Parsyfiles

Latest version: v2.9.1

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

Scan your dependencies

Page 2 of 4

2.6.0

* `TypeVars` are now supported. This fixes [17](https://github.com/smarie/python-parsyfiles/issues/17)
* `Union` are now better supported too, in particular when there is a union inside a typevar or conversely.
* Instead of using `_args__` we now use `get_args(t, evaluate=True)` from [`typing_inspect`](https://github.com/ilevkivskyi/typing_inspect) everywhere, so as to be compliant with any complex PEP484 construct.
* The `<dict_to_object>` converter and the `Multifile object parser` now both check if a subtype can be built from the `dict`/`files` present before giving up. There is a macimum limit to the number of subclasses tried, in global configuration `parsyfiles_global_config(dict_to_object_subclass_limit=x)`. Default is 50. Fixes [18](https://github.com/smarie/python-parsyfiles/issues/18)
* better 'nonability' check in all parsers/converters that rely on the constructor signature's PEP484 type hints
* Improved log messages for Try/Catch parser (CascadingParser)

2.5.0

* Union types are now supported. This fixes [16](https://github.com/smarie/python-parsyfiles/issues/16)

2.4.8

* Removed annoying warnings for DataFrame objects in <dict_to_object>
* Final log newline is now only present in debug mode
* Handling of Tuple in nested conversion process now works correctly

2.4.7

* Fixed [14](https://github.com/smarie/python-parsyfiles/issues/14): nested dictionary types now appear correctly in log messages
* Fixed [15](https://github.com/smarie/python-parsyfiles/issues/15): collections of custom collection types now benefit from automatic conversion too.
* Unit tests updated to work with latest version of dependencies

2.4.6

* Fixed [13](https://github.com/smarie/python-parsyfiles/issues/13): yaml collections now benefit from the conversion framework, meaning that if an inner object inside the collection has not the expected type it is converted.

2.4.5

* Added a warning in <dict_to_object> converter when some desired type can not be converted because of its constructor signature. Fixes [10](https://github.com/smarie/python-parsyfiles/issues/10**)
* Added support for `typing.Optional` in <dict_to_object> converter. This Fixes [11](https://github.com/smarie/python-parsyfiles/issues/11)
* Improved log messages to display information about the parsing chain used, and many other things. Fixes [12](https://github.com/smarie/python-parsyfiles/issues/12)
* New global configuration option `full_paths_in_logs`

Page 2 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.