pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/apify/crawlee-python/pull/1833/commits/85832974ab4c61629fef5d2c068b683917e0863b

dia="all" rel="stylesheet" href="https://github.githubassets.com/assets/primer-70be7debc79a8eff.css" /> refactor: Use a Rust-based filesystem storage implementation by janbuchar · Pull Request #1833 · apify/crawlee-python · GitHub
Skip to content
Prev Previous commit
Next Next commit
adapt to improved async iteration
  • Loading branch information
janbuchar committed Apr 9, 2026
commit 85832974ab4c61629fef5d2c068b683917e0863b
8 changes: 2 additions & 6 deletions src/crawlee/storage_clients/_file_system/_dataset_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,14 +185,10 @@ async def iterate_items(
f'by the {self.__class__.__name__} client.'
)

# The native client returns a list rather than an async iterator,
# so we fetch all matching items and yield them one by one.
items: list[Any] = await self._native_client.iterate_items(
async for item in self._native_client.iterate_items(
offset=offset,
limit=limit,
desc=desc,
skip_empty=skip_empty,
)

for item in items:
):
yield item
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,10 @@ async def iterate_keys(
exclusive_start_key: str | None = None,
limit: int | None = None,
) -> AsyncIterator[KeyValueStoreRecordMetadata]:
# The native client returns a list, so we fetch all matching keys
# and yield them one by one.
items: list[dict[str, Any]] = await self._native_client.iterate_keys(
async for item in self._native_client.iterate_keys(
exclusive_start_key=exclusive_start_key,
limit=limit,
)

for item in items:
):
yield KeyValueStoreRecordMetadata(**item)

@override
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy