$npx skillfedfor your agent

condense-json

Python function for condensing JSON using replacement strings

Worth itPyPI UtilitiesReleased Aug 2026456.4K downloads / moApache-2.0Pure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — condense_json-1.1-py3-none-any.whl
v1.1 · released 2026-08-03 · Python >=3.10

Yes. The package is lightweight, actively maintained, has no dependencies, and solves a specific problem well—reducing JSON size through deterministic pattern replacement with guaranteed round-tripping. The Apache-2.0 license is permissive. Install if you need to compress repetitive JSON or deduplicate structural patterns; skip if your JSON is already sparse or you need byte-identical serialization.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.10 or later.
  • Low friction: pure Python wheel with no runtime dependencies.
  • Active maintenance with recent release.

License · maintenance · safety

Apache-2.0 (permissive) — Apache-2.0 permissive license allows commercial and private use with attribution.

last release 2026-08-03 (11 days) · last repo commit 2026-08-03 · 11 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 456,382 downloads/mo, #6,555 on PyPI

Verify before relying

pip install condense-json

from condense_json import condense_json, uncondense_json

obj = {"text": "hello world", "more": "hello again"}
replacements = {"1": "hello"}
condensed = condense_json(obj, replacements)
original = uncondense_json(condensed, replacements)
  • Typical compression ratio or size reduction achieved on real-world JSON payloads
  • Performance characteristics with large JSON structures or many replacement patterns
  • Whether merge references (base + patch) are commonly useful in practice
Same gist for agents: .md · .json

What it is and what it does

condense-json provides two functions to reduce JSON size by identifying and replacing repeated content. The `condense_json` function scans a JSON-like object for strings that contain replacement substrings, dicts and lists that match replacement structures exactly, and dicts that are close to a replacement base (stored as base plus a patch). Each match is replaced with a compact reference marker. The `uncondense_json` function reverses this, restoring the original JSON from the condensed form.

The package handles three reference types: whole-value matches (`{"$": id}`), strings containing multiple replacements (`{"$r": [segments]}`), and dicts stored as a base plus a patch. Matching is deterministic—longest substring wins when patterns overlap—and round-tripping is guaranteed: `uncondense_json(condense_json(obj, r), r) == obj` always holds. It requires Python 3.10+ and has no external dependencies.

Use it for

  • Reduce payload size when transmitting repetitive JSON (e.g., API responses with duplicate schemas or tool definitions).
  • Compress JSON logs or structured data with common patterns to save storage or bandwidth.
  • Deduplicate embedded JSON blobs that appear in multiple places with minor variations.
  • Minimize JSON sent to language models or other services where token count or size matters.
  • Archive or cache JSON while preserving exact round-trip fidelity.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

Worth it

Yes.

The package is lightweight, actively maintained, has no dependencies, and solves a specific problem well—reducing JSON size through deterministic pattern replacement with guaranteed round-tripping. The Apache-2.0 license is permissive. Install if you need to compress repetitive JSON or deduplicate structural patterns; skip if your JSON is already sparse or you need byte-identical serialization.

Install

condense-json on PyPI

Before you install

Low friction: pure Python wheel with no runtime dependencies. Active maintenance with recent release.

Requires Python 3.10 or later.

License in practice

Apache-2.0 permissive license allows commercial and private use with attribution.

Quickstart

pip install condense-json

from condense_json import condense_json, uncondense_json

obj = {"text": "hello world", "more": "hello again"}
replacements = {"1": "hello"}
condensed = condense_json(obj, replacements)
original = uncondense_json(condensed, replacements)

Verify before relying

  • Typical compression ratio or size reduction achieved on real-world JSON payloads
  • Performance characteristics with large JSON structures or many replacement patterns
  • Whether merge references (base + patch) are commonly useful in practice

Package facts

LicenseApache-2.0 permissive
Python supportSupports the current Python release >=3.10
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceActively maintained 11 days since the last release
Last repo commit
First released
Downloads456,382 / month, #6,555 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Typing :: Typed

Evidence: condense_json-1.1-py3-none-any.whl

Tags

Capabilities
json compression deduplicationreduce json sizejson string replacementcompact json encodingjson pattern matchingminimize json payloadjson structural deduplication
Topics
json-compressiondata-deduplication

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “json compression deduplication”

  • condense-jsonCondense JSON by replacing repeated strings and structural patterns…
  • borgbackupBorgBackup is a command-line deduplicating backup tool that stores…
  • listcrunchCompresses sequences of repeated values into a human-readable format…

Give your agent the search over MCP, or paste the wish link into any chat.

More Utilities packages

idna Worth it
PyPI · Python Modules · released Jun 2026

Converts domain names between Unicode and ASCII-compatible encoding (Punycode) according to IDNA 2008 and Unicode Technical Standard 46, with security validation and broader script coverage than the standard library.

Install it if you work with internationalized domain names, need to validate domains, or use HTTP clients that depend on it transitively.

BSD-3-Clausepure Python · 3.9+
1.8Bdownloads / mo
charset-normalizer Worth it
PyPI · Utilities · released Aug 2026

Detects and normalizes text encoding from unknown or ambiguous sources, supporting all IANA character sets that Python's core library provides codecs for, with the ability to register custom codecs.

permissive licensepure Python · 3.7+
1.7Bdownloads / mo
setuptools Worth it
PyPI · Python Modules · released Aug 2026

Setuptools is a Python build backend and package management tool that handles building, distributing, and installing Python packages, including support for C/C++ extension modules.

MITpure Python · 3.10+
1.6Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
Pygments Worth it
PyPI · Utilities · released Mar 2026

Pygments is a syntax highlighter that colorizes source code and text in over 500 languages and formats, outputting to HTML, LaTeX, RTF, SVG, images, or ANSI terminal sequences.

Install it if you need to display or transform source code.

BSD-2-Clausepure Python · 3.9+
1.3Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo

See also compact-json · jsoncomparison · flatten-json · flatdict · jsondiff · json-merge-patch · pyjson · deepmerge · jcs · mo-dots