Skip to content

Releases: dub1401/dublib

0.33.2

Choose a tag to compare

@dub1401 dub1401 released this 02 Nov 06:11

🐛 Fixed

cli.messages

  • Unescaped message type.
  • Debug and info messages colors switched.

cli.text_styler

  • Rich highlight enabled by default.

functions.decorators

  • Missing boud function annotation for run_before_method().

0.33.1

Choose a tag to compare

@dub1401 dub1401 released this 28 Oct 18:29

✨ Added

validators

  • JSON-unserializable objects now can be dumped with str() and also can be redefined.
  • Validator LanguageCode for ISO 639-3.

0.33.0

Choose a tag to compare

@dub1401 dub1401 released this 26 Oct 10:27

✨ Added

validators

  • All validators now can be used as pydantic annotations.
  • Validators for packaging Version and SpecifierSet.
  • Validators for exists file and directory.

🎨 Changed

  • Minimal supported Python raised to 3.13.
  • All enumerations renamed in accordance with PEP 435.
  • Dependencies separated in optional groups.
  • Exceptions now replaced at modules roots in exceptions submodule.
  • Logger now can used without cli dependencies (unstyled output).

cli.text_styler

  • TextStyler now is serve to HTML-Rich-ANSI styles conversion and presets generation.

engine.config

  • Module renamed to config from configurator.
  • Migration to pydantic-settings.
  • Config now isn't singleton.
  • Support many config sources.
  • Switched in read-only mode.
  • Support values from environment variables and *.toml files.

validators

  • Validator ValidPath renamed to ExistingPath.
  • Validator All renamed to Any.

🗑️ Deprecated

  • Module engine.bus.

🔥 Removed

  • Module telebot_utils.

cli.text_styler

  • Presets with FastStyler.

functions.decorators

  • Decorator deprecated().

validators

  • Validator Number.

🐛 Fixed

validators

  • False positive Datetime validator.
  • Validator Float false positiove on non-human floats as 1. or .5.
  • Validator Path ignored platform.

0.32.0

Choose a tag to compare

@dub1401 dub1401 released this 12 Oct 06:56

✨ Added

cli.terminalyzer

  • Handlers now can accept positional and named additional arguments.
  • Method run_handler() in command entity.
  • Property is_handled to command entity.

🎨 Changed

  • Module cli.templates.bus reworked as cli.messages.

cli.terminalyzer

  • Rename parse_parameters() to parse_command().

engine.patcher

  • Module fully rewritten.

🐛 Fixed

cli.messages

  • URL validation for scheme file:// failed (upstream for validators>=0.36).

engine.configurator

  • Config instance initialization failure.

🔥 Removed

  • Module cli.templates.

0.31.1

Choose a tag to compare

@dub1401 dub1401 released this 23 Sep 09:05

🎨 Changed

cli.templates.bus

  • Messages types now printed in lower case.

🐛 Fixed

  • Many spelling issues with typos.

0.31.0

Choose a tag to compare

@dub1401 dub1401 released this 17 Sep 13:14

✨ Added

cli.terminalyzer

  • Method parse_parameters() now may automatically split input parameters from string by shlex.split().
  • Now handlers available in commands modules.
  • Raising exception NamedParameterMissingInModelError while named parameter required from entity.

🎨 Changed

cli.terminalyzer

  • Method set_commands_groups() renamed to set_models_groups().
  • Helper method generate_command_info() renamed to generate_model_info().

🗑️ Deprecated

  • Module telebot_utils planned to remove in future versions.

Версия 0.30.4

Choose a tag to compare

@dub1401 dub1401 released this 15 Sep 08:02

✨ Добавлено

functions.data.dictionary

  • Функция deep_merge() для глубокого слияния многоуровневых словарей.

Версия 0.30.3

Choose a tag to compare

@dub1401 dub1401 released this 14 Sep 15:48

✨ Добавлено

web_requestor

  • Оператор авторизации Bearer получил метод get_jwt_expiration_date().
  • Оператору авторизации добавлено свойство, представляющее сам метод авторизации.

Версия 0.30.2

Choose a tag to compare

@dub1401 dub1401 released this 10 Sep 17:46

🐛 Исправлено

cli.terminalyzer

  • Аргументы позиций обрабатывались перед именованными параметрами базовой позиции.
  • Не осуществлялась проверка блокировки параметра позиции.

telebot_utils.cache

  • Невозможно кэшировать файл.

web_requestor

  • Попытка смены протокола прокси могла проводиться для любого протокола, а не только HTTP / HTTPS.

Версия 0.30.1

Choose a tag to compare

@dub1401 dub1401 released this 08 Sep 14:48

✨ Добавлено

cli.terminalyzer

  • Метод get_position_named_parameter() для получения сущностей гарантированно именованных параметров позиции.

⚡️ Изменено

cli.terminalyzer

  • Для сущностей флагов снова возвращается основное имя флага вместо True.