-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
90 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{% extends "!page.html" %} | ||
{% block menu %} | ||
{{ super() }} | ||
<iframe src="https://ghbtns.com/github-btn.html?user=mahmoud&repo=glom&type=star&count=true&size=medium" frameborder="0" scrolling="0" width="160px" height="30px" style="margin-left: 23px; margin-top: 10px;"></iframe> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,55 @@ | ||
glom | ||
==== | ||
|
||
*Restructuring data through declarative object access and templating* | ||
*Restructuring data, the Python way* | ||
|
||
|release| |calver| | ||
|
||
**glom** is a new approach to working with data in Python. | ||
**glom** is a new approach to working with data in Python featuring: | ||
|
||
.. |release| image:: https://img.shields.io/pypi/v/glom.svg | ||
:target: https://pypi.org/project/glom/ | ||
|
||
.. |calver| image:: https://img.shields.io/badge/calver-YY.MINOR.MICRO-22bfda.svg | ||
:target: https://calver.org | ||
* :ref:`Path-based access <access-granted>` for nested structures | ||
* :ref:`Declarative data transformation <glom-func>` using lightweight, Pythonic specifications | ||
* Readable, meaningful :ref:`error messages <exceptions>` | ||
* Built-in :ref:`data exploration and debugging <debugging>` features | ||
* And *more*! | ||
|
||
While it may sound like a lot, glom's straightforward approach becomes | ||
second-nature very quickly. :doc:`Get started with the five-minute | ||
tutorial! <tutorial>` | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
tutorial | ||
api | ||
cli | ||
faq | ||
|
||
Installation and Integration | ||
---------------------------- | ||
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!:: | ||
Then you're ready to get glomming! | ||
|
||
.. code-block:: python | ||
from glom import glom | ||
from glom import glom | ||
target = {'a': {'b': {'c': 'd'}}} | ||
glom(target, 'a.b.c') # returns 'd' | ||
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! | ||
There's much, much more to glom, check out the :doc:`tutorial` and :doc:`API reference<api>`! | ||
|
||
|
||
*Just glom it! ☄️* | ||
|
||
|
||
.. |release| image:: https://img.shields.io/pypi/v/glom.svg | ||
:target: https://pypi.org/project/glom/ | ||
|
||
.. |calver| image:: https://img.shields.io/badge/calver-YY.MINOR.MICRO-22bfda.svg | ||
:target: https://calver.org | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
tutorial | ||
api | ||
cli | ||
faq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters