Aiopentdb

Latest version: v1.0.0

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

Scan your dependencies

Page 1 of 2

1.0.0

------

Client
^^^^^^

- Add :class:`Settings`
- Add parameter ``settings`` for :class:`Client`
- Add attribute :attr:`~Client.settings` for :class:`Client`
- Replace method :meth:`~Client.populate_cache` with :meth:`~Client.populate` for :class:`Client`
- Method :meth:`Client.reset_token` now raises :exc:`ValueError` if no token is supplied
- Method :meth:`Client.fetch_questions` now returns an async iterator
- Method :meth:`Client.get_questions` now returns an iterator
- Remove the following methods for :class:`Client`:
- :meth:`~Client.generate_questions`
- :meth:`~Client.populate_token`
- :meth:`~Client.populate_questions`
- :meth:`~Client.populate_categories`
- :meth:`~Client.populate_count`
- :meth:`~Client.populate_counts`
- :meth:`~Client.populate_global_counts`

Dataclasses
^^^^^^^^^^^

- Instances of dataclasses are now **frozen** instances
- Rename attribute :attr:`~Question.mixed_answers` to :attr:`~Question.answers` for :class:`Question`

Enums
^^^^^

- Rename attribute :attr:`~CategoryType.cartoon_and_animation` to
:attr:`~CategoryType.cartoon_and_animations` for :class:`CategoryType`

Errors
^^^^^^

- Rename error :exc:`RequestError` to :exc:`OpenTDBError`

0.5.0

------

- Add method :meth:`Client.generate_questions`

0.4.0

------

- Drop typehints support
- Remove question limit of :meth:`Client.fetch_questions` and :meth:`Client.get_questions`
- Add parameter ``max_questions`` for :class:`Client`

0.3.0

------

- Add support for Python 3.6

0.2.0

------

- Add complete documentation

0.1.2

------

- Add ``py.typed``

Page 1 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.