Skip to content

v0.1.2

Latest

Choose a tag to compare

@stemirkhan stemirkhan released this 17 May 11:30
· 4 commits to main since this release
69cae01

πŸš€ Changes
Interfaces have been moved to a separate submodule interfaces/:

  • RetryStrategyI
  • ResponseFormatterI
  • ResponseValidatorI

New response formatting system:

  • Added the interface ResponseFormatterI
  • Default implementation: DefaultResponseFormatter

New response validation system:

  • Added the interface ResponseValidatorI
  • Default implementation: DefaultResponseValidator

βœ… Improvements

  • Extensibility via DI: now you can pass your own validator and formatter implementations
  • Cleaner code, more isolated modules
  • Support for scalable client architecture

πŸ“ Project Structure Changes

bitrix24_client/
β”œβ”€β”€ interfaces/
β”‚   β”œβ”€β”€ retry_strategy.py
β”‚   β”œβ”€β”€ response_formatter.py
β”‚   └── response_validator.py
β”œβ”€β”€ strategies/
β”‚   └── ...
β”œβ”€β”€ formatters/
β”‚   └── default_response_formatter.py
β”œβ”€β”€ validators/
β”‚   └── default_response_validator.py