Skip to content

Latest commit

 

History

History
57 lines (37 loc) · 1.32 KB

index.rst

File metadata and controls

57 lines (37 loc) · 1.32 KB

glom

Restructuring data, the Python way

release calver

glom is a new approach to working with data in Python, featuring:

  • Path-based access <access-granted> for nested structures
  • Declarative data transformation <glom-func> using lightweight, Pythonic specifications
  • Readable, meaningful error messages <exceptions>
  • Built-in data exploration and debugging <debugging> features
  • And more!

While it may sound like a lot, glom's straightforward approach becomes second-nature very quickly. Get started with the five-minute tutorial! <tutorial>

Installation

glom is pure Python, and tested on Python 2.7-3.7, as well as PyPy. Installation is easy:

pip install glom

Then you're ready to get glomming!

from glom import glom

target = {'a': {'b': {'c': 'd'}}}
glom(target, 'a.b.c')  # returns 'd'

There's much, much more to glom, check out the tutorial and API reference<api>!

Just glom it! ☄️

tutorial api cli faq by_analogy snippets