{"id":24507,"library":"ramp-packer","title":"RAMP Packer","description":"A tool for packing Redis modules into RAMP (Redis Advanced Module Packaging) format for distribution. Current version 2.5.17, supports Python 3.7+. Released as needed, follows semantic versioning.","status":"active","version":"2.5.17","language":"python","source_language":"en","source_url":"https://github.com/RedisLabs/ramp-packer","tags":["redis","module","packaging","ramp","distribution"],"install":[{"cmd":"pip install ramp-packer","lang":"bash","label":"Install ramp-packer"}],"dependencies":[],"imports":[{"note":"Common mistake: using import ramp_packer or from ramp_packer import ... – the correct package name is ramppacker.","wrong":"import ramp_packer","symbol":"RampPack","correct":"from ramppacker import RampPack"}],"quickstart":{"code":"from ramppacker import RampPack\n\npack = RampPack()\npack.name = 'my-module'\npack.version = '1.0.0'\npack.author = 'Your Name'\npack.email = 'your@email.com'\npack.description = 'A custom Redis module'\npack.capabilities = {'types': ['mytype'], 'commands': ['mycommand']}\npack.add_file('module.so')\npack.create('my-module.ramp')","lang":"python","description":"Creates a RAMP package from a compiled Redis module .so file."},"warnings":[{"fix":"Use absolute paths or ensure relative paths are correct relative to the working directory.","message":"RAMP packages require specific directory structure. Ensure all referenced files exist and paths are correct.","severity":"gotcha","affected_versions":"all"},{"fix":"Define capabilities as {'types': [...], 'commands': [...], ...}.","message":"The 'capabilities' field must be a dict with lists; omitting or using wrong types will cause errors.","severity":"gotcha","affected_versions":"all"},{"fix":"Update to use RampPack class instead of deprecated functions.","message":"Some older API functions may be deprecated in favor of the newer object-oriented RampPack class.","severity":"deprecated","affected_versions":"<2.0"},{"fix":"Upgrade Python to 3.7 or later.","message":"Python 3.6 support was dropped; requires Python >=3.7.","severity":"breaking","affected_versions":">=2.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Use 'from ramppacker import RampPack'.","cause":"Using incorrect import path (ramp_packer instead of ramppacker).","error":"ModuleNotFoundError: No module named 'ramp_packer'"},{"fix":"Set capabilities via the dictionary property: pack.capabilities = {...}.","cause":"Trying to use a non-existent method, likely from an older API.","error":"AttributeError: 'RampPack' object has no attribute 'set_capabilities'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}