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.
Metadata
Release files for ormgrop 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| ormgrop-0.1.0.tar.gz | 2.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ormgrop-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / ormgrop-0.1.0.tar.gz
| Download URL | ormgrop-0.1.0.tar.gz |
|---|---|
| Size | 2.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1e185b113815965b8805b65b5c1abce4383b05718a0af16a8640ab2b79d810f6
|
|
BLAKE2b-256 checksum How to use checksums |
2f52c7ed42593ad22792a3f7eed5784900f9142074336c8704b04d755815fad3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|
Release files / ormgrop-0.1.0-py3-none-any.whl
| Download URL | ormgrop-0.1.0-py3-none-any.whl |
|---|---|
| Size | 3.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
92ad8eeb377efd59a806902d631fcc6ad9adb1d782a313449a5d3f7a737e0130
|
|
BLAKE2b-256 checksum How to use checksums |
d681599a64198f83366eef02e1d3ca8a6259a85a9745227f1b2bf37ae5d4ecd1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
|