apify / apify-client-python

Apify API client for Python
https://docs.apify.com/api/client/python/
Apache License 2.0
42 stars 10 forks source link

KeyValueStore: Method to check key-value store record exists #178

Open drobnikj opened 5 months ago

drobnikj commented 5 months ago

It is impossible to check if a key-value record exists, and users use kvs.getRecord instead, which is inefficient.

The implementation is simple: to check if a record exists, you can use an HTTP request with the method HEAD get Record API URL.

Method: keyValueStoreClient.exists(key: str): bool which returns true or false based on the record.

tusharwebd commented 5 months ago

Hi! New contributor here, I'd be interested to work on this. Can you share some more details? About where the existing method is implemented and where we want to implement the new method?