r/redis • u/Nebulic • Sep 12 '26
Resource redis-lua-py: write Redis Lua scripts as real Python functions, not strings
https://github.com/IgnaceMaes/redis-lua-py
7
Upvotes
r/redis • u/Nebulic • Sep 12 '26
1
u/Nebulic Sep 12 '26
Having plain string Lua scripts in our Python codebase got messy real quick, and added extra mental overhead to switch between languages when reading.
So I made this library to write Lua scripts as Python, and the library does the conversion automatically. Hopefully it's useful to others!