Skip to content

Commit 1533cbe

Browse files
committed
chore(release): bump to v1.1.0
1 parent 3b9a346 commit 1533cbe

4 files changed

Lines changed: 46 additions & 47 deletions

File tree

advanced_alchemy/filters.py

Lines changed: 1 addition & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,6 @@
88
Type-safe filter construction, datetime range filtering, collection-based filtering,
99
pagination support, search operations, and customizable ordering.
1010
11-
Example:
12-
Basic usage with a datetime filter::
13-
14-
import datetime
15-
from advanced_alchemy.filters import BeforeAfter
16-
17-
filter = BeforeAfter(
18-
field_name="created_at",
19-
before=datetime.datetime.now(),
20-
after=datetime.datetime(2023, 1, 1),
21-
)
22-
statement = filter.append_to_statement(select(Model), Model)
23-
2411
Note:
2512
All filter classes implement the :class:`StatementFilter` ABC, ensuring consistent
2613
interface across different filter types.
@@ -592,22 +579,6 @@ class ComparisonFilter(StatementFilter):
592579
593580
This filter applies basic comparison operators (=, !=, >, >=, <, <=) to a field.
594581
It provides a generic way to perform common comparison operations.
595-
596-
Attributes:
597-
----------~
598-
field_name : str
599-
Name of the model attribute to filter on
600-
operator : str
601-
Comparison operator to use ('eq', 'ne', 'gt', 'ge', 'lt', 'le')
602-
value : Any
603-
Value to compare against
604-
605-
Examples:
606-
--------~
607-
>>> filter = SimpleFilter(
608-
... field_name="age", operator="gt", value=18
609-
... )
610-
>>> statement = filter.append_to_statement(select(User), User)
611582
"""
612583

613584
field_name: str
@@ -953,17 +924,10 @@ class FilterGroup(StatementFilter):
953924
954925
This class combines multiple filters with a logical operator (AND/OR).
955926
It provides a way to create complex nested filter conditions.
956-
957-
Attributes:
958-
----------~
959-
logical_operator : Callable[..., ColumnElement[bool]]
960-
The SQLAlchemy operator to combine filters with (and_, or_)
961-
filters : list[StatementFilter]
962-
List of filters to apply
963927
"""
964928

965929
logical_operator: Callable[..., ColumnElement[bool]]
966-
"""Logical operator to combine the filters (e.g., and_, or_)."""
930+
"""Logical operator to combine the filters."""
967931
filters: list[StatementFilter]
968932
"""List of filters to combine."""
969933

@@ -1029,13 +993,6 @@ class MultiFilter(StatementFilter):
1029993
This filter provides a way to construct complex filter trees from
1030994
a structured dictionary input, supporting nested logical groups and
1031995
various filter types.
1032-
1033-
Attributes:
1034-
----------~
1035-
filters : dict[str, Any]
1036-
Dictionary structure representing the filters, where keys can be
1037-
logical operators ("and_", "or_") and values are lists of filter
1038-
definitions.
1039996
"""
1040997

1041998
filters: dict[str, Any]

docs/changelog.rst

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,48 @@
33
0.x Changelog
44
=============
55

6+
.. changelog:: 1.1.0
7+
:date: 2025-04-06
8+
9+
.. change:: add stamp command
10+
:type: feature
11+
:pr: 428
12+
13+
Adds the Alembic `stamp` command to the CLI that will stamp the current database state into the migrations directory.
14+
15+
.. change:: adds an `ExistsFilter` and `NotExists` filter
16+
:type: feature
17+
:pr: 336
18+
:issue: 331
19+
20+
Implements new `Exists` and `NotExists` filters to more easily apply this type of logic to queries.
21+
22+
Closes #331
23+
24+
.. change:: fully migrate to `pytest-databases`
25+
:type: feature
26+
:pr: 430
27+
28+
Migrates all database fixtures to `pytest-database`
29+
30+
.. change:: file object data type
31+
:type: feature
32+
:pr: 291
33+
:issue: 24
34+
35+
Implement a file data type that leverages `obstore` or `fsspec`. Supports any supported FSSpec or Obstore backend it including `sftp`, `gcs`, `s3`, `local`, and more.
36+
37+
.. change:: Implements a `MultiFilter` type for complex searches
38+
:type: feature
39+
:pr: 311
40+
41+
This PR implements a "Multi-Filter" Filter type.
42+
43+
It allows:
44+
- Create a collection of filters from an input
45+
- Allows filters to be groups with and/or logic
46+
47+
648
.. changelog:: 1.0.2
749
:date: 2025-04-01
850

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ maintainers = [
4444
name = "advanced_alchemy"
4545
readme = "README.md"
4646
requires-python = ">=3.9"
47-
version = "1.0.2"
47+
version = "1.1.0"
4848

4949
[project.urls]
5050
Changelog = "https://docs.advanced-alchemy.litestar.dev/latest/changelog"
@@ -162,7 +162,7 @@ test = [
162162
allow_dirty = true
163163
commit = false
164164
commit_args = "--no-verify"
165-
current_version = "1.0.2"
165+
current_version = "1.1.0"
166166
ignore_missing_files = false
167167
ignore_missing_version = false
168168
message = "chore(release): bump to v{new_version}"

uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)