MCPcopy Index your code
hub / github.com/apify/crawlee-python / kvs_client

Function kvs_client

tests/unit/storage_clients/_sql/test_sql_kvs_client.py:36–46  ·  view source on GitHub ↗

A fixture for a SQL key-value store client.

(
    configuration: Configuration,
)

Source from the content-addressed store, hash-verified

34
35@pytest.fixture
36async def kvs_client(
37 configuration: Configuration,
38) -> AsyncGenerator[SqlKeyValueStoreClient, None]:
39 """A fixture for a SQL key-value store client."""
40 async with SqlStorageClient() as storage_client:
41 client = await storage_client.create_kvs_client(
42 name='test-kvs',
43 configuration=configuration,
44 )
45 yield client
46 await client.drop()
47
48
49# Helper function that allows you to use inspect with an asynchronous engine

Callers

nothing calls this directly

Calls 3

SqlStorageClientClass · 0.90
create_kvs_clientMethod · 0.45
dropMethod · 0.45

Tested by

no test coverage detected