Prefs

Latest version: v1.0.1

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

Scan your dependencies

Page 3 of 5

0.1.9

- Changed all function names accord to PEP8:
* `PREFS.ReadPrefs` -> `PREFS.read_prefs`
* `PREFS.WritePrefs` -> `PREFS.write_prefs`
* `PREFS.OverWritePrefs` -> `PREFS.overwrite_prefs`
* `PREFS.ChangeFilename` -> `PREFS.change_filename`
* `PREFS.ConvertToJson` -> `PREFS.convert_to_json`
* `ReadJsonFile` -> `read_json_file`
* `ReadPREFSFile` -> `read_prefs_file`
* `ConvertToPREFS` -> `convert_to_prefs`

- Added `PREFS.convert_to_yaml` and `read_yaml_file`.

0.1.8

- Fixed bug when creating a pref with an empty dictionary as value.

0.1.7

- Added `ConvertToPREFS()` function (outside PRFS class) that do the same as `dumps()` in json. Converts a dictionary into a PREFS file but instead of writing the PREFS in a file returns it as string.
- Changed `ReadPrefs()` function name (outside PREFS class) to `ReadPREFSFile()`.
- Fixed issue when dictionary=True parameter, fixed issue when dictionary=True and interpret=True parameter.

0.1.6

- Added ReadPrefs function outside PREFS class that reads a PREFS file and return it's value.

0.1.4

- Fixed error when overwriting prefs and using a lambda function.

0.1.3

- Added tree/cascade (nested dictionaries) support.
- Added docstring.

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.