Wystia

Latest version: v1.2.2

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

Scan your dependencies

Page 1 of 2

1.2.2

------------------

**Features and Improvements**

* Update ``keywords`` for the package.
* Add `Python 3.11` to the list of supported versions.

1.2.1

------------------

**Bugfixes**

* The ``Media`` class did not have the ``archived`` (``bool``) field, which
was resulting in errors when ``list_project()`` was called.

Therefore, moved over this field from ``Video`` to ``Media`` instead (which is the
super-class) so that this issue can be resolved.

1.2.0

------------------

**Features and Improvements**

* Update model classes to support *new* populated fields, such as ``archived`` (a ``bool`` field), as otherwise it breaks de-serialization by default -- credits to `KaneDM`_.
* Upgrade dependencies in ``requirements-dev.txt``.

**Bugfixes**

* Update to replace plain ``dict`` annotation with ``dict[str, str]``, as previously it was resulting in errors when parsing the class annotations.

.. _KaneDM: https://github.com/KaneDM

1.1.0

------------------

**Features and Improvements**

* Refactor any model classes that would be returned in *list* API
calls to subclass from ``JSONListWizard`` instead of ``JSONWizard``,
simply so that ``Container`` objects will be returned by default.

* Refactor to import ``Container`` from the ``dataclass-wizard`` library
instead. For backwards compatibility reasons, the ``models`` module
still exports the *Container* namespace.

1.0.0

------------------

**Breaking Changes**

* Wystia has officially dropped support for Python versions 3.5 and 3.6.
The support for 3.6 needed to be dropped primarily because of the
``from __future__ import annotations`` usage in the code.
* Refactored all API helper classes to return model class objects as a result,
rather than Python ``dict`` objects. In the case of any `list`- related API responses,
we now return a ``Container`` object so that it can be easier to print or display
the result for debugging purposes.
* All inputs to the API helper methods that previously accepted a ``dict`` object,
have in general been refactored to accept a model dataclass instance as an input instead.
* Renamed some error classes; for example, ``NoSuchMedia`` instead of ``NoSuchVideo``.
* Renamed some model classes; for example, ``MediaStatus`` instead of ``VideoStatus``.

**Features and Improvements**

* Added ``WistiaApi`` to the list of public exports, which is aliased to the
``WistiaDataApi`` helper class.
* Added new methods to the ``WistiaDataApi`` class for more explicitly
interacting with *medias* instead of *videos*. For example, a ``list_medias``
method is added as an alternative to calling ``list_videos``.
* Refactored the CI process to use GitHub Workflows instead of Travis CI.
* Added *3.10* to the list of supported Python versions.
* Updated the project status from *Beta* to *Production/Stable*.
* Added an ``examples/`` folder in the project repo on GitHub, which
contains Python scripts to demonstrate sample usage.
* Updated docs and added a new *Quickstart* section.

0.3.0

------------------

**Features and Improvements**

* Add compatibility changes to extend support to Python 3.5 and 3.6
* WistiaHelper: Add method ``project_details`` to retrieve info on a particular Wistia project
* WistiaEmbedApi: Update to parse the ``.json`` response rather than the ``.jsonp`` version
* Makefile: Add new command ``init``, which can be used to install Dev dependencies for the project

* Ensure the new command is compatible with Python 3.5, which has dependencies on separate
package versions; here we should use ``requirements-py35-dev.txt`` instead.
* Makefile: Update ``coverage`` command to run unit tests by default

**Bugfixes**

* models.VideoData: The parameter to the ``process_captions`` method is now
correctly type-annotated to accept a ``List`` of ``Dict``

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.