HumanSignal / label-studio-sdk

Label Studio SDK
https://api.labelstud.io
Apache License 2.0
99 stars 61 forks source link

fix: get_projects() with pagination #203

Closed makseq closed 1 month ago

tsr10 commented 6 months ago

Hi - this is roughly the approach I was envisioning, but do you want to bump page_size a little higher to 30 (or even 100?). This would result in fewer API calls and I know there's some rate limiting that heartex does.

makseq commented 6 months ago

@tsr10 I've set 25 projects per page + added sleep(0.5) to avoid rate limits. Have you tested this PR, does it work well?