{"id":28151,"library":"rison","title":"python-rison","description":"Python encoder/decoder for the Rison data serialization format (similar to JSON but URI-safe). Current version 2.0.1, with a modernized codebase that publishes under the `rison` package instead of the legacy `prison`. Release cadence is irregular.","status":"active","version":"2.0.1","language":"python","source_language":"en","source_url":"https://github.com/betodealmeida/python-rison","tags":["rison","serialization","uri-safe","json"],"install":[{"cmd":"pip install rison","lang":"bash","label":"Install rison"}],"dependencies":[],"imports":[{"note":"The library was renamed from 'prison' to 'rison' in v2.0.0. Using 'prison' imports the old, unmaintained package.","wrong":"import prison","symbol":"rison","correct":"import rison"}],"quickstart":{"code":"import rison\n\n# Encode a Python dict to Rison string\nobj = {\"name\": \"test\", \"count\": 42}\nencoded = rison.dumps(obj)\nprint(encoded)  # (name:test,count:42)\n\n# Decode a Rison string back to Python object\ndecoded = rison.loads(encoded)\nprint(decoded)  # {'name': 'test', 'count': 42}","lang":"python","description":"Basic usage of rison for encoding and decoding."},"warnings":[{"fix":"Update imports to 'import rison' and reinstall with 'pip install rison'.","message":"v2.0.0 renamed the PyPI package from 'prison' to 'rison' and changed the top-level import from 'prison' to 'rison'. Existing code using 'import prison' will break.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Switch to 'rison' version 2.0.0 or later.","message":"The old 'prison' package on PyPI is unmaintained and should not be used.","severity":"deprecated","affected_versions":"<2.0.0"},{"fix":"Use '~' to represent null in rison strings, or filter None values before encoding.","message":"Rison does not support all Python types. For example, None is not supported and will raise an error.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-05-09T00:00:00.000Z","next_check":"2026-08-07T00:00:00.000Z","problems":[{"fix":"Run 'pip install rison'.","cause":"The package was not installed or an older version (prison) was installed instead.","error":"ModuleNotFoundError: No module named 'rison'"},{"fix":"Use 'import rison; rison.dumps(...)' instead of 'from rison import dumps'.","cause":"Using an outdated import pattern. The correct function is 'rison.dumps' and 'rison.loads'.","error":"ImportError: cannot import name 'dumps' from 'rison'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}