Datasiphon

Latest version: v0.3.4

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

Scan your dependencies

Page 3 of 4

0.2.1

- Added advanced tests and logging

0.2.0

- Removed support for `ignore_extra_fields` and `strict` options in `sql.SQL.build` method
- added feature for infinite nesting - using `junctions` - AND/OR operators for sql queries - allowing advanced filtering and grouped clauses
- refactored validation of filter structure and columns, and restriction models
- added base class which has to be used when creating custom restriction models

0.1.3

- added option `strict` kwarg (defaults to `True`) to `sql.SQL.build` method to ignore fields in filter that don't correspond to expected `FORMAT` - does not apply to `ignore_extra_fields` option
- method `sql.SQL.validate_filter_structure` now instead of 'only validating' returns `dict` of processed filter items (because of `strict` option)

0.1.2

- added option `ignore_extra_fields` kwarg(defaults to `False`) to `sql.SQL.build` method to ignore extra fields in `filters` argument when using restriction model
- method `sql.SQL.validate_filter_columns` now instead of 'only validating' returns `dict` of processed filter items (because of `ignore_extra_fields` option)

0.1.1

- changed the way how `SQL` backend handles `order_by` keyword argument: now accepts `str` and `list` of `str` (instead of `dict` and `list` of `dict`) in following format options:
- `<order>(<field>)` - order being `asc` or `desc`
- `<order><field>` - order being `+` for `asc` and `-` for `desc`
- `<field>.<order>` - order being `asc` or `desc``

0.1.0

- added advanced validation using `pydantic` library
- added option (for `SQL`) to use restriction model (using `BaseModel` from `pydantic`) to restrict incoming filters
- added more tests

Page 3 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.