From b2aa14e203214e28d2be713eb715befb3fbda329 Mon Sep 17 00:00:00 2001 From: Artemiy Vereshchinskiy Date: Fri, 14 Feb 2025 19:44:11 +0700 Subject: [PATCH] Add ability to query property values --- CONTRIBUTING.md | 19 +++++++++++++++++++ pyproject.toml | 2 +- src/rushdb/api/properties.py | 3 ++- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 61802e4..28d00c3 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -41,3 +41,22 @@ For urgent issues or further assistance, you can reach out directly: - **LinkedIn**: [linkedin.com/onepx](https://linkedin.com/in/onepx) We appreciate your contributions and look forward to your feedback! + +--- +## Poetry commands + +``` +poetry run isort . --check +``` + +``` +poetry run mypy src/rushdb +``` + +``` +poetry run black . +``` + +``` +poetry run ruff check . +``` \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index dca0362..9697eff 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "rushdb" -version = "0.2.1" +version = "0.3.0" description = "RushDB Python SDK" authors = ["RushDB Team "] license = "Apache-2.0" diff --git a/src/rushdb/api/properties.py b/src/rushdb/api/properties.py index 12345c3..0f276cb 100644 --- a/src/rushdb/api/properties.py +++ b/src/rushdb/api/properties.py @@ -49,6 +49,7 @@ def values( self, property_id: str, sort: Optional[Literal["asc", "desc"]], + query: Optional[str], skip: Optional[int], limit: Optional[int], transaction: Optional[Transaction] = None, @@ -60,5 +61,5 @@ def values( "GET", f"/api/v1/properties/{property_id}/values", headers=headers, - params={"sort": sort, "skip": skip, "limit": limit}, + params={"sort": sort, "skip": skip, "limit": limit, "query": query}, )