GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Crawlee for Python
  • Docs
  • API
  • Changelog
  • Blog
  • Next
  • 0.6
  • Autoscaling
  • Browser management
  • Configuration
  • Crawlers
  • Crawling contexts
  • Errors
  • Event data

This view

  • Original page
  • New address

GeezerVison is showing crawlee.dev — StorageClient | API | Crawlee for Python · Fast, reliable Python web crawlers.

Version: 1.11

Base class for storage clients.

The StorageClient serves as an abstract base class that defines the interface for accessing Crawlee's storage types: datasets, key-value stores, and request queues. It provides methods to open clients for each of these storage types and handles common functionality.

Storage clients implementations can be provided for various backends (file system, memory, databases, various cloud providers, etc.) to support different use cases from development to production environments.

Each storage client implementation is responsible for ensuring proper initialization, data persistence (where applicable), and consistent access patterns across all storage types it supports.

Hierarchy

  • StorageClient
    • FileSystemStorageClient
    • MemoryStorageClient
    • RedisStorageClient
    • SqlStorageClient

Index

Methods

  • create_dataset_client
  • create_kvs_client
  • create_rq_client
  • get_rate_limit_errors
  • get_storage_client_cache_key

Methods

create_dataset_client

  • async create_dataset_client(*, id, name, alias, configuration): DatasetClient
  • Overrides StorageClient.create_dataset_client

    Create a dataset client.


    Parameters

    • optionalkeyword-onlyid: str | None = None
    • optionalkeyword-onlyname: str | None = None
    • optionalkeyword-onlyalias: str | None = None
    • optionalkeyword-onlyconfiguration: Configuration | None = None

    Returns DatasetClient

create_kvs_client

  • async create_kvs_client(*, id, name, alias, configuration): KeyValueStoreClient
  • Overrides StorageClient.create_kvs_client

    Create a key-value store client.


    Parameters

    • optionalkeyword-onlyid: str | None = None
    • optionalkeyword-onlyname: str | None = None
    • optionalkeyword-onlyalias: str | None = None
    • optionalkeyword-onlyconfiguration: Configuration | None = None

    Returns KeyValueStoreClient

create_rq_client

  • async create_rq_client(*, id, name, alias, configuration): RequestQueueClient
  • Overrides StorageClient.create_rq_client

    Create a request queue client.


    Parameters

    • optionalkeyword-onlyid: str | None = None
    • optionalkeyword-onlyname: str | None = None
    • optionalkeyword-onlyalias: str | None = None
    • optionalkeyword-onlyconfiguration: Configuration | None = None

    Returns RequestQueueClient

get_rate_limit_errors

  • get_rate_limit_errors(): dict[int, int]
  • Return statistics about rate limit errors encountered by the HTTP client in storage client.


    Returns dict[int, int]

get_storage_client_cache_key

  • get_storage_client_cache_key(configuration): Hashable
  • Overrides StorageClient.get_storage_client_cache_key

    Return a cache key that can differentiate between different storages of this and other clients.

    Can be based on configuration or on the client itself. By default, returns a module and name of the client class.


    Parameters

    • configuration: Configuration

    Returns Hashable

Page Options
Hide Inherited
  • create_dataset_client
  • create_kvs_client
  • create_rq_client
  • get_rate_limit_errors
  • get_storage_client_cache_key
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.