Skip to content

Commit 5869f8e

Browse files
committed
update to apify client 1.12 and implement record exists
1 parent 53fad07 commit 5869f8e

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ keywords = [
3434
"scraping",
3535
]
3636
dependencies = [
37-
"apify-client>=1.11.0",
37+
"apify-client>=1.12.0",
3838
"apify-shared>=1.3.0",
3939
"cachetools>=5.5.0",
4040
"crawlee@git+https://github.com/apify/crawlee-python.git@bc50990dd09eb5c2b66783b2fa62a8bc689a7737",

src/apify/storage_clients/_apify/_key_value_store_client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,7 @@ async def iterate_keys(
201201

202202
@override
203203
async def record_exists(self, key: str) -> bool:
204-
raise NotImplementedError(
205-
'Checking if a record exists is currently not supported in the Apify storage client. '
206-
)
204+
return await self._api_client.record_exists(key=key)
207205

208206
async def get_public_url(self, key: str) -> str:
209207
"""Get a URL for the given key that may be used to publicly access the value in the remote key-value store.

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)