Install & Compatibility
Where this runs
tested against v0.1.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslpy 3.10–3.95 runs
installs and imports cleanly · install 0.0s · import 0.012s · 17.8MB
glibcpy 3.10–3.95 runs
installs and imports cleanly · install 1.5s · import 0.006s · 18MB
16MB installed
● package 16MB
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
condense_json
✓ from condense_json import condense_json
✗ from condense_json import condense_json as condense
Aliasing is unnecessary but not wrong; ensure correct function name.
uncondense_json
✓ from condense_json import uncondense_json
Basic usage: condense JSON values using a replacements dict, then restore.
from condense_json import condense_json, uncondense_json
obj = {"name": "John Doe", "email": "john@example.com", "long_field": "a very long string that we want to replace"}
replacements = {"a very long string that we want to replace": "short"}
condensed = condense_json(obj, replacements)
print(condensed) # {"name": "John Doe", "email": "john@example.com", "long_field": "short"}
restored = uncondense_json(condensed, replacements)
print(restored) # original obj
Errors
Common errors & fixes
KeyError: None
Replacements dict contains None as a value, causing KeyError in versions <=0.1.1.
fixRemove None values from replacements or upgrade to >=0.1.2.
KeyError: ''
Replacements dict contains an empty string as a key, causing KeyError in versions <=0.1.2.
fixRemove empty string keys from replacements or upgrade to >=0.1.3.
Upgrade
Version history
0.1.3latest on PyPI · released May 13, 2025
Audit
Dependencies
No dependency data recorded yet.