Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time

glom

Restructuring data, the Python way.

release calver changelog

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

While it may sound like a lot, glom's straightforward approach becomes second-nature very quickly. :doc:`Get started with a few minutes on the 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 :doc:`tutorial` and :doc:`API reference<api>`!

Just glom it! ☄️

.. toctree::
   :maxdepth: 1
   :caption: Learning glom

   tutorial
   faq
   by_analogy
   snippets
   cli

.. toctree::
   :maxdepth: 2
   :caption: API Reference

   api
   mutation
   streaming
   grouping
   matching
   debugging

.. toctree::
   :maxdepth: 1
   :caption: Extending glom

   custom_spec_types
   modes