Skip to content

Commit

Permalink
Release 0.0.14
Browse files Browse the repository at this point in the history
  • Loading branch information
fern-bot authored Jun 11, 2024
1 parent 457350b commit 8f0bb5b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,21 +142,21 @@ except corpora.core.ApiError as e: # Handle all errors
Paginated requests will return a `SyncPager` or `AsyncPager`, which can be used as generators for the underlying object. For example, `corpora.list` will return a generator over `Corpus` and handle the pagination behind the scenes:

```python
for corpus in client.corpora.list():
for corpus in client.corpus.list():
print(corpus)
```

you could also iterate page-by-page:

```python
for page in client.corpora.list().iter_pages():
for page in client.corpus.list().iter_pages():
print(page.items)
```

or manually:

```python
pager = client.corpora.list()
pager = client.corpus.list()
# First page
print(pager.items)
# Second page
Expand Down

0 comments on commit 8f0bb5b

Please sign in to comment.