ormgrop 0.1.0

Creator: railscoder56

Last updated:

Add to Cart

Description:

ormgrop 0.1.0

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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.