Guidata

Latest version: v3.5.0

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

Scan your dependencies

Page 2 of 8

3.2.0

๐Ÿ› ๏ธ Bug fixes:

* [Issue 67](https://github.com/PlotPyStack/guidata/issues/67) - JSONReader/Deserializing object list: TypeError: 'NoneType' object is not subscriptable

๐Ÿ’ฅ Changes:

* `qthelpers.qt_wait`: added `show_message` and `parent` arguments (backward compatible)
* `qthelpers.qt_app_context`: removed `faulthandler` support (this need to be handled at the application level, see for example [DataLab's implementation](https://github.com/Codra-Ingenierie-Informatique/DataLab/blob/2a7e95477a8dfd827b037b39ef5e045309760dc8/cdlapp/utils/qthelpers.py#L87))
* Disabled command line argument parsing in `guidata.env` module:
* The `guidata` library is parsing command line arguments for the purpose of creating the environment execution object named `execenv` (see `guidata.env` module). This object is used to determine the execution environment mainly for testing purposes: for example, to bypass the Qt event loop when running tests thanks to the `--unattended` command line option.
* However this argument parsing is not always desirable, for example when using `guidata` as a dependency in another library or application. This is why the parsing mechanism is now disabled by default, and may be enabled by setting the environment variable `GUIDATA_PARSE_ARGS` to `1` (or any other non-empty value). As of today, it is still unclear if there will be a need to enable this mechanism in the future, so this is why the environment variable is used instead of a function argument.
* Removed deprecated `guidata.disthelpers` module (we recommend using [PyInstaller](https://www.pyinstaller.org/) instead)

3.1.1

๐Ÿ› ๏ธ Bug fixes:

* 'Apply' button state is now correctly updated when modifying one of the following items:
* `dataset.MultipleChoiceItem`
* `dataset.dataitems.DictItem`
* `dataset.dataitems.FloatArrayItem`
* Fixed minor deprecation and other issues related to locale

๐Ÿ’ฅ Changes:

* Removed `--unattended` command line option for `pytest`:
* Before: `pytest --unattended guidata` (to run tests without Qt event loop)
* Now: `pytest guidata` (there is no use case for running tests with Qt event loop,
so the `--unattended` option was removed and the *unattended* mode is now the default)
* Removed CHM documentation (obsolete format)

3.1.0

โš  Exceptionally, this release contains the following API breaking changes:

* Moved `utils.update_dataset` to `dataset.conv.update_dataset`
* Moved `utils.restore_dataset` to `dataset.conv.restore_dataset`

โœ” API simplification (backward compatible):

* Dataset items may now be imported from `guidata.dataset` instead of `guidata.dataset.dataitems`
* Dataset types may now be imported from `guidata.dataset` instead of `guidata.dataset.datatypes`
* Examples:
* `from guidata.dataset.dataitems import FloatItem` becomes `from guidata.dataset import FloatItem`
* `from guidata.dataset.datatypes import DataSet` becomes `from guidata.dataset import DataSet`
* Or you may now write:

python
import guidata.dataset as gds

class MyParameters(gds.DataSet):
"""My parameters"""
freq = gds.FloatItem("Frequency", default=1.0, min=0.0, nonzero=True)
amp = gds.FloatItem("Amplitude", default=1.0, min=0.0)


๐Ÿ’ฅ New features:

* New `dataset.create_dataset_from_dict`: create a dataset from a dictionary,
using keys and values to create the dataset items
* New `dataset.create_dataset_from_func`: create a dataset from a function signature,
using type annotations and default values to create the dataset items
* `dataset.dataitems.StringItem`:
* Added argument `password` to hide text (useful for passwords)
* Added argument `regexp` to validate text using a regular expression
* `dataset.dataitems.FileSaveItem`, `dataset.dataitems.FileOpenItem`,
`dataset.dataitems.FilesOpenItem` and `dataset.dataitems.DirectoryItem`:
added argument `regexp` to validate file/dir name using a regular expression
* `dataset.dataitems.DictItem`: added support for HDF5 and JSON serialization
* `dataset.io.h5fmt` and `dataset.io.jsonfmt`: added support for lists and dictionnaries serialization

โ™ป New PlotPyStack internal features:

* `widgets.about`: handle about dialog box informations (Python, Qt, Qt bindings, ...)
* Renamed development environment variable `GUIDATA_PYTHONEXE` to `PPSTACK_PYTHONEXE`

๐Ÿงน Bug fixes:

* Fixed Qt6 compatibility issue with `QFontDatabase`

3.0.6

Bug fixes:

* `widgets.console.interpreter`: replaced threading.Thread.isAlive (deprecated since Python 3.8)

Other changes:

* `DataSet.edit`, `DataSet.view` and `DataSetGroup.edit`: added missing arguments `size` and `wordwrap`
* Documentation: added check-list before submitting a patch (see [`contribute.rst`](https://github.com/PlotPyStack/guidata/blob/master/doc/dev/contribute.rst) file)
* Fixed some typing annotations and docstrings, as well as Pylint false positives
* Removed unused functions from `guidata.utils.encoding` module:
* `transcode`
* `getfilesystemencoding`
* Added missing docstrings and typing annotations in modules:
* `guidata.dataset.qtitemwidgets`
* `guidata.dataset.qtwidgets`
* `guidata.utils.encoding`
* `guidata.utils.misc`

3.0.5

Bug fixes:

* [Issue 65](https://github.com/PlotPyStack/guidata/issues/65) - QVariant import erroneously used in typing annotations

Other changes:

* `tests.test_callbacks`: added an example of a callback function for dynamically
changing the list of choices of a `ChoiceItem` object

3.0.4

Bug fixes:

* [Issue 63](https://github.com/PlotPyStack/guidata/issues/63) - [3.0.2] there is no more guidata-test script

* [Issue 62](https://github.com/PlotPyStack/guidata/issues/62) - [3.0.2] sphinx doc hang when building on the Debian infra

Other changes:

* [Issue 64](https://github.com/PlotPyStack/guidata/issues/64) - Add guidata-tests.desktop file to repository

Page 2 of 8

ยฉ 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.