Prefs

Latest version: v1.0.1

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

Scan your dependencies

Page 1 of 5

1.0.1

- Fixed bug when trying to read a PREFS file using the `read` function.
- Removed JSON and YAML suppport
- `PrefsBase.to_json`
- `PrefsBase.to_yaml`
- `read_json`
- `read_yaml`

1.0.0

- New parse system using [_Lark_](https://github.com/lark-parser/lark).
- Using _Lark_ indenting with spaces or tabs is allowed.
- Added support for bytes and ranges types.
- Now it checks what objects are written into the prefs file to avoid errors.
- Improved CLI tool with [_Click_](https://click.palletsprojects.com).
- Better tests with _unittest_.
- Now using poetry.
- Improved code quality in general.
- Ordered directories layout.
- Added dictionary-like interface for the `Prefs` class:
- `Prefs.__str__`
- `Prefs.__repr__`
- `Prefs.__len__`
- `Prefs.__delitem__`
- `Prefs.__getitem__`
- `Prefs.__setitem__`
- `Prefs.__contains__`
- `Prefs.__iter__`
- `Prefs.keys`
- `Prefs.values`
- `Prefs.items`
- `Prefs.pop`
- `Prefs.get`
- `Prefs.has_key`
- `Prefs.clear`
- `Prefs.update`
- `Prefs.popitem`
- Renamed:
- `PrefsBase.file` -> `PrefsBase.content`
- `PrefsBase.read_prefs` -> `PrefsBase.read`
- `PrefsBase.write_prefs` -> `PrefsBase.write`
- `PrefsBase.write_multiple_prefs` -> `PrefsBase.write_many`
- `PrefsBase.overwrite_prefs` -> `PrefsBase.overwrite`
- `PrefsBase.delete_file` -> `PrefsBase.delete`
- `PrefsBase.convert_to_json` -> `PrefsBase.to_json`
- `PrefsBase.convert_to_yaml` -> `PrefsBase.to_yaml`
- `convert_to_prefs` -> `to_prefs`
- `read_prefs_file` -> `read`
- `read_json_file` -> `read_json`
- `read_yaml_file` -> `read_yaml`
- Renamed CLI commands:
- `read_prefs_file` -> `read`
- New:
- `PrefsBase.get`
- `PrefsBase.remove_key`
- `bundle`
- `parse`
- New CLI commands:
- `about`
- Removed:
- `Prefs.change_filename`
- Removed CLI commands:
`convert_to_prefs`

0.2.65

- Improved error messages.
- Improved efficiency.
- Removed `indent_char` parameter from `PrefsBase` class.
- Now you MUST to indent with tabulations `\t`.

0.2.60

- When adding a prefs file as a data when using _pyinstaller_ now it can read the file.
- Added `output` parameter in `convert_to_prefs` function.

0.2.56

- Added resources suport so you can build your app without any issue.
- Added CLI tool.
- Cleaned directory tree.
- Fixed small bugs.
- Renamed `PREFSBase` to `PrefsBase`.
- Renamed `PREFS` to `Prefs`.
- Removed `separator_char, ender_char, continuer_char, comment_char, interpret, cascade` parameters from `PrefsBase` class.
- Updated tests.
- Updated discord username.
- Updated `EXTRAINFO.md`.

0.2.51

- Fixed bug filename has no path (`prefs.prefs`).

Page 1 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.