A Python library providing utility functions for programmatic data curation, including JSON/LD manipulation, textual data handling, and CLI tools. Current version is 4.0.0, released under a regular cadence.
pip install clldutilsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic usage: load JSON from file or URL.
Use `jsonlib.load()` without `lazy` for regular JSON. For line-delimited JSON, use `jsonlib.iterload()`.
Replace with `requests.get(url, headers=...)` and handle responses manually.
Use `from clldutils import jsonlib` for correct module resolution.
Ensure clldutils is installed: `pip install clldutils`. Then use `from clldutils import jsonlib`.
Remove the `lazy` argument. For line-delimited JSON, use `jsonlib.iterload()` with a file-like object.
Import as `from clldutils import text`, then use `text.normalize()` etc.