HumanSignal / label-studio-sdk

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

fix: get_projects() with pagination #203

Closed makseq closed 3 days ago

tsr10 commented 5 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 4 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?