Metadata-Version: 2.1
Name: ormgrop
Version: 0.1.0
Summary: DevL's own standard library for Python 3
Home-page: https://devl.github.io/ormgrop
Author: Lennart Fridén
License: MIT
Project-URL: Bug Reports, https://github.com/DevL/ormgrop/issues
Project-URL: Source, https://github.com/DevL/ormgrop
Keywords: utility library
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Software Development :: Libraries
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: ~=3.5
Description-Content-Type: text/markdown
Provides-Extra: test
Requires-Dist: pytest ; extra == 'test'

# Ormgrop

DevL's own standard library for Python 3.

## Collections

`get_in` and `require_in`

Access values in nested Python structures that respond to the `[]` indexing syntax.

Inspired by of Elixir's `get_in`. If you squint.

### Usage

For "soft" getting a value, use `get_in(collection, path)` where path is a list of keys/indices. This function optionally takes a `default` value to be returned if the final key/index is not found. By default this is `None`.

For "hard" getting a value, use `require_in(collection, path)` where path is a list of keys/indices. This function raises a `NestedValueNotFoundError` if the final key/index is not found.


