MCPcopy Create free account
hub / github.com/apify/crawlee-python / read_lua_script

Function read_lua_script

src/crawlee/storage_clients/_redis/_utils.py:21–25  ·  view source on GitHub ↗

Read a Lua script from a file.

(script_name: str)

Source from the content-addressed store, hash-verified

19
20
21def read_lua_script(script_name: str) -> str:
22 """Read a Lua script from a file."""
23 file_path = Path(__file__).parent / 'lua_scripts' / script_name
24 with file_path.open(mode='r', encoding='utf-8') as file:
25 return file.read()

Callers

nothing calls this directly

Calls 2

openMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected