From 6da1f07037f9f44ee3f4ae336258d4e8ded89908 Mon Sep 17 00:00:00 2001 From: gabino Date: Wed, 28 Jan 2026 11:20:59 -0600 Subject: [PATCH 1/4] Add include_history parameter to Client search method --- quienesquien/client.py | 2 ++ quienesquien/version.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/quienesquien/client.py b/quienesquien/client.py index 6a8e70a..fa7b24f 100644 --- a/quienesquien/client.py +++ b/quienesquien/client.py @@ -66,6 +66,7 @@ async def search( birthday: dt.date | None = None, search_type: SearchType | None = None, search_list: tuple[SearchList, ...] | None = None, + include_history: bool | None = None, ) -> list[Person]: """Perform a search request and return the results. @@ -105,6 +106,7 @@ async def search( 'birthday': birthday.strftime('%d/%m/%Y') if birthday else None, 'type': search_type.value if search_type is not None else None, 'list': ','.join(search_list) if search_list else None, + 'include_history': include_history, } params = {k: v for k, v in params.items() if v is not None} diff --git a/quienesquien/version.py b/quienesquien/version.py index 3f6fab6..ab39a18 100644 --- a/quienesquien/version.py +++ b/quienesquien/version.py @@ -1 +1 @@ -__version__ = '1.0.3' +__version__ = '1.0.4.dev1' From 9fc630f522242c861b47d357bfdcb9bbeecccd01 Mon Sep 17 00:00:00 2001 From: gabino Date: Wed, 28 Jan 2026 11:23:47 -0600 Subject: [PATCH 2/4] Add vcrpy dependency to requirements-test.txt --- requirements-test.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/requirements-test.txt b/requirements-test.txt index 454837f..fba3d58 100644 --- a/requirements-test.txt +++ b/requirements-test.txt @@ -9,3 +9,4 @@ types-requests==2.* pytest-asyncio==0.* pytest-mock==3.* respx==0.* +vcrpy==7.0.* From 65b7a0b3c9c1e0c55010e4cd97761bd5dc6105b5 Mon Sep 17 00:00:00 2001 From: gabino Date: Wed, 28 Jan 2026 12:07:00 -0600 Subject: [PATCH 3/4] Bump version to 1.0.4 --- README.md | 1 + quienesquien/version.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index f2b2f40..3976b1b 100644 --- a/README.md +++ b/README.md @@ -123,6 +123,7 @@ client = Client( - `search_type` (SearchType): fisica or moral. - `search_list` (tuple[SearchList, ...]): Lists to search. If not provided, searches all. +- `include_history` (bool): Include historical records (default: False). The search follows a hierarchical approach: it first attempts to find a match using the RFC. If no match is found, it searches by CURP. Finally, if neither is found, it looks for a match by name. diff --git a/quienesquien/version.py b/quienesquien/version.py index ab39a18..8a81504 100644 --- a/quienesquien/version.py +++ b/quienesquien/version.py @@ -1 +1 @@ -__version__ = '1.0.4.dev1' +__version__ = '1.0.4' From 06df3ffba8649a491ff29f108b51642169d8c298 Mon Sep 17 00:00:00 2001 From: gabino Date: Wed, 28 Jan 2026 12:17:54 -0600 Subject: [PATCH 4/4] Update README to clarify include_history parameter behavior in Client search method --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 3976b1b..0d91a10 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,7 @@ client = Client( - `search_type` (SearchType): fisica or moral. - `search_list` (tuple[SearchList, ...]): Lists to search. If not provided, searches all. -- `include_history` (bool): Include historical records (default: False). +- `include_history` (bool | None): If `True`, include historical records; if `False`, only current; if `None`, use API default. The search follows a hierarchical approach: it first attempts to find a match using the RFC. If no match is found, it searches by CURP. Finally, if neither is found, it looks for a match by name.