glom is a Python library and command-line tool for accessing, restructuring, and transforming nested data. It is designed for real-world data structures where dictionaries, objects, and lists are deeply nested and difficult to handle cleanly. Developers can use path-based access to retrieve values without writing long chains of fragile indexing code. The library also provides readable error messages, which makes debugging broken paths much easier. Its declarative specification style lets users describe the output shape they want instead of manually building transformation logic. glom is especially useful for data processing, API response cleanup, configuration handling, and scripts that need reliable nested data manipulation.
Features
- Nested data access
- Declarative data transformation
- Readable path error messages
- Pythonic specification syntax
- Built-in exploration and debugging
- Command-line interface support