Description
The wrapper for `find` is great, but you have to wait for all the results of the `find` to be ready with their query fields in order to get the results.
Introducing `yield_find`, which allows to yield results as soon as they're available.
Updated README with the two use cases:
Find multiple shots (returns all results at once)
shots = fpt.find(
"Shot",
[["id", "in", [1234, 12345]]],
["code", "sg_status_list", "sg_query_field"]
)
Stream results one by one
for shot in fpt.yield_find(
"Shot",
[["id", "in", [1234, 12345]]],
["code", "sg_status_list", "sg_query_field"]
):
process_shot(shot) Process each shot as it becomes ready
What's Changed
* Added yield_find by ksallee in https://github.com/ksallee/fpt-api/pull/1
New Contributors
* ksallee made their first contribution in https://github.com/ksallee/fpt-api/pull/1
**Full Changelog**: https://github.com/ksallee/fpt-api/compare/0.1.2...0.2.0