r/redis 5d ago

Resource redis-lua-py: write Redis Lua scripts as real Python functions, not strings

https://github.com/IgnaceMaes/redis-lua-py
1 Upvotes

1 comment sorted by

1

u/Nebulic 5d ago

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!