Registry / serialization / rison
library2.0.1pypypi✓ verified 89d ago

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.

pip install rison
INSTALL
IMPORT
SIG · RISON
R
rison
serializationpythonv2.0.1
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

rison
✓ import rison
✗ import prison
The library was renamed from 'prison' to 'rison' in v2.0.0. Using 'prison' imports the old, unmaintained package.

Basic usage of rison for encoding and decoding.

import rison # Encode a Python dict to Rison string obj = {"name": "test", "count": 42} encoded = rison.dumps(obj) print(encoded) # (name:test,count:42) # Decode a Rison string back to Python object decoded = rison.loads(encoded) print(decoded) # {'name': 'test', 'count': 42}
Debug
Known issues
breakingv2.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.
fix
Update imports to 'import rison' and reinstall with 'pip install rison'.
affects: >=2.0.0
deprecatedThe old 'prison' package on PyPI is unmaintained and should not be used.
fix
Switch to 'rison' version 2.0.0 or later.
affects: <2.0.0
gotchaRison does not support all Python types. For example, None is not supported and will raise an error.
fix
Use '~' to represent null in rison strings, or filter None values before encoding.
affects: all
Errors
Common errors & fixes
ModuleNotFoundError: No module named 'rison'
The package was not installed or an older version (prison) was installed instead.
fix
Run 'pip install rison'.
ImportError: cannot import name 'dumps' from 'rison'
Using an outdated import pattern. The correct function is 'rison.dumps' and 'rison.loads'.
fix
Use 'import rison; rison.dumps(...)' instead of 'from rison import dumps'.
Upgrade
Version history
2.0.1latest on PyPI · released Apr 26, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
10
OpenAI (training)
1
Resources
rison — pip install rison · libregistry